.pill-autocomplete {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0 !important;
}

.pill-autocomplete > i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #90a4ae;
    font-size: 12px;
    pointer-events: none;
}

.pill-autocomplete > input {
    height: 34px;
    padding: 0 12px 0 32px;
    margin: 0 !important;
    border: 1px solid #cfd8dc;
    border-radius: 18px;
    background-color: #fff;
    color: #37474f;
    font-size: 13px;
    line-height: 1;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.pill-autocomplete > input::placeholder {
    color: #90a4ae;
}

.pill-autocomplete > input:hover {
    border-color: #b0bec5;
}

.pill-autocomplete > input:focus {
    outline: none;
    border-color: cornflowerblue;
    box-shadow: 0 0 0 3px rgba(100, 149, 237, 0.25);
}

.pill-autocomplete:focus-within > i {
    color: cornflowerblue;
}

.pill-autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    min-width: 240px;
    background: #fff;
    border: 1px solid cornflowerblue;
    border-radius: 8px;
    box-shadow: 0 0 0 3px rgba(100, 149, 237, 0.25), 0 4px 15px rgba(0, 0, 0, 0.10);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.pill-autocomplete-hint-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
    line-height: 14px;
}

.pill-autocomplete-hint {
    font-size: 9px;
    color: #666;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.pill-autocomplete-hint svg {
    vertical-align: middle;
    flex-shrink: 0;
}

.pill-autocomplete-stats {
    font-size: 11px;
    color: #666;
    text-align: right;
    font-style: italic;
}

.pill-autocomplete.is-open .pill-autocomplete-dropdown {
    display: block;
    animation: pill-autocomplete-open 0.12s ease-out;
}

@keyframes pill-autocomplete-open {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pill-autocomplete-list {
    list-style: none;
    padding: 4px 0;
    margin: 0;
    max-height: 220px;
    overflow-y: auto;
}

.pill-autocomplete-option {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    color: #37474f;
    transition: background-color 0.12s ease, color 0.12s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pill-autocomplete-option:hover,
.pill-autocomplete-option.is-highlighted {
    background-color: var(--doc-audit-teal-light, #E0F2F1);
    color: var(--doc-audit-teal-dark, #00695C);
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
}

.pill-autocomplete-option.is-selected {
    background-color: var(--doc-audit-teal-light, #E0F2F1);
    color: var(--doc-audit-teal-dark, #00695C);
    font-weight: 600;
}

.pill-autocomplete-empty {
    padding: 10px 12px;
    color: #90a4ae;
    font-size: 12px;
    font-style: italic;
    text-align: center;
}
