/* SearchableSelect component styles */
.ss-wrap {
    position: relative;
    width: 100%;
}

.ss-input-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    border: 1px solid var(--border, #d1d5db);
    border-radius: 8px;
    background: var(--bg-primary, #fff);
    cursor: text;
    min-height: 34px;
    transition: border-color 0.15s;
}

.ss-input-row:focus-within {
    border-color: var(--primary, #2563EB);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.ss-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.ss-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 4px 2px 8px;
    border-radius: 5px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary, #2563EB);
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    max-width: 160px;
}

.ss-chip-label {
    overflow: hidden;
    text-overflow: ellipsis;
}

.ss-chip-x {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0 2px;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.1s;
}

.ss-chip-x:hover {
    opacity: 1;
}

.ss-search {
    flex: 1;
    min-width: 60px;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-primary, #1a1a2e);
    font-size: 0.82rem;
    font-family: inherit;
    padding: 2px 0;
}

.ss-search::placeholder {
    color: var(--text-muted, #9ca3af);
}

.ss-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg-secondary, #fff);
    border: 1px solid var(--border, #d1d5db);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: 200px;
    overflow-y: auto;
    padding: 4px;
}

.ss-dropdown.ss-open {
    display: block;
}

.ss-dropdown::-webkit-scrollbar {
    width: 5px;
}

.ss-dropdown::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.ss-option {
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 0.82rem;
    color: var(--text-primary, #1a1a2e);
    cursor: pointer;
    transition: background 0.1s;
}

.ss-option:hover,
.ss-option.ss-highlighted {
    background: rgba(37, 99, 235, 0.08);
}

.ss-option.ss-selected {
    color: var(--primary, #2563EB);
    font-weight: 600;
}

.ss-empty {
    padding: 12px 10px;
    font-size: 0.8rem;
    color: var(--text-muted, #9ca3af);
    text-align: center;
}
