/* Theme: Crisp Document — high-contrast bank-statement feel.
 * Loaded after style.css; overrides via body[data-theme="crisp"]. */

body[data-theme="crisp"] {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f4f4f0;
  --surface-strong: #111111;
  --surface-strong-fg: #ffffff;
  --surface-strong-fg-soft: #d9d9d4;

  --ink: #111111;
  --ink-soft: #4a4a4a;
  --ink-mute: #6b6b6b;

  --border: #d9d9d4;
  --border-strong: #111111;

  --primary: #1f3a8a;
  --primary-hover: #15276a;
  --primary-soft: #e6edff;

  --green: #146b3a;
  --green-soft: #d6ecde;
  --red: #a4191f;
  --red-soft: #fae0e1;
  --amber: #8a5a00;
  --amber-soft: #f5e6c8;
  --blue: #1f3a8a;
  --blue-soft: #e6edff;

  --radius: 0;
  --radius-sm: 0;
  --radius-pill: 0;
  --shadow-sm: none;
  --shadow: none;

  --font-head: Georgia, "Times New Roman", "DejaVu Serif", serif;
}

@media (prefers-color-scheme: dark) {
  body[data-theme="crisp"] {
    --bg: #0d0d0d;
    --surface: #161616;
    --surface-alt: #1d1d1d;
    --surface-strong: #000000;
    --surface-strong-fg: #f2f2f2;
    --surface-strong-fg-soft: #888888;

    --ink: #f2f2f2;
    --ink-soft: #b0b0b0;
    --ink-mute: #888888;

    --border: #333333;
    --border-strong: #f2f2f2;

    --primary: #7da3ff;
    --primary-hover: #a0bdff;
    --primary-soft: #1a2645;

    --green: #5dd190;
    --green-soft: #1d3326;
    --red: #ff7e84;
    --red-soft: #3a1f1f;
    --amber: #f0b870;
    --amber-soft: #3a2b18;
  }
}

/* Component tweaks — square corners, sharp rules, serif headings, zebra rows */
body[data-theme="crisp"] {
  font-family: Georgia, "Times New Roman", "DejaVu Serif", serif;
}
body[data-theme="crisp"] .topnav,
body[data-theme="crisp"] .data,
body[data-theme="crisp"] .btn,
body[data-theme="crisp"] .filter-bar,
body[data-theme="crisp"] .badge,
body[data-theme="crisp"] .form-stack,
body[data-theme="crisp"] .form-row,
body[data-theme="crisp"] .theme-picker,
body[data-theme="crisp"] input,
body[data-theme="crisp"] select,
body[data-theme="crisp"] textarea,
body[data-theme="crisp"] button {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body[data-theme="crisp"] .topnav {
  background: var(--surface-strong); color: var(--surface-strong-fg);
  border-bottom: 2px solid var(--ink);
}
body[data-theme="crisp"] .topnav .brand,
body[data-theme="crisp"] .topnav .brand a { color: var(--surface-strong-fg); font-family: Georgia, serif; }
body[data-theme="crisp"] .topnav .brand-sub { color: var(--surface-strong-fg-soft); }
body[data-theme="crisp"] .topnav .user { color: var(--surface-strong-fg-soft); }
body[data-theme="crisp"] .topnav .links {
  background: var(--surface); border-top: 1px solid var(--ink);
}
body[data-theme="crisp"] .topnav .links a {
  border-radius: 0; color: var(--ink);
  border-bottom: 3px solid transparent; padding-bottom: 6px;
}
body[data-theme="crisp"] .topnav .links a:hover { background: var(--surface-alt); }
body[data-theme="crisp"] .topnav .links a.active {
  background: transparent; color: var(--primary);
  border-bottom-color: var(--primary);
}

body[data-theme="crisp"] .card {
  border-radius: 0; box-shadow: none;
  border: 1px solid var(--ink);
}
body[data-theme="crisp"] .kpi {
  border: 1px solid var(--ink); border-top: 6px solid var(--ink);
  border-left: 1px solid var(--ink);
}
body[data-theme="crisp"] .kpi-green  { border-top-color: var(--green); }
body[data-theme="crisp"] .kpi-red    { border-top-color: var(--red); }
body[data-theme="crisp"] .kpi-blue   { border-top-color: var(--primary); }
body[data-theme="crisp"] .kpi-orange { border-top-color: var(--amber); }
body[data-theme="crisp"] .kpi-label { color: var(--ink); }

body[data-theme="crisp"] .data {
  border: 1px solid var(--ink); border-radius: 0;
}
body[data-theme="crisp"] .data th {
  background: var(--surface); color: var(--ink);
  border-bottom: 2px solid var(--ink);
}
body[data-theme="crisp"] .data tbody tr:nth-child(even) { background: var(--surface-alt); }
body[data-theme="crisp"] .data tfoot td { border-top: 2px solid var(--ink); }

body[data-theme="crisp"] h1, body[data-theme="crisp"] .auth-card h1 { font-family: Georgia, serif; }
body[data-theme="crisp"] h2 {
  border-bottom: 2px solid var(--ink); padding-bottom: 6px;
  text-transform: uppercase; letter-spacing: .06em; font-size: 1rem;
}

body[data-theme="crisp"] .btn { border-radius: 0; }
body[data-theme="crisp"] .badge { border-radius: 0; padding: 2px 8px; }
