/* ===========================================================================
   JVM Ticketsysteem — uiterlijk in de stijl van de Duiktrip-app.
   Licht is de standaard; donker via [data-theme="dark"] op <html>.
   De oude variabelenamen (--panel, --ink, --line, ...) blijven bestaan zodat
   inline stijlen in de HTML en in agent.js blijven kloppen.
   =========================================================================== */
/* Inter staat lokaal in /fonts — geen Google Fonts. Zo werkt het lettertype ook
   zonder internet, op een server in het eigen netwerk en in de desktop-app.
   Eén variabel bestand dekt alle diktes van 100 tot 900. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter.woff2') format('woff2');
}

:root {
  /* Basis (licht) */
  --bg1: #eef2f7;
  --bg2: #e2e8f0;
  --grid-line: rgba(0,0,0,.03);
  --card: rgba(255,255,255,.75);
  --cardb: rgba(0,0,0,.10);
  --side: rgba(255,255,255,.70);
  --inp: rgba(0,0,0,.04);
  --inpb: rgba(0,0,0,.12);

  /* Tekst */
  --ink: #0f172a;
  --muted: #475569;
  --faint: #64748b;

  /* Accenten */
  --cyan: #22d3ee;
  --brand: #3b82f6;          /* wordt overschreven door de huisstijlkleur */
  --brand-ink: #04121f;
  --purple: #8b5cf6;
  --ok: #059669;
  --green: #34d399;
  --warn: #b45309;
  --orange: #f59e0b;
  --danger: #ef4444;

  /* Afgeleiden voor bestaande code */
  --bg: var(--bg1);
  --panel: var(--card);
  --panel-2: var(--inp);
  --sidebar-bg: var(--side);
  --line: var(--cardb);
  --line-strong: var(--inpb);
  --brand-tint: rgba(59,130,246,.14);
  --accent-tint: rgba(59,130,246,.08);
  --warn-tint: rgba(245,158,11,.12);
  --grad: linear-gradient(135deg, var(--cyan), var(--brand));

  --radius: 12px;
  --shadow: 0 4px 16px rgba(15,23,42,.06);
  --shadow-lg: 0 24px 64px rgba(15,23,42,.22);
}
:root[data-theme="dark"] {
  --bg1: #0a0f1c;
  --bg2: #070b14;
  --grid-line: rgba(255,255,255,.025);
  --card: rgba(255,255,255,.04);
  --cardb: rgba(255,255,255,.10);
  --side: rgba(10,15,28,.60);
  --inp: rgba(255,255,255,.06);
  --inpb: rgba(255,255,255,.12);

  --ink: #e5edf5;
  --muted: #94a3b8;
  --faint: #7c8ba0;

  --brand: #4b86f0;
  --brand-ink: #04121f;
  --ok: #34d399;
  --warn: #f59e0b;
  --danger: #ef4444;

  --brand-tint: rgba(34,211,238,.16);
  --accent-tint: rgba(59,130,246,.12);
  --warn-tint: rgba(245,158,11,.10);
  --shadow: 0 4px 16px rgba(0,0,0,.35);
  --shadow-lg: 0 24px 64px rgba(0,0,0,.60);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px; line-height: 1.5;
  color: var(--ink);
  background: linear-gradient(135deg, var(--bg1), var(--bg2));
  background-attachment: fixed;
}
/* Fijn ruitjespatroon over de achtergrond — het "papier" van de app */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 34px 34px;
}
body > * { position: relative; z-index: 1; }
a { color: var(--brand); }
.container { max-width: 1180px; margin: 0 auto; padding: 24px; }
.narrow { max-width: 680px; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
.center { text-align: center; }
hr { border: none; border-top: 1px solid var(--cardb); margin: 16px 0; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--inpb); border-radius: 6px; }

/* ===== Klant-topbalk (portaal/ticket/account) ===== */
header.topbar {
  background: var(--side); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--cardb); position: sticky; top: 0; z-index: 20;
}
.topbar .container { display: flex; align-items: center; gap: 16px; padding: 14px 24px; }
.logo { font-weight: 800; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.logo .dot { color: var(--brand); }

/* ===== App-shell met zijbalk (medewerkers) ===== */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 240px; flex-shrink: 0; background: var(--side); backdrop-filter: blur(20px);
  border-right: 1px solid var(--cardb); display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 18px 16px 16px; font-weight: 800; font-size: 16px; }
.sidebar .brand .mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 20px;
  background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(34,211,238,.35); flex: none;
}
.side-nav { flex: 1; padding: 6px 12px; display: flex; flex-direction: column; gap: 4px; overflow: auto; }
.side-item {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px;
  background: transparent; border: 1px solid transparent; color: var(--muted);
  font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; text-align: left; width: 100%;
  transition: .15s; box-shadow: none;   /* geen gloed van de standaardknop */
}
.side-item .ic { width: 20px; text-align: center; display: flex; justify-content: center; }
.side-item:hover { background: var(--inp); color: var(--ink); }
.side-item.active {
  background: linear-gradient(135deg, rgba(34,211,238,.18), rgba(59,130,246,.12));
  color: var(--ink); border-color: rgba(34,211,238,.35);
  box-shadow: 0 8px 24px rgba(34,211,238,.18);
}
.side-foot { border-top: 1px solid var(--cardb); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.side-user { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.side-user .who { line-height: 1.2; }
.side-user .who small { color: var(--faint); font-size: 11px; }
.side-actions { display: flex; gap: 6px; }
.side-actions button { flex: 1; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.main-top {
  position: sticky; top: 0; z-index: 10; background: var(--side); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--cardb); display: flex; align-items: center; gap: 12px; padding: 14px 32px;
}
.main-top h1 { font-size: 24px; font-weight: 800; margin: 0; }
.view-wrap { padding: 26px 32px; }

@media (max-width: 820px) {
  .app { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; flex-direction: row; align-items: center; overflow-x: auto; }
  .sidebar .brand { border-right: 1px solid var(--cardb); white-space: nowrap; padding: 12px 14px; }
  .side-nav { flex-direction: row; }
  .side-item { white-space: nowrap; }
  .side-foot { border-top: none; border-left: 1px solid var(--cardb); flex-direction: row; align-items: center; }
  .main-top, .view-wrap { padding-left: 18px; padding-right: 18px; }
}

/* ===== Kaarten ===== */
.card {
  background: var(--card); border: 1px solid var(--cardb); border-radius: 18px;
  padding: 20px; backdrop-filter: blur(20px); box-shadow: var(--shadow);
}
.card + .card { margin-top: 18px; }

/* Blokken onder elkaar op gelijke afstand. Met enkel "kaart volgt op kaart"
   valt de ruimte weg zodra er een cijferrij of tweekolomsblok tussen staat;
   een gap op de container geldt altijd. */
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack > .card + .card { margin-top: 0; }
.stack > .stats { margin-bottom: 0; }
.stack > .row { margin: 0; }
h1 { font-size: 24px; font-weight: 800; margin: 0 0 6px; }
h2 { font-size: 15px; font-weight: 700; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
h3 { font-size: 14px; font-weight: 700; margin: 0 0 8px; }
.sub { color: var(--muted); margin: 0 0 16px; font-size: 13px; }

/* ===== Formulieren ===== */
label {
  display: block; font-size: 11.5px; color: var(--muted); font-weight: 600;
  margin: 14px 0 5px; text-transform: uppercase; letter-spacing: .4px;
}
input, textarea, select, button { font: inherit; }
input, textarea, select {
  width: 100%; padding: 9px 12px; font-size: 13px; color: var(--ink);
  background: var(--inp); border: 1px solid var(--inpb); border-radius: 10px;
  outline: none; transition: .15s;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, textarea:focus, select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,211,238,.15); }
textarea { min-height: 110px; resize: vertical; }
:root[data-theme="dark"] select option { background: #0f172a; color: #e5edf5; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 0; }

button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--brand-ink);
  background: var(--grad); border: none; padding: 9px 16px; border-radius: 10px;
  cursor: pointer; text-decoration: none; transition: .15s;
  box-shadow: 0 8px 24px rgba(34,211,238,.35);
}
button:hover, .btn:hover { filter: brightness(1.08); }
button.ghost, .btn.ghost {
  background: var(--inp); color: var(--ink); border: 1px solid var(--inpb); box-shadow: none;
}
button.ghost:hover, .btn.ghost:hover { background: var(--cardb); filter: none; }
button.sm, .btn.sm { padding: 6px 11px; font-size: 12px; }
button:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
button.btn-danger {
  background: transparent; color: var(--danger); border: 1px solid rgba(239,68,68,.4); box-shadow: none;
}
button.btn-danger:hover { background: rgba(239,68,68,.15); filter: none; }
.icon-btn {
  width: 36px; height: 36px; padding: 0; background: var(--inp); color: var(--muted);
  border: 1px solid var(--inpb); border-radius: 10px; box-shadow: none;
}
.icon-btn:hover { background: var(--cardb); color: var(--ink); filter: none; }

/* ===== Badges / pillen ===== */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px;
  border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap;
}
.pri-low    { background: rgba(100,116,139,.15); color: #64748b; }
.pri-normal { background: rgba(59,130,246,.15);  color: #3b82f6; }
.pri-high   { background: rgba(245,158,11,.15);  color: #d97706; }
.pri-urgent { background: rgba(239,68,68,.15);   color: #ef4444; }
.st-new      { background: rgba(139,92,246,.15); color: #8b5cf6; }
.st-open     { background: rgba(59,130,246,.15); color: #3b82f6; }
.st-pending  { background: rgba(245,158,11,.15); color: #d97706; }
.st-resolved { background: rgba(52,211,153,.18); color: #059669; }
.st-closed   { background: rgba(100,116,139,.15); color: #64748b; }
:root[data-theme="dark"] .pri-low, :root[data-theme="dark"] .st-closed { color: #94a3b8; }
:root[data-theme="dark"] .st-resolved { color: var(--green); }
:root[data-theme="dark"] .pri-high, :root[data-theme="dark"] .st-pending { color: var(--orange); }
.tag {
  display: inline-block; padding: 2px 9px; border-radius: 8px;
  background: var(--inp); color: var(--muted); font-size: 11px; font-weight: 600;
}
.tag.cat { background: rgba(34,211,238,.15); color: #0891b2; }
:root[data-theme="dark"] .tag.cat { color: var(--cyan); }
.src { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .4px; }
.pri-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.dot-low { background: #94a3b8; } .dot-normal { background: var(--brand); }
.dot-high { background: var(--orange); } .dot-urgent { background: var(--danger); }

/* ===== Avatars ===== */
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0;
  background: var(--inp); color: var(--muted);
}
.avatar.sm { width: 24px; height: 24px; font-size: 10px; }

.notice { padding: 12px 15px; border-radius: 12px; margin: 12px 0; font-size: 13px; font-weight: 500; }
.notice.ok { background: rgba(52,211,153,.15); color: #047857; }
.notice.err { background: rgba(239,68,68,.15); color: #b91c1c; }
:root[data-theme="dark"] .notice.ok { color: var(--green); }
:root[data-theme="dark"] .notice.err { color: #fca5a5; }

/* ===== Conversatie ===== */
.thread { display: flex; flex-direction: column; gap: 12px; }
.msg { padding: 13px 15px; border-radius: 14px; border: 1px solid var(--cardb); background: var(--inp); }
.msg.agent { background: rgba(59,130,246,.10); border-color: rgba(59,130,246,.20); }
.msg.internal { background: rgba(245,158,11,.10); border-color: rgba(245,158,11,.25); }
.msg.system { background: transparent; font-size: 12.5px; color: var(--muted); }
.msg .meta { font-size: 12px; color: var(--muted); margin-bottom: 5px; display: flex; gap: 8px; align-items: center; }
.msg .body { white-space: pre-wrap; }

/* ===== Statistieken ===== */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 18px; }
.stat {
  background: var(--card); border: 1px solid var(--cardb); border-radius: 18px;
  padding: 18px 20px; backdrop-filter: blur(20px);
}
.stat .n {
  font-size: 30px; font-weight: 800; line-height: 1.1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat .l { font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-top: 6px; }
.stat.alert .n { background: linear-gradient(135deg, var(--orange), var(--danger)); -webkit-background-clip: text; background-clip: text; }

/* Cijferblokken die als filter dienen. Het zijn knoppen, dus de standaard
   knopopmaak (verloop + gloed) moet er expliciet af. */
button.stat {
  font: inherit; color: inherit; text-align: left; width: 100%; display: block;
  cursor: pointer; box-shadow: none; transition: .15s;
}
button.stat:hover { border-color: rgba(34,211,238,.35); box-shadow: 0 8px 24px rgba(34,211,238,.12); filter: none; }
button.stat.on {
  border-color: rgba(34,211,238,.55);
  background: linear-gradient(135deg, rgba(34,211,238,.14), rgba(59,130,246,.08));
  box-shadow: 0 8px 24px rgba(34,211,238,.18);
}
button.stat.on .l { color: var(--ink); }

/* ===== Ticketlijst (rijen) ===== */
.ticket-list { display: flex; flex-direction: column; gap: 10px; }
.ticket-row {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; cursor: pointer;
  background: var(--card); border: 1px solid var(--cardb); border-radius: 14px; padding: 13px 16px;
  color: inherit; backdrop-filter: blur(20px); box-shadow: none; transition: .15s;
}
.ticket-row:hover { border-color: rgba(34,211,238,.35); box-shadow: 0 8px 24px rgba(34,211,238,.12); }
.ticket-row.active { border-color: rgba(34,211,238,.5); box-shadow: 0 8px 24px rgba(34,211,238,.2); }
.tr-main { min-width: 0; flex: 1; }
.tr-title { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-sub { font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.tr-side { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.tr-time { font-size: 11.5px; color: var(--faint); width: 58px; text-align: right; }
@media (max-width: 640px) { .tr-side .tag.cat, .tr-time { display: none; } }

/* ===== Toolbar ===== */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar select, .toolbar input { width: auto; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; white-space: nowrap;
  color: var(--muted); text-transform: none; letter-spacing: 0; margin: 0; }
.chk input { width: auto; }

/* ===== Ticketdetail (twee kolommen) ===== */
.detail-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.detail-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 900px) { .detail-grid { grid-template-columns: 1fr 300px; align-items: start; } }
.panel-col { display: flex; flex-direction: column; gap: 16px; }
.panel-block .plabel { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 5px; font-weight: 600; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; font-size: 13px; }
.kv dt { color: var(--muted); }

/* ===== Tabellen ===== */
table.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
table.grid th, table.grid td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--cardb); }
table.grid th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .4px; font-weight: 600; }
table.grid tr:hover td { background: var(--inp); }
table.grid tr:last-child td { border-bottom: none; }
.right { text-align: right; }
.num { font-variant-numeric: tabular-nums; }

/* ===== Tabs (beheer) ===== */
.tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.tab {
  background: var(--inp); color: var(--muted); border: 1px solid var(--inpb);
  padding: 8px 14px; font-weight: 600; font-size: 12.5px; border-radius: 10px; box-shadow: none;
}
.tab:hover { color: var(--ink); background: var(--cardb); filter: none; }
.tab.active {
  background: linear-gradient(135deg, rgba(34,211,238,.18), rgba(59,130,246,.12));
  color: var(--ink); border-color: rgba(34,211,238,.35);
}

/* ===== Overige ===== */
.subcard { border: 1px solid var(--cardb); border-radius: 14px; padding: 14px; margin-top: 12px; background: var(--inp); }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.inline-form > div { display: flex; flex-direction: column; }
.inline-form label { margin: 0 0 4px; }
.inline-form input, .inline-form select { width: auto; }
.file-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--cardb); font-size: 13px; }
.file-row:last-child { border-bottom: none; }
.att-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; border: 1px solid var(--cardb); cursor: pointer; flex: none; background: var(--inp); }
.att-icon { width: 40px; text-align: center; font-size: 20px; flex: none; }
.att-info { display: flex; flex-direction: column; min-width: 0; }
.att-name { color: var(--brand); background: none; border: none; padding: 0; font-size: 13px; font-weight: 600; text-align: left;
  cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-shadow: none; }
.att-name:hover { text-decoration: underline; filter: none; }
.att-actions { display: flex; align-items: center; gap: 6px; flex: none; }

/* Voorbeeldvenster voor bijlagen */
.preview-overlay { position: fixed; inset: 0; background: rgba(2,6,16,.75); backdrop-filter: blur(6px);
  z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; }
.preview-box { background: var(--bg1); border: 1px solid var(--cardb); border-radius: 20px; box-shadow: var(--shadow-lg);
  width: min(1000px, 100%); height: min(88vh, 100%); display: flex; flex-direction: column; overflow: hidden; }
.preview-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--cardb); }
.preview-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-body { flex: 1; min-height: 0; background: var(--inp); display: flex; align-items: center; justify-content: center; }
.preview-body img { max-width: 100%; max-height: 100%; object-fit: contain; }
.preview-body iframe { width: 100%; height: 100%; border: 0; background: #fff; }
@media (max-width: 640px) {
  .file-row { flex-wrap: wrap; }
  .att-actions { width: 100%; justify-content: flex-end; }
  .preview-box { height: 100%; }
}
.danger-link { color: var(--danger); cursor: pointer; background: none; border: none; padding: 0; font-size: 12.5px;
  font-weight: 600; box-shadow: none; }
.danger-link:hover { filter: none; text-decoration: underline; }
.sla-late { background: rgba(239,68,68,.15); color: #b91c1c; }
:root[data-theme="dark"] .sla-late { color: #fca5a5; }
.sla-ok { color: var(--muted); }

/* ===== Modal ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(2,6,16,.75); backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; z-index: 100; overflow: auto; }
.modal { background: var(--bg1); border: 1px solid var(--cardb); border-radius: 20px;
  box-shadow: var(--shadow-lg); padding: 26px; width: 640px; max-width: 100%; }
:root[data-theme="dark"] .modal { background: linear-gradient(135deg, #0f172a, #0a0f1c); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.modal-head h2 { margin: 0; font-size: 18px; font-weight: 800; }

/* ===== Inklapbare kaart ===== */
.fold-btn {
  background: none; border: none; box-shadow: none; padding: 0;
  width: 20px; height: 20px; color: var(--muted); cursor: pointer;
  font-size: 12px; line-height: 1; flex: none; transition: transform .15s;
}
.fold-btn:hover { color: var(--ink); filter: none; background: none; }
.card.is-dicht .fold-btn { transform: rotate(-90deg); }
.card.is-dicht .fold-body { display: none; }
.card.is-dicht { padding-bottom: 16px; }
.card.is-dicht h2 { margin-bottom: 0; }

/* ===== Afdrukken (checklist meenemen naar de klant) ===== */
#printArea { display: none; }
@media print {
  /* Alleen het afdrukblad tonen; de rest van het scherm valt weg. */
  body { background: #fff; }
  body::before, .app { display: none !important; }
  #printArea {
    display: block; position: static; padding: 0;
    font-family: 'Inter', system-ui, sans-serif; color: #000;
  }
  #printArea h1 { font-size: 18pt; margin: 0 0 4px; }
  #printArea .meta { font-size: 10pt; color: #444; margin: 0 0 22px; }
  #printArea ul { list-style: none; padding: 0; margin: 0; }
  #printArea li { display: flex; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid #ddd; font-size: 12pt; page-break-inside: avoid; }
  #printArea .vak { display: inline-block; width: 16pt; height: 16pt; border: 1.5pt solid #333; text-align: center; line-height: 15pt; font-weight: 700; flex: none; }
  #printArea .af { text-decoration: line-through; color: #666; }
  #printArea .ruimte { margin: 26px 0 6px; font-size: 10pt; color: #444; }
  #printArea .lijnen div { border-bottom: 1px solid #bbb; height: 24px; }
  @page { margin: 18mm; }
}

/* ===== Lege toestanden ===== */
.empty { text-align: center; padding: 40px; color: var(--muted); }
.empty .ic { font-size: 42px; margin-bottom: 10px; opacity: .6; }
