/* Huisstijl in lijn met NovaDash (Novation 2026): wit, blauw, geel accent, donkere tekst. Inter + Outfit ("Kop"). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Kop"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/outfit-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Kop"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/outfit-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #f4f5f9; --surface: #ffffff; --surface-2: #f4f5f9; --text: #0e1530; --muted: #39404f; --line: #b9bec9;
  --brand: #101aed; --brand-dark: #0b12b0; --brand-soft: #e9eafe; --brand-ink: #ffffff;
  --accent: #f2c94c; --accent-dark: #d9a900; --accent-ink: #0e1530;
  --ok: #0f5c2b; --ok-bg: #d9f2e2; --warn: #6b4000; --warn-bg: #ffe9bf; --bad: #b3141a; --bad-bg: #fde7e5; --info-bg: #e9eafe;
  --seg-werk: #101aed; --seg-pauze: #f2b600; --seg-verpl: #7048e8; --seg-woon: #b8c0cc;
  --demo: #0e1330; --demo-ink: #d3d7ea; --demo-line: #232b5c; --demo-btn: #1a2147;
  --radius: 12px; --radius-btn: 6px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-kop: "Kop", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070a18; --surface: #111633; --surface-2: #1b2250; --text: #ffffff; --muted: #d2d6e8; --line: #4a5496;
    --brand: #a9aeff; --brand-dark: #c3c6ff; --brand-soft: #1f2766; --brand-ink: #0b0f22;
    --accent: #f2c94c; --accent-dark: #f2c94c; --accent-ink: #0e1530;
    --ok: #5ad17f; --ok-bg: #12301f; --warn: #f5c04a; --warn-bg: #33270f; --bad: #ff8a8a; --bad-bg: #3a1a1f; --info-bg: #1f2766;
    --seg-werk: #8a90ff; --seg-pauze: #ffd43b; --seg-verpl: #b197fc; --seg-woon: #4a5361;
    --demo: #05081a; --demo-line: #232b5c; --demo-btn: #131937;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, .brand, .hero .big, .tile b, .kname, .pin { font-family: var(--font-kop); }
h2 { font-weight: 800; letter-spacing: -.01em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-btn); padding: 8px 12px; font-weight: 500; }
button:hover { border-color: var(--muted); }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
button.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); font-weight: 600; }
button.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
button.secondary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
button.secondary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
button.danger { background: var(--bad); color: #fff; border-color: var(--bad); font-weight: 700; }
button.ghost { background: transparent; }
button.link { border: 0; background: none; color: var(--brand); padding: 2px 0; }
button.small, .small { font-size: 15px; }
input, select, textarea { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; max-width: 100%; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

/* demobalk */
.demobar { position: sticky; top: 0; z-index: 30; background: var(--demo); color: var(--demo-ink); padding: 6px 12px; display: grid; gap: 6px; font-size: 15px; }
.db-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.demobar button, .demobar select { background: var(--demo-btn); color: var(--demo-ink); border-color: var(--demo-line); padding: 4px 9px; border-radius: 7px; font-size: 15px; }
.demobar label { display: inline-flex; gap: 5px; align-items: center; }
.demobar select { max-width: 240px; }
.db-tag { background: var(--accent); color: #0e1530; font-weight: 800; padding: 2px 7px; border-radius: 5px; letter-spacing: .05em; }
.db-clock { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 170px; }
.demobar .net.on { color: #7be0a6; } .demobar .net.off { color: #ffb36b; border-color: #ffb36b; }

/* shell */
.shell { max-width: 560px; margin: 0 auto; padding: 0 16px 60px; }
.shell.wide { max-width: 1180px; }
.apphead { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 0 8px; flex-wrap: wrap; }
.brand { font-size: 24px; font-weight: 900; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.brand .co { color: var(--brand); }
.who { color: var(--muted); font-size: 15px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; }
.tabs button { white-space: nowrap; border-radius: 999px; padding: 6px 14px; background: transparent; }
.tabs button.active { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.card h2 { font-size: 18px; margin: 0 0 10px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.card-head h2 { margin: 0; }
h3 { font-size: 16px; margin: 16px 0 6px; }

/* hero */
.hero { text-align: center; padding: 22px 16px; }
.hero .state { font-weight: 700; color: var(--muted); text-transform: uppercase; font-size: 15px; letter-spacing: .06em; }
.hero .big { font-size: 50px; font-weight: 800; font-variant-numeric: tabular-nums; margin: 6px 0 2px; }
.hero .sub { color: var(--muted); }
.hero.werk { border-top: 5px solid var(--seg-werk); }
.hero.pauze { border-top: 5px solid var(--seg-pauze); }
.hero.onderweg { border-top: 5px solid var(--seg-verpl); }
.hero.aftel { border-top: 5px solid var(--seg-woon); }
.hero.done { border-top: 5px solid var(--accent); }
.actions { display: flex; gap: 8px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.actions.left { justify-content: flex-start; align-items: center; }
.actions.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.actions.grid3 button { padding: 14px 6px; font-weight: 600; }
button.xl { font-size: 20px; padding: 14px 24px; }
button.xxl { display: block; width: 100%; font-size: 26px; font-weight: 800; padding: 22px 16px; border-radius: 16px; margin-top: 14px; letter-spacing: .02em; }
button.xxl small { display: block; font-size: 15px; font-weight: 500; letter-spacing: 0; opacity: .9; margin-top: 4px; }
.two { display: grid; gap: 4px; }
.hint { color: var(--muted); font-size: 15px; }
.bar { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-top: 12px; }
.bar span { display: block; height: 100%; background: var(--accent); transition: width .5s; }

.evlist { list-style: none; padding: 0; margin: 0; }
.evlist li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.evlist li:last-child { border-bottom: 0; }
.evlist .t { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 44px; }
.struck { text-decoration: line-through; opacity: .55; }

.chip { display: inline-block; font-size: 14px; font-weight: 600; padding: 1px 7px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); vertical-align: middle; }
.chip.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.chip.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.chip.bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.notice { background: var(--info-bg); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; font-size: 16px; }
.notice.ok { background: var(--ok-bg); }
.flags { display: grid; gap: 6px; margin-top: 10px; }
.flag { padding: 7px 10px; border-radius: 8px; font-size: 15px; }
.flag.fout { background: var(--bad-bg); }
.flag.waarschuwing { background: var(--warn-bg); }
.flag.info { background: var(--info-bg); }

/* overlays */
.overlay { position: fixed; inset: 0; background: rgba(10,14,20,.45); z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.sheet-ov { z-index: 50; }
.sheet { background: var(--surface); width: 100%; max-width: 560px; max-height: 88vh; overflow: auto; border-radius: 18px 18px 0 0; padding: 18px 16px 22px; }
@media (min-width: 700px) { .overlay { align-items: center; } .sheet { border-radius: 18px; } }
.sheet h3 { font-size: 20px; margin: 0 0 10px; }
fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.opt { display: flex; gap: 8px; align-items: center; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.opt:has(input:checked) { border-color: var(--brand); background: var(--info-bg); }
.geo { background: var(--surface-2); padding: 8px 10px; border-radius: 8px; font-size: 15px; }
textarea, .sheet input[type=number], .sheet input[type=time], .sheet input:not([type]), .sheet select { width: 100%; }
.dep { display: none; }
form:has(input[name=rol][value=chauffeur_met]:checked) .dep-met,
form:has(input[name=rol][value=passagier]:checked) .dep-pas,
form:has(input[name=soort][value=toevoegen]:checked) .dep-add,
form:has(input[name=soort][value=toevoegen]:checked) .dep-time,
form:has(input[name=soort][value=wijzigen]:checked) .dep-ev,
form:has(input[name=soort][value=wijzigen]:checked) .dep-time,
form:has(input[name=soort][value=schrappen]:checked) .dep-ev { display: block; }

.panel { background: var(--surface); width: 100%; max-height: 100vh; overflow: auto; padding: 16px; }
.panel.big { max-width: 1100px; height: 100vh; }
@media (min-width: 700px) { .panel.big { height: auto; max-height: 92vh; border-radius: 16px; } }
.panel-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 12px; position: sticky; top: -16px; background: var(--surface); padding: 6px 0; z-index: 2; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin: 10px 0; }
.tile { background: var(--surface-2); border-radius: 10px; padding: 10px; }
.tile span { display: block; font-size: 15px; color: var(--muted); }
.tile b { font-size: 22px; font-variant-numeric: tabular-nums; }
.tile.abs { background: var(--warn-bg); }
.cols { display: grid; gap: 18px; }
@media (min-width: 900px) { .cols { grid-template-columns: 1.2fr 1fr; } }
.explain { padding-left: 18px; margin: 0; font-size: 16px; }
.explain li { margin-bottom: 5px; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.audit li { font-size: 15px; }

/* tijdlijn */
.tl { margin: 14px 0 6px; }
.tl-track { position: relative; height: 26px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.tl-track .seg { position: absolute; top: 0; bottom: 0; }
.seg.werk { background: var(--seg-werk); } .seg.pauze { background: var(--seg-pauze); } .seg.verplaatsing { background: var(--seg-verpl); } .seg.woonwerk { background: var(--seg-woon); }
.seg.unknown { background: repeating-linear-gradient(45deg, var(--bad) 0 4px, transparent 4px 8px); width: 30px !important; }
.tl-ticks { position: relative; height: 18px; font-size: 14px; color: var(--muted); }
.tl-ticks span { position: absolute; transform: translateX(-50%); }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 15px; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 4px; vertical-align: -2px; position: static; }

/* tabellen */
.tblwrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-size: 15px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.tbl tr.tot td { font-weight: 700; background: var(--surface-2); }
.tbl.grid td.cell { padding: 3px; text-align: center; }
.cellbtn { width: 100%; padding: 6px 4px; font-variant-numeric: tabular-nums; border-radius: 7px; }
.cellbtn small { display: block; font-size: 13px; color: var(--muted); }
td.cell.warn .cellbtn { background: var(--warn-bg); border-color: var(--warn); }
td.cell.bad .cellbtn { background: var(--bad-bg); border-color: var(--bad); }

.weeknav { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.days { list-style: none; padding: 0; margin: 0; }
.dayrow { width: 100%; display: grid; grid-template-columns: 90px 1fr auto 24px; gap: 8px; align-items: center; text-align: left; margin-bottom: 6px; padding: 10px 12px; }
.dayrow.today { border-color: var(--brand); }
.dname { font-weight: 700; text-transform: capitalize; }
.dtime { color: var(--muted); font-size: 15px; }
.dtot { font-weight: 700; font-variant-numeric: tabular-nums; }
.row-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.row-form label { display: grid; gap: 3px; font-size: 15px; color: var(--muted); }
.settings label { display: inline-flex; gap: 6px; align-items: center; margin-right: 14px; }
.settings .opt { display: flex; }
.preview { background: var(--surface-2); padding: 10px; border-radius: 8px; font-size: 15px; overflow: auto; max-height: 300px; }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; z-index: 60; max-width: calc(100% - 32px); box-shadow: var(--shadow); }

@media (max-width: 700px) { .demobar { position: static; } .demobar select { max-width: 200px; } }
@media (max-width: 420px) { .hero .big { font-size: 44px; } .dayrow { grid-template-columns: 70px 1fr auto 20px; } }

@media print {
  body * { visibility: hidden; }
  .printarea, .printarea * { visibility: visible; }
  .printarea { position: absolute; left: 0; top: 0; width: 100%; color: #000; }
  .noprint { display: none; }
}

/* ---------- uitbreidingen ---------- */
.headbtns { display: flex; gap: 6px; flex-wrap: wrap; }
.headbtns button { font-size: 15px; padding: 5px 10px; }
.headbtns button.on { background: var(--warn-bg); border-color: var(--warn); }
.qrbtn { width: 100%; margin-top: 12px; padding: 12px; font-weight: 600; border-style: dashed; }
.undo { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--info-bg); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.undo span:first-of-type { flex: 1; }
.confirm { text-align: left; background: var(--surface-2); border-radius: 12px; padding: 12px 14px; margin-top: 14px; }
.confirm ul { margin: 6px 0 0; padding-left: 18px; }
.okline { color: var(--ok); font-weight: 600; margin: 10px 0 0; }
.notice.bad { background: var(--bad-bg); }
.okgeo { background: var(--ok-bg) !important; }
.pushes { display: grid; gap: 8px; margin: 0 0 12px; }
.push { display: flex; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow); }
.push .pi { font-size: 24px; line-height: 1; }
.push .pb { flex: 1; min-width: 0; }
.push .ph { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.push .pa { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.push .pa button { padding: 6px 12px; font-size: 15px; }
.viewfinder { position: relative; height: 150px; border-radius: 14px; background: #10141a; margin-bottom: 10px; overflow: hidden; }
.viewfinder span { position: absolute; inset: 22px 30%; border: 3px solid #7be0a6; border-radius: 10px; }
.viewfinder::after { content: ""; position: absolute; left: 30%; right: 30%; top: 50%; height: 2px; background: #7be0a6; animation: scan 1.6s ease-in-out infinite alternate; }
@keyframes scan { from { transform: translateY(-40px); } to { transform: translateY(40px); } }
@media (prefers-reduced-motion: reduce) { .viewfinder::after { animation: none; } }
.scanlist { display: grid; gap: 6px; }
.scanlist button { display: flex; justify-content: space-between; gap: 8px; text-align: left; padding: 10px 12px; flex-wrap: wrap; }
.subtle { box-shadow: none; background: transparent; }
.btnlink { display: inline-block; border: 1px solid var(--line); border-radius: var(--radius-btn); padding: 7px 12px; color: var(--text); text-decoration: none; cursor: pointer; background: var(--surface); font-weight: 500; }
.btnlink:hover { border-color: var(--brand); color: var(--brand); }
.row-form label.opt { display: flex; flex-direction: row; color: var(--text); font-size: 16px; }
.onboard .dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 10px; }
.onboard .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.onboard .dots i.on { background: var(--accent); width: 22px; border-radius: 9px; }
.onboard .obtext { font-size: 18px; line-height: 1.55; }
.mini { height: 6px; background: var(--line); border-radius: 9px; overflow: hidden; margin: 4px 0; }
.mini i { display: block; height: 100%; background: var(--accent); }
.tile span + span { font-size: 14px; }
.filters { display: inline-flex; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; }
.filters button { border-radius: 999px; padding: 4px 12px; font-size: 15px; }
.filters button.active { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.siglist { list-style: none; padding: 0; margin: 0; }
.sig { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.sig > div:nth-child(2) { flex: 1; min-width: 200px; font-size: 16px; }
.sig .si { font-size: 20px; }
.sig .sa { display: flex; gap: 6px; }
.bulk { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--ok-bg); border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; font-size: 16px; }
.sitegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.sitecard { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.sitecard .sh { display: flex; justify-content: space-between; gap: 6px; }
.cols3 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.rgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.rooster { border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.rooster .rname { font-weight: 700; flex: 1; min-width: 0; }
.rooster td input { padding: 4px 6px; }
tr.dim td { opacity: .55; }
.kiosk { text-align: center; }
.kiosk .card-head { text-align: left; }
.kiosk .kname { font-size: 28px; margin: 10px 0 4px; }
.kacts { display: grid; gap: 10px; max-width: 420px; margin: 14px auto 0; }
.pin { font-size: 36px; letter-spacing: .3em; min-height: 46px; margin: 6px 0 12px; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 320px; margin: 0 auto 12px; }
.keypad button { font-size: 28px; padding: 16px 0; border-radius: 14px; }
.sticker { text-align: center; color: #000; background: #fff; padding: 20px; }
.sticker h2 { font-size: 24px; margin: 10px 0 4px; }

/* buitenmodus: maximaal contrast, grotere doelen */
body.outdoor { --bg: #ffffff; --surface: #ffffff; --surface-2: #f2f2f2; --text: #000000; --muted: #222; --line: #000000; --brand: #0038a8; --brand-ink: #fff; color-scheme: light; font-size: 20px; }
body.outdoor .card, body.outdoor .opt, body.outdoor button { border-width: 2px; }
body.outdoor button.xxl { font-size: 32px; padding: 28px 16px; }
body.outdoor .actions.grid3 button { padding: 22px 6px; font-size: 20px; }
body.outdoor .hero .big { font-size: 60px; }
body.outdoor .muted { color: #222; }

/* ---------- huisstijl & personalisatie per bedrijf ---------- */
.apphead { border-bottom: 3px solid var(--accent); margin-bottom: 8px; }
.logo { height: 38px; width: auto; display: block; }
.logo-wrap { background: #fff; border-radius: 8px; padding: 4px 8px; display: inline-flex; align-items: center; }
.logo-ph { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: var(--brand); color: var(--brand-ink); font-weight: 900; font-size: 18px; }
.brand .app { font-size: 16px; font-weight: 600; color: var(--muted); font-family: var(--font); letter-spacing: 0; }
.brand .co { color: var(--brand); }
.platform { text-align: center; font-size: 15px; color: var(--muted); padding: 18px 0 0; }
.platform b { color: var(--brand); }
.platform i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 6px; }
.kiosk .klogo { height: 56px; margin: 4px auto 6px; }
.sticker img.slogo { height: 48px; margin-bottom: 8px; }
.onboard .oblogo { height: 40px; margin: 0 auto 10px; display: block; }
.brandprev { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 12px; border: 1px dashed var(--line); border-radius: 10px; margin-bottom: 10px; }
.swatch { width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--line); display: inline-block; vertical-align: middle; }
input[type=color] { width: 48px; height: 34px; padding: 2px; }
.hero.idle .state, .hero .state { color: var(--brand); }

/* ---------- toegankelijkheid: grotere doelen, duidelijke randen en focus (iteratie 2026-11-30) ---------- */
button, .btnlink, input, select, textarea { min-height: 48px; }
button, .btnlink { padding: 10px 16px; border-width: 2px; font-weight: 600; }
button.small, .btnlink.small { min-height: 40px; padding: 6px 12px; }
input, select, textarea { border-width: 2px; padding: 10px 12px; }
input[type=checkbox], input[type=radio] { min-height: 0; width: 24px; height: 24px; accent-color: var(--brand); flex: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; box-shadow: 0 0 0 5px var(--brand); }
button:disabled { opacity: .5; cursor: not-allowed; }
.card { border-width: 2px; }
.opt { border-width: 2px; padding: 12px 14px; font-size: 18px; min-height: 52px; cursor: pointer; }
.opt:has(input:checked) { border-width: 3px; font-weight: 600; }
legend { font-size: 19px; }
.sheet h3 { font-size: 24px; }
.hint, .muted { color: var(--muted); }
.flag { border-left: 6px solid; font-size: 16px; padding: 10px 12px; }
.flag.fout { border-color: var(--bad); } .flag.waarschuwing { border-color: var(--warn); } .flag.info { border-color: var(--brand); }
.chip { font-weight: 700; padding: 2px 9px; border-width: 2px; }
.tabs button { min-height: 48px; font-size: 17px; padding: 8px 18px; border-width: 2px; }
.tabs button.active { font-weight: 800; }
.actions.grid3 button { min-height: 64px; font-size: 18px; }
button.xxl { min-height: 96px; }
.hero .state { font-size: 15px; }
.keypad button { min-height: 64px; }
.tbl th, .tbl td { padding: 9px 10px; }
.tbl th { color: var(--text); }
.evlist li { padding: 10px 0; }
.toast { font-size: 18px; padding: 14px 20px; }
a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.tabs { flex-wrap: wrap; overflow: visible; }
@media (max-width: 560px) {
  .actions:not(.grid3) > button, .actions:not(.grid3) > a { flex: 1 1 100%; }
  .apphead { align-items: flex-start; }
  .headbtns { width: 100%; }
}
/* keuzes: rondje/vinkje vast links, tekst loopt ernaast door */
.opt { display: block; position: relative; padding-left: 52px; }
.opt > input[type=radio], .opt > input[type=checkbox] { position: absolute; left: 14px; top: 13px; margin: 0; }
.opt .muted { display: inline; }
.sheet form > .actions, .sheet > .actions { position: sticky; bottom: -22px; background: var(--surface); margin: 12px -16px -22px; padding: 12px 16px 18px; border-top: 2px solid var(--line); z-index: 2; }
.sheet form > .actions button { flex: 1 1 0; min-height: 56px; font-size: 18px; }
.sheet form > .actions button.primary, .sheet form > .actions button.danger { flex: 2 1 0; }

/* ---------- app-gevoel: vaste kopbalk, tabbalk en actiebalk onderaan (2026-11-30) ---------- */
body.appmodus { padding-top: env(safe-area-inset-top); }
.appbar { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 3px solid var(--accent); box-shadow: 0 2px 10px rgba(15, 23, 42, .08); }
.appbar-in { max-width: 560px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 12px; min-height: 60px; }
.appbar .logo { height: 32px; }
.appbar .logo-wrap { padding: 3px 6px; }
.appbar-wie { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.appbar-wie b { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar-wie small { color: var(--muted); font-size: 15px; }
.appshell { padding-top: 14px; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.appshell.met-balk { padding-bottom: calc(190px + env(safe-area-inset-bottom)); }
.onderaan { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; pointer-events: none; }
.onderaan > * { pointer-events: auto; }
.actiebalk { max-width: 560px; margin: 0 auto; padding: 10px 12px; background: var(--surface); border-top: 2px solid var(--line); box-shadow: 0 -6px 18px rgba(15, 23, 42, .10); border-radius: 18px 18px 0 0; }
.actiebalk > button { width: 100%; }
.actiebalk button { min-height: 64px; font-size: 20px; font-weight: 800; border-radius: 14px; }
.actiebalk button.groot { min-height: 72px; font-size: 22px; }
.actiebalk button.start { display: flex; flex-direction: column; align-items: center; justify-content: center; letter-spacing: .03em; }
.actiebalk button.start small { font-size: 15px; font-weight: 600; opacity: .9; letter-spacing: 0; }
.actiebalk .balk2, .actiebalk .balk3 { display: grid; gap: 8px; }
.actiebalk .balk2 { grid-template-columns: 1fr 2fr; }
.actiebalk .balk2:not(.omgekeerd) { grid-template-columns: 2fr 1fr; }
.actiebalk .balk3 { grid-template-columns: 1fr 1fr 1fr; }
.actiebalk .balk3 button { display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 16px; padding: 6px 4px; min-height: 72px; line-height: 1.15; }
.actiebalk .bi { font-size: 22px; line-height: 1; margin-bottom: 4px; }
.tabbalk { display: flex; background: var(--surface); border-top: 2px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbalk button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; padding: 8px 2px 10px; min-height: 66px; position: relative; }
.tabbalk button svg { display: block; }
.tabbalk button.active { color: var(--brand); font-weight: 800; }
.tabbalk button.active::before { content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 4px; border-radius: 0 0 4px 4px; background: var(--brand); }
.tabbalk button:focus-visible { box-shadow: inset 0 0 0 3px var(--brand); outline: none; }
.onderaan .undo { max-width: 536px; margin: 0 12px 8px; margin-inline: auto; width: calc(100% - 24px); box-shadow: var(--shadow); border: 2px solid var(--brand); background: var(--surface); }
@media (min-width: 600px) { .onderaan .undo { margin: 0 auto 8px; } .tabbalk { justify-content: center; } .tabbalk button { flex: 0 1 112px; } .actiebalk { border-radius: 18px 18px 0 0; } }
.appshell .hero { padding-top: 26px; padding-bottom: 26px; }
.appshell .hero .big { font-size: 60px; }
.appshell .hero.idle .lead { font-size: 18px; font-weight: 600; color: var(--text); margin: 14px 0 0; }
.toast { bottom: calc(200px + env(safe-area-inset-bottom)); }
/* onderste vensters schuiven open zoals in een app */
.sheet { animation: omhoog .22s ease-out; }
@keyframes omhoog { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }
body.appmodus .overlay { z-index: 40; }
body.outdoor .tabbalk button { color: #000; }
body.outdoor .tabbalk button.active { color: var(--brand); }
.actiebalk .balk2 button:not(.primary) { font-size: 17px; font-weight: 700; line-height: 1.2; }
.actiebalk .balk2.omgekeerd { grid-template-columns: 1fr 1.6fr; }
.opt .optuitleg { display: block; font-size: 15px; color: var(--muted); font-weight: 400; margin-top: 4px; }
.keuze { display: grid; gap: 6px; margin: 0 0 14px; font-weight: 700; font-size: 19px; }
.keuze select { width: 100%; min-height: 58px; font-size: 18px; font-weight: 600; border: 2px solid var(--brand); border-radius: 12px; padding: 10px 40px 10px 12px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='22' height='22' fill='none' stroke='%23101aed' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; -webkit-appearance: none; appearance: none; }

/* ---------- dagoverzicht: volledig scherm, verticale tabs ---------- */
.overlay.dagov { align-items: stretch; justify-content: center; }
.dagpaneel { background: var(--bg); width: 100%; max-width: 760px; height: 100%; display: flex; flex-direction: column; animation: omhoog .22s ease-out; }
@media (min-width: 800px) { .overlay.dagov { align-items: center; } .dagpaneel { height: 92vh; border-radius: 18px; overflow: hidden; } }
.daghead { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; background: var(--surface); border-bottom: 3px solid var(--accent); }
.daghead h2 { margin: 0 0 4px; font-size: 22px; text-transform: capitalize; }
.daghead .sluit { min-width: 52px; font-size: 22px; }
.dagbody { flex: 1; min-height: 0; display: grid; grid-template-columns: 112px 1fr; }
.vtabs { display: flex; flex-direction: column; gap: 4px; padding: 10px 6px; background: var(--surface); border-right: 2px solid var(--line); overflow-y: auto; }
.vtabs button { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 2px solid transparent; background: transparent; border-radius: 12px; padding: 10px 4px; font-size: 14px; font-weight: 600; color: var(--muted); min-height: 64px; text-align: center; line-height: 1.15; }
.vtabs button span { font-size: 22px; }
.vtabs button.active { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); font-weight: 800; }
.dagin { overflow-y: auto; padding: 14px 14px 24px; }
.dagin h3 { margin-top: 18px; }
.dagtegels { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.dagtegels .tile.groot { grid-column: 1 / -1; }
.dagtegels .tile.groot b { font-size: 36px; }
.reglijst { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.reglijst li { display: flex; gap: 12px; background: var(--surface); border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.reglijst .rt { font-family: var(--font-kop); font-weight: 800; font-size: 20px; min-width: 58px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.reglijst .rt small { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
.reglijst .rd { flex: 1; min-width: 0; }
.reglijst .chip { margin-top: 6px; }
.dagvoet { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 2px solid var(--line); }
.dagvoet button { width: 100%; min-height: 60px; font-size: 19px; }
@media (max-width: 380px) { .dagbody { grid-template-columns: 92px 1fr; } .vtabs button { font-size: 13px; } }
