/* Combo con búsqueda. Misma interacción que el selector de cliente. */

select.searchable-select-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.searchable-select {
    position: relative;
    min-width: 0;
}

.searchable-select__control {
    position: relative;
    display: flex;
    align-items: center;
}

.searchable-select__input {
    width: 100%;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #1e293b;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    padding: 0.5rem 2.25rem 0.5rem 0.75rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    outline: none;
    transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.searchable-select__input::placeholder {
    color: #94a3b8;
}

.searchable-select__input:hover {
    border-color: #cbd5e1;
}

.searchable-select__input:focus {
    border-color: #085985;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(8, 89, 133, 0.15);
}

.searchable-select__input:disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}

.searchable-select__toggle {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border: 0;
    background: transparent;
    color: #64748b;
    border-radius: 0.375rem;
    cursor: pointer;
}

.searchable-select__toggle:hover {
    color: #085985;
    background: rgba(8, 89, 133, 0.06);
}

.searchable-select__toggle svg {
    width: 1rem;
    height: 1rem;
}

.searchable-select.is-open .searchable-select__toggle svg {
    transform: rotate(180deg);
}

.searchable-select__menu {
    position: fixed;
    z-index: 80;
    max-height: 16rem;
    overflow: auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
    padding: 0.25rem;
}

.searchable-select__option,
.searchable-select__group {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    border-radius: 0.5rem;
    padding: 0.45rem 0.7rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #334155;
    cursor: pointer;
}

.searchable-select__option:hover,
.searchable-select__option.is-active {
    background: #085985;
    color: #fff;
}

.searchable-select__option.is-selected:not(.is-active) {
    font-weight: 600;
    color: #085985;
}

.searchable-select__group {
    cursor: default;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    padding-bottom: 0.15rem;
}

.searchable-select__empty,
.searchable-select__hint {
    padding: 0.6rem 0.7rem;
    font-size: 0.75rem;
    color: #64748b;
    text-align: center;
}
