/* Layout: werkplaats-app. Donkere kopbalk, lichte werkvloer, rooster als ruitjespapier. Telefoon = dag voor dag, groter scherm = hele week. */
:root {
  --bg: #f5f5f2;
  --surface: #ffffff;
  --ink: #141414;
  --muted: #6b6a66;
  --line: #e6e4de;
  --yolk: #ffd200;          /* accentkleur (de formule kiest hem) */
  --yolk-soft: color-mix(in srgb, var(--yolk) 20%, #ffffff);
  --on-yolk: #1f1c17;
  --bar: #111111;
  --bar-ink: #f5f5f2;
  --shadow: 0 1px 2px rgba(20,20,20,.05), 0 2px 8px rgba(20,20,20,.04);
  --ok: #2e7d4f;
  --warn: #9a5b00;
  --warn-soft: #fff4e0;
  --bad: #b3261e;
  --bad-soft: #fde9e7;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r: 0;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17150f; --surface: #221f18; --ink: #f1eee6; --muted: #a8a194; --line: #38342a;
    --yolk-soft: color-mix(in srgb, var(--yolk) 16%, #17150f); --bar: #0f0d09; --bar-ink: #f1eee6; --shadow: none;
    --ok: #5cc28a; --warn: #f0b04a; --warn-soft: #3a2c12; --bad: #ff8a80; --bad-soft: #3d1b18;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17150f; --surface: #221f18; --ink: #f1eee6; --muted: #a8a194; --line: #38342a;
  --yolk-soft: color-mix(in srgb, var(--yolk) 16%, #17150f); --bar: #0f0d09; --bar-ink: #f1eee6; --shadow: none;
  --ok: #5cc28a; --warn: #f0b04a; --warn-soft: #3a2c12; --bad: #ff8a80; --bad-soft: #3d1b18;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.45;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yolk); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }

/* Kopbalk */
.bar {
  position: sticky; top: 0; z-index: 20;
  background: var(--bar); color: var(--bar-ink);
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.bar-row { display: flex; align-items: center; gap: 12px; min-height: 56px; flex-wrap: wrap; }
.brand { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
.brand .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--yolk); }
.brand small { font-family: var(--font-body); font-weight: 400; font-size: 14px; opacity: .75; }
.tabs { display: flex; gap: 4px; margin-left: auto; }
.tab {
  background: transparent; border: 0; color: var(--bar-ink); opacity: .7;
  padding: 10px 14px; border-radius: 0; cursor: pointer; font-weight: 700;
}
.tab[aria-current="page"] { opacity: 1; background: rgba(255,255,255,.1); box-shadow: inset 0 -3px 0 var(--yolk); }
.linkbtn { background: none; border: 0; color: var(--bar-ink); opacity: .7; cursor: pointer; padding: 8px; text-decoration: underline; }

main {
  max-width: 1440px; margin: 0 auto;
  padding-block: 14px 40px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
h1 { font-size: 28px; font-weight: 800; }
h2 { font-size: 20px; font-weight: 600; }
.sub { color: var(--muted); margin: 4px 0 0; }

/* Knoppen */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 16px; border-radius: var(--r);
  border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 700;
}
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--yolk); border-color: var(--yolk); color: var(--on-yolk); }
.btn.primary:hover { filter: brightness(.95); }
.btn.danger { color: var(--bad); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 14px; }

/* Formulieren */
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 14px; }
.field .hint { color: var(--muted); font-size: 13px; }
input[type=text], input[type=email], input[type=url], input[type=password], input[type=number], input[type=date], input[type=time], select, textarea {
  width: 100%; min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--line);
  border-radius: 0; background: var(--surface);
}
input:focus, select:focus, textarea:focus { border-color: var(--yolk); outline: none; }
.row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.check input { width: 20px; height: 20px; accent-color: var(--yolk); }

/* Meldingen */
.note { padding: 10px 12px; border-radius: 0; font-size: 14px; display: flex; gap: 8px; align-items: flex-start; }
.note.warn { background: var(--warn-soft); color: var(--warn); }
.note.bad { background: var(--bad-soft); color: var(--bad); }
.note.info { background: var(--yolk-soft); color: var(--ink); }
.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 0;
  font-weight: 700; box-shadow: 0 6px 24px rgba(0,0,0,.25); max-width: calc(100% - 32px);
}

/* Inloggen */
.login { max-width: 400px; margin: 8vh auto 0; display: grid; gap: 16px; }
.login .card { background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 24px; display: grid; gap: 14px; }
.login h1 { font-size: 34px; }

/* Weekbalk */
.weekhead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; margin-bottom: 10px; }
.weeknav { display: flex; align-items: center; gap: 8px; }
.weeknav .btn { min-width: 44px; padding: 0; }
.weeklabel { min-width: 0; }
.weeklabel b { font-family: var(--font-display); font-size: 22px; display: block; }
.weeklabel span { color: var(--muted); font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 0; font-size: 13px; font-weight: 700; }
.pill.concept { background: var(--warn-soft); color: var(--warn); }
.pill.final { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }

/* Weekrooster (groot scherm) */
.gridwrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 0; background: var(--surface); }
table.grid { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 860px; table-layout: fixed; }
.grid col.c-emp { width: 150px; }
.grid th, .grid td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); vertical-align: top; padding: 3px 4px; }
.grid th:last-child, .grid td:last-child { border-right: 0; }
.grid thead th { background: var(--bg); font-size: 13px; text-align: left; padding: 6px 6px; position: sticky; top: 0; white-space: nowrap; }
.grid thead th .d { font-family: var(--font-display); font-size: 15px; }
.grid thead th .closedlbl { font-size: 11px; color: var(--muted); margin-left: 4px; }
.grid thead th.today .d { color: var(--ink); box-shadow: inset 0 -3px 0 var(--yolk); display: inline-block; }
.grid th.emp { position: sticky; left: 0; background: var(--surface); z-index: 2; text-align: left; font-weight: 400; }
.grid thead th.emp { background: var(--bg); z-index: 3; }
.empname { font-weight: 700; display: block; font-size: 15px; line-height: 1.2; }
.emphours { font-size: 12px; color: var(--muted); line-height: 1.2; }
.emphours.over { color: var(--warn); font-weight: 700; }
.grid td.cell { height: 34px; position: relative; }
.grid td.cell.has { padding-right: 22px; }
.grid td.cell.has .addcell { position: absolute; right: 2px; top: 3px; width: 18px; min-height: 22px; font-size: 14px; }
.grid col.c-closed { width: 54px; }
.grid th.emp { padding: 4px 8px; }
.grid td.closed { background: repeating-linear-gradient(45deg, transparent 0 6px, var(--line) 6px 7px); }
.grid tfoot td, .grid tfoot th { background: var(--bg); font-size: 12px; color: var(--muted); border-bottom: 0; padding: 5px 6px; }
.shift {
  display: block; width: 100%; text-align: left; cursor: pointer;
  border-radius: 0; padding: 6px 8px; margin-bottom: 4px;
  background: var(--yolk-soft); border: 1.5px solid var(--yolk); color: var(--ink);
}
.shift.concept { background: transparent; border-style: dashed; border-color: var(--warn); }
.shift .t { font-weight: 700; font-size: 14px; display: block; }
.shift .m { font-size: 12px; color: var(--muted); }
.grid .shift { padding: 2px 6px; margin-bottom: 2px; border-radius: 0; }
.grid .shift .t { font-size: 13px; }
.grid .shift .m { display: none; }
.grid .shift .nt { font-weight: 400; color: var(--muted); font-size: 11px; margin-left: 4px; }
.shift .flag { color: var(--warn); font-weight: 700; }
.addcell {
  width: 100%; min-height: 20px; border: 1.5px dashed transparent; border-radius: 0;
  background: transparent; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; opacity: .45;
}
td.cell:hover .addcell, .addcell:focus-visible { opacity: 1; }
td.cell:hover .addcell, .addcell:focus-visible { border-color: var(--line); color: var(--ink); }

/* Dagweergave (telefoon) */
.daytabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; }
.daytab {
  flex: 0 0 auto; min-width: 56px; padding: 8px 10px; border-radius: 0; border: 1.5px solid var(--line);
  background: var(--surface); cursor: pointer; text-align: center;
}
.daytab b { display: block; font-family: var(--font-display); font-size: 18px; }
.daytab small { font-size: 12px; color: var(--muted); }
.daytab[aria-selected="true"] { background: var(--yolk); border-color: var(--yolk); color: var(--on-yolk); }
.daytab[aria-selected="true"] small { color: var(--on-yolk); }
.daytab:disabled { opacity: .4; }
.daylist { display: grid; gap: 8px; }
.dayrow { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 10px 12px; }
.dayrow .who { flex: 1; min-width: 0; }
.dayrow .shift { width: auto; margin: 0; }
.empty { color: var(--muted); padding: 24px; text-align: center; border: 1.5px dashed var(--line); border-radius: 0; }

.only-wide { display: block; }
.only-narrow { display: none; }
@media (max-width: 760px) {
  .only-wide { display: none; }
  .only-narrow { display: block; }
  h1 { font-size: 24px; }
  .tabs { margin-left: 0; width: 100%; order: 3; display: grid; grid-template-columns: 1fr 1fr; padding-bottom: 8px; }
  .tab { padding: 8px 10px; }
  .linkbtn { margin-left: auto; }
  .tab { flex: 1; }
}

/* Medewerkers */
.staff { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 14px; display: grid; gap: 10px; }
.person .top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.person .name { font-weight: 700; font-size: 18px; }
.person .meta { color: var(--muted); font-size: 14px; }
.person .btns { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 0; background: var(--bg); border: 1px solid var(--line); }
.tag.mgr { background: var(--yolk-soft); border-color: var(--yolk); }
.tag.nopin { color: var(--bad); border-color: currentColor; background: transparent; }
.tag.locked { color: var(--warn); border-color: currentColor; background: transparent; }
.tag.gone { color: var(--muted); }

/* Winkeltablet */
.tabclock { margin-left: auto; font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.tabhead { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-end; margin-bottom: 16px; }
.links { display: flex; gap: 8px; flex-wrap: wrap; }
a.btn { text-decoration: none; color: var(--ink); }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.tile {
  min-height: 108px; padding: 16px; border-radius: 0; text-align: left; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--line); display: grid; align-content: space-between; gap: 8px;
}
.tile:hover { border-color: var(--ink); }
.tile .nm { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.tile .st { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.tile.in { border-color: var(--ok); }
.tile.in .st { color: var(--ok); font-weight: 700; }
.dotlive { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); flex: 0 0 auto; }
.foot-tablet { margin-top: 32px; text-align: center; }
.linkbtn.dark { color: var(--muted); opacity: 1; }
.pindots { display: flex; gap: 12px; justify-content: center; min-height: 28px; }
.pindots span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink); }
.pindots span.on { background: var(--ink); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.keypad button { min-height: 64px; font-size: 26px; font-weight: 700; border-radius: 0; border: 1.5px solid var(--line); background: var(--bg); cursor: pointer; }
.keypad button:active { background: var(--yolk-soft); }
.keypad .ok { background: var(--yolk); border-color: var(--yolk); color: var(--on-yolk); font-size: 20px; }
.bigaction { min-height: 72px; font-size: 22px; width: 100%; }
.bigaction.out { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.mylist { display: grid; gap: 6px; }
.myrow { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 0; background: var(--bg); }
.myrow.today { background: var(--yolk-soft); font-weight: 700; }

.start { max-width: 760px; margin: 4vh auto 0; display: grid; gap: 16px; text-align: center; }
.start h1 { font-size: 36px; }
.startbtns { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 8px 0; }
.startbtn {
  min-height: 170px; border-radius: 0; border: 2px solid var(--line); background: var(--surface); cursor: pointer;
  display: grid; align-content: center; gap: 8px; padding: 20px;
}
.startbtn b { font-family: var(--font-display); font-size: 32px; }
.startbtn span { color: var(--muted); }
.startbtn:hover { border-color: var(--ink); }
.startbtn.mgr { background: var(--bar); color: var(--bar-ink); border-color: var(--bar); }
.startbtn.mgr span { color: var(--bar-ink); opacity: .75; }
.empgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 18px; display: grid; gap: 12px; min-width: 0; }
.links.col { flex-direction: column; }

/* Takenlijst */
.panel.wide { grid-column: 1 / -1; }
.taskhead { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.taskgroup { display: grid; gap: 6px; }
.taskgroup h3 { font-size: 15px; color: var(--muted); font-family: var(--font-body); font-weight: 700; margin: 6px 0 0; }
.task { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 0; background: var(--surface); }
.task.done { background: var(--bg); }
.task.done .ttitle { text-decoration: line-through; color: var(--muted); }
.tcheck {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 0; border: 2px solid var(--line);
  background: var(--surface); cursor: pointer; font-size: 20px; font-weight: 800; color: transparent;
}
.tcheck:hover { border-color: var(--ok); }
.task.done .tcheck { background: var(--ok); border-color: var(--ok); color: #fff; }
.tmain { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ttitle { font-weight: 700; }
.tmeta { font-size: 13px; color: var(--muted); }
.tmeta .moved { color: var(--warn); font-weight: 700; }
.tmeta .by { color: var(--ok); font-weight: 700; }
.tact { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.progress { font-size: 14px; color: var(--muted); }
.daychk { display: flex; flex-wrap: wrap; gap: 6px; }
.daychk label { display: flex; align-items: center; gap: 4px; padding: 6px 10px; border: 1.5px solid var(--line); border-radius: 0; cursor: pointer; }
.daychk input { accent-color: var(--yolk); }
.mgrtasks { width: 100%; border-collapse: collapse; background: var(--surface); }
.mgrtasks th, .mgrtasks td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
.mgrtasks th { background: var(--bg); color: var(--muted); font-size: 13px; }
@media (max-width: 560px) { .task { flex-wrap: wrap; } .tact { width: 100%; justify-content: flex-start; padding-left: 52px; } }

/* Menu en navigatie */
.menubtn { background: var(--yolk); color: var(--on-yolk); border: 0; border-radius: 0; font-weight: 800; padding: 8px 12px; cursor: pointer; }
.navtitle { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.whoami { margin-left: auto; font-size: 14px; opacity: .8; }
.whoami b { color: var(--yolk); }
.nowbar { background: var(--yolk); color: var(--on-yolk); border-radius: 0; padding: 12px 14px; display: grid; gap: 4px; margin-bottom: 14px; }
.nowbar .k { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.nowbar .t { font-weight: 700; font-size: 17px; }
.homehead { margin-bottom: 12px; }
.menugrid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
@media (max-width: 420px) { .menugrid { grid-template-columns: 1fr 1fr; } }
.mtile {
  position: relative; min-height: 104px; border-radius: 0; padding: 14px; text-align: left; cursor: pointer;
  background: var(--surface); border: 2px solid var(--ink); color: var(--ink); display: grid; align-content: space-between; gap: 6px;
}
.mtile b { font-family: var(--font-display); font-size: 18px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; hyphens: auto; padding-right: 26px; }
.mtile span { font-size: 13px; color: var(--muted); }
.mtile:hover { background: var(--yolk-soft); }
.mtile.mgr { background: var(--bar); color: var(--yolk); border-color: var(--bar); }
.mtile.mgr span { color: var(--bar-ink); opacity: .75; }
.mtile .badge { position: absolute; top: 10px; right: 10px; background: var(--bad); color: #fff; border-radius: 0; min-width: 24px; height: 24px; padding: 0 7px; font-size: 13px; font-weight: 800; display: grid; place-items: center; }
.mtile .badge.warn { background: var(--yolk); color: var(--on-yolk); }
.startbtns.four { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.startbtn.link { text-decoration: none; color: var(--ink); min-height: 120px; background: var(--yolk); border-color: var(--yolk); }
.startbtn.link span { color: var(--on-yolk); opacity: .75; }
.startbtn.link.disabled { opacity: .55; }
.visually-hidden { position: absolute; left: -9999px; width: 1px; height: 1px; }
@media (max-width: 760px) {
  .navtitle { display: none; }
  .whoami { font-size: 13px; }
  .startbtn { min-height: 110px; }
  .startbtn b { font-size: 26px; }
}

/* Agenda */
.aglist { display: grid; gap: 8px; }
.agitem { background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start; }
.agitem .kind { flex: 0 0 auto; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 0; background: var(--bg); border: 1px solid var(--line); text-transform: uppercase; letter-spacing: .04em; }
.agitem .kind.actie, .agitem .kind.broodje { background: var(--yolk); border-color: var(--yolk); color: var(--on-yolk); }
.agitem .body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.agitem .when { font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .agitem { display: grid; grid-template-columns: 1fr auto; } .agitem .kind { justify-self: start; align-self: center; } .agitem .body { grid-column: 1 / -1; grid-row: 2; } .agitem > button { grid-column: 2; grid-row: 1; } }
.agweek-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 12px; }
.agweek-nav { display: flex; align-items: center; gap: 8px; }
.agweek-nav b { font-family: var(--font-display); font-size: 17px; }
.agday { margin-bottom: 14px; }
.agday h3 { font-size: 15px; margin: 0 0 6px; }
.agday.today h3 { color: var(--ink); }
.agday .agempty { margin: 0; font-size: 14px; padding: 10px 14px; border: 1px dashed var(--line); border-radius: 0; }
.agcal { background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 12px; margin: 8px 0 4px; }
.agcal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.agcal-head b { font-family: var(--font-display); font-size: 18px; text-transform: capitalize; }
.agcal-head button { min-width: 44px; }
.agcal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.agcal-dow { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding: 2px 0; }
.agcal-day { border: 1px solid transparent; background: var(--bg); border-radius: 0; min-height: 48px; padding: 4px 2px; display: grid; justify-items: center; align-content: start; gap: 3px; cursor: pointer; font-weight: 700; }
.agcal-day.out { opacity: .4; }
.agcal-day.today { border-color: var(--ink); }
.agcal-day[aria-pressed="true"] { background: var(--ink); color: var(--yolk); }
.agcal-day .dots { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; }
.agcal-day .dots i { width: 7px; height: 7px; border-radius: 0; background: var(--muted); }
.agcal-day .dots i.actie, .agcal-day .dots i.broodje { background: var(--yolk); }
.agcal-day .dots i.afspraak { background: var(--ok); }
.agcal-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 8px; }
.agcal-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 0; margin-right: 4px; background: var(--muted); }
.agcal-legend i.y { background: var(--yolk); } .agcal-legend i.g { background: var(--ok); }

/* Allergenen */
.allergen-tools { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.allergen-tools input { flex: 1 1 240px; }
.segmented { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 0; overflow: hidden; }
.segmented button { border: 0; background: var(--surface); padding: 0 14px; min-height: 44px; font-weight: 700; cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--ink); color: var(--yolk); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip { border: 1.5px solid var(--line); background: var(--surface); border-radius: 0; padding: 6px 12px; font-size: 14px; font-weight: 700; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--yolk); border-color: var(--yolk); color: var(--on-yolk); }
label.chip { display: inline-flex; gap: 6px; align-items: center; }
label.chip input { accent-color: var(--yolk); }
.allist { display: grid; gap: 6px; margin-bottom: 12px; }
.alrow mark { background: var(--yolk-soft); color: inherit; border-radius: 0; padding: 0 1px; }
.altag.hit { outline: 2px solid var(--bad); }
.alhint { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.alunknown { display: grid; gap: 6px; margin-top: 6px; }
.alunknown .sub { margin: 0; font-size: 14px; }
.alrow { background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 10px 12px; display: grid; gap: 6px; }
.alrow .nm { font-weight: 700; }
.altags { display: flex; flex-wrap: wrap; gap: 4px; }
.altag { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 0; background: var(--bad-soft); color: var(--bad); }
.altag.none { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.altag.unknown { background: var(--warn-soft); color: var(--warn); }

/* Productregistratie */
.prodtbl { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); min-width: 760px; }
.prodtbl th, .prodtbl td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: center; font-size: 14px; }
.prodtbl th { background: var(--bg); font-size: 13px; position: sticky; top: 0; }
.prodtbl th.pn, .prodtbl td.pn { text-align: left; position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 190px; }
.prodtbl th.pn { background: var(--bg); z-index: 2; }
.prodtbl th.today { box-shadow: inset 0 -3px 0 var(--yolk); }
.prodtbl .meta2 { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.prodtbl .meta2.due { color: var(--warn); font-weight: 700; }
.prodtbl .meta2.over { color: var(--bad); font-weight: 700; }
.pcheck { width: 34px; height: 34px; border-radius: 0; border: 2px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 800; color: transparent; }
.pcheck[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); color: #fff; }
.pcheck:disabled { opacity: .35; cursor: default; }

/* Dagoverdracht */
.holist { display: grid; gap: 6px; }
.horow { display: grid; grid-template-columns: minmax(140px, 1fr) auto minmax(140px, 1.2fr); gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 8px 10px; }
.horow .nm { font-weight: 700; }
.seg3 { display: inline-flex; border: 1.5px solid var(--line); border-radius: 0; overflow: hidden; }
.seg3 button { border: 0; background: var(--surface); padding: 0 12px; min-height: 40px; font-weight: 700; cursor: pointer; font-size: 14px; }
.seg3 button + button { border-left: 1.5px solid var(--line); }
.seg3 button[aria-pressed="true"][data-st="vol"] { background: var(--ok); color: #fff; }
.seg3 button[aria-pressed="true"][data-st="half"] { background: var(--yolk); color: var(--on-yolk); }
.seg3 button[aria-pressed="true"][data-st="leeg"] { background: var(--bad); color: #fff; }
.horow input { min-height: 40px; }
.morning { background: var(--bar); color: var(--bar-ink); border-radius: 0; padding: 14px; margin-bottom: 14px; display: grid; gap: 6px; }
.morning h2 { color: var(--yolk); font-size: 18px; }
.morning .line b { color: var(--yolk); }
@media (max-width: 640px) { .horow { grid-template-columns: 1fr; } .seg3 { display: flex; } .seg3 button { flex: 1; min-height: 44px; } }

/* Kassa */
.cstate { align-self: center; font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 0; background: var(--yolk-soft); }
.cstate.done { background: var(--ok); color: #fff; }
.csteps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.csteps button { border: 1.5px solid var(--line); background: var(--surface); border-radius: 0; min-height: 48px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 4px 6px; }
.csteps button i { font-style: normal; width: 24px; height: 24px; border-radius: 0; background: var(--line); display: grid; place-items: center; font-size: 13px; flex: none; }
.csteps button[aria-current="step"] { border-color: var(--ink); background: var(--ink); color: var(--yolk); }
.csteps button[aria-current="step"] i { background: var(--yolk); color: var(--on-yolk); }
.csteps button.ok i { background: var(--ok); color: #fff; }
#cash-lock { margin-bottom: 12px; }
.ctable { display: grid; border: 1px solid var(--line); border-radius: 0; overflow: hidden; }
.crow { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 10px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line); }
.crow:nth-child(odd):not(.chead) { background: var(--bg); }
.crow.chead { border-top: 0; background: var(--bg); color: var(--muted); font-size: 13px; font-weight: 700; padding: 8px 12px; }
.crow .face b { font-size: 17px; display: block; }
.crow .face small, .crow .amt small { color: var(--muted); font-size: 12px; }
.crow .amt b { display: block; }
.crow input { width: 100%; min-height: 46px; text-align: center; font-size: 18px; border: 1.5px solid var(--line); border-radius: 0; background: var(--surface); }
.crow input:disabled { opacity: .55; }
.crow input.err { border-color: var(--bad); background: var(--bad-soft); }
.ctotals { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.ctotals > div { background: var(--bg); border-radius: 0; padding: 10px 12px; display: grid; }
.ctotals span { font-size: 13px; color: var(--muted); font-weight: 700; }
.ctotals b { font-size: 20px; }
.cnav { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; align-items: center; }
.cphoto { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.cphoto-btn { cursor: pointer; }
.cthumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.cthumbs:empty { display: none; }
.cthumb { position: relative; width: 92px; height: 92px; border-radius: 0; overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.cthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cthumb button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 0; border: 0; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; font-weight: 800; }
.cfields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.cfield { border: 1px solid var(--line); border-radius: 0; padding: 10px 12px; display: grid; gap: 6px; background: var(--surface); }
.cfield label { font-weight: 700; font-size: 14px; display: flex; justify-content: space-between; gap: 6px; }
.cfield label .tag { font-size: 11px; font-weight: 800; background: var(--yolk-soft); border-radius: 0; padding: 1px 8px; white-space: nowrap; }
.cfield input { min-height: 46px; font-size: 18px; border: 1.5px solid var(--line); border-radius: 0; padding: 0 10px; background: var(--surface); width: 100%; }
.cfield.flag { border-color: var(--warn); background: var(--warn-soft); }
.cfield .fnote { font-size: 13px; color: var(--warn); font-weight: 700; }
.cfield .fhint { font-size: 12px; color: var(--muted); }
.csum .srow { display: flex; justify-content: space-between; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.csum .srow.sub { color: var(--muted); font-size: 14px; padding: 6px 2px 6px 14px; }
.csum .srow b { white-space: nowrap; }
.cdiff { border-radius: 0; padding: 14px; display: grid; gap: 2px; background: var(--bg); }
.cdiff span { font-weight: 800; }
.cdiff b { font-family: var(--font-display); font-size: 34px; }
.cdiff small { color: var(--muted); }
.cdiff.ok { background: #e6f4ec; } .cdiff.ok b { color: var(--ok); }
.cdiff.bad { background: var(--bad-soft); } .cdiff.bad b { color: var(--bad); }
:root[data-theme="dark"] .cdiff.ok { background: #183526; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cdiff.ok { background: #183526; } }
@media (max-width: 640px) {
  .csteps { grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .csteps button { flex-direction: column; gap: 2px; font-size: 11px; min-height: 54px; }
  .crow { grid-template-columns: 1fr 1fr 1fr 1fr; gap: 6px; padding: 8px; }
  .crow .face b { font-size: 15px; }
  .crow input { font-size: 16px; min-height: 44px; padding: 0 4px; }
  .crow .amt b { font-size: 14px; }
}
.cpdf { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; }
.histtbl tr[data-cday] { cursor: pointer; }
.histtbl tr[data-cday]:hover td { background: var(--yolk-soft); }
.histtbl { width: 100%; border-collapse: collapse; background: var(--surface); margin-top: 10px; min-width: 640px; }
.histtbl th, .histtbl td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: right; font-size: 14px; }
.histtbl th:first-child, .histtbl td:first-child { text-align: left; }
.histtbl th { background: var(--bg); color: var(--muted); font-size: 12px; }

/* Vrij */
.reqrow { background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 12px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.reqrow .who { font-weight: 700; }
.st-pill { font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: 0; }
.st-pill.aangevraagd { background: var(--warn-soft); color: var(--warn); }
.st-pill.goedgekeurd { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.st-pill.afgewezen { background: var(--bad-soft); color: var(--bad); }
.st-pill.ingetrokken { background: var(--bg); color: var(--muted); }
.leavepill { display: block; font-size: 11px; font-weight: 800; color: var(--muted); background: var(--bg); border: 1px dashed var(--line); border-radius: 0; padding: 1px 6px; margin-bottom: 2px; }

/* Producten beheren */
.ptbl { width: 100%; border-collapse: collapse; background: var(--surface); min-width: 640px; }
.ptbl th, .ptbl td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
.ptbl th { background: var(--bg); color: var(--muted); font-size: 12px; }
.ptbl .mv { min-height: 32px; min-width: 32px; padding: 0; }

/* Loonkosten en maand */
.grid tfoot .money { font-weight: 700; color: var(--ink); }
.grid tfoot .pct-ok { color: var(--ok); font-weight: 700; }
.grid tfoot .pct-high { color: var(--warn); font-weight: 700; }
.revin { width: 100%; min-height: 28px; padding: 2px 6px; font-size: 12px; border-radius: 0; text-align: right; }
.grid input.revin { min-height: 28px; padding: 2px 6px; }
.daysum { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 10px 12px; margin-bottom: 10px; font-size: 14px; }
.daysum .lbl { color: var(--muted); font-size: 12px; display: block; }
.alertlist { display: grid; gap: 6px; margin-bottom: 14px; }
.monthtbl { width: 100%; border-collapse: collapse; background: var(--surface); min-width: 1080px; }
.monthtbl th, .monthtbl td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: right; font-size: 14px; white-space: nowrap; }
.monthtbl th { background: var(--bg); color: var(--muted); font-size: 12px; font-weight: 700; vertical-align: bottom; white-space: normal; }
.monthtbl td:first-child, .monthtbl th:first-child, .monthtbl td:nth-child(2), .monthtbl th:nth-child(2) { text-align: left; }
.monthtbl input[type=number] { width: 78px; min-height: 34px; padding: 4px 6px; text-align: right; }
.monthtbl tfoot td { font-weight: 700; background: var(--bg); }
.monthtbl .plus { color: var(--ok); font-weight: 700; }
.monthtbl .minus { color: var(--bad); font-weight: 700; }
.monthtbl .warnmark { color: var(--warn); font-weight: 700; }
.loglist { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.settingsbox { background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 16px; display: grid; gap: 12px; margin-top: 24px; max-width: 720px; }

/* Vandaag */
.todaytbl { width: 100%; border-collapse: collapse; background: var(--surface); }
.todaytbl th, .todaytbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.todaytbl th { font-size: 13px; color: var(--muted); background: var(--bg); }
.st-ok { color: var(--ok); font-weight: 700; }
.st-warn { color: var(--warn); font-weight: 700; }
.st-bad { color: var(--bad); font-weight: 700; }
.st-muted { color: var(--muted); }

/* Dialoog */
dialog {
  border: 0; border-radius: 0; padding: 0; width: min(480px, calc(100% - 24px));
  background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
dialog::backdrop { background: rgba(20,18,14,.55); }
.dlg { display: grid; gap: 14px; padding: 20px; max-height: 85vh; overflow-y: auto; }
.dlg .foot { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding-top: 4px; }
.dlg .foot .left { margin-right: auto; }
.sumline { font-size: 14px; color: var(--muted); }

.loading { color: var(--muted); padding: 40px 0; text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  .toast { animation: rise .2s ease-out; }
  @keyframes rise { from { transform: translate(-50%, 10px); opacity: 0; } }
}

/* ================= Opfrisbeurt: strak, licht, accent en zwart ================= */
.bar { box-shadow: inset 0 -3px 0 var(--yolk); }
.bar-row { min-height: 58px; padding-bottom: 3px; }
.brand .dot { width: 12px; height: 12px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--yolk) 25%, transparent); }
.btn { border-radius: 0; border: 1px solid var(--line); box-shadow: var(--shadow); transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { border-color: #cfccc4; background: #fbfbf9; }
.btn:active { transform: translateY(1px); }
.btn.primary { box-shadow: none; }
.btn.primary:hover { background: #ffdb33; filter: none; }
.btn.small { border-radius: 0; }
input[type=text], input[type=email], input[type=url], input[type=password], input[type=number], input[type=date], input[type=time], input[type=search], select, textarea {
  border: 1px solid var(--line); border-radius: 0; transition: border-color .15s, box-shadow .15s;
}
input[type=search] { width: 100%; min-height: 46px; padding: 8px 12px; background: var(--surface); }
input:focus, select:focus, textarea:focus { border-color: var(--yolk); box-shadow: 0 0 0 3px color-mix(in srgb, var(--yolk) 35%, transparent); }
.panel, .person, .dayrow, .alrow, .agitem, .task, .cfield, .agcal, .gridwrap, .login .card { border-color: var(--line); box-shadow: var(--shadow); }
.panel { border-radius: 0; }
.note { border-radius: 0; }
.empty { border-width: 1px; background: rgba(255,255,255,.5); }
h1 { letter-spacing: -0.02em; }

/* Menu: tegels met pictogram */
.menuhead { font-family: var(--font-body); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 22px 2px 10px; }
.menugrid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.mtile {
  min-height: 0; border: 1px solid var(--line); border-radius: 0; padding: 16px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto; align-items: start; gap: 12px; align-content: start;
  transition: transform .08s, box-shadow .15s, border-color .15s;
}
.mtile:hover { background: var(--surface); border-color: #d9d6cd; box-shadow: 0 2px 4px rgba(20,20,20,.06), 0 8px 20px rgba(20,20,20,.06); }
.mtile:active { transform: scale(.985); }
.mtile .mico { width: 44px; height: 44px; border-radius: 0; background: var(--yolk); color: var(--on-yolk); display: grid; place-items: center; font-size: inherit; }
.mtile .mtxt { color: var(--ink); font-size: inherit; }
.mtile.mgr .mtxt { color: #fff; opacity: 1; }
.mtile.mgr .mico { opacity: 1; }
.mtile b { hyphens: manual; }
.mtile:has(.badge) .mtxt { padding-right: 30px; }
.mico .ico { width: 24px; height: 24px; }
.mtxt { display: grid; gap: 3px; min-width: 0; padding-right: 20px; }
.mtile b { font-size: 17px; font-weight: 700; padding-right: 0; hyphens: manual; overflow-wrap: normal; }
.mtile small { font-size: 13px; color: var(--muted); line-height: 1.35; }
.mtile .chev { display: none; }
.mtile.mgr { background: var(--bar); border-color: var(--bar); color: #fff; }
.mtile.mgr b { color: #fff; }
.mtile.mgr small { color: rgba(255,255,255,.65); opacity: 1; }
.mtile.mgr .mico { background: color-mix(in srgb, var(--yolk) 14%, transparent); color: var(--yolk); }
.mtile .badge { color: #fff; }
.mtile .badge.warn { color: #141414; }
.mtile .badge { top: 12px; right: 12px; }
@media (max-width: 600px) {
  .menugrid { grid-template-columns: 1fr; gap: 8px; }
  .mtile { grid-template-columns: auto 1fr auto; align-items: center; padding: 12px 14px; border-radius: 0; }
  .mtile .mico { width: 40px; height: 40px; border-radius: 0; }
  .mtile:has(.badge) .mtxt { padding-right: 0; }
  .mtile .chev { display: block; width: 18px; height: 18px; color: #b8b5ad; }
  .mtile .badge { position: static; grid-column: 3; grid-row: 1; }
  .mtile:has(.badge) .chev { display: none; }
  .mtxt { padding-right: 0; }
}
.nowbar { border-radius: 0; padding: 14px 16px; gap: 8px; background: var(--yolk); box-shadow: var(--shadow); }
.nowbar > div + div { border-top: 1px solid rgba(0,0,0,.12); padding-top: 8px; }
.homehead h1 { font-size: 30px; }

@media (max-width: 600px) {
  .bar-row { flex-wrap: nowrap; gap: 10px; }
  .bar .brand small, .whoami .role { display: none; }
  .whoami { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .linkbtn#logout-btn { white-space: nowrap; padding: 8px 4px; margin-left: 0; }
  .menubtn { white-space: nowrap; }
}
/* Startscherm */
.start { gap: 14px; }
.start h1 { font-size: 38px; letter-spacing: -0.03em; }
.startbtn { border: 1px solid var(--line); border-radius: 0; box-shadow: var(--shadow); justify-items: center; transition: transform .08s, box-shadow .15s; }
.startbtn .ico { width: 34px; height: 34px; }
.startbtns.four { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1100px) { .startbtns.four { grid-template-columns: repeat(4, 1fr); } .start { max-width: 1100px; } }
.startbtn:hover { border-color: #d9d6cd; box-shadow: 0 2px 4px rgba(20,20,20,.06), 0 10px 24px rgba(20,20,20,.07); }
.startbtn:active { transform: scale(.985); }
.startbtn.mgr .ico { color: var(--yolk); }
.startbtn.link { border-color: var(--yolk); color: var(--on-yolk); }
.startbtn.link span { color: #141414; }
.tile { border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 0; }
.tile:hover { border-color: #d9d6cd; }
@media (max-width: 600px) {
  .start { margin-top: 2vh; text-align: left; }
  .start h1 { font-size: 30px; }
  .startbtns, .startbtns.four { grid-template-columns: 1fr 1fr; gap: 10px; }
  .startbtn { min-height: 128px; padding: 16px; justify-items: start; align-content: end; text-align: left; border-radius: 0; gap: 4px; }
  .startbtn b { font-size: 21px; }
  .startbtn span { font-size: 13px; }
  .startbtn .ico { width: 28px; height: 28px; margin-bottom: auto; }
}
.keypad button { border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); border-radius: 0; }
.keypad .ok { box-shadow: none; }
.daytab { border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 0; }
.chip { border: 1px solid var(--line); }
.chip[aria-pressed="true"] { border-color: #e6bd00; }
.segmented { border: 1px solid var(--ink); border-radius: 0; }
.shift { border-width: 1px; border-color: #ecc200; }

/* ================= Planning: nieuwe vormgeving ================= */
.scards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 4px 0 14px; }
.scard { background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 12px 14px; display: grid; gap: 2px; box-shadow: var(--shadow); text-align: left; font: inherit; color: inherit; }
.scard .lbl { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.scard b { font-family: var(--font-display); font-size: 24px; font-weight: 800; line-height: 1.15; }
.scard small { font-size: 12px; color: var(--muted); }
.scard.good b { color: var(--ok); } .scard.warn b { color: var(--warn); }
.scard.act { cursor: pointer; }
.scard.act.todo { background: var(--yolk); border-color: var(--yolk); }
.scard.act.todo .lbl, .scard.act.todo small { color: #141414; }
.mycard { background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 14px; display: grid; gap: 10px; box-shadow: var(--shadow); margin: 4px 0 14px; justify-items: start; }
.mycard .lbl { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.mychips { display: flex; flex-wrap: wrap; gap: 6px; }
.mychip { background: var(--yolk); border-radius: 0; padding: 6px 10px; font-size: 14px; color: var(--on-yolk); }
.gridwrap { border-radius: 0; }
table.grid { min-width: 900px; }
.grid col.c-emp { width: 190px; }
.grid th, .grid td { border-color: var(--line); padding: 5px; }
.grid thead th { background: var(--surface); padding: 10px 8px; border-bottom: 1px solid var(--line); }
.grid thead th.dh { text-align: center; }
.grid thead th .dn { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.grid thead th .d { font-size: 20px; font-weight: 800; }
.grid thead th.today .d { box-shadow: none; background: var(--yolk); color: var(--on-yolk); border-radius: 0; min-width: 34px; height: 34px; display: inline-grid; place-items: center; }
.grid thead th.closed .d { color: var(--muted); }
.grid thead th .closedlbl { display: block; margin: 0; }
.grid td.today { background: rgba(255,210,0,.07); }
.grid tbody tr:hover td.cell:not(.closed) { background: rgba(20,20,20,.015); }
.grid tbody tr.merow th.emp, .grid tbody tr.merow td.cell { background: var(--yolk-soft); }
.grid td.cell { height: 58px; }
.grid td.closed { background: repeating-linear-gradient(45deg, transparent 0 7px, var(--line) 7px 8px); }
.pe { display: flex; align-items: center; gap: 10px; min-width: 0; }
.av { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--yolk); display: grid; place-items: center; font-weight: 800; font-size: 13px; letter-spacing: .02em; }
.av.me { background: var(--yolk); color: var(--on-yolk); }
.pe-t { display: grid; gap: 2px; min-width: 0; flex: 1; }
.pe-t .empname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metag { font-size: 11px; font-weight: 800; background: var(--yolk); color: var(--on-yolk); padding: 0 6px; border-radius: 0; }
.hbar { height: 4px; border-radius: 0; background: var(--line); overflow: hidden; display: block; }
.hbar i { display: block; height: 100%; background: var(--ok); border-radius: 0; }
.hbar.over i { background: var(--warn); }
.shift { border: 0; border-left: 4px solid #e6bd00; background: #fff4bf; border-radius: 0; padding: 6px 8px; box-shadow: none; }
.grid .shift { padding: 5px 7px; margin-bottom: 3px; border-radius: 0; }
.grid .shift .t { font-size: 13px; }
.grid .shift .m { display: block; font-size: 11.5px; }
.shift .t { display: flex; align-items: center; gap: 4px; }
.shift .flag { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--warn); color: #fff; font-size: 11px; margin-left: auto; }
.shift.concept { background: var(--surface); border: 1px dashed #c9a200; border-left: 4px dashed #c9a200; }
.shift.ok { border-left-color: var(--ok); }
.shift .okmark { color: var(--ok); font-weight: 800; }
.shift.sick { background: var(--bad-soft); border-left-color: var(--bad); }
.shift.sick .t { text-decoration: line-through; color: var(--muted); }
.shift.sick .m { color: var(--bad); font-weight: 700; }
.leavepill, .navpill { display: block; font-size: 11.5px; font-weight: 700; border-radius: 0; padding: 4px 7px; margin-bottom: 3px; }
.leavepill { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.navpill { background: repeating-linear-gradient(45deg, var(--bg) 0 6px, var(--line) 6px 7px); color: var(--muted); }
.grid tfoot td, .grid tfoot th { background: var(--bg); font-size: 12.5px; padding: 8px 6px; text-align: center; }
.grid tfoot th.emp { text-align: left; }
.grid tfoot td.today { background: #fff6cc; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--muted); margin: 10px 2px 0; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 14px; height: 10px; border-radius: 0; display: inline-block; }
.lg.def { background: #fff4bf; border-left: 3px solid #e6bd00; } .lg.con { border: 1px dashed #c9a200; }
.lg.ok { background: #fff4bf; border-left: 3px solid var(--ok); } .lg.sick { background: var(--bad-soft); border-left: 3px solid var(--bad); }
.lg.vrij { background: color-mix(in srgb, var(--ok) 25%, transparent); } .lg.nav { background: repeating-linear-gradient(45deg, var(--bg) 0 3px, #bbb 3px 4px); }
/* Telefoon: tijdlijn */
.daytab.istoday:not([aria-selected="true"]) b { text-decoration: underline 3px var(--yolk); text-underline-offset: 3px; }
.daysum { background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 10px 12px; box-shadow: var(--shadow); margin-bottom: 10px; }
.tl { background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 8px 10px 10px; box-shadow: var(--shadow); margin-bottom: 12px; display: grid; gap: 6px; }
.tl-axis, .tl-row { display: grid; grid-template-columns: 92px 1fr; gap: 8px; align-items: center; }
.tl-ticks { position: relative; height: 18px; }
.tl-ticks span { position: absolute; transform: translateX(-50%); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-ticks span:first-child { transform: none; } .tl-ticks span:last-child { transform: translateX(-100%); }
.tl-name { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 700; font-size: 14px; }
.tl-name span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-name .av { width: 28px; height: 28px; font-size: 11px; }
.tl-track { position: relative; height: 44px; background: var(--bg); border-radius: 0; }
.tl-track > i { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.tl-track.flat { height: auto; background: none; display: flex; gap: 6px; }
.tl-track.flat .leavepill, .tl-track.flat .navpill { margin: 0; }
.tl-bar { position: absolute; top: 3px; bottom: 3px; min-width: 44px; border: 0; border-left: 4px solid #e6bd00; background: #fff0a8; border-radius: 0; padding: 2px 6px; text-align: left; cursor: pointer; overflow: hidden; display: grid; align-content: center; color: #141414; font: inherit; }
.tl-bar span { font-size: 12px; font-weight: 800; white-space: nowrap; }
.tl-bar small { font-size: 11px; color: #5c5a54; white-space: nowrap; }
.tl-bar.concept { background: var(--surface); border: 1px dashed #c9a200; border-left: 4px dashed #c9a200; }
.tl-bar.ok { border-left-color: var(--ok); }
.tl-bar.sick { background: var(--bad-soft); border-left-color: var(--bad); }
.tl-bar.sick span { text-decoration: line-through; }
.tl-row.me .tl-track { background: var(--yolk-soft); }
.btn.wide { width: 100%; }
/* Uren bevestigen */
.chlist { display: grid; gap: 8px; max-height: 60vh; overflow: auto; }
.chrow { border: 1px solid var(--line); border-radius: 0; padding: 10px 12px; display: grid; gap: 8px; }
.chwho { display: flex; align-items: center; gap: 10px; }
.chbtns, .chedit { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chedit input { width: auto; min-height: 40px; }
@media (max-width: 760px) {
  .scards { display: flex; overflow-x: auto; gap: 8px; margin: 2px -16px 12px; padding: 2px 16px 6px; scroll-snap-type: x proximity; }
  .scard { flex: 0 0 auto; min-width: 128px; padding: 10px 12px; scroll-snap-align: start; border-radius: 0; }
  .scard b { font-size: 19px; }
  .scard .lbl { font-size: 11px; }
  .tl-axis, .tl-row { grid-template-columns: 1fr; gap: 4px; }
  .tl-axis > span:first-child { display: none; }
  .tl-row { padding-top: 4px; }
  .tl-name { font-size: 13px; }
  .tl-name .av { width: 24px; height: 24px; font-size: 10px; }
}

/* Allergenen: officiële lijst */
.altools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.alsearch { flex: 1 1 260px; }
.alsearch input { font-size: 17px; min-height: 50px; padding: 8px 14px; border-radius: 0; }
.almode button { min-height: 50px; padding: 0 18px; font-size: 15px; }
.alchips { gap: 6px; margin-bottom: 12px; }
.alchips .chip { padding: 8px 12px; font-size: 14px; }
.alchips .chip.clear { background: transparent; border-style: dashed; color: var(--muted); }
.alsum { border-radius: 0; padding: 12px 14px; font-size: 16px; margin-bottom: 12px; }
.alsum b { font-family: var(--font-display); font-size: 22px; margin-right: 4px; }
.alsum.safe { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--ok); }
.alsum.hasit { background: var(--bad-soft); color: var(--bad); }
.algroup { margin-bottom: 14px; }
.algroup h3 { font-family: var(--font-body); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 2px 6px; }
.algroup .alrow { padding: 0; gap: 0; margin-bottom: 6px; border-radius: 0; overflow: hidden; }
.alhead { width: 100%; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "nm ch" "tg tg"; gap: 6px 10px; align-items: center; text-align: left; background: none; border: 0; padding: 11px 14px; cursor: pointer; font: inherit; color: inherit; }
.alhead .nm { grid-area: nm; font-weight: 700; font-size: 16px; }
.alhead .altags { grid-area: tg; display: flex; flex-wrap: wrap; gap: 4px; }
.alchev { grid-area: ch; width: 26px; height: 26px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-weight: 800; color: var(--muted); }
.alrow.open { border-color: #d9d6cd; }
.altag.ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.altag.hit { outline: 2px solid var(--bad); outline-offset: -1px; }
.algrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; padding: 0 14px 14px; }
.algrid span { border-radius: 0; padding: 7px 9px; font-size: 13px; display: grid; gap: 1px; }
.algrid span b { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.algrid .ja { background: var(--bad-soft); color: var(--bad); font-weight: 700; }
.algrid .nee { background: color-mix(in srgb, var(--ok) 10%, transparent); color: var(--ok); }
@media (min-width: 761px) { .alhead { grid-template-columns: minmax(220px, 1fr) 2fr auto; grid-template-areas: "nm tg ch"; } }

/* Takenlijst: tabbladen */
.ttabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.ttabs button { border: 1px solid var(--line); background: var(--surface); border-radius: 0; min-height: 48px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; box-shadow: var(--shadow); font: inherit; font-weight: 700; color: inherit; padding: 4px 6px; }
.ttabs button[aria-selected="true"] { background: var(--ink); color: var(--yolk); border-color: var(--ink); }
.tcount { min-width: 22px; height: 22px; border-radius: 0; background: var(--line); color: var(--ink); font-size: 12px; display: inline-grid; place-items: center; padding: 0 6px; }
.tcount.open { background: var(--bad); color: #fff; }
.tcount.ok { background: var(--ok); color: #fff; }
.ttabs button[aria-selected="true"] .tcount:not(.open):not(.ok) { background: var(--yolk); color: var(--on-yolk); }
.tintro { margin: 0 2px 8px; font-size: 14px; color: var(--muted); }
.tmeta .tt, .tprow .tt { font-weight: 800; color: var(--ink); }
@media (max-width: 560px) { .ttabs button { font-size: 13px; flex-direction: column; gap: 2px; min-height: 56px; } }
/* Melding dagtaken */
dialog.taskpop { border: 3px solid var(--yolk); }
.tphead { display: flex; gap: 12px; align-items: center; }
.tpicon { width: 48px; height: 48px; border-radius: 0; background: var(--yolk); display: grid; place-items: center; font-size: 24px; flex: none; }
.tplist { display: grid; gap: 8px; max-height: 55vh; overflow: auto; }
.tprow { border: 1px solid var(--line); border-radius: 0; padding: 10px 12px; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.tprow .tt { margin-left: 6px; font-size: 13px; }
.tpbtns { display: flex; gap: 6px; }
/* Kassa geblokkeerd */
.cblock { background: var(--bad-soft); color: var(--ink); border: 1px solid #f3c6c2; border-radius: 0; padding: 14px 16px; margin-bottom: 12px; display: grid; gap: 6px; }
.cblock b { color: var(--bad); font-size: 17px; }
.cblock p { margin: 0; }
.cblock ul { margin: 0; padding-left: 20px; }

/* Wie heeft het gedaan */
.byini { display: block; font-size: 10px; color: var(--muted); line-height: 1.1; margin-top: 2px; max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-inline: auto; }
.byline { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); }
.prodtbl td { text-align: center; }
/* Dashboard */
.dgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.dchart { width: 100%; height: auto; display: block; }
.dchart .bf { fill: #f0c400; }
.dchart .bar:hover .bf { fill: #141414; }
.dchart .bl { font-size: 15px; fill: var(--muted); }
.dchart .bv { font-size: 16px; font-weight: 700; fill: var(--ink); }
#view-dash .scards { margin-bottom: 14px; }
@media (max-width: 640px) {
  #view-dash .scards { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; margin-inline: 0; padding: 0; }
  #view-dash .scard { min-width: 0; }
  #view-dash .scard b { font-size: 20px; }
  #view-dash .segmented { width: 100%; display: flex; }
  #view-dash .segmented button { flex: 1; padding: 0 4px; }
  .whotbl .wbar { display: none; }
}
.dchart .ax { stroke: var(--line); stroke-width: 1; }
.chg { font-weight: 800; margin-right: 4px; }
.chg.up { color: var(--ok); } .chg.down { color: var(--bad); }
.whotbl td:first-child { white-space: nowrap; }
.wbar { display: inline-block; width: 70px; height: 6px; background: var(--line); border-radius: 0; margin-right: 8px; vertical-align: middle; overflow: hidden; }
.wbar i { display: block; height: 100%; background: #f0c400; border-radius: 0; }
#view-dash .segmented button { padding: 0 12px; }

/* Agendapagina voor medewerkers */
.calpage { min-height: 100vh; background: var(--bg); }
.calhead { background: #141414; color: #fff; padding: 14px 16px; display: flex; gap: 8px; align-items: center; font-size: 20px; border-bottom: 3px solid var(--yolk); }
.calhead .logo-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--yolk); display: inline-block; }
.calmain { max-width: 520px; margin: 0 auto; padding: 20px 16px 40px; display: grid; gap: 12px; }
.calmain h1 { margin: 0; font-size: 24px; } .calmain h2 { margin: 14px 0 0; font-size: 18px; }
.calmain .btn.big { min-height: 64px; display: flex; flex-direction: column; justify-content: center; align-items: center; font-size: 18px; text-decoration: none; }
.calmain .btn.big small { font-size: 12.5px; font-weight: 500; opacity: .75; }
.calhelp { background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 12px 14px; }
#confirm-ok.danger { background: var(--bad); color: #fff; border-color: var(--bad); }
.calhelp summary { font-weight: 700; cursor: pointer; } .calhelp p { font-size: 14px; }
.calhelp input { width: 100%; font-size: 12px; padding: 8px; border: 1px solid var(--line); border-radius: 0; background: var(--bg); color: var(--ink); }
.cplist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cplist li { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--yolk); border-radius: 0; padding: 10px 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px; color: var(--ink); }
.cplist small { width: 100%; color: var(--muted); }

/* Bezetting */
.lowstaff { display: block; color: var(--bad); font-weight: 700; font-size: 11.5px; margin-top: 2px; white-space: normal; }

/* Slepen */
#plan-wide .shift[data-shift]:not(.ok) { -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.dragging, .dragging * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
.shift.dragsrc { opacity: .35; }
.dragghost { position: fixed; left: 0; top: 0; z-index: 999; pointer-events: none; box-shadow: 0 10px 28px rgba(0,0,0,.28); transform-origin: 0 0; margin: 0 !important; }
.cell.dropok { outline: 3px solid var(--yolk); outline-offset: -3px; background: var(--yolk-soft) !important; }
.cell.dropno { outline: 2px dashed var(--line); outline-offset: -3px; }

/* Verzuim */
.tag.sicktag { color: #fff; background: var(--bad); border-color: var(--bad); }
.mailprev { white-space: pre-wrap; font: 13px/1.45 var(--font, system-ui); background: var(--bg); border: 1px solid var(--line); border-radius: 0; padding: 10px 12px; margin: 0; max-height: 260px; overflow: auto; color: var(--ink); }
a.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }

/* Verlofoverzicht */
.staffchk { font-size: 13px; font-weight: 700; margin-top: 4px; }
.staffchk.ok { color: var(--ok); } .staffchk.bad { color: var(--bad); }
.lvgrid { gap: 3px; }
.lvday { background: var(--bg); border-radius: 0; min-height: 64px; padding: 3px; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.lvday .n { font-size: 12px; font-weight: 800; color: var(--muted); }
.lvday.today { outline: 2px solid var(--ink); }
.lvday.out { opacity: .35; } .lvday.closed { opacity: .55; }
.lvchip { font-size: 11px; font-weight: 700; border-radius: 0; padding: 1px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lvchip.ok { background: var(--yolk); color: var(--on-yolk); }
.lvchip.req { border: 1.5px dashed var(--ink); color: var(--ink); }
.lvchip.sick { background: var(--bad); color: #fff; }
.agcal-legend i.lv { width: 12px; height: 9px; border-radius: 0; }
.agcal-legend i.lv.ok { background: var(--yolk); } .agcal-legend i.lv.req { background: transparent; border: 1.5px dashed var(--ink); } .agcal-legend i.lv.sick { background: var(--bad); }
#leave-cal { margin: 0 0 20px; }
@media (max-width: 640px) { .lvday { min-height: 52px; } .lvchip { font-size: 10px; padding: 0 2px; } }

.cp-seg { width: 100%; display: flex; } .cp-seg button { flex: 1; min-height: 44px; }
.cpsteps { margin: 0; padding: 0 0 0 4px; list-style: none; counter-reset: st; display: grid; gap: 10px; }
.cpsteps li { counter-increment: st; background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 12px 12px 12px 48px; position: relative; display: grid; gap: 8px; color: var(--ink); }
.cpsteps li::before { content: counter(st); position: absolute; left: 12px; top: 11px; width: 26px; height: 26px; border-radius: 50%; background: var(--yolk); color: var(--on-yolk); font-weight: 800; display: grid; place-items: center; }
.cpsteps small { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.cpsteps .big1 { min-height: 50px; font-size: 16px; text-decoration: none; }

.monthtbl .tvtall { display: block; font-size: 11px; margin-top: 2px; white-space: nowrap; }
.monthtbl select { min-width: 132px; min-height: 36px; font-size: 13px; padding: 4px 6px; border-radius: 0; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }

/* Vegen */
@keyframes swl { from { transform: translateX(40px); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes swr { from { transform: translateX(-40px); opacity: .3; } to { transform: none; opacity: 1; } }
.swipe-l #plan-wide, .swipe-l #plan-narrow, .swipe-l #prod-body { animation: swl .25s ease-out; }
.swipe-r #plan-wide, .swipe-r #plan-narrow, .swipe-r #prod-body { animation: swr .25s ease-out; }
@media (prefers-reduced-motion: reduce) { .swipe-l *, .swipe-r * { animation: none !important; } }

/* Formule beheren */
.fogrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; }
#view-formula .panel { display: block; }
#view-formula .panel > * + * { margin-top: 10px; }
#view-formula .field { margin: 0 0 10px; }
#view-formula .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0 12px; }
.fogrid h2, #view-formula h2 { font-size: 17px; }
.colorrow { display: flex; gap: 8px; align-items: center; }
.colorrow input[type="color"] { width: 52px; height: 44px; padding: 2px; border-radius: 0; border: 1px solid var(--line); background: var(--surface); }
.colorrow input[type="text"] { width: 96px; min-width: 0; font-family: ui-monospace, monospace; }
.foprev { --pa: #ffd200; --pb: #111; --pon: #1f1c17; border: 1px solid var(--line); border-radius: 0; overflow: hidden; margin-top: 6px; }
.foprev .pbar { background: var(--pb); color: #fff; padding: 10px 12px; display: flex; gap: 8px; align-items: center; box-shadow: inset 0 -3px 0 var(--pa); }
.foprev .pbar b { font-family: var(--font-display); font-size: 18px; } .foprev .pbar small { opacity: .7; }
.foprev .pdot { width: 12px; height: 12px; border-radius: 50%; background: var(--pa); }
.foprev .pbody { padding: 12px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; background: var(--bg); }
.foprev .pbtn { background: var(--pa); color: var(--pon); font-weight: 800; border-radius: 0; padding: 8px 14px; }
.foprev .pchip { background: var(--pa); color: var(--pon); font-weight: 700; border-radius: 0; padding: 4px 10px; font-size: 13px; }
.foprev .ptile { display: inline-flex; gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 6px 12px 6px 6px; font-weight: 700; }
.foprev .ptile i { width: 28px; height: 28px; border-radius: 0; background: var(--pa); display: inline-block; }
.fomods { display: grid; gap: 2px; }
.folabels { display: grid; gap: 0 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.folink { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 6px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.folink input { width: 100%; min-width: 0; }
.folink input[type="url"] { grid-column: 1 / 3; }
.folink button { grid-column: 3; grid-row: 1 / 3; align-self: center; }
.foadd { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; }
.foadd input { flex: 1 1 180px; }
.foal { border: 1px solid var(--line); border-radius: 0; margin-bottom: 6px; background: var(--surface); }
.foalhead { width: 100%; display: flex; gap: 10px; align-items: center; background: none; border: 0; padding: 10px 12px; text-align: left; cursor: pointer; color: var(--ink); font: inherit; }
.foalhead .nm { font-weight: 700; flex: 0 1 auto; } .foalhead .altags { flex: 1; display: flex; gap: 4px; flex-wrap: wrap; }
.foaledit { padding: 0 12px 12px; display: grid; gap: 10px; }
.fochips { display: flex; flex-wrap: wrap; gap: 6px; }
.fogroup { border-bottom: 1px solid var(--line); padding: 4px 0; } .fogroup summary { cursor: pointer; padding: 8px 2px; font-size: 15px; } .fogroup[open] summary { margin-bottom: 4px; }
.fosave { position: sticky; bottom: 0; background: var(--bg); border-top: 1px solid var(--line); padding: 10px 0; margin-top: 14px; display: flex; gap: 12px; align-items: center; justify-content: flex-end; flex-wrap: wrap; z-index: 5; }
.fosave .note { margin: 0; }

/* HACCP */
.hcsum { margin-bottom: 14px; }
.hcsec { background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 12px 12px 6px; margin-bottom: 12px; box-shadow: var(--shadow); }
.hcsec header { display: flex; align-items: center; gap: 10px; margin: 0 2px 8px; }
.hcsec h2 { font-size: 17px; margin: 0; flex: 1; }
.hcico { width: 36px; height: 36px; border-radius: 0; background: var(--yolk); color: var(--on-yolk); display: grid; place-items: center; flex: none; }
.hcico .ico { width: 22px; height: 22px; }
.hcprog { font-weight: 800; font-size: 13px; background: var(--bg); border-radius: 0; padding: 3px 10px; }
.hcprog.ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.hclist { display: grid; gap: 0; }
.hcrow { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 4px 2px; min-height: 56px; }
.hcrow:first-child { border-top: 0; }
.hcmain { flex: 1; display: grid; text-align: left; background: none; border: 0; padding: 8px 4px; cursor: pointer; color: var(--ink); font: inherit; min-width: 0; }
.hcmain .nm { font-weight: 700; font-size: 15.5px; }
.hcmain small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.hcrow.late .hcmain .nm { color: var(--bad); }
.hcchip { font-size: 12.5px; font-weight: 800; border-radius: 0; padding: 4px 10px; white-space: nowrap; }
.hcchip.open { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.hcchip.late { background: var(--bad); color: #fff; }
.hcchip.done { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.hcchip.dev { background: var(--bad-soft); color: var(--bad); }
.hcchip.skip { background: var(--bg); color: var(--muted); }
.hctick { width: 48px; height: 44px; border-radius: 0; border: 2px solid var(--line); background: var(--surface); font-size: 20px; font-weight: 800; color: var(--muted); cursor: pointer; flex: none; }
.hctick:hover, .hctick:focus-visible { border-color: var(--ok); color: var(--ok); }
.hcrow.late .hctick { border-color: var(--bad); }
.hcrow.setup { min-height: 0; }
.hcact { display: inline-flex; gap: 4px; flex: none; }
.hcbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.hcfilters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.hcfilters select, .hcfilters input[type="search"] { flex: 1 1 180px; min-height: 44px; }
.hcday { margin-bottom: 14px; }
.hcday h3 { font-size: 15px; margin: 0 0 6px; }
@media (max-width: 640px) { .hcsum { display: grid !important; grid-template-columns: repeat(3, 1fr); overflow: visible !important; margin-inline: 0 !important; padding: 0 !important; } .hcsum .scard { min-width: 0; padding: 10px; } .hcsum .scard b { font-size: 22px; } .hcsum .lbl { font-size: 10px; } .hcsum small { display: none; } }
.hcmiss { background: var(--warn-soft); color: var(--warn); border-radius: 0; padding: 8px 12px; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.hcrec { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--ok); border-radius: 0; margin-bottom: 5px; }
.hcrec.dev { border-left-color: var(--bad); } .hcrec.skip { border-left-color: var(--line); }
.hcrec summary { display: flex; gap: 10px; align-items: baseline; padding: 8px 10px; cursor: pointer; list-style: none; }
.hcrec summary::-webkit-details-marker { display: none; }
.hcrec .t { font-weight: 700; color: var(--muted); font-size: 13px; flex: none; }
.hcrec .nm { flex: 1; display: grid; min-width: 0; } .hcrec .nm small { color: var(--muted); font-size: 12.5px; }
.hcrec .who { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.hcrec.dev .who { color: var(--bad); font-weight: 700; }
.hcrecd { padding: 0 12px 10px 58px; font-size: 13.5px; } .hcrecd p { margin: 4px 0; }
.hcph img, .hcthumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 0; margin: 4px 4px 0 0; }
.hcfields { display: grid; gap: 12px; }
.hcf > label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.hcnorm { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.hcnum { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hcnum input { width: 110px; font-size: 22px; font-weight: 800; text-align: center; min-height: 52px; }
.hcnum .unit { font-weight: 700; color: var(--muted); }
.hcsign { width: 44px; height: 52px; border-radius: 0; border: 1px solid var(--line); background: var(--bg); font-size: 20px; font-weight: 800; cursor: pointer; color: var(--ink); }
.hcwarn { font-weight: 800; font-size: 14px; color: var(--ok); }
.hcf.bad .hcwarn { color: var(--bad); }
.hcf.bad .hcnum input { border-color: var(--bad); background: var(--bad-soft); color: var(--bad); }
.hcyn { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 360px; }
.hcyn button { min-height: 46px; border-radius: 0; border: 1.5px solid var(--line); background: var(--surface); font-weight: 800; cursor: pointer; color: var(--ink); font-size: 15px; }
.hcyn button[aria-pressed="true"]:first-child { background: var(--ok); border-color: var(--ok); color: #fff; }
.hcyn button[aria-pressed="true"]:last-child { background: var(--bad); border-color: var(--bad); color: #fff; }
.hcopts { display: flex; flex-wrap: wrap; gap: 6px; }
.hcphoto { position: relative; }
.hcact-req { background: var(--bad-soft); border: 1.5px solid var(--bad); border-radius: 0; padding: 10px 12px; display: grid; gap: 6px; }
.hcact-req label { color: var(--bad); font-size: 14px; } .hcactlist { display: block; font-weight: 400; font-size: 13px; }
.hcact-req textarea { width: 100%; border: 1px solid var(--line); border-radius: 0; padding: 8px; font: inherit; background: var(--surface); color: var(--ink); }
.hcicons { display: flex; flex-wrap: wrap; gap: 6px; }
.hcicopick { width: 48px; height: 48px; border-radius: 0; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.hcicopick[aria-pressed="true"] { background: var(--yolk); border-color: var(--yolk); color: var(--on-yolk); }
.hcdays { display: flex; flex-wrap: wrap; gap: 6px; }
.hcfreq { display: flex; width: 100%; } .hcfreq button { flex: 1; padding: 0 4px; }
.hcfed { border: 1px solid var(--line); border-radius: 0; padding: 8px; margin-bottom: 6px; background: var(--bg); }
.hcfedtop { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.hcfedtop select { flex: 0 0 auto; min-height: 40px; } .hcfedtop input { flex: 1 1 160px; min-height: 40px; }
.hcfedopts { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 6px; font-size: 13px; }
.hcfedopts label { display: inline-flex; gap: 6px; align-items: center; } .hcfedopts label.wide { flex: 1 1 100%; }
.hcfedopts input[type="text"] { width: 80px; min-height: 36px; } .hcfedopts label.wide input { flex: 1; width: auto; }
.hcaddf { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.hcplist { margin: 4px 0 0; padding-left: 20px; font-size: 15px; line-height: 1.7; }
dialog.wide { max-width: 720px; width: calc(100% - 24px); }

/* Zoomen */
.viewtools { display: flex; gap: 10px; align-items: center; justify-content: flex-end; flex-wrap: wrap; margin: 0 0 10px; }
.zoombar { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 0; overflow: hidden; background: var(--surface); }
.zoombar button { width: 44px; height: 40px; border: 0; background: none; font-size: 22px; font-weight: 800; cursor: pointer; color: var(--ink); }
.zoombar button:active { background: var(--yolk-soft); }
.zoombar span { min-width: 52px; text-align: center; font-weight: 700; font-size: 14px; }
.planmode { display: none; }
@media (max-width: 760px) {
  .planmode { display: inline-flex; margin-right: auto; }
  .planmode button { padding: 0 16px; }
  body.planweek #plan-wide { display: block; }
  body.planweek #plan-narrow { display: none; }
  body.planweek #plan-wide .gridwrap { overflow-x: auto; }
}

/* Productregistratie op de telefoon: alle dagen in beeld */
@media (max-width: 640px) {
  .prodtbl { min-width: 0; table-layout: fixed; }
  .prodtbl th, .prodtbl td { padding: 6px 2px; font-size: 12.5px; }
  .prodtbl th.pn, .prodtbl td.pn { min-width: 0; width: 36%; padding-left: 8px; overflow-wrap: anywhere; box-shadow: 1px 0 0 var(--line); }
  .prodtbl td.pn b, .prodtbl td.pn { line-height: 1.25; }
  .prodtbl .meta2 { white-space: normal; font-size: 11px; line-height: 1.3; margin-top: 2px; }
  .pcheck { width: 32px; height: 32px; }
  .byini { max-width: 40px; font-size: 9.5px; }
}

/* Klokken */
.clockcard { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--muted); border-radius: 0; padding: 12px 14px; margin: 0 0 14px; }
.clockcard.in { border-left-color: var(--ok); }
.clockcard.out { border-left-color: var(--yolk); }
.clockcard b { font-size: 17px; display: block; }
.clockcard .sub { margin: 0; font-size: 14px; }
.clockcard .btn { min-height: 48px; padding: 0 22px; font-size: 16px; }
.chclock { font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.devchip { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 0; background: color-mix(in srgb, var(--warn) 16%, var(--surface)); color: var(--warn); }
.devchip.ok { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--ok); }
.clkdev { margin-top: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 10px 14px; }
.clkdev summary { font-weight: 700; cursor: pointer; }
.clkdev table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14px; }
.clkdev td, .clkdev th { text-align: left; padding: 6px 8px 6px 0; border-top: 1px solid var(--line); vertical-align: top; }
.clkdev td .devchip { margin: 0 4px 4px 0; border-radius: 0; }
#view-agenda.daymode:not([hidden]) { display: flex; flex-direction: column; }
#view-agenda.daymode .weekhead { order: -2; }
#view-agenda.daymode #agenda-body { order: -1; margin-bottom: 14px; }
#view-agenda.daymode #agenda-body > div:first-child { margin-top: 4px !important; }
.clkdev th { font-size: 12px; color: var(--muted); border-top: 0; }

/* Afdelingen */
.deptabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; }
.deptabs button { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 0; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.deptabs button[aria-selected="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.depdot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--dep, var(--muted)); flex: 0 0 auto; }
.shift.hasdep { box-shadow: inset 4px 0 0 var(--dep); padding-left: 9px; }
.tl-bar.hasdep { box-shadow: inset 4px 0 0 var(--dep); }
.shift .depname, .tl-bar .depname { font-weight: 700; }
.deplist { display: grid; gap: 8px; }
.deprow { display: flex; gap: 8px; align-items: center; }
.deprow .depdel { flex: 0 0 auto; min-width: 42px; padding: 0 10px; }
.deprow input[type=text] { flex: 1 1 180px; min-width: 0; }
.deprow input[type=color] { width: 46px; height: 42px; padding: 2px; border-radius: 0; border: 1px solid var(--line); background: var(--surface); }
.depadd { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.depadd input { flex: 1 1 200px; min-width: 0; }
.depfield { border: 1px solid var(--line); border-radius: 0; padding: 10px 12px 12px; margin: 0; display: grid; gap: 8px; }
.depfield legend { font-weight: 700; padding: 0 4px; }
.deppick { display: grid; gap: 6px; }
.deppick .pickrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.deppick .pickrow label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.deppick .prim { font-size: 13px; color: var(--muted); font-weight: 500 !important; }
.deppick input[type=checkbox], .deppick input[type=radio] { width: 20px; height: 20px; }
.srwrap { overflow-x: auto; }
.srtbl { border-collapse: collapse; width: 100%; max-width: 460px; }
.srtbl th, .srtbl td { text-align: left; padding: 5px 8px 5px 0; }
.srtbl th { font-size: 13px; color: var(--muted); font-weight: 700; vertical-align: bottom; }
.srtbl th span { display: block; font-weight: 500; font-size: 11.5px; }
.srtbl td:first-child { font-weight: 600; white-space: nowrap; }
.srtbl tr.std td { border-bottom: 1px solid var(--line); padding-bottom: 9px; }
.srtbl tr.closed td:first-child { color: var(--muted); font-weight: 500; }
.srtbl input { width: 84px; min-height: 40px; }
.navline { font-size: 13.5px; color: var(--muted); }
.navline b { color: var(--ink); font-weight: 600; }
.av2row { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.av2row input[type=date] { width: auto; min-height: 36px; padding: 2px 8px; }

/* Hulp */
.infobtn { display: inline-grid; place-items: center; width: 24px; height: 24px; min-height: 0; padding: 0; border-radius: 50%; border: 1.5px solid currentColor; background: transparent; color: var(--muted); font: 700 13px/1 var(--font-body); font-style: italic; cursor: pointer; vertical-align: middle; margin-left: 4px; }
.infobtn:hover, .infobtn:focus-visible { color: var(--ink); background: var(--yolk-soft); }
h1 .infobtn { position: relative; top: -3px; }
.weeknav .infobtn { width: 30px; height: 30px; font-size: 15px; }
.helptext p { margin: 0 0 8px; }
.helptext ul, .helptext ol, .hbbody ul, .hbbody ol { margin: 0 0 8px; padding-left: 20px; display: grid; gap: 4px; }
.hblist { display: grid; gap: 8px; max-width: 760px; }
.hbhead { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 14px 0 2px; font-family: var(--font-body); font-weight: 800; }
.hbch { background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 0 16px; }
.hbch summary { cursor: pointer; font-weight: 700; font-size: 16px; padding: 14px 0; list-style-position: outside; }
.hbch[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.hbbody { padding-bottom: 14px; line-height: 1.55; }
.hbbody p { margin: 0 0 8px; }
.poweredby { text-align: center; color: var(--muted); font-size: 13px; margin: 26px 0 0; }
.poweredby b { color: var(--ink); }

/* ================= 2.1: telefoon koppelen en mededelingen ================= */
.note.good { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--ok); font-weight: 700; }
.phonelist { display: grid; gap: 6px; }
.phonepair { display: grid; gap: 10px; }
.phonesteps { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 15px; }
.phoneqr { display: grid; place-items: center; background: #fff; border-radius: 0; padding: 8px; border: 1px solid var(--line); }
.phoneqr svg { width: min(260px, 70vw); height: auto; display: block; }
.phoneqr svg path, .phoneqr svg rect { shape-rendering: crispEdges; }
.phonecode { font-family: var(--font-display); font-size: 34px; font-weight: 800; letter-spacing: .08em; text-align: center; }
.phoneleft { margin: 0; text-align: center; font-weight: 700; }
#dlg-phone .dlg { max-width: 460px; }
.newslist { display: grid; gap: 8px; margin-top: 16px; max-width: 560px; }
.newscard { background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 12px 14px; display: grid; gap: 4px; box-shadow: var(--shadow); }
.newscard .nc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.newscard p { margin: 0; white-space: pre-line; }
.newscard small { color: var(--muted); }
.newscard.old { opacity: .65; }
.nowbar .newsline .b { font-size: 15px; white-space: pre-line; }

/* ================= 2.1.1: ruilen, open diensten, schakelaars ================= */
.swbody { display: grid; gap: 10px; margin-top: 16px; max-width: 760px; }
.swh { font-size: 18px; margin-top: 10px; }
.swcard { background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 12px 14px; display: grid; gap: 6px; box-shadow: var(--shadow); }
.swhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.swwarn { margin: 0; padding: 8px 12px 8px 28px; background: var(--warn-soft); color: var(--warn); border-radius: 0; font-size: 14px; }
.swcand { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.swcand.wants b { color: var(--ink); }
.swwarnline { color: var(--warn); font-size: 13px; margin-top: 2px; }
.swmore summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.tag.wanttag { background: var(--yolk); border-color: var(--yolk); color: var(--on-yolk); }
.tag.wishtag { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); color: var(--ok); }
.navline.wishline { color: var(--ok); }
.appflags { display: grid; gap: 4px; }
.check.appflag { align-items: flex-start; padding: 6px 0; }
.check.appflag span { display: grid; }
.check.appflag small { color: var(--muted); font-size: 13.5px; }
.ncread summary { cursor: pointer; color: var(--muted); font-size: 13.5px; }
.ncread div { font-size: 13.5px; margin-top: 4px; }
.swcard .btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* 2.1.6: Eigenaar-knop op het startscherm */
.startbtn.own { background: var(--bar); border-color: var(--yolk); box-shadow: inset 0 0 0 1px var(--yolk); }
.hint.bad { color: var(--bad); font-weight: 600; }
#emp-min-wrap .lbl { font-size: 13px; color: var(--muted); }
#emp-min-wrap b { font-size: 20px; }
.ovnotes { display: grid; gap: 8px; margin-bottom: 14px; }
.ovnotes .note { align-items: center; justify-content: space-between; }
/* Cao en wet (2.1.6) */
.caorules { display: grid; gap: 10px; margin: 6px 0 10px; }
.caorule { border: 1px solid var(--line); background: var(--surface); padding: 10px 12px; display: grid; gap: 8px; }
.caorule.own { border-left: 4px solid var(--yolk); }
.caorule-top { display: flex; gap: 8px; align-items: center; }
.caorule-top input { flex: 1; min-width: 0; font-weight: 600; }
.caorule-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.caorule-grid label { display: grid; gap: 3px; font-size: 12.5px; color: var(--muted); }
.caorule-grid input, .caorule-grid select { min-width: 0; width: 100%; }
.caochips { display: flex; flex-wrap: wrap; gap: 6px; }
.caochip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); padding: 4px 9px; font-size: 13.5px; min-height: 34px; cursor: pointer; background: var(--surface); }
.caochip.on { background: var(--yolk-soft); border-color: var(--yolk); cursor: default; }
.caochip input { width: 16px; height: 16px; accent-color: var(--bar); }
.caowages input { width: 76px; text-align: right; }
.caowages td.num { color: var(--muted); }
.caoupd { display: grid; gap: 6px; }
.caoupd-list { font-size: 13.5px; display: grid; gap: 2px; }
@media (max-width: 760px) { .caorule-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.note.ok { background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ink); }
/* Cao en wet op de telefoon: niets buiten beeld */
#cao-settings-form { min-width: 0; max-width: 100%; }
#cao-body, .caorules, .caorule, .caorule-top, .caorule-grid { min-width: 0; max-width: 100%; }
.caorule-top input { width: auto; }
.caorule-top .btn { flex: none; }
#cao-settings-form .depadd { display: flex; gap: 8px; }
#cao-settings-form .depadd input { flex: 1; min-width: 0; }
#cao-settings-form .gridwrap { overflow-x: auto; max-width: 100%; }
.caowages td.num { white-space: nowrap; }
@media (max-width: 560px) {
  .caorule-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .caowages input { width: 58px; }
  .caowages th, .caowages td { padding: 4px 3px; font-size: 13px; }
}

/* 2.1.7: logo van de winkel in de balk */
.brand .dot.haslogo { width: 30px; height: 30px; border-radius: 0; box-shadow: none; background: transparent center / contain no-repeat; }
.brand .dot.haslogo::before, .brand .dot.haslogo::after { display: none; }
/* Startwizard */
.wizdlg { width: min(860px, calc(100vw - 24px)); max-width: none; }
.wiz { display: grid; gap: 14px; }
.wizhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.wizkick { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.wizsteps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 0; padding: 0; }
.wizsteps button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-align: left; min-height: 44px; cursor: pointer; font: inherit; }
.wizsteps span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--line); font-size: 13px; font-weight: 700; flex: none; }
.wizsteps b { font-size: 13px; font-weight: 600; line-height: 1.2; }
.wizsteps li.on button { border-color: var(--bar); box-shadow: inset 0 -3px 0 var(--yolk); }
.wizsteps li.done span { background: var(--ok); color: #fff; }
.wizsteps li.skipped span { background: var(--warn-soft); color: var(--warn); }
.wizbody { display: grid; gap: 12px; max-height: min(60vh, 560px); overflow: auto; padding-right: 2px; }
.wztiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wztile { display: grid; gap: 4px; text-align: left; padding: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; min-height: 84px; }
.wztile:hover, .wztile:has(input:checked) { border-color: var(--bar); box-shadow: inset 0 0 0 1px var(--bar); }
.wztile input { justify-self: start; accent-color: var(--bar); }
.wztile small { color: var(--muted); }
.wzlogo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wzlogoprev { width: 56px; height: 56px; border: 1px solid var(--line); background: var(--surface) center / contain no-repeat; }
.wzlogoprev.empty { background-image: linear-gradient(45deg, transparent 47%, var(--line) 48%, var(--line) 52%, transparent 53%); }
.wzcolors { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wzsw { width: 34px; height: 34px; border: 1px solid var(--line); background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); cursor: pointer; }
.wzcol { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.wzcol input { width: 40px; height: 32px; padding: 0; border: 1px solid var(--line); }
.wzteam { display: grid; gap: 8px; }
.wzrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 6px; padding: 8px; border: 1px solid var(--line); background: var(--surface); }
.wzrow label { display: grid; gap: 3px; font-size: 12.5px; color: var(--muted); min-width: 0; }
.wzrow input, .wzrow select { min-width: 0; width: 100%; }
.wzcols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wzcols .check { align-items: flex-start; min-height: 36px; }
.wizdone { text-align: center; display: grid; gap: 10px; justify-items: center; }
.wizbig { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 34px; display: grid; place-items: center; }
.setupcard { border-left: 4px solid var(--yolk); }
.setupbar { width: 120px; height: 8px; background: var(--line); display: block; }
.setupbar i { display: block; height: 100%; background: var(--ok); }
.setuplist { display: grid; gap: 6px; margin-top: 10px; }
.setupitem { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; font: inherit; min-height: 48px; }
.setupitem small { display: block; color: var(--muted); font-size: 13px; }
@media (max-width: 760px) {
  .wizsteps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .wizsteps b { display: none; }
  .wizsteps button { justify-content: center; }
  .wztiles, .wzcols { grid-template-columns: 1fr; }
  .wzrow { grid-template-columns: 1fr 1fr; }
  .wzrow label:first-child { grid-column: 1 / -1; }
}
/* Rondleiding */
.tourdlg { position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden; }
.tourdlg::backdrop { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.tourhole { position: fixed; box-shadow: 0 0 0 9999px rgba(10, 20, 18, .55); outline: 3px solid var(--yolk); outline-offset: 0; pointer-events: none; transition: all .2s ease; }
.tourtip { position: fixed; background: var(--surface); color: var(--ink); padding: 14px 16px; box-shadow: 0 12px 32px rgba(0,0,0,.25); border-top: 4px solid var(--yolk); display: grid; gap: 6px; transition: top .2s ease, left .2s ease; }
.tourtip h3 { margin: 0; font-size: 17px; }
.tourtip p { margin: 0; font-size: 15px; line-height: 1.45; }
.tourstep { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .03em; }
.tourbtns { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { .tourhole, .tourtip { transition: none; } }

/* 2.2.0: agenda voor iedereen, bestellingen, verjaardagen, terug uit het handboek */
.agitem .kind.bestelling { background: color-mix(in srgb, var(--brand, #0f4c4a) 14%, var(--surface)); border-color: transparent; color: var(--ink); }
.agitem .kind.jarig { background: #fde7ef; border-color: transparent; color: #8a1f47; }
.agitem.forme { box-shadow: inset 3px 0 0 var(--yolk), var(--shadow); }
.agitem .agfor { font-weight: 650; color: var(--ink); }
.agcal-day .dots i.bestelling, .agcal-legend i.bst { background: var(--brand, #0f4c4a); }
.agcal-day .dots i.jarig, .agcal-legend i.jr { background: #d6457a; }
.hbback { margin: 0 0 12px; }
:root[data-theme="dark"] .agitem .kind.jarig { background: #4a1d2c; color: #ffd5e3; }

/* 2.3.0: HACCP met menu's, open afwijkingen, snelle maatregelen */
.hcmenuhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 6px 0 12px; font-size: 15px; }
.hcmenuhead span { color: var(--muted); font-size: 14px; }
.hcmenu { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.hctile { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 12px; row-gap: 2px; text-align: left; padding: 16px; min-height: 112px;
  background: var(--surface); border: 0; border-top: 2px solid var(--gold-line, var(--yolk)); box-shadow: var(--shadow); color: var(--ink); cursor: pointer; font: inherit; }
.hctile .hcico { grid-row: 1 / span 3; align-self: start; }
.hctile b { font-size: 16px; } .hctile small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.hctile .hcst { justify-self: start; margin-top: 8px; font-size: 12.5px; font-weight: 650; padding: 3px 8px; background: var(--soft); color: var(--muted); }
.hctile .hcst.ok { background: #e3f1e6; color: #1e5e33; } .hctile .hcst.op { background: #fff3cc; color: #6b4f00; } .hctile .hcst.bad { background: #fbe3e1; color: #8e2a20; }
.hctile.alert { border-top-color: var(--bad, #c0392b); }
.hctile:hover { box-shadow: 0 1px 2px rgba(16,30,26,.05), 0 16px 34px -16px rgba(16,30,26,.28); }
.hctile.log { background: var(--soft); }
.hcsechead { margin: 4px 0 12px; }
.hcdevs { background: #fbe3e1; border-left: 4px solid #c0392b; padding: 12px 14px; margin: 0 0 16px; color: #3d0f0a; }
.hcdevs h2 { font-size: 16px; margin: 0 0 8px; color: #8e2a20; }
.hcdev { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(142,42,32,.18); flex-wrap: wrap; }
.hcdev small { display: block; color: #6d2a22; font-size: 13px; } .hcdev small.st-bad { font-weight: 700; color: #8e2a20; }
.hcdevbtn { display: flex; gap: 6px; }
.hcquickact { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; }
:root[data-theme="dark"] .hcdevs { background: #3a1714; color: #ffd9d4; } :root[data-theme="dark"] .hcdevs h2, :root[data-theme="dark"] .hcdev small { color: #ffb4aa; }

/* 2.4.0: leveranciers en kant-en-klare onderdelen */
.hcsupadd { display: grid; grid-template-columns: 1.3fr 1.3fr 1fr auto; gap: 8px; padding: 10px 0 2px; }
@media (max-width: 760px) { .hcsupadd { grid-template-columns: 1fr; } }
.hctpl { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; margin: 0 0 16px; background: var(--soft); border: 1px dashed var(--line); }
.hctpl small { display: block; color: var(--muted); font-size: 13px; }

/* 2.5.0: openingsdagen en gesloten dagen */
.opendays { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.closedlist { display: grid; gap: 6px; }
.closedrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 10px; background: var(--soft); }
.closedrow span { color: var(--muted); } .closedrow .btn { margin-left: auto; }
.closedadd { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; }
@media (max-width: 600px) { .closedadd { grid-template-columns: 1fr; } }
.closedhol { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cell.closed.has { opacity: .85; outline: 2px dashed var(--bad, #c0392b); outline-offset: -3px; }
.hcpacklist { display: grid; gap: 6px; max-height: 52vh; overflow-y: auto; padding-right: 4px; }
#dlg-hcpack .dlg { max-width: 640px; }

/* 2.7.0: cao opzoeken */
#view-caozoek { max-width: 900px; }
.czhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; background: var(--card, #fff); border: 1px solid var(--line, #E6E0D2); padding: 14px 16px; margin-bottom: 12px; }
.czhead .sub { display: block; margin-top: 4px; font-size: 13px; }
.czsearch input { width: 100%; font-size: 18px; padding: 14px 16px; min-height: 52px; }
.czchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 6px; }
.czart { background: var(--card, #fff); border: 1px solid var(--line, #E6E0D2); margin-bottom: 8px; }
.czart-h { all: unset; box-sizing: border-box; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 14px; }
.czart-h span { min-width: 0; overflow-wrap: anywhere; }
.czart-h small { color: var(--muted); text-align: right; flex: none; max-width: 40%; overflow-wrap: anywhere; }
.czart-h:focus-visible { outline: 2px solid var(--accent, #FFC93C); outline-offset: -2px; }
.czart-s, .czart-b { padding: 0 14px 12px; color: var(--ink2, #333); line-height: 1.55; overflow-wrap: anywhere; }
.czart-b p { margin: 0 0 8px; }
.czart.open { border-color: var(--accent, #FFC93C); }
.czart mark { background: #FFE58A; color: inherit; padding: 0 1px; }
.czch { margin-bottom: 8px; } .czch > summary { cursor: pointer; font-weight: 600; padding: 10px 2px; } .czch > summary small { color: var(--muted); font-weight: 400; margin-left: 6px; }
.czdisc { font-size: 12.5px; margin-top: 16px; }
@media (max-width: 600px) { .czart-h { flex-direction: column; gap: 2px; } .czart-h small { text-align: left; max-width: none; } }
.czsearch { margin-top: 12px; }
/* 2.8.0: vraag over de cao */
.czask { background: var(--card, #fff); border: 1px solid var(--line, #E6E0D2); border-left: 4px solid var(--accent, #FFC93C); padding: 14px 16px; margin-top: 12px; }
.czask label { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.czask-row { display: flex; gap: 8px; }
.czask-row input { flex: 1; min-width: 0; font-size: 17px; padding: 12px 14px; min-height: 50px; }
.czask-row .btn { flex: none; min-height: 50px; }
.czans { margin-top: 12px; padding: 12px 14px; background: #FFFBEA; border: 1px solid #F3E2A0; line-height: 1.55; overflow-wrap: anywhere; }
.czans.nf { background: #F6F4EE; border-color: var(--line, #E6E0D2); }
.czans.wait { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.czans p { margin: 0 0 6px; } .czans ul { margin: 0 0 6px; padding-left: 20px; }
.czans-q { font-weight: 600; margin-bottom: 6px; color: var(--muted); font-size: 13.5px; }
.czans-src { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; } .czans-src small { color: var(--muted); }
.czans-note { font-size: 12px; color: var(--muted); margin: 8px 0 0 !important; }
.czor { margin: 16px 0 6px; color: var(--muted); font-size: 14px; }
.spin { width: 16px; height: 16px; border: 2px solid #E6E0D2; border-top-color: var(--accent, #FFC93C); border-radius: 50%; animation: czspin .8s linear infinite; flex: none; }
@keyframes czspin { to { transform: rotate(360deg); } }
.linkbtn { all: unset; cursor: pointer; text-decoration: underline; color: var(--brand, #0F4C4A); }
@media (max-width: 520px) { .czask-row { flex-direction: column; } .czask-row .btn { width: 100%; } }

/* 2.14.0: keuzerondjes in een groep (reden overslaan, afwijking afsluiten, ziekmelding) */
fieldset.radios { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; min-width: 0; }
fieldset.radios legend { padding: 0; margin-bottom: 4px; }
fieldset.radios .check { margin: 0; }
fieldset.radios input[type="text"] { margin-top: 2px; }
/* 2.14.0: allergenen per product: bevat / kan bevatten / bevat niet */
.alpick { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, minmax(56px, 72px)); gap: 4px 6px; align-items: center; }
.alpick .alh { font-size: 11.5px; color: var(--muted); text-align: center; font-weight: 600; line-height: 1.2; }
.alpick .aln { font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.alpick .alc { position: relative; display: grid; place-items: center; height: 34px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.alpick .alc input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.alpick .alc span { color: transparent; font-weight: 800; }
.alpick .alc:has(input:checked) span { color: inherit; }
.alpick .al-b:has(input:checked) { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
.alpick .al-k:has(input:checked) { background: var(--warn-soft); border-color: var(--warn); color: var(--warn); }
.alpick .al-n:has(input:checked) { background: color-mix(in srgb, var(--ok) 14%, transparent); border-color: var(--ok); color: var(--ok); }
.alpick .alc:has(input:focus-visible) { outline: 2px solid var(--brand, #0f4c4a); outline-offset: 1px; }
.alcheck { align-items: flex-start; margin-top: 4px; }
.otag.kan { background: var(--warn-soft); color: var(--warn); }
/* 2.14.0: allergenenzoeker */
.altag.kan { background: var(--warn-soft, #fff1dc); color: var(--warn, #a15c00); }
.altag.unk { background: var(--soft, #f6f7f4); color: var(--muted); border: 1px dashed var(--line); }
.algrid .kan { background: var(--warn-soft, #fff1dc); color: var(--warn, #a15c00); font-weight: 700; }
.algrid .unk { color: var(--muted); }
/* 2.14.0: drie soorten meldingen in de planning (Tip / Let op: wet / Jongeren: wet) */
.note.tip { background: color-mix(in srgb, #2f6fa8 11%, var(--surface, #fff)); color: var(--ink); border-left: 3px solid #2f6fa8; }
.note.wk-law { border-left: 3px solid var(--warn); }
.note.wk-young { border-left: 3px solid var(--bad); }
.shift .flag.young { background: var(--bad); }
/* 2.14.0: overzicht jongeren-regels bij sjabloon / week kopiëren */
.yblist { display: grid; border: 1px solid var(--line); max-height: 50vh; overflow: auto; }
.ybrow { padding: 8px 10px; border-bottom: 1px solid var(--line); display: grid; gap: 2px; min-width: 0; }
.ybrow:last-child { border-bottom: 0; }
.ybrow small { color: var(--bad); }
.ybfoot { flex-wrap: wrap; }
.btn.dark { background: var(--ink); color: var(--surface); border-color: var(--ink); }
/* 2.14.0: afvalregistratie */
.wbars { display: grid; gap: 8px; }
.wsbar { display: grid; grid-template-columns: minmax(90px, 1.2fr) minmax(0, 3fr) auto; gap: 10px; align-items: center; font-size: 14px; }
.wsbar .wn { min-width: 0; overflow-wrap: break-word; }
.wsbar .wt { height: 12px; background: var(--soft, var(--bg)); border: 1px solid var(--line); }
.wsbar .wt i { display: block; height: 100%; background: var(--bar, #0f4c4a); }
.wsbar .wv { text-align: right; white-space: nowrap; }
.wtbl th, .wtbl td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; white-space: nowrap; vertical-align: top; }
.wtbl th { background: var(--bg); color: var(--muted); font-size: 12px; }
.wtbl .num { text-align: right; }
.ddays { border-collapse: collapse; width: 100%; }
.ddays th, .ddays td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; white-space: nowrap; }
.ddays th { background: var(--bg); color: var(--muted); font-size: 12px; }
.ddays .num { text-align: right; }
.wtbl td:nth-child(2) { white-space: normal; min-width: 140px; }
.wtbl { border-collapse: collapse; width: 100%; }
.wqty { display: flex; gap: 8px; align-items: center; }
.wqty input { max-width: 110px; }
/* 2.14.0: echte omzet in de planning */
.revfill { display: block; margin-top: 6px; font-size: 12px; padding: 4px 8px; white-space: normal; text-align: left; }
.actrow th, .actrow td { background: color-mix(in srgb, var(--bar, #0f4c4a) 5%, transparent); }
/* 2.14.0: brede tabellen schuiven binnen hun eigen vak (niet de hele pagina) */
.tblwrap { overflow-x: auto; max-width: 100%; min-width: 0; -webkit-overflow-scrolling: touch; }
@media (max-width: 480px) { .alpick { grid-template-columns: minmax(0, 1fr) repeat(3, 48px); gap: 4px; } .alpick .alh { font-size: 10.5px; } }
.alpick .aln { overflow-wrap: normal; word-break: normal; hyphens: auto; }

/* 2.14.4: kaartjes op de telefoon (Producten en Afval), lange woorden breken af */
.pcards, .wcards { display: none; }
.pcard { border: 1px solid var(--line); background: var(--surface); padding: 10px 12px; display: grid; gap: 6px; min-width: 0; }
.pctop { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; min-width: 0; }
.pcname { font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; min-width: 0; }
.pcedit { flex: none; min-width: 40px; min-height: 40px; padding: 0; font-size: 16px; }
.pcmeta { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 13.5px; color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.pcmeta b { color: var(--ink); }
.pctags { display: flex; flex-wrap: wrap; gap: 4px; }
.pctags .otag { white-space: normal; }
.wcday { font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 8px 0 2px; }
.wtbl td { overflow-wrap: anywhere; }
.ptbl td b { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  #products-body .ptbl, #waste-body .tblwrap { display: none; }
  #products-body .pcards { display: grid; gap: 8px; padding: 8px; }
  #waste-body .wcards { display: grid; gap: 8px; }
  #products-body:has(.pcards) { overflow-x: visible; }
}

/* 2.14.5: btw-tarief bij een product */
.vatpick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.vatpick label { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); padding: 7px 11px; font-size: 14px; cursor: pointer; min-height: 40px; }
.vatpick input { margin: 0; accent-color: var(--brand); }
.vatpick label:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); font-weight: 600; }
.vatpick input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
#pr-excl { display: block; margin-top: 4px; font-variant-numeric: tabular-nums; }
