/* Direction: Ledger Ink — crisp invoice paper, indigo rules, tabular figures */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  --canvas: #f5f5f3;
  --surface: #ffffff;
  --surface-2: #ececeb;
  --border: #d9d9d4;
  --border-strong: #aeaeb2;
  --ink: #15171d;
  --muted: #595f6d;
  --accent: #2f3cb5;
  --accent-hover: #28339a;
  --accent-ink: #ffffff;
  --accent-text: #2b36a3;
  --accent-strong: #1f2886;
  --accent-soft: #e6e8fb;
  --accent-border: #9ca2d7;
  --success: #15713f;
  --success-ink: #ffffff;
  --success-soft: #dae5dd;
  --success-strong: #15713f;
  --warning: #925c00;
  --warning-ink: #ffffff;
  --warning-soft: #e9e3d6;
  --warning-strong: #865500;
  --danger: #b3261e;
  --danger-ink: #ffffff;
  --danger-soft: #eddcd9;
  --danger-strong: #b3261e;
  --chart-1: #2f3cb5;
  --chart-2: #a2319a;
  --chart-3: #901404;
  --chart-4: #78600f;
  --chart-5: #0f5d2d;
  --chart-6: #187281;

  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --display-weight: 700;
  --display-tracking: -0.02em;
  --radius-card: 14px;
  --radius-btn: 10px;
  --radius-input: 10px;
  --card-pad: 1.25rem;
  --x-on-dark: #f3f4ff;
  --font-sans: "Inter", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="dark"] {
  --canvas: #060715;
  --surface: #1f202c;
  --surface-2: #121321;
  --border: #292a36;
  --border-strong: #51515b;
  --ink: #f5f5f3;
  --muted: #95969a;
  --accent: #2f3cb5;
  --accent-hover: #4e59c0;
  --accent-ink: #ffffff;
  --accent-text: #8188d2;
  --accent-strong: #767ece;
  --accent-soft: #0f1338;
  --accent-border: #181f5d;
  --success: #15713f;
  --success-ink: #ffffff;
  --success-soft: #091e1e;
  --success-strong: #499069;
  --warning: #925c00;
  --warning-ink: #ffffff;
  --warning-soft: #251a10;
  --warning-strong: #aa8038;
  --danger: #b3261e;
  --danger-ink: #ffffff;
  --danger-soft: #2c0e17;
  --danger-strong: #c9645e;
  --chart-1: #4c62de;
  --chart-2: #ca58c0;
  --chart-3: #da452f;
  --chart-4: #a28207;
  --chart-5: #019a4b;
  --chart-6: #159aad;
}

.stat-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.ledger-table th {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.rule-top {
  border-top: 2px solid var(--accent);
}

@media print {
  .no-print { display: none !important; }
  .print-sheet {
    box-shadow: none !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
}
