/* ============================================
   SEARCHABLE SELECT COMPONENT
   ============================================ */
.searchable-select {
    position: relative;
    width: 100%;
}

.searchable-select--disabled {
    opacity: 0.65;
    pointer-events: none;
}

/* ---- Input wrapper ---- */
.searchable-select__input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.searchable-select__input-wrapper .form-control {
    padding-right: 55px;
}

/* ---- Clear button ---- */
.searchable-select__clear-btn {
    position: absolute;
    right: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.searchable-select__clear-btn:hover {
    color: #212529;
}

/* ---- Chevron ---- */
.searchable-select__chevron {
    position: absolute;
    right: 10px;
    cursor: pointer;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.searchable-select__chevron:hover {
    color: #212529;
}

/* ---- Dropdown panel ---- */
.searchable-select__panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    max-height: 250px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    margin-top: 2px;
}

/* ---- Option items ---- */
.searchable-select__option {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.15s;
}

.searchable-select__option--highlighted {
    background-color: #F2F5F0;
}

.searchable-select__option--selected {
    background-color: #C0CBBF;
}

.searchable-select__option--highlighted.searchable-select__option--selected {
    background-color: #F2F5F0;
}

/* ---- No results ---- */
.searchable-select__no-results {
    padding: 8px 12px;
    color: #6c757d;
    font-style: italic;
}
