/* CMedia planning, in de huisstijl van CMedia Productions:
   Syne voor koppen, knoppen en menu, Poppins voor tekst, CMedia-oranje als enige echte kleur,
   zwart en antraciet voor het donkere kader, alles strak en hoekig. Rood is alleen voor conflicten. */

:root {
  --paper: #f8f8f8;
  --surface: #ffffff;
  --surface-2: #f2f2f2;
  --ink: #12161c;
  --ink-2: #595b60;
  --ink-3: #8a8c90;
  --line: #e3e3e3;
  --line-2: #eeeeee;
  --rail: #101010;
  --rail-2: #202020;
  --rail-ink: #cecece;
  --rail-hi: #ffffff;
  --chroma: #ff5733; /* CMedia-oranje */
  --chroma-hover: #f02b00;
  --chroma-ink: #ffffff;
  --chroma-soft: #ffe6df;
  --link: #12161c;
  --tally: #c81e1e; /* conflicten en fouten */
  --tally-soft: #fbe4e4;
  --amber: #7a5600;
  --amber-soft: #fff3cc;
  --amber-line: #e0a800;
  --yellow: #ffbe0a; /* CMedia-geel, alleen met zwarte tekst */
  --ok: #1f7a45;
  --ok-soft: #dcf2e4;
  --r-s: 0;
  --r-m: 0;
  --label: 188px;
  --day: 104px;
  --lane: 34px;
  --font: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --head: "Syne", "Poppins", ui-sans-serif, system-ui, sans-serif;
  color-scheme: light;
}

/* data-thema en data-kleur zet js/thema.js op <html>; "automatisch" wordt daar al licht of donker. */
:root[data-thema="donker"] {
  --paper: #101010;
  --surface: #202020;
  --surface-2: #2a2a2a;
  --ink: #ffffff;
  --ink-2: #cecece;
  --ink-3: #8f8f8f;
  --line: #353535;
  --line-2: #2c2c2c;
  --rail: #0a0a0a;
  --rail-2: #202020;
  --chroma-soft: #3a1c13;
  --link: #ff5733;
  --tally: #ff6b5f;
  --tally-soft: #3b1d1b;
  --amber: #ffbe0a;
  --amber-soft: #352a0c;
  --amber-line: #ffbe0a;
  --ok: #5cc48a;
  --ok-soft: #1a3326;
  color-scheme: dark;
}

/* Kleurenschema Teamleader, uit hun eigen kleurenpakket (@teamleader/ui-colors 2.0.0):
   donker teal voor het kader, mint als accent, blauw voor links. */
:root[data-kleur="teamleader"] {
  --paper: #f7f7fa;
  --surface: #ffffff;
  --surface-2: #f0f5fc;
  --ink: #2a3b4d;
  --ink-2: #64788f;
  --ink-3: #82828c;
  --line: #e4e4e6;
  --line-2: #f7f7fa;
  --rail: #2a3b4d;
  --rail-2: #1a1c20;
  --rail-ink: #c1cede;
  --rail-hi: #ffffff;
  --chroma: #008a8c;
  --chroma-hover: #004b4d;
  --chroma-ink: #ffffff;
  --chroma-soft: #f0fafa;
  --link: #0071f2;
  --tally: #e84b17;
  --tally-soft: #fff0ec;
  --amber: #8f3c00;
  --amber-soft: #fff6e5;
  --amber-line: #ed9e00;
  --yellow: #ffcc66;
}
/* Teamleader heeft zelf geen donkere stand; dit is afgeleid van dezelfde kleuren. */
:root[data-kleur="teamleader"][data-thema="donker"] {
  --paper: #1a1c20;
  --surface: #232a33;
  --surface-2: #2a3b4d;
  --ink: #f0f5fc;
  --ink-2: #c1cede;
  --ink-3: #82828c;
  --line: #3a4757;
  --line-2: #2c3540;
  --rail: #121418;
  --rail-2: #2a3b4d;
  --rail-ink: #c1cede;
  --rail-hi: #ffffff;
  --chroma: #00b2b2;
  --chroma-hover: #57d3d2;
  --chroma-ink: #1a1c20;
  --chroma-soft: #004b4d;
  --link: #57d3d2;
  --tally: #ff7040;
  --tally-soft: #3d1f14;
  --amber: #ffcc66;
  --amber-soft: #3a2c0d;
  --amber-line: #ed9e00;
  --yellow: #ffcc66;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 14.5px/1.6 var(--font);
  font-variant-numeric: tabular-nums;
}
a { color: var(--link); text-decoration: underline; text-decoration-color: var(--chroma); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--chroma-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--chroma); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.15; margin: 0; }
h1 { font-size: 30px; letter-spacing: -0.8px; }
h2 { font-size: 18px; letter-spacing: -0.3px; }
h3 { font-size: 15px; }
p { margin: 0 0 0.6em; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.hide { display: none !important; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ───────── kader ───────── */
.app { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100vh; }
.rail {
  background: var(--rail);
  color: var(--rail-ink);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 22px 12px 14px;
  gap: 2px;
}
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding: 0 10px 24px; color: var(--rail-hi); }
.brand .logo { display: block; height: 34px; width: auto; max-width: 170px; }
.brand-name { font-family: var(--head); font-weight: 700; font-size: 24px; letter-spacing: -0.5px; }
.brand-app { font-family: var(--head); font-weight: 700; font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--chroma); }
.rec { width: 10px; height: 10px; border-radius: 50%; background: var(--chroma); flex: none; }
.rail a {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px;
  color: var(--rail-ink); font-family: var(--head); font-weight: 600; font-size: 14.5px; text-decoration: none;
}
.rail a:hover { background: var(--rail-2); color: var(--rail-hi); }
.rail a[aria-current="page"] { background: var(--rail-2); color: var(--rail-hi); box-shadow: inset 3px 0 0 var(--chroma); }
.rail a .badge { margin-left: auto; }
.rail .sep { height: 1px; background: #2a2a2a; margin: 10px 10px; }
.rail .me { margin-top: auto; padding: 12px 10px 4px; border-top: 1px solid #2a2a2a; display: flex; align-items: center; gap: 10px; }
.rail .me a { padding: 0; flex: 1; min-width: 0; display: block; font-family: var(--font); font-weight: 400; }
.rail .me a:hover { background: none; text-decoration: underline; }
.rail .me .who { display: block; color: var(--rail-hi); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail .me .rol { display: block; font-size: 12px; }
.ico { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.main { min-width: 0; padding: 28px 34px 60px; }
.page { max-width: 1180px; }
.page.wide { max-width: none; }

.topbar, .tabbar { display: none; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head .sub { color: var(--ink-2); margin-top: 6px; }
.tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--ink-2); margin-bottom: 8px; text-decoration: none; }

/* ───────── knoppen en invoer ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 0;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-family: var(--head); font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; text-decoration: none;
}
.btn:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.primary { background: var(--chroma); border-color: var(--chroma); color: var(--chroma-ink); text-transform: uppercase; letter-spacing: 0.6px; padding: 0 22px; }
.btn.primary:hover { background: var(--chroma-hover); border-color: var(--chroma-hover); color: var(--chroma-ink); }
.btn.danger { color: var(--tally); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-2); border-color: transparent; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.primary.sm { padding: 0 14px; }
.btn.icon { width: 40px; padding: 0; }
.btn.sm.icon { width: 32px; }
.btn .ico { width: 16px; height: 16px; }

.seg { display: inline-flex; border: 1px solid var(--line); background: var(--surface); padding: 2px; }
.seg button, .seg label { border: 0; background: none; padding: 6px 12px; cursor: pointer; font-family: var(--head); font-weight: 700; color: var(--ink-2); font-size: 13.5px; }
.seg button[aria-pressed="true"], .seg input:checked + span { background: var(--ink); color: var(--surface); }
.seg label { padding: 0; }
.seg label span { display: block; padding: 6px 12px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:focus-visible) { outline: 2px solid var(--chroma); }

input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="time"],
input[type="datetime-local"], input[type="search"], input[type="tel"], input[type="month"], select, textarea {
  width: 100%; height: 40px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 0; background: var(--surface);
}
textarea { height: auto; min-height: 76px; padding: 9px 11px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--chroma); box-shadow: inset 0 0 0 1px var(--chroma); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--chroma); width: 17px; height: 17px; }
.search { max-width: 250px; }

.field { display: grid; gap: 6px; }
.field > span { font-family: var(--head); font-size: 13px; font-weight: 700; color: var(--ink); }
.field .hint { font-family: var(--font); font-size: 12.5px; font-weight: 400; color: var(--ink-3); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 16px; }
.span2 { grid-column: span 2; }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 8px; border-radius: 0;
  font-size: 12px; font-weight: 500; white-space: nowrap;
  background: var(--surface-2); color: var(--ink-2); border: 0;
}
.chip.ok, .chip.warn, .chip.blue { color: var(--ink); padding-left: 10px; }
.chip.ok { box-shadow: inset 3px 0 0 var(--ok); }
.chip.warn { box-shadow: inset 3px 0 0 var(--yellow); }
.chip.blue { box-shadow: inset 3px 0 0 var(--chroma); }
.chip.bad { background: var(--tally); color: #fff; }
.chip.dark { background: var(--ink); color: var(--surface); }
.chip.optie { background: var(--yellow); color: #101010; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; background: var(--tally); color: #fff; font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; }

.av {
  width: 28px; height: 28px; flex: none;
  display: inline-grid; place-items: center;
  background: var(--c, #666); color: #fff; font-family: var(--head); font-size: 11px; font-weight: 700;
  border: 2px solid var(--surface); text-decoration: none;
}
.avs { display: flex; }
.avs .av + .av { margin-left: -4px; }

/* ───────── vellen en lijsten ───────── */
.sheet { background: var(--surface); border: 1px solid var(--line); }
.sheet + .sheet, .sheet + .section, .section + .section, .section + .sheet { margin-top: 22px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 16px 10px; }
.sheet-body { padding: 4px 16px 16px; }
.section > h2 { margin-bottom: 10px; }
.empty { padding: 28px 16px; text-align: center; color: var(--ink-2); }
.empty .btn { margin-top: 10px; }

.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { border-top: 1px solid var(--line-2); }
.rows > li:first-child { border-top: 0; }
.row { display: flex; align-items: center; gap: 12px; padding: 11px 16px; color: inherit; text-decoration: none; }
a.row:hover, button.row:hover { background: var(--surface-2); color: inherit; text-decoration: none; }
button.row { width: 100%; border: 0; background: none; text-align: left; cursor: pointer; }
.row .grow { flex: 1; min-width: 0; }
.row .t { font-weight: 600; }
.row .s { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; }

table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-family: var(--head); font-size: 11.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-2); padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-top: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:first-child td { border-top: 0; }
.tbl tbody tr.click { cursor: pointer; }
.tbl tbody tr.click:hover td { background: var(--surface-2); }
.tbl .r { text-align: right; }
.tbl .grp td { background: var(--surface-2); font-family: var(--head); font-weight: 700; font-size: 14px; padding: 8px 12px; }
.tbl-wrap { overflow-x: auto; }

.group-title { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 16px 6px; font-family: var(--head); font-weight: 700; font-size: 15px; }

/* klapbord-datum */
.slate { width: 52px; flex: none; text-align: center; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.slate-top { height: 7px; background: repeating-linear-gradient(-45deg, var(--ink) 0 6px, var(--surface) 6px 12px); }
.slate-d { display: block; font-family: var(--head); font-weight: 700; font-size: 21px; line-height: 1; padding-top: 5px; }
.slate-m { display: block; font-size: 11px; color: var(--ink-2); padding-bottom: 4px; }
.slate.today { border-color: var(--chroma); }
.slate.today .slate-top { background: repeating-linear-gradient(-45deg, var(--chroma) 0 6px, var(--surface) 6px 12px); }

.issue { color: var(--tally); font-size: 13px; display: flex; gap: 6px; align-items: flex-start; }
.issue .ico { width: 15px; height: 15px; margin-top: 2px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--tally); display: inline-block; flex: none; }
.swatch { width: 12px; height: 12px; background: var(--c); display: inline-block; flex: none; }

/* ───────── planbord (tijdlijn) ───────── */
.tl { background: var(--surface); border: 1px solid var(--line); overflow: auto; max-height: calc(100vh - 170px); position: relative; }
.tl-inner { min-width: calc(var(--label) + var(--dagen) * var(--day)); position: relative; }
.tl-headrow { display: flex; position: sticky; top: 0; z-index: 6; background: var(--surface); border-bottom: 1px solid var(--line); }
.tl-corner { width: var(--label); flex: none; position: sticky; left: 0; background: var(--surface); z-index: 7; border-right: 1px solid var(--line); padding: 9px 12px; font-family: var(--head); font-size: 11.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-2); }
.tl-days { flex: 1; display: grid; grid-template-columns: repeat(var(--dagen), 1fr); }
.tl-day { padding: 7px 8px; border-left: 1px solid var(--line-2); font-size: 12px; color: var(--ink-2); }
.tl-day:first-child { border-left: 0; }
.tl-day b { display: block; font-family: var(--head); font-size: 16px; color: var(--ink); font-weight: 700; line-height: 1.15; }
.tl-day.we { background: var(--surface-2); }
.tl-day.now b { color: var(--chroma); }
.tl-row { display: flex; border-bottom: 1px solid var(--line-2); }
.tl-row:last-child { border-bottom: 0; }
.tl-label { width: var(--label); flex: none; position: sticky; left: 0; z-index: 5; background: var(--surface); border-right: 1px solid var(--line); padding: 6px 12px; display: flex; align-items: center; gap: 9px; min-width: 0; }
.tl-label .t { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.tl-label .s { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.tl-label > div { min-width: 0; }
.tl-group .tl-label { background: var(--surface-2); font-family: var(--head); font-weight: 700; padding-top: 5px; padding-bottom: 5px; }
.tl-group .tl-track { background: var(--surface-2); min-height: 0; }
.tl-track {
  flex: 1; position: relative; min-height: 40px;
  background-image: linear-gradient(to right, var(--line-2) 1px, transparent 1px);
  background-size: calc(100% / var(--dagen)) 100%;
}
.tl-track.can-add { cursor: copy; }
.tl-we { position: absolute; top: 0; bottom: 0; background: var(--surface-2); pointer-events: none; }
.clip {
  --c: #5b5bd6; --ci: #fff;
  position: absolute; z-index: 3; height: calc(var(--lane) - 5px);
  padding: 2px 7px; overflow: hidden;
  background: var(--c); color: var(--ci); border: 0; text-decoration: none;
  font-size: 12px; line-height: 1.2; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.clip:hover { color: var(--ci); filter: brightness(1.06); }
.clip .ct { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clip .cs { font-size: 11px; opacity: 0.85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clip.optie { background: color-mix(in srgb, var(--c) 16%, var(--surface)); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--c); background-image: none; }
.clip.optie:hover { color: var(--ink); }
.clip.optie::after { content: ""; position: absolute; inset: 0; border: 1.5px dashed var(--surface); pointer-events: none; opacity: 0.9; }
.clip.afgerond { filter: saturate(0.35); opacity: 0.8; }
.clip.warn::before { content: ""; position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--tally); box-shadow: 0 0 0 2px var(--surface); }
.clip.verlof, .clip.rep { cursor: default; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); background: repeating-linear-gradient(135deg, var(--surface-2) 0 6px, var(--line-2) 6px 12px); }
.clip.verlof:hover { color: var(--ink-2); }
.clip.verlof.pending { box-shadow: inset 0 0 0 1px var(--amber-line); color: var(--amber); }
.clip.rep { color: var(--tally); box-shadow: inset 0 0 0 1px var(--tally); background: repeating-linear-gradient(135deg, var(--surface) 0 6px, var(--tally-soft) 6px 12px); }
.clip.verlof[data-act], .clip.rep[data-act], a.clip.verlof { cursor: pointer; }
.playhead { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px solid var(--chroma); z-index: 1; pointer-events: none; }
.playhead::before { content: ""; position: absolute; top: -1px; left: -6px; width: 10px; height: 10px; background: var(--chroma); }
.tl-overlay { position: absolute; top: 0; bottom: 0; left: var(--label); right: 0; pointer-events: none; z-index: 2; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); margin-top: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 22px; height: 12px; display: inline-block; }

/* ───────── opdracht ───────── */
.job { display: flex; gap: 14px; padding: 12px 16px; align-items: center; color: inherit; text-decoration: none; }
.job:hover { background: var(--surface-2); color: inherit; text-decoration: none; }
.job .grow { flex: 1; min-width: 0; }
.job .t { font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.job .s { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job.geannuleerd .t span:first-child { text-decoration: line-through; color: var(--ink-3); }
.job .side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.colorbar { width: 4px; align-self: stretch; background: var(--c); flex: none; }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
.detail .sheet + .sheet { margin-top: 22px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 9px 14px; font-size: 14px; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.pre { white-space: pre-wrap; }

.pak th:nth-child(n + 3), .pak td:nth-child(n + 3) { text-align: center; width: 70px; }
.pak td { padding-top: 8px; padding-bottom: 8px; }
.progress { height: 6px; background: var(--line-2); overflow: hidden; margin-top: 4px; }
.progress > i { display: block; height: 100%; background: var(--chroma); }

/* ───────── venster ───────── */
dialog.modal {
  border: 0; padding: 0; border-radius: 0; background: var(--surface); color: var(--ink);
  width: min(620px, calc(100vw - 24px)); max-height: calc(100vh - 40px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}
dialog.modal.wide { width: min(940px, calc(100vw - 24px)); }
dialog.modal::backdrop { background: rgba(16, 16, 16, 0.6); }
.m-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; border-bottom: 1px solid var(--line-2); position: sticky; top: 0; background: var(--surface); z-index: 2; box-shadow: inset 0 3px 0 var(--chroma); }
.m-body { padding: 18px 20px 20px; }
.m-foot { display: flex; gap: 8px; justify-content: flex-end; align-items: center; padding: 12px 20px 16px; border-top: 1px solid var(--line-2); position: sticky; bottom: 0; background: var(--surface); }
.m-foot .left { margin-right: auto; }
.m-sec { margin-top: 22px; }
.m-sec > h3 { margin-bottom: 9px; display: flex; justify-content: space-between; align-items: baseline; }
.form-err { color: var(--tally); font-size: 13.5px; margin-right: auto; }

.picker { border: 1px solid var(--line); max-height: 280px; overflow: auto; }
.picker .row { padding: 7px 10px; font-size: 13.5px; }
.picker .grp { font-family: var(--head); font-weight: 700; padding: 6px 10px; background: var(--surface-2); position: sticky; top: 0; font-size: 13px; }
.pick-list { list-style: none; margin: 0 0 10px; padding: 0; border: 1px solid var(--line); }
.pick-list li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-top: 1px solid var(--line-2); }
.pick-list li:first-child { border-top: 0; }
.pick-list .grow { flex: 1; min-width: 0; }
.pick-list input[type="number"] { width: 70px; height: 34px; }
.pick-list input[type="text"] { height: 34px; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.swatches label { cursor: pointer; }
.swatches input { position: absolute; opacity: 0; }
.swatches span { display: block; width: 28px; height: 28px; background: var(--c); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.1); }
.swatches input:checked + span { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.swatches input:focus-visible + span { outline: 2px solid var(--chroma); outline-offset: 3px; }

/* ───────── meldingen ───────── */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 1000; pointer-events: none; }
.toast { background: var(--rail); color: #fff; padding: 11px 18px; font-weight: 500; box-shadow: inset 3px 0 0 var(--chroma), 0 8px 24px rgba(0, 0, 0, 0.25); animation: pop 0.18s ease-out; }
.toast.fout { background: var(--tally); color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }

/* ───────── start ───────── */
.hello { font-size: 36px; letter-spacing: -1.2px; }
.cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 24px; }
.attn li .row { align-items: flex-start; }
.figure { font-family: var(--head); font-weight: 700; font-size: 30px; line-height: 1; letter-spacing: -0.8px; }
.figs { display: flex; gap: 28px; flex-wrap: wrap; padding: 4px 16px 16px; }
.figs .lbl { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }

/* ───────── inloggen ───────── */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { background: var(--rail); color: var(--rail-ink); padding: 44px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-art .brand { padding: 0; }
.auth-art .brand .logo { height: 54px; max-width: 280px; }
.auth-art .brand-name { font-size: 40px; }
.auth-art .frame { position: absolute; inset: 24% 14% 24% 14%; pointer-events: none; }
.auth-art .frame i { position: absolute; width: 34px; height: 34px; border-color: rgba(255, 255, 255, 0.5); border-style: solid; border-width: 0; }
.auth-art .frame i:nth-child(1) { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.auth-art .frame i:nth-child(2) { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.auth-art .frame i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.auth-art .frame i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.auth-art .tc { font-family: var(--head); font-weight: 700; font-size: 14px; letter-spacing: 1px; color: var(--rail-hi); display: flex; align-items: center; gap: 8px; }
.auth-art .tc .dot { background: var(--chroma); }
.auth-art .claim { font-family: var(--head); font-weight: 700; font-size: 34px; letter-spacing: -1px; text-transform: uppercase; color: var(--rail-hi); line-height: 1.1; max-width: 13em; }
.auth-form { display: grid; place-items: center; padding: 32px 20px; background: var(--paper); }
.auth-form form { width: min(380px, 100%); display: grid; gap: 16px; }
.auth-form h1 { margin-bottom: 4px; }

/* ───────── printen ───────── */
/* ───── rechten per persoon (Personeel) ───── */
.rechten { border: 1px solid var(--line); background: var(--surface-2); padding: 14px 16px 6px; }
.rechten-kop { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 4px; }
.rechten-kop h3 { margin: 0; flex: 1 1 auto; font-family: var(--head); font-size: 15px; }
.rechten-groepen { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.rechten fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.rechten legend { font-family: var(--head); font-size: 13px; font-weight: 700; padding: 10px 0 6px; }
.recht { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); cursor: pointer; }
.recht input { margin-top: 2px; flex: none; }
.recht b { display: block; font-weight: 600; font-size: 14px; line-height: 1.35; }
.recht small { display: block; color: var(--ink-3); font-size: 12.5px; line-height: 1.4; }
.recht:has(input:disabled) { cursor: default; }
.recht:has(input:disabled) b { color: var(--ink-2); }

/* ───── Telegram en GitHub (Instellingen) ───── */
.kop-stappen { list-style: none; margin: 0; padding: 0; counter-reset: stap; }
.kop-stap { counter-increment: stap; border-top: 1px solid var(--line); padding: 14px 0 14px 42px; position: relative; }
.kop-stap::before { content: counter(stap); position: absolute; left: 0; top: 13px; width: 28px; height: 28px; display: grid; place-items: center; background: var(--ink); color: var(--surface); font-family: var(--head); font-weight: 700; font-size: 14px; }
.kop-kop { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.kop-kop h3 { margin: 0; font-family: var(--head); font-size: 15px; }
.kop-stap p { margin: 6px 0; }
.kop-stap code { background: var(--surface-2); padding: 1px 5px; font-size: 13px; }
.kop-rij { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.kop-rij input { flex: 1 1 260px; max-width: 460px; }
.kop-rij input[name=token] { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.kop-rij .form-err { flex-basis: 100%; }
.kop-lijst { margin: 6px 0; padding-left: 18px; display: grid; gap: 3px; font-size: 14px; }
.kop-hand { margin-top: 10px; }
.kop-hand summary { cursor: pointer; color: var(--ink-2); }
.kop-slot { border-left: 3px solid var(--chroma); background: var(--surface-2); padding: 12px 14px; margin-bottom: 16px; }
.kop-slot h3 { margin: 0 0 4px; font-family: var(--head); font-size: 15px; }
.kop-slot p { margin: 0 0 4px; }
.kop-slot .kop-rij input { flex: 1 1 180px; }
.kop-deel { display: flex; align-items: center; gap: 10px; margin: 18px 0 8px; font-family: var(--head); font-size: 16px; }
.kop-ss { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 2px; }
.kop-velden { display: grid; gap: 12px; max-width: 520px; margin-top: 10px; }
.kop-velden input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.linkknop { border: 0; background: none; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-decoration-color: var(--chroma); text-underline-offset: 3px; cursor: pointer; }

/* ───── verlofaanvragen (Start en Verlof) ───── */
.sheet.wacht { border-color: var(--chroma); box-shadow: inset 0 3px 0 var(--chroma); margin-bottom: 22px; }
.aanvragen { list-style: none; margin: 0; padding: 0; }
.aanvraag { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 14px; align-items: start; padding: 14px 16px; border-top: 1px solid var(--line-2); }
.aanvraag .wie { font-weight: 600; }
.aanvraag .wanneer { font-family: var(--head); font-size: 18px; font-weight: 700; line-height: 1.25; letter-spacing: -0.2px; margin: 1px 0 3px; }
.aanvraag .meta { font-size: 13px; color: var(--ink-2); }
.aanvraag .issue { margin-top: 4px; }
.aanvraag .acties { display: flex; gap: 8px; align-self: center; }

@media print {
  .rail, .topbar, .tabbar, .tools, .btn, .toasts, .noprint { display: none !important; }
  .app { display: block; }
  .main { padding: 0; }
  body { background: #fff; }
  .sheet { border: 0; }
  .detail { display: block; }
}

/* ───────── assistent ───────── */
.as-paneel { max-width: 720px; }
.as-bel { display: flex; align-items: center; gap: 16px; padding: 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.as-knop { min-height: 56px; padding: 0 28px; gap: 10px; font-size: 15px; }
.as-knop.as-rood { background: var(--tally); border-color: var(--tally); }
.as-knop.as-rood:hover { background: var(--tally); border-color: var(--tally); filter: brightness(0.92); }
.as-status { font-family: var(--head); font-weight: 700; color: var(--ink-2); }
.as-status[data-status="luistert"] { color: var(--ok); }
.as-status[data-status="praat"] { color: var(--chroma); }
.as-status[data-status="fout"] { color: var(--tally); }
.as-log { padding: 16px 20px; max-height: 60vh; overflow-y: auto; display: grid; gap: 10px; }
.as-regel { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; overflow-wrap: anywhere; }
.as-wie { font-family: var(--head); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--ink-3); padding-top: 2px; }
.as-assistent .as-wie { color: var(--chroma); }
.as-actie { background: var(--ok-soft); padding: 8px 10px; }
.as-actie .as-wie { color: var(--ok); }
.as-actie .ico { width: 16px; height: 16px; }

/* ───────── klein scherm ───────── */
@media (max-width: 860px) {
  .as-bel { padding: 16px 14px; }
  .as-knop { flex: 1; justify-content: center; }
  .as-log { padding: 14px; }
  .as-regel { grid-template-columns: 1fr; gap: 2px; }
  :root { --label: 128px; --day: 88px; }
  .app { display: block; padding-bottom: 72px; }
  .rail { display: none; }
  .rail.open { display: flex; position: fixed; inset: 0 auto 0 0; width: 264px; z-index: 50; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.5); }
  .topbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: var(--rail); color: var(--rail-hi); position: sticky; top: 0; z-index: 20; }
  .topbar .brand { padding: 0; flex-direction: row; align-items: center; gap: 12px; }
  .topbar .brand .logo { height: 26px; }
  .topbar .brand-name { font-size: 20px; }
  .topbar a { color: var(--rail-ink); }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 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);
  }
  .tabbar a, .tabbar button { display: grid; justify-items: center; gap: 2px; padding: 8px 2px 7px; font-family: var(--head); font-size: 11px; color: var(--ink-2); background: none; border: 0; text-decoration: none; font-weight: 700; cursor: pointer; }
  .tabbar .ico { width: 21px; height: 21px; }
  .tabbar [aria-current="page"] { color: var(--ink); box-shadow: inset 0 3px 0 var(--chroma); }
  .main { padding: 20px 14px 40px; }
  h1 { font-size: 26px; }
  .hello { font-size: 28px; }
  .detail, .cols { grid-template-columns: minmax(0, 1fr); }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .kv { grid-template-columns: 105px 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { min-height: 220px; padding: 26px; }
  .auth-art .claim { font-size: 24px; }
  .auth-art .frame { display: none; }
  .tl { max-height: none; }
  .search { max-width: none; flex: 1; }
  .hide-sm { display: none !important; }
  .job .side { display: none; }
  .tbl th, .tbl td { padding: 9px 8px; }
  .rechten-groepen { grid-template-columns: 1fr; }
  .aanvraag { grid-template-columns: auto minmax(0, 1fr); }
  .aanvraag .acties { grid-column: 1 / -1; }
  .aanvraag .acties .btn { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
