/* Direction: Ledger Noir — midnight slate panels, mint ledger accent, grotesk numbers */
/* 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 {
  color-scheme: dark;
  --canvas: #0d1117;
  --surface: #141c26;
  --surface-2: #1b2531;
  --border: #253142;
  --border-strong: #56585d;
  --ink: #e9eef5;
  --muted: #94a3b8;
  --accent: #35d39a;
  --accent-hover: #53daa9;
  --accent-ink: #06231a;
  --accent-text: #5fe0b0;
  --accent-strong: #7ee9c0;
  --accent-soft: #11362b;
  --accent-border: #1f6852;
  --success: #3ddc91;
  --success-ink: #ffffff;
  --success-soft: #183e32;
  --success-strong: #3ddc91;
  --warning: #f3b64b;
  --warning-ink: #ffffff;
  --warning-soft: #403522;
  --warning-strong: #f3b64b;
  --danger: #f4707a;
  --danger-ink: #ffffff;
  --danger-soft: #40262d;
  --danger-strong: #f4707a;
  --chart-1: #35d39a;
  --chart-2: #48cffa;
  --chart-3: #918df7;
  --chart-4: #fc98d5;
  --chart-5: #e57644;
  --chart-6: #cfc136;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --display-weight: 600;
  --display-tracking: -0.02em;
  --radius-card: 16px;
  --radius-btn: 10px;
  --radius-input: 10px;
  --card-pad: 1.25rem;
  --font-sans: "Inter", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="light"] {
  color-scheme: light;
  --canvas: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f3f3;
  --border: #dddedf;
  --border-strong: #b6b8b9;
  --ink: #0d1117;
  --muted: #65676b;
  --accent: #35d39a;
  --accent-hover: #2db383;
  --accent-ink: #0d1117;
  --accent-text: #1d7656;
  --accent-strong: #1d7656;
  --accent-soft: #e3f9f1;
  --accent-border: #a4ebd2;
  --success: #3ddc91;
  --success-ink: #0d1117;
  --success-soft: #e8fbf2;
  --success-strong: #227950;
  --warning: #f3b64b;
  --warning-ink: #0d1117;
  --warning-soft: #fef6e9;
  --warning-strong: #886629;
  --danger: #f4707a;
  --danger-ink: #0d1117;
  --danger-soft: #feeeef;
  --danger-strong: #af5057;
  --chart-1: #1da274;
  --chart-2: #009bc1;
  --chart-3: #6a66bb;
  --chart-4: #cf76ad;
  --chart-5: #ac5229;
  --chart-6: #a1951f;
}

html,
body {
  overflow-x: clip;
  max-width: 100%;
}

/* wide ledger tables scroll inside their card, never the page */
.card.overflow-x-auto,
.overflow-x-auto {
  overflow-x: auto;
  max-width: 100%;
}

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

.no-scrollbar {
  scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.navlink {
  @apply inline-flex shrink-0 items-center gap-2 rounded-full border border-transparent px-3 py-1.5 text-sm font-medium text-muted transition-colors;
}
.navlink:hover {
  @apply border-border bg-surface-2 text-ink;
}
.navlink[aria-current="page"] {
  @apply border-border bg-accent-soft text-accent-text;
}

.bar-track {
  @apply h-2 w-full overflow-hidden rounded-full bg-surface-2;
}
.bar-fill {
  @apply h-full rounded-full bg-accent;
}

.ledger {
  @apply w-full border-collapse text-sm;
}
.ledger th {
  @apply whitespace-nowrap border-b border-border px-3 py-2 text-left text-xs font-semibold uppercase tracking-wide text-muted;
}
.ledger td {
  @apply whitespace-nowrap border-b border-border px-3 py-3 align-middle;
}
.ledger tbody tr:hover {
  @apply bg-surface-2;
}

.cal-cell {
  @apply min-h-[108px] rounded-xl border border-border bg-surface p-2 text-xs;
}
