/**
 * QLVT Pro V8 — Content Area Premium Design
 * Artisan-grade styling for all views & components
 * @version 2.0.0
 * @date 2026-02-08
 * @author @Designer + @Frontend_Layout
 */

/* ═══════════════════════════════════════════════════════════════════════════════
   1. MONTH NAVIGATOR — Premium Capsule
   ═══════════════════════════════════════════════════════════════════════════════ */

.month-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.5));
    border: 1px solid rgba(148, 163, 184, 0.06);
    border-radius: 16px;
    padding: 6px;
    margin: 0 auto 24px;
    max-width: 440px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.month-nav-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: rgba(148, 163, 184, 0.6);
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.8rem;
    font-weight: 500;
}

.month-nav-btn:hover:not(.disabled) {
    background: rgba(34, 211, 238, 0.06);
    color: #e2e8f0;
}

.month-nav-btn.disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.month-nav-arrow {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
}

.month-nav-current {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 28px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(99, 102, 241, 0.06));
    border-radius: 12px;
    border: 1px solid rgba(34, 211, 238, 0.08);
    min-width: 165px;
    position: relative;
    overflow: hidden;
}

.month-nav-current::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.2), transparent);
}

.month-nav-current-label {
    font-size: 0.58rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(34, 211, 238, 0.5);
    line-height: 1;
    margin-bottom: 4px;
}

.month-nav-current-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #67e8f9;
    letter-spacing: 0.02em;
}

.month-nav-label { display: none; }
@media (min-width: 600px) { .month-nav-label { display: inline; } }

/* ═══════════════════════════════════════════════════════════════════════════════
   2. DASHBOARD — Enhanced Widgets
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Dashboard section titles */
.dashboard-section-title,
.view-section h3 {
    font-size: 1.05rem;
    font-weight: 640;
    color: #e2e8f0;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Dashboard grid layouts */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   3. DISPATCH VIEW — Data Table Premium
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Filter bar */
.filter-bar,
.dispatch-filter-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    padding: 14px 20px;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.05);
    border-radius: 14px;
    margin-bottom: 16px;
}

.filter-bar label,
.dispatch-filter-bar label {
    font-size: 0.78rem;
    color: rgba(148, 163, 184, 0.6);
    font-weight: 530;
}

.filter-bar select,
.filter-bar input,
.dispatch-filter-bar select,
.dispatch-filter-bar input {
    max-width: 180px;
    padding: 7px 12px;
    font-size: 0.82rem;
}

/* Stats bar */
.dispatch-stats,
.stats-bar {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding: 12px 20px;
    background: rgba(15, 23, 42, 0.3);
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid rgba(148, 163, 184, 0.04);
}

.dispatch-stats span,
.stats-bar span {
    font-size: 0.82rem;
    color: rgba(148, 163, 184, 0.7);
    font-weight: 500;
}

.dispatch-stats strong,
.stats-bar strong {
    color: #e2e8f0;
    font-weight: 650;
}

/* Dispatch table specific enhancements */
#dispatchTableContainer table thead tr th,
.dispatch-table thead tr th {
    background: linear-gradient(180deg, rgba(8, 145, 178, 0.15), rgba(6, 182, 212, 0.08)) !important;
    color: rgba(203, 213, 225, 0.9) !important;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    padding: 12px 10px !important;
    border-bottom: 2px solid rgba(34, 211, 238, 0.08) !important;
}

/* View mode buttons */
.view-mode-btn,
.dispatch-view-btn {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 530;
    background: rgba(148, 163, 184, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.06);
    color: rgba(148, 163, 184, 0.72);
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-mode-btn:hover,
.dispatch-view-btn:hover {
    background: rgba(148, 163, 184, 0.1);
    color: #e2e8f0;
}

.view-mode-btn.active,
.dispatch-view-btn.active {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(99, 102, 241, 0.08));
    color: #67e8f9;
    border-color: rgba(34, 211, 238, 0.1);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   4. DEBT PAGE — Premium Redesign
   ═══════════════════════════════════════════════════════════════════════════════ */

.debt-view { max-width: 1400px; margin: 0 auto; }

.debt-header-card {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.debt-header {
    padding: 24px 28px;
    border-radius: 16px;
}

.page-title {
    font-size: 1.4rem;
    font-weight: 720;
    letter-spacing: -0.025em;
    color: #f1f5f9;
}

.debt-summary-badges {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.debt-summary-badges .badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

/* Debt tabs */
.debt-tabs-card {
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.05);
    border-radius: 14px;
    margin-bottom: 20px;
    padding: 6px;
}

.debt-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 2px;
}

.debt-tab {
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 550;
    color: rgba(148, 163, 184, 0.72);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.debt-tab:hover {
    background: rgba(148, 163, 184, 0.05);
    color: #e2e8f0;
}

.debt-tab.active {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(99, 102, 241, 0.06));
    color: #67e8f9;
    box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.08);
}

.tab-count {
    background: rgba(148, 163, 184, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.68rem;
    font-weight: 620;
}

.debt-tab.active .tab-count {
    background: rgba(34, 211, 238, 0.12);
    color: #67e8f9;
}

/* Debt stats grid */
.debt-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.debt-stat-card {
    background: rgba(15, 23, 42, 0.45);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(148, 163, 184, 0.05);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.debt-stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.debt-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-color: rgba(148, 163, 184, 0.08);
}

.debt-stat-card:hover::after { opacity: 1; }

.debt-stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.debt-stat-card .stat-icon.receivable { background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(52, 211, 153, 0.08)); }
.debt-stat-card .stat-icon.payable { background: linear-gradient(135deg, rgba(244, 63, 94, 0.2), rgba(251, 113, 133, 0.08)); }
.debt-stat-card .stat-icon.warning { background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(251, 191, 36, 0.08)); }
.debt-stat-card .stat-icon.info { background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(96, 165, 250, 0.08)); }
.debt-stat-card .stat-icon.success { background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(52, 211, 153, 0.08)); }

.debt-stat-card .stat-label {
    font-size: 0.73rem;
    color: rgba(148, 163, 184, 0.6);
    font-weight: 530;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.debt-stat-card .stat-value {
    font-size: 1.25rem;
    font-weight: 720;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.debt-stat-card .stat-value.danger { color: #fb7185; }
.debt-stat-card .stat-value.success { color: #34d399; }

/* Debt table */
.debt-table-container, .debt-table { border-radius: 12px; overflow: hidden; }

.table-wrapper {
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.05);
    overflow: hidden;
    background: rgba(15, 23, 42, 0.2);
}

.debt-table th {
    background: rgba(10, 14, 26, 0.5) !important;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(148, 163, 184, 0.65);
    padding: 12px 14px;
    font-weight: 620;
    border-bottom: 1px solid rgba(148, 163, 184, 0.05);
}

.debt-table td {
    padding: 12px 14px;
    font-size: 0.84rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.025);
}

.debt-row:hover td { background: rgba(34, 211, 238, 0.025); }

.debt-type-badge, .debt-status-badge {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.68rem;
    font-weight: 620;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.debt-amount {
    font-weight: 640;
    font-variant-numeric: tabular-nums;
}

.debt-amount.receivable { color: #34d399; }
.debt-amount.payable { color: #fb7185; }

/* Aging */
.aging-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.aging-card {
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.05);
    border-radius: 14px;
    padding: 20px;
    transition: border-color 0.2s ease;
}

.aging-card:hover { border-color: rgba(148, 163, 184, 0.08); }

/* ═══════════════════════════════════════════════════════════════════════════════
   5. FINANCE PAGE — Premium Dashboard
   ═══════════════════════════════════════════════════════════════════════════════ */

.finance-tab {
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 550;
    color: rgba(148, 163, 184, 0.72);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.finance-tab:hover {
    background: rgba(148, 163, 184, 0.05);
    color: #e2e8f0;
}

.finance-tab.active {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(99, 102, 241, 0.06));
    color: #67e8f9;
}

/* Finance zones */
.finance-zone {
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.05);
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.finance-zone:hover { border-color: rgba(148, 163, 184, 0.08); }

.zone-header {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.zone-header h3 {
    font-size: 0.95rem;
    font-weight: 620;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.zone-content { padding: 20px 24px; }

/* Liquidity cards */
.liquidity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.liquidity-card {
    background: rgba(10, 14, 26, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.05);
    border-radius: 14px;
    padding: 20px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.liquidity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
}

.liquidity-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: rgba(148, 163, 184, 0.08);
}

.liquidity-card .icon-bg {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 14px;
}

.liquidity-card .label {
    font-size: 0.73rem;
    color: rgba(148, 163, 184, 0.55);
    font-weight: 530;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.liquidity-card .value {
    font-size: 1.35rem;
    font-weight: 720;
    color: #f1f5f9;
    letter-spacing: -0.025em;
    font-variant-numeric: tabular-nums;
}

.liquidity-card.cash .icon-bg { background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(52, 211, 153, 0.08)); }
.liquidity-card.bank .icon-bg { background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(96, 165, 250, 0.08)); }
.liquidity-card.total .icon-bg { background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(167, 139, 250, 0.08)); }

/* Debt overview */
.debt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.debt-card {
    background: rgba(10, 14, 26, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.05);
    border-radius: 14px;
    padding: 20px;
    transition: all 0.25s ease;
}

.debt-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.debt-card .header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.debt-card .label {
    font-size: 0.78rem;
    color: rgba(148, 163, 184, 0.6);
    font-weight: 520;
}

.debt-card .value {
    font-size: 1.25rem;
    font-weight: 720;
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
}

.debt-card .meta {
    font-size: 0.73rem;
    color: rgba(148, 163, 184, 0.65);
}

.debt-card.receivables .value { color: #34d399; }
.debt-card.payables .value { color: #fb7185; }

/* Cashflow stats */
.cashflow-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}

.cashflow-stat-card {
    background: rgba(10, 14, 26, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.05);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.2s ease;
}

.cashflow-stat-card:hover {
    border-color: rgba(148, 163, 184, 0.08);
    transform: translateY(-1px);
}

.cashflow-stat-card .value {
    font-size: 1.15rem;
    font-weight: 720;
    font-variant-numeric: tabular-nums;
}

.cashflow-stat-card .label {
    font-size: 0.7rem;
    color: rgba(148, 163, 184, 0.65);
    margin-top: 4px;
    font-weight: 520;
}

.cashflow-stat-card.income .value { color: #34d399; }
.cashflow-stat-card.expense .value { color: #fb7185; }
.cashflow-stat-card.balance .value { color: #60a5fa; }

/* Alert cards */
.alerts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.alert-card {
    background: rgba(10, 14, 26, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.05);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.alert-card:hover { border-color: rgba(148, 163, 184, 0.08); }

.alert-card .header {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.035);
    font-weight: 620;
    font-size: 0.84rem;
}

.alert-card .content { padding: 16px 20px; }

/* Account summary */
.account-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.account-summary-card {
    background: rgba(10, 14, 26, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.05);
    border-radius: 14px;
    padding: 18px;
    transition: all 0.2s ease;
}

.account-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Widget toggles */
.widget-toggle {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 520;
    color: rgba(148, 163, 184, 0.55);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.widget-toggle:hover {
    color: #e2e8f0;
    background: rgba(148, 163, 184, 0.05);
}

.widget-toggle.active {
    color: #67e8f9;
    background: rgba(6, 182, 212, 0.08);
    border-color: rgba(34, 211, 238, 0.08);
}

/* Liquidity bar */
.liquidity-bar-container {
    background: rgba(15, 23, 42, 0.4);
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 16px;
    border: 1px solid rgba(148, 163, 184, 0.04);
}

.liquidity-bar {
    height: 8px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 6px;
    overflow: hidden;
    margin: 10px 0;
}

.liquidity-bar .fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   6. REPORTS VIEW — Profit Analysis
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Report controls */
.report-controls,
.report-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* Profit table */
.data-table,
.profit-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table thead tr,
.profit-table thead tr {
    background: linear-gradient(180deg, rgba(8, 145, 178, 0.15), rgba(6, 182, 212, 0.08));
}

.data-table thead th,
.profit-table thead th {
    padding: 13px 14px !important;
    font-size: 0.72rem !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(203, 213, 225, 0.85) !important;
    font-weight: 620 !important;
    border-bottom: 2px solid rgba(34, 211, 238, 0.06) !important;
    white-space: nowrap;
    background: transparent !important;
}

.data-table tbody td,
.profit-table tbody td {
    padding: 11px 14px;
    font-size: 0.84rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.03);
    transition: background 0.15s ease;
}

.data-table tbody tr:hover td,
.profit-table tbody tr:hover td {
    background: rgba(34, 211, 238, 0.03);
}

/* Money columns */
td[style*="color: #10b981"],
td[style*="color:#10b981"] {
    color: #34d399 !important;
    font-weight: 640;
    font-variant-numeric: tabular-nums;
}

td[style*="color: #ef4444"],
td[style*="color:#ef4444"] {
    color: #fb7185 !important;
    font-weight: 640;
    font-variant-numeric: tabular-nums;
}

td[style*="color: #3b82f6"],
td[style*="color:#3b82f6"] {
    color: #60a5fa !important;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Report footer/totals row */
.data-table tfoot tr,
.profit-table tfoot tr,
.data-table tbody tr:last-child[style*="background: linear-gradient"],
.profit-table tbody tr:last-child[style*="background: linear-gradient"] {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.2), rgba(99, 102, 241, 0.1)) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   7. SETTINGS VIEW
   ═══════════════════════════════════════════════════════════════════════════════ */

.settings-section {
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.05);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}

.settings-section h3 {
    font-size: 1rem;
    font-weight: 620;
    color: #e2e8f0;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.04);
}

.setting-item:last-child { border-bottom: none; }

/* ═══════════════════════════════════════════════════════════════════════════════
   8. DATACENTER VIEW
   ═══════════════════════════════════════════════════════════════════════════════ */

.datacenter-card {
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.05);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
}

.datacenter-card .card-header {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.04);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   9. GENERAL CONTENT POLISH
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Page headings */
.view-section h2:first-child,
.view-section > h2 {
    font-size: 1.35rem;
    font-weight: 720;
    letter-spacing: -0.025em;
    margin-bottom: 20px;
    color: #f1f5f9;
}

/* Button groups / toolbars */
.header-actions,
.finance-toolbar,
.debt-filters {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* Filters */
.debt-filters,
.filter-group {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.filter-group label {
    font-size: 0.73rem;
    color: rgba(148, 163, 184, 0.55);
    font-weight: 530;
}

.form-input,
.form-select {
    background: rgba(15, 23, 42, 0.45);
    border: 1.5px solid rgba(148, 163, 184, 0.08);
    color: #e2e8f0;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.84rem;
    transition: all 0.2s ease;
    outline: none;
}

.form-input:focus,
.form-select:focus {
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.08);
}

/* Search inputs */
.search-input {
    background: rgba(15, 23, 42, 0.45);
    border: 1.5px solid rgba(148, 163, 184, 0.08);
    color: #e2e8f0;
    padding: 10px 14px 10px 38px;
    border-radius: 10px;
    font-size: 0.84rem;
    transition: all 0.2s ease;
    outline: none;
    width: 100%;
}

.search-input:focus {
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.08);
}

/* Utility classes for table cells */
.text-right { text-align: right !important; }
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }

.text-success { color: #34d399 !important; }
.text-danger { color: #fb7185 !important; }
.text-info { color: #60a5fa !important; }
.text-warning { color: #fbbf24 !important; }
.text-muted { color: rgba(148, 163, 184, 0.7) !important; }

.mono {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}

.bsx-cell {
    font-weight: 620;
    color: #67e8f9;
    letter-spacing: 0.02em;
}

/* Totals row */
.totals-row {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.2), rgba(99, 102, 241, 0.1)) !important;
}

.totals-row td {
    font-weight: 700 !important;
    color: #f1f5f9 !important;
    padding: 14px !important;
    border-top: 2px solid rgba(34, 211, 238, 0.1) !important;
    border-bottom: none !important;
}

[data-theme="light"] .bsx-cell,
.light-mode .bsx-cell {
    color: #0e7490;
}

[data-theme="light"] .totals-row,
.light-mode .totals-row {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.1), rgba(99, 102, 241, 0.05)) !important;
}

[data-theme="light"] .totals-row td,
.light-mode .totals-row td {
    color: #0f172a !important;
}

/* Numeric values */
.stat-value,
.debt-amount,
.liquidity-card .value,
.debt-card .value,
.cashflow-stat-card .value,
.account-summary-card .value,
[class*="amount"],
[class*="total"],
[class*="balance"] {
    font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   10. OVERRIDE INLINE STYLES — Critical fixes for JS-generated HTML
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Table header gradients from JS components */
table thead tr[style*="background: linear-gradient"] {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.2), rgba(6, 182, 212, 0.1)) !important;
}

table thead tr[style*="background: linear-gradient"] th {
    text-shadow: none !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.05em !important;
    font-weight: 620 !important;
}

/* Fix gradient footer rows */
table tbody tr[style*="background: linear-gradient(135deg, #3b82f6"],
table tbody tr[style*="background: linear-gradient(135deg, #059669"] {
    border-radius: 0 0 12px 12px;
}

table tbody tr[style*="background: linear-gradient(135deg, #3b82f6"] td,
table tbody tr[style*="background: linear-gradient(135deg, #059669"] td {
    font-weight: 700 !important;
}

/* Fix alternating rows that use inline style */
table tbody tr[style*="background: var(--bg-secondary)"] {
    background: rgba(15, 23, 42, 0.15) !important;
}

/* Empty state in components */
div[style*="padding: 50px; text-align: center"],
div[style*="padding: 60px; text-align: center"] {
    color: rgba(148, 163, 184, 0.65) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   10a. REPORT PAGE — Month Selectors & Dropdowns
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Report month selector — class replaces inline gradient background */
.month-select-report,
#reportMonthSelect,
#exportMonthSelector {
    padding: 10px 16px;
    border: 1.5px solid rgba(148, 163, 184, 0.1);
    border-radius: 10px;
    font-weight: 620;
    font-size: 0.9rem;
    min-width: 180px;
    cursor: pointer;
    background: rgba(30, 41, 59, 0.6);
    color: #e2e8f0;
    transition: all 0.2s ease;
    -webkit-appearance: auto;
    appearance: auto;
}

.month-select-report:hover,
#reportMonthSelect:hover,
#exportMonthSelector:hover {
    border-color: rgba(34, 211, 238, 0.25);
    background: rgba(30, 41, 59, 0.8);
}

/* BSX Filter — Fix gradient background for dark mode */
#profitBsxFilter {
    background: rgba(30, 41, 59, 0.5) !important;
    color: #e2e8f0 !important;
    border-color: rgba(148, 163, 184, 0.1) !important;
}

/* Compact select inside page-header */
.page-header .month-select-report,
.page-header #reportMonthSelect {
    min-width: auto;
    width: 145px;
    padding: 5px 10px;
    font-size: 0.82rem;
}

/* Light mode overrides */
[data-theme="light"] .month-select-report,
[data-theme="light"] #reportMonthSelect,
[data-theme="light"] #exportMonthSelector,
.light-mode .month-select-report,
.light-mode #reportMonthSelect,
.light-mode #exportMonthSelector {
    background: #ffffff;
    border-color: rgba(148, 163, 184, 0.2);
    color: #1e293b;
}

[data-theme="light"] #profitBsxFilter,
.light-mode #profitBsxFilter {
    background: #ffffff !important;
    color: #1e293b !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
}

/* Finance month selects — override inline dark styles */
#financeMonthSelect,
#financeListMonthSelect,
#txnMonthSelect {
    background: rgba(30, 41, 59, 0.6) !important;
    color: #e2e8f0 !important;
    border: 1.5px solid rgba(148, 163, 184, 0.1) !important;
    border-radius: 10px !important;
    -webkit-appearance: auto !important;
    appearance: auto !important;
}

[data-theme="light"] #financeMonthSelect,
[data-theme="light"] #financeListMonthSelect,
[data-theme="light"] #txnMonthSelect,
.light-mode #financeMonthSelect,
.light-mode #financeListMonthSelect,
.light-mode #txnMonthSelect {
    background: #ffffff !important;
    color: #1e293b !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
}

/* Inspector modal selects — override inline dark styles */
#inspectorMonthSelect,
#inspectorDataType {
    background: rgba(15, 23, 42, 0.5) !important;
    color: #e2e8f0 !important;
    border: 1.5px solid rgba(148, 163, 184, 0.1) !important;
    -webkit-appearance: auto !important;
    appearance: auto !important;
}

/* Master data month select — override inline style */
#masterDataMonthSelect {
    background: rgba(30, 41, 59, 0.6) !important;
    color: #e2e8f0 !important;
    border: 1.5px solid rgba(148, 163, 184, 0.1) !important;
    -webkit-appearance: auto !important;
    appearance: auto !important;
}

[data-theme="light"] #masterDataMonthSelect,
.light-mode #masterDataMonthSelect {
    background: #ffffff !important;
    color: #1e293b !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   10b. MASTER DATA PAGE — Tabs, Summary Cards, Tables
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Master Data Tabs */
.master-data-tab {
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: rgba(148, 163, 184, 0.65);
    font-weight: 530;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    white-space: nowrap;
}
.master-data-tab:hover {
    background: rgba(148, 163, 184, 0.06);
    color: #e2e8f0;
}
.master-data-tab.active {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(99, 102, 241, 0.08));
    color: #67e8f9;
    box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.1);
}
.master-data-tab .badge.tab-count {
    background: rgba(148, 163, 184, 0.1);
    color: inherit;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    min-width: 24px;
    text-align: center;
    font-weight: 620;
}
.master-data-tab.active .badge.tab-count {
    background: rgba(34, 211, 238, 0.12);
    color: #67e8f9;
}

/* Summary Cards */
.summary-card {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.05);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
}
.summary-card:hover {
    transform: translateY(-3px);
    border-color: rgba(34, 211, 238, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.summary-card.active {
    border-color: rgba(34, 211, 238, 0.15);
    background: rgba(6, 182, 212, 0.06);
}
.summary-card .icon { font-size: 2rem; margin-bottom: 8px; }
.summary-card .count {
    font-size: 1.4rem; font-weight: 720; color: #f1f5f9;
    font-variant-numeric: tabular-nums;
}
.summary-card .label {
    font-size: 0.82rem; color: rgba(148, 163, 184, 0.6);
    margin-top: 4px; font-weight: 500;
}
.summary-card .change { font-size: 0.73rem; margin-top: 8px; }
.summary-card .change.positive { color: #34d399; }
.summary-card .change.negative { color: #fb7185; }

/* Comparison Badges */
.comparison-badges { display: flex; gap: 8px; }
.comparison-badges .badge-new {
    background: rgba(16, 185, 129, 0.15); color: #34d399;
    padding: 4px 10px; border-radius: 12px; font-size: 0.73rem; font-weight: 600;
}
.comparison-badges .badge-removed {
    background: rgba(244, 63, 94, 0.15); color: #fb7185;
    padding: 4px 10px; border-radius: 12px; font-size: 0.73rem; font-weight: 600;
}

/* Master Data Table */
.master-data-table { width: 100%; min-width: 1200px; border-collapse: separate; border-spacing: 0; }
.master-data-table th, .master-data-table td {
    padding: 10px 14px; text-align: left;
    border-bottom: 1px solid rgba(148, 163, 184, 0.04); white-space: nowrap;
}
.master-data-table th {
    background: rgba(10, 14, 26, 0.5);
    color: rgba(148, 163, 184, 0.7); font-weight: 620;
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
    position: sticky; top: 0; z-index: 10;
}
.master-data-table td { color: #cbd5e1; font-size: 0.82rem; }
.master-data-table tr:hover td { background: rgba(34, 211, 238, 0.025); }
.master-data-table tr.is-new td { background: rgba(16, 185, 129, 0.06); }
.master-data-table th:first-child, .master-data-table td:first-child { width: 40px; text-align: center; }

/* Light mode */
[data-theme="light"] .master-data-tab,
.light-mode .master-data-tab { color: #64748b; }
[data-theme="light"] .master-data-tab.active,
.light-mode .master-data-tab.active {
    background: rgba(8, 145, 178, 0.06); color: #0e7490;
}
[data-theme="light"] .summary-card,
.light-mode .summary-card {
    background: #ffffff; border-color: rgba(148, 163, 184, 0.08);
}
[data-theme="light"] .summary-card .count,
.light-mode .summary-card .count { color: #0f172a; }
[data-theme="light"] .master-data-table th,
.light-mode .master-data-table th {
    background: #f8fafc; color: #475569;
}
[data-theme="light"] .master-data-table td,
.light-mode .master-data-table td { color: #334155; }

/* ═══════════════════════════════════════════════════════════════════════════════
   11. RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .month-nav { max-width: 100%; margin-bottom: 16px; }
    .month-nav-current { min-width: 120px; padding: 6px 16px; }
    .month-nav-current-value { font-size: 0.85rem; }
    .debt-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .debt-stat-card { padding: 14px; }
    .debt-stat-card .stat-value { font-size: 1.05rem; }
    .liquidity-grid { grid-template-columns: 1fr; }
    .cashflow-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .debt-tabs { overflow-x: auto; }
    .zone-content { padding: 14px 16px; }
    .filter-bar, .dispatch-filter-bar { padding: 10px 14px; }
    .dispatch-stats, .stats-bar { padding: 10px 14px; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   12. LIGHT MODE
   ═══════════════════════════════════════════════════════════════════════════════ */

[data-theme="light"] .month-nav,
.light-mode .month-nav {
    background: rgba(241, 245, 249, 0.9);
    border-color: rgba(148, 163, 184, 0.12);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

[data-theme="light"] .month-nav-current,
.light-mode .month-nav-current {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.1), rgba(6, 182, 212, 0.05));
    border-color: rgba(8, 145, 178, 0.08);
}

[data-theme="light"] .month-nav-current-value,
.light-mode .month-nav-current-value {
    color: #0e7490;
}

[data-theme="light"] .month-nav-btn,
.light-mode .month-nav-btn {
    color: #64748b;
}

[data-theme="light"] .finance-zone,
[data-theme="light"] .debt-stat-card,
[data-theme="light"] .liquidity-card,
[data-theme="light"] .debt-card,
[data-theme="light"] .cashflow-stat-card,
[data-theme="light"] .alert-card,
[data-theme="light"] .account-summary-card,
[data-theme="light"] .settings-section,
[data-theme="light"] .datacenter-card,
[data-theme="light"] .aging-card,
.light-mode .finance-zone,
.light-mode .debt-stat-card,
.light-mode .liquidity-card,
.light-mode .debt-card,
.light-mode .cashflow-stat-card,
.light-mode .alert-card,
.light-mode .account-summary-card,
.light-mode .settings-section,
.light-mode .datacenter-card,
.light-mode .aging-card {
    background: #ffffff;
    border-color: rgba(148, 163, 184, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

[data-theme="light"] .debt-tabs-card,
.light-mode .debt-tabs-card {
    background: #f8fafc;
    border-color: rgba(148, 163, 184, 0.08);
}

[data-theme="light"] .debt-tab,
[data-theme="light"] .finance-tab,
[data-theme="light"] .view-mode-btn,
[data-theme="light"] .dispatch-view-btn,
.light-mode .debt-tab,
.light-mode .finance-tab,
.light-mode .view-mode-btn,
.light-mode .dispatch-view-btn {
    color: #64748b;
}

[data-theme="light"] .debt-tab.active,
[data-theme="light"] .finance-tab.active,
.light-mode .debt-tab.active,
.light-mode .finance-tab.active {
    background: rgba(8, 145, 178, 0.06);
    color: #0e7490;
}

[data-theme="light"] .debt-card .meta,
.light-mode .debt-card .meta {
    color: #64748b;
}

[data-theme="light"] .page-title,
.light-mode .page-title {
    color: #0f172a;
}

[data-theme="light"] .filter-bar,
[data-theme="light"] .dispatch-filter-bar,
[data-theme="light"] .dispatch-stats,
[data-theme="light"] .stats-bar,
.light-mode .filter-bar,
.light-mode .dispatch-filter-bar,
.light-mode .dispatch-stats,
.light-mode .stats-bar {
    background: #f8fafc;
    border-color: rgba(148, 163, 184, 0.08);
}

[data-theme="light"] .view-section h2,
.light-mode .view-section h2 {
    color: #0f172a;
}

[data-theme="light"] .zone-header h3,
[data-theme="light"] .dashboard-section-title,
.light-mode .zone-header h3,
.light-mode .dashboard-section-title {
    color: #1e293b;
}

[data-theme="light"] .debt-stat-card .stat-label,
[data-theme="light"] .liquidity-card .label,
[data-theme="light"] .cashflow-stat-card .label,
.light-mode .debt-stat-card .stat-label,
.light-mode .liquidity-card .label,
.light-mode .cashflow-stat-card .label {
    color: #64748b;
}

[data-theme="light"] .liquidity-card .value,
.light-mode .liquidity-card .value {
    color: #0f172a;
}

[data-theme="light"] .liquidity-bar-container,
.light-mode .liquidity-bar-container {
    background: #f8fafc;
    border-color: rgba(148, 163, 184, 0.08);
}

[data-theme="light"] #dispatchTableContainer table thead tr th,
.light-mode #dispatchTableContainer table thead tr th {
    background: linear-gradient(180deg, rgba(8, 145, 178, 0.08), rgba(6, 182, 212, 0.04)) !important;
    color: #475569 !important;
}

/* --- V8.4 Light Mode Fixes: Text Contrast & Missing Overrides --- */
[data-theme="light"] .dispatch-stats span,
[data-theme="light"] .stats-bar span {
    color: #64748b;
}

[data-theme="light"] .month-nav-current-label {
    color: #0e7490;
}

[data-theme="light"] .month-nav-btn:hover:not(.disabled) {
    background: rgba(14, 116, 144, 0.06);
    color: #334155;
}

[data-theme="light"] .month-nav {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .month-nav-arrow {
    color: #475569;
}

[data-theme="light"] .month-nav-current::after {
    background: linear-gradient(90deg, transparent, rgba(14, 116, 144, 0.15), transparent);
}

[data-theme="light"] .dispatch-filter-bar select,
[data-theme="light"] .dispatch-filter-bar input {
    background: #ffffff;
    color: #1e293b;
    border-color: #cbd5e1;
}

[data-theme="light"] .dispatch-filter-bar select:hover,
[data-theme="light"] .dispatch-filter-bar input:hover {
    border-color: #94a3b8;
}

[data-theme="light"] .dispatch-filter-bar select:focus,
[data-theme="light"] .dispatch-filter-bar input:focus {
    border-color: #0891b2;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.08);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   V8.4: PREMIUM VISUAL ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════════════════════ */

.empty-state { position: relative; overflow: hidden; }

.empty-state::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(8, 145, 178, 0.04) 0%, transparent 60%);
    animation: emptyStatePulse 6s ease-in-out infinite;
}

@keyframes emptyStatePulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.empty-icon, .empty-state-icon {
    font-size: 3.5rem; margin-bottom: 16px;
    opacity: 0.4; filter: grayscale(30%);
    animation: emptyIconFloat 4s ease-in-out infinite;
}

@keyframes emptyIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.empty-title { font-size: 1.15rem; font-weight: 600; color: var(--text-secondary, #94a3b8); margin-bottom: 8px; }
.empty-subtitle { font-size: 0.9rem; color: var(--text-muted, #64748b); max-width: 360px; margin: 0 auto; line-height: 1.5; }

.table-wrapper table tbody tr { transition: all 0.15s ease; position: relative; }
.table-wrapper table tbody tr:hover { background: rgba(8, 145, 178, 0.04); }
.table-wrapper table tbody tr:hover td:first-child { border-left: 3px solid var(--primary, #0891b2); padding-left: calc(12px - 3px); }
.table-wrapper table tbody tr:active { background: rgba(8, 145, 178, 0.08); transform: scale(0.998); }

.table-wrapper table thead th { position: relative; user-select: none; }
.table-wrapper table thead th::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(8, 145, 178, 0.2), transparent);
}

.btn.is-loading { position: relative; color: transparent; pointer-events: none; }
.btn.is-loading::after {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 18px; height: 18px; margin: -9px 0 0 -9px;
    border: 2px solid rgba(255, 255, 255, 0.3); border-top-color: white;
    border-radius: 50%; animation: btnSpin 0.6s linear infinite;
}

@keyframes btnSpin { to { transform: rotate(360deg); } }

.card { position: relative; overflow: hidden; }

.card::after {
    content: ''; position: absolute; top: -100%; left: -100%;
    width: 60%; height: 200%;
    background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.015) 45%, rgba(255,255,255,0.03) 50%, rgba(255,255,255,0.015) 55%, transparent 70%);
    transform: rotate(25deg); transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none; z-index: 1;
}

.card:hover::after { top: -50%; left: 120%; }

.kpi-card .kpi-value, .stat-value { transition: transform 0.2s ease, color 0.2s ease; }
.kpi-card:hover .kpi-value { transform: scale(1.03); }

.form-input:focus, .form-textarea:focus, .form-select:focus {
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.12), 0 0 20px rgba(8, 145, 178, 0.05);
}

.pagination-controls .btn-sm {
    min-width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; transition: all 0.2s ease;
}
.pagination-controls .btn-sm:hover:not(:disabled) {
    transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.page-indicator { padding: 0 12px; font-size: 0.85rem; color: var(--text-secondary); }

.card-title { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: -0.01em; }

.table-wrapper::-webkit-scrollbar, .dispatch-table-container::-webkit-scrollbar { width: 6px; height: 6px; }
.table-wrapper::-webkit-scrollbar-track, .dispatch-table-container::-webkit-scrollbar-track { background: transparent; }
.table-wrapper::-webkit-scrollbar-thumb, .dispatch-table-container::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.15); border-radius: 3px; }
.table-wrapper::-webkit-scrollbar-thumb:hover, .dispatch-table-container::-webkit-scrollbar-thumb:hover { background: rgba(148, 163, 184, 0.3); }

[data-theme="light"] .card::after, .light-mode .card::after {
    background: linear-gradient(115deg, transparent 30%, rgba(0,0,0,0.01) 45%, rgba(0,0,0,0.02) 50%, rgba(0,0,0,0.01) 55%, transparent 70%);
}
[data-theme="light"] .table-wrapper table tbody tr:hover, .light-mode .table-wrapper table tbody tr:hover { background: rgba(8, 145, 178, 0.03); }
[data-theme="light"] .empty-state::before, .light-mode .empty-state::before { background: radial-gradient(circle at center, rgba(8, 145, 178, 0.06) 0%, transparent 60%); }
[data-theme="light"] .form-input:focus, [data-theme="light"] .form-textarea:focus, [data-theme="light"] .form-select:focus,
.light-mode .form-input:focus, .light-mode .form-textarea:focus, .light-mode .form-select:focus {
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.08), 0 0 16px rgba(8, 145, 178, 0.03);
}
