/* Direction: Seva Ledger — a civic, trustworthy NGO back-office: paper-grey
   canvas, deep teal accent, confident grotesk headings, ledger-tidy tables. */
/* 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: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #eceff4;
  --border: #d7dee7;
  --border-strong: #abb1b2;
  --ink: #15202b;
  --muted: #566679;
  --accent: #0d6e62;
  --accent-hover: #0b5e53;
  --accent-ink: #ffffff;
  --accent-text: #0a5a50;
  --accent-strong: #084b43;
  --accent-soft: #d9ebe8;
  --accent-border: #8cb9b5;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #d9e8e2;
  --success-strong: #137638;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #ece2db;
  --warning-strong: #a64c08;
  --danger: #be123c;
  --danger-ink: #ffffff;
  --danger-soft: #eedbe1;
  --danger-strong: #be123c;
  --chart-1: #0d6e62;
  --chart-2: #1380be;
  --chart-3: #5b3787;
  --chart-4: #ae4e6d;
  --chart-5: #703f07;
  --chart-6: #6a8112;

  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius-card: 14px;
  --radius-btn: 10px;
  --radius-input: 10px;
  --card-pad: 1.25rem;
  --display-tracking: -0.02em;
  --x-on-photo: #ffffff;
  --x-scrim: rgba(7, 42, 38, 0.82);
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Inter", system-ui, sans-serif;
  --display-weight: 700;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="dark"] {
  --canvas: #020f0e;
  --surface: #1b2726;
  --surface-2: #0f1b1a;
  --border: #253130;
  --border-strong: #4e5756;
  --ink: #f4f6f8;
  --muted: #939a9a;
  --accent: #0d6e62;
  --accent-hover: #31847a;
  --accent-ink: #ffffff;
  --accent-text: #519890;
  --accent-strong: #519890;
  --accent-soft: #042420;
  --accent-border: #073a34;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #062818;
  --success-strong: #499c68;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #291e0d;
  --warning-strong: #c57a40;
  --danger: #be123c;
  --danger-ink: #ffffff;
  --danger-soft: #2b1018;
  --danger-strong: #d4637e;
  --chart-1: #298073;
  --chart-2: #2e93d2;
  --chart-3: #8e6cc1;
  --chart-4: #c26080;
  --chart-5: #b76b1a;
  --chart-6: #7c932c;
}

/* ledger tables — the app's own screen furniture */
.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.ledger th {
  text-align: left;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.ledger td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.ledger tbody tr:hover {
  background: var(--surface-2);
}
.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* donation trend bars */
.bar {
  background: var(--accent);
  border-radius: 6px 6px 2px 2px;
  min-height: 3px;
}

/* sign-in hero: a dark scrim over the photograph so white text stays legible */
.hero-scrim {
  background: var(--x-scrim);
}

/* printable receipt / report sheet */
.sheet {
  border: 1px solid var(--border);
  background: var(--surface);
}

@media print {
  .no-print {
    display: none !important;
  }
  .sheet {
    border: 0;
    box-shadow: none;
    max-width: 100%;
  }
  .ledger tbody tr:hover {
    background: transparent;
  }
}
