/* Roelofsen Bloemen, winkelapp (de iPad in de winkel). Design "iPad Orderinvoer" (Claude Design, 2026-10-12):
   een smalle rail links (Nieuw, Orders, Intern), het werkvlak in het midden en een overzicht rechts. Alleen
   geladen in layouts/Ipad.cfm; kleuren en maten uit tokens.css (blok .wa). Keuzeknoppen zijn echte radio's en
   checkboxen (werkt zonder JS), visueel verborgen met het vlak erachter als knop. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.wa {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  font-family: var(--font-body); font-size: 15px; line-height: 1.45; color: var(--wa-tekst); background: var(--wa-bg);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  overscroll-behavior: none;
}
:where(.wa) a { color: var(--brand-deep); }
:where(.wa) :where(button, input, select, textarea) { font: inherit; color: inherit; }
.wa h1, .wa h2, .wa p { margin: 0; }
.wa [hidden] { display: none !important; }
.wa-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0; }
.wa :focus-visible { outline: 3px solid var(--brand-deep); outline-offset: 2px; }   /* review 11: dekkend, was ongeveer 1,2:1 */

/* ---------- Schil: rail + scherm ---------- */
.wa-app { display: grid; grid-template-columns: var(--wa-rail) minmax(0, 1fr); height: 100vh; height: 100dvh; }
.rail {
  background: var(--wa-kaart); border-right: 1px solid var(--wa-lijn); display: flex; flex-direction: column; align-items: center;
  gap: 6px; padding: calc(22px + env(safe-area-inset-top)) 0 calc(14px + env(safe-area-inset-bottom)); min-height: 0;
}
.rail__logo { width: 48px; height: 48px; object-fit: cover; margin-bottom: 18px; }
.rail__item {
  width: 64px; padding: 10px 0 8px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; color: var(--wa-tekst-2); text-decoration: none;
}
.wa .rail__item { color: var(--wa-tekst-2); }
.wa .rail__item.is-actief { background: var(--wa-tint); color: var(--brand-deep); }
.rail__sp { flex: 1; }
.rail__ik { position: relative; }
.rail__ik summary { list-style: none; cursor: pointer; }
.rail__ik summary::-webkit-details-marker { display: none; }
.rail__me {
  width: 44px; height: 44px; border-radius: 50%; background: var(--brand-deep); color: var(--on-deep); display: flex;
  align-items: center; justify-content: center; font-weight: 800; font-size: 15px;
}
.rail__menu {
  position: absolute; left: 54px; bottom: 0; z-index: 20; width: 240px; background: var(--wa-kaart); border-radius: 14px;
  box-shadow: var(--wa-schaduw-toast); padding: 14px; display: flex; flex-direction: column; gap: 10px;
}
.rail__menu b { font-size: 15px; }
.rail__menu span { font-size: 13px; color: var(--wa-tekst-2); }

.scherm { display: grid; min-width: 0; min-height: 0; }
.scherm--zij { grid-template-columns: minmax(0, 1fr) var(--wa-zij); }
.scherm--orders { grid-template-columns: 400px minmax(0, 1fr); }

/* ---------- Werkvlak ---------- */
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.top { padding: calc(28px + env(safe-area-inset-top)) 28px 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.top h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.top p { margin-top: 4px; color: var(--wa-tekst-2); font-size: 14px; }
.scroll { flex: 1; overflow: auto; padding: 0 28px 28px; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
.steps { display: flex; gap: 6px; padding: 0 28px 14px; }
.steps a {
  flex: 1; background: var(--wa-kaart); border-radius: 12px; padding: 10px 12px; display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700; color: var(--wa-tekst-2); box-shadow: 0 0 0 1px var(--wa-lijn); text-decoration: none; min-width: 0;
}
.wa .steps a { color: var(--wa-tekst-2); }
.steps i {
  font-style: normal; width: 24px; height: 24px; border-radius: 50%; background: var(--wa-bg); display: inline-flex;
  align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex-shrink: 0;
}
.wa .steps a.is-actief { color: var(--wa-tekst); box-shadow: 0 0 0 2px var(--brand); }
.steps a.is-actief i { background: var(--brand-deep); color: var(--on-deep); }
.steps a.is-klaar i { background: var(--wa-tint); color: var(--brand-deep); }

.card { background: var(--wa-kaart); border-radius: 18px; box-shadow: 0 0 0 1px var(--wa-lijn); padding: 22px 24px 24px; margin-bottom: 16px; scroll-margin-top: 8px; }
.card h2 { font-size: 18px; font-weight: 800; margin: 0 0 18px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.card h2 span { font-size: 13px; font-weight: 500; color: var(--wa-tekst-3); }
.card__tekst { color: var(--wa-tekst-2); margin-bottom: 14px; }
.g { display: grid; gap: 14px; margin-bottom: 14px; }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: 1fr 1fr 1fr; }
.gpc { grid-template-columns: 1.2fr .8fr .6fr; }
.blok, fieldset.f.blok { margin-bottom: 18px; }
.blok:last-child, fieldset.f.blok:last-child { margin-bottom: 0; }

/* Velden */
.f { display: block; min-width: 0; }
.f__l, .f > label, .f legend { display: block; font-size: 13px; font-weight: 700; color: var(--wa-tekst-2); margin-bottom: 6px; padding: 0; }
.f__l em, .f legend em { font-style: normal; font-weight: 500; color: var(--wa-tekst-3); }
fieldset.f { border: 0; margin: 0; padding: 0; min-width: 0; }
.in {
  width: 100%; height: 52px; border: 1.5px solid var(--wa-lijn); border-radius: 12px; padding: 0 14px; font-size: 17px;
  background: var(--wa-kaart); outline: none; -webkit-appearance: none; appearance: none;
}
textarea.in { height: auto; min-height: 76px; padding: 12px 14px; resize: none; line-height: 1.4; }
.in:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--wa-focus); }
.in::placeholder { color: var(--wa-placeholder); }
.in.is-auto { background: var(--wa-bg); color: var(--wa-tekst-2); }
.in[type=date] { max-width: 260px; }
.hint { font-size: 12px; color: var(--brand-deep); margin-top: 6px; font-weight: 700; min-height: 1em; }
.hint.is-fout { color: var(--wa-fout); }

/* Segmentknoppen (radio) */
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; pointer-events: none; }
.seg span {
  height: 52px; padding: 0 18px; border-radius: 12px; border: 1.5px solid var(--wa-lijn); background: var(--wa-kaart);
  font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap;
}
.seg small { font-size: 12px; font-weight: 500; color: var(--wa-tekst-3); }
.seg input:checked + span { border-color: var(--brand-deep); background: var(--wa-tint); color: var(--brand-deep); }
.seg input:checked + span small { color: var(--brand-deep); }
.seg input:focus-visible + span { box-shadow: 0 0 0 3px var(--wa-focus); }
.anders { margin-top: 10px; }

/* Tegels (radio) */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { position: relative; display: block; }
.tile input { position: absolute; opacity: 0; inset: 0; margin: 0; pointer-events: none; }
.tile__vlak {
  border: 1.5px solid var(--wa-lijn); border-radius: 14px; background: var(--wa-kaart); padding: 16px; display: flex; gap: 14px;
  align-items: center; cursor: pointer; min-height: 76px; height: 100%;
}
.tile__r { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--wa-rondje); flex-shrink: 0; position: relative; }
.tile b { display: block; font-size: 16px; }
.tile__vlak > span:last-child > span { font-size: 13px; color: var(--wa-tekst-2); }
.tile input:checked + .tile__vlak { border-color: var(--brand-deep); background: var(--wa-tint); }
.tile input:checked + .tile__vlak .tile__r { border-color: var(--brand-deep); }
.tile input:checked + .tile__vlak .tile__r::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--brand-deep); }
.tile input:focus-visible + .tile__vlak { box-shadow: 0 0 0 3px var(--wa-focus); }
.tiles--vier { grid-template-columns: 1fr 1fr; }

/* Schakelaar (checkbox) */
.sw { position: relative; display: block; margin-bottom: 14px; }
/* Roy 2026-11-04: Staat al klaar direct onder de tegels van Waar wordt het gemaakt kreeg te weinig ruimte. */
.tiles + .sw { margin-top: 18px; }
.sw input { position: absolute; opacity: 0; inset: 0; margin: 0; pointer-events: none; }
.sw__vlak {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1.5px solid var(--wa-lijn); border-radius: 14px;
  padding: 14px 16px; cursor: pointer; background: var(--wa-kaart);
}
.sw b { font-size: 16px; }
.sw__vlak > span:first-child > span { display: block; font-size: 13px; color: var(--wa-tekst-2); }
/* UX 2026-11-06 (toggle): schuift met een ease-out, rekt uit zolang de vinger erop ligt en komt tot rust. */
.tg { width: 52px; height: 32px; border-radius: 16px; background: var(--wa-schakel-uit); position: relative; flex-shrink: 0; transition: background-color 220ms var(--ease-out); }
.tg::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--wa-kaart);
  box-shadow: var(--wa-schaduw); transition: transform 220ms cubic-bezier(.22, 1, .36, 1), width 220ms cubic-bezier(.22, 1, .36, 1);
}
.sw input:checked + .sw__vlak .tg { background: var(--brand-deep); }
.sw input:checked + .sw__vlak .tg::after { transform: translateX(20px); }
.sw:active .tg::after { width: 32px; }
.sw input:checked + .sw__vlak:active .tg::after { transform: translateX(14px); }
.sw input:focus-visible + .sw__vlak { box-shadow: 0 0 0 3px var(--wa-focus); }

/* Artikelregels */
.item { display: grid; grid-template-columns: minmax(0, 1fr) 148px 128px 44px; gap: 10px; align-items: end; padding: 12px 0; border-top: 1px solid var(--wa-lijn-licht); }
.item:first-child { border-top: 0; padding-top: 0; }
.stap { display: flex; height: 52px; border: 1.5px solid var(--wa-lijn); border-radius: 12px; overflow: hidden; background: var(--wa-kaart); }
.stap button { width: 46px; border: 0; background: var(--wa-bg); font-size: 22px; cursor: pointer; flex-shrink: 0; }
.stap input { flex: 1; min-width: 0; border: 0; text-align: center; font-size: 17px; font-weight: 800; background: transparent; -moz-appearance: textfield; outline: none; }
.stap input::-webkit-outer-spin-button, .stap input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.del { width: 44px; height: 52px; border: 0; background: none; border-radius: 12px; color: var(--wa-tekst-3); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.del:hover, .del:active { background: var(--wa-fout-vlak); color: var(--wa-fout); }
.add {
  margin-top: 12px; height: 48px; border-radius: 12px; border: 1.5px solid var(--wa-lijn); background: var(--wa-kaart); padding: 0 18px;
  font-size: 15px; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}

/* ---------- Overzicht rechts ---------- */
.sum { background: var(--wa-kaart); border-left: 1px solid var(--wa-lijn); display: flex; flex-direction: column; min-height: 0; padding-top: calc(28px + env(safe-area-inset-top)); }
.sum__h { padding: 0 24px 14px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--wa-tekst-3); }
.sum__b { flex: 1; overflow: auto; padding: 0 24px; }
.blk { padding: 14px 0; border-top: 1px solid var(--wa-lijn-licht); }
.blk:first-child { border-top: 0; padding-top: 0; }
.blk small { display: block; font-size: 12px; font-weight: 800; color: var(--wa-tekst-3); margin-bottom: 4px; }
.blk p { font-size: 15px; line-height: 1.4; }
.blk p + p { margin-top: 2px; }
.blk .sub { color: var(--wa-tekst-2); font-size: 14px; }
.blk .mute { color: var(--wa-leeg); }
.ln { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; padding: 3px 0; }
.ln span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ln.sub { color: var(--wa-tekst-2); }
.sum__f { padding: 18px 24px calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid var(--wa-lijn); background: var(--wa-kaart); }
.tot { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.tot span { font-size: 15px; color: var(--wa-tekst-2); }
.tot b { font-size: 30px; font-weight: 800; letter-spacing: -0.01em; }
.save {
  width: 100%; height: 60px; border: 0; border-radius: 14px; background: var(--brand-deep); color: var(--on-deep); font-size: 18px;
  font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none;
}
.wa a.save { color: var(--on-deep); }
.save:disabled { background: var(--wa-uit); cursor: not-allowed; }
/* UX 2026-11-06 (feedback): indrukken zakt de knop iets in; verstuurt het formulier (aria-busy van rb.submitGuard) of loopt
   een fetch op de knop zelf (aria-busy op de knop, Binderij), dan draait er een ring voor het label. */
.save { transition: transform 260ms cubic-bezier(.34, 1.56, .64, 1); }
.save:active:not(:disabled) { transform: scale(.97); transition-duration: 90ms; }
form[aria-busy="true"] .save[type="submit"], .wa button[aria-busy="true"] { cursor: progress; opacity: .85; pointer-events: none; }
form[aria-busy="true"] .save[type="submit"]::before, .wa button[aria-busy="true"]::before {
  content: ""; display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: wa-draai 700ms linear infinite; flex: none;
}
@keyframes wa-draai { to { transform: rotate(360deg); } }
.toast > svg { animation: wa-pop 320ms cubic-bezier(.34, 1.56, .64, 1); }
@keyframes wa-pop { 40% { transform: scale(1.25); } }
.save--licht { background: var(--wa-kaart); box-shadow: inset 0 0 0 1.5px var(--brand-deep); }
.wa .save--licht, .wa a.save--licht { color: var(--brand-deep); }
.save + .save, .save + form, form + .save { margin-top: 10px; }
.miss { font-size: 12px; color: var(--wa-tekst-3); text-align: center; margin-top: 10px; min-height: 1em; }

/* Meldingen */
.toast {
  position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50;
  background: var(--wa-toast); color: var(--on-deep); border-radius: 14px; padding: 14px 20px; font-size: 15px; font-weight: 700;
  display: flex; gap: 10px; align-items: center; box-shadow: var(--wa-schaduw-toast); max-width: min(640px, calc(100vw - 40px));
  transition: opacity var(--dur-base), transform var(--dur-base);
}
.toast.is-weg { opacity: 0; transform: translate(-50%, 12px); pointer-events: none; }
.toast--fout { background: var(--wa-fout); }
.netwerk {
  position: fixed; top: env(safe-area-inset-top); left: 50%; transform: translateX(-50%); z-index: 60; margin-top: 10px;
  background: var(--wa-fout); color: var(--on-deep); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 700;
  max-width: calc(100vw - 32px); text-align: center;
}
/* Sessiebalk (rb.sessieBalk in gedeeld.js) als tweede pill: onder de offline-balk als die ook zichtbaar is. */
.netwerk.is-ok { background: var(--brand-deep); }
.netwerk a { color: inherit; text-decoration: underline; }
[data-netwerk]:not([hidden]) + .rb-sessiebalk { margin-top: 56px; }

/* ---------- Orders: lijst + detail ---------- */
.ol { background: var(--wa-kaart); border-right: 1px solid var(--wa-lijn); display: flex; flex-direction: column; min-height: 0; }
.ol__top { padding: calc(28px + env(safe-area-inset-top)) 20px 12px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.ol__top h1 { font-size: 26px; font-weight: 800; }
.ol__top p { margin-top: 4px; font-size: 14px; color: var(--wa-tekst-2); }
.ol__new { height: 40px; padding: 0 16px; border-radius: 999px; background: var(--brand-deep); font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; }
.wa .ol__new { color: var(--on-deep); }
.ol__tools { padding: 0 20px 12px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--wa-lijn-licht); }
.ol__search { height: 44px; border: 0; border-radius: 12px; background: var(--wa-bg); padding: 0 14px; font-size: 16px; outline: none; width: 100%; -webkit-appearance: none; }
.ol__search:focus { box-shadow: inset 0 0 0 1.5px var(--brand); }
.ol__seg { display: flex; background: var(--wa-bg); border-radius: 12px; padding: 3px; }
.ol__seg a { flex: 1; height: 38px; border-radius: 10px; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 4px; text-decoration: none; }
.wa .ol__seg a { color: var(--wa-tekst-2); }
.ol__seg small { font-weight: 500; color: var(--wa-tekst-3); }
.wa .ol__seg a.is-actief { background: var(--wa-kaart); color: var(--wa-tekst); box-shadow: var(--wa-schaduw); }
.ol__list { flex: 1; overflow: auto; padding: 8px 10px calc(20px + env(safe-area-inset-bottom)); list-style: none; margin: 0; }
.ol__empty { text-align: center; color: var(--wa-tekst-3); padding: 40px 0; }
.ol__row { display: flex; flex-direction: column; gap: 4px; border-radius: 14px; padding: 12px; text-decoration: none; border-bottom: 1px solid var(--wa-lijn-licht); }
.wa .ol__row { color: var(--wa-tekst); }
.ol__row.is-actief { background: var(--wa-tint); border-bottom-color: transparent; }
.ol__l1, .ol__l2 { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ol__l1 b { font-size: 16px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ol__l1 span { font-size: 15px; font-weight: 800; white-space: nowrap; }
.ol__l2 > span:first-child { font-size: 14px; color: var(--wa-tekst-2); }
.ol__l3 { font-size: 12px; color: var(--wa-tekst-3); }

.st { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; white-space: nowrap; display: inline-block; }
.st--nieuw { background: var(--wa-st-nieuw); color: var(--wa-st-nieuw-tekst); }
.st--plan { background: var(--wa-st-plan); color: var(--wa-st-plan-tekst); }
.st--klaar { background: var(--wa-st-klaar); color: var(--wa-st-klaar-tekst); }
.st--weg { background: var(--wa-st-weg); color: var(--wa-st-weg-tekst); }

.od { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.od--leeg { align-items: center; justify-content: center; color: var(--wa-tekst-3); padding: 28px; text-align: center; }
.od__top { padding: calc(28px + env(safe-area-inset-top)) 28px 16px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.od__t { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.od__t h2 { font-size: 24px; font-weight: 800; }
.od__top p { margin-top: 4px; font-size: 14px; color: var(--wa-tekst-2); }
.od__terug { display: none; font-weight: 700; text-decoration: none; margin-bottom: 8px; }
.od__scroll { flex: 1; overflow: auto; padding: 0 28px calc(28px + env(safe-area-inset-bottom)); }
.od__track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--wa-kaart); border-radius: 16px; box-shadow: 0 0 0 1px var(--wa-lijn); padding: 8px; margin: 0 0 16px; list-style: none; }
.od__track li { border-radius: 10px; padding: 10px 4px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--wa-tekst-3); text-align: center; }
.od__track i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; background: var(--wa-bg); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.od__track .is-klaar { color: var(--brand-deep); }
.od__track .is-klaar i { background: var(--wa-tint); color: var(--brand-deep); }
.od__track .is-nu { background: var(--wa-tint); color: var(--brand-deep); }
.od__track .is-nu i { background: var(--brand-deep); color: var(--on-deep); }
.od__melding { background: var(--wa-st-weg); color: var(--wa-st-weg-tekst); border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; font-weight: 700; }
.od__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.od__card { background: var(--wa-kaart); border-radius: 16px; box-shadow: 0 0 0 1px var(--wa-lijn); padding: 18px 20px; min-width: 0; }
.od__card--wide { grid-column: 1 / -1; }
.od__card small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--wa-tekst-3); margin-bottom: 8px; }
.od__card p { margin: 0 0 4px; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.od__card p.big { font-size: 17px; font-weight: 800; }
.od__card p.mut { color: var(--wa-tekst-2); font-size: 14px; }
.od__card p.lbl { font-size: 12px; font-weight: 800; color: var(--wa-tekst-3); margin-top: 6px; }
.od__ln { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 15px; border-bottom: 1px solid var(--wa-lijn-licht); }
.od__ln.mut { color: var(--wa-tekst-2); font-size: 14px; }
.od__tot { border-bottom: 0; font-weight: 800; font-size: 17px; padding-top: 10px; }
.od__hint { font-size: 13px; color: var(--wa-tekst-3); margin-top: 14px; }

/* ---------- Intern: materiaal ---------- */
.mb__top { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 12px 28px; align-items: center; }
.mb__top > p { grid-column: 1 / -1; font-size: 15px; line-height: 1.5; max-width: 620px; margin: 0; }
.mb__tabs { width: auto; min-width: 300px; }   /* stap 2: drie tabs (Overbrengen), op een regel */
.mb__tabs a { white-space: nowrap; padding: 0 12px; }
.mb__card { padding-bottom: 6px; }
.mb__card h2 { margin-bottom: 6px; }
.mb__row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 0; border-top: 1px solid var(--wa-lijn-licht); }
.mb__row:first-of-type { border-top: 0; }
.mb__row > div:first-child { flex: 1; min-width: 0; }
.mb__row b { display: block; font-size: 17px; margin-bottom: 2px; }
.mb__d { display: block; font-size: 14px; color: var(--wa-tekst-2); }
.mb__row em { display: block; font-style: normal; font-size: 13px; font-weight: 800; color: var(--brand-deep); margin-top: 4px; }
.mb__row.is-op em, .mb__row.is-te-veel em { color: var(--wa-fout); }
.mb__step { display: flex; align-items: center; flex-shrink: 0; height: 56px; border: 1.5px solid var(--wa-lijn); border-radius: 14px; background: var(--wa-kaart); overflow: hidden; }
.mb__step.has { border-color: var(--brand-deep); }
.mb__step button { border: 0; background: none; width: 56px; height: 100%; font-size: 26px; line-height: 1; cursor: pointer; }
.mb__step button:active { background: var(--wa-bg); }
.mb__step button:disabled { color: var(--wa-uit); cursor: default; }
.mb__step input {
  width: 56px; height: 100%; border: 0; border-left: 1px solid var(--wa-lijn-licht); border-right: 1px solid var(--wa-lijn-licht);
  text-align: center; font-size: 19px; font-weight: 800; color: var(--wa-tekst-3); background: transparent; -moz-appearance: textfield; outline: none; border-radius: 0;
}
.mb__step input::-webkit-outer-spin-button, .mb__step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mb__step.has input { color: var(--brand-deep); background: var(--wa-tint); }
.mb__ln { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; }
.mb__ln b { display: block; font-size: 15px; font-weight: 700; }
.mb__ln small { font-size: 13px; color: var(--wa-tekst-3); font-weight: 500; margin: 0; }
.mb__ln > span { font-size: 16px; font-weight: 800; white-space: nowrap; }
.mb__h {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 12px; margin: 0 -12px; border-radius: 12px;
  border-top: 1px solid var(--wa-lijn-licht); text-decoration: none;
}
.wa .mb__h { color: var(--wa-tekst); }
.mb__h:first-of-type { border-top: 0; }
.mb__h.is-actief { background: var(--wa-tint); border-top-color: transparent; }
.mb__h b { display: block; font-size: 16px; }
.mb__h > span:first-child { flex: 1; min-width: 0; }
.mb__hm { display: block; font-size: 14px; color: var(--wa-tekst-2); margin-top: 2px; }

/* ---------- Inloggen ---------- */
.inlog { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: calc(24px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom)); }
.inlog__kaart { width: min(440px, 100%); background: var(--wa-kaart); border-radius: 22px; box-shadow: 0 0 0 1px var(--wa-lijn); padding: 32px 30px 30px; }
.inlog__logo { width: 64px; height: 64px; margin-bottom: 20px; }
.inlog h1 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.inlog__intro { color: var(--wa-tekst-2); margin-bottom: 22px; }
.inlog .f { margin-bottom: 16px; }
.inlog__fout { background: var(--wa-fout-vlak); color: var(--wa-fout); border-radius: 12px; padding: 12px 14px; font-weight: 700; margin-bottom: 16px; }
.pw-veld { position: relative; }
.pw-veld .in { padding-right: 52px; }
.pw-veld [data-pw-toggle] {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; border-radius: 10px;
  background: none; color: var(--wa-tekst-3); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.verborgen-veld { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Herinlogvenster (winkelapp.js, alleen als geinstalleerde web-app): dezelfde kaart als het inlogscherm, als dialog.
   De knop in de sessiebalk (.netwerk__knop) opent hem opnieuw na Annuleren. */
.herinlog { border: 0; border-radius: 22px; padding: 0; width: min(440px, calc(100vw - 32px)); background: var(--wa-kaart); box-shadow: 0 24px 60px rgba(0, 0, 0, .28); color: var(--wa-tekst); }
.herinlog::backdrop { background: rgba(26, 36, 28, .65); }   /* UX 2026-11-06: dim rond 70 procent, de vraag is de enige figuur */
.herinlog__form { padding: 30px 30px 26px; }
.herinlog h2 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.herinlog__intro { color: var(--wa-tekst-2); margin-bottom: 20px; line-height: 1.4; }
.herinlog .f { margin-bottom: 16px; }
.herinlog__knoppen { display: grid; gap: 10px; margin-top: 22px; }
.herinlog__knoppen .save { height: 54px; }
.netwerk__knop { border: 0; border-radius: 999px; padding: 4px 12px; font: inherit; font-weight: 800; background: var(--wa-kaart); color: var(--wa-fout); cursor: pointer; }

/* Offline-pagina */
.offline { text-align: center; }
.offline p { color: var(--wa-tekst-2); margin-bottom: 20px; }

/* ---------- Kleinere schermen (iPad staand, iPad mini) ---------- */
@media (max-width: 1100px) {
  .wa { --wa-zij: 300px; }
  .scherm--orders { grid-template-columns: 340px minmax(0, 1fr); }
  .g3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  /* Het overzicht wordt een balk onderaan met totaal en opslaan. */
  .scherm--zij { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .sum { border-left: 0; border-top: 1px solid var(--wa-lijn); padding-top: 0; }
  .sum__h, .sum__b { display: none; }
  .sum--altijd .sum__h, .sum--altijd .sum__b { display: block; max-height: 32vh; }
  .sum--altijd .sum__h { padding-top: 16px; }
  .sum__f { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 18px; padding-top: 12px; }
  .tot { margin: 0; flex-direction: column; gap: 0; }
  .tot b { font-size: 24px; }
  .save { height: 54px; }
  .miss { grid-column: 1 / -1; margin-top: 0; }
  .sum__f > form, .sum__f > .save + .save { grid-column: 1 / -1; }
  /* Orders: lijst of detail. */
  .scherm--orders { grid-template-columns: minmax(0, 1fr); }
  .scherm--orders.is-detail .ol { display: none; }
  .scherm--orders:not(.is-detail) .od { display: none; }
  .od__terug { display: inline-block; }
  .mb__top { grid-template-columns: 1fr; }
  .mb__tabs { width: 100%; }
}
@media (max-width: 700px) {
  .g2, .g3, .gpc, .tiles, .od__grid { grid-template-columns: 1fr; }
  .item { grid-template-columns: minmax(0, 1fr) 128px; }
  .item > .f:first-child { grid-column: 1 / -1; }
  .steps { overflow-x: auto; }
  .steps a { flex: 0 0 auto; }
  .top, .scroll, .steps, .od__top, .od__scroll { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .tg, .tg::after { transition: none; }
  .save:active:not(:disabled) { transform: none; }
  .toast > svg { animation: none; }
  .wa-roll__strip { transition: none; }
  .scroll { scroll-behavior: auto; }
  .toast, .tg, .tg::after { transition: none; }
}
.od__betaal { margin-top: 14px; }

.rail__tel { display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--brand-deep); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.rail__tel[hidden] { display: none; }   /* review 10: de teller staat er altijd (de Binderij werkt hem bij), verborgen bij 0 */

/* Vandaag nog bezorgen (design "iPad Orderinvoer", besluit Roy 2026-10-30): strook met de rit van vandaag en een tijdlijn. */
.rs { border-radius: 16px; padding: 16px 18px 12px; margin: 0 0 18px; border: 1.5px solid var(--wa-rit-ok-rand); background: var(--wa-rit-ok-vlak); }
.rs--nee { background: var(--wa-rit-nee-vlak); border-color: var(--wa-rit-nee-rand); }
.rs__kop { display: flex; gap: 12px; align-items: flex-start; }
.rs__stip { width: 12px; height: 12px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; background: var(--brand); box-shadow: 0 0 0 4px var(--wa-focus); }
.rs--nee .rs__stip { background: var(--wa-rit-nee-stip); box-shadow: 0 0 0 4px rgba(194, 87, 58, 0.18); }
.rs__tekst { flex: 1; min-width: 0; }
.rs__tekst b { display: block; font-size: 17px; font-weight: 800; color: var(--brand-deep); }
.rs--nee .rs__tekst b { color: var(--wa-rit-nee); }
.rs__tekst p { margin: 3px 0 0; font-size: 14px; line-height: 1.45; color: var(--wa-tekst-2); }
.rs__tekst p strong { color: var(--wa-tekst); }
.rs__knop { flex-shrink: 0; height: 44px; padding: 0 16px; border-radius: 12px; border: 0; background: var(--wa-rit-nee); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; }
.rs__baan { position: relative; margin: 16px 4px 0; }
.rs__lijn { position: absolute; left: 0; right: 0; top: 6px; height: 3px; background: var(--wa-rit-lijn); border-radius: 2px; overflow: hidden; }
.rs__lijn span { display: block; height: 100%; background: var(--wa-tekst-2); width: var(--rit-pct, 0%); }
.rs__bus { position: absolute; top: -6px; left: var(--rit-pct, 0%); transform: translateX(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--wa-toast); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--wa-schaduw); z-index: 2; }
.rs__punten { display: grid; position: relative; grid-template-columns: repeat(var(--rit-n, 2), minmax(0, 1fr)); }
.rs__p { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.rs__p:last-child { align-items: flex-end; text-align: right; }
.rs__p:not(:first-child):not(:last-child) { align-items: center; text-align: center; }
.rs__p i { width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--wa-rondje); margin-bottom: 6px; position: relative; z-index: 1; }
.rs__p.is-voorbij i { border-color: var(--wa-tekst-2); background: var(--wa-tekst-2); }
.rs__p.is-hier i { width: 19px; height: 19px; margin-top: -2px; margin-bottom: 4px; border-color: var(--brand-deep); }
.rs--nee .rs__p.is-hier i { border-color: var(--wa-rit-nee); background: var(--wa-rit-nee); }
.rs__p b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.rs__p.is-hier b { font-weight: 800; white-space: normal; }   /* "(hier)" valt nooit weg bij veel punten */
.rs__p span { font-size: 12px; color: var(--wa-tekst-3); }
.rs__p.is-hier span { font-weight: 700; color: var(--wa-tekst); }
.rs__voet { margin-top: 10px; font-size: 12px; color: var(--wa-tekst-3); }
.seg label.is-uit span { color: var(--wa-tekst-3); background: #F6F4F0; border-style: dashed; }
.seg label.is-uit small { color: var(--wa-fout); font-weight: 700; }
/* Retour in de winkel (design 2026-10-30): de klant komt ophalen of de order gaat opnieuw mee. */
.od__ret { background: var(--wa-retour-vlak); border-radius: 16px; box-shadow: 0 0 0 1.5px var(--wa-retour-rand); padding: 18px 20px; margin-bottom: 16px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 20px; }
.od__ret__t { grid-column: 1 / -1; }
.od__ret__t b { display: block; font-size: 18px; color: var(--wa-retour); }
.od__ret__t span { font-size: 14px; color: var(--wa-tekst-2); }
.od__ret__w { background: #fff; border-radius: 12px; padding: 12px 14px; }
.od__ret__w small { display: block; font-size: 12px; font-weight: 700; color: var(--wa-tekst-3); }
.od__ret__w b { display: block; font-size: 17px; margin: 2px 0; }
.od__ret__w span { font-size: 13px; color: var(--wa-tekst-2); }
.od__ret__a { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.od__ret__a form { margin: 0; display: contents; }
.od__ret__a button { height: 48px; border-radius: 12px; border: 0; background: var(--wa-retour); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; width: 100%; }
.od__ret__a button.od__ret__licht { background: #fff; color: var(--wa-retour); box-shadow: inset 0 0 0 1.5px var(--wa-retour-rand); }
.st--ret { background: var(--wa-retour-vlak); color: var(--wa-retour); }

/* Tab Maken naar het design "iPad Binderij" (besluit Roy 2026-10-30). */
.scherm--binderij { grid-template-columns: minmax(0, 1fr) 400px; }
.bd__top { padding: calc(28px + env(safe-area-inset-top)) 28px 14px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.bd__top h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.bd__top p { margin-top: 2px; font-size: 14px; color: var(--wa-tekst-2); }
.bd__sp { flex: 1; }
/* Scanknop en teller samen (Roy 2026-11-04): ze blijven naast elkaar staan, ook als de titel naar een eigen regel gaat. */
.bd__acties { display: flex; align-items: stretch; gap: 12px; }
.bd__scan { position: relative; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 12px 10px 20px; border-radius: 18px; background: var(--wa-donker); color: var(--color-text-inverse); }
.bd__scan__icoon { display: flex; flex-shrink: 0; }
.bd__scan__tekst { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bd__scan__tekst b { font-size: 18px; font-weight: 800; line-height: 1.1; }
.bd__scan__stand { display: flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255, 255, 255, 0.72); }
.bd__scan__stand i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.4); flex-shrink: 0; }
.bd__scan.is-gereed .bd__scan__stand i { background: var(--brand); box-shadow: 0 0 0 3px rgba(120, 200, 80, 0.25); }
/* Het veld ligt onzichtbaar over de hele knop: een tik focust het (inputmode none: geen toetsenbord) en een scanner typt erin. */
.bd__scan__veld { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 18px; background: transparent; color: transparent; caret-color: transparent; opacity: 0; cursor: pointer; font-size: 16px; }
/* Review 10: de standaard focusring (--wa-focus) is op de donkere scanbalk vrijwel onzichtbaar (1,3:1). */
.bd__scan :focus-visible { outline-color: var(--brand); }
/* Review 12: het veld zelf heeft opacity 0 (dus ook zijn outline); de ring op de container is wel zichtbaar. */
.bd__scan:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }
.bd__scan__veld:focus-visible { outline: none; }
.bd__melding { flex-basis: 100%; min-height: 20px; font-size: 15px; font-weight: 700; color: var(--brand-deep); }
.bd__melding.is-fout { color: var(--wa-retour); }
/* Review 9: tijdvak dat vandaag niet meer kan (winkelapp.js, gedeeld.js tijdvakkenBij): een waarschuwing. */
.tv-melding { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--wa-tag-let); color: var(--wa-tag-let-tekst); font-weight: 600; }
.tv-melding:empty { padding: 0; margin: 0; background: none; }   /* niet display none: de live region moet in de boom blijven */
.bd__afgekapt { margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: var(--wa-tag-let); color: var(--wa-tag-let-tekst); font-weight: 600; }
.bd__det__terug { display: none; margin: 0 24px 8px; font-weight: 700; color: var(--brand-deep); }
.bd__prog { display: flex; align-items: center; gap: 14px; background: var(--wa-kaart); border-radius: 14px; padding: 10px 16px; box-shadow: 0 0 0 1px var(--wa-lijn); }
.bd__prog b { font-size: 24px; font-weight: 800; }
.bd__prog span { font-size: 13px; color: var(--wa-tekst-2); line-height: 1.2; }
.bd__prog b span { font-size: inherit; color: inherit; line-height: inherit; }
.bd__ring { width: 44px; height: 44px; }
.bd__ring circle { stroke: var(--wa-ring-leeg); }
.bd__ring [data-bd-ring] { stroke: var(--brand); }
.bd__bar { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 28px 14px; align-items: stretch; }
.bd__dagen, .bd__filters { display: flex; gap: 8px; }
.bd__dagen { background: var(--wa-kaart); border-radius: 12px; box-shadow: 0 0 0 1px var(--wa-lijn); padding: 3px; gap: 0; }
.bd__dagen a { height: 42px; padding: 0 18px; border-radius: 10px; display: flex; flex-direction: column; justify-content: center; line-height: 1.1; font-size: 15px; font-weight: 700; color: var(--wa-tekst-2); text-decoration: none; }
.bd__dagen a small { font-size: 11px; font-weight: 600; opacity: .75; }
.bd__dagen a.is-actief { background: var(--brand-deep); color: #fff; }
.bd__filters a { height: 48px; padding: 0 18px; border-radius: 12px; background: var(--wa-kaart); box-shadow: 0 0 0 1px var(--wa-lijn); font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; color: var(--wa-tekst-2); text-decoration: none; }
.bd__filters a small { font-size: 12px; font-weight: 700; background: var(--wa-bg); border-radius: 999px; padding: 2px 8px; }
.bd__filters a.is-actief { background: var(--wa-donker); color: #fff; box-shadow: none; }
.bd__filters a.is-actief small { background: rgba(255, 255, 255, 0.18); }
.bd__barsep { width: 1px; background: var(--wa-lijn); margin: 6px 6px; }
.bd__rit { margin-bottom: 22px; }
.bd__rit__h { display: flex; align-items: center; gap: 12px; margin: 6px 0 10px; }
.bd__rit__h h2 { font-size: 17px; font-weight: 800; }
.bd__rit__h > span { font-size: 14px; color: var(--wa-tekst-2); }
.bd__rp { margin-left: auto; font-size: 13px; font-weight: 800; padding: 5px 10px; border-radius: 999px; background: var(--wa-kaart); box-shadow: 0 0 0 1px var(--wa-lijn); }
.bd__rp.is-vol { background: var(--wa-tint); color: var(--brand-deep); box-shadow: none; }
.bd__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bd__oc { background: var(--wa-kaart); border-radius: 16px; box-shadow: 0 0 0 1px var(--wa-lijn); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; position: relative; }
.bd__oc.is-sel { box-shadow: 0 0 0 2.5px var(--brand-deep); }
.bd__oc.is-klaar { background: #F6FAF3; }
.bd__oc.is-klaar img { opacity: .55; }
.bd__oc.is-klaar .bd__oc__info b { color: var(--wa-tekst-2); }
.bd__oc__link { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; text-decoration: none; color: inherit; min-width: 0; }
.bd__oc__link img, .bd__oc__geen { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; background: var(--wa-bg); display: flex; align-items: center; justify-content: center; color: var(--wa-rondje); }
.bd__oc__info { min-width: 0; }
/* Twee regels (review 9): op een iPad Air bleef er van de naam 104 px over. */
.bd__oc__info b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 16px; line-height: 1.25; overflow: hidden; }
.bd__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.bd__tag { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--wa-bg); color: var(--wa-tekst-2); }
.bd__tag--maat { background: var(--wa-tag-maat); color: var(--wa-tag-maat-tekst); }
.bd__tag--kaart { background: var(--wa-tag-kaart); color: var(--wa-tag-kaart-tekst); }
.bd__tag--let { background: var(--wa-tag-let); color: var(--wa-tag-let-tekst); }
.bd__tag--klaar { background: var(--wa-tint); color: var(--brand-deep); }
.bd__nr { display: block; font-size: 12px; color: var(--wa-tekst-3); margin-top: 6px; }
.bd__oc__form { margin: 0; }
.bd__chk { width: 64px; height: 64px; border-radius: 16px; border: 2px solid var(--wa-lijn); background: var(--wa-kaart); display: flex; align-items: center; justify-content: center; color: var(--wa-rondje); cursor: pointer; }
.bd__oc.is-klaar .bd__chk { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.bd__leeg { background: var(--wa-kaart); border-radius: 16px; box-shadow: 0 0 0 1px var(--wa-lijn); padding: 40px; text-align: center; color: var(--wa-tekst-2); font-size: 15px; }
.bd__det { background: var(--wa-kaart); border-left: 1px solid var(--wa-lijn); display: flex; flex-direction: column; min-height: 0; padding-top: calc(16px + env(safe-area-inset-top)); }
.bd__det__img { margin: 10px 20px 0; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--wa-bg); }
.bd__det__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bd__oc__geen--groot { width: 100%; height: 100%; border-radius: 0; }
.bd__det__b { flex: 1; overflow: auto; padding: 18px 24px; }
.bd__det__b h2 { font-size: 22px; font-weight: 800; }
.bd__det__sub { margin: 4px 0 16px; font-size: 14px; color: var(--wa-tekst-2); }
.bd__kaart { background: var(--wa-kaartje-vlak); border: 1px solid var(--wa-kaartje-rand); border-radius: 12px; padding: 14px 16px; font-size: 17px; line-height: 1.4; font-style: italic; }
.bd__warn { background: var(--wa-tag-let); border-radius: 12px; padding: 12px 14px; font-size: 15px; color: var(--wa-tag-let-tekst); font-weight: 600; margin-bottom: 12px; }
.bd__det__f { padding: 16px 24px 22px; border-top: 1px solid var(--wa-lijn); }
.bd__det__f form { margin: 0; }
.bd__big { width: 100%; height: 68px; border: 0; border-radius: 16px; background: var(--brand-deep); color: #fff; font-size: 20px; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 12px; }
.bd__big--terug { background: var(--wa-kaart); color: var(--wa-tekst); box-shadow: inset 0 0 0 1.5px var(--wa-lijn); font-size: 17px; height: 56px; }
.bd__done { display: flex; align-items: center; gap: 10px; justify-content: center; font-size: 14px; color: var(--brand-deep); font-weight: 700; margin-bottom: 12px; }
.bd__det__leeg { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--wa-tekst-3); padding: 24px; text-align: center; }

/* Binderij op kleinere iPads (review 9, gemeten op zes maten): onder 1280 px een kolom kaarten en een smallere
   detailkolom; onder 1024 px (staand) lijst of detail, zoals Orders. Het scanveld (in .bd__top) blijft in beide. */
@media (max-width: 1279px) {
  .scherm--binderij { grid-template-columns: minmax(0, 1fr) var(--wa-zij); }
  .bd__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1023px), (orientation: portrait) and (max-width: 1100px) {
  .scherm--binderij { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .scherm--binderij:not(.is-detail) .bd__det { display: none; }
  .scherm--binderij.is-detail .bd__bar, .scherm--binderij.is-detail .bd__scroll { display: none; }
  .scherm--binderij.is-detail .bd__det { border-left: 0; border-top: 1px solid var(--wa-lijn); padding-top: 12px; }
  .bd__det__terug { display: inline-block; }
  .bd__top { padding-left: 16px; padding-right: 16px; }
  .bd__acties { flex: 1 1 100%; }
  .bd__scan { flex: 1; }
  .bd__bar { padding-left: 16px; padding-right: 16px; }
  .bd__scroll { padding-left: 16px; padding-right: 16px; }
}

/* ---------- Overzicht: het dashboard van de winkel (design Roy 2026-11-04) ---------- */
.ov__top { padding: calc(28px + env(safe-area-inset-top)) 28px 14px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ov__top h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.ov__top p { margin-top: 2px; font-size: 14px; color: var(--wa-tekst-2); }
.ov__nieuw { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 14px; background: var(--brand-deep); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; }
.ov__body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 28px calc(28px + env(safe-area-inset-bottom)); -webkit-overflow-scrolling: touch; }
.ov__rit .rs { margin-bottom: 0; }
.ov__live { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; vertical-align: middle; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-deep); }
.ov__live i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--wa-focus); }
/* Niet live (review 12): kleur EN tekst (de stand staat in de span), nooit alleen kleur. */
.ov__live.is-uit { color: var(--wa-rit-nee); }
.ov__live.is-uit i { background: var(--wa-rit-nee-stip); box-shadow: none; }
.ov__leeg { margin: 0; font-size: 14px; color: var(--wa-tekst-3); }
.ov__tegels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.ov__tegel { background: var(--wa-kaart); border-radius: 18px; box-shadow: 0 0 0 1px var(--wa-lijn); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.ov__tegel span { font-size: 13px; font-weight: 600; color: var(--wa-tekst-2); }
.ov__tegel b { font-size: 32px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
/* UX 2026-11-06 (rollend getal, winkelapp.js rolTellers): elk cijfer is een strip van 0 tot 9 die naar zijn stand rolt. */
.wa-roll { display: inline-flex; line-height: 1; height: 1.15em; align-items: center; }
.wa-roll__digit { display: inline-block; height: 1em; overflow: hidden; }
.wa-roll__strip { display: flex; flex-direction: column; transition: transform 520ms cubic-bezier(.22, 1, .36, 1); }
.wa-roll__strip > span { display: block; height: 1em; line-height: 1; }
.ov__tegel small { font-size: 13px; color: var(--wa-tekst-3); }
.ov__tegel--let { background: var(--wa-tag-let); box-shadow: 0 0 0 1px var(--wa-retour-rand); }
.ov__tegel--let small, .ov__tegel--let span { color: var(--wa-tag-let-tekst); }
.ov__twee { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ov__alles { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--brand-deep); text-decoration: none; }
.ov__lijst { list-style: none; margin: 0; padding: 0; }
.ov__lijst li + li { border-top: 1px solid var(--wa-lijn-licht); }
.ov__lijst a { display: flex; align-items: center; gap: 12px; padding: 10px 0; min-height: 56px; color: inherit; text-decoration: none; }
.ov__lijst img, .ov__geen { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.ov__geen { display: flex; align-items: center; justify-content: center; background: var(--wa-tag-maat); color: var(--wa-tag-maat-tekst); }
.ov__wat { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ov__wat b { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov__wat small { font-size: 13px; color: var(--wa-tekst-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov__tijd { font-size: 15px; font-weight: 800; color: var(--wa-tekst); }
.ov__ret { background: var(--wa-retour-vlak); box-shadow: 0 0 0 1px var(--wa-retour-rand); }
.ov__ret h2 { color: var(--wa-retour); }
.ov__ret__r { display: flex; align-items: center; gap: 12px; }
.ov__ret__r + .ov__ret__r { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--wa-retour-rand); }
.ov__ret__r a { flex: 1; min-width: 0; display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.ov__ret__r a b { font-size: 15px; font-weight: 700; }
.ov__ret__r a small { font-size: 13px; color: var(--wa-tekst-2); }
.ov__ret__r button { height: 44px; padding: 0 16px; border-radius: 12px; border: 0; background: var(--wa-retour); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; }
@media (max-width: 1023px), (orientation: portrait) and (max-width: 1100px) {
  .ov__top, .ov__body { padding-left: 16px; padding-right: 16px; }
  .ov__tegels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov__twee { grid-template-columns: minmax(0, 1fr); }
}

/* UX 2026-11-06 (pull to refresh, gedeeld.js rb.pullToRefresh): naar beneden trekken bovenaan een lijst ververst de pagina;
   de lijst volgt de vinger met weerstand, de ring vult en draait mee met de trek. Niet terwijl er scans of invoer openstaan. */
.rb-pull { position: fixed; top: calc(12px + env(safe-area-inset-top)); left: 50%; width: 28px; height: 28px; margin-left: -14px; z-index: 60; border-radius: 50%; border: 3px solid var(--brand-deep); border-right-color: transparent; opacity: 0; pointer-events: none; }
.rb-pull.is-actief { opacity: var(--pull, 0); transform: rotate(calc(var(--pull, 0) * 270deg)); }
.rb-pull.is-bezig { opacity: 1; animation: rb-pull-draai 700ms linear infinite; }
@keyframes rb-pull-draai { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.is-pull-loslaten { transition: transform 300ms cubic-bezier(.22, 1, .36, 1); }

/* Review 14 (B17): pull to refresh onder reduced motion (na de regels hierboven, anders wint hun transition): de lijst
   springt terug zonder te glijden, de ring draait langzamer (hij zegt dat er iets gebeurt). */
@media (prefers-reduced-motion: reduce) {
  .is-pull-loslaten { transition: none; }
  .rb-pull.is-bezig { animation-duration: 1.6s; }
}

/* Binderij-app (Roy 2026-11-13, eigen subdomein): geen rail, alleen het Maken-scherm; kop met logo, "Binderij", winkel en
   datum; de dagknoppen tonen de datum in plaats van het aantal. */
.wa-app--binderij { grid-template-columns: minmax(0, 1fr); }
.bd__kop { display: flex; align-items: center; gap: 14px; }
.bd__logo { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex: none; }
.bd__uit { margin-left: auto; }
.bd__uit button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--wa-tekst-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.bd__uit button:hover, .bd__uit button:focus-visible { background: var(--wa-kaart); color: var(--brand-deep); }
/* Een gevinkte kaart die uit het filter gaat (winkelapp.js verwijderKaart): niet meer aan te tikken tijdens het vervagen. */
.bd__oc.is-weg { pointer-events: none; }
