/* Styles for aa-controls.js (native replacements for the Kendo UI widgets). */

.aa-hidden-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0;
    pointer-events: none;
}

.aa-select-filter {
    margin-bottom: 4px;
    height: 30px;
    padding: 4px 8px;
    font-size: 13px;
}

/* ---------- multiselect ---------- */
.aa-multiselect {
    position: relative;
}

.aa-multiselect-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    min-height: 34px;
    height: auto;
    cursor: pointer;
    align-items: center;
}

.aa-placeholder {
    color: #999;
}

.aa-chip {
    display: inline-flex;
    align-items: center;
    background: #e8eef5;
    border: 1px solid #c9d6e3;
    border-radius: 3px;
    padding: 1px 4px 1px 8px;
    font-size: 13px;
}

.aa-chip-remove {
    border: 0;
    background: transparent;
    margin-left: 4px;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    color: #555;
}

.aa-multiselect-panel {
    position: absolute;
    z-index: 1050;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    padding: 6px;
}

.aa-multiselect-search {
    margin-bottom: 6px;
}

.aa-multiselect-list {
    max-height: 240px;
    overflow-y: auto;
}

.aa-multiselect-item {
    display: block;
    font-weight: normal;
    padding: 3px 4px;
    margin: 0;
    cursor: pointer;
}

    .aa-multiselect-item:hover {
        background: #f2f5f9;
    }

/* ---------- dialog ---------- */
dialog.aa-dialog {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0;
    min-width: 320px;
    max-width: min(90vw, 640px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
}

    dialog.aa-dialog::backdrop {
        background: rgba(0, 0, 0, .4);
    }

.aa-dialog-title {
    font-weight: bold;
    font-size: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e5e5;
    background: #f7f7f7;
}

.aa-dialog-content {
    padding: 16px;
}

.aa-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 10px 16px;
    border-top: 1px solid #e5e5e5;
}

/* ---------- grid ---------- */
.aa-grid-toolbar {
    margin-bottom: 6px;
}

.aa-grid-search {
    max-width: 320px;
}

.aa-grid-table th.aa-sortable {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

    .aa-grid-table th.aa-sortable::after {
        content: " \2195";
        color: #bbb;
        font-size: 11px;
    }

    .aa-grid-table th.aa-sort-asc::after {
        content: " \25B2";
        color: #555;
    }

    .aa-grid-table th.aa-sort-desc::after {
        content: " \25BC";
        color: #555;
    }

.aa-grid-empty {
    text-align: center;
    color: #777;
}

.aa-grid-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px;
}

.aa-grid-info {
    margin-left: auto;
    color: #666;
    font-size: 13px;
}

/* ---------- tabs (Kendo TabStrip replacement, see _Tabs usage) ---------- */
.aa-tabs [role="tablist"] {
    display: flex;
    gap: 2px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}

.aa-tabs [role="tab"] {
    border: 1px solid transparent;
    border-bottom: 0;
    background: none;
    padding: 8px 14px;
    cursor: pointer;
}

    .aa-tabs [role="tab"][aria-selected="true"] {
        border-color: #ddd;
        background: #fff;
        margin-bottom: -1px;
        font-weight: bold;
    }
