/* ═══════════════════════════════════════════════════════
   Tabulator — BuzZync Theme Overrides
   Loaded AFTER tabulator_simple.min.css and color-palette.css.
   Only overrides colors, fonts, accents — NOT layout props.
   ═══════════════════════════════════════════════════════ */

/* Base: font + border-radius + shadow */
.tabulator {
    font-family: 'Poppins', -apple-system, sans-serif;
    font-size: 0.8rem;
    border: 1px solid var(--hubia-table-border, #e2e8f0);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

/* Header: gradient bg + uppercase labels */
.tabulator .tabulator-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 2px solid var(--hubia-table-border, #e2e8f0);
    color: #475569;
}
.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title {
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.tabulator .tabulator-header .tabulator-col {
    border-right-color: var(--hubia-table-border, #e2e8f0);
}
.tabulator .tabulator-header .tabulator-col:hover {
    background: rgba(122, 84, 162, 0.05);
}

/* Sort icon accent */
.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort="ascending"],
.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort="descending"] {
    background: rgba(122, 84, 162, 0.06);
}

/* Header filter inputs */
.tabulator .tabulator-header .tabulator-header-filter input {
    border: 1px solid var(--hubia-table-border, #e2e8f0);
    border-radius: 5px;
    padding: 3px 6px;
    font-size: 0.7rem;
    font-family: 'Poppins', sans-serif;
    background: #fff;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.tabulator .tabulator-header .tabulator-header-filter input:focus {
    border-color: var(--hubia-chart-1, #7A54A2);
    box-shadow: 0 0 0 2px rgba(122, 84, 162, 0.12);
}

/* Rows: subtle borders + hover */
.tabulator .tabulator-tableholder .tabulator-table .tabulator-row {
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.1s ease;
}
.tabulator .tabulator-tableholder .tabulator-table .tabulator-row:hover {
    background: var(--hubia-table-row-hover, rgba(122, 84, 162, 0.08)) !important;
}
.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-row-even {
    background: var(--hubia-table-row-alt, rgba(122, 84, 162, 0.03));
}

/* Cells: font + color */
.tabulator .tabulator-tableholder .tabulator-table .tabulator-row .tabulator-cell {
    color: #1e293b;
    font-size: 0.78rem;
    border-right-color: transparent;
}

/* Progress bar */
.tabulator .tabulator-cell .tabulator-progress {
    background: var(--hubia-table-border, #e2e8f0);
    border-radius: 4px;
    height: 8px;
}
.tabulator .tabulator-cell .tabulator-progress .tabulator-progress-bar {
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Scrollbar */
.tabulator .tabulator-tableholder::-webkit-scrollbar { width: 6px; height: 6px; }
.tabulator .tabulator-tableholder::-webkit-scrollbar-track { background: #f8fafc; }
.tabulator .tabulator-tableholder::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* Placeholder */
.tabulator .tabulator-placeholder { color: #94a3b8; font-style: italic; }

/* Resize handle */
.tabulator .tabulator-header .tabulator-col .tabulator-col-resize-handle:hover { background: var(--hubia-chart-1, #7A54A2); }
