/* Direction: salon back-office ledger — warm porcelain paper, plum ink, crisp data 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: #f7f3f2;
  --surface: #ffffff;
  --surface-2: #f0e7e8;
  --border: #e3d6d8;
  --border-strong: #b3acad;
  --ink: #241820;
  --muted: #6f5a63;
  --accent: #8b2f55;
  --accent-hover: #762848;
  --accent-ink: #ffffff;
  --accent-text: #7c2549;
  --accent-strong: #661a3b;
  --accent-soft: #f8e7ee;
  --accent-border: #c69bab;
  --success: #15704e;
  --success-ink: #ffffff;
  --success-soft: #dce3de;
  --success-strong: #15704e;
  --warning: #8a5c0d;
  --warning-ink: #ffffff;
  --warning-soft: #eae1d7;
  --warning-strong: #7f550c;
  --danger: #ab2720;
  --danger-ink: #ffffff;
  --danger-soft: #eedbd9;
  --danger-strong: #ab2720;
  --chart-1: #8b2f55;
  --chart-2: #a15b16;
  --chart-3: #495308;
  --chart-4: #0b7a69;
  --chart-5: #00537a;
  --chart-6: #7659ad;

  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius-card: 16px;
  --radius-btn: 10px;
  --radius-input: 10px;
  --display-tracking: -0.02em;
  --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: #13070c;
  --surface: #2b2024;
  --surface-2: #1f1318;
  --border: #342a2e;
  --border-strong: #5a5155;
  --ink: #f7f3f2;
  --muted: #9c9596;
  --accent: #8b2f55;
  --accent-hover: #9c4e6f;
  --accent-ink: #ffffff;
  --accent-text: #b98199;
  --accent-strong: #b37690;
  --accent-soft: #2d101c;
  --accent-border: #49192d;
  --success: #15704e;
  --success-ink: #ffffff;
  --success-soft: #131e1b;
  --success-strong: #589980;
  --warning: #8a5c0d;
  --warning-ink: #ffffff;
  --warning-soft: #2d1a0c;
  --warning-strong: #a48042;
  --danger: #ab2720;
  --danger-ink: #ffffff;
  --danger-soft: #340e10;
  --danger-strong: #c8706c;
  --chart-1: #ac4d71;
  --chart-2: #c6762f;
  --chart-3: #798a1c;
  --chart-4: #169c87;
  --chart-5: #1189c4;
  --chart-6: #9476cd;
}

/* Tubewise — the ledger screens: stat tiles, data tables, the scan strip. */

.stat {
  @apply rounded-2xl border border-border bg-surface px-4 py-3;
}
.stat-label {
  @apply text-xs font-semibold uppercase tracking-wide text-muted;
}
.stat-value {
  @apply mt-1 font-display text-2xl font-semibold tracking-tight;
}

.tbl {
  @apply w-full border-collapse text-sm;
}
.tbl th {
  @apply whitespace-nowrap border-b border-border px-3 py-2 text-left text-xs font-semibold uppercase tracking-wide text-muted;
}
.tbl td {
  @apply border-b border-border px-3 py-2 align-top;
}
.tbl tbody tr:last-child td {
  border-bottom: 0;
}
.tbl tbody tr:hover td {
  background: var(--surface-2);
}
.num {
  @apply text-right font-mono tabular-nums;
}

.scan-strip {
  background: linear-gradient(135deg, var(--accent-soft), var(--surface) 70%);
  border: 1px dashed var(--accent);
  border-radius: var(--radius-card);
}
.scan-input {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}
.rule-head {
  border-left: 3px solid var(--accent);
  padding-left: 0.75rem;
}
