/* Выпадающий список с поиском поверх <select> — assets/js/searchableSelect.js */
.searchable-select {
    position: relative;
}

.searchable-select-trigger {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    cursor: pointer;
}

.searchable-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    min-width: 200px;
    max-height: 300px;
    overflow: auto;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Три класса — чтобы перебить ширину полей в панелях страниц (.sa-toolbar .form-control). */
.searchable-select .searchable-select-dropdown .searchable-select-search {
    position: sticky;
    top: 0;
    width: 100%;
    border: none;
    border-bottom: 1px solid #ccc;
    border-radius: 0;
    box-shadow: none;
}

.searchable-select-item {
    padding: 6px 10px;
    cursor: pointer;
}

.searchable-select-item:hover {
    background: #e9ecef;
}

.searchable-select-item.active {
    font-weight: 600;
}

.searchable-select-note {
    padding: 6px 10px;
    font-size: 0.85em;
    color: #7f8c8d;
}
