/* ==========================================================================
   Tabulator Grozny Analytics Themes
   Унифицированные стили для таблиц (Тема + Плагин)
   ========================================================================== */

/* 1. GLASSMORPHISM THEME */
.tabulator-ga-glass.tabulator {
    background: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 12px;
    overflow: hidden;
}

.tabulator-ga-glass .tabulator-header {
    background: rgba(255, 255, 255, 0.6) !important;
    border-bottom: 2px solid var(--ms-primary) !important;
    color: var(--ms-text-main) !important;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    font-weight: 700;
}

.tabulator-ga-glass .tabulator-col {
    background: transparent !important;
}

.tabulator-ga-glass .tabulator-row {
    background: transparent !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.tabulator-ga-glass .tabulator-row:hover {
    background: rgba(255, 255, 255, 0.8) !important;
}

.tabulator-ga-glass .tabulator-row.tabulator-selected {
    background: rgba(16, 185, 129, 0.15) !important;
    color: var(--ms-primary);
}

/* 2. MODERN CLEAN THEME */
.tabulator-ga-modern.tabulator {
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px;
    background: #fff !important;
}

.tabulator-ga-modern .tabulator-header {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    font-weight: 600;
}

.tabulator-ga-modern .tabulator-row:nth-child(even) {
    background: #fdfdfd;
}

.tabulator-ga-modern .tabulator-row:hover {
    background: #f1f5f9 !important;
}

/* 3. BUSINESS / CORPORATE THEME */
.tabulator-ga-business.tabulator {
    border: 1px solid #cbd5e1 !important;
}

.tabulator-ga-business .tabulator-header {
    background: #1e293b !important;
    color: #fff !important;
}

.tabulator-ga-business .tabulator-row-odd { background: #fff !important; }
.tabulator-ga-business .tabulator-row-even { background: #f1f5f9 !important; }

/* 4. DARK ANALYTICS THEME */
.tabulator-ga-dark.tabulator {
    background: #1e293b !important;
    color: #f1f5f9 !important;
    border: 1px solid #334155 !important;
}

.tabulator-ga-dark .tabulator-header {
    background: #0f172a !important;
    color: #fff !important;
    border-bottom: 1px solid var(--ms-primary) !important;
}

.tabulator-ga-dark .tabulator-row {
    background: #1e293b !important;
    border-bottom: 1px solid #334155;
}

.tabulator-ga-dark .tabulator-row:hover {
    background: #334155 !important;
}

/* General Pagination Sync */
.tabulator-footer {
    background: transparent !important;
    padding: 10px 15px !important;
}

.tabulator-page {
    border-radius: 6px !important;
    border: 1px solid var(--ms-border) !important;
    transition: 0.2s;
}

.tabulator-page.active {
    background: var(--ms-primary-gradient) !important;
    color: var(--ms-btn-text) !important;
    border: none !important;
}
