﻿.searchable-select {
    position: relative;
    width: 100%;
    min-width: 0;
}

.searchable-select-box {
    width: 100%;
    height: 46px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--input-bg);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    box-sizing: border-box;
    text-align: left;
}

    .searchable-select-box:hover {
        border-color: var(--accent);
    }

.searchable-select-text {
    display: block;
    max-width: calc(100% - 24px);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

    .searchable-select-text.placeholder {
        color: var(--text-muted);
    }

.searchable-select-arrow {
    color: var(--accent);
    flex: 0 0 auto;
}

.searchable-select-dropdown {
    position: absolute;
    z-index: 9999;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    padding: 8px;
    border-radius: 14px;
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 28px rgba(0,0,0,.35);
}

.searchable-select-search {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--input-bg);
    color: var(--text-main);
    outline: none;
    box-sizing: border-box;
}

.searchable-select-list {
    max-height: 220px;
    overflow-y: auto;
    margin-top: 8px;
    display: grid;
    gap: 4px;
}

.searchable-select-item {
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text-main);
    text-align: left;
    cursor: pointer;
}

    .searchable-select-item:hover,
    .searchable-select-item.selected {
        background: var(--input-bg);
        color: var(--accent);
    }

.searchable-select-empty {
    padding: 12px;
    color: var(--text-muted);
    text-align: center;
}
