/* ── GAD Projects Design Tokens ── */
.gad-page {
    --gad-brand-primary: #4f46e5;
    --gad-brand-primary-hover: #4338ca;
    --gad-brand-light: #eef2ff;
    --gad-surface: #f8f9fc;
    --gad-surface-card: #ffffff;
    --gad-text-primary: #1e293b;
    --gad-text-secondary: #64748b;
    --gad-border: #e2e8f0;
    --gad-radius: 0.75rem;
    --gad-shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --gad-shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --gad-shadow-md: 0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -2px rgba(0,0,0,.06);
    --gad-shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.06);
    --gad-transition: 150ms ease;
    padding: 1.5rem;
}

/* ── Stat Cards ── */
.gad-stat-card {
    border: none; border-radius: var(--gad-radius); box-shadow: var(--gad-shadow);
    color: #fff; transition: transform var(--gad-transition), box-shadow var(--gad-transition);
}
.gad-stat-card:hover { transform: translateY(-2px); box-shadow: var(--gad-shadow-md); }
.gad-stat-label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.85; }
.gad-stat-value { font-size: 1.75rem; font-weight: 700; line-height: 1.2; }
.gad-stat-total    { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.gad-stat-approved { background: linear-gradient(135deg, #059669, #10b981); }
.gad-stat-savings  { background: linear-gradient(135deg, #0284c7, #06b6d4); }
.gad-stat-hours    { background: linear-gradient(135deg, #d97706, #f59e0b); }

/* ── Badges ── */
.gad-badge-score-high   { background: #dcfce7; color: #166534; }
.gad-badge-score-medium { background: #fef9c3; color: #854d0e; }
.gad-badge-score-low    { background: #f1f5f9; color: #475569; }
.gad-badge-savings-pos  { background: #dcfce7; color: #166534; }
.gad-badge-savings-neg  { background: #fee2e2; color: #991b1b; }

/* ── Page Header ── */
.gad-page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.gad-page-header h3 { font-size: 1.35rem; font-weight: 700; color: var(--gad-text-primary); margin: 0; }

/* ── Section cards ── */
.gad-section-card { margin-bottom: 1.5rem; border: 1px solid var(--gad-border); border-radius: var(--gad-radius); box-shadow: var(--gad-shadow-sm); background: var(--gad-surface-card); overflow: visible; }
.gad-section-card .card-header { font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gad-text-secondary); background: var(--gad-surface); border-bottom: 1px solid var(--gad-border); padding: 0.75rem 1.25rem; }
.gad-section-card .card-body { padding: 1.25rem; }
.gad-section-summary { border: 2px solid #10b981; }
.gad-section-summary .card-header { background: linear-gradient(135deg, #059669, #10b981); color: #fff; }

/* ── Metric box ── */
.gad-metric-box { text-align: center; padding: 0.75rem; }
.gad-metric-label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gad-text-secondary); margin-bottom: 0.35rem; }
.gad-metric-value { font-size: 1.25rem; font-weight: 700; }

/* ── Data Table ── */
.gad-data-table { font-size: 0.8125rem; border-collapse: collapse; border-spacing: 0; }
.gad-data-table thead th {
    background: #f1f5f9; color: var(--gad-text-secondary); font-weight: 600; font-size: 0.7rem;
    text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 2px solid #cbd5e1;
    border-right: 1px solid #e2e8f0; padding: 0.6rem 0.75rem; white-space: nowrap;
    cursor: pointer; user-select: none; transition: color var(--gad-transition);
}
.gad-data-table thead th:last-child { border-right: none; }
.gad-data-table thead th:hover { color: var(--gad-brand-primary); }
.gad-data-table tbody td { padding: 0.65rem 0.75rem; border-bottom: 1px solid #e2e8f0; border-right: 1px solid #f1f5f9; vertical-align: middle; }
.gad-data-table tbody td:last-child { border-right: none; }
.gad-data-table tbody tr { transition: background var(--gad-transition); }
.gad-data-table tbody tr:hover { background: var(--gad-brand-light); }
.gad-data-table tfoot td { border-right: 1px solid #e2e8f0; }
.gad-data-table tfoot td:last-child { border-right: none; }

/* ── Filter / Slicer Panel ── */
.gad-slicer-panel { background: var(--gad-surface-card); border: 1px solid var(--gad-border); border-radius: var(--gad-radius); padding: 1.25rem 1.5rem; box-shadow: var(--gad-shadow-sm); }
.gad-slicer-label { font-size: 0.67rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gad-text-secondary); margin-bottom: 0.5rem; border-bottom: 1px solid #e2e8f0; padding-bottom: 0.3rem; }
.gad-slicer-pills { display: flex; flex-wrap: wrap; gap: 0.4rem 0.5rem; }
.gad-slicer-pill {
    display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.75rem;
    border-radius: 999px; font-size: 0.73rem; font-weight: 600; border: 1.5px solid #cbd5e1;
    background: #f8fafc; color: var(--gad-text-secondary); cursor: pointer;
    transition: all var(--gad-transition); user-select: none; white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.gad-slicer-pill:hover { border-color: var(--gad-brand-primary); color: var(--gad-brand-primary); background: var(--gad-brand-light); box-shadow: 0 1px 3px rgba(79,70,229,.15); }
.gad-slicer-pill.active { background: var(--gad-brand-primary); border-color: var(--gad-brand-primary); color: #fff; }
.gad-slicer-pill .pill-count { font-size: 0.62rem; opacity: 0.7; font-weight: 700; background: rgba(0,0,0,.06); border-radius: 999px; padding: 0.05rem 0.4rem; margin-left: 0.1rem; }
.gad-slicer-pill.active .pill-count { opacity: 0.9; background: rgba(255,255,255,.2); }
.gad-slicer-pill.preset-active.active { background: #059669; border-color: #059669; }
.gad-slicer-pill.preset-ideas.active { background: #7c3aed; border-color: #7c3aed; }
.gad-slicer-pill.preset-delivered.active { background: #0284c7; border-color: #0284c7; }
.gad-slicer-pill.preset-atrisk.active { background: #e11d48; border-color: #e11d48; }
.gad-slicer-pill.preset-deferred.active { background: #64748b; border-color: #64748b; }
.gad-slicer-pill.status-intake.active { background: #d97706; border-color: #d97706; }
.gad-slicer-pill.status-evaluating.active { background: #d97706; border-color: #d97706; }
.gad-slicer-pill.status-approved.active { background: #059669; border-color: #059669; }
.gad-slicer-pill.status-inprogress.active { background: #4f46e5; border-color: #4f46e5; }
.gad-slicer-pill.status-delivered.active { background: #0284c7; border-color: #0284c7; }
.gad-slicer-pill.status-deferred.active { background: #64748b; border-color: #64748b; }
.gad-slicer-pill.status-rejected.active { background: #e11d48; border-color: #e11d48; }

/* ── Slicer pill active state base ── */
.gad-slicer-pill.active { box-shadow: 0 2px 4px rgba(0,0,0,.15); border-color: transparent; }

/* ── Slicer section rows ── */
.gad-slicer-section { padding: 0.6rem 0; }
.gad-slicer-section + .gad-slicer-section { border-top: 1px solid #f1f5f9; }

/* ── Slicer range ── */
.gad-slicer-range { display: flex; align-items: center; gap: 0.5rem; }
.gad-slicer-range input[type=range] { flex: 1; height: 4px; accent-color: var(--gad-brand-primary); }
.gad-slicer-range-value { font-size: 0.75rem; font-weight: 700; color: var(--gad-text-primary); min-width: 3.5rem; text-align: right; }

/* ── Compact facet filter bar (dropdown style) ── */
.gad-filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.85rem; padding-top: 0.85rem; border-top: 1px solid #f1f5f9; }
.gad-filter-dd { position: relative; }
.gad-filter-btn {
    display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.85rem;
    border: 1.5px solid #cbd5e1; background: #fff; border-radius: 0.55rem;
    font-size: 0.78rem; font-weight: 600; color: var(--gad-text-secondary);
    cursor: pointer; transition: all var(--gad-transition); white-space: nowrap; user-select: none;
}
.gad-filter-btn:hover { border-color: var(--gad-brand-primary); color: var(--gad-brand-primary); }
.gad-filter-btn.open,
.gad-filter-btn.has-value { border-color: var(--gad-brand-primary); color: var(--gad-brand-primary); background: var(--gad-brand-light); }
.gad-filter-btn i.bi { font-size: 0.82rem; }
.gad-filter-caret { font-size: 0.6rem !important; opacity: 0.6; transition: transform var(--gad-transition); }
.gad-filter-btn.open .gad-filter-caret { transform: rotate(180deg); }
.gad-filter-badge {
    background: var(--gad-brand-primary); color: #fff; font-size: 0.62rem; font-weight: 700;
    border-radius: 999px; padding: 0.05rem 0.4rem; min-width: 1.1rem; text-align: center; line-height: 1.4;
}
.gad-filter-pop {
    position: absolute; top: calc(100% + 0.4rem); left: 0; z-index: 1050;
    min-width: 260px; max-width: min(420px, calc(100vw - 2rem));
    background: var(--gad-surface-card); border: 1px solid var(--gad-border);
    border-radius: var(--gad-radius); box-shadow: 0 8px 24px rgba(15, 23, 42, .14);
    padding: 0.85rem;
}
.gad-filter-pop-scroll { max-height: 300px; overflow-y: auto; }
.gad-filter-pop-wide { min-width: 320px; }
.gad-filter-clear {
    display: inline-flex; align-items: center; gap: 0.35rem; background: transparent; border: none;
    color: #e11d48; font-size: 0.76rem; font-weight: 600; cursor: pointer; padding: 0.35rem 0.5rem;
}
.gad-filter-clear:hover { text-decoration: underline; }
.gad-filter-backdrop { position: fixed; inset: 0; z-index: 1040; background: transparent; }
@media (max-width: 575.98px) {
    .gad-filter-pop { left: 0; right: auto; max-width: calc(100vw - 2rem); }
}


/* ── Grid filter row ── */
.gad-grid-filter-row td { background: #f8fafc; padding: 0.3rem 0.4rem !important; border-bottom: 2px solid var(--gad-brand-primary) !important; }
.gad-grid-filter-select { font-size: 0.7rem !important; padding: 0.15rem 1.2rem 0.15rem 0.3rem !important; border-radius: 0.35rem; border: 1px solid var(--gad-border); height: auto; line-height: 1.3; color: var(--gad-text-secondary); background-color: #fff; }

/* ── Inline status select ── */
.gad-badge-status-select {
    font-size: 0.75rem; padding: 0.15rem 1.5rem 0.15rem 0.4rem; border: 1px solid #e2e8f0;
    border-radius: 999px; background-color: #f8fafc; min-width: 100px; height: auto; line-height: 1.4;
}

/* ── Horizontal bar chart ── */
.gad-hbar-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.65rem; }
.gad-hbar-label { width: 110px; flex-shrink: 0; font-size: 0.8rem; font-weight: 600; color: var(--gad-text-primary); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gad-hbar-track { flex: 1; height: 1.6rem; background: #f1f5f9; border-radius: 0.4rem; overflow: hidden; position: relative; }
.gad-hbar-fill { height: 100%; border-radius: 0.4rem; transition: width 500ms ease; display: flex; align-items: center; padding: 0 0.5rem; font-size: 0.7rem; font-weight: 700; color: #fff; min-width: fit-content; white-space: nowrap; }
.gad-hbar-value { font-size: 0.8rem; font-weight: 700; width: 75px; text-align: right; flex-shrink: 0; color: var(--gad-text-primary); }
.gad-hbar-fill-green  { background: linear-gradient(90deg, #059669, #34d399); }
.gad-hbar-fill-cyan   { background: linear-gradient(90deg, #0284c7, #38bdf8); }
.gad-hbar-fill-indigo { background: linear-gradient(90deg, #4f46e5, #818cf8); }
.gad-hbar-fill-amber  { background: linear-gradient(90deg, #d97706, #fbbf24); }
.gad-hbar-fill-rose   { background: linear-gradient(90deg, #e11d48, #fb7185); }

/* ── Donut chart ── */
.gad-donut-wrap { display: flex; align-items: center; gap: 1.5rem; padding: 1rem 0; }
.gad-donut { width: 140px; height: 140px; border-radius: 50%; flex-shrink: 0; position: relative; display: flex; align-items: center; justify-content: center; }
.gad-donut::after { content: ''; position: absolute; width: 80px; height: 80px; border-radius: 50%; background: var(--gad-surface-card, #fff); }
.gad-donut-center { position: relative; z-index: 1; text-align: center; }
.gad-donut-center .gad-donut-number { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.gad-donut-center .gad-donut-sub { font-size: 0.65rem; color: var(--gad-text-secondary); text-transform: uppercase; letter-spacing: 0.04em; }
.gad-donut-legend { display: flex; flex-direction: column; gap: 0.4rem; }
.gad-legend-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; }
.gad-legend-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.gad-legend-count { font-weight: 700; margin-left: auto; min-width: 1.5rem; text-align: right; }

/* ── Stacked bar ── */
.gad-stack-row { margin-bottom: 1rem; }
.gad-stack-label { font-size: 0.75rem; font-weight: 600; color: var(--gad-text-secondary); text-transform: uppercase; margin-bottom: 0.25rem; }
.gad-stack-bar { display: flex; height: 2rem; border-radius: 0.5rem; overflow: hidden; background: #f1f5f9; }
.gad-stack-seg { display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; transition: width 500ms ease; min-width: fit-content; padding: 0 0.4rem; }

/* ── Heatmap ── */
.gad-heatmap-table { font-size: 0.75rem; border-collapse: collapse; }
.gad-heatmap-table th { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 2px solid #cbd5e1; border-right: 1px solid #e2e8f0; padding: 0.5rem 0.5rem; }
.gad-heatmap-table th:last-child { border-right: none; }
.gad-heatmap-table td { border-bottom: 1px solid #e2e8f0; border-right: 1px solid #f1f5f9; padding: 0.4rem 0.25rem; }
.gad-heatmap-table td:last-child { border-right: none; }
.gad-heatmap-cell { text-align: center; font-weight: 700; font-size: 0.8rem; border-radius: 0.35rem; padding: 0.5rem 0.25rem; min-width: 3.5rem; transition: transform 150ms ease; }
.gad-heatmap-cell:hover { transform: scale(1.1); }
.gad-heat-0 { background: #f1f5f9; color: #94a3b8; }
.gad-heat-1 { background: #dbeafe; color: #1e40af; }
.gad-heat-2 { background: #bfdbfe; color: #1e3a8a; }
.gad-heat-3 { background: #93c5fd; color: #1e3a8a; }
.gad-heat-4 { background: #60a5fa; color: #fff; }
.gad-heat-5 { background: #3b82f6; color: #fff; }

/* ── Inline bar ── */
.gad-bar-track { background: #f1f5f9; border-radius: 999px; height: 0.5rem; overflow: hidden; }
.gad-bar-fill { height: 100%; border-radius: 999px; transition: width 300ms ease; min-width: 2px; }
.gad-bar-fill-green { background: linear-gradient(90deg, #059669, #34d399); }
.gad-bar-fill-rose  { background: linear-gradient(90deg, #e11d48, #fb7185); }

/* ── Dialog ── */
.gad-dialog-backdrop { position: fixed; inset: 0; z-index: 1050; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; padding: 1rem; animation: gadFadeIn 150ms ease; }
.gad-dialog { background: var(--gad-surface-card); border-radius: var(--gad-radius); box-shadow: var(--gad-shadow-lg); width: 100%; max-width: 560px; max-height: 80vh; display: flex; flex-direction: column; animation: gadSlideUp 200ms ease; }
.gad-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--gad-border); }
.gad-dialog-body { padding: 1.25rem; overflow-y: auto; flex: 1; }
.gad-update-history-list { display: flex; flex-direction: column; gap: 0.5rem; }
.gad-update-history-item { padding: 0.6rem 0.75rem; background: var(--gad-surface); border-radius: 0.5rem; border-left: 3px solid var(--gad-brand-primary); }
@keyframes gadFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes gadSlideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ── Action bar ── */
.gad-action-bar { background: var(--gad-surface-card); border: 1px solid var(--gad-border); border-radius: var(--gad-radius); padding: 1rem 1.25rem; box-shadow: var(--gad-shadow-sm); position: sticky; bottom: 1rem; z-index: 10; }

/* ── Mobile card ── */
.gad-mobile-request-card { border-left: 3px solid var(--gad-brand-primary); }

/* ── Responsive ── */
@media (max-width: 991.98px) {
    .gad-stat-value { font-size: 1.25rem; }
    .gad-stat-label { font-size: 0.6rem; }
    .gad-page-header h3 { font-size: 1.1rem; }
    .gad-action-bar { position: static; }
}

/* ================================================================
   DARK MODE
   Applied when body has data-theme="dark" attribute
   Follows the same pattern as rfs-theme-tokens.css
   ================================================================ */
body[data-theme="dark"] .gad-page {
    --gad-brand-primary: #818cf8;
    --gad-brand-primary-hover: #a5b4fc;
    --gad-brand-light: rgba(99,102,241,0.15);
    --gad-surface: #1e293b;
    --gad-surface-card: #334155;
    --gad-text-primary: #f1f5f9;
    --gad-text-secondary: #94a3b8;
    --gad-border: #475569;
    --gad-shadow-sm: 0 1px 2px rgba(0,0,0,.2);
    --gad-shadow: 0 1px 3px rgba(0,0,0,.3), 0 1px 2px rgba(0,0,0,.2);
    --gad-shadow-md: 0 4px 6px -1px rgba(0,0,0,.3), 0 2px 4px -2px rgba(0,0,0,.2);
    --gad-shadow-lg: 0 10px 15px -3px rgba(0,0,0,.3), 0 4px 6px -4px rgba(0,0,0,.2);
}

/* ── Dark: Badges ── */
body[data-theme="dark"] .gad-badge-score-high   { background: rgba(74,222,128,0.2); color: #86efac; }
body[data-theme="dark"] .gad-badge-score-medium { background: rgba(251,191,36,0.2); color: #fcd34d; }
body[data-theme="dark"] .gad-badge-score-low    { background: rgba(148,163,184,0.15); color: #cbd5e1; }
body[data-theme="dark"] .gad-badge-savings-pos  { background: rgba(74,222,128,0.2); color: #86efac; }
body[data-theme="dark"] .gad-badge-savings-neg  { background: rgba(248,113,113,0.15); color: #fca5a5; }

/* ── Dark: Data Table ── */
body[data-theme="dark"] .gad-data-table thead th {
    background: #334155; color: #94a3b8; border-bottom-color: #475569; border-right-color: #475569;
}
body[data-theme="dark"] .gad-data-table thead th:hover { color: #818cf8; }
body[data-theme="dark"] .gad-data-table tbody td { border-bottom-color: #475569; border-right-color: #3b4d66; }
body[data-theme="dark"] .gad-data-table tfoot td { border-right-color: #475569; }

/* ── Dark: Section card summary ── */
body[data-theme="dark"] .gad-section-summary { border-color: #10b981; }

/* ── Dark: Slicer Panel ── */
body[data-theme="dark"] .gad-slicer-label { border-bottom-color: #475569; }
body[data-theme="dark"] .gad-slicer-pill {
    border-color: #475569; background: #1e293b; color: #94a3b8;
    box-shadow: 0 1px 2px rgba(0,0,0,.15);
}
body[data-theme="dark"] .gad-slicer-pill:hover {
    border-color: #818cf8; color: #818cf8; background: rgba(99,102,241,0.15);
    box-shadow: 0 1px 3px rgba(99,102,241,.25);
}
body[data-theme="dark"] .gad-slicer-pill .pill-count { background: rgba(255,255,255,.08); }
body[data-theme="dark"] .gad-slicer-section + .gad-slicer-section { border-top-color: #475569; }

/* ── Dark: Grid filter row ── */
body[data-theme="dark"] .gad-grid-filter-row td { background: #1e293b; }
body[data-theme="dark"] .gad-grid-filter-select { color: #94a3b8; background-color: #334155; border-color: #475569; }

/* ── Dark: Inline status select ── */
body[data-theme="dark"] .gad-badge-status-select { border-color: #475569; background-color: #1e293b; color: #f1f5f9; }

/* ── Dark: Horizontal bar chart ── */
body[data-theme="dark"] .gad-hbar-track { background: #1e293b; }

/* ── Dark: Stacked bar ── */
body[data-theme="dark"] .gad-stack-bar { background: #1e293b; }

/* ── Dark: Heatmap ── */
body[data-theme="dark"] .gad-heatmap-table th { border-bottom-color: #475569; border-right-color: #475569; }
body[data-theme="dark"] .gad-heatmap-table td { border-bottom-color: #475569; border-right-color: #3b4d66; }
body[data-theme="dark"] .gad-heat-0 { background: #1e293b; color: #64748b; }
body[data-theme="dark"] .gad-heat-1 { background: rgba(96,165,250,0.15); color: #93c5fd; }
body[data-theme="dark"] .gad-heat-2 { background: rgba(96,165,250,0.25); color: #93c5fd; }
body[data-theme="dark"] .gad-heat-3 { background: rgba(96,165,250,0.35); color: #bfdbfe; }
body[data-theme="dark"] .gad-heat-4 { background: rgba(96,165,250,0.5); color: #fff; }
body[data-theme="dark"] .gad-heat-5 { background: rgba(59,130,246,0.7); color: #fff; }

/* ── Dark: Inline bar ── */
body[data-theme="dark"] .gad-bar-track { background: #1e293b; }

/* ── Dark: Donut chart ── */
body[data-theme="dark"] .gad-donut::after { background: var(--gad-surface-card, #334155); }

/* ── Dark: Generic overrides for Bootstrap/HTML elements inside .gad-page ── */
body[data-theme="dark"] .gad-page .card { background: #334155; border-color: #475569; color: #f1f5f9; }
body[data-theme="dark"] .gad-page .card-header { background: #1e293b; border-bottom-color: #475569; color: #94a3b8; }
body[data-theme="dark"] .gad-page .form-control,
body[data-theme="dark"] .gad-page .form-select { background-color: #1e293b; border-color: #475569; color: #f1f5f9; }
body[data-theme="dark"] .gad-page .form-control::placeholder { color: #64748b; }
body[data-theme="dark"] .gad-page .table {
    --bs-table-bg: #334155;
    --bs-table-color: #f1f5f9;
    --bs-table-border-color: #475569;
    --bs-table-striped-bg: #2d3d53;
    --bs-table-hover-bg: #3b4d66;
    --bs-table-accent-bg: transparent;
    color: #f1f5f9;
    border-color: #475569;
}
body[data-theme="dark"] .gad-page .table > :not(caption) > * > * {
    background-color: var(--bs-table-bg);
    border-bottom-color: #475569;
    color: #f1f5f9;
    box-shadow: none;
}
body[data-theme="dark"] .gad-page .table-responsive { background: #334155; }
body[data-theme="dark"] .gad-page .table tbody tr:hover > * { background-color: #3b4d66; }
body[data-theme="dark"] .gad-page .btn-outline-primary { border-color: #818cf8; color: #818cf8; }
body[data-theme="dark"] .gad-page .btn-outline-primary:hover { background: #818cf8; color: #fff; }
body[data-theme="dark"] .gad-page .btn-outline-danger { border-color: #f87171; color: #f87171; }
body[data-theme="dark"] .gad-page .btn-outline-danger:hover { background: #f87171; color: #fff; }
body[data-theme="dark"] .gad-page .btn-outline-secondary { border-color: #475569; color: #94a3b8; }
body[data-theme="dark"] .gad-page .btn-outline-secondary:hover { background: #475569; color: #f1f5f9; }
body[data-theme="dark"] .gad-page .form-range::-webkit-slider-runnable-track { background: #475569; }
body[data-theme="dark"] .gad-page .form-range::-moz-range-track { background: #475569; }
body[data-theme="dark"] .gad-page .badge.bg-primary.bg-opacity-10 { background-color: rgba(129,140,248,0.2) !important; color: #a5b4fc !important; }
body[data-theme="dark"] .gad-page .text-muted { color: #64748b !important; }
body[data-theme="dark"] .gad-page .modal-content { background: #334155; border-color: #475569; color: #f1f5f9; }
body[data-theme="dark"] .gad-page .modal-header { border-bottom-color: #475569; }
body[data-theme="dark"] .gad-page .modal-footer { border-top-color: #475569; }
