/* searchable_select.css */

.ss-wrap {
    position: relative;
    width: 100%;
    font-size: .93rem;
}

.ss-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .4rem;
    padding: .55rem .75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    user-select: none;
    transition: border-color .15s, box-shadow .15s;
    min-height: 38px;
}
.ss-btn:hover { border-color: #9ca3af; }
.ss-wrap.ss-open .ss-btn,
.ss-btn:focus {
    border-color: #1d5ede;
    box-shadow: 0 0 0 2px rgba(29,93,222,.15);
    outline: none;
}
.ss-wrap.ss-disabled .ss-btn { background: #f3f4f6; cursor: not-allowed; color: #9ca3af; }

.ss-label {
    color: #1e293b;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ss-label.ss-placeholder { color: #9ca3af; }

.ss-caret {
    color: #9ca3af;
    font-size: .8rem;
    transition: transform .15s;
}
.ss-wrap.ss-open .ss-caret { transform: rotate(180deg); color: #1d5ede; }

.ss-pop {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 200;
    overflow: hidden;
}
.ss-wrap.ss-open .ss-pop { display: block; }

.ss-search {
    width: 100%;
    padding: .55rem .75rem;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    font-size: .9rem;
    outline: none;
    background: #f8fafc;
}
.ss-search:focus { background: white; }

.ss-list {
    max-height: 260px;
    overflow-y: auto;
}

.ss-opt {
    padding: .5rem .75rem;
    cursor: pointer;
    font-size: .9rem;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ss-opt:hover, .ss-opt.ss-hot {
    background: #eff6ff;
    color: #1d5ede;
}
.ss-opt.ss-sel {
    background: #dbeafe;
    color: #1e40af;
    font-weight: 500;
}
.ss-opt.ss-placeholder { color: #9ca3af; font-style: italic; }

.ss-empty {
    padding: .8rem .75rem;
    color: #9ca3af;
    text-align: center;
    font-size: .85rem;
}
