/* Afsluit Delta — stijl. Sectiekleuren volgen de kleuren uit het Afsluitblad. */
:root {
  color-scheme: light;
  --bg: #f4f3ef;
  --surface: #ffffff;
  --mention: #1155cc; /* @vermelding: zoals een link in Gmail */
  --surface-2: #f6f5f1;
  --surface-3: #ecebe6;
  --ink: #18181b;
  --ink-2: #4d4c55;
  --muted: #7d7b85;
  --line: #e4e2dc;
  --line-2: #d3d1ca;
  --brand: #17110f;
  --brand-2: #0f0a0b;
  --brand-ink: #ffffff;
  --brand-soft: #ebe9e4;
  --focus: #2f7de1;

  --ok: #13773a;       --ok-soft: #e3f3e8;
  --warn: #9a5b00;     --warn-soft: #fdf1dc;
  --bad: #b42318;      --bad-soft: #fcebe9;

  --s-ls: #b42318;     --s-ls-soft: #fdeeec;
  --s-cash: #1f5fa8;   --s-cash-soft: #e8f0fa;
  --s-disc: #946200;   --s-disc-soft: #fbf3dd;
  --s-dj: #5a3fa5;     --s-dj-soft: #f0ecf9;
  --s-check: #8e3563;  --s-check-soft: #f8eaf1;
  --s-inv: #b9530b;    --s-inv-soft: #fdf0e3;
  --s-bon: #3d7d2a;    --s-bon-soft: #ebf5e6;

  --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; --series-4: #eda100;
  --series-5: #e87ba4; --series-6: #008300; --series-7: #6250d6; --series-8: #e34948;
  --grid: #e9e7e1;

  --r: 14px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 20, 30, .05), 0 6px 20px rgba(20, 20, 30, .04);
  --shadow-lg: 0 10px 40px rgba(10, 10, 20, .18);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --nav-h: 64px;
  --side-w: 236px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #101013;
    --surface: #1a1a1f;
    --mention: #8ab4f8;
    --surface-2: #212127;
    --surface-3: #2a2a31;
    --ink: #f2f1f4;
    --ink-2: #c3c1ca;
    --muted: #8f8d98;
    --line: #2b2b32;
    --line-2: #3a3a43;
    --brand: #f2f1f4;
    --brand-2: #070506;
    --brand-ink: #111013;
    --brand-soft: #2a2a30;
    --focus: #6aa8f0;
    --ok: #4cc27a;   --ok-soft: #14291c;
    --warn: #f0b44c; --warn-soft: #2d2412;
    --bad: #f27a6e;  --bad-soft: #321a18;
    --s-ls: #f08074;    --s-ls-soft: #2c1a19;
    --s-cash: #6ea6ea;  --s-cash-soft: #172434;
    --s-disc: #e2b04a;  --s-disc-soft: #2a2414;
    --s-dj: #a995ec;    --s-dj-soft: #221d33;
    --s-check: #e588b6; --s-check-soft: #2c1a24;
    --s-inv: #f0a062;   --s-inv-soft: #2d2116;
    --s-bon: #87c96e;   --s-bon-soft: #1b2816;
    --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500;
    --series-5: #d55181; --series-6: #008300; --series-7: #9085e9; --series-8: #e66767;
    --grid: #2a2a30;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.45 var(--font);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); }
h1, h2, h3 { margin: 0; line-height: 1.2; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- opstartscherm ---------- */
.boot { min-height: 100vh; display: grid; place-items: center; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- shell ---------- */
.shell { min-height: 100vh; }
.side {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w); background: var(--brand-2); color: #fff;
  display: flex; flex-direction: column; padding: 18px 12px; z-index: 20;
}
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding: 8px 12px 22px; color: #fff; text-decoration: none; }
.wordmark { display: block; height: 22px; width: auto; }
.brand-sub { font-size: 12px; opacity: .6; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.side { overflow: hidden; }
.side::after {
  content: ""; position: absolute; left: -30px; right: -60px; bottom: 74px; height: 70px; pointer-events: none;
  background: url("/img/delta-wordmark-white.svg") left center / contain no-repeat; opacity: .05;
}
.side nav, .side .me, .side .brand { position: relative; z-index: 1; }
.side .cover-btn {
  position: absolute; top: 22px; right: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 10px; border: 0; cursor: pointer;
  display: grid; place-items: center; background: rgba(255,255,255,.08); color: rgba(255,255,255,.82);
}
.side .cover-btn:hover { background: rgba(255,255,255,.16); color: #fff; }
.side .cover-btn svg { width: 18px; height: 18px; }
/* scherm verborgen: zwart met het witte DELTA-logo, tot er invoer komt */
dialog.cover {
  position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #000; color: #fff; overflow: hidden; cursor: default; outline: none;
}
dialog.cover::backdrop { background: #000; }
.cover-logo { position: absolute; inset: 0; display: grid; place-items: center; }
.cover-mark { width: min(56vw, 560px); height: auto; color: #fff; }
.cover-hint {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); background: rgba(255,255,255,.12); color: #fff;
  padding: 8px 14px; border-radius: 99px; font-size: 14px; white-space: nowrap; transition: opacity .6s ease;
}
dialog.cover.quiet .cover-hint { opacity: 0; }
.side nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.side .nav-group { margin: 14px 10px 4px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .55; }
.side a.nav {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: rgba(255,255,255,.82);
  text-decoration: none; font-weight: 550;
}
.side a.nav:hover { background: rgba(255,255,255,.08); color: #fff; }
.side a.nav[aria-current="page"] { background: #fff; color: #0f0a0b; }
.side a.nav svg { width: 19px; height: 19px; flex: none; }
.side .me { margin-top: auto; padding: 12px 10px 2px; border-top: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; gap: 10px; }
.side .me button { background: none; border: 0; color: inherit; text-align: left; cursor: pointer; padding: 0; display: flex; gap: 10px; align-items: center; width: 100%; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.me-name { font-weight: 600; font-size: 14px; }
.me-role { font-size: 12px; opacity: .65; }

.main { margin-left: var(--side-w); padding: 26px 32px 120px; max-width: calc(1180px + var(--side-w)); }
.topbar { display: none; }
.bottomnav { display: none; }

@media (max-width: 959px) {
  .side { display: none; }
  .main { margin-left: 0; padding: 14px 16px calc(var(--nav-h) + 96px + env(safe-area-inset-bottom)); }
  .topbar {
    display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 15;
    background: var(--brand-2); color: #fff; padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top));
  }
  .topbar .brand { padding: 0; }
  .topbar .wordmark { height: 17px; }
  .topbar .grow { flex: 1; }
  .topbar .chip-period { background: rgba(255,255,255,.14); color: #fff; border-radius: 99px; padding: 4px 10px; font-size: 12px; font-weight: 600; }
  .bottomnav {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  }
  .bottomnav a, .bottomnav button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: var(--nav-h);
    color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 600; background: none; border: 0; cursor: pointer;
  }
  .bottomnav svg { width: 22px; height: 22px; }
  .bottomnav [aria-current="page"] { color: var(--brand); }
}

/* ---------- paginakop ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { font-size: 26px; font-weight: 750; letter-spacing: -.01em; }
.page-head h1 .badge { vertical-align: middle; position: relative; top: -3px; margin-left: 4px; font-weight: 650; }
.page-head .sub { color: var(--muted); margin-top: 4px; font-size: 14px; }
.page-head .btn-row > select.input { width: auto; min-width: 150px; max-width: 220px; }
@media (max-width: 599px) { .page-head .btn-row > select.input { max-width: none; flex: 1 1 100%; } }
@media (max-width: 959px) { .page-head h1 { font-size: 22px; } .page-head { margin-bottom: 14px; } }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -4px 0 18px; overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button {
  padding: 10px 14px; border: 0; background: none; color: var(--muted); font-weight: 600; text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer;
}
.tabs [aria-current="page"], .tabs [aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brand); }

/* ---------- kaarten ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card + .card, .stack > * + * { margin-top: 14px; }
.card-pad { padding: 16px 18px; }
.sec { padding: 16px 18px 18px; border-top: 4px solid var(--sec, var(--line)); border-radius: var(--r); }
.sec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.sec-head > div:not(.right) { flex: 1 1 180px; min-width: 0; }
.sec-head .ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--sec-soft, var(--surface-2)); color: var(--sec, var(--ink-2)); flex: none; }
.sec-head .ico svg { width: 17px; height: 17px; }
.sec-head h2 { font-size: 16px; font-weight: 700; }
.sec-head .hint { color: var(--muted); font-size: 13px; }
.sec-head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sec.ls { --sec: var(--s-ls); --sec-soft: var(--s-ls-soft); }
.sec.cash { --sec: var(--s-cash); --sec-soft: var(--s-cash-soft); }
.sec.disc { --sec: var(--s-disc); --sec-soft: var(--s-disc-soft); }
.sec.dj { --sec: var(--s-dj); --sec-soft: var(--s-dj-soft); }
.sec.ctl { --sec: var(--s-check); --sec-soft: var(--s-check-soft); }
.sec.inv { --sec: var(--s-inv); --sec-soft: var(--s-inv-soft); }
.sec.bon { --sec: var(--s-bon); --sec-soft: var(--s-bon-soft); }
.sec.acc { --sec: var(--brand); --sec-soft: var(--brand-soft); }

.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.grid2 > .card + .card, .grid3 > .card + .card, .grid4 > .card + .card { margin-top: 0; }
@media (max-width: 1100px) { .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 959px) { .grid3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
.cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.cols > .card + .card { margin-top: 0; }
@media (max-width: 1100px) { .cols { grid-template-columns: minmax(0, 1fr); } }

/* ---------- formulieren ---------- */
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span, .label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field small { color: var(--muted); font-size: 12px; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.fields.wide { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.input, select.input, textarea.input {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--surface); font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
textarea.input { min-height: 72px; resize: vertical; }
.input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); }
.input.invalid { border-color: var(--bad); }
.money-wrap { position: relative; }
.money-wrap::before { content: "€"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.money-wrap .input { padding-left: 28px; text-align: right; font-variant-numeric: tabular-nums; }
.money-wrap .sign { position: absolute; right: 4px; top: 4px; bottom: 4px; }
.money-wrap.has-sign .input { padding-right: 46px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 16px;
  border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  font-weight: 650; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--bad); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { min-height: 34px; padding: 6px 11px; font-size: 13px; }
.btn.xs { min-height: 28px; padding: 3px 9px; font-size: 12px; border-radius: 8px; }
.btn.lg { min-height: 50px; padding: 12px 22px; font-size: 16px; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn.icon { padding: 0; width: 42px; }
.btn.icon.sm { width: 34px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.seg { display: inline-flex; background: var(--surface-3); border-radius: 12px; padding: 3px; gap: 2px; max-width: 100%; overflow-x: auto; }
.seg button {
  border: 0; background: none; padding: 8px 14px; border-radius: 9px; font-weight: 650; color: var(--ink-2); cursor: pointer; white-space: nowrap; min-height: 38px;
}
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.seg.full { display: flex; }
.seg.full button { flex: 1; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; user-select: none; }
.switch input { appearance: none; width: 42px; height: 24px; border-radius: 99px; background: var(--line-2); position: relative; cursor: pointer; transition: background .2s; margin: 0; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { transform: translateX(18px); }

.checkbox { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--brand); }

/* datum-navigatie */
.datebar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.datebar .input { width: auto; min-width: 150px; }
.datebar .when { font-weight: 650; color: var(--ink-2); margin-left: 6px; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); min-height: 48px; }
.chips:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); }
.chips input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 120px; padding: 6px; font-size: 16px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 6px 5px 11px; background: var(--brand-soft); color: var(--brand); border-radius: 99px; font-weight: 650; font-size: 14px; }
.chip button { border: 0; background: none; color: inherit; cursor: pointer; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; padding: 0; }
.chip button:hover { background: rgba(0,0,0,.08); }
.chip button svg { width: 14px; height: 14px; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.quick button { border: 1px dashed var(--line-2); background: none; border-radius: 99px; padding: 5px 11px; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.quick button:hover { border-style: solid; color: var(--ink); }

/* ---------- coupures ---------- */
.denoms-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 2px 0 10px; }
.denoms-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 12px 0 8px; }
.denoms { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
@media (max-width: 420px) { .denoms { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } }
.den {
  display: grid; grid-template-columns: 1fr; gap: 4px; padding: 8px 9px 7px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--surface-2); cursor: text; transition: border-color .15s, background .15s;
}
.den:focus-within { border-color: var(--focus); background: var(--surface); }
.den.has { background: var(--surface); border-color: var(--line-2); }
.den-top { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; }
.den-face { font-weight: 800; font-size: 15px; }
.den.bill .den-face { color: var(--s-cash); }
.den-sub { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.den input {
  width: 100%; border: 0; background: transparent; font-size: 20px; font-weight: 700; padding: 2px 0; outline: none; text-align: left; min-width: 0;
}
.den input::placeholder { color: var(--line-2); }
/* kleinere tegels (kluistelling, hulptool): coupure en aantal op één regel */
.den-compact .denoms { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 5px; }
.den-compact .denoms-label { margin: 8px 0 5px; font-size: 11px; }
.den-compact .den { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px; padding: 3px 8px; border-radius: 8px; }
.den-compact .den-top { display: contents; }
.den-compact .den-sub { display: none; }
.den-compact .den-face { font-size: 13px; }
.den-compact .den input { font-size: 16px; padding: 3px 0; text-align: right; }
@media (max-width: 420px) { .den-compact .denoms { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.den-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.den-total b { font-size: 22px; }

/* ---------- vaste opslaan-balk ---------- */
.savebar {
  position: sticky; bottom: 12px; z-index: 10; margin-top: 18px; display: flex; align-items: center; gap: 14px;
  padding: 12px 14px 12px 18px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-lg);
}
.savebar .sum { display: flex; flex-direction: column; line-height: 1.15; }
.savebar .sum small { color: var(--muted); font-size: 12px; font-weight: 600; }
.savebar .sum b { font-size: 20px; }
.savebar .grow { flex: 1; }
.savebar .state { font-size: 12.5px; color: var(--muted); }
@media (max-width: 959px) { .savebar { bottom: calc(var(--nav-h) + 10px + env(safe-area-inset-bottom)); } }

/* ---------- status ---------- */
.badge { display: inline-flex; flex-direction: row; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.badge svg { width: 13px; height: 13px; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.brand { background: var(--brand-soft); color: var(--brand); }
.pos { color: var(--ok); } .neg { color: var(--bad); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.strong { font-weight: 700; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt { margin-top: 14px; } .mt-s { margin-top: 8px; } .mb { margin-bottom: 14px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; }

.banner { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; }
.banner svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.banner.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.banner.bad { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.banner.ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.banner.info { background: var(--brand-soft); border-color: transparent; color: var(--brand); }
.banner .grow { color: var(--ink-2); }
.banner b { color: inherit; }

/* controle-lijst */
.checks { display: flex; flex-direction: column; }
.checkrow { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.checkrow:first-child { border-top: 0; }
.checkrow .dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; }
.checkrow .dot svg { width: 15px; height: 15px; }
.checkrow.ok .dot { background: var(--ok-soft); color: var(--ok); }
.checkrow.warn .dot { background: var(--warn-soft); color: var(--warn); }
.checkrow.bad .dot { background: var(--bad-soft); color: var(--bad); }
.checkrow.na .dot { background: var(--surface-3); color: var(--muted); }
.checkrow .lbl { font-weight: 650; }
.checkrow .expl { font-size: 12.5px; color: var(--muted); }
.checkrow .val { font-weight: 750; font-size: 16px; text-align: right; }

/* ---------- vandaag ---------- */
.floorcard { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.floorcard h3 { font-size: 18px; font-weight: 750; }
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.step { min-width: 0; border-radius: 12px; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line); }
.step .t { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; display: flex; gap: 6px; align-items: center; }
.step .t svg { width: 14px; height: 14px; }
.step .v { font-size: 17px; font-weight: 750; margin-top: 2px; }
.step .w { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step.done { background: var(--ok-soft); border-color: transparent; }
.step.done .t { color: var(--ok); }

/* ---------- tabellen ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface); position: sticky; top: 0; }
table.t td { padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t td.num, table.t th.num { text-align: right; white-space: nowrap; }
table.t tfoot td { font-weight: 750; border-top: 2px solid var(--line-2); border-bottom: 0; }
table.t tbody tr.click { cursor: pointer; }
table.t tbody tr.click:hover td { background: var(--surface-2); }
table.t tr.sub td { background: var(--surface-2); font-size: 13px; }
table.t .actions { text-align: right; white-space: nowrap; }

/* lijst (mobielvriendelijk) */
.list { display: flex; flex-direction: column; }
.item { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 16px; border-top: 1px solid var(--line); align-items: center; }
.item:first-child { border-top: 0; }
.item.click { cursor: pointer; }
.item.click:hover { background: var(--surface-2); }
.item .title { font-weight: 650; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .meta { grid-column: 1; font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.item .amount { font-weight: 750; text-align: right; white-space: nowrap; }
.item .side-r { grid-row: 1 / span 2; grid-column: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.item.sel { background: var(--brand-soft); }
.item .cb { display: flex; align-items: center; }
.item.with-cb { grid-template-columns: auto 1fr auto; }
.item.with-cb .cb { grid-row: 1 / span 2; }
.item.with-cb .meta { grid-column: 2; }
.item.with-cb .side-r { grid-column: 3; }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); }

/* ---------- kpi ---------- */
.kpi { padding: 14px 16px; }
.kpi .k { font-size: 12.5px; font-weight: 650; color: var(--muted); }
.kpi .v { font-size: 24px; font-weight: 800; letter-spacing: -.01em; margin-top: 2px; }
@media (max-width: 599px) { .kpi { padding: 12px 13px; } .kpi .v { font-size: clamp(15px, 4.9vw, 19px); white-space: nowrap; } }
.kpi .d { font-size: 12.5px; margin-top: 2px; color: var(--ink-2); }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chart-box { position: relative; height: 300px; }
.chart-box.sm { height: 240px; }
.pchips { display: flex; flex-wrap: wrap; gap: 6px; }
.pchip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 99px; padding: 6px 12px; font-weight: 650; font-size: 13.5px; cursor: pointer; }
.pchip[aria-pressed="true"] { border-color: var(--ink-2); background: var(--surface-2); }
.pchip .legend-dot { margin: 0; }
.pchip[aria-pressed="false"] .legend-dot { background: var(--line-2) !important; }

/* ---------- modal ---------- */
.modal { border: 0; padding: 0; border-radius: 18px; background: var(--surface); color: var(--ink); width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); box-shadow: var(--shadow-lg); }
.modal.wide { width: min(860px, calc(100vw - 24px)); }
.modal::backdrop { background: rgba(10, 12, 20, .45); backdrop-filter: blur(2px); }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 6px; }
.modal-head h2 { font-size: 18px; font-weight: 750; flex: 1; }
.modal-body { padding: 10px 18px 6px; overflow-y: auto; max-height: calc(100vh - 170px); }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 18px 16px; flex-wrap: wrap; }
.modal-foot .grow { flex: 1; }
@media (max-width: 600px) {
  .modal, .modal.wide { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 18px 18px 0 0; max-height: 92vh; }
  .modal-body { max-height: calc(92vh - 140px); }
}

/* ---------- toasts ---------- */
.toasts { position: fixed; left: 50%; transform: translateX(-50%); top: 18px; z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 24px); }
@media (max-width: 959px) { .toasts { top: calc(62px + env(safe-area-inset-top)); } }
.toast { background: #1f1f24; color: #fff; padding: 11px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: 14px; display: flex; gap: 9px; align-items: center; animation: tin .2s ease-out; }
.toast svg { width: 17px; height: 17px; flex: none; }
.toast.ok svg { color: #6fd894; } .toast.err { background: #8f1d14; }
@keyframes tin { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: #0f0a0b; position: relative; overflow: hidden; }
.login-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background: url("/img/delta-wordmark-white.svg") center / min(92vw, 1500px) auto no-repeat;
  transform: rotate(-8deg);
}
.login .card { width: min(400px, 100%); padding: 30px 26px 26px; position: relative; z-index: 1; }
.login-logo { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink); margin-bottom: 10px; }
.login-logo .logo-tri { width: 92px; height: auto; }
.login-sub { font-size: 12px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); padding-left: .3em; }
.login h1 { text-align: center; }
.login h1 + p, .login form + p { text-align: center; }
.login h1 { font-size: 21px; margin-bottom: 4px; }
.login form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }

/* overige */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 650; text-align: right; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }
.sheet-menu { display: flex; flex-direction: column; }
.sheet-menu a, .sheet-menu button { display: flex; align-items: center; gap: 12px; padding: 14px 6px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; text-align: left; cursor: pointer; width: 100%; }
.sheet-menu svg { width: 20px; height: 20px; color: var(--muted); }
details.more > summary { cursor: pointer; font-weight: 650; color: var(--ink-2); list-style: none; display: flex; align-items: center; gap: 6px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary svg { width: 16px; height: 16px; transition: transform .15s; }
details.more[open] > summary svg { transform: rotate(90deg); }
.container-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--surface); }
.container-card + .container-card { margin-top: 10px; }
/* Sleepzone voor bestanden (label met verborgen input) */
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 168px;
  padding: 26px 20px; border: 2px dashed var(--line-2); border-radius: var(--r); background: var(--surface-2);
  text-align: center; color: var(--muted); cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--ink-2); background: var(--surface-3); }
.drop:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.drop .drop-ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 8px; border-radius: 50%;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.drop .drop-ico svg { width: 24px; height: 24px; }
.drop .drop-t { font-size: 15px; font-weight: 700; color: var(--ink); }
.drop .drop-s { font-size: 13px; }
.drop .drop-s u { color: var(--ink); text-underline-offset: 3px; }
.drop.has-file { border-style: solid; border-color: var(--ok); background: var(--ok-soft); }
.drop.has-file .drop-ico { color: var(--ok); }
code { font-family: var(--mono); font-size: 13px; background: var(--surface-3); padding: 1px 5px; border-radius: 5px; }

/* Visueel verborgen, maar bereikbaar met toetsenbord en schermlezer */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Facturen: zoekveld + periodekeuze naast elkaar, op gsm onder elkaar */
.inv-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inv-filter > input { flex: 3 1 220px; width: auto; min-width: 0; }
.inv-filter > [data-periodbox] { flex: 1 1 170px; min-width: 150px; }
.inv-filter > [data-periodbox] select { width: 100%; }
.inv-filter > .dim { opacity: .45; }
/* Facturen: tellers, regels, facturen per nummer, actiebalk, geschiedenis */
.badge.dev { background: var(--s-dj-soft); color: var(--s-dj); }
.badge.edit { background: var(--warn-soft); color: var(--warn); }
.badge.uitz { background: var(--s-check-soft); color: var(--s-check); }
.fm-top { margin-top: 12px; max-width: 520px; }
.fm-signer.need select { border-color: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.fm-signer.need small { color: var(--warn); font-weight: 600; }
.inv-kpi { text-align: left; font: inherit; color: inherit; cursor: pointer; border: 1px solid var(--line); width: 100%; }
.inv-kpi:hover { border-color: var(--line-2); }
.inv-kpi.on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.inv-kpi:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.inv-badges { display: inline-flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.inv-line.dev { box-shadow: inset 3px 0 0 var(--s-dj); background: color-mix(in srgb, var(--s-dj-soft) 45%, transparent); }
.inv-group { padding: 0; overflow: hidden; }
.inv-gh { display: flex; align-items: center; gap: 12px; padding: 12px 14px 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.inv-gh { flex-wrap: wrap; }
.inv-gh .grow { flex: 1 1 260px; min-width: 0; }
.inv-gh .grow > .row { flex-wrap: wrap; row-gap: 4px; }
.inv-nr { font-size: 16px; white-space: nowrap; }
.inv-gt { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.inv-gt small { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.inv-gt b { font-size: 17px; }
.inv-actions { position: sticky; bottom: 12px; z-index: 10; margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 10px 12px 10px 16px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-lg); }
.inv-actions .sum { display: flex; flex-direction: column; line-height: 1.15; margin-right: 4px; }
.inv-actions .sum small { color: var(--muted); font-size: 12px; font-weight: 600; }
.inv-actions .sum b { font-size: 19px; }
.inv-actions .grow { flex: 1; }
@media (max-width: 959px) { .inv-actions { bottom: calc(var(--nav-h) + 10px + env(safe-area-inset-bottom)); } }
@media (max-width: 599px) { .inv-actions .btn:not(.primary) { padding-left: 10px; padding-right: 10px; } .inv-actions .grow { flex-basis: 100%; height: 0; } }
.inv-hist { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.inv-hist li { position: relative; display: flex; flex-direction: column; gap: 1px; }
.inv-hist li::before { content: ''; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2); }
.inv-hist li.edit::before { border-color: var(--warn); background: var(--warn-soft); }
.inv-hist .when { font-size: 12px; color: var(--muted); }
.inv-kv dd { text-align: left; }

/* Totalen: documenten (PDF) */
.doc-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; }
button.doc-link { font: inherit; text-align: left; cursor: pointer; width: 100%; }
@media (max-width: 799px) { .doc-links { grid-template-columns: minmax(0, 1fr); } }
.doc-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface-2); color: var(--ink); text-decoration: none; transition: border-color .15s, background .15s; }
.doc-link:hover { border-color: var(--ink-2); background: var(--surface-3); }
.doc-link .doc-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); flex: none; box-shadow: var(--shadow); }
.doc-link .doc-ico svg { width: 18px; height: 18px; }
.doc-link b { display: block; font-size: 14px; }
.doc-link small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* Download bezig */
a[aria-busy="true"] { opacity: .6; pointer-events: none; cursor: progress; }

/* Vandaag: Lightspeed floor report, 9 vakjes (3 verdiepingen x cash/kaart/factuur) */
.ls-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ls-col .ls-floor { font-weight: 700; font-size: 15px; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.ls-fields { display: grid; gap: 10px; }
@media (max-width: 699px) {
  .ls-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ls-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .ls-fields .money-wrap::before { left: 8px; }
  .ls-fields .money-wrap .input { padding-left: 20px; padding-right: 8px; }
}
/* Dagrapport-voorbeeld */
.ls-rep { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; }
/* WinBooks-PDF in de begroting */
.wb-year + .wb-year { margin-top: 12px; }
.wb-col { display: inline-flex; align-items: center; gap: 8px; }
.wb-col select.input { width: auto; min-width: 170px; padding-top: 6px; padding-bottom: 6px; }
.wb-sum { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 14px; }
.wb-shared { border-top: 1px solid var(--line); padding-top: 8px; }
.wb-line { display: flex; width: 100%; padding: 4px 0; font-size: 14px; }
.wb-line .grow { flex: 1; min-width: 0; }
.wb-t select.input { width: auto; min-width: 150px; max-width: 220px; padding-top: 5px; padding-bottom: 5px; font-size: 13px; }
.drop.compact { min-height: 0; padding: 10px 14px; flex-direction: row; gap: 8px; }
.drop.compact .drop-ico { width: 30px; height: 30px; margin: 0; box-shadow: none; }
.drop.compact .drop-ico svg { width: 16px; height: 16px; }
.drop.compact .drop-t { font-size: 13.5px; }
.drop.compact .drop-s { display: none; }
@media (max-width: 599px) {
  .ls-rep { padding: 10px; }
  .wb-col { width: 100%; justify-content: space-between; }
  .wb-t select.input { min-width: 0; max-width: 140px; }
  .ls-rep .t th, .ls-rep .t td { padding-left: 6px; padding-right: 6px; font-size: 13px; }
}

/* Periode: weekplanning */
.weeks-t td { vertical-align: middle; }
.weeks-t select.input.sm { width: auto; min-width: 130px; padding-top: 6px; padding-bottom: 6px; }
.weeks-t tr.wk-reces td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
.weeks-t tr.wk-examens td:first-child { box-shadow: inset 3px 0 0 var(--s-dj); }
.weeks-t tr.wk-zomer td:first-child { box-shadow: inset 3px 0 0 var(--ok); }
.weeks-t tr.wk-verborgen td { color: var(--muted); }

@media (max-width: 599px) {
  .weeks-t th, .weeks-t td { padding-left: 6px; padding-right: 6px; }
  .weeks-t select.input.sm { min-width: 0; width: 100%; }
}

/* ---------- begroting ---------- */
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: -.01em; }
.bt-bar { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.bt-foot { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.bt-wrap { max-height: calc(100vh - 150px); overflow: auto; }
table.bt { border-collapse: separate; border-spacing: 0; min-width: 760px; }
table.bt th { z-index: 2; }
table.bt th.effectief, table.bt td.effectief { background-color: color-mix(in srgb, var(--s-cash-soft) 55%, transparent); }
table.bt thead th.effectief { background: var(--s-cash-soft); }
table.bt .th-sub { font-size: 10.5px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--muted); }
table.bt td { padding: 6px 10px; }
table.bt .bt-post { position: sticky; left: 0; z-index: 1; background: var(--surface); min-width: 230px; max-width: 340px; white-space: normal; }
table.bt thead .bt-post { z-index: 3; }
.bt-name { all: unset; cursor: pointer; font-weight: 650; color: var(--ink); }
.bt-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.bt-name.ro { cursor: default; }
.bt-name.ro:hover { text-decoration: none; }
.bt-in[readonly] { cursor: default; }
.bt-in[readonly]:hover { border-color: transparent; background: transparent; }
.bt-name:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.bt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 12px; color: var(--muted); margin-top: 1px; line-height: 1.35; }
.bt-meta .badge { padding: 1px 7px; font-size: 11px; gap: 3px; }
.badge.kassa { background: var(--s-cash-soft); color: var(--s-cash); }
.bt-meta .badge svg { width: 11px; height: 11px; }
table.bt td.bt-c { position: relative; padding: 2px 4px; min-width: 118px; }
.bt-in { width: 100%; min-width: 0; border: 1px solid transparent; border-radius: 8px; background: transparent; font: inherit; font-size: 15px;
  font-variant-numeric: tabular-nums; text-align: right; padding: 6px 8px; color: var(--ink); }
.bt-in:hover { border-color: var(--line-2); background: var(--surface); }
.bt-in:focus { outline: none; border-color: var(--focus); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 20%, transparent); }
.bt-in.invalid { border-color: var(--bad); background: var(--bad-soft); }
.bt-fx { position: absolute; left: 7px; top: 50%; transform: translateY(-50%); font-size: 11px; font-style: italic; color: var(--muted); pointer-events: none; }
table.bt td.bt-k, table.bt td.bt-prev { font-variant-numeric: tabular-nums; }
table.bt tr.bt-g td { padding: 16px 10px 6px; border-bottom: 1px solid var(--line-2); background: var(--surface); }
.bt-gh { position: sticky; left: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
.bt-gh .btn.xs { padding: 2px 8px; }
table.bt tr.bt-t td { background: var(--surface-2); font-weight: 750; font-variant-numeric: tabular-nums; padding-top: 8px; padding-bottom: 8px; }
table.bt tr.bt-t td.bt-post { background: var(--surface-2); }
table.bt tfoot td { position: sticky; bottom: 0; background: var(--surface); font-size: 15.5px; font-variant-numeric: tabular-nums; z-index: 1; }
table.bt tfoot td.bt-post { z-index: 2; }
table.bt tbody tr[data-l]:hover td { background-color: var(--surface-2); }
table.bt tbody tr[data-l]:hover td.effectief { background-color: color-mix(in srgb, var(--s-cash-soft) 80%, var(--surface-2)); }
table.pm th, table.pm td { text-align: center; }
table.pm th:first-child, table.pm td:first-child { text-align: left; }
table.pm tr.cur td { background: var(--surface-2); }
table.pm input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--brand); cursor: pointer; }
table.pm input[type=checkbox]:disabled { opacity: .25; cursor: default; }
.meter { position: relative; height: 8px; border-radius: 99px; background: var(--surface-3); overflow: visible; }
.meter > span { display: block; height: 100%; border-radius: 99px; background: var(--ok); }
.meter > i { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--ink-2); border-radius: 2px; transform: translateX(-1px); }
@media (max-width: 959px) {
  .bt-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bt-kpis > .kpi:last-child { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  table.bt .bt-post { min-width: 140px; max-width: 150px; width: 150px; }
  .bt-name { font-size: 14px; }
  .bt-meta .bt-note { display: none; }
  .bt-gh { font-size: 14px; }
  .bt-in { font-size: 16px; padding: 6px 6px; }
  table.bt td.bt-c { min-width: 108px; }
  .bt-wrap { max-height: none; }
}

/* ---------- shift-checklist ---------- */
.ck-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ck-tab { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 10px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; box-shadow: var(--shadow); }
.ck-tab.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.ck-tab-t { display: inline-flex; align-items: center; gap: 8px; font-weight: 750; font-size: 16px; }
.ck-tab-t svg { width: 18px; height: 18px; }
.ck-tab-n { font-weight: 750; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.ck-tab .meter { grid-column: 1 / -1; height: 6px; }
.ck-cols { columns: 2 380px; column-gap: 14px; }
.ck-cols > * { break-inside: avoid; margin-bottom: 14px; display: block; width: 100%; }
.ck-sec { padding: 0; overflow: hidden; }
.ck-sec-h { display: flex; align-items: center; gap: 8px; padding: 12px 14px 8px; border-bottom: 1px solid var(--line); }
.ck-sec-h h3 { font-size: 15px; font-weight: 750; }
.ck-list { list-style: none; margin: 0; padding: 0; }
.ck-item { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.ck-item:last-child { border-bottom: 0; }
.ck-btn { flex: 1; display: flex; gap: 12px; align-items: flex-start; padding: 11px 14px; min-height: 48px; background: none; border: 0; font: inherit; color: inherit;
  text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ck-btn:hover { background: var(--surface-2); }
.ck-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.ck-box { flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: -1px; border-radius: 7px; border: 2px solid var(--line-2); background: var(--surface); transition: background .12s, border-color .12s; }
.ck-box svg { width: 15px; height: 15px; stroke-width: 3; opacity: 0; color: #fff; }
.ck-item.done .ck-box { background: var(--ok); border-color: var(--ok); }
.ck-item.done .ck-box svg { opacity: 1; }
.ck-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ck-title { font-weight: 600; line-height: 1.3; }
.ck-item.done .ck-title { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }
.ck-sub { margin: 0; padding-left: 16px; font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.ck-sub li.hot { color: var(--ink); font-weight: 700; }
.ck-sub li.hot::marker { color: var(--warn); }
.ck-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--muted); }
.ck-meta svg { width: 12px; height: 12px; vertical-align: -1px; margin-right: 3px; }
.ck-who { color: var(--ok); font-weight: 600; }
.ck-day { color: var(--warn); font-weight: 650; }
.ck-item.off .ck-btn { opacity: .5; }
.ck-off { font-style: italic; }
.ck-edit { align-self: center; margin-right: 6px; }
.ck-addsec { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; border: 1.5px dashed var(--line-2); background: transparent; box-shadow: none;
  color: var(--ink-2); font: inherit; font-weight: 650; cursor: pointer; }
.ck-addsec svg { width: 17px; height: 17px; }
.ck-hist { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); font: inherit; color: inherit; text-align: left; }
.ck-hist .side-r { flex-direction: row; gap: 6px; }
.ck-open { margin: 0 0 4px; padding-left: 18px; line-height: 1.5; }
.ck-sum { display: flex; align-items: center; gap: 10px 22px; flex-wrap: wrap; padding: 12px 16px; color: inherit; text-decoration: none; }
.ck-sum:hover { border-color: var(--line-2); }
.ck-sum-h { display: inline-flex; align-items: center; gap: 8px; }
.ck-sum-h svg { width: 18px; height: 18px; }
.ck-sum-l { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.ck-sum-l .meter { width: 90px; height: 6px; }
.ck-sum-l b { color: var(--ink); font-variant-numeric: tabular-nums; }
.ck-sum-go { margin-left: auto; color: var(--muted); }
.ck-sum-go svg { width: 18px; height: 18px; }
@media (max-width: 599px) {
  .ck-tab { padding: 10px 12px; }
  .ck-tab-t { font-size: 15px; }
  .ck-sum-l .meter { width: 60px; }
  .ck-sum { gap: 8px 14px; }
}

/* ---------- Vandaag: checklist + stock naast elkaar ---------- */
.sumrow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sumrow > .card { margin-top: 0; }
@media (max-width: 959px) { .sumrow { grid-template-columns: minmax(0, 1fr); gap: 10px; } }
.st-sum { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; padding: 10px 14px; }
.st-sum-h { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.st-sum-h svg { width: 18px; height: 18px; }
.st-sum-c { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.st-sum-n { flex: 1 1 140px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-sum .btn { margin-left: auto; }

/* ---------- stock ---------- */
.st-add-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.st-add-row .input { flex: 1 1 260px; font-size: 16px; }
.st-add-row .seg { flex: none; }
.st-cols { align-items: start; }
.st-col { padding: 0; overflow: hidden; }
.st-col-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.st-col-h b { font-size: 18px; font-variant-numeric: tabular-nums; }
.st-op { border-top: 3px solid var(--bad); }
.st-bijna { border-top: 3px solid var(--warn); }
.st-besteld { border-top: 3px solid var(--line-2); }
.st-list { list-style: none; margin: 0; padding: 0; }
.st-item { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; padding: 11px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.st-item:last-child { border-bottom: 0; }
.st-main { min-width: 0; flex: 1 1 150px; }
.st-name { font-weight: 700; font-size: 15.5px; }
.st-note { font-size: 13.5px; color: var(--ink-2); margin-top: 1px; }
.st-meta { display: flex; flex-direction: column; gap: 1px; font-size: 12px; color: var(--muted); margin-top: 3px; }
.st-meta svg { width: 12px; height: 12px; vertical-align: -1px; margin-right: 3px; }
.st-ord { color: var(--ink-2); }
.st-act { display: flex; gap: 6px; align-items: center; flex: none; }
.st-empty { padding: 18px 14px; color: var(--muted); font-size: 14px; }
.st-hist { margin: 6px 0 0; padding-left: 18px; line-height: 1.6; }

/* ---------- TV-slideshow ---------- */
kbd { font: 600 12px/1 var(--mono); padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--surface-2); }
.tv-status { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tv-status > .grow { flex: 1 1 240px; min-width: 0; }
.tv-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--line-2); flex: none; }
.tv-dot.on { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.tv-how { margin: 10px 0 8px; padding-left: 20px; line-height: 1.6; }
.tv-set { display: flex; gap: 14px 22px; flex-wrap: wrap; }
.tv-set .field { flex: none; }
.tv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tv-grid > .card { margin-top: 0; }
.tv-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.tv-card.off .tv-thumb img { opacity: .35; filter: grayscale(1); }
.tv-thumb { position: relative; width: 100%; height: 0; padding-top: 56.25%; background: #000; overflow: hidden; }
.tv-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.tv-goto { position: absolute; inset: 0; border: 0; background: transparent; cursor: pointer; }
.tv-goto:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.tv-info { padding: 9px 12px 4px; min-width: 0; }
.tv-name { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 3px; }
.tv-act { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; justify-content: flex-end; padding: 4px 6px 8px; margin-top: auto; }
.tv-act .btn:nth-child(3) { margin-left: auto; }
.tv-prev { background: #000; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 16 / 9; }
.tv-prev img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tv-days { display: flex; gap: 6px; flex-wrap: wrap; margin: 2px 0 2px; }
.tv-day { min-width: 44px; height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font: 600 14px/1 var(--font); cursor: pointer; }
.tv-day:hover { border-color: var(--brand); }
.tv-day[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.tv-day:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.tv-tools { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; justify-content: space-between; }
.tv-tools .small { display: inline-flex; align-items: center; gap: 6px; flex: 1 1 260px; min-width: 0; }
.tv-tools svg { width: 15px; height: 15px; flex: none; }
.tv-share[aria-pressed="true"] { color: var(--brand); background: var(--brand-soft); }

/* Kredieten: verminderen */
.cr-amt { flex-wrap: nowrap; }
.cr-amt > :first-child { flex: 1; min-width: 0; }
.cr-prev { display: grid; gap: 8px; }
.cr-ba { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; background: var(--surface-2); border-radius: 10px; padding: 10px 14px; }
.cr-ba > div:not(.cr-arrow) { display: grid; gap: 2px; }
.cr-ba b { font-size: 18px; font-variant-numeric: tabular-nums; }
.cr-arrow { color: var(--muted); display: flex; }
.cr-arrow svg { width: 20px; height: 20px; }
/* los icoon in een tekstregel */
.small > svg, .muted > svg { width: 1.15em; height: 1.15em; vertical-align: -0.2em; }
.cr-tot td, .cr-tot th { padding-top: 7px; padding-bottom: 7px; }

/* Factuurlijnen: item × aantal × prijs */
.inv-items { border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); margin-top: 12px; }
.inv-items > summary { display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; list-style: none; font-weight: 600; }
.inv-items > summary::-webkit-details-marker { display: none; }
.inv-items > summary svg { width: 17px; height: 17px; flex: none; }
.inv-items[open] > summary { border-bottom: 1px solid var(--line); }
.inv-items > :not(summary) { margin-left: 12px; margin-right: 12px; }
.inv-items > .row:last-of-type { margin-bottom: 12px; }
.inv-it-sum { font-variant-numeric: tabular-nums; color: var(--ink); }
.inv-it-grid { margin-top: 10px; }
.inv-it-head, .inv-it-row { display: grid; grid-template-columns: minmax(0, 1fr) 70px 110px 90px 34px; gap: 8px; align-items: center; }
.inv-it-head { font-size: 12px; color: var(--muted); padding: 0 2px 4px; }
.inv-it-head .num, .inv-it-tot { text-align: right; font-variant-numeric: tabular-nums; }
.inv-it-row + .inv-it-row { margin-top: 6px; }
.inv-it-row .input { min-height: 38px; padding-top: 6px; padding-bottom: 6px; }
.inv-it-row .input.num { text-align: right; }
.inv-it-row.zero .inv-it-tot, .inv-it-row.zero [data-k="name"] { color: var(--muted); }
.inv-it-tot { font-size: 14px; }
@media (max-width: 560px) {
  .inv-it-head { display: none; }
  .inv-it-row { grid-template-columns: minmax(0, 1fr) 64px 96px 30px; grid-template-areas: "n n n n" "q p t d"; row-gap: 6px; padding: 8px 0; border-top: 1px solid var(--line); }
  .inv-it-row [data-k="name"] { grid-area: n; } .inv-it-row [data-k="qty"] { grid-area: q; } .inv-it-row .money-wrap { grid-area: p; }
  .inv-it-row .inv-it-tot { grid-area: t; } .inv-it-row [data-itdel] { grid-area: d; }
}
.input.from-items { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.inv-it-ro { margin-top: 6px; }
.inv-it-ro tr.tot td { border-top: 1.5px solid var(--ink); font-weight: 600; }
.inv-it-txt { color: var(--ink); }
/* afwijking onder de regel waar ze bij hoort */
.inv-line.nested { padding-left: 34px; position: relative; }
.inv-line.nested::before { content: ""; position: absolute; left: 18px; top: 0; height: 50%; width: 10px; border-left: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); border-bottom-left-radius: 6px; }
.inv-parent { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); }
.inv-parent svg { width: 13px; height: 13px; }
.inv-devs { border: 1px solid var(--line); border-radius: 10px; margin: 6px 0; }

/* Afsluitmail: alles op één pc-scherm. Links de notities en cantussen, rechts de mail; elk deel scrolt apart als het lang wordt. */
.main:has(.af-page) { padding-bottom: 16px; }
.af-page { display: flex; flex-direction: column; height: calc(100dvh - 42px); min-height: 480px; }
.af-top { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; margin-bottom: 6px; }
.af-top h1 { font-size: 22px; font-weight: 750; letter-spacing: -.01em; margin-right: 6px; }
.af-top .datebar .input { min-height: 36px; padding-top: 4px; padding-bottom: 4px; }
.af-status { margin: 0 0 8px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
/* gedeeld account: wie sluit er af */
.af-closer { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.af-closer .input { min-height: 36px; padding-top: 4px; padding-bottom: 4px; width: auto; max-width: 190px; font-weight: 600; }
.af-closer.need .input { border: 2px solid var(--warn); background: var(--warn-soft); color: var(--warn); }
.af-need { color: var(--warn); font-weight: 600; }
.af-stockrow { color: inherit; text-decoration: none; background: var(--warn-soft); border-radius: 8px; }
.af-stockrow .af-by { display: inline-flex; align-items: center; gap: 3px; }
.af-stockrow .af-by svg { width: 13px; height: 13px; }
.af-need svg { width: 16px; height: 16px; flex: none; }
.closer-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.closer-pick .btn { flex-direction: column; align-items: flex-start; height: auto; min-height: 56px; padding: 10px 12px; text-align: left; gap: 2px; white-space: normal; }
.closer-pick .btn b { font-size: 15px; }
.closer-pick .btn span { font-size: 12.5px; color: var(--muted); font-weight: 500; }
/* vuilbakken: grote herinnering bovenaan de afsluitmail (maandagavond papier en karton, dinsdagavond glas) */
.af-bins { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; padding: 12px 16px; border-radius: 12px; background: var(--warn-soft); border: 2px solid var(--warn); color: var(--warn); }
.af-bins > svg { width: 30px; height: 30px; flex: none; }
.af-bins b { display: block; font-size: 20px; font-weight: 800; letter-spacing: .01em; line-height: 1.2; color: var(--warn); }
.af-bins span { display: block; font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.af-bins.ok { background: var(--ok-soft); border: 1px solid transparent; color: var(--ok); padding: 8px 14px; }
.af-bins.ok > svg { width: 20px; height: 20px; }
.af-bins.ok b { font-size: 15px; font-weight: 700; color: var(--ok); }
.bins-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin: 4px 0; }
.bins-days .field > span { text-transform: none; }
.bins-ask { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); }
.bins-ask > svg { width: 40px; height: 40px; flex: none; }
.bins-ask b { display: block; font-size: 24px; font-weight: 800; line-height: 1.2; color: var(--warn); }
.bins-ask span { display: block; margin-top: 4px; color: var(--ink-2); }
.af-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.af-left { min-height: 0; display: flex; flex-direction: column; gap: 6px; }
.af-card { flex: 0 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
/* het verloop krijgt de vrije ruimte en scrolt zelf; muy importante, to do en cantus blijven altijd in beeld */
.af-verloop { flex: 0 1 auto; min-height: 110px; display: flex; flex-direction: column; }
.af-verloop .af-rows { flex: 0 1 auto; min-height: 0; overflow: auto; }
.af-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-bottom: 1px solid var(--line); flex: none; }
.af-two .af-sec { border-bottom: 0; }
.af-two .af-sec + .af-sec { border-left: 1px solid var(--line); }
.af-two .af-rows { max-height: 92px; overflow: auto; }
.af-crows { max-height: 118px; overflow: auto; }
.af-card > .af-sec:not(.af-verloop) { flex: none; }
.af-sec { padding: 8px 14px 6px; border-bottom: 1px solid var(--line); }
.af-sec:last-child { border-bottom: 0; }
.af-h { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; font-size: 14px; min-height: 26px; }
.af-row { display: flex; align-items: baseline; gap: 8px; padding: 2px 6px; margin: 0 -6px; border-radius: 6px; font-size: 14px; line-height: 1.35; }
.af-row.click { cursor: pointer; }
.af-row.click:hover { background: var(--surface-2); }
.af-time { flex: none; min-width: 44px; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--muted); }
.af-dot { flex: none; width: 10px; color: var(--muted); }
.af-txt { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.af-by { flex: none; font-size: 12px; color: var(--muted); white-space: nowrap; }
.af-cantus { align-items: center; }
.af-cantus .af-txt .small { display: block; }
.af-add { display: flex; gap: 6px; padding: 4px 0 2px; }
.af-add .input { flex: 1; min-width: 0; min-height: 34px; padding-top: 5px; padding-bottom: 5px; font-size: 14px; }
.af-add .af-t { flex: 0 0 104px; }
.af-add .btn.icon { min-height: 34px; height: 34px; width: 34px; flex: none; }
.af-auto { display: flex; flex-wrap: wrap; gap: 2px 14px; padding: 0 4px; flex: none; }
.af-auto a { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--line-2); }
.af-auto a:hover { border-bottom-style: solid; }
.af-preview-col { min-height: 0; }
.af-preview { height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.af-mailhead { padding: 8px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: 12.5px; display: grid; gap: 1px; flex: none; }
.af-mailhead .muted { display: inline-block; min-width: 76px; }
.af-mailbody { flex: 1; min-height: 0; overflow: auto; padding: 0 16px 12px; background: #fff; color: #111; }
.af-mailbody > div { font-size: 13px !important; line-height: 1.4 !important; }
.af-mailbody p { margin: 10px 0 2px !important; }
@media (max-width: 1000px), (max-height: 560px) {
  .af-page { height: auto; min-height: 0; }
  .af-grid { grid-template-columns: 1fr; }
  .af-card, .af-mailbody, .af-verloop .af-rows, .af-two .af-rows, .af-crows { overflow: visible; max-height: none; }
}
@media (max-width: 560px) {
  .af-two { grid-template-columns: 1fr; }
  .af-two .af-sec + .af-sec { border-left: 0; border-top: 1px solid var(--line); }
}
.af-quick .af-add { padding: 6px 16px 14px; }
.af-quick .af-add .btn.icon { width: 38px; height: 38px; min-height: 38px; }
.af-last { padding: 0 16px 4px; display: grid; gap: 3px; }
.af-last .af-time { min-width: 52px; }
.cantus-cnt { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
@media (max-width: 560px) { .cantus-cnt { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.steps-ol { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; }
.steps-ol .mono { word-break: break-all; }
.af-at { color: var(--ink); background: var(--brand-soft); border-radius: 4px; padding: 0 3px; font-weight: 650; }
.af-at.ok { background: none; padding: 0; color: var(--mention); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.af-at.bad { background: var(--warn-soft); color: var(--warn); }
/* @vermeldingen: keuzelijst bij het typen van @ */
.at-menu { position: fixed; z-index: 1000; min-width: 220px; max-width: min(360px, calc(100vw - 16px)); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: 4px; }
.at-item { display: flex; flex-direction: column; gap: 1px; padding: 7px 10px; border-radius: 7px; cursor: pointer; }
.at-item b { font-weight: 650; color: var(--mention); }
.at-item span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.at-item.on, .at-item:hover { background: var(--surface-2); }
.af-thumb { display: block; max-width: 160px; max-height: 110px; border-radius: 6px; margin: 4px 0 2px; object-fit: cover; border: 1px solid var(--line); }
.af-cam { flex: none; position: relative; overflow: hidden; cursor: pointer; }
.af-add .af-cam.btn.icon { width: 34px; height: 34px; min-height: 34px; }
.af-unknown { color: var(--warn); display: flex; gap: 4px; align-items: center; }
.af-unknown svg { width: 14px; height: 14px; }
.af-modal-img { max-width: 100%; max-height: 320px; border-radius: 8px; border: 1px solid var(--line); align-self: flex-start; }
.af-last .badge svg { width: 12px; height: 12px; }
.af-mailbody img { max-width: 240px !important; }
.cantus-inv { gap: 8px; } .cantus-inv svg { width: 14px; height: 14px; vertical-align: -2px; }

/* ---------- agenda ---------- */
.ag-card { overflow: hidden; }
.ag-head { padding-top: 12px; padding-bottom: 12px; gap: 8px 14px; }
.ag-head b svg { width: 18px; height: 18px; }
.ag-head .small { flex: 1 1 140px; }
.ag-card .list { border-top: 1px solid var(--line); }
.ag-row .title { white-space: normal; }
.ag-time { display: inline-block; min-width: 92px; margin-right: 8px; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink-2); }
.ag-badges, .ag-act { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ag-gone .title { text-decoration: line-through; color: var(--muted); }
.ag-next { border-top: 1px solid var(--line); padding-top: 10px; padding-bottom: 10px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.ag-nx b { font-weight: 650; }
.ag-err { border-top: 1px solid var(--line); color: var(--warn); padding-top: 10px; padding-bottom: 10px; }
.ag-err svg { width: 15px; height: 15px; vertical-align: -2px; }
.ag-day { margin: 18px 2px 8px; font-weight: 700; font-size: 14px; color: var(--ink-2); text-transform: capitalize; }
.ag-day:first-of-type { margin-top: 4px; }
.ag-day .badge { text-transform: none; }
.ag-day { display: flex; align-items: center; gap: 6px 8px; flex-wrap: wrap; }
.ag-day .ag-earlybtn { text-transform: none; margin-left: auto; font-weight: 600; }
/* vroeger open (Agenda): opvallende regel bovenaan de dag */
.ag-early { background: var(--warn-soft); grid-template-columns: 1fr; }
.ag-early .title { white-space: normal; color: var(--ink); }
.ag-early .ag-time { color: var(--warn); }
.ag-early .ag-time svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; }
.ag-early .meta svg { width: 14px; height: 14px; vertical-align: -2px; }
.ag-early .meta .neg { color: var(--bad); }
.ag-feeds { display: flex; flex-direction: column; gap: 12px; }
.ag-feed { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; }
.ag-feed-top { display: grid; grid-template-columns: minmax(170px, 230px) minmax(110px, 130px) minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.ag-feed-st { margin-top: 8px; display: flex; gap: 6px 12px; align-items: center; flex-wrap: wrap; color: var(--ink-2); }
.ag-feed-st > span:first-child { flex: 1 1 240px; }
.ag-feed-st .neg { color: var(--bad); }
.ag-feed-st > span > svg { width: 15px; height: 15px; vertical-align: -3px; flex: none; }
.af-planned { border-style: dashed; }
@media (max-width: 759px) {
  .ag-feed-top { grid-template-columns: 1fr 1fr auto; }
  .ag-feed-top .ag-url { grid-column: 1 / -1; grid-row: 2; }
  .ag-time { min-width: 0; display: block; font-size: 12.5px; }
  .ag-row .side-r { grid-row: auto; grid-column: 1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; }
  .ag-row { grid-template-columns: 1fr; }
}

/* ---------- cantus: tellingen rechtstreeks (Vandaag, Avond) ---------- */
.cv-list { display: flex; flex-direction: column; }
.cv-row { padding: 10px 16px 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.cv-row.click { cursor: pointer; }
.cv-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.cv-top b { font-weight: 650; }
.cv-st svg { width: 13px; height: 13px; vertical-align: -2px; }
.cv-grid { display: grid; grid-template-columns: 52px repeat(4, minmax(0, 92px)); gap: 6px 8px; align-items: center; }
.cv-h { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.cv-l { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.cv-l.on { color: var(--ink); }
.cv-in { min-height: 38px; padding: 6px 10px; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 759px) {
  .cv-row { padding: 10px 12px 12px; }
  .cv-grid { grid-template-columns: 42px repeat(4, minmax(0, 1fr)); gap: 6px; }
  .cv-h { font-size: 11px; }
}
.ag-card .cv-row { border-top: 0; padding-top: 0; }
.ag-card .cv-row .cv-top { min-height: 28px; }
.cv-slim { display: flex; align-items: center; gap: 10px; padding: 10px 16px; }
.cv-slim .ico-s svg { width: 18px; height: 18px; color: var(--ink-2); vertical-align: -3px; }

/* ---------- facturen versturen (factuur-PDF's) ---------- */
.fm-drop { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 2px dashed var(--line); border-radius: var(--r-sm); cursor: pointer; background: var(--surface-3); }
.fm-drop svg { width: 26px; height: 26px; color: var(--ink-2); flex: none; }
.fm-drop.on { border-color: var(--brand); }
.fm-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fm-fields .fm-wide { grid-column: span 2; }
.fm-lines { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px 10px; max-height: 220px; overflow: auto; }
.fm-line { display: flex; gap: 10px; align-items: center; padding: 4px 0; }
.fm-line b { font-variant-numeric: tabular-nums; }
.fm-mail { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fm-prev { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; margin-top: 8px; background: #fff; color: #111; }
.fm-text { white-space: pre-wrap; font-size: 11.5px; max-height: 200px; overflow: auto; background: var(--surface-3); padding: 8px 10px; border-radius: 8px; }
.fm-done { display: flex; gap: 10px; align-items: flex-start; }
.fm-done > svg { width: 20px; height: 20px; color: var(--ok, #1a7f37); flex: none; margin-top: 2px; }
.warn-t { color: var(--warn); }
.warn-t svg, .pos svg { width: 14px; height: 14px; vertical-align: -2px; }
@media (max-width: 759px) {
  .fm-fields { grid-template-columns: 1fr 1fr; }
  .fm-fields .fm-wide { grid-column: 1 / -1; }
}

/* ---------- periode afsluiten ---------- */
.pc-checks, .pc-docs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pc-checks li, .pc-docs li { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; }
.pc-checks svg, .pc-docs svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.pc-card b svg { width: 16px; height: 16px; vertical-align: -2px; }
/* ---------- facturen: betaald / herinnering ---------- */
@media (max-width: 640px) { .inv-gt { margin-right: auto; align-items: flex-start; } }

/* verwacht resultaat (begroting) */
.bt-kpis.four > .kpi:last-child { grid-column: auto; }
table.bt td.bt-f, table.bt th.bt-f { font-variant-numeric: tabular-nums; background: color-mix(in srgb, var(--brand-soft, var(--surface-2)) 55%, transparent); }
table.bt tbody tr[data-l] td.bt-f { font-weight: 650; }
table.bt tbody tr[data-l] td.bt-f.muted { font-weight: 400; }
.btn-link { border: 0; background: none; padding: 0; font: inherit; color: var(--link, var(--brand)); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.fc-x h4 { margin: 18px 0 6px; font-size: 15px; }
.fc-x p { margin: 6px 0; line-height: 1.5; }
.fc-x .fc-lead { font-size: 15.5px; }
.fc-x tr.muted td { color: var(--muted); }
.fc-x table.fc-rules td { vertical-align: top; }
@media (max-width: 599px) {
  .fc-x table.t th, .fc-x table.t td { padding: 7px 6px; font-size: 13px; }
  .fc-x table.t th { font-size: 10.5px; letter-spacing: 0; white-space: normal; }
  .fc-x table.t td:first-child { white-space: nowrap; }
  .fc-x table.fc-rules td:first-child { white-space: normal; }
}

/* vermelding van de maker */
.side-credit { position: relative; z-index: 1; padding: 6px 10px 0; font-size: 10.5px; opacity: .38; letter-spacing: .01em; }
.made-by { font-size: 11.5px; color: var(--muted); text-align: center; }
.made-by.on-dark { color: rgba(255,255,255,.4); position: relative; z-index: 1; margin-top: 16px; }
.login { align-content: center; }

/* mail bij het afsluiten van een periode */
.am-docs { display: grid; gap: 6px; margin-top: 2px; }
.pc-mail { border-top: 1px solid var(--line); padding-top: 12px; }

/* cantus op het café: enkel wat er op de factuur moet komen */
.cv-inv { display: flex; gap: 8px; align-items: flex-start; padding: 2px 0 4px; }
.cv-inv svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--muted); }
