:root {
  --ev-bg: #f3f5f9;
  --ev-ink: #1d2433;
  --ev-muted: #6b7385;
  --ev-nav: #17233f;
  --ev-cr: #1a8a5a;
  --ev-dr: #d1432f;
  --ev-net: #2f4ea2;
  --ev-radius: 14px;
}

body {
  background: var(--ev-bg);
  color: var(--ev-ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}

.app-nav { background: var(--ev-nav); }
.app-nav .nav-link.active { color: #fff; font-weight: 600; box-shadow: inset 0 -2px 0 #7da2ff; }

.card { border: 0; border-radius: var(--ev-radius); box-shadow: 0 1px 2px rgba(23, 35, 63, .06), 0 4px 14px rgba(23, 35, 63, .05); }
.card-header { background: transparent; border-bottom: 1px solid #edf0f5; font-weight: 600; }

/* Summary cards */
.stat-card { position: relative; overflow: hidden; }
.stat-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--accent, #94a3c4); }
.stat-card .stat-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ev-muted); }
.stat-card .stat-value { font-size: 1.6rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-card .stat-icon { font-size: 1.6rem; opacity: .25; }
.accent-cr { --accent: var(--ev-cr); }
.accent-dr { --accent: var(--ev-dr); }
.accent-net { --accent: var(--ev-net); }
.accent-count { --accent: #8a63d2; }
.text-cr { color: var(--ev-cr) !important; }
.text-dr { color: var(--ev-dr) !important; }

.amount { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }

.table > :not(caption) > * > * { padding: .65rem .75rem; }
.table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ev-muted); border-bottom-width: 1px; }

.badge-cr { background: #e3f5ec; color: var(--ev-cr); }
.badge-dr { background: #fbe9e6; color: var(--ev-dr); }

tr.row-void td { color: var(--ev-muted); text-decoration: line-through; }
tr.row-void td.no-strike { text-decoration: none; }

/* Voucher entry form – large touch targets on phones */
.voucher-form .form-control,
.voucher-form .form-select { min-height: 48px; }
.voucher-form .amount-input { font-size: 1.5rem; font-weight: 600; }
.type-banner-cr { border-top: 5px solid var(--ev-cr); }
.type-banner-dr { border-top: 5px solid var(--ev-dr); }

.pill-group .btn { border-radius: 999px; }

.report-link { text-decoration: none; }
.report-link:hover { text-decoration: underline; }

@media (max-width: 575.98px) {
  .stat-card .stat-value { font-size: 1.35rem; }
  main.container-xxl { padding-left: 12px; padding-right: 12px; }
}

@media print { .no-print, .app-nav { display: none !important; } }
