/* SearchableSelect — Styles */
.ss-wrapper {
    position: relative;
    width: 100%;
}

.ss-btn {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
    text-align: right;
    background: none;
    gap: 8px;
}

.ss-btn-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
}

.ss-btn-text.ss-placeholder {
    color: #9ca3af;
}

.ss-arrow {
    flex-shrink: 0;
    color: #9ca3af;
    transition: transform 0.2s;
}

.ss-open .ss-arrow {
    transform: rotate(180deg);
}

.ss-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    margin-top: 4px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.ss-dropdown.ss-above {
    top: auto;
    bottom: 100%;
    margin-top: 0;
    margin-bottom: 4px;
}

.ss-search-wrap {
    padding: 8px;
    border-bottom: 1px solid #f3f4f6;
}

.ss-search {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    outline: none;
    background: #f9fafb;
    direction: rtl;
}

.ss-search:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.ss-list {
    max-height: 220px;
    overflow-y: auto;
    padding: 4px;
}

.ss-list::-webkit-scrollbar {
    width: 6px;
}

.ss-list::-webkit-scrollbar-track {
    background: transparent;
}

.ss-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.ss-item {
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.1s;
    direction: rtl;
}

.ss-item:hover {
    background: #f3f4f6;
}

.ss-item.ss-selected {
    background: #ecfdf5;
    color: #059669;
    font-weight: 600;
}

.ss-item.ss-highlighted {
    background: #e0f2fe;
}

.ss-item.ss-disabled {
    color: #d1d5db;
    cursor: default;
}

.ss-item.ss-disabled:hover {
    background: none;
}

.ss-no-result {
    padding: 12px;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
}
