/* Searchable Select Custom Stylesheet */

.searchable-select-wrapper {
    position: relative;
    width: 100%;
}

.searchable-select-input {
    width: 100%;
    box-sizing: border-box;
    cursor: text;
}

.searchable-select-input:focus {
    border-color: var(--primary, #2ecc71) !important;
    outline: none;
}

.searchable-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10000;
    max-height: 250px;
    overflow-y: auto;
    background: var(--white, #ffffff);
    border: 2px solid var(--border, #e2e8f0);
    border-top: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    margin-top: 1px;
}

/* Adjust input border radius when dropdown is open */
.searchable-select-wrapper.open .searchable-select-input {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.searchable-select-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    border-bottom: 1px solid var(--border, #f1f5f9);
    font-size: 0.9rem;
    text-align: start;
    color: var(--text, #1e293b);
}

.searchable-select-item:last-child {
    border-bottom: none;
}

.searchable-select-item:hover,
.searchable-select-item.highlighted {
    background: rgba(46, 204, 113, 0.1); /* AquaFlow Green Tint */
    color: var(--primary-dark, #27ae60);
}

.searchable-select-item-title {
    font-weight: 600;
    display: block;
}

.searchable-select-item-meta {
    font-size: 0.8rem;
    color: var(--text-muted, #64748b);
    margin-top: 3px;
    display: flex;
    justify-content: space-between;
}

.searchable-select-group-header {
    padding: 6px 15px;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-muted, #64748b);
    background: rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid var(--border, #f1f5f9);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: start;
}

.searchable-select-no-results {
    padding: 15px;
    text-align: center;
    color: var(--text-muted, #64748b);
    font-size: 0.9rem;
}
