/* Bonjour: de stijl van de app (Guido, 28 november 2026).
   Basis: de huisstijl van Vivecommerce (Poppins, Assistant, navy en blauw). De lettertypes staan bij de app zelf,
   zodat er bij het inloggen niets van een andere site wordt geladen.
   Regel van Kingfisher: per scherm één gevulde knop, de tweede keus heeft een rand.
   Er staan geen stijlen in de HTML zelf: de app draait met een strikte Content-Security-Policy. */
@font-face { font-family: "Assistant"; font-weight: 400; font-display: swap; src: url("lettertypes/assistant-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Assistant"; font-weight: 600; font-display: swap; src: url("lettertypes/assistant-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Assistant"; font-weight: 700; font-display: swap; src: url("lettertypes/assistant-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("lettertypes/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("lettertypes/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --ink: #10242e;
  --navy: #023a51;
  --navy-licht: #0a4a66;
  --blauw: #0e6ace;
  --blauw-ink: #0b55a6;
  --grond: #edf1f3;
  --lijn: #d3dce1;
  --rand: #8a9aa3;
  --zacht: #4b5d67;
  --geel: #ffd24d;
  --turquoise: #36c9c6;
  --groen: #17734a;
  --groen-zacht: #dcf2e6;
  --rood: #a8261f;
  --rood-zacht: #fde8e6;
  --tekst: "Assistant", system-ui, -apple-system, "Segoe UI", sans-serif;
  --kop: "Poppins", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #dbe3e8; color: var(--ink); font: 400 16px/1.5 var(--tekst); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }

.scherm { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 520px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; background: var(--grond); }
.scherm.is-navy { background: var(--navy); }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-family: var(--kop); font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
a { color: var(--blauw-ink); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid rgba(14, 106, 206, .55); outline-offset: 2px; }
.h1 { font-size: 26px; line-height: 1.2; }
.h2 { font-size: 19px; line-height: 1.3; }
.h3 { font-size: 16px; line-height: 1.35; }
.label { font: 500 11.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--zacht); }
.bron { font: 500 11px/1.5 var(--mono); letter-spacing: .02em; color: var(--zacht); }
.zacht { color: var(--zacht); }
.klein { font-size: 14px; line-height: 1.45; }
.vet { font-weight: 700; }
.getal { font: 600 40px/1 var(--kop); letter-spacing: -.02em; }
.midden { text-align: center; }
.doorgestreept { text-decoration: line-through; }
.voorbeeld { white-space: pre-line; overflow-wrap: anywhere; }

.stapel { display: flex; flex-direction: column; }
.rij { display: flex; align-items: center; }
.tussen { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.boven { align-items: flex-start; }
.onder { align-items: flex-end; }
.groei { flex: 1; min-width: 0; }
.g2 { gap: 2px; } .g4 { gap: 4px; } .g6 { gap: 6px; } .g8 { gap: 8px; } .g10 { gap: 10px; } .g12 { gap: 12px; } .g14 { gap: 14px; } .g16 { gap: 16px; } .g20 { gap: 20px; }
.mt6 { margin-top: 6px; } .mt10 { margin-top: 10px; } .mt16 { margin-top: 16px; }
.zelf-links { align-self: flex-start; }
.zelf-midden { align-self: center; }
.inhoud { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.inhoud.is-strak { padding-top: 4px; gap: 16px; }
.laden { padding: 48px 20px; text-align: center; color: var(--zacht); }
.lijn-boven { padding-top: 12px; border-top: 1px solid var(--lijn); }
.streep-boven { padding-top: 12px; border-top: 2px dashed #c3ced4; }

/* Koppen en balken */
.kop { background: var(--navy); color: #fff; padding: 14px 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.kop.is-rij { flex-direction: row; align-items: center; padding-top: 20px; }
.kop .label, .kaart.is-navy .label, .kaart.is-navy .bron { color: #b9d0da; }
.kop .zacht, .kaart.is-navy .zacht { color: #cfe0e7; }
.kop-blok { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--navy-licht); }
.kop-licht { display: flex; flex-direction: column; gap: 14px; padding: 14px 20px 0; }
/* De balk bovenaan blijft in beeld bij het scrollen: terug kan altijd. */
.balk { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 56px; padding: calc(6px + env(safe-area-inset-top)) 12px 6px; background: var(--grond); }
.is-gescrold .balk { box-shadow: 0 1px 0 var(--lijn), 0 8px 14px -12px rgba(16, 36, 46, .45); }
.balk .rechts { display: flex; align-items: center; gap: 4px; min-width: 0; }
.terug.is-verder { flex-direction: row-reverse; }
.terug.is-verder, a.terug.is-verder, a.terug.is-verder:hover { color: var(--blauw-ink); }
.balk > :last-child:not(:first-child) { margin-right: 8px; }
.terug { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 8px; border: 0; background: none; font: 600 16px/1.2 var(--tekst); text-decoration: none; cursor: pointer; }
.terug, a.terug, a.terug:hover { color: var(--ink); }
.avatar { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: #fff; font: 600 17px/1 var(--kop); text-decoration: none; }
.avatar.is-groot { width: 56px; height: 56px; font-size: 22px; }
a.avatar, a.avatar:hover, .avatar { color: var(--navy); }
.welkom { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: 28px 24px; color: #fff; }
.welkom .zacht { color: #cfe0e7; }
.merk { display: flex; align-items: center; gap: 12px; font: 600 30px/1 var(--kop); letter-spacing: -.02em; }
/* Het teken: de bel op een turquoise tegel (Guido, 29 november 2026). Geel blijft de kleur voor wat aandacht vraagt. */
.merk-teken { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--turquoise); color: var(--navy); }
.merk-teken .bel { display: block; width: 100%; height: 100%; fill: currentColor; }
/* De bel bovenaan Vandaag, naast de begroeting (Guido, 30 november 2026: wie ingelogd is, zag de bel nergens). */
.groet { display: flex; align-items: center; gap: 12px; }
.groet > .stapel { min-width: 0; }
.blad { display: flex; flex-direction: column; gap: 14px; padding: 24px 20px calc(16px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; background: #fff; }
/* Het blok bovenaan het inlogscherm voor wie nog geen account heeft. */
.nieuw { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 14px; background: #dfeaf0; color: var(--ink); line-height: 1.45; }
.scheiding { display: flex; align-items: center; gap: 12px; color: var(--zacht); font-size: 14px; }
.scheiding::before, .scheiding::after { content: ""; flex: 1; height: 1px; background: var(--lijn); }

/* De zaak: een chip, of een keuzelijst voor wie meer zaken ziet */
.zaak { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 2px 12px; border-radius: 999px; background: #231f20; color: #fff; font: 700 14px/1.2 var(--tekst); white-space: nowrap; }
.zaak::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #c25b59; }
.zaak.zaak-zoet-of-zout { background-color: #123f45; }
.zaak.zaak-zoet-of-zout::before { background: #f1cf8f; }
.zaak.zaak-kingfisher { background-color: #4b5d67; }
.zaak.zaak-kingfisher::before { background: var(--geel); }
/* De kleur van een zaak zet hierboven alleen de achtergrondkleur: het pijltje hieronder blijft dan staan, bij elke zaak. */
select.zaak { min-height: 44px; padding: 0 34px 0 14px; border: 0; cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 18px; }

/* Iconen */
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic.is-klein { width: 18px; height: 18px; }
.ic.is-groot { width: 28px; height: 28px; }
.ic.is-blauw { color: var(--blauw-ink); }

/* Knoppen */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; padding: 8px 20px;
  border: 2px solid var(--blauw); border-radius: 12px; background: var(--blauw);
  font: 700 16px/1.2 var(--tekst); text-align: center; text-decoration: none; cursor: pointer;
}
.btn, a.btn, a.btn:hover { color: #fff; }
.btn:hover { background: var(--blauw-ink); border-color: var(--blauw-ink); }
.btn.is-rand { background: transparent; border-color: var(--navy); }
.btn.is-rand, a.btn.is-rand, a.btn.is-rand:hover { color: var(--navy); }
.btn.is-rand:hover { background: rgba(2, 58, 81, .07); }
.btn.is-wit { background: #fff; border-color: #fff; }
.btn.is-wit, a.btn.is-wit, a.btn.is-wit:hover { color: var(--navy); }
.btn.is-gevaar { background: transparent; border-color: var(--rood); color: var(--rood); }
.kaart.is-navy .btn.is-rand { border-color: #fff; }
.kaart.is-navy .btn.is-rand, .kaart.is-navy a.btn.is-rand, .kaart.is-navy a.btn.is-rand:hover { color: #fff; }
.kaart.is-navy .btn.is-rand:hover { background: rgba(255, 255, 255, .12); }
.btn[disabled], .btn.is-uit, .btn.is-uit:hover { background: #c9d3d9; border-color: #c9d3d9; color: #33444e; cursor: default; }
.btn.is-bezig { opacity: .7; cursor: progress; }
.link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 700; }
.tekstknop { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--blauw-ink); font: 700 16px/1.25 var(--tekst); text-align: left; text-decoration: underline; cursor: pointer; }
.tekstknop.is-klein { min-height: 28px; font-size: 14px; }
.tekstknop.is-gevaar { color: var(--rood); }

/* Chips en keuzes */
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 2px 10px; border-radius: 999px; background: #e1e8ec; color: var(--ink); font: 600 13px/1.3 var(--tekst); white-space: nowrap; }
.chip.is-geel { background: var(--geel); }
.chip.is-groen { background: var(--groen-zacht); color: #0f5a39; }
.chip.is-rood { background: var(--rood-zacht); color: var(--rood); }
.keuzes { display: flex; flex-wrap: wrap; gap: 8px; }
.keuze { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 4px 14px; border: 1.5px solid var(--rand); border-radius: 10px; background: #fff; font: 600 15px/1.2 var(--tekst); text-decoration: none; cursor: pointer; }
.keuze, a.keuze, a.keuze:hover { color: var(--ink); }
.keuze:hover { border-color: var(--navy); }
/* Bij toewijzen staat onder de naam bij wie iemand hoort. */
.keuze small { font-weight: 400; font-size: 13px; opacity: .72; }
.keuze.is-aan, .keuze.is-aan:hover, .keuze[aria-pressed="true"], .keuze[aria-checked="true"] { border-color: var(--navy); background: var(--navy); color: #fff; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: #dbe3e8; }
.seg a, .seg button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 6px; border: 0; border-radius: 9px; background: transparent; font: 600 15px/1.2 var(--tekst); text-decoration: none; cursor: pointer; }
.seg a, .seg a:hover, .seg button { color: var(--ink); }
.seg .is-aan, .seg [aria-pressed="true"] { background: #fff; box-shadow: 0 1px 2px rgba(2, 58, 81, .25); }
.seg.is-klein a, .seg.is-klein button { font-size: 14px; }

/* Invoer */
.veld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.veld label, .veldlabel, legend.veldlabel { font-weight: 600; font-size: 15px; line-height: 1.4; }
.veld label.klein { font-size: 14px; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0 0 6px; }
.invoer { width: 100%; min-height: 52px; padding: 0 14px; border: 1.5px solid var(--rand); border-radius: 10px; background: #fff; color: var(--ink); font: 400 16px/1.3 var(--tekst); }
.invoer::placeholder { color: #5c6d76; opacity: 1; }
textarea.invoer { padding: 12px 14px; min-height: 96px; resize: vertical; }
textarea.invoer.is-hoog { min-height: 220px; }
textarea.invoer.is-kaal { border: 0; padding: 4px; min-height: 84px; resize: none; }
.invoer:focus { outline: 3px solid rgba(14, 106, 206, .35); outline-offset: 0; border-color: var(--blauw); }
.invoer.is-code { font: 500 26px/1 var(--mono); letter-spacing: .3em; text-align: center; min-height: 64px; }
.invoer.is-mono { font-family: var(--mono); letter-spacing: .08em; }
select.invoer { appearance: auto; }
.veldrij { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.veldrij.is-drie { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fout { color: var(--rood); font-weight: 600; }
.schakel { position: relative; flex: none; width: 52px; height: 32px; padding: 0; border: 0; border-radius: 999px; background: #7d8e97; cursor: pointer; }
.schakel::before { content: ""; position: absolute; inset: -6px; }
.schakel::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: left .12s; }
.schakel[aria-checked="true"] { background: var(--groen); }
.schakel[aria-checked="true"]::after { left: 23px; }
.rondje-keuze { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--rand); background: #fff; }
[aria-checked="true"] > .rondje-keuze { border: 7px solid var(--navy); }

/* Kaarten en lijsten */
.kaart { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 14px; background: #fff; }
.kaart.is-navy { background: var(--navy); color: #fff; }
.kaart.is-gekozen { box-shadow: inset 0 0 0 2px var(--blauw); }
/* Een beantwoorde vraag: een groene rand, zodat je in één oogopslag ziet dat hij binnen is. */
.kaart.is-beantwoord { box-shadow: inset 0 0 0 2px var(--groen-zacht); }
.kaart.is-beantwoord .bericht { background: var(--groen-zacht); border-radius: 12px; }
.kaart.is-smal { padding: 12px; gap: 8px; }
.lijst { display: flex; flex-direction: column; border-radius: 14px; background: #fff; overflow: hidden; }
.lijst > * { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 16px; border: 0; border-top: 1px solid var(--lijn); background: #fff; color: var(--ink); font: inherit; text-align: left; text-decoration: none; }
.lijst > *:first-child { border-top: 0; }
.lijst a, .lijst a:hover, .lijst button { color: var(--ink); }
.lijst button, .lijst a { cursor: pointer; }
.lijst .blauw { color: var(--blauw-ink); font-weight: 700; }
.vink { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--groen-zacht); color: #0f5a39; }
.melding { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 15px; line-height: 1.45; }
.melding.is-goed { background: var(--groen-zacht); color: #0c4a2f; }
.melding.is-fout { background: var(--rood-zacht); color: #7d1a15; }
.melding.is-info { background: #dfeaf0; color: var(--ink); }
.melding.is-stapel { flex-direction: column; gap: 4px; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; font: 500 17px/1.6 var(--mono); }
.qr { align-self: center; padding: 10px; border-radius: 12px; background: #fff; border: 1px solid var(--lijn); line-height: 0; }
.qr svg { display: block; width: 176px; height: 176px; }
.sleutel { font: 500 15px/1.5 var(--mono); letter-spacing: .06em; overflow-wrap: anywhere; }

/* De bon */
.bon { position: relative; display: flex; flex-direction: column; gap: 8px; margin-top: 6px; padding: 14px 16px 16px; border-radius: 0 0 14px 14px; background: #fff; filter: drop-shadow(0 6px 8px rgba(2, 58, 81, .10)); }
.bon::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 6px; background: radial-gradient(circle at 6px 0, transparent 4.4px, #fff 5px) 50% 0 / 12px 6px repeat-x; }
.bonnr { font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--zacht); }
.bon-stub { position: relative; display: flex; flex-direction: column; gap: 8px; margin: 8px -16px 0; padding: 14px 16px 0; border-top: 2px dashed #c3ced4; }
.bon-stub::before, .bon-stub::after { content: ""; position: absolute; top: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--grond); }
.bon-stub::before { left: -8px; }
.bon-stub::after { right: -8px; }
.bon-titel { color: inherit; text-decoration: none; }
a.bon-titel:hover { color: var(--blauw-ink); }
.regels { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; margin: 0; }
.regels dt { color: var(--zacht); }
.regels dd { margin: 0; font-weight: 600; text-align: right; }
.bijlagen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bijlage { position: relative; display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #dfe6ea; color: var(--ink); text-decoration: none; }
.bijlage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bijlage.is-bestand { display: grid; place-items: center; padding: 8px; font-size: 13px; font-weight: 600; text-align: center; overflow-wrap: anywhere; }
.bijlage button { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(16, 36, 46, .8); color: #fff; cursor: pointer; }
.berichten { display: flex; flex-direction: column; gap: 10px; }
.bericht { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 14px 14px 14px 4px; background: #fff; }
.bericht.is-mij { border-radius: 14px 14px 4px 14px; background: #dfeaf0; }
.bericht.is-status { padding: 4px 0; background: none; color: var(--zacht); font-size: 14px; }
.bericht .wie { font-size: 13px; color: var(--zacht); }

/* Tegels voor een nieuwe bon */
.tegels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tegel { display: flex; flex-direction: column; gap: 6px; min-height: 104px; padding: 14px; border: 0; border-radius: 14px; background: #fff; font: 700 16px/1.25 var(--tekst); text-align: left; text-decoration: none; cursor: pointer; }
.tegel, a.tegel, a.tegel:hover { color: var(--ink); }
.tegel:hover { box-shadow: inset 0 0 0 2px var(--navy); }
.tegel small { font-weight: 400; font-size: 13.5px; line-height: 1.35; color: var(--zacht); }
.tegel .ic { color: var(--blauw-ink); }

/* De zaal: een stoel per stip */
.zaal { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 5px; }
.zaal.is-mini { grid-template-columns: repeat(25, minmax(0, 1fr)); gap: 3px; }
.stoel { aspect-ratio: 1; border: 1.5px solid #7fa3b3; border-radius: 50%; }
.stoel.is-bezet { background: var(--geel); border-color: var(--geel); }
.balkje { display: flex; height: 16px; border-radius: 8px; overflow: hidden; background: #c9d6dd; }
.balkje > span { background: var(--navy); }
.balkje.is-doel > span { background: var(--groen); }

/* Tijdlijn van een bon */
.stap { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding-bottom: 16px; }
.stap::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--lijn); }
.stap:last-child { padding-bottom: 0; }
.stap:last-child::before { display: none; }
.bol { display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid var(--rand); border-radius: 50%; background: #fff; color: var(--zacht); }
.stap.is-klaar .bol { background: var(--groen); border-color: var(--groen); color: #fff; }
.stap.is-nu .bol { background: var(--geel); border-color: var(--geel); color: var(--ink); }
/* Dezelfde stappen met een cijfer erin: de uitleg bij Zet op beginscherm. */
.bol.is-cijfer { border-color: var(--navy); color: var(--navy); font: 700 14px/1 var(--tekst); }

/* Navigatie onderaan */
.nav { position: sticky; bottom: 0; z-index: 5; margin-top: auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; padding: 6px 6px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--lijn); background: #fff; }
.nav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; min-height: 56px; font: 600 12.5px/1.2 var(--tekst); text-decoration: none; }
.nav a, .nav a:hover { color: var(--zacht); }
.nav a[aria-current="page"], .nav a[aria-current="page"]:hover { color: var(--blauw-ink); }
.nav a.is-plus, .nav a.is-plus:hover { color: var(--ink); }
.nav a.is-plus[aria-current="page"], .nav a.is-plus[aria-current="page"]:hover { color: var(--blauw-ink); }
/* Onderaan een bon: door naar de volgende. */
.volgende { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #fff; text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--rand); }
.volgende, a.volgende, a.volgende:hover { color: var(--ink); }
.volgende > span:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.volgende .ic { flex: none; color: var(--blauw-ink); }
.nav .rondje { display: grid; place-items: center; width: 52px; height: 52px; margin-top: -24px; border-radius: 50%; background: var(--geel); color: var(--navy); box-shadow: 0 0 0 5px #fff; }
.nav .teller { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--rood); color: #fff; font: 700 12px/1.5 var(--tekst); text-align: center; }

/* Korte melding onderaan */
#toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 20; transform: translateX(-50%); width: max-content; max-width: min(92vw, 480px); padding: 12px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 600; text-align: center; box-shadow: 0 8px 24px rgba(16, 36, 46, .3); }
#toast:empty { display: none; }
#toast.is-fout { background: var(--rood); }

@media (min-width: 560px) {
  body { padding: 24px 0; }
  .scherm { min-height: calc(100vh - 48px); border-radius: 18px; overflow: clip; box-shadow: 0 10px 40px rgba(2, 58, 81, .18); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
/* Bij wie en wanneer op een bon: dicht een regel, open het formulier (Guido, 28 november 2026). */
.uitklap > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; list-style: none; cursor: pointer; }
.uitklap > summary::-webkit-details-marker { display: none; }
.uitklap[open] > summary .tekstknop { visibility: hidden; }

/* Links bij een bon en in een tekst (Guido, 28 november 2026) */
.link-in { color: var(--blauw-ink); font-weight: 600; text-decoration: underline; overflow-wrap: anywhere; }
.linklijst { display: grid; gap: 8px; }
.linktegel { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border: 1px solid #c9d3d9; border-radius: 12px; background: #fff; color: var(--ink); text-decoration: none; }
.linktegel > .stapel { flex: 1; min-width: 0; }
.linktegel .vet { overflow-wrap: anywhere; color: var(--blauw-ink); }
.linktegel:hover, .linktegel:focus-visible { border-color: var(--blauw); }
.linkrijen { border: 0; padding: 0; margin: 0; }
.linkrij + .linkrij:not([hidden]) { padding-top: 8px; border-top: 1px solid #e3e9ec; }
.linkrij .rij > .invoer { flex: 1; min-width: 0; }

/* --- 29 november 2026: zoeken, één opbouw voor elke bon, en knoppen die laten zien wat er gebeurt (Guido) --- */

/* De kleur van een zaak, als stip in een lijst of filter. De chip zelf (.zaak) staat hierboven. */
.zaak-thoms { --stip: #c25b59; }
.zaak-zoet-of-zout { --stip: #1e6f78; }
.zaak-bar-otter { --stip: #ad841f; }
.zaak-kingfisher { --stip: #4b5d67; }
/* "Alle zaken" in de keuze bovenaan Vandaag: geen kleur van één zaak. */
select.zaak.zaak-alle { background-color: var(--navy-licht); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.zaak.zaak-bar-otter { background-color: #473729; }
.zaak.zaak-bar-otter::before { background: #f5efe0; }
.zaakstip { display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; }
.zaakstip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--stip, #4b5d67); }

/* Zoeken in de bonnen */
.zoekveld { position: relative; }
.zoekveld > .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--zacht); pointer-events: none; }
.zoekveld .invoer { padding: 0 48px 0 44px; -webkit-appearance: none; appearance: none; }
.zoekveld .invoer::-webkit-search-cancel-button, .zoekveld .invoer::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.zoek-wis { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--zacht); cursor: pointer; }
.zoek-wis:hover { color: var(--ink); }
mark { padding: 0 1px; border-radius: 3px; background: #ffe9a6; color: inherit; }
.treffer { display: flex; align-items: flex-start; gap: 6px; padding: 8px 10px; border-radius: 8px; background: #eef2f4; color: var(--ink); overflow-wrap: anywhere; }
.treffer .ic { margin-top: 1px; color: var(--zacht); }

/* Kiezen van een zaak: overal dezelfde keuzelijst linksboven (Vandaag, Bonnen en Inzichten), nooit een rij knoppen
   (Guido, 29 november 2026: een rij die opzij schoof, bewoog onder de vinger; en twee manieren naast elkaar is er één te veel). */
[data-zaakbalk] { min-height: 44px; gap: 8px; }

/* Tabbladen met het aantal eronder */
.seg.is-teller a { flex-direction: column; gap: 1px; min-height: 50px; font-size: 14.5px; }
.seg.is-teller small { font: 500 11.5px/1 var(--mono); color: var(--zacht); }
.seg.is-teller .is-aan small { color: var(--blauw-ink); }

/* Een bon in een lijst: de hele kaart opent de bon, de tekst is hooguit twee regels */
.bon-titel::after { content: ""; position: absolute; inset: 0; }
.bon-stub { z-index: 1; }
/* Een titel in een lijst is hooguit drie regels; de hele titel staat op de bon zelf. */
.bon .h2 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
/* Een bon die niet bij jou ligt: dezelfde opbouw, maar korter. */
.bon.is-kort { gap: 6px; padding-bottom: 10px; }
.bon.is-kort .h2 { font-size: 17px; }
.bon.is-kort .bon-stub { margin-top: 4px; padding-top: 8px; }
.bon.is-kort .bon-stub .link { min-height: 36px; }
/* Op zo'n korte kaart valt niets in te vullen: ook een tik op de regel onderaan opent de bon. */
.bon.is-kort .bon-stub { pointer-events: none; }
.bon.is-kort .bon-stub a { pointer-events: auto; }
.getal { white-space: nowrap; }
.bon-tekst { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }

/* Op de bon: de regel onder de titel zegt bij wie hij ligt */
.nu { align-self: stretch; display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 10px; background: #e1e8ec; font-size: 15px; line-height: 1.4; }
.nu .ic { margin-top: 2px; }
.nu.is-mij { background: var(--geel); }
.nu.is-af { background: var(--groen-zacht); color: #0c4a2f; }

/* Knoppen: een kleine tekstknop is ruimer aan te tikken dan hij eruitziet, een vinkje ook */
.tekstknop.is-klein { position: relative; }
.tekstknop.is-klein::after { content: ""; position: absolute; inset: -8px -4px; }
.vinkrij { min-height: 44px; cursor: pointer; }
input[type="checkbox"] { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--navy); }
/* Een knop die om een tweede tik vraagt */
.tekstknop.is-zeker { padding: 6px 12px; border-radius: 8px; background: var(--rood-zacht); color: var(--rood); text-decoration: none; }
.btn.is-zeker { background: var(--rood); border-color: var(--rood); color: #fff; }
/* Bezig: een draaiend rondje in de knop, en bovenaan een balkje als een scherm op zich laat wachten */
.btn.is-bezig::after { content: ""; flex: none; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: draai .7s linear infinite; }
.is-ladend body::before { content: ""; position: fixed; top: 0; left: 0; right: 0; z-index: 30; height: 3px; background: linear-gradient(90deg, transparent, var(--blauw), transparent) 0 0 / 45% 100% no-repeat #c9d6dd; animation: laad 1.1s ease-in-out infinite; }
@keyframes draai { to { transform: rotate(360deg); } }
@keyframes laad { from { background-position: -80% 0; } to { background-position: 180% 0; } }
#toast { cursor: pointer; }

/* Inzichten: de doelen bij elkaar in één kaart */
.doelrij { display: flex; flex-direction: column; gap: 5px; padding-top: 10px; border-top: 1px solid var(--lijn); }
.doelrij:first-of-type { padding-top: 0; border-top: 0; }
.doelrij .balkje { height: 8px; }
.rechts-vast { flex: none; text-align: right; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .btn.is-bezig::after, .is-ladend body::before { animation: none; }
}

/* --- 29 november 2026: nieuw sinds je laatste bezoek --- */
/* Het label heet .nieuw-label: .nieuw is al het blok voor een nieuw account op het inlogscherm, en twee regels met
   dezelfde naam maakten van dat blok een blauw rondje met afgesneden tekst (gevonden op 29 november 2026). */
.nieuw-label { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 999px; background: var(--blauw); color: #fff; font: 700 11.5px/1.5 var(--tekst); letter-spacing: .02em; text-transform: none; vertical-align: 1px; }
.seg a { position: relative; }
.tab-nieuw { position: absolute; top: 6px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--blauw); }
.nieuw-lijn { display: flex; align-items: center; gap: 10px; color: var(--blauw-ink); font: 700 13px/1.4 var(--tekst); }
.nieuw-lijn::before, .nieuw-lijn::after { content: ""; flex: 1; height: 1.5px; background: var(--blauw); opacity: .45; }
