/* TacReporting theme tokens — pair with html[data-bs-theme] (Bootstrap 5.3+) */

:root,
[data-bs-theme="light"] {
	--tac-surface: #fff;
	--tac-surface-muted: #f9fafb;
	--tac-surface-muted-alt: #f7f8fa;
	--tac-surface-hover: #f3f4f6;
	--tac-surface-subtle: #f5f5f5;
	--tac-border: #e9e9e9;
	--tac-border-subtle: #eee;
	--tac-border-strong: #d1d5db;
	--tac-border-input: #ccc;
	--tac-border-card: #c5c5c5;
	--tac-border-slate: #cbd5e1;
	--tac-text: #1f2937;
	--tac-text-heading: #212529;
	--tac-text-secondary: #374151;
	--tac-text-muted: #6b7280;
	--tac-text-muted-alt: #6c757d;
	--tac-text-dark: #000;
	--tac-text-body: #222;
	--tac-text-popup: #0f172a;
	--tac-on-primary: #fff;
	--tac-primary-bg: #1f2937;
	--tac-primary-bg-hover: #000;
	--tac-btn-secondary-bg: #f3f4f6;
	--tac-btn-secondary-border: #d1d5db;
	--tac-focus: #258cfb;
	--tac-focus-alt: #2563eb;
	--tac-focus-halo: #fff;
	--tac-accent: #1b6ec2;
	--tac-row-hover: #e8eef5;
	--tac-spinner-track: #e5e7eb;
	--tac-disabled-bg: #e5e7eb;
	--tac-disabled-text: #6b7280;
	--tac-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
	--tac-shadow-popup: 0 8px 28px rgba(15, 23, 42, 0.18), 0 2px 8px rgba(15, 23, 42, 0.08);
	--tac-login-bg: #f7f8fa;
	--tac-login-logo-bar: #e9e9e9;
	/* Invoice Approval — semantic row tints */
	--tac-ia-row-default: #fff;
	--tac-ia-sales-odd: #fffbeb;
	--tac-ia-sales-even: #fef3c7;
	--tac-ia-approval-odd: #fff5f5;
	--tac-ia-approval-even: #fde8e8;
	--tac-ia-correction-even: #f1f5f9;
	--tac-ia-delivery-odd: #f0fdf4;
	--tac-ia-delivery-even: #dcfce7;
	/* Crew revenue */
	--tac-crew-border-cell: #eceef2;
	--tac-crew-holiday-bg: #fffbeb;
	--tac-crew-holiday-fg: #92400e;
	--tac-crew-holiday-hover: #fef3c7;
	--tac-slate-200: #e2e8f0;
	--tac-slate-400: #94a3b8;
	--tac-slate-500: #64748b;
	--tac-slate-600: #475569;
	--tac-slate-700: #334155;
	--tac-text-strong: #111827;
	--tac-surface-alt: #fafafa;
	--tac-surface-alt2: #f9f9f9;
	--tac-surface-alt3: #f8fafc;
	--tac-surface-zinc: #f4f4f5;
	--tac-gray-200: #e0e0e0;
	--tac-gray-300: #c9c9c9;
	--tac-gray-bootstrap: #dee2e6;
	--tac-gray-bootstrap-bg: #e9ecef;
	--tac-gray-bootstrap-text: #495057;
	--tac-gray-bootstrap-muted: #5c636a;
	--tac-gray-bootstrap-faint: #adb5bd;
	--tac-table-header-bg: #1e293b;
	--tac-table-header-text: #f8fafc;
	--tac-table-stripe: #e2e8f0;
	--tac-table-total-bg: #f4f4f5;
	--tac-success-bg: #e8f5e9;
	--tac-success: #198754;
	--tac-success-hover: #157347;
	--tac-danger: #dc3545;
	--tac-danger-hover: #bb2d3b;
	--tac-info-border: #f2c9c9;
	--tac-link-blue: #3b82f6;
	--tac-bootstrap-primary: #0d6efd;
	--tac-amber-outline: #fbbf24;
	--tac-amber-text: #d97706;
	--tac-label-muted: #505968;
	--tac-label-mid: #4b5563;
	color-scheme: light;
}

[data-bs-theme="dark"] {
	--tac-surface: #1e293b;
	--tac-surface-muted: #111827;
	--tac-surface-muted-alt: #0f172a;
	--tac-surface-hover: #374151;
	--tac-surface-subtle: #1f2937;
	--tac-border: #374151;
	--tac-border-subtle: #334155;
	--tac-border-strong: #4b5563;
	--tac-border-input: #4b5563;
	--tac-border-card: #475569;
	--tac-border-slate: #475569;
	--tac-text: #f3f4f6;
	--tac-text-heading: #f9fafb;
	--tac-text-secondary: #d1d5db;
	--tac-text-muted: #9ca3af;
	--tac-text-muted-alt: #adb5bd;
	--tac-text-dark: #f9fafb;
	--tac-text-body: #e5e7eb;
	--tac-text-popup: #f1f5f9;
	--tac-on-primary: #fff;
	--tac-primary-bg: #4b5563;
	--tac-primary-bg-hover: #6b7280;
	--tac-btn-secondary-bg: #374151;
	--tac-btn-secondary-border: #4b5563;
	--tac-focus: #60a5fa;
	--tac-focus-alt: #60a5fa;
	--tac-focus-halo: #1e293b;
	--tac-accent: #60a5fa;
	--tac-row-hover: #334155;
	--tac-spinner-track: #374151;
	--tac-disabled-bg: #374151;
	--tac-disabled-text: #9ca3af;
	--tac-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
	--tac-shadow-popup: 0 8px 28px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.25);
	--tac-login-bg: #0f172a;
	--tac-login-logo-bar: #1f2937;
	--tac-ia-row-default: #1e293b;
	--tac-ia-sales-odd: #422006;
	--tac-ia-sales-even: #713f12;
	--tac-ia-approval-odd: #450a0a;
	--tac-ia-approval-even: #7f1d1d;
	--tac-ia-correction-even: #1e293b;
	--tac-ia-delivery-odd: #052e16;
	--tac-ia-delivery-even: #14532d;
	--tac-crew-border-cell: #374151;
	--tac-crew-holiday-bg: #422006;
	--tac-crew-holiday-fg: #fcd34d;
	--tac-crew-holiday-hover: #713f12;
	--tac-slate-200: #334155;
	--tac-slate-400: #64748b;
	--tac-slate-500: #94a3b8;
	--tac-slate-600: #cbd5e1;
	--tac-slate-700: #475569;
	--tac-text-strong: #f9fafb;
	--tac-surface-alt: #1f2937;
	--tac-surface-alt2: #111827;
	--tac-surface-alt3: #0f172a;
	--tac-surface-zinc: #374151;
	--tac-gray-200: #374151;
	--tac-gray-300: #4b5563;
	--tac-gray-bootstrap: #495057;
	--tac-gray-bootstrap-bg: #374151;
	--tac-gray-bootstrap-text: #d1d5db;
	--tac-gray-bootstrap-muted: #9ca3af;
	--tac-gray-bootstrap-faint: #6b7280;
	--tac-table-header-bg: #0f172a;
	--tac-table-header-text: #f1f5f9;
	--tac-table-stripe: #334155;
	--tac-table-total-bg: #374151;
	--tac-success-bg: #14532d;
	--tac-success: #75b798;
	--tac-success-hover: #198754;
	--tac-danger: #ea868f;
	--tac-danger-hover: #dc3545;
	--tac-info-border: #7f1d1d;
	--tac-link-blue: #60a5fa;
	--tac-bootstrap-primary: #6ea8fe;
	--tac-amber-outline: #fbbf24;
	--tac-amber-text: #fcd34d;
	--tac-label-muted: #9ca3af;
	--tac-label-mid: #d1d5db;
	color-scheme: dark;
}

/* Footer theme toggle (admins only; markup in _Layout) */
.theme-toggle-wrap {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.theme-toggle-wrap .form-check-label {
	font-weight: 600;
	font-size: calc(1em - 2px);
	white-space: nowrap;
	cursor: pointer;
	user-select: none;
}

@media (max-width: 575.98px) {
	.theme-toggle-wrap {
		padding: 0.25rem 0 0.5rem;
	}
}

.invoice-approval-modal-summary th.invoice-approval-modal-summary__heading {
	background-color: var(--tac-surface-muted-alt);
	box-shadow: none;
}
