/* ── Design tokens (zelfde als kassa) ────────────────────── */
:root {
  --font-sans: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 10px;
  --radius-sm: 6px;
  --accent: oklch(0.78 0.14 78);
  --accent-strong: oklch(0.72 0.16 70);
  --accent-ink: oklch(0.22 0.04 75);
  --duration: 140ms;
  --ease: cubic-bezier(.2,.7,.2,1);
}
[data-theme="light"] {
  --bg: oklch(0.985 0.003 80);
  --surface: oklch(1 0 0);
  --surface-2: oklch(0.965 0.004 80);
  --surface-3: oklch(0.94 0.005 80);
  --border: oklch(0.90 0.005 80);
  --border-strong: oklch(0.82 0.006 80);
  --ink: oklch(0.18 0.01 80);
  --ink-muted: oklch(0.45 0.01 80);
  --ink-subtle: oklch(0.62 0.01 80);
  --shadow: 0 1px 2px rgba(20,18,14,.04), 0 8px 24px -12px rgba(20,18,14,.10);
  --shadow-lg: 0 24px 60px -24px rgba(20,18,14,.18);
  --scrim: rgba(20,18,14,.32);
}
[data-theme="dark"] {
  --bg: oklch(0.16 0.005 80);
  --surface: oklch(0.205 0.006 80);
  --surface-2: oklch(0.235 0.006 80);
  --surface-3: oklch(0.27 0.007 80);
  --border: oklch(0.30 0.007 80);
  --border-strong: oklch(0.40 0.008 80);
  --ink: oklch(0.96 0.005 80);
  --ink-muted: oklch(0.72 0.008 80);
  --ink-subtle: oklch(0.55 0.008 80);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.5);
  --shadow-lg: 0 24px 60px -24px rgba(0,0,0,.6);
  --scrim: rgba(0,0,0,.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; color: inherit; cursor: pointer; border: none; background: none; }
input, select { font-family: inherit; color: inherit; }

.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }
.eyebrow {
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.18em; font-weight: 600; color: var(--ink-subtle);
}

/* ── Login ────────────────────────────────────────────────── */
#login-screen {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; background: var(--bg);
}
#login-box {
  width: 380px; padding: 40px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 14px;
}
#login-logo { text-align: center; margin-bottom: 8px; }
.logo-text { font-weight: 700; font-size: 24px; letter-spacing: -0.02em; color: var(--ink); }
.logo-tagline { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-subtle); font-weight: 500; margin-top: 4px; }
#login-error {
  padding: 10px 12px; border-radius: 8px;
  background: oklch(0.97 0.02 25); border: 1px solid oklch(0.85 0.06 25);
  color: oklch(0.55 0.18 25); font-size: 13px;
}
[data-theme="dark"] #login-error { background: oklch(0.28 0.05 25); border-color: oklch(0.4 0.08 25); }
.login-field { display: flex; flex-direction: column; gap: 6px; }
.login-field label { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-subtle); font-weight: 600; }
.login-field input {
  padding: 9px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--ink); font-size: 14px; outline: none;
  transition: border-color var(--duration) var(--ease);
}
.login-field input:focus { border-color: var(--accent); }
#login-btn {
  margin-top: 4px; padding: 11px; background: var(--ink); color: var(--bg);
  font-size: 14px; font-weight: 600; border-radius: 10px;
  transition: opacity var(--duration) var(--ease);
}
#login-btn:hover { opacity: 0.88; }

/* ── App shell ────────────────────────────────────────────── */
#app {
  display: grid; grid-template-columns: 248px 1fr;
  min-height: 100vh; align-items: start;
}
#content { min-height: 100vh; }

/* ── Sidebar ─────────────────────────────────────────────── */
#sidebar {
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.brand {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.brand-mark {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 600; font-size: 14px; letter-spacing: -0.02em;
}
.brand-name { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; line-height: 1.1; }
.brand-tag { font-size: 11px; color: var(--ink-subtle); margin-top: 2px; }

.nav-section { padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.nav-section + .nav-section { border-top: 1px solid var(--border); }
.nav-section-title {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em;
  font-weight: 600; color: var(--ink-subtle); padding: 4px 10px 8px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px; border-radius: var(--radius-sm);
  color: var(--ink-muted); font-size: 13px; font-weight: 500;
  text-align: left; text-decoration: none;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item.active { background: var(--ink); color: var(--bg); }

#nav-client-back { padding: 10px 12px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
#back-btn {
  display: flex; align-items: center; gap: 6px; padding: 6px 8px;
  color: var(--ink-subtle); font-size: 12px; border-radius: var(--radius-sm);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
#back-btn:hover { background: var(--surface-2); color: var(--ink); }
#nav-client-naam {
  font-size: 12px; font-weight: 600; color: var(--ink);
  padding: 6px 8px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#sidebar-footer { margin-top: auto; padding: 12px 10px; border-top: 1px solid var(--border); }
#logout-btn {
  width: 100%; padding: 8px 10px; border-radius: var(--radius-sm);
  color: var(--ink-muted); font-size: 13px; font-weight: 500; text-align: left;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
#logout-btn:hover { background: oklch(0.97 0.02 25); color: oklch(0.55 0.18 25); }
[data-theme="dark"] #logout-btn:hover { background: oklch(0.28 0.05 25); }

/* ── Main content ─────────────────────────────────────────── */
#content { display: flex; flex-direction: column; min-width: 0; }

/* ── Topbar ──────────────────────────────────────────────── */
#topbar {
  height: 56px; background: var(--surface); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; position: sticky; top: 0; z-index: 10;
}
.topbar-left { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-subtle); }
.topbar-left .sep { opacity: 0.5; }
.topbar-left .now { color: var(--ink); font-weight: 500; }
.topbar-right { display: flex; align-items: center; gap: 8px; }

/* ── Page ────────────────────────────────────────────────── */
.page { padding: 28px; }
.page-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 16px; margin-bottom: 24px;
}
.page-title-block .eyebrow { margin-bottom: 6px; }
.page-title { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.page-subtitle { color: var(--ink-muted); font-size: 13px; margin-top: 4px; }
.page-actions { display: flex; gap: 8px; align-items: center; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--ink); font-size: 13px; font-weight: 500;
  transition: all var(--duration) var(--ease); white-space: nowrap;
}
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.primary:hover { opacity: 0.88; }
.btn.accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent-strong); }
.btn.accent:hover { background: var(--accent-strong); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { color: oklch(0.55 0.18 25); }
.btn.danger:hover { background: oklch(0.97 0.02 25); }
[data-theme="dark"] .btn.danger:hover { background: oklch(0.28 0.05 25); }
.btn.sm { padding: 6px 12px; font-size: 12px; }
.btn.icon { padding: 6px; }

/* ── Cards ───────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; }
.card-header {
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.card-title { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.card-body { padding: 18px; }

/* ── Stat cards ──────────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px;
  display: flex; flex-direction: column; gap: 10px; min-height: 110px;
}
.stat .eyebrow { display: flex; align-items: center; justify-content: space-between; }
.stat-value { font-family: var(--font-mono); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.stat-meta { font-size: 12px; color: var(--ink-muted); }
.stat.accent { border-color: var(--accent); background: color-mix(in oklch, var(--accent) 8%, var(--surface)); }
.stat.accent .stat-value { color: var(--accent-strong); }

/* ── Kasstand ─────────────────────────────────────────────── */
.kasstand-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px;
}
.ks-stat {
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--border);
}
.ks-stat .ks-lbl {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--ink-subtle); font-weight: 600; margin-bottom: 6px;
}
.ks-stat .ks-val {
  font-family: var(--font-mono); font-size: 16px; font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.ks-stat.accent { border-color: var(--accent); background: color-mix(in oklch, var(--accent) 10%, var(--surface)); }
.ks-stat.accent .ks-val { color: var(--accent-strong); font-weight: 600; }
.ks-stat.ok   { border-color: oklch(0.6 0.16 145); background: color-mix(in oklch, oklch(0.6 0.16 145) 10%, var(--surface)); }
.ks-stat.ok   .ks-val { color: oklch(0.55 0.16 145); font-weight: 600; }
.ks-stat.plus { border-color: oklch(0.66 0.13 240); background: color-mix(in oklch, oklch(0.66 0.13 240) 10%, var(--surface)); }
.ks-stat.plus .ks-val { color: oklch(0.55 0.14 240); font-weight: 600; }
.ks-stat.min  { border-color: oklch(0.6 0.18 25); background: color-mix(in oklch, oklch(0.6 0.18 25) 10%, var(--surface)); }
.ks-stat.min  .ks-val { color: oklch(0.55 0.2 25); font-weight: 600; }

/* ── Vergelijking omzet ──────────────────────────────────── */
.vergelijk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.vgl-item { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--surface); }
.vgl-lbl { font-size: 12px; color: var(--ink-muted); margin-bottom: 4px; }
.vgl-val { font-size: 18px; font-weight: 600; font-family: var(--font-mono); }
.vgl-delta { font-size: 13px; font-weight: 600; margin-top: 2px; color: var(--ink-muted); }
.vgl-delta.plus { color: oklch(0.55 0.16 145); }
.vgl-delta.min  { color: oklch(0.55 0.2 25); }

/* ── Charts ──────────────────────────────────────────────── */
.charts-grid { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 14px; margin-bottom: 14px; }
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; }
.bar-label { width: 120px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { flex: 1; height: 6px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 3px; background: var(--accent); transition: width .4s; }
.bar-val { width: 72px; text-align: right; font-weight: 600; font-size: 12px; font-family: var(--font-mono); }
.uur-grid { display: flex; align-items: flex-end; gap: 6px; height: 80px; }
.uur-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.uur-bar { width: 100%; background: var(--accent); border-radius: 3px 3px 0 0; min-height: 2px; }
.uur-label { font-size: 10px; color: var(--ink-subtle); font-family: var(--font-mono); }

/* ── Tables ──────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t thead th {
  text-align: left; font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.18em; font-weight: 600; color: var(--ink-subtle);
  padding: 10px 18px; border-bottom: 1px solid var(--border);
  background: var(--surface-2); white-space: nowrap;
}
table.t tbody td { padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.t tbody tr { transition: background var(--duration) var(--ease); }
table.t tbody tr:hover { background: var(--surface-2); }
table.t tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-family: var(--font-mono); }
td.actions { text-align: right; white-space: nowrap; }
td.actions .btn { opacity: 1; }
td.actions .btn + .btn { margin-left: 6px; }

/* ── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 500; padding: 3px 8px;
  border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--surface-2); color: var(--ink-muted); white-space: nowrap;
}
.badge.on { color: oklch(0.45 0.13 150); background: oklch(0.97 0.02 150); border-color: oklch(0.82 0.06 150); }
.badge.off { color: var(--ink-subtle); }
.badge.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
[data-theme="dark"] .badge.on { background: oklch(0.28 0.05 150); border-color: oklch(0.4 0.08 150); color: oklch(0.85 0.1 150); }

/* ── Form fields ─────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 10px; font-weight: 600; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.12em; }
.field-hint { font-size: 11px; color: var(--ink-subtle); }
.field input, .field select {
  width: 100%; padding: 8px 10px;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); font-size: 13px; color: var(--ink); outline: none;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.field input:focus, .field select:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px oklch(0.78 0.14 78 / 0.22);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.toggle {
  display: inline-flex; align-items: center; gap: 10px;
  cursor: pointer; user-select: none;
}
.toggle .track {
  width: 34px; height: 20px; background: var(--surface-3);
  border: 1px solid var(--border-strong); border-radius: 999px;
  position: relative; transition: background var(--duration) var(--ease);
}
.toggle .knob {
  position: absolute; top: 1px; left: 1px; width: 16px; height: 16px;
  background: var(--surface); border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform var(--duration) var(--ease);
}
.toggle.on .track { background: var(--accent); border-color: var(--accent-strong); }
.toggle.on .knob { transform: translateX(14px); }
.toggle-label { font-size: 13px; line-height: 1.35; }

/* ── Product-form: BTW-note + menu-editor ────────────────── */
.form-note {
  display: flex; align-items: baseline; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 13px; color: var(--ink);
}
.form-note-label {
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--ink-subtle); flex-shrink: 0;
}

.menu-editor {
  display: flex; flex-direction: column; gap: 14px;
  padding: 16px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface-2);
}
.menu-editor-head { display: flex; flex-direction: column; gap: 3px; }
.menu-editor-title { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.menu-editor-hint { font-size: 11px; color: var(--ink-subtle); }
.menu-comp-rows { display: flex; flex-direction: column; gap: 8px; }
.menu-comp-row {
  display: grid; grid-template-columns: 1fr 136px 90px 34px;
  gap: 8px; align-items: center;
}
.menu-comp-row input, .menu-comp-row select {
  width: 100%; padding: 8px 10px; font-size: 13px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); outline: none;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.menu-comp-row input:focus, .menu-comp-row select:focus {
  border-color: var(--accent-strong); box-shadow: 0 0 0 3px oklch(0.78 0.14 78 / 0.22);
}
.menu-comp-row .amount { text-align: right; font-feature-settings: "tnum" 1; }
.menu-comp-remove {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; font-size: 18px; line-height: 1;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink-subtle);
  transition: color var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.menu-comp-remove:hover { color: oklch(0.55 0.18 25); border-color: oklch(0.55 0.18 25); }
.menu-add { align-self: flex-start; }
.menu-comp-head span {
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--ink-subtle); padding: 0 2px;
}
.menu-comp-head span:nth-child(3) { text-align: right; }
.menu-split {
  display: flex; flex-direction: column; gap: 4px;
  padding-top: 12px; border-top: 1px dashed var(--border-strong);
}
.menu-split-label {
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--ink-subtle);
}
.menu-split-val { font-size: 12px; color: var(--ink-muted); font-feature-settings: "tnum" 1; }
.menu-split.ready .menu-split-val {
  display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink);
}
.menu-split-part { white-space: nowrap; }
.menu-split-part strong { font-weight: 600; }

/* Geavanceerd-disclosure */
.adv { border-top: 1px solid var(--border); padding-top: 4px; }
.adv > summary {
  cursor: pointer; list-style: none; padding: 8px 0;
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--ink-subtle);
  transition: color var(--duration) var(--ease);
}
.adv > summary:hover { color: var(--ink-muted); }
.adv > summary::-webkit-details-marker { display: none; }
.adv > summary::before { content: "+  "; font-weight: 700; }
.adv[open] > summary::before { content: "\2013  "; }
.adv-body { margin-top: 4px; }

.drawer-footer-inner {
  display: flex; justify-content: flex-end; gap: 10px;
  margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--border);
}

/* ── Drawers ─────────────────────────────────────────────── */
.drawer-scrim {
  position: fixed; inset: 0; background: var(--scrim);
  opacity: 0; pointer-events: none;
  transition: opacity 200ms var(--ease); z-index: 50;
}
.drawer-scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 480px;
  background: var(--surface); border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform 240ms var(--ease);
  z-index: 51; display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-header {
  padding: 18px 22px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.drawer-eyebrow { font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-subtle); font-weight: 600; margin-bottom: 2px; }
.drawer-title { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.drawer-body { padding: 22px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 16px; }
.drawer-footer {
  padding: 14px 22px; border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 10px;
  background: var(--surface-2);
}

/* ── Klanten grid ────────────────────────────────────────── */
.klanten-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.klant-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.klant-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.klant-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.klant-mark {
  width: 36px; height: 36px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 600; font-size: 13px; flex-shrink: 0;
}
.klant-name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.klant-slug { font-family: var(--font-mono); font-size: 11px; color: var(--ink-subtle); margin-top: 2px; }
.klant-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.klant-meta > div {
  display: flex; flex-direction: column; gap: 3px;
  min-width: 0; font-size: 13px; line-height: 1.4;
  word-break: break-word;
}
.meta { display: flex; flex-direction: column; gap: 2px; }
.meta-label, .klant-meta .meta-label {
  display: block;
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--ink-subtle); font-weight: 600;
}
.meta-value { font-family: var(--font-mono); font-size: 13px; font-weight: 500; }
.klant-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.klant-actions .btn { flex: 0 1 auto; }

/* ── Z-rapport list ──────────────────────────────────────── */
.z-list { display: flex; flex-direction: column; }
.z-row {
  display: grid; grid-template-columns: 110px 80px 1fr auto auto auto;
  gap: 18px; align-items: center; padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  transition: background var(--duration) var(--ease);
}
.fdm-chip {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 0.68rem;
  color: var(--ink-subtle); padding: 3px 8px;
  background: var(--surface-2); border-radius: var(--radius-sm);
  border: 1px solid var(--border); letter-spacing: 0.02em;
  white-space: nowrap;
}
.fdm-chip.empty { visibility: hidden; }
.fdm-dot { width: 5px; height: 5px; border-radius: 50%; background: oklch(0.6 0.16 145); flex-shrink: 0; }
.fdm-dot.mock { background: oklch(0.74 0.13 70); }
.z-row:last-child { border-bottom: 0; }
.z-row:hover { background: var(--surface-2); }
.z-date-day { font-family: var(--font-mono); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.z-date-month { font-family: var(--font-mono); font-size: 11px; color: var(--ink-subtle); text-transform: uppercase; letter-spacing: 0.16em; }
.z-num { font-family: var(--font-mono); font-size: 12px; color: var(--ink-subtle); }
.z-summary { display: flex; gap: 22px; align-items: center; }
.z-stat-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-subtle); font-weight: 600; }
.z-stat-val { font-family: var(--font-mono); font-size: 14px; font-weight: 500; margin-top: 2px; }

/* ── Toolbar ─────────────────────────────────────────────── */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.toolbar-left, .toolbar-right { display: flex; gap: 8px; align-items: center; }

/* ── Journaal ────────────────────────────────────────────── */
.journaal-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.journaal-row label { font-size: 12px; color: var(--ink-muted); }
.journaal-row input[type="date"] {
  padding: 7px 10px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); font-size: 13px; font-family: var(--font-mono); color: var(--ink); outline: none;
}

/* ── Misc ────────────────────────────────────────────────── */
.loading { color: var(--ink-subtle); padding: 48px; text-align: center; font-size: 13px; }
.empty { color: var(--ink-subtle); padding: 32px; text-align: center; font-size: 13px; }
.divider { height: 1px; background: var(--border); margin: 12px 0; }
.hidden { display: none !important; }

/* ── Klant-rechten (entitlements) ────────────────────────── */
.feat-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.feat-chip {
  font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: var(--surface-3); color: var(--ink-muted); border: 1px solid var(--border);
}
.feat-chip.off { color: var(--ink-subtle); font-weight: 500; }
.feat-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 20px; border-bottom: 1px solid var(--border); cursor: pointer;
}
.feat-row:last-child { border-bottom: none; }
.feat-name { font-size: 14px; font-weight: 500; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.feat-soon {
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  padding: 2px 7px; border-radius: 999px; background: var(--surface-3); color: var(--ink-subtle); border: 1px solid var(--border);
}
.feat-toggle { width: 44px; height: 26px; flex-shrink: 0; cursor: pointer; accent-color: var(--accent); }

/* ── Overzicht / Gegevens (admin detail) ─────────────────── */
.ov-meta { display: flex; flex-direction: column; padding: 4px 20px; }
.ov-row { display: flex; gap: 16px; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.ov-row:last-child { border-bottom: none; }
.ov-row .meta-label {
  min-width: 110px; flex-shrink: 0; color: var(--ink-subtle);
  font-size: 13px; font-weight: 500; text-transform: none; letter-spacing: 0;
}
.ov-row > span:last-child { text-align: right; word-break: break-word; }
.ov-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

/* ── QR-tafels ───────────────────────────────────────────── */
.qrt-controls { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.qrt-count-field { margin: 0; flex: 0 0 220px; }
.qrt-controls-actions { display: flex; gap: 10px; margin-left: auto; }

.qrt-empty {
  border: 1px dashed var(--border); border-radius: var(--radius);
  padding: 48px 24px; text-align: center; color: var(--ink-muted);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.qrt-empty svg { opacity: 0.4; }
.qrt-empty-title { font-weight: 600; font-size: 15px; color: var(--ink); }
.qrt-empty-sub { font-size: 13px; }

.qrt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.qrt-tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 12px;
}
.qrt-lbl { font-weight: 600; font-size: 15px; }
.qrt-qr { display: flex; justify-content: center; }
.qrt-qr img, .qrt-qr canvas { background: #fff; border-radius: 6px; display: block; }
.qrt-copy {
  width: 100%; padding: 8px 12px; border-radius: 8px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--border); background: var(--surface-2, var(--surface)); color: var(--ink); cursor: pointer;
}
.qrt-copy:hover { border-color: var(--ink); }
