/*
 * entity-select.css — Ops UI Library: EntitySelect
 */

.es-container {
    position: relative;
}

.es-field {
    position: relative;
    display: flex;
    align-items: center;
}

.es-input {
    flex: 1;
    padding-right: 28px;
}

.es-clear {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-2);
    font-size: 12px;
    line-height: 1;
    padding: 2px 4px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.es-clear:hover {
    color: var(--text-1);
    background: var(--sidebar-active);
}

/* ── Dropdown ─────────────────────────────────────────────── */

.es-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 9500;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    max-height: 320px;
    padding: 4px 0;

    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.es-dropdown::-webkit-scrollbar       { width: 4px; }
.es-dropdown::-webkit-scrollbar-track { background: transparent; }
.es-dropdown::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ── Items ────────────────────────────────────────────────── */

.es-item {
    padding: 0 12px;
    height: 36px;
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--text-1);
    cursor: pointer;
    transition: background 0.1s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.es-item:hover {
    background: var(--sidebar-active);
}
