/* Bind'r Voorraad — huisstijl uit het logo: perzik, zeeblauw met stiksel, boter en bruine inkt.
   Titels in Fredoka (rond, zoals de letters van het logo), de rest in de systeemletter. */

/* Fredoka staat zelf in vendor/ (geen Google Fonts: zo gaat er geen IP-adres naar Google, zie de privacyverklaring). */
@font-face {
  font-family: "Fredoka";
  src: url("vendor/fredoka/fredoka-latin.woff") format("woff");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --perzik: #fcebd7;
  --perzik-rgb: 252 235 215;  /* dezelfde kleur voor matglas (rgb(var(--perzik-rgb) / .86)) */
  --omgeving: var(--inkt);    /* de pil bovenaan; een andere omgeving kleurt mee (zie onderaan) */
  --room: #fff8ef;
  --wit: #ffffff;
  --inkt: #3b2a12;
  --inkt-2: #6e5a3f;
  --inkt-3: #7d6a52;
  --lijn: #ecd9bf;
  --zee: #4c7f87;
  --zee-donker: #3c6a72;
  --zee-licht: #dcebea;
  --boter: #f3c981;
  --boter-licht: #fbe9c4;
  --hart: #e2513f;
  --hart-licht: #fde3dc;
  --hart-inkt: #b83423;   /* prijs-tekst op het lichte hartje: genoeg contrast */
  --zee-knop: #467780;    /* knoppen: wit erop haalt 5:1 */
  --groen: #4f8a5b;
  --schaduw: 0 1px 2px rgba(59, 42, 18, .06), 0 6px 18px rgba(59, 42, 18, .07);
  --schaduw-hoog: 0 -8px 40px rgba(59, 42, 18, .18);
  --rond: 18px;
  --rond-klein: 12px;
  --veer: cubic-bezier(.2, .9, .25, 1.15);
  --zacht-uit: cubic-bezier(.2, .8, .2, 1);
  --titel: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --tekst: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --boven: env(safe-area-inset-top, 0px);
  --onder: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--perzik);
  color: var(--inkt);
  font: 16px/1.4 var(--tekst);
  overscroll-behavior-y: none;
}
body.geen-scroll { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { opacity: .55; cursor: default; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--titel); font-weight: 600; margin: 0; letter-spacing: .005em; }
:focus-visible { outline: 3px solid var(--zee-donker); outline-offset: 2px; border-radius: 8px; }

.zacht { color: var(--inkt-2); }
.klein { font-size: 13px; }
.center { text-align: center; }
.fouttekst { color: var(--hart); font-size: 14px; margin: 4px 0; }
.status { color: var(--inkt-2); font-size: 14px; }
.code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 600; letter-spacing: .04em; }
.naam-origineel { color: var(--inkt-2); font-size: 14px; }

/* ── Opstart en login ─────────────────────────────────────────────────── */
.splash { min-height: 100vh; min-height: 100dvh; display: grid; place-content: center; gap: 24px; justify-items: center; }
.splash img { animation: dobber 2.4s ease-in-out infinite; }
.laadbalk { width: 120px; height: 6px; border-radius: 3px; background: var(--lijn); overflow: hidden; }
.laadbalk span { display: block; height: 100%; width: 40%; border-radius: 3px; background: var(--zee); animation: laad 1.1s ease-in-out infinite; }
@keyframes laad { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@keyframes dobber { 50% { transform: translateY(-6px) rotate(-1deg); } }

.login { min-height: 100vh; min-height: 100dvh; max-width: 420px; margin: 0 auto; padding: calc(32px + var(--boven)) 24px 32px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.login-logo img { width: 240px; margin: 8px 0 -8px; }
.login-titel { font-size: 30px; }
.login-sub { margin: -8px 0 12px; color: var(--inkt-2); }
.login-form { width: 100%; display: grid; gap: 10px; }
.login-form input { width: 100%; padding: 15px 16px; border-radius: 14px; border: 1.5px solid var(--lijn); background: var(--room); font-size: 17px; }
.login-form input:focus { outline: none; border-color: var(--zee); background: var(--wit); }
.login-voet { font-size: 13px; color: var(--inkt-3); margin: 0; }

/* ── App-kader ─────────────────────────────────────────────────────────── */
.app { min-height: 100vh; min-height: 100dvh; padding-bottom: calc(76px + var(--onder)); }
.tab-inhoud { animation: verschijn .25s var(--zacht-uit); }
@keyframes verschijn { from { opacity: 0; transform: translateY(6px); } }
.scherm { max-width: 900px; margin: 0 auto; padding: calc(14px + var(--boven)) 16px 24px; display: flex; flex-direction: column; gap: 14px; }
.kop { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 8px; }
.kop h1 { font-size: 30px; line-height: 1.05; }
.kop-sub { margin: 4px 0 0; color: var(--inkt-2); font-size: 14px; }
.demo-band, .offline-band { position: sticky; top: 0; z-index: 30; text-align: center; font-size: 12px; font-weight: 600; padding: calc(4px + var(--boven)) 8px 4px; }
.demo-band { background: var(--boter); color: var(--inkt); }
.offline-band { background: var(--inkt); color: var(--room); }
.offline-band.bezig { background: var(--zee); color: #fff; }

/* Tabbalk: mat glas, zoals iOS */
.tabbalk {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(5, 1fr);
  /* Op een tablet niet over de hele breedte: de tabs blijven bij elkaar en binnen bereik van je duimen. */
  --tab-rand: max(6px, calc(50% - 340px)); /* 50% van het scherm: dezelfde maat voor de duim hieronder */
  padding: 6px var(--tab-rand) calc(6px + var(--onder));
  background: rgba(255, 248, 239, .82);
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-top: 1px solid rgba(59, 42, 18, .08);
}
.tabbalk button { display: grid; justify-items: center; gap: 2px; padding: 4px 0; font-size: 12px; font-weight: 600; color: var(--inkt-2); transition: color .2s; }
.tabbalk button.aan { color: var(--zee); }
.tab-icoon { position: relative; display: grid; place-items: center; width: 52px; height: 30px; border-radius: 15px; transition: background .25s var(--zacht-uit); }
.tabbalk button.aan .tab-icoon { background: var(--zee-licht); }
.tabbalk button:active .tab-icoon { transform: scale(.92); }
.tab-teller { position: absolute; top: -4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--hart); color: #fff; font-size: 11px; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--room); }

/* ── Knoppen ───────────────────────────────────────────────────────────── */
/* Het stiksel van de B uit het logo: een gestippelde boterlijn binnenin. */
.knop {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 14px; white-space: nowrap;
  background: var(--zee-knop); color: #fff; font-weight: 600; font-size: 16px;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12);
  transition: transform .15s var(--veer), background .2s;
}
.knop::after { content: ""; position: absolute; inset: 4px; border-radius: 10px; border: 1.5px dashed rgba(243, 201, 129, .75); pointer-events: none; }
.knop:active:not(:disabled) { transform: scale(.97); background: var(--zee-donker); }
.knop.groot { min-height: 54px; width: 100%; font-size: 17px; border-radius: 16px; }
.knop.groot::after { border-radius: 12px; }
.knop.klein { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 11px; }
.knop.klein::after { inset: 3px; border-radius: 8px; }
.knop.zacht { background: var(--zee-licht); color: var(--zee-donker); box-shadow: none; }
.knop.zacht::after { border-color: transparent; }
.knop.zacht.rood { background: var(--hart-licht); color: var(--hart); }
.knop.prijsknop { background: var(--room); color: var(--inkt); border: 1.5px solid var(--lijn); box-shadow: none; }
.knop.prijsknop::after { display: none; }
.knop.prijsknop.actief { border-color: var(--hart); color: var(--hart); background: var(--hart-licht); }
.tekstknop { color: var(--zee-donker); font-weight: 600; padding: 8px 4px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.tekstknop.klein { font-size: 14px; }
.rond-knop { position: relative; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(59, 42, 18, .07); color: var(--inkt-2); flex: none; }
.rond-knop::before { content: ""; position: absolute; inset: -6px; } /* groter tikvlak, zelfde uitzicht */
.rond-knop.groot { width: 48px; height: 48px; }
.rond-knop.zee { background: var(--zee); color: #fff; box-shadow: 0 4px 14px rgba(76, 127, 135, .35); transition: transform .2s var(--veer); }
.rond-knop.zee:active { transform: scale(.9) rotate(90deg); }
.knoppenrij { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.knoppenrij.onderaan { margin-top: 8px; justify-content: space-between; }
.teller { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--hart); color: #fff; font-size: 13px; display: grid; place-items: center; }
.link { color: var(--zee-donker); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; font-size: 15px; }

/* ── Voorraad ──────────────────────────────────────────────────────────── */
.werkbalk { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.prijsdatum { font-size: 13px; color: var(--inkt-2); }

.segment { position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); padding: 3px; border-radius: 13px; background: rgba(59, 42, 18, .07); }
.segment-duim { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / var(--n)); border-radius: 10px; background: var(--wit); box-shadow: 0 2px 6px rgba(59, 42, 18, .12); transform: translateX(calc(var(--i) * 100%)); transition: transform .35s var(--veer); }
.segment button { position: relative; z-index: 1; padding: 8px 4px; font-size: 14px; font-weight: 600; color: var(--inkt-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.segment button.aan { color: var(--inkt); }

.zoekbalk { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 13px; background: rgba(59, 42, 18, .07); color: var(--inkt-3); }
.zoekbalk input { flex: 1; min-width: 0; padding: 12px 0; border: 0; background: none; font-size: 16px; color: var(--inkt); outline: none; }
.zoekbalk .wis { color: var(--inkt-3); display: grid; place-items: center; width: 28px; height: 28px; }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: -2px -16px; padding: 2px 16px; }
.chips:empty { display: none; }
.chip { flex: none; padding: 7px 13px; border-radius: 999px; background: var(--room); border: 1.5px solid var(--lijn); font-size: 14px; font-weight: 600; color: var(--inkt-2); transition: all .2s; }
.chip.aan { background: var(--inkt); border-color: var(--inkt); color: var(--room); }
.chip.rood { border-color: var(--hart); color: var(--hart); }
.chip.rood.aan { background: var(--hart); color: #fff; }

.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
@media (max-width: 380px) { .raster { gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Een tegel is een kaart in een toploader. Met een muis kantelt hij mee en glanst hij (zie lib/kantel.ts). */
.tegel {
  position: relative; display: flex; flex-direction: column; text-align: left;
  background: var(--room); border-radius: var(--rond); padding: 8px; box-shadow: var(--schaduw);
  animation: tegel-in .45s var(--veer) backwards; animation-delay: calc(var(--i, 0) * 28ms);
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--til, 0px)) scale(var(--druk, 1));
  transition: transform .35s var(--veer), box-shadow .3s ease;
}
.tegel:active { --druk: .97; }
.tegel.kantelt { transition: transform .08s linear, box-shadow .3s ease; }
@media (hover: hover) {
  .tegel:hover { --til: -5px; box-shadow: 0 2px 4px rgba(59, 42, 18, .06), 0 18px 34px rgba(59, 42, 18, .16); z-index: 2; }
}
@keyframes tegel-in { from { opacity: 0; translate: 0 14px; scale: .96; } }

/* Glans over de foto: volgt de muis, en bij dure kaarten een regenboog zoals een holo. */
.glans { position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 55%); mix-blend-mode: soft-light; }
.tegel:hover .glans, .klant-detail-foto:hover .glans { opacity: 1; }
.tegel.holo .glans, .klant-detail-foto.holo .glans {
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 50%),
    linear-gradient(115deg, transparent 20%, rgba(243, 201, 129, .55) 36%, rgba(168, 216, 208, .55) 46%, rgba(231, 181, 216, .55) 56%, transparent 72%);
  background-size: 100% 100%, 250% 250%;
  background-position: 0 0, var(--mx, 0%) var(--my, 0%);
  mix-blend-mode: color-dodge;
}
.tegel.holo .glans { opacity: .22; animation: glimmer 5s ease-in-out infinite; }
.tegel.holo:hover .glans { opacity: .8; animation: none; }
@keyframes glimmer { 0%, 100% { background-position: 0 0, 0% 0%; } 50% { background-position: 0 0, 100% 100%; } }

/* Aantal rechtsboven: dezelfde kaart (zelfde conditie en prijs) meerdere keren. */
.aantal-merk { position: absolute; top: 2px; right: 2px; z-index: 3; min-width: 30px; height: 26px; padding: 0 8px; border-radius: 13px;
  display: grid; place-items: center; background: var(--inkt); color: var(--boter); font-family: var(--titel); font-weight: 600; font-size: 14px;
  box-shadow: 0 0 0 2.5px var(--room), 0 4px 10px rgba(59, 42, 18, .25); animation: plop .45s var(--veer) backwards; animation-delay: calc(var(--i, 0) * 28ms + .2s); }
.nieuw-merk { position: absolute; top: 14px; left: 14px; z-index: 3; padding: 2px 8px; border-radius: 8px; background: var(--boter); color: var(--inkt);
  font-size: 11px; font-weight: 800; letter-spacing: .02em; box-shadow: 0 2px 8px rgba(59, 42, 18, .2); }
.tegel .foto { border-radius: 10px; }
.tegel .foto img { transition: opacity .35s, transform .5s var(--zacht-uit); }
@media (hover: hover) { .tegel:hover .foto img.geladen { transform: scale(1.035); } }
.tegel-info { padding: 8px 2px 2px; display: grid; gap: 3px; }
.tegel-naam { font-weight: 650; font-size: 15px; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tegel-set { font-size: 12px; color: var(--inkt-2); }
.tegel-onder { display: flex; align-items: center; justify-content: space-between; margin-top: 3px; }
.label-stip { color: var(--boter); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--inkt); }

/* Duurdere kaarten (vanaf 50 euro) krijgen een holo-rand die zacht beweegt. */
.tegel.holo {
  border: 2px solid transparent; padding: 6px;
  background: linear-gradient(var(--room), var(--room)) padding-box,
    linear-gradient(115deg, #f3c981, #a8d8d0, #e7b5d8, #b7c8f0, #f3c981) border-box;
  background-size: 100% 100%, 300% 300%;
  animation: tegel-in .45s var(--veer) backwards, holo 6s linear infinite;
  animation-delay: calc(var(--i, 0) * 28ms), 0s;
}
@keyframes holo { to { background-position: 0 0, 300% 0; } }

/* Prijs gewijzigd: rode rand die pulseert, en een band met oud → nieuw. */
.tegel.wijzig { box-shadow: 0 0 0 2.5px var(--hart), var(--schaduw); animation: tegel-in .45s var(--veer) backwards, puls 1.6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 28ms), 0s; }
.tegel.holo.wijzig { animation: tegel-in .45s var(--veer) backwards, holo 6s linear infinite, puls 1.6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 28ms), 0s, 0s; }
@keyframes puls {
  0%, 100% { box-shadow: 0 0 0 2.5px var(--hart), 0 0 0 0 rgba(226, 81, 63, .45), var(--schaduw); }
  50% { box-shadow: 0 0 0 2.5px var(--hart), 0 0 0 9px rgba(226, 81, 63, 0), var(--schaduw); }
}
.wijzig-band { position: absolute; top: 14px; left: 0; right: 0; margin: 0 12px; display: flex; align-items: center; justify-content: center; gap: 3px; padding: 5px 6px; border-radius: 10px; background: var(--hart); color: #fff; font-size: 12.5px; font-weight: 700; white-space: nowrap; letter-spacing: -.01em; box-shadow: 0 4px 12px rgba(226, 81, 63, .4); }
.wijzig-band.neer { background: var(--inkt); box-shadow: 0 4px 12px rgba(59, 42, 18, .35); }

/* Kaartfoto met reserve-letter zolang de foto laadt */
.foto { position: relative; aspect-ratio: 63 / 88; border-radius: 8px; overflow: hidden; background: linear-gradient(160deg, var(--boter-licht), var(--zee-licht)); }
.foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; z-index: 1; }
.foto img.geladen { opacity: 1; }
.foto-reserve { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--titel); font-size: 40px; font-weight: 600; color: rgba(59, 42, 18, .25); }
.foto.klein { width: 46px; flex: none; border-radius: 5px; }
.foto.klein .foto-reserve { font-size: 20px; }

/* Het hartje: de prijssticker vooraan de toploader */
.hartje { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 7px; border-radius: 999px; background: var(--hart-licht); color: var(--hart-inkt); font-family: var(--titel); font-weight: 600; font-size: 15px; }
.hartje svg { fill: var(--hart); stroke: none; }
.hartje.groot { font-size: 26px; padding: 4px 14px 4px 10px; gap: 6px; }
.hartje.leeg-hart { background: rgba(59, 42, 18, .07); color: var(--inkt-3); font-family: var(--tekst); font-size: 12px; font-weight: 600; }
.waarde { font-family: var(--titel); font-weight: 600; font-size: 15px; color: var(--inkt-2); }
.waarde.groot { font-size: 26px; color: var(--inkt); }

.badges { display: flex; flex-wrap: wrap; gap: 4px; }
.badge { font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: var(--zee-licht); color: var(--zee-donker); }
.badge.taal { background: var(--boter-licht); color: #8a6420; }
.badge.geel { background: var(--boter); color: var(--inkt); }

.leeg { text-align: center; padding: 40px 16px; display: grid; justify-items: center; gap: 8px; color: var(--inkt-2); }
.leeg img { animation: dobber 3s ease-in-out infinite; }
.leeg h3 { color: var(--inkt); font-size: 20px; }
.leeg p { margin: 0 0 8px; max-width: 30ch; }

/* ── Sheets (van onder) ────────────────────────────────────────────────── */
.sheet-achtergrond { position: fixed; inset: 0; z-index: 60; background: rgba(40, 28, 10, .38); display: flex; align-items: flex-end; justify-content: center; animation: vervaag .25s ease both; }
@keyframes vervaag { from { opacity: 0; } }
.sheet {
  width: 100%; max-width: 640px; max-height: calc(100vh - 40px - var(--boven)); max-height: calc(100dvh - 40px - var(--boven));
  display: flex; flex-direction: column;
  background: var(--perzik); border-radius: 24px 24px 0 0; box-shadow: var(--schaduw-hoog);
  animation: omhoog .45s var(--veer) both;
}
.sheet.vol { height: calc(100vh - 40px - var(--boven)); height: calc(100dvh - 40px - var(--boven)); }
@keyframes omhoog { from { transform: translateY(100%); } }
@media (min-width: 700px) {
  .sheet-achtergrond { align-items: center; }
  .sheet { border-radius: 24px; max-height: 88vh; max-height: 88dvh; }
  .sheet.vol { height: 88vh; height: 88dvh; }
  .sheet-greep { display: none; }
}
.sheet-greep { width: 38px; height: 5px; border-radius: 3px; background: rgba(59, 42, 18, .2); margin: 8px auto 0; flex: none; }
.sheet-kop { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 20px; flex: none; }
.sheet-titel { flex: 1; font-family: var(--titel); font-weight: 600; font-size: 19px; min-width: 0; }
.sheet-titel .code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 17px; }
.sheet-inhoud > * { flex-shrink: 0; }
.sheet-inhoud { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 16px calc(24px + var(--onder)); display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }

.blok { background: var(--room); border-radius: var(--rond); padding: 16px; display: grid; gap: 10px; }
.blok h3 { font-size: 17px; }
.blok p { margin: 0; }

/* Detail van een exemplaar */
.detail-kop { display: grid; grid-template-columns: 38% 1fr; gap: 16px; align-items: start; }
.detail-kop .foto { border-radius: 12px; box-shadow: var(--schaduw); }
.detail-titel { display: grid; gap: 6px; padding-top: 4px; }
.detail-titel h2 { font-size: 24px; line-height: 1.1; }
.detail-set { color: var(--inkt-2); font-size: 14px; }
.detail-plaats { margin-top: 6px; }
.plaats { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; text-align: left; width: 100%; }
.plaats-tekst { display: grid; gap: 1px; }
.plaats-tekst strong { font-size: 15px; }
.plaats-tekst span { font-size: 12px; opacity: .8; }
.plaats.vitrine { background: var(--zee-licht); color: var(--zee-donker); }
.plaats.stockdoos { background: var(--boter-licht); color: #7a5617; }

.melding-kaart { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--rond); background: var(--hart); color: #fff; animation: schud .5s .2s ease both; }
.melding-kaart.neer { background: var(--inkt); }
.melding-kaart div { display: grid; gap: 2px; }
.melding-kaart span { font-size: 14px; opacity: .9; }
@keyframes schud { 25% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }

.hartje-rij { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hartje-rij h3 { margin-bottom: 8px; }
.hartje-groot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.slot { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--inkt-2); background: rgba(59, 42, 18, .07); padding: 4px 9px; border-radius: 8px; }
.hartje-invoer { display: grid; gap: 10px; animation: verschijn .25s var(--zacht-uit); }
.euro-invoer { display: flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 14px; background: var(--wit); border: 2px solid var(--hart); font-family: var(--titel); font-size: 32px; font-weight: 600; color: var(--hart); }
.euro-invoer input { border: 0; outline: none; background: none; width: 100%; font: inherit; color: var(--inkt); }

.marktprijs { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 10px; padding: 10px 14px; margin-bottom: 8px; border-radius: 14px; background: var(--zee); color: #fff; }
.marktprijs span { font-size: 13px; font-weight: 600; opacity: .85; }
.marktprijs strong { font-family: var(--titel); font-size: 24px; font-weight: 600; }
.marktprijs em { grid-column: 1 / -1; font-style: normal; font-size: 12px; opacity: .8; }
.prijsrij { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.stat { background: var(--perzik); border-radius: 12px; padding: 8px 6px; display: grid; gap: 2px; text-align: center; }
.stat span { font-size: 11px; color: var(--inkt-2); font-weight: 600; }
.stat strong { font-family: var(--titel); font-weight: 600; font-size: 16px; }
.stat.nadruk { background: var(--zee); color: #fff; }
.stat.nadruk span { color: rgba(255, 255, 255, .8); }
.nakijken { color: #9a6a12; font-weight: 600; font-size: 14px; }
.zeker { color: var(--groen); font-weight: 700; }

.label-voorbeeld { width: 100%; max-width: 380px; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px var(--lijn), 0 4px 10px rgba(59, 42, 18, .08); image-rendering: pixelated; }

.gegevens { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 15px; }
.gegevens dt { color: var(--inkt-2); }
.gegevens dd { margin: 0; }

.lijst { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lijst-knop { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--wit); text-align: left; font-size: 15px; }
.lijst-knop .rechts, .rechts { margin-left: auto; }
.lijst-naam { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vinkje { width: 24px; height: 24px; border-radius: 50%; background: var(--groen); color: #fff; display: grid; place-items: center; flex: none; animation: plop .35s var(--veer); }
@keyframes plop { from { transform: scale(0); } }

.uit-keuze { width: 100%; display: grid; gap: 8px; background: var(--room); border-radius: var(--rond); padding: 14px; }
.uit-keuze p { margin: 0; font-size: 14px; }

/* ── Formulieren ───────────────────────────────────────────────────────── */
.formulier { display: grid; gap: 14px; }
.formulier.compact { gap: 10px; padding: 12px; background: var(--wit); border-radius: var(--rond-klein); }
.veld { display: grid; gap: 6px; }
.veld-label { font-size: 13px; font-weight: 600; color: var(--inkt-2); }
.veld-hint { font-size: 13px; color: var(--inkt-2); }
.veld input, .veld select, .veld textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--lijn); background: var(--wit); font-size: 16px; }
.veld input:focus, .veld select:focus, .veld textarea:focus { outline: none; border-color: var(--zee); }
.veld select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--inkt-2) 50%), linear-gradient(135deg, var(--inkt-2) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.twee { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kiezer { display: flex; flex-wrap: wrap; gap: 6px; }
.kiezer .chip { padding: 8px 12px; }
.schakel { display: flex; align-items: center; gap: 12px; font-size: 15px; cursor: pointer; padding: 4px 0; }
.schakel input { appearance: none; flex: none; width: 46px; height: 28px; border-radius: 14px; background: rgba(59, 42, 18, .15); position: relative; transition: background .25s; margin: 0; cursor: pointer; }
.schakel input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: transform .3s var(--veer); }
.schakel input:checked { background: var(--groen); }
.schakel input:checked::after { transform: translateX(18px); }
.stapper { display: inline-flex; align-items: center; gap: 4px; background: var(--wit); border: 1.5px solid var(--lijn); border-radius: 12px; padding: 3px; width: fit-content; }
.stapper button { width: 38px; height: 36px; border-radius: 9px; font-size: 22px; line-height: 1; color: var(--zee); }
.stapper button:active { background: var(--zee-licht); }
.stapper span { min-width: 34px; text-align: center; font-family: var(--titel); font-weight: 600; font-size: 18px; }
.stapper.klein button { width: 32px; height: 30px; font-size: 19px; }
.stapper.klein span { min-width: 26px; font-size: 16px; }

/* ── Toevoegen ─────────────────────────────────────────────────────────── */
.stappen { display: grid; gap: 12px; }
.resultaten { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.resultaten li > button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 14px; background: var(--room); text-align: left; transition: transform .15s var(--veer); }
.resultaten li > button:active { transform: scale(.98); }
.resultaten li.open > button { border-radius: 14px 14px 0 0; }
.res-tekst { flex: 1; min-width: 0; display: grid; gap: 1px; font-size: 15px; }
.res-tekst > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-tekst .zacht { font-size: 13px; }
.gekozen { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: var(--rond); background: var(--room); }
.gekozen > div { flex: 1; min-width: 0; display: grid; gap: 2px; font-size: 15px; }
.gekozen .foto.klein { width: 64px; }
.foto-herkenning { display: grid; gap: 10px; justify-items: center; text-align: center; }
.foto-voorbeeld { max-height: 220px; border-radius: 12px; }
.blok .knop { justify-self: start; }

.klaar { display: grid; gap: 14px; justify-items: center; text-align: center; padding-top: 12px; }
.klaar h2 { font-size: 22px; }
.klaar .lijst { width: 100%; }
.klaar .knoppenrij { justify-content: center; }
.sparkles { position: relative; width: 80px; height: 50px; color: var(--boter); }
.sparkles span { position: absolute; font-size: 26px; animation: twinkel 1.4s ease-in-out infinite; }
.sparkles span:nth-child(1) { left: 6px; top: 16px; }
.sparkles span:nth-child(2) { left: 32px; top: 0; font-size: 34px; animation-delay: .2s; color: var(--zee); }
.sparkles span:nth-child(3) { left: 58px; top: 20px; animation-delay: .4s; }
@keyframes twinkel { 0%, 100% { transform: scale(.6) rotate(0); opacity: .5; } 50% { transform: scale(1.15) rotate(20deg); opacity: 1; } }

/* ── Scannen ───────────────────────────────────────────────────────────── */
.camera-vak { position: relative; aspect-ratio: 1; max-height: 56vh; max-height: 56dvh; width: 100%; border-radius: 22px; overflow: hidden; background: #241a0b; box-shadow: var(--schaduw); }
.camera-vak.kaartvorm { aspect-ratio: 3 / 4; }
.camera-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.camera-laden { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .7); font-size: 14px; }
.camera-fout { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center; color: var(--room); background: #241a0b; }
.camera-fout p { margin: 0; max-width: 32ch; font-size: 15px; }
.zoeker { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.zoeker.qr { width: 58%; aspect-ratio: 1; }
.zoeker.kaart { width: 72%; aspect-ratio: 63 / 88; }
.zoeker span { position: absolute; width: 28px; height: 28px; border: 4px solid var(--boter); }
.zoeker span:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.zoeker span:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 12px 0 0; }
.zoeker span:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 12px; }
.zoeker span:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }
.zoeker.qr { animation: adem 2.2s ease-in-out infinite; }
@keyframes adem { 50% { transform: translate(-50%, -50%) scale(1.04); } }
.camera-vak.flits::after { content: ""; position: absolute; inset: 0; background: rgba(243, 201, 129, .45); animation: flits .35s ease-out both; }
@keyframes flits { to { opacity: 0; } }
.lamp { position: absolute; right: 12px; bottom: 12px; background: rgba(0, 0, 0, .45); color: #fff; width: 42px; height: 42px; }
.lamp.aan { background: var(--boter); color: var(--inkt); }
.camera-knoppen { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; justify-items: center; }
.sluiter { width: 74px; height: 74px; border-radius: 50%; border: 4px solid var(--zee); padding: 4px; background: var(--room); }
.sluiter span { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--zee); transition: transform .15s var(--veer); }
.sluiter:active span { transform: scale(.88); }
.kandidaten { display: grid; gap: 10px; }
.kandidaten-kop { display: flex; gap: 12px; align-items: center; }
.kandidaten-kop img { width: 70px; border-radius: 8px; }
.kandidaten-kop > div { display: grid; gap: 6px; justify-items: start; }
.in-voorraad { background: var(--room); border-radius: 0 0 14px 14px; padding: 4px 10px 12px; display: grid; gap: 8px; border-top: 1px solid var(--lijn); }
.in-voorraad .knop { justify-self: start; }
.code-invoer { display: grid; gap: 10px; padding-top: 10px; }
.code-veld { width: 100%; text-align: center; padding: 18px; border-radius: 18px; border: 2px solid var(--lijn); background: var(--wit); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 34px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.code-veld:focus { outline: none; border-color: var(--zee); }

/* ── Labels ────────────────────────────────────────────────────────────── */
.printerkaart { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--rond); background: var(--room); box-shadow: var(--schaduw); }
.printer-icoon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(59, 42, 18, .07); color: var(--inkt-3); flex: none; }
.printerkaart.verbonden .printer-icoon { background: var(--zee); color: #fff; }
.printer-tekst { flex: 1; min-width: 0; display: grid; gap: 2px; }
a.knop { text-decoration: none; }
.tip { padding: 12px 14px; border-radius: var(--rond-klein); background: var(--boter-licht); font-size: 14px; }
.maatkeuze { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.maatkeuze .chips { margin: 0; padding: 0; flex: 1 1 100%; }
.maatkeuze .chip { padding: 5px 10px; font-size: 13px; }
/* Proeflabel en afstellen (per toestel). */
.afstellen { background: var(--room); border-radius: var(--rond); padding: 12px 14px; display: grid; gap: 10px; }
.afstellen summary { cursor: pointer; color: var(--zee); font-weight: 600; font-size: 15px; list-style-position: inside; }
.afstellen:not([open]) { padding-bottom: 12px; }
.afstellen .knoppenrij { justify-content: flex-start; flex-wrap: wrap; }
.afstel-rij { display: grid; gap: 6px; font-size: 14px; }
.afstel-rij .chips { margin: 0; padding: 0; flex-wrap: wrap; -webkit-mask-image: none; mask-image: none; }
.afstel-rij .chip { padding: 5px 10px; font-size: 13px; }
.afstel-schuif { display: flex; align-items: center; gap: 10px; }
.afstel-schuif strong { min-width: 96px; text-align: center; font-family: var(--titel); font-weight: 600; }
.lijst-acties { display: flex; justify-content: space-between; align-items: center; }
.labellijst { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.labelrij { display: flex; align-items: center; gap: 10px; animation: tegel-in .35s var(--veer) both; }
.vink { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--lijn); display: grid; place-items: center; flex: none; background: var(--wit); color: #fff; transition: all .2s; }
.labelrij.aan .vink { background: var(--zee); border-color: var(--zee); }
.labelrij-beeld { flex: 1; min-width: 0; display: grid; gap: 4px; text-align: left; padding: 8px; border-radius: 14px; background: var(--room); }
.labelrij-beeld img { width: 100%; max-width: 360px; border-radius: 4px; background: #fff; box-shadow: 0 0 0 1px var(--lijn); }
.labelrij:not(.aan) .labelrij-beeld { opacity: .5; }
.onderbalk { position: sticky; bottom: calc(76px + var(--onder)); padding: 10px 0 4px; display: grid; gap: 8px; background: linear-gradient(transparent, var(--perzik) 30%); }
.onderbalk .knoppenrij { justify-content: center; }

/* ── Meer ──────────────────────────────────────────────────────────────── */
.groep { display: grid; gap: 6px; }
.groep-titel { font-size: 15px; color: var(--inkt-2); font-weight: 600; padding: 0 4px; font-family: var(--tekst); }
.groep-inhoud { background: var(--room); border-radius: var(--rond); padding: 6px 14px; display: grid; }
.groep-inhoud > * + * { border-top: 1px solid var(--lijn); }
.groep-uitleg { font-size: 13px; color: var(--inkt-2); margin: 0; padding: 10px 0; }
.rij { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; font-size: 15px; }
.rij > span:first-child { flex: none; }
.rij > span:last-child { text-align: right; }
.schakel.rij { justify-content: flex-start; flex-direction: row-reverse; }
.schakel.rij span { flex: 1; }
.rij-knop { display: flex; align-items: center; gap: 10px; padding: 12px 0; color: var(--zee); font-weight: 600; font-size: 15px; text-align: left; width: 100%; }
.rij-knop.rood { color: var(--hart); }
.prijsregels { padding: 4px 0 12px; display: grid; gap: 8px; }
.prijsregels table { border-collapse: collapse; font-size: 14px; }
.prijsregels th { text-align: left; font-weight: 600; color: var(--inkt-2); font-size: 12px; padding: 4px 0; }
.prijsregels td { padding: 4px 12px 4px 0; }
.prijsregels input, .factoren input { width: 56px; padding: 6px 8px; border-radius: 8px; border: 1.5px solid var(--lijn); background: var(--wit); text-align: center; }
.factoren { display: flex; flex-wrap: wrap; gap: 8px; }
.factoren label { display: grid; gap: 2px; justify-items: center; font-size: 12px; font-weight: 700; color: var(--inkt-2); }
.artikelen { list-style: none; margin: 0; padding: 0; }
.artikel { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--lijn); }
.artikel-tekst { flex: 1; min-width: 0; display: grid; font-size: 15px; }

/* ── Meldingen en bezig ────────────────────────────────────────────────── */
.toasts { position: fixed; left: 0; right: 0; top: calc(8px + var(--boven)); z-index: 90; display: grid; justify-items: center; gap: 8px; padding: 0 16px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: 480px; width: 100%; padding: 10px 14px; border-radius: 14px; background: var(--inkt); color: var(--room); font-size: 14px; line-height: 1.3; box-shadow: 0 8px 24px rgba(40, 28, 10, .3); animation: toast-in .4s var(--veer) both; }
.toast svg { flex: none; color: var(--boter); }
.toast.fout { background: var(--hart); color: #fff; }
.toast.fout svg { color: #fff; }
.toast span { flex: 1; }
.toast button { flex: none; font-weight: 700; color: var(--boter); padding: 4px 6px; }
.toast.fout button { color: #fff; text-decoration: underline; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-16px) scale(.95); } }
.bezig { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(252, 235, 214, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: vervaag .2s ease both; }
.bezig-kaart { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-radius: 18px; background: var(--room); box-shadow: var(--schaduw); font-weight: 600; max-width: 80vw; }
.draaier { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--zee-licht); border-top-color: var(--zee); animation: draai .8s linear infinite; flex: none; }
@keyframes draai { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .tegel.wijzig { box-shadow: 0 0 0 3px var(--hart), var(--schaduw); }
}

/* ── Fase 2 en 3 ───────────────────────────────────────────────────────── */
/* Scan als grote knop in het midden van de tabbalk */
.tabbalk .scan-tab .tab-icoon { width: 58px; height: 58px; border-radius: 50%; margin-top: -26px; background: var(--zee); color: #fff; box-shadow: 0 6px 18px rgba(76, 127, 135, .45), 0 0 0 4px var(--room); }
.tabbalk .scan-tab.aan .tab-icoon { background: var(--zee-donker); }
.tabbalk .scan-tab { color: var(--zee); }

.kop-knoppen { display: flex; gap: 8px; align-items: center; }
.kop-knoppen .rond-knop { position: relative; }
.knop-teller { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--hart); color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; box-shadow: 0 0 0 2px var(--perzik); }
.uitleg-vault { margin: -4px 0 0; font-size: 14px; color: var(--inkt-2); }

/* Categorieën: Singles, Slabs, Sealed, Bind'r */
.categorieen { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.categorieen button { flex: none; padding: 8px 14px; border-radius: 12px; font-family: var(--titel); font-weight: 600; font-size: 16px; color: var(--inkt-2); background: transparent; border: 1.5px dashed transparent; transition: all .2s; }
.categorieen button span { font-family: var(--tekst); font-size: 12px; font-weight: 700; color: var(--inkt-3); margin-left: 3px; }
.categorieen button.aan { color: var(--zee-donker); background: var(--zee-licht); border-color: rgba(76, 127, 135, .45); }

.wijzig-band.stijger { background: var(--zee); box-shadow: 0 4px 12px rgba(76, 127, 135, .4); }

/* Artikelen als tegel */
.artikel-vlak { position: relative; aspect-ratio: 63 / 88; border-radius: 10px; display: grid; place-items: center; color: var(--inkt-2); background: repeating-linear-gradient(135deg, var(--boter-licht) 0 12px, #fdf1d6 12px 24px); }
.artikel-vlak.bindr { background: repeating-linear-gradient(135deg, var(--zee-licht) 0 12px, #e7f1f0 12px 24px); color: var(--zee-donker); }
.artikel-vlak.overig { background: repeating-linear-gradient(135deg, #efe4d4 0 12px, #f6ede1 12px 24px); }
.artikel-aantal { position: absolute; right: 8px; bottom: 8px; padding: 2px 9px; border-radius: 999px; background: var(--inkt); color: var(--room); font-family: var(--titel); font-weight: 600; font-size: 14px; }
.artikel-kop { display: grid; gap: 8px; padding: 4px 0 8px; }
.groot-getal { font-size: 15px; color: var(--inkt-2); }
.groot-getal span { font-family: var(--titel); font-weight: 600; font-size: 40px; color: var(--inkt); margin-right: 4px; }
.stapper .stapper-getal { width: 54px; border: 0; background: none; text-align: center; font-family: var(--titel); font-weight: 600; font-size: 18px; padding: 0; }

/* In het mandje */
.mandje-knop { position: relative; }
.mini-label { margin-left: 6px; padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, .22); font-size: 11px; font-weight: 700; }
.lijst-knop .mini-label { background: var(--zee-licht); color: var(--zee-donker); }
.mandje-actie { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--rond); font-size: 15px; }
.mandje-actie.in { background: var(--zee-licht); color: var(--zee-donker); font-weight: 600; }
.mandje-actie.in .tekstknop { margin-left: auto; }
.mandje-actie.weg { background: rgba(59, 42, 18, .07); align-items: flex-start; }
.mandje-actie.weg div { display: grid; gap: 2px; }
.mandje-actie.vraag { display: grid; gap: 10px; background: var(--boter-licht); }
.mandje-actie.vraag p { margin: 0; }
.euro-invoer.klein { font-size: 24px; padding: 4px 12px; }
.euro-invoer.mini { font-size: 18px; padding: 2px 8px; border-width: 1.5px; border-radius: 10px; width: 104px; }

/* Kassa */
.beurs-balk { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--rond); background: var(--inkt); color: var(--room); flex-wrap: wrap; }
.beurs-balk.leeg { background: var(--room); color: var(--inkt); box-shadow: var(--schaduw); }
.beurs-balk.leeg > div { flex: 1; display: grid; gap: 2px; min-width: 180px; }
.beurs-cijfer { display: grid; gap: 0; }
.beurs-cijfer span { font-size: 11px; opacity: .7; font-weight: 600; }
.beurs-cijfer strong { font-family: var(--titel); font-weight: 600; font-size: 20px; }
.beurs-balk .knop { margin-left: auto; }
.beurs-balk .knop.zacht { background: rgba(255, 255, 255, .14); color: var(--room); }
.rood-badge { background: var(--hart); color: #fff; }

.mandje-kant { background: var(--room); border-radius: var(--rond); padding: 14px; display: grid; gap: 8px; }
.mandje-kant.klant { background: transparent; border: 2px dashed var(--lijn); }
.kant-kop { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.kant-kop h2 { font-size: 20px; }
.kant-leeg { margin: 0; }
.kant-knoppen { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.kant-knoppen .knop { flex: 1 1 auto; min-height: 44px; padding: 0 12px; font-size: 15px; }

.regel { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: var(--wit); animation: tegel-in .35s var(--veer) both; }
.regel.in { background: #fffdf8; }
.regel .foto.klein { width: 40px; }
.regel-icoon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--boter-licht); color: var(--inkt-2); flex: none; }
.regel-tekst { flex: 1; min-width: 0; display: grid; gap: 2px; font-size: 15px; }
.regel-tekst > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.regel-prijs { text-align: right; flex: none; }
.prijs-knop { display: grid; justify-items: end; gap: 0; padding: 4px 6px; border-radius: 8px; font-family: var(--titel); }
.prijs-knop strong { font-weight: 600; font-size: 18px; }
.prijs-knop s { font-size: 12px; color: var(--inkt-3); }
.prijs-knop:active { background: var(--zee-licht); }
.totaal-rij { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px 0; border-top: 1.5px dashed var(--lijn); }
.totaal-rij .prijs-knop { display: flex; align-items: baseline; gap: 6px; }
.afreken-balk { position: sticky; bottom: calc(80px + var(--onder)); z-index: 5; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px 12px; padding: 12px 14px; border-radius: 20px; background: var(--wit); box-shadow: 0 10px 30px rgba(59, 42, 18, .18); }
.afreken-balk .knop.groot { width: auto; padding: 0 26px; }
.afreken-balk .tekstknop { grid-column: 1 / -1; justify-self: center; color: var(--inkt-3); padding: 0; }
.netto { display: grid; }
.netto span { font-size: 12px; font-weight: 700; color: var(--inkt-2); }
.netto strong { font-family: var(--titel); font-weight: 600; font-size: 28px; line-height: 1.1; }

.recent-mandje { display: grid; gap: 4px; padding: 10px 12px; border-radius: var(--rond-klein); background: var(--room); }
.recent-regel { display: flex; align-items: center; gap: 6px; font-size: 14px; animation: plop .3s var(--veer); }
.recent-regel svg { color: var(--groen); }

.referentie { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.referentie div { background: var(--room); border-radius: 12px; padding: 8px 10px; display: grid; }
.referentie span { font-size: 12px; color: var(--inkt-2); font-weight: 600; }
.referentie strong { font-family: var(--titel); font-weight: 600; font-size: 18px; }

.afreken-overzicht { display: grid; gap: 6px; padding: 12px 14px; border-radius: var(--rond); background: var(--room); }
.afreken-overzicht > div { display: flex; justify-content: space-between; font-size: 15px; }
.afreken-netto { padding-top: 6px; border-top: 1.5px dashed var(--lijn); align-items: baseline; }
.afreken-netto strong { font-family: var(--titel); font-weight: 600; font-size: 34px; }
.waarschuwing { display: flex; gap: 10px; padding: 10px 12px; border-radius: var(--rond-klein); background: var(--boter-licht); font-size: 14px; color: #6d4b0f; }
.waarschuwing > div { display: grid; gap: 2px; }
.wisselgeld { display: grid; gap: 8px; }
.wisselgeld input { padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--lijn); background: var(--wit); font-size: 16px; }
.wisselgeld-bedrag { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 14px; border-radius: 14px; background: var(--zee-licht); color: var(--zee-donker); font-weight: 600; }
.wisselgeld-bedrag strong { font-family: var(--titel); font-size: 28px; }

.gelukt { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 18px 8px 8px; }
.gelukt img { animation: hupje .7s var(--veer) both; }
@keyframes hupje { 0% { transform: translateY(20px) scale(.6); opacity: 0; } 60% { transform: translateY(-8px) scale(1.05); opacity: 1; } }
.gelukt h2 { font-size: 26px; }
.gelukt-bedrag { margin: 0; font-family: var(--titel); font-size: 22px; font-weight: 600; }
.gelukt-bedrag span { font-family: var(--tekst); font-size: 14px; font-weight: 500; }
.gelukt .wisselgeld-bedrag { width: 100%; max-width: 320px; }

/* Beurs en transacties */
.stand-blok { display: grid; gap: 6px; }
.stand-rij { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.stand-rij div { background: var(--room); border-radius: 12px; padding: 8px 10px; display: grid; }
.stand-rij span { font-size: 11px; color: var(--inkt-2); font-weight: 700; }
.stand-rij strong { font-family: var(--titel); font-weight: 600; font-size: 16px; }
.stand-rij em { font-style: normal; font-size: 12px; color: var(--inkt-2); }
.afsluit-rij { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; padding: 2px 0; }
.afsluit-rij.groot { font-size: 17px; padding-top: 6px; }
.afsluit-rij.groot strong { font-family: var(--titel); font-size: 22px; font-weight: 600; }
.transacties { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.transactie-rij { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--wit); text-align: left; }
.transactie-rij.ongedaan { opacity: .5; }
.transactie-rij.conflict { box-shadow: inset 0 0 0 2px var(--hart); }
.transactie-tijd { font-weight: 700; font-size: 14px; color: var(--inkt-2); flex: none; }
.transactie-tekst { flex: 1; min-width: 0; display: grid; gap: 1px; }
.transactie-tekst > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.transactie-bedrag { display: grid; justify-items: end; flex: none; }
.transactie-bedrag strong { font-family: var(--titel); font-weight: 600; font-size: 17px; }
.vinkvak { width: 22px; height: 22px; accent-color: var(--zee); }
.conflict { display: grid; gap: 8px; padding: 12px 14px; border-radius: var(--rond); background: var(--hart-licht); }
.conflict-kop { display: flex; gap: 8px; align-items: flex-start; color: var(--hart); }
.conflict p { margin: 0; }
.code-rij { display: flex; gap: 8px; }
.code-veld.klein { font-size: 18px; padding: 10px; letter-spacing: .06em; border-radius: 12px; flex: 1; min-width: 0; }
.rapport-raster { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.cijfer { background: var(--room); border-radius: 14px; padding: 10px 12px; display: grid; gap: 1px; }
.cijfer span { font-size: 12px; color: var(--inkt-2); font-weight: 700; }
.cijfer strong { font-family: var(--titel); font-weight: 600; font-size: 22px; }
.cijfer em { font-style: normal; font-size: 11px; color: var(--inkt-3); }
.cijfer.nadruk { background: var(--zee); color: #fff; }
.cijfer.nadruk span, .cijfer.nadruk em { color: rgba(255, 255, 255, .8); }

/* Meer: klantencatalogus */
.instagram-rij { align-items: center; }
.instagram-rij > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.instagram-veld { display: inline-flex; align-items: center; gap: 2px; color: var(--inkt-2); }
.instagram-veld input { width: 120px; border: 0; border-bottom: 1.5px solid var(--lijn); background: none; padding: 4px 2px; font-size: 15px; text-align: right; }
.instagram-veld input:focus { outline: none; border-color: var(--zee); }
.wie-ziet-wat { padding: 10px 0; font-size: 14px; }
.wie-ziet-wat summary { cursor: pointer; color: var(--zee); font-weight: 600; }
.wie-ziet-wat table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.wie-ziet-wat th, .wie-ziet-wat td { padding: 6px 4px; border-bottom: 1px solid var(--lijn); text-align: left; }
.wie-ziet-wat td:not(:first-child), .wie-ziet-wat th:not(:first-child) { text-align: center; width: 64px; }
.stand-qr { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 8px 0 16px; }
.stand-qr p { margin: 0; }
.qr-beeld { border-radius: 12px; box-shadow: var(--schaduw); }
.labels-in-sheet { display: flex; flex-direction: column; gap: 12px; }
.labels-in-sheet > p { margin: 0; }
.onderbalk.in-sheet { bottom: 0; }

/* ── Catalogus: sorteren, sets en dubbels (ook op de klantenpagina) ────── */
.zoekrij { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.sorteerknop { position: relative; display: flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: 13px; background: rgba(59, 42, 18, .07); color: var(--zee-donker); }
.sorteerknop select { appearance: none; border: 0; background: none; font-size: 14px; font-weight: 600; color: var(--inkt); padding: 12px 0; max-width: 124px; cursor: pointer; }
.sorteerknop select:focus { outline: none; }
.setkeuze { position: relative; padding: 0; }
.setkeuze select { appearance: none; border: 0; background: none; font: inherit; color: inherit; padding: 7px 30px 7px 13px; cursor: pointer; max-width: 230px; }
.setkeuze::after { content: "▾"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; font-size: 12px; }
.setkeuze select:focus { outline: none; }
.set-groepen { display: grid; gap: 22px; }
.set-groep { display: grid; gap: 10px; }
.set-kop { display: flex; align-items: baseline; gap: 8px; font-size: 20px; padding-bottom: 6px; border-bottom: 2px dashed var(--lijn); }
.set-kop em { font-style: normal; font-family: var(--tekst); font-size: 13px; font-weight: 700; color: var(--inkt-3); }
.foto-vak { position: relative; border-radius: 10px; }
.foto-vak .glans { border-radius: 10px; }

/* Merk: het Bind'r-logo linksboven in de app */
.merkbalk { max-width: 900px; margin: 0 auto; padding: calc(10px + var(--boven)) 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.demo-band ~ .merkbalk, .offline-band ~ .merkbalk { padding-top: 10px; }
.merkbalk img { height: 34px; width: auto; transition: transform .3s var(--veer); }
.merkbalk img:active { transform: rotate(-3deg) scale(.96); }
.merkbalk + .tab-inhoud .scherm { padding-top: 0; }
.beurs-pil { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--inkt); color: var(--room); font-size: 13px; font-weight: 700; max-width: 60%; }
.beurs-pil span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.beurs-pil .stip { width: 8px; height: 8px; border-radius: 50%; background: #7bd88f; flex: none; animation: knipper 1.6s ease-in-out infinite; }
@keyframes knipper { 50% { opacity: .35; } }

/* Cardmarket: prijzen, stijgt of daalt, set en link */
.markt-kop { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.trend-kaart { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--zee-licht); color: var(--zee-donker); animation: verschijn .35s var(--zacht-uit); }
.trend-kaart > div { display: grid; gap: 2px; }
.trend-kaart strong { font-family: var(--titel); font-weight: 600; font-size: 18px; }
.trend-kaart strong span { font-size: 15px; margin-left: 4px; opacity: .85; }
.trend-kaart .grapje { font-size: 14px; color: var(--inkt); }
.trend-kaart em { font-style: normal; font-size: 12px; opacity: .75; }
.trend-pijl { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .7); flex: none; }
.trend-kaart.op, .trend-kaart.hard-op { background: #e2f1e4; color: #2f6b3c; }
.trend-kaart.hard-op .trend-pijl { animation: raket 1.2s ease-in-out infinite; }
.trend-kaart.neer, .trend-kaart.hard-neer { background: var(--hart-licht); color: #a8382a; }
.trend-kaart.hard-neer .trend-pijl { animation: plons 1.4s ease-in-out infinite; }
@keyframes raket { 50% { transform: translateY(-4px); } }
@keyframes plons { 50% { transform: translateY(3px); } }
.set-trend { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; padding: 8px 12px; border-radius: 12px; background: var(--perzik); color: var(--inkt-2); }
.set-trend span { flex: 1; min-width: 0; }
.set-trend strong { color: var(--inkt); }
.set-trend em { font-style: normal; font-size: 12px; color: var(--inkt-3); }
.set-trend.op svg, .set-trend.hard-op svg { color: var(--groen); }
.set-trend.neer svg, .set-trend.hard-neer svg { color: var(--hart); }
.set-trend.stabiel svg { color: var(--zee); }
.cm-links { display: grid; gap: 6px; justify-items: start; }
.cm-links .knop { justify-self: stretch; }
.cm-links a:not(.knop) { color: var(--zee); font-weight: 600; }
.voorstel-rij { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--zee); color: #fff; }
.voorstel-rij span { font-size: 13px; opacity: .85; }
.voorstel-rij strong { font-family: var(--titel); font-weight: 600; font-size: 20px; }

/* Bod op de kaarten van de klant (inkoop 70%, ruil 80%) */
.bod-paneel { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: var(--wit); box-shadow: var(--schaduw); animation: verschijn .3s var(--zacht-uit); }
.bod-kop { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bod-kop > div:first-child { display: grid; }
.bod-markt { font-family: var(--titel); font-weight: 600; font-size: 28px; line-height: 1.05; }
.bod-kop .segment { min-width: 200px; flex: 1; max-width: 260px; }
.bod-som { font-size: 14px; color: var(--inkt-2); }
.bod-som strong { color: var(--inkt); font-family: var(--titel); font-size: 17px; }
.bod-som strong.samen { color: var(--hart-inkt); }
.bod-keuzes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bod-keuze { display: grid; justify-items: center; gap: 0; padding: 10px 6px; border-radius: 14px; background: var(--zee-licht); color: var(--zee-donker); border: 2px solid transparent; transition: transform .15s var(--veer), background .2s, border-color .2s; }
.bod-keuze strong { font-family: var(--titel); font-weight: 600; font-size: 20px; }
.bod-keuze span { font-size: 12px; font-weight: 700; opacity: .8; }
.bod-keuze:active { transform: scale(.95); }
.bod-keuze.aan { background: var(--zee); color: #fff; border-color: var(--boter); animation: plop .3s var(--veer); }
.bod-pct { font-family: var(--titel); font-weight: 600; font-size: 20px; color: var(--groen); }
.bod-pct.hoog { color: #b4600f; }
.bod-stand { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 12px; border-radius: 12px; background: #e2f1e4; color: #2f6b3c; font-size: 14px; font-weight: 600; }
.bod-stand.hoog { background: var(--boter-licht); color: #8a5a10; }
.bod-uitleg { margin: 0; }
.referentie.pct div { background: var(--boter-licht); }
.pct-veld { display: inline-flex; align-items: center; gap: 4px; }
.pct-veld input { width: 56px; padding: 6px 8px; border-radius: 8px; border: 1.5px solid var(--lijn); background: var(--wit); text-align: center; font-size: 15px; }
.bod-instelling { align-items: center; }

/* Scannen: drie in één, met een lijstje */
.scanner { display: grid; gap: 10px; }
.scanner .camera-vak.kaartvorm { aspect-ratio: 4 / 5; max-height: 52vh; max-height: 52dvh; }
.scanner.compact .camera-vak.kaartvorm { aspect-ratio: 4 / 3; max-height: 32vh; max-height: 32dvh; }
.scanner.compact .zoeker.kaart { width: 46%; }
.camera-status { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 2; display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 80px);
  padding: 7px 12px; border-radius: 999px; background: rgba(36, 26, 11, .62); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.draaier.klein { width: 14px; height: 14px; border-width: 2px; border-color: rgba(255, 255, 255, .35); border-top-color: #fff; }
.zoeker .scanlijn { position: absolute; left: 6%; right: 6%; top: 8%; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--boter), transparent); box-shadow: 0 0 12px var(--boter); opacity: .85; animation: scanlijn 2.4s ease-in-out infinite; }
.zoeker.leest span { border-color: #fff; }
.zoeker.leest .scanlijn { animation-duration: .9s; background: linear-gradient(90deg, transparent, #fff, transparent); }
@keyframes scanlijn { 0%, 100% { top: 8%; } 50% { top: 90%; } }
.camera-vak.flits.qr::after { background: rgba(243, 201, 129, .5); }
.camera-vak.flits.foto::after { background: rgba(255, 255, 255, .6); }
.scanner-knoppen { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.sluiter.klein { width: 56px; height: 56px; border-width: 3px; padding: 3px; }
.auto-schakel { position: absolute; top: 10px; left: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 6px; border-radius: 999px;
  background: rgba(36, 26, 11, .55); color: #fff; font-size: 12.5px; font-weight: 700; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.auto-schakel input { appearance: none; width: 32px; height: 19px; border-radius: 10px; background: rgba(255, 255, 255, .3); position: relative; transition: background .25s; margin: 0; cursor: pointer; flex: none; }
.auto-schakel input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .3s var(--veer); }
.auto-schakel input:checked { background: var(--groen); }
.auto-schakel input:checked::after { transform: translateX(13px); }
.lamp { top: 10px; bottom: auto; }
.typ-code { align-items: center; padding: 0 0 0 12px; border-radius: 14px; background: var(--wit); border: 1.5px solid var(--lijn); color: var(--inkt-3); }
.typ-code .code-veld.klein { border: 0; background: none; text-align: left; font-size: 17px; padding: 12px 8px; min-width: 0; }
.typ-code .code-veld.klein::placeholder { font-family: var(--tekst); font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 15px; color: var(--inkt-3); }
.scan-leeg { padding: 4px 4px 12px; font-size: 14px; color: var(--inkt-2); }
.scan-leeg p { margin: 0; }
.scan-lijst { display: grid; gap: 8px; padding: 12px; border-radius: 20px; background: var(--room); box-shadow: var(--schaduw); animation: omhoog-zacht .4s var(--veer); }
@keyframes omhoog-zacht { from { opacity: 0; transform: translateY(20px); } }
.scan-lijst-kop { display: flex; justify-content: space-between; align-items: center; padding: 0 4px; }
.scan-lijst-kop h2 { font-size: 19px; }
.scan-lijst-kop h2 span { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; margin-left: 4px; border-radius: 12px; background: var(--zee); color: #fff; font-size: 13px; vertical-align: 2px; }
.scan-lijst ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.scan-actie { position: sticky; bottom: calc(82px + var(--onder)); z-index: 4; margin: 0 -12px -12px; padding: 12px; border-radius: 0 0 20px 20px; background: linear-gradient(rgba(255, 248, 239, 0), var(--room) 30%); }
.scan-item { animation: tegel-in .35s var(--veer) backwards; }
.scan-rij { display: flex; align-items: center; gap: 8px; }
.scan-rij-knop { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 8px; border-radius: 14px; background: var(--wit); text-align: left; }
.scan-rij-knop .rechts { flex: none; }
.scan-labels { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.via { font-size: 10.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; padding: 2px 6px; border-radius: 6px; background: rgba(59, 42, 18, .07); color: var(--inkt-2); }
.via.foto { background: var(--boter-licht); color: #8a6420; }
.scan-kaart { display: grid; gap: 8px; padding: 8px; border-radius: 14px; background: var(--wit); }
.scan-kaart .res-tekst { flex: 1; }
.scan-foto { width: 44px; height: 60px; object-fit: cover; border-radius: 6px; flex: none; }
.scan-keuzes { display: grid; gap: 6px; }
.scan-keuze { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--perzik); text-align: left; transition: transform .15s var(--veer); }
.scan-keuze:active { transform: scale(.98); }
.scan-keuze span { display: grid; min-width: 0; }
.scan-keuze em { font-style: normal; font-size: 13px; color: var(--inkt-2); }
.scan-keuze.ex { justify-content: flex-start; }
.scan-keuze.ex .rechts { margin-left: auto; font-family: var(--titel); font-weight: 600; }
.scan-keuze.al { opacity: .45; }
.foto-keuze { gap: 8px; }

/* ── Na de designer-review ─────────────────────────────────────────────── */
/* Formulieren lopen nooit breder dan de sheet; velden naast elkaar starten op dezelfde hoogte. */
.formulier { grid-template-columns: minmax(0, 1fr); }
.veld { align-content: start; }
.cm-links .knop { white-space: normal; text-align: center; line-height: 1.25; padding-top: 8px; padding-bottom: 8px; }
/* De hoofdknop van een sheet blijft onderaan in duimbereik. */
.sheet-actie { position: sticky; bottom: 0; z-index: 3; display: grid; gap: 8px; margin: 0 -16px calc(-24px - var(--onder)); padding: 16px 16px calc(14px + var(--onder));
  background: linear-gradient(rgb(var(--perzik-rgb) / 0), var(--perzik) 30%); }
/* Beheer: compactere kop; zoeken en filters blijven bovenaan staan tijdens het scrollen. */
.merkbalk img { height: 30px; }
.kop > div:first-child { min-width: 0; }
.kop h1 { font-size: 26px; }
.kop-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.filterbalk { position: sticky; top: 0; z-index: 12; display: grid; gap: 8px; margin: -4px -16px 0; padding: 8px 16px;
  background: rgb(var(--perzik-rgb) / .86); backdrop-filter: saturate(1.5) blur(12px); -webkit-backdrop-filter: saturate(1.5) blur(12px); }
.app:has(.demo-band) .filterbalk, .app:has(.offline-band) .filterbalk { top: calc(25px + var(--boven)); }
.chips, .categorieen { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.werkbalk .knop.prijsknop { min-height: 40px; font-size: 15px; }
/* Kassa */
.kassa { padding-bottom: 32px; }
.regel-tekst > strong { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.2; }
.regel .code { font-size: 11.5px; color: var(--inkt-3); }
.prijs-knop strong { border-bottom: 1.5px dashed rgba(76, 127, 135, .5); line-height: 1.15; }
.bod-kop .segment { max-width: none; flex: 1 1 100%; }
.beurs-balk .afsluit-knop { margin-left: auto; color: var(--boter); }
@media (max-width: 400px) { .markt .prijsrij { grid-template-columns: repeat(2, 1fr); } }
.sheet:focus { outline: none; }

/* ── Omgevingen, team en pincode ───────────────────────────────────────── */
.merk-rechts { display: flex; align-items: center; gap: 8px; min-width: 0; }
.aanwezigen { display: flex; align-items: center; padding: 2px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--zee); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .02em;
  box-shadow: 0 0 0 2.5px var(--perzik); animation: plop .4s var(--veer) backwards; }
.aanwezigen .avatar + .avatar { margin-left: -8px; }
.avatar.elders { background: var(--room); color: var(--zee-donker); box-shadow: 0 0 0 2.5px var(--perzik), inset 0 0 0 1.5px var(--zee); }
.omgeving-pil { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border-radius: 999px; background: var(--omgeving); color: var(--room); font-size: 13px; font-weight: 700; max-width: 190px; }
.omgeving-pil span:not(.stip) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.omgeving-pil .stip, .stip { width: 8px; height: 8px; border-radius: 50%; background: #7bd88f; flex: none; animation: knipper 1.6s ease-in-out infinite; }
.stip.groen { display: inline-block; }
.omgeving-keuze { display: grid; gap: 8px; }
.omgeving-optie { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--wit); text-align: left; border: 2px solid transparent; transition: border-color .2s, transform .15s var(--veer); }
.omgeving-optie:active { transform: scale(.98); }
.omgeving-optie.aan { border-color: var(--zee); }
.omgeving-optie svg { color: var(--zee); margin-left: auto; }
.omgeving-bol { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--boter); color: var(--inkt); font-family: var(--titel); font-weight: 600; flex: none; }
.omgeving-tekst { display: grid; gap: 1px; }
.aanwezig-rij { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.omgeving-rij { align-items: center; }
.omgeving-wissel { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--inkt); padding: 4px 0; }
.omgeving-wissel svg { color: var(--zee); }
.omgeving-wissel:disabled { opacity: 1; }
.leeg-bol { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--lijn); display: inline-block; }
.klein-schakel { gap: 8px; font-size: 13px; }

.login-terug { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; color: var(--zee-donker); font-weight: 600; font-size: 14px; text-decoration: none; padding: 6px 2px; }
.login .tekstknop.zacht { color: var(--inkt-2); font-weight: 500; }
.pin-veld { letter-spacing: .3em; font-size: 22px !important; text-align: center; }
.pinpad { display: grid; justify-items: center; gap: 12px; width: 100%; max-width: 320px; }
.pinpad .login-sub { margin: -6px 0 0; text-align: center; }
.pin-bollen { display: flex; gap: 14px; margin: 8px 0 0; }
.pin-bollen span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--zee); transition: background .15s, transform .2s var(--veer); }
.pin-bollen span.vol { background: var(--zee); transform: scale(1.1); }
.pin-bollen.schud { animation: schud .45s ease both; }
.pin-fout { min-height: 20px; margin: 0; text-align: center; }
.pin-toetsen { display: grid; grid-template-columns: repeat(3, 76px); gap: 14px 22px; justify-content: center; }
.pin-toetsen button { width: 76px; height: 76px; border-radius: 50%; background: var(--room); box-shadow: var(--schaduw); font-family: var(--titel); font-size: 30px; font-weight: 600; color: var(--inkt);
  transition: transform .12s var(--veer), background .2s; }
.pin-toetsen button:active { transform: scale(.9); background: var(--zee-licht); }
.pin-toetsen .pin-weg { background: none; box-shadow: none; color: var(--inkt-2); display: grid; place-items: center; }
.pin-in-sheet { display: grid; justify-items: center; padding: 8px 0 16px; }

/* Set kiezen met logo's */
.setkeuze-knop { display: inline-flex; align-items: center; gap: 6px; }
.setkeuze-knop .set-mini { height: 18px; width: auto; max-width: 64px; object-fit: contain; }
.set-logo-tekst { font-family: var(--titel); font-weight: 600; font-size: 15px; line-height: 1.15; text-align: center; color: var(--inkt); }
.set-logo-tekst.klein { font-size: 13px; }
.set-sheet .sheet-inhoud { gap: 12px; }
.set-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: 10px; }
.set-tegel { display: grid; justify-items: center; align-content: start; gap: 6px; padding: 12px 10px 10px; border-radius: 16px; background: var(--wit); box-shadow: var(--schaduw); border: 2px solid transparent;
  text-align: center; animation: tegel-in .35s var(--veer) backwards; animation-delay: calc(var(--i, 0) * 18ms); transition: transform .2s var(--veer), border-color .2s; }
.set-tegel:active { transform: scale(.96); }
@media (hover: hover) { .set-tegel:hover { transform: translateY(-3px); } }
.set-tegel.aan { border-color: var(--zee); }
.set-tegel.alle { justify-content: center; align-content: center; min-height: 112px; background: var(--boter-licht); }
.set-logo-vak { height: 56px; width: 100%; display: grid; place-items: center; }
.set-logo { max-height: 56px; max-width: 100%; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .15)); }
.set-naam { font-size: 13px; font-weight: 700; line-height: 1.2; }
.set-tegel em { font-style: normal; font-size: 12px; color: var(--inkt-2); }

/* Waarschuwing: hartje onder de aankoopprijs */
.onder-aankoop { display: grid; gap: 8px; padding: 14px; border-radius: var(--rond); background: var(--boter-licht); border: 2px solid var(--boter); animation: schud .45s .1s ease both; }
.onder-aankoop-kop { display: flex; gap: 8px; align-items: flex-start; color: #7a4f0c; }
.onder-aankoop p { margin: 0; font-size: 14px; color: var(--inkt-2); }
.melding-kaart .onder-aankoop-tip { margin-top: 4px; padding: 6px 8px; border-radius: 10px; background: rgb(255 255 255 / .18); font-weight: 600; opacity: 1; }
.detail-plaats .onder-aankoop { margin-top: 8px; }

/* Kassa: kanten en marge (enkel voor beheerders, oogje aan/uit) */
.kant-kop { align-items: flex-start; }
.kant-kop > div:first-child { display: grid; gap: 0; }
.kant-kop-knoppen { display: flex; align-items: center; gap: 6px; flex: none; }
.marge-knop { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--inkt-2); background: var(--wit); border: 1.5px dashed var(--lijn); }
.marge-knop.aan { color: #fff; background: var(--zee); border: 1.5px solid var(--zee); }
.regel-marge { font-size: 12.5px; font-weight: 700; color: var(--groen); }
.regel-marge.min { color: var(--hart); }
.regel-marge.onbekend { color: var(--inkt-3); font-weight: 500; }
.marge-rij { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 10px; border-radius: 12px; background: #e6f1e6; color: var(--groen); font-weight: 700; }
.marge-rij strong { font-family: var(--titel); font-size: 18px; }
.marge-rij small { font-size: 13px; font-weight: 600; }
.marge-rij.min { background: #fbe2de; color: var(--hart); }
.marge-rij.onbekend { background: transparent; color: var(--inkt-3); font-weight: 500; font-size: 13px; margin: 0; }

/* Komende beurzen (overzicht) */
.blok-kop { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.komend-rij { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.komend-datum { display: grid; place-items: center; width: 46px; height: 50px; flex: none; border-radius: 12px; background: var(--zee-licht); color: var(--zee-donker); font-size: 12px; font-weight: 700; text-transform: uppercase; line-height: 1; }
.komend-datum strong { font-family: var(--titel); font-size: 20px; }
.komend-rij .lijst-naam { flex: 1; min-width: 0; display: grid; gap: 2px; white-space: normal; }
.komend-rij > .rechts { color: var(--inkt-3); flex: none; }
.lijst-knop.komend-rij { padding: 8px 12px 8px 8px; }
.komend-link { display: inline-flex; align-items: center; gap: 4px; color: var(--zee-donker); }
/* Profiel: wat niet kan tijdens een beurs */
.profiel-tegel.uit { opacity: .55; }
.klant-schakel { display: grid; gap: 4px; padding: 10px 12px; border-radius: 14px; background: var(--zee-licht); }
.op-klant { color: var(--zee-donker); white-space: nowrap; }
.op-klant svg { vertical-align: -2px; }
/* De kaart in het groot (tik op de foto in een detail) */
.kaart-groot { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; align-content: center; gap: 14px; padding: calc(var(--boven) + 56px) 16px calc(var(--onder) + 28px);
  background: rgba(28, 20, 8, .86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: vervaag .2s ease both; cursor: zoom-out; }
.kaart-groot-kaart { width: min(92vw, calc((100vh - 190px) * .716), 560px); width: min(92vw, calc((100dvh - 190px) * .716), 560px); animation: groot-in .32s var(--veer) both; }
.kaart-groot-kaart .foto { border-radius: 4.5% / 3.2%; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.kaart-groot-sluit { position: absolute; top: calc(var(--boven) + 12px); right: 16px; background: rgba(255, 255, 255, .92); }
.kaart-groot-tekst { display: grid; gap: 2px; text-align: center; color: #fff; }
.kaart-groot-tekst strong { font-family: var(--titel); font-weight: 600; font-size: 19px; }
.kaart-groot-tekst span { font-size: 13.5px; opacity: .8; }
.detail-foto[role="button"] { cursor: zoom-in; }
.detail-foto[role="button"]:focus-visible { outline: 3px solid var(--zee); outline-offset: 4px; }
@keyframes groot-in { from { transform: scale(.82); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .kaart-groot, .kaart-groot-kaart { animation: none; } }
/* Historiek: waar een transactie gebeurde (beurs, online, rommelmarkt …) */
.tr-waar { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 999px; background: var(--perzik); color: var(--inkt-2); font-style: normal; font-size: 11.5px; font-weight: 600; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: -3px; }
.tr-waar.beurs { background: var(--zee-licht); color: var(--zee-donker); }
.tr-waar.vendor { background: var(--boter-licht); color: #8a6420; }
.profiel-tegel.breed { grid-column: 1 / -1; }
.profiel-tegel.beurzen svg { color: var(--hart); }
.sync-rij { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: 14.5px; }
.sync-rij .sync-stip { width: 10px; height: 10px; border-radius: 50%; background: var(--groen); flex: none; }
.sync-rij .sync-stip.wacht { background: var(--boter); box-shadow: 0 0 0 3px var(--boter-licht); }
.sync-rij .sync-stip.offline { background: var(--inkt-3); }
.tekstknop.rood { color: var(--hart); }
.beurs-volgende { display: block; margin-top: 2px; font-size: 13px; color: var(--zee-donker); font-weight: 600; }
.beurs-balk.leeg .tekstknop { justify-self: start; padding: 2px 0; min-height: 0; }

/* Grote kaartfoto in een detail: zweeft zacht, en draait mee met je vinger of muis (lib/kantel.ts, kantelVrij).
   Buitenste laag zweeft, binnenste kantelt: zo veert de kaart vloeiend terug als je loslaat. */
.zweeft { animation: kaart-zweef 5s ease-in-out infinite; }
.zweeft:has(.kantelt) { animation-play-state: paused; }
@keyframes kaart-zweef { 0%, 100% { transform: perspective(900px) rotateY(-4deg) rotateX(2deg); } 50% { transform: perspective(900px) rotateY(4deg) rotateX(-1deg); } }
.kantel-vlak { position: relative; border-radius: inherit; touch-action: pinch-zoom; /* draaien met één vinger, inzoomen met twee */ -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--groei, 1)); transition: transform .6s var(--veer); }
.kantel-vlak.kantelt { transition: transform .06s linear; --groei: 1.03; }
.kantel-vlak.kantelt .glans { opacity: 1; }
.kantel-vlak img { -webkit-user-drag: none; pointer-events: none; }
.detail-foto { position: relative; border-radius: 12px; }
.detail-foto .foto { box-shadow: 0 14px 30px rgba(59, 42, 18, .22); }
.detail-foto.holo .glans {
  opacity: .4; animation: glimmer 4s ease-in-out infinite;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 50%),
    linear-gradient(115deg, transparent 20%, rgba(243, 201, 129, .55) 36%, rgba(168, 216, 208, .55) 46%, rgba(231, 181, 216, .55) 56%, transparent 72%);
  background-size: 100% 100%, 250% 250%; mix-blend-mode: color-dodge;
}
/* Tegels op een gsm: kantelen zolang je vinger erop drukt, met glans. */
.tegel.gedrukt .glans { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .zweeft { animation: none; } }

/* Grapjes */
.gelukt-grapje { margin: -4px 0 4px; color: var(--inkt-2); font-style: italic; text-align: center; max-width: 30ch; justify-self: center; animation: omhoog-zacht .5s .25s var(--veer) both; }
.set-trend .set-grapje { display: block; flex: none; margin-top: 2px; font-size: 13px; font-style: italic; }
.pin-veld::placeholder { letter-spacing: normal; font-size: 17px; }
.set-embleem { display: grid; place-items: center; min-width: 52px; height: 52px; padding: 0 8px; border-radius: 26px; background: var(--zee); color: var(--room); font-family: var(--titel); font-weight: 600; font-size: 16px; letter-spacing: .04em; box-shadow: inset 0 0 0 2px var(--room), 0 0 0 2px var(--zee); }
.set-tegel.aan .set-embleem { background: var(--inkt); box-shadow: inset 0 0 0 2px var(--room), 0 0 0 2px var(--inkt); }
.kant-kop { flex-wrap: wrap; row-gap: 6px; }
.kant-kop h2 { white-space: nowrap; }
.kant-kop-knoppen { margin-left: auto; }
.login:has(.pinpad) .login-logo img { width: 128px; height: auto; }

/* Exemplaar: waarom klanten deze kaart (nog) niet zien */
.klant-ziet { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-radius: 14px; background: var(--zee-licht); color: var(--zee-donker); font-size: 14px; }
.klant-ziet span { flex: 1; min-width: 180px; }

/* Tegels in één rij even hoog, met de prijs altijd onderaan op dezelfde lijn. */
.tegel-info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.tegel-onder { margin-top: auto; padding-top: 3px; }

/* ── Kassa: beurs bezig, live cijfers en historiek ─────────────────────────── */
.tab-live { position: absolute; top: -2px; right: 6px; width: 10px; height: 10px; border-radius: 50%; background: #3fb06a; box-shadow: 0 0 0 2px var(--room); animation: knipper 1.6s ease-in-out infinite; }
.beurs-live { display: inline-flex; align-items: center; gap: 7px; margin: 6px 0 0; padding: 5px 12px 5px 10px; border-radius: 999px; background: #dff1e3; color: #2f6b40; font-size: 14px; font-weight: 700; max-width: 100%; }
.live-stip { width: 9px; height: 9px; border-radius: 50%; background: #3fb06a; flex: none; box-shadow: 0 0 0 0 rgba(63, 176, 106, .6); animation: live 1.8s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(63, 176, 106, .55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(63, 176, 106, 0); } }
.kassa .beurs-balk:not(.leeg) { box-shadow: 0 0 0 3px #bfe3c9, var(--schaduw); }
.pil-knop { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 14px; border-radius: 999px; background: var(--room); color: var(--inkt); font-weight: 700; font-size: 14px; box-shadow: var(--schaduw); }
.beurs-meer { flex: 1 1 100%; display: flex; align-items: center; justify-content: center; gap: 6px; margin: 2px -4px -4px; padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, .1); color: var(--boter); font-weight: 700; font-size: 14px; }
.beurs-meer svg { transition: transform .3s var(--veer); }
.beurs-meer.open svg { transform: rotate(180deg); }

.beurs-dashboard { display: grid; gap: 10px; padding: 14px; border-radius: var(--rond); background: var(--room); box-shadow: var(--schaduw); animation: verschijn .35s var(--veer) both; }
.bd-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bd-tegel { display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--wit); }
.bd-tegel.groot { grid-column: 1 / -1; }
.bd-tegel strong { font-family: var(--titel); font-weight: 600; font-size: 22px; line-height: 1.1; }
.bd-tegel.groot strong { font-size: 30px; }
.bd-tegel em { font-style: normal; font-size: 13px; color: var(--inkt-2); }
.bd-kop { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.bd-tegel.verkoop .bd-kop { color: var(--groen); }
.bd-tegel.inkoop .bd-kop { color: #b4532a; }
.bd-tegel.ruil .bd-kop { color: var(--zee); }
.bd-soorten { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.bd-soort { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--perzik); }
.bd-soort svg { grid-row: 1 / 3; color: var(--zee); }
.bd-soort em { font-style: normal; font-size: 13px; color: var(--inkt-2); }
.bd-regels .afsluit-rij { font-size: 14px; }
.bd-titel { font-size: 16px; margin: 4px 0 0; }
.groen-tekst { color: var(--groen); }
.rood-tekst { color: var(--hart); }

/* Transacties met een pijltje per soort */
.tr-icoon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.tr-icoon.verkoop { background: #dff1e3; color: var(--groen); }
.tr-icoon.inkoop { background: #fbe4d8; color: #b4532a; }
.tr-icoon.ruil { background: var(--zee-licht); color: var(--zee-donker); }
.tr-icoon.retour { background: #ece5da; color: var(--inkt-2); }
.transactie-tekst > strong { display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; }
.tr-merk { font-style: normal; font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 6px; background: #ece5da; color: var(--inkt-2); }
.tr-merk.rood { background: var(--hart); color: #fff; }
.transactie-bedrag.plus strong { color: var(--groen); }
.transactie-bedrag.min strong { color: #b4532a; }
.filterchips { margin-top: 4px; }
.filterchips .chip { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.dag-groep { display: grid; gap: 6px; }
.dag-kop { font-size: 15px; margin: 8px 0 0; text-transform: capitalize; }
.dag-kop .zacht { text-transform: none; font-weight: 500; }
.beurs-rij { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--wit); text-align: left; }
.beurs-rij .lijst-naam { flex: 1; min-width: 0; display: grid; }
.beurs-rij.actief { box-shadow: inset 0 0 0 2px #bfe3c9; }
.beurs-rij-bedrag { display: grid; justify-items: end; }
.beurs-rij-bedrag strong { font-family: var(--titel); font-weight: 600; font-size: 17px; }
.beurs-rij-bedrag em { font-style: normal; font-size: 12px; color: var(--inkt-2); }

/* Meer: snelle tegels bovenaan */
.meer-tegels { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.meer-tegel { display: grid; gap: 4px; align-content: start; justify-items: start; padding: 14px; border-radius: var(--rond); background: var(--room); box-shadow: var(--schaduw); text-align: left; color: var(--inkt); }
.meer-tegel:first-child { grid-column: 1 / -1; background: var(--zee); color: var(--room); }
.meer-tegel:first-child span { color: rgba(255, 253, 248, .85); }
.meer-tegel svg { color: var(--zee); }
.meer-tegel:first-child svg { color: var(--boter); }
.meer-tegel strong { font-family: var(--titel); font-weight: 600; font-size: 18px; }
.meer-tegel span { font-size: 13px; color: var(--inkt-2); line-height: 1.3; }

/* Artikels */
.artikel-types { margin-bottom: 2px; }
.artikel-types .chip { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.chip-aantal { min-width: 20px; padding: 0 6px; border-radius: 10px; background: rgba(59, 42, 18, .1); font-size: 12px; }
.chip.aan .chip-aantal { background: rgba(255, 255, 255, .25); }
.artikel-lijst { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.artikel-rij { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; background: var(--wit); text-align: left; }
.artikel-rij.op { opacity: .55; }
.artikel-rij-tekst { flex: 1; min-width: 0; display: grid; gap: 1px; }
.artikel-rij-tekst > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.artikel-rij-aantal { display: grid; justify-items: center; flex: none; min-width: 44px; }
.artikel-rij-aantal strong { font-family: var(--titel); font-weight: 600; font-size: 22px; line-height: 1; }
.artikel-rij-aantal em { font-style: normal; font-size: 12px; color: var(--inkt-2); }
.artikel-foto { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; background: var(--perzik); }
.artikel-foto.leeg { display: grid; place-items: center; color: var(--zee); background: var(--zee-licht); }
.artikel-foto.groot { width: 112px; height: 112px; border-radius: 18px; }
.artikel-kop { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.artikel-kop-tekst { display: grid; gap: 4px; }
.artikel-kop-tekst p { margin: 0; }
.artikel-mandje { grid-column: 1 / -1; }
.foto-kiezer { display: flex; align-items: center; gap: 12px; }
.foto-kiezer img, .foto-kiezer-leeg { width: 84px; height: 84px; border-radius: 14px; object-fit: cover; flex: none; }
.foto-kiezer-leeg { display: grid; place-items: center; background: var(--zee-licht); color: var(--zee); border: 2px dashed rgba(76, 127, 135, .35); }
.foto-kiezer-knoppen { display: grid; gap: 4px; justify-items: start; }
.sealed-zoeker { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: var(--wit); }
.sealed-prijs { display: grid; gap: 8px; }
.markt-cijfers.klein { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.markt-cijfers.klein > div { display: grid; padding: 8px; border-radius: 10px; background: var(--wit); }
.markt-cijfers.klein span { font-size: 12px; color: var(--inkt-2); }
.tekstknop.inline { display: inline; padding: 0; min-height: 0; }
.artikel-vlak.met-foto { overflow: hidden; }
.artikel-vlak.met-foto > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.artikel-vlak .artikel-aantal { z-index: 3; }

/* Bod: slider van 65 tot 95% en afronden */
.bod-keuzes { grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); }
.bod-slider { display: grid; gap: 4px; }
.bod-slider-kop { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 700; color: var(--inkt-2); }
.bod-slider-kop strong { font-family: var(--titel); font-weight: 600; font-size: 26px; color: var(--zee-donker); }
.bod-slider input[type="range"] { width: 100%; height: 34px; accent-color: var(--zee); margin: 0; }
.bod-schaal { display: flex; justify-content: space-between; padding: 0 2px; font-size: 11px; font-weight: 700; color: var(--inkt-3); }
.regel-markt { display: block; font-family: var(--tekst); font-size: 11.5px; font-weight: 600; color: var(--inkt-2); white-space: nowrap; }

/* Kaart van de klant: idee van de markt en de marktwaarde */
.markt-idee { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: var(--wit); }
.markt-idee .knop { justify-self: start; }
.euro-invoer.groot-invoer input { font-size: 26px; font-family: var(--titel); font-weight: 600; }

/* Graded: velden, links naar verkochte advertenties, laatste verkopen */
.graded-velden { display: grid; gap: 10px; }
.sold-links { display: flex; flex-wrap: wrap; gap: 6px; }
.sold-links .knop { min-height: 36px; padding: 0 12px; font-size: 13px; }
.verkopen-blok { display: grid; gap: 10px; }
.verkopen { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.verkopen li { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 6px 6px 6px 12px; border-radius: 12px; background: var(--wit); }
.verkopen strong { font-family: var(--titel); font-weight: 600; }
.verkoop-invoer { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.verkoop-invoer input[type="date"], .verkoop-invoer select { min-height: 44px; }
.verkoop-invoer .euro-invoer.mini { width: auto; }
.schatting { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: #e2f1e4; color: #2f6b3c; font-weight: 600; }
.schatting strong { font-family: var(--titel); font-size: 22px; }

/* Slab: de kaart in een doorzichtige hoes met een label bovenaan (grader en grade) */
.slab-hoes { position: relative; padding: 30px 7px 7px; border-radius: 12px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .96), rgba(222, 233, 238, .92));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .95), inset 0 0 0 3.5px rgba(110, 135, 148, .35), 0 3px 10px rgba(59, 42, 18, .14); }
.slab-hoes::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .45) 45%, rgba(255, 255, 255, 0) 60%); }
.slab-label { position: absolute; top: 6px; left: 7px; right: 7px; height: 19px; display: flex; align-items: stretch; overflow: hidden; border-radius: 5px; background: #fff; box-shadow: 0 0 0 1px rgba(59, 42, 18, .18); font-size: 11px; line-height: 19px; }
.slab-label b { padding: 0 7px; background: var(--inkt); color: var(--boter); font-weight: 800; letter-spacing: .04em; }
.slab-label em { flex: 1; text-align: right; padding: 0 7px; font-style: normal; font-family: var(--titel); font-weight: 600; font-size: 14px; color: var(--inkt); }
.slab-hoes .foto, .slab-hoes .foto-vak { border-radius: 6px; }
.slab-hoes.groot { padding: 44px 10px 10px; border-radius: 16px; }
.slab-hoes.groot .slab-label { top: 9px; left: 10px; right: 10px; height: 27px; line-height: 27px; font-size: 14px; }
.slab-hoes.groot .slab-label em { font-size: 19px; }
.tegel.slab { background: linear-gradient(180deg, var(--room), #f1ede6); }
.bod-instelling select { width: auto; min-width: 92px; min-height: 40px; padding: 4px 10px; border-radius: 10px; }

/* ── Na de UI-review: ruimte boven de scanknop, grotere tikvlakken, rustige euro-velden ── */
.app { padding-bottom: calc(112px + var(--onder)); }
.rond-knop { width: 40px; height: 40px; }
.rond-knop::before { content: ""; position: absolute; inset: -4px; }
.chip { min-height: 40px; }
.marge-knop { min-height: 40px; }
.prijs-knop { min-height: 44px; align-content: center; }
.toast button { min-height: 44px; padding: 0 12px; }
.stapper button { width: 44px; height: 40px; }
/* Een euro-veld is neutraal; enkel het hartje (prijssticker) is rood. */
.euro-invoer { border-color: var(--lijn); color: var(--inkt-2); }
.euro-invoer:focus-within { border-color: var(--zee); }
.hartje-blok .euro-invoer, .mandje-actie .euro-invoer { border-color: var(--hart); color: var(--hart); }
.bod-pct { color: #2f6b3c; }
/* Duim van de bod-slider groot genoeg voor een vinger */
.bod-slider input[type="range"] { -webkit-appearance: none; appearance: none; height: 34px; background: transparent; }
.bod-slider input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--zee-licht), var(--zee)); }
.bod-slider input[type="range"]::-moz-range-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--zee-licht), var(--zee)); }
.bod-slider input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: var(--room); border: 3px solid var(--zee); box-shadow: 0 3px 8px rgba(59, 42, 18, .25); }
.bod-slider input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--room); border: 3px solid var(--zee); box-shadow: 0 3px 8px rgba(59, 42, 18, .25); }
.dag-kop { text-transform: none; }
.dag-kop::first-letter { text-transform: uppercase; }
.gelukt .knoppenrij { width: 100%; }
.gelukt .volgende-klant { width: 100%; }
.beurs-balk.compact { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 14px; text-align: left; font-size: 14px; color: var(--room); }
.beurs-balk.compact strong { font-family: var(--titel); font-weight: 600; font-size: 17px; color: var(--boter); }
.beurs-balk.compact svg { margin-left: auto; color: var(--boter); }

/* ── 0.6: voorraad in de kassa, zonder eerst te typen ─────────────────────── */
.zoeker-chips { align-items: center; margin-top: 10px; margin-bottom: 4px; }
.zoeker-telling { flex: none; margin-left: 4px; white-space: nowrap; }
.pil-klein { display: inline-block; padding: 3px 8px; border-radius: 999px; background: var(--boter); color: var(--inkt); font-size: 12px; font-weight: 700; white-space: nowrap; }
.resultaten li.in-mand > button { opacity: .65; }
.knop.breed { width: 100%; margin-top: 10px; }

/* ── 0.6: per kaart een eigen percentage ──────────────────────────────────── */
.pct-stapper { display: inline-flex; align-items: center; gap: 2px; margin-top: 4px; padding: 2px; border-radius: 999px; background: var(--zee-licht); color: var(--zee-donker); font-size: 13px; font-weight: 800; width: max-content; }
.pct-stapper > button:not(.pct-terug) { width: 30px; height: 30px; border-radius: 50%; font-size: 18px; font-weight: 700; color: inherit; }
.pct-stapper > button:disabled { opacity: .35; }
.pct-stapper > span { min-width: 40px; text-align: center; }
.pct-stapper.eigen { background: var(--zee); color: #fff; animation: plop .3s var(--veer); }
.pct-terug { padding: 0 10px 0 4px; font-size: 12px; font-weight: 700; color: inherit; text-decoration: underline; }
.bod-slider-baan { position: relative; display: block; }
.bod-slider-kop strong small { font-family: var(--tekst); font-size: 13px; font-weight: 700; color: var(--inkt-3); margin-right: 2px; }

/* ── 0.6: navigatie (Profiel, tandwiel) en animaties ──────────────────────── */
.tandwiel-knop { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--room); color: var(--inkt-2); box-shadow: var(--schaduw); flex: none; transition: transform .45s var(--veer); }
.tandwiel-knop:active { transform: scale(.92); }
.tandwiel-knop.draai:active { transform: rotate(60deg) scale(.92); }
.merk-rechts { display: flex; align-items: center; gap: 8px; min-width: 0; }

/* Tabbalk: een duim die meeschuift naar de actieve tab */
/* De rand komt uit --tab-rand: op een groot scherm (Mac, tablet) staan de tabs in het midden, de duim dus ook. */
.tabbalk .tab-duim { position: absolute; z-index: 0; top: 10px; left: calc(var(--tab-rand, 6px) + (100% - 2 * var(--tab-rand, 6px)) / 5 * var(--tab) + ((100% - 2 * var(--tab-rand, 6px)) / 5 - 52px) / 2); width: 52px; height: 30px; border-radius: 15px; background: var(--zee-licht); transition: left .45s var(--veer), opacity .2s; pointer-events: none; }
.tabbalk .tab-duim.weg { opacity: 0; }
.tabbalk button { position: relative; z-index: 1; }
.tabbalk button.aan .tab-icoon { background: transparent; }
.tabbalk .scan-tab.aan .tab-icoon { background: var(--zee-donker); }
.tabbalk button.aan svg { animation: tab-hup .45s var(--veer); }
@keyframes tab-hup { 40% { transform: translateY(-3px) scale(1.12); } }

/* Een ander scherm schuift binnen van de kant van de tab */
.tab-inhoud.van-rechts { animation: van-rechts .32s var(--zacht-uit); }
.tab-inhoud.van-links { animation: van-links .32s var(--zacht-uit); }
@keyframes van-rechts { from { opacity: 0; transform: translateX(28px); } }
@keyframes van-links { from { opacity: 0; transform: translateX(-28px); } }

/* De eerste keer: logo hupt, de rest komt rustig omhoog, de tabbalk schuift erin */
.app.intro .merkbalk img { animation: intro-logo .7s var(--veer) both; }
.app.intro .merk-rechts > * { animation: omhoog-zacht .5s .35s var(--zacht-uit) both; }
.app.intro .tab-inhoud .scherm > * { animation: omhoog-zacht .5s var(--zacht-uit) both; }
.app.intro .tab-inhoud .scherm > :nth-child(2) { animation-delay: .08s; }
.app.intro .tab-inhoud .scherm > :nth-child(3) { animation-delay: .16s; }
.app.intro .tab-inhoud .scherm > :nth-child(n+4) { animation-delay: .24s; }
.app.intro .tabbalk { animation: intro-balk .6s .2s var(--veer) both; }
@keyframes intro-logo { 0% { transform: scale(.4) rotate(-12deg); opacity: 0; } 60% { transform: scale(1.12) rotate(3deg); opacity: 1; } }
@keyframes intro-balk { from { transform: translateY(100%); } }

/* Profiel */
/* Profiel: gewoon wie je bent, zonder kader (0.12). */
.profiel-kaart { display: flex; align-items: center; gap: 14px; padding: 6px 2px 4px; }
.profiel-avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--zee-licht); color: var(--zee-donker); font-family: var(--titel); font-weight: 600; font-size: 21px; animation: plop .45s var(--veer); }
.profiel-wie { min-width: 0; display: grid; gap: 2px; }
.profiel-wie h1 { font-size: 26px; line-height: 1.1; }
.profiel-wie .zacht { color: var(--inkt-3); font-size: 14px; margin: 0; overflow-wrap: anywhere; }
.profiel-kaart .beurs-live { margin: 2px 0 0; }
.profiel-tegels { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.profiel-tegel { position: relative; display: grid; gap: 4px; align-content: start; justify-items: start; padding: 14px; border-radius: var(--rond); background: var(--room); box-shadow: var(--schaduw); text-align: left; color: var(--inkt); animation: tegel-in .4s var(--zacht-uit) both; transition: transform .2s var(--veer); }
.profiel-tegel:active { transform: scale(.97); }
.profiel-tegel:nth-child(2) { animation-delay: .04s; } .profiel-tegel:nth-child(3) { animation-delay: .08s; } .profiel-tegel:nth-child(4) { animation-delay: .12s; } .profiel-tegel:nth-child(5) { animation-delay: .16s; }
.profiel-tegel svg { color: var(--zee); }
.profiel-tegel strong { font-family: var(--titel); font-weight: 600; font-size: 18px; }
.profiel-tegel span { font-size: 13px; color: var(--inkt-2); line-height: 1.3; }
.profiel-tegel.boekhouding { grid-column: 1 / -1; background: var(--boter-licht); }
.profiel-tegel.boekhouding svg { color: #8a6420; }
.profiel-tegel .tegel-badge { position: absolute; top: 10px; right: 10px; font-size: 12px; color: #fff; }
.omgeving-wissel.aan { color: var(--inkt); }
.instellingen { display: grid; gap: 18px; }

/* ── 0.6: eigen kaartfoto ─────────────────────────────────────────────────── */
.eigen-foto.geen { background: var(--boter-licht); }

/* ── 0.6: kassa, kas en borderel ──────────────────────────────────────────── */
.afreken-borderel { gap: 8px; padding: 12px 14px; }
.afreken-borderel-kop { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; width: 100%; }
.afreken-borderel-kop > span { display: grid; gap: 2px; }
.afreken-borderel-kop svg { transition: transform .25s var(--zacht-uit); flex: none; }
.afreken-borderel.open .afreken-borderel-kop svg { transform: rotate(180deg); }
.tegenpartij { display: grid; gap: 10px; }
.handtekening-mini { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.borderel-knop { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #e2f1e4; color: #2f6b3c; text-align: left; width: 100%; }
.borderel-knop > span { display: grid; gap: 1px; }
.borderel-knop .zacht { color: inherit; opacity: .85; }
.borderel-knop.mist { background: var(--boter-licht); color: #8a5a10; }
.borderel-stand { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.borderel-stand.ok { background: #e2f1e4; color: #2f6b3c; }
.borderel-stand.mist { background: var(--boter-licht); color: #8a5a10; }
.borderel-lijnen { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.borderel-lijnen li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--wit); }
.borderel-naam, .borderel-cijfers { display: grid; gap: 1px; }
.borderel-cijfers { text-align: right; justify-items: end; }
.handtekening-rij { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.handtekening-rij > div { display: grid; gap: 6px; align-content: start; }
.handtekening-leeg { display: grid; place-items: center; height: 64px; border-radius: 10px; border: 2px dashed var(--lijn); color: var(--inkt-3); font-size: 13px; }
.handtekening-beeld { width: 100%; height: auto; max-height: 90px; color: var(--inkt); background: var(--wit); border-radius: 10px; }
.handtekening-beeld.klein { width: 120px; max-height: 40px; }
.handtekening-vlak { width: 100%; height: auto; aspect-ratio: 3 / 1; touch-action: none; background: var(--wit); border-radius: 14px; box-shadow: inset 0 0 0 2px var(--lijn); color: var(--inkt); cursor: crosshair; }
.handtekening-lijn { stroke: var(--lijn); stroke-width: 2; stroke-dasharray: 8 6; }
.handtekening-hint { fill: var(--inkt-3); font-size: 26px; font-family: var(--tekst); }
.retour-blok { background: var(--boter-licht); }
.kassa .kop-knoppen { flex-wrap: wrap; justify-content: flex-end; }

/* ── 0.6: boekhouding ─────────────────────────────────────────────────────── */
.boek-gegevens { width: 100%; text-align: left; animation: none; }
.boek-gegevens-knop { display: inline-flex; align-items: center; gap: 6px; justify-self: start; margin-top: 4px; }
.jaar-teller { display: grid; gap: 6px; padding: 16px; border-radius: var(--rond); background: var(--wit); box-shadow: var(--schaduw); }
.jaar-kop { display: flex; justify-content: space-between; align-items: center; }
.jaar-kop select { width: auto; min-height: 34px; padding: 2px 10px; border-radius: 10px; }
.jaar-omzet { font-family: var(--titel); font-weight: 600; font-size: 32px; line-height: 1; }
.jaar-balk { height: 12px; border-radius: 6px; background: var(--perzik); overflow: hidden; }
.jaar-balk span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--zee-licht), var(--zee)); animation: balk-groei .8s var(--zacht-uit) both; transform-origin: left; }
.jaar-teller.dicht .jaar-balk span { background: linear-gradient(90deg, var(--boter-licht), var(--boter)); }
.jaar-teller.rand .jaar-balk span, .jaar-teller.over .jaar-balk span { background: linear-gradient(90deg, var(--hart-licht), var(--hart)); }
@keyframes balk-groei { from { transform: scaleX(0); } }
.boek-lijst { display: grid; gap: 8px; }
.boek-lijst .lijst { display: grid; gap: 6px; list-style: none; margin: 0; padding: 0; }
.boek-dag .lijst-naam, .boek-lijst .lijst-naam { display: grid; gap: 1px; min-width: 0; }
.boek-dag .lijst-naam strong::first-letter { text-transform: uppercase; }
.boek-bedrag { font-family: var(--titel); font-weight: 600; font-size: 17px; white-space: nowrap; }
.boek-vink { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--perzik); color: var(--inkt-3); }
.boek-vink.aan { background: #e2f1e4; color: #2f6b3c; }
.boek-vink.mist { background: var(--boter-licht); color: #8a5a10; }
.dexxter-blok { background: var(--zee-licht); }
.dexxter-lijnen { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dexxter-lijnen li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--wit); }
.dexxter-lijnen strong { font-family: var(--titel); font-weight: 600; font-size: 18px; }
.afsluit-rij.totaal { border-top: 1px solid var(--lijn); padding-top: 6px; font-weight: 700; }
.afsluit-rij.verschil strong { color: var(--hart-inkt); }
.voorraad-totaal { display: grid; justify-items: center; gap: 2px; padding: 14px; border-radius: var(--rond); background: var(--wit); box-shadow: var(--schaduw); text-align: center; }
.voorraad-totaal strong { font-family: var(--titel); font-weight: 600; font-size: 30px; }
.voorraad-lijn { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--wit); }
.voorraad-lijn .lijst-naam { display: grid; min-width: 0; }
.boek-uitleg { display: grid; gap: 8px; font-size: 15px; }
.boek-uitleg h3 { margin-top: 6px; }
.boek-uitleg ol, .boek-uitleg ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* ── 0.6: inzichten ──────────────────────────────────────────────────────── */
.inzicht-filter { display: grid; gap: 8px; }
.inzicht-filter select { min-height: 42px; border-radius: 12px; }
.inzicht-leeg { display: grid; justify-items: center; gap: 6px; padding: 30px 10px; text-align: center; }
.inzicht-kern { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kern { display: grid; gap: 1px; padding: 12px 14px; border-radius: var(--rond-klein); background: var(--wit); box-shadow: var(--schaduw); animation: tegel-in .4s var(--zacht-uit) both; }
.kern strong { font-family: var(--titel); font-weight: 600; font-size: 24px; line-height: 1.1; }
.kern:first-child { background: var(--zee); color: var(--room); }
.kern:first-child .zacht { color: rgba(255, 248, 239, .85); }
.inzicht-blok { display: grid; gap: 10px; padding: 14px; border-radius: var(--rond); background: var(--room); }
.inzicht-blok h3 { display: flex; align-items: center; gap: 6px; font-size: 17px; }
.inzicht-blok h3 svg { color: var(--zee); }
.inzicht-blok .lijst { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.inzicht-twee { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) { .inzicht-twee { grid-template-columns: 1fr 1fr; } .inzicht-kern { grid-template-columns: repeat(4, 1fr); } }
.balken { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.balken li { display: grid; grid-template-columns: minmax(0, 9em) 1fr auto; align-items: center; gap: 8px; font-size: 14px; }
.inzicht-blok.klein .balken li { grid-template-columns: minmax(0, 6.5em) 1fr auto; }
.balk-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.balk { height: 14px; border-radius: 7px; background: var(--perzik); overflow: hidden; }
.balk span { display: block; height: 100%; border-radius: 7px; background: var(--zee); transform-origin: left; animation: balk-groei .7s calc(var(--i) * 60ms) var(--zacht-uit) both; }
.balken li:first-child .balk span { background: var(--hart); }
.balk-waarde { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kolommen { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: end; gap: 6px; height: 150px; padding-top: 18px; }
.kolom { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; height: 100%; gap: 3px; min-width: 0; }
.kolom-waarde { font-size: 11px; font-weight: 700; color: var(--inkt-2); white-space: nowrap; }
.kolom-balk { align-self: end; width: 100%; max-width: 34px; min-height: 2px; border-radius: 6px 6px 2px 2px; background: var(--zee); transform-origin: bottom; animation: kolom-groei .6s calc(var(--i) * 50ms) var(--veer) both; }
.kolommen.uren .kolom-balk { background: var(--boter); }
.kolom-label { font-size: 11px; color: var(--inkt-3); white-space: nowrap; }
.kolommen.uren .kolom-label { font-size: 10px; }
@keyframes kolom-groei { from { transform: scaleY(0); } }
.podium { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; gap: 6px; }
.podium-plek { display: grid; justify-items: center; gap: 2px; text-align: center; animation: hupje .6s var(--veer) both; }
.podium-plek strong { font-family: var(--titel); font-weight: 600; font-size: 15px; line-height: 1.1; overflow-wrap: anywhere; }
.podium-plek > span:not(.podium-trede) { font-size: 13px; color: var(--inkt-2); }
.podium-trede { width: 100%; display: grid; place-items: center; border-radius: 10px 10px 4px 4px; background: var(--zee-licht); color: var(--zee-donker); font-family: var(--titel); font-weight: 600; font-size: 20px; }
.podium .plek-1 { order: 2; animation-delay: .25s; } .podium .plek-1 .podium-trede { height: 74px; background: var(--boter); color: var(--inkt); }
.podium .plek-2 { order: 1; animation-delay: .1s; } .podium .plek-2 .podium-trede { height: 54px; }
.podium .plek-3 { order: 3; animation-delay: 0s; } .podium .plek-3 .podium-trede { height: 40px; }
.inzicht-top { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.inzicht-top li { padding-left: 4px; }
.inzicht-top li > * { vertical-align: baseline; }
.inzicht-top li { display: list-item; }
.inzicht-top li strong { float: right; }

/* ── 0.6: afdrukken (borderel, dagrapport, inventaris) ───────────────────── */
#afdruk { display: none; }
@media print {
  @page { size: A4; margin: 14mm; }
  body > *:not(#afdruk) { display: none !important; }
  body { background: #fff; }
  #afdruk { display: block; color: #000; font: 11pt/1.35 -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
}
.doc { max-width: 180mm; margin: 0 auto; display: grid; gap: 10pt; }
.doc h1 { font-family: var(--titel); font-size: 20pt; margin: 0; }
.doc h2 { font-size: 12pt; margin: 0 0 3pt; }
.doc-kop { display: flex; justify-content: space-between; gap: 16pt; padding-bottom: 8pt; border-bottom: 2px solid #000; }
.doc-titel { text-align: right; }
.doc-blok { display: grid; gap: 2pt; }
.doc-tabel { width: 100%; border-collapse: collapse; font-size: 10pt; }
.doc-tabel th, .doc-tabel td { border-bottom: 1px solid #bbb; padding: 4pt 5pt; text-align: left; vertical-align: top; }
.doc-tabel th { background: #f1f1f1; }
.doc-tabel tfoot td { font-weight: 700; border-top: 2px solid #000; border-bottom: 0; }
.doc-tabel .r { text-align: right; white-space: nowrap; }
.doc-klein { font-size: 8.5pt; color: #444; }
.doc-handtekeningen { display: grid; grid-template-columns: 1fr 1fr; gap: 20pt; margin-top: 10pt; }
.doc-handtekeningen > div { display: grid; gap: 4pt; }
.doc-handtekeningen .handtekening-beeld { background: none; max-height: 60pt; color: #000; }
.doc-lijn { height: 50pt; border-bottom: 1px solid #000; }
.doc-voet { font-size: 8pt; color: #666; border-top: 1px solid #ccc; padding-top: 4pt; }

/* ── 0.6: setkiezer per taal en per jaar ─────────────────────────────────── */
.set-talen { display: flex; gap: 8px; flex-wrap: wrap; }
.set-taal-aantal { font-size: 12px; opacity: .7; margin-left: 2px; }
.set-tegel.alle { min-height: 64px; }
.set-jaar { display: grid; gap: 8px; }
.set-jaar-kop { position: sticky; top: -1px; z-index: 2; display: flex; align-items: baseline; gap: 10px; padding: 6px 2px; background: var(--room); font-size: 20px; }
.set-jaar-kop::after { content: ""; flex: 1; height: 2px; align-self: center; background: repeating-linear-gradient(90deg, var(--lijn) 0 6px, transparent 6px 11px); }
.set-jaar-kop em { order: 2; font-family: var(--tekst); font-style: normal; font-size: 13px; font-weight: 600; color: var(--inkt-3); }
.set-intl { font-size: 12px; color: var(--zee-donker); font-weight: 600; line-height: 1.2; text-align: center; }
.bod-slider-kop strong.samen { color: var(--hart-inkt); }
.pct-stapper { max-width: 100%; flex-wrap: nowrap; }
.pct-terug { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border-radius: 50%; text-decoration: none; }
/* Het binnenschuiven van een scherm mag de pagina nooit even breder maken (iPhone zoomt dan uit). */
.app { overflow-x: clip; }
/* Oudere Safari (iOS 15) kent clip niet: dan liever niet schuiven dan een pagina die verspringt. */
@supports not (overflow-x: clip) { .tab-inhoud.van-rechts, .tab-inhoud.van-links { animation-name: none; } }
.zoeker-chips { flex: none; }
.boek-lijst { grid-template-columns: minmax(0, 1fr); }
.boek-lijst input[type="date"] { min-width: 0; width: 100%; }
.voorraad-totaal { min-width: 0; }
.lijst { grid-template-columns: minmax(0, 1fr); }
.boek-lijst .lijst-naam, .voorraad-lijn .lijst-naam, .inzicht-blok .lijst-naam { flex: 1; }
.boek-lijst .lijst-naam > *, .voorraad-lijn .lijst-naam > *, .inzicht-blok .lijst-naam > * { overflow: hidden; text-overflow: ellipsis; }

/* ── 0.7: aankoopbewijs met foto's, privé, herkomst ──────────────────────── */
.afreken-fotos, .transactie-fotos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.foto-rij { display: flex; flex-wrap: wrap; gap: 8px; }
.foto-duim { position: relative; }
.foto-duim > button:first-child { display: block; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--wit); box-shadow: var(--schaduw); }
.foto-duim img { width: 100%; height: 100%; object-fit: cover; }
.foto-weg { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--inkt); color: var(--room); box-shadow: 0 0 0 2px var(--room); }
.foto-groot { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(30, 20, 8, .85); animation: vervaag .2s; }
.foto-groot img { max-width: 100%; max-height: 100%; border-radius: 12px; }
.prive-blok { display: grid; gap: 10px; }
.prive-blok .lijst { display: grid; gap: 6px; }
.prive-pct { display: grid; gap: 6px; }
.herkomst-zin { margin: 0; }
.profiel-tegel.prive svg, .profiel-tegel.thuis svg { color: var(--zee-donker); }
.inzicht-kern .kern:first-child { grid-column: 1 / -1; }
.doc-bewijs { display: grid; gap: 5pt; padding-top: 6pt; border-top: 1px solid #999; break-inside: avoid; }
.doc-bewijs h2 { font-size: 11pt; }
.doc-fotos { display: flex; flex-wrap: wrap; gap: 6pt; }
.doc-fotos img { width: 58mm; max-height: 58mm; object-fit: contain; border: 1px solid #ccc; }

/* 0.7.2: kaarten die al in de app staan uit privé inbrengen. */
.inbreng-lijst li { display: grid; gap: 6px; }
.inbreng-lijst .res-tekst { display: grid; gap: 1px; min-width: 0; }
/* Privé inbreng: per kaart de waarde (marktwaarde of zelf ingevuld). */
.inbreng-waarde { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 6px 12px 10px 64px; background: var(--room); border-radius: 0 0 14px 14px; }
.inbreng-waarde label { display: flex; align-items: center; gap: 6px; }
.inbreng-waarde input { width: 96px; padding: 7px 10px; border-radius: 10px; border: 1.5px solid var(--lijn); background: var(--wit); font: inherit; font-variant-numeric: tabular-nums; }
.inbreng-waarde input:focus { outline: none; border-color: var(--zee); }
.regel-met-waarde { flex-wrap: wrap; }
.regel-met-waarde .inbreng-waarde { flex-basis: 100%; padding: 4px 0 2px 50px; background: none; }

/* ── Artikels: meer foto's en verwijderen (0.10) ─────────────────────────── */
.artikel-fotos { display: grid; gap: 6px; }
.artikel-fotos-rij { display: flex; gap: 10px; overflow-x: auto; padding: 8px 2px 4px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.artikel-duim { position: relative; flex: none; scroll-snap-align: start; }
.artikel-duim > button:first-child { display: block; width: 84px; height: 84px; border-radius: 14px; overflow: hidden; background: var(--wit); box-shadow: var(--schaduw); }
.artikel-duim img { width: 100%; height: 100%; object-fit: cover; }
.artikel-duim.hoofd > button:first-child { box-shadow: 0 0 0 2.5px var(--zee), var(--schaduw); }
.artikel-duim em { position: absolute; left: 6px; bottom: 6px; padding: 1px 6px; border-radius: 6px; background: var(--zee); color: #fff; font-size: 10.5px; font-style: normal; font-weight: 700; pointer-events: none; }
.artikel-duim-ster { position: absolute; left: 5px; bottom: 5px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 248, 239, .94); color: var(--zee-donker); box-shadow: var(--schaduw); }
.artikel-duim.nieuw { width: 84px; height: 84px; border-radius: 14px; display: grid; place-content: center; justify-items: center; gap: 4px; padding: 6px; background: var(--zee-licht); color: var(--zee-donker); border: 2px dashed rgba(76, 127, 135, .4); font-size: 11.5px; font-weight: 600; line-height: 1.15; text-align: center; }
.verwijder-blok { padding-top: 4px; }
.tekstknop.rood { color: var(--hart); }
.knop.rood { background: var(--hart); color: #fff; }
.verwijder-vraag { display: grid; gap: 8px; padding: 12px 14px; border-radius: 14px; background: var(--hart-licht); animation: verschijn .2s var(--zacht-uit); }
.verwijder-vraag p { margin: 0; font-size: 14px; }

/* ── Etalage en aanvragen (Profiel › Klantenpagina) ────────────────────── */
.profiel-tegel.voorpagina svg { color: var(--zee-donker); }
.profiel-tegel.instagram svg { color: var(--hart); }
.profiel-tegel.thema svg { color: #d98a1f; }
.profiel-tegel.aanvragen svg { color: var(--zee-donker); }
.tegel-teller { position: absolute; top: 10px; right: 10px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--hart); color: #fff !important; font-size: 12px !important; font-weight: 700; line-height: 22px; text-align: center; animation: plop .45s var(--veer); }
.etalage-leeg { display: grid; justify-items: center; gap: 6px; padding: 26px 16px; border-radius: var(--rond); border: 2px dashed var(--lijn); color: var(--inkt-2); text-align: center; }
.etalage-leeg p { margin: 0; max-width: 34ch; }
.etalage-lijst, .aanvraag-lijst { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.etalage-rij { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px; border-radius: var(--rond); background: var(--room); box-shadow: var(--schaduw); }
.etalage-beeld { width: 96px; height: 96px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: var(--zee-licht); color: var(--zee); }
.etalage-beeld img { width: 100%; height: 100%; object-fit: cover; }
.etalage-velden { display: grid; gap: 6px; min-width: 0; }
.etalage-velden input { width: 100%; min-width: 0; padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--lijn); background: var(--wit); font-size: 15px; }
.etalage-knoppen { display: flex; align-items: center; gap: 6px; }
.etalage-knoppen .rond-knop { width: 32px; height: 32px; }
.etalage-knoppen > :last-child { margin-left: auto; }
.aanvraag-rij { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 10px; padding: 12px 14px; border-radius: var(--rond); background: var(--room); box-shadow: var(--schaduw); text-align: left; }
.aanvraag-stip { width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: transparent; }
.aanvraag-rij.nieuw .aanvraag-stip { background: var(--hart); box-shadow: 0 0 0 4px var(--hart-licht); }
.aanvraag-tekst { display: grid; gap: 2px; min-width: 0; }
.aanvraag-idee { font-size: 14px; color: var(--inkt); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.aanvraag-status { display: inline-block; padding: 2px 8px; border-radius: 8px; font-size: 12px; font-weight: 700; background: var(--zee-licht); color: var(--zee-donker); white-space: nowrap; }
.aanvraag-status.nieuw { background: var(--hart-licht); color: var(--hart-inkt); }
.aanvraag-status.beantwoord { background: #e3efe5; color: var(--groen); }
.aanvraag-status.gesloten { background: rgba(59, 42, 18, .07); color: var(--inkt-2); }
.aanvraag-detail { display: grid; gap: 14px; }
.aanvraag-detail p { margin: 0; }
.aanvraag-volledig { white-space: pre-wrap; overflow-wrap: anywhere; }
.aanvraag-beelden { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.aanvraag-beelden button { display: grid; gap: 4px; text-align: center; font-size: 12px; color: var(--inkt-2); }
.aanvraag-beelden img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 12px; background: var(--wit); box-shadow: var(--schaduw); }
ol.stappen { margin: 6px 0; padding-left: 20px; gap: 6px; }

/* Kassa: per kaart een eigen % — dan geen grote schuifknop, enkel het algemene percentage */
.pct-stapper.groot button { width: 38px; height: 38px; font-size: 20px; }
.pct-stapper.groot span { min-width: 54px; font-family: var(--titel); font-size: 20px; font-weight: 600; text-align: center; }
.facebook-rij { align-items: center; gap: 10px; }
.facebook-rij > span:first-child { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.facebook-veld { display: inline-flex; align-items: center; gap: 6px; flex: 1; min-width: 0; justify-content: flex-end; }
.facebook-veld input { flex: 1; min-width: 0; max-width: 260px; border: 0; border-bottom: 1.5px solid var(--lijn); background: none; padding: 4px 2px; font-size: 14px; text-align: right; }
.facebook-veld input:focus { outline: none; border-color: var(--zee); }
.wettelijk .rij-knop .badge { margin-left: auto; }
.wettelijk-form { padding: 6px 0 12px; }

/* Wachtwoord kiezen (0.11): uitleg onder het veld, tonen wat je typt. */
.wachtwoord-uitleg { margin: -2px 0 0; font-size: 13px; color: var(--inkt-3); line-height: 1.4; }
.wachtwoord-uitleg.fout { color: var(--hart-inkt); }
.wachtwoord-uitleg.goed { color: var(--zee-donker); font-weight: 600; }
.toon-wachtwoord { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--inkt-2); }
.login-form .toon-wachtwoord input { width: 18px; height: 18px; padding: 0; accent-color: var(--zee); }
.wachtwoord-sheet { padding: 4px 0 12px; }

/* 0.12: zelf een bedrag typen in het gekozen vak (tik nog eens), geen apart veld "eigen bod" meer. */
.bod-keuze span { white-space: nowrap; }
.bod-keuze span svg { display: inline-block; vertical-align: -1px; margin-left: 3px; }
.bod-keuze.bewerk { padding: 6px; gap: 2px; }
.bod-keuze.bewerk .euro-invoer.mini { width: 100%; background: var(--wit); border-color: var(--boter); color: var(--inkt); }
.bod-keuze.bewerk .euro-invoer.mini input { width: 100%; min-width: 0; font-family: var(--titel); font-size: 18px; text-align: center; }

/* ── 0.13: elke omgeving na de eerste (Brent …) een iets andere achtergrond, zodat je meteen ziet waar je werkt ── */
:root[data-omgeving="1"] { --perzik: #ece5f3; --perzik-rgb: 236 229 243; --omgeving: #5b4a78; }
:root[data-omgeving="2"] { --perzik: #e2efe4; --perzik-rgb: 226 239 228; --omgeving: #3f6b4c; }
:root[data-omgeving="3"] { --perzik: #e1ecf3; --perzik-rgb: 225 236 243; --omgeving: #355d74; }
body { transition: background-color .4s ease; }

/* ── Binders vooraan: uitgeknipt op een dambord (zo zie je wat doorzichtig is) ── */
.etalage-beeld.uitgeknipt { background: repeating-conic-gradient(#efe4d4 0 25%, #fffaf3 0 50%) 0 0 / 14px 14px; }
.etalage-beeld.uitgeknipt img { width: 96px; height: 96px; object-fit: contain; padding: 4px; }

/* ── Profiel › Thema ── */
.thema-nu { margin: 4px 0 10px; padding: 10px 14px; border-radius: 14px; background: rgba(59, 42, 18, .06); font-size: 14.5px; color: var(--inkt-2); }
.thema-nu.aan { background: #e6f1e6; color: var(--inkt); }
.thema-lijst { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.thema-rij { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--room); box-shadow: var(--schaduw); text-align: left; }
.thema-vormpje { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--boter-licht); }
@supports (background: color-mix(in srgb, red 10%, white)) { .thema-vormpje { background: color-mix(in srgb, var(--thema) 18%, var(--room)); } }
.thema-vormpje svg { width: 30px; height: 30px; }
.thema-vormpje img { width: 40px; height: 40px; object-fit: contain; }
.thema-rij-tekst { flex: 1; min-width: 0; display: grid; gap: 1px; }
.thema-rij-tekst strong { font-family: var(--titel); font-weight: 600; font-size: 17px; }
.thema-rij-tekst span { font-size: 13px; color: var(--inkt-2); }
.thema-live { padding: 3px 9px; border-radius: 999px; background: var(--groen); color: #fff; font-size: 12px; font-weight: 700; }
.thema-pijl { transform: rotate(-90deg); color: var(--inkt-3); flex: none; }
.terug-knop { margin: -4px 0 4px -4px; }
.terug-knop svg { transform: rotate(90deg); }
.thema-proef { position: relative; overflow: hidden; margin: 6px 0 14px; padding: 14px 14px 64px; border-radius: 18px; background: var(--perzik);
  box-shadow: inset 0 0 0 1px var(--lijn); }
.thema-proef::before { content: ""; position: absolute; right: -30px; bottom: -40px; width: 180px; height: 180px; border-radius: 50%; background: var(--thema); opacity: .22; filter: blur(30px); }
.thema-proef-balk { position: relative; display: flex; align-items: center; height: 56px; }
.thema-proef-balk img { height: 54px; width: auto; max-width: 70%; object-fit: contain; object-position: left center; }
.thema-proef-zin { position: relative; display: flex; align-items: center; gap: 8px; margin: 10px 0 0; padding: 6px 12px 6px 6px; border-radius: 12px; color: var(--inkt); font-size: 13.5px; font-weight: 700; width: fit-content; max-width: 100%;
  background: var(--boter-licht); box-shadow: inset 0 0 0 1.5px var(--boter); }
@supports (background: color-mix(in srgb, red 10%, white)) {
  .thema-proef-zin { background: color-mix(in srgb, var(--thema) 18%, var(--room)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--thema) 40%, transparent); }
}
.thema-proef-vormen svg { position: absolute; width: 30px; height: 30px; }
.thema-proef-vormen .v0 { right: 18px; top: 12px; width: 36px; height: 36px; }
.thema-proef-vormen .v1 { right: 70px; bottom: 14px; }
.thema-proef-vormen .v2 { left: 20px; bottom: 12px; width: 26px; height: 26px; }
.thema-proef-vormen .v3 { left: 46%; bottom: 22px; width: 18px; height: 18px; }
.thema-proef-vormen .v4 { right: 34%; top: 18px; width: 16px; height: 16px; }
.thema-periode { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.thema-periode p { grid-column: 1 / -1; margin: 0; }
.datum-kies { display: grid; gap: 6px; min-width: 0; }
.datum-kies > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; }
.datum-kies select { padding-right: 34px; }
.datum-kies select { min-width: 0; }
.thema-kleur { display: flex; align-items: center; gap: 12px; }
.thema-kleur input[type="color"] { width: 54px; height: 40px; padding: 2px; border-radius: 10px; border: 1.5px solid var(--lijn); background: var(--wit); }

/* Profiel › Thema: de drie logo's */
.thema-proef-zin img { width: 38px; height: 38px; object-fit: contain; flex: none; }
.thema-logos { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.thema-logo-item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 10px; border-radius: 16px; background: var(--room); box-shadow: var(--schaduw); }
.thema-logo-beeld { grid-row: span 2; width: 76px; height: 60px; border-radius: 12px; display: grid; place-items: center; background: var(--perzik); overflow: hidden; }
.thema-logo-beeld img { max-width: 92%; max-height: 90%; object-fit: contain; }
.thema-logo-tekst { display: grid; gap: 1px; min-width: 0; }
.thema-logo-tekst strong { font-size: 15px; }
.thema-logo-tekst span { font-size: 12.5px; color: var(--inkt-2); line-height: 1.3; }
.thema-logo-tekst em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--zee-donker); }
.thema-logo-knoppen { display: flex; align-items: center; gap: 4px; }

/* ── Het thema van de klantenpagina ook in het beheer (0.15): logo, eend en wat versiering langs de randen ── */
.merkbalk img.thema-logo { height: 48px; width: auto; max-width: 44vw; object-fit: contain; margin: -9px 0 -7px -4px; }
.eend-beeld { object-fit: contain; }
.beheer-sfeer { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.beheer-sfeer svg { position: absolute; width: var(--d); height: var(--d); overflow: visible; }
.beheer-sfeer .bz { opacity: .55; filter: drop-shadow(0 3px 4px rgba(59, 42, 18, .12));
  animation: beheer-zweef var(--t, 16s) ease-in-out var(--v, 0s) infinite alternate; }
.beheer-sfeer .bf { opacity: 0; animation: beheer-fonkel 14s ease-in-out var(--v, 0s) infinite; }
@keyframes beheer-zweef { from { transform: translate(0, 0) rotate(-6deg); } to { transform: translate(var(--dx, 6px), var(--dy, -16px)) rotate(6deg); } }
@keyframes beheer-fonkel {
  0%, 22%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); }
  5% { opacity: .75; transform: scale(1.12) rotate(8deg); }
  14% { opacity: .6; transform: scale(1) rotate(12deg); }
}
.bz0 { --d: 30px; top: 17%; left: max(-8px, calc(50% - 500px)); --t: 15s; --v: -2s; }
.bz1 { --d: 24px; top: 41%; right: max(-6px, calc(50% - 494px)); --t: 17s; --v: -7s; --dx: -6px; }
.bz2 { --d: 34px; top: 66%; left: max(-10px, calc(50% - 506px)); --t: 13s; --v: -4s; }
.bz3 { --d: 22px; top: 82%; right: max(-4px, calc(50% - 490px)); --t: 18s; --v: -9s; --dx: -8px; }
.bz4 { --d: 26px; top: 6%; right: 38%; --t: 16s; --v: -11s; }
.bf0 { --d: 14px; top: 27%; right: max(6px, calc(50% - 470px)); --v: 0s; }
.bf1 { --d: 12px; top: 54%; left: max(6px, calc(50% - 476px)); --v: -3.5s; }
.bf2 { --d: 15px; top: 76%; left: max(10px, calc(50% - 470px)); --v: -7s; }
.bf3 { --d: 12px; top: 12%; left: 30%; --v: -10.5s; }
@media (max-width: 599px) { .bz4, .bf3 { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .beheer-sfeer .bz { animation: none; }
  .beheer-sfeer .bf { display: none; }
}
/* Profiel › Instagram: automatisch (feed) en eigen foto's */
.etalage-kop { margin: 6px 0 0; font-size: 19px; }
.insta-auto { margin-top: 2px; }

/* ── Reserveren (0.16): een kaart achterhouden voor iemand ── */
.tegel.gereserveerd { box-shadow: var(--schaduw), inset 0 0 0 2px #8a6bb5; }
.gereserveerd-lint { position: absolute; left: 8px; right: 8px; top: 8px; z-index: 3; padding: 3px 8px; border-radius: 8px; background: #5b4a78; color: #fff;
  font-size: 11.5px; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 2px 6px rgba(59, 42, 18, .2); }
.gereserveerd-lint.verlopen { background: var(--hart); }
.reservering-kaart { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px 14px; border-radius: 16px;
  background: #efe8f6; color: #3d2f55; box-shadow: inset 0 0 0 2px #cdbfe2; }
.reservering-kaart.verlopen { background: #fbe7e4; color: #6b2a22; box-shadow: inset 0 0 0 2px #f0bcb4; }
.reservering-kaart > div { display: grid; gap: 3px; min-width: 0; }
.reservering-kaart strong { font-size: 16px; }
.reservering-kaart .knoppenrij { margin-top: 6px; }
.reserveer-knop { justify-self: start; }
.regel-gereserveerd { justify-self: start; margin-top: 2px; padding: 1px 8px; border-radius: 999px; background: #5b4a78; color: #fff; font-size: 11.5px; font-weight: 700; }

/* ── Storecredit (0.16): tegoedbonnen ── */
.profiel-tegel.tegoeden svg { color: #5b8a3a; }
.tegoed-keuze { display: grid; gap: 8px; }
.bon-lijst { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bon-rij { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px;
  background: var(--room); box-shadow: inset 0 0 0 1.5px var(--lijn); text-align: left; }
.bon-rij.zonder-vink { grid-template-columns: minmax(0, 1fr) auto; }
.bon-rij.aan { box-shadow: inset 0 0 0 2px var(--zee); background: var(--zee-licht); }
.bon-rij.op { opacity: .6; }
.bon-vink { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; box-shadow: inset 0 0 0 2px var(--lijn); background: var(--wit); color: var(--zee-donker); }
.bon-rij.aan .bon-vink { box-shadow: inset 0 0 0 2px var(--zee); }
.bon-tekst { display: grid; min-width: 0; }
.bon-tekst strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bon-bedragen { display: grid; justify-items: end; }
.bon-rest { font-size: 16px; }
.bon-detail { display: grid; gap: 2px; padding: 4px 4px 8px; }
.tegoed-totaal { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #eaf3e2; color: #2f5c1d; }
.tegoed-totaal > div { display: grid; }
.tegoed-totaal strong { font-size: 20px; }
.tegoedbon-gelukt { display: grid; justify-items: center; gap: 2px; padding: 12px 18px; border-radius: 16px; border: 2px dashed #5b8a3a; background: #f3f8ee; color: #2f5c1d; }
.tegoedbon-gelukt strong { font-family: var(--titel); font-size: 22px; letter-spacing: .04em; }
/* Online verkocht: verzendkosten */
.verzend-rij { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.verzend-invoer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }

/* Labels › Printer: Niimbot of Fichero (per toestel) */
.printerkeuze .chip .zacht { color: inherit; opacity: .75; font-weight: 400; margin-left: 2px; }

/* Afrekenen: per overschrijving is een uitzondering, een klein knopje onder de keuze */
.overschrijving-knop { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 4px; align-self: flex-start; }
/* Een lange keuze breekt af in plaats van uit het kader te steken (smalle gsm). */
.kiezer .chip { max-width: 100%; white-space: normal; text-align: left; overflow-wrap: anywhere; }
.fichero-uitleg ol { margin: 8px 0 6px; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; line-height: 1.45; }

/* De printer van deze gsm: in Labels en onderaan een kaart (PrinterBlok) */
.printer-blok { display: grid; gap: 12px; }
.printer-details { margin-top: 10px; border-radius: 14px; background: var(--room); box-shadow: inset 0 0 0 1.5px var(--lijn); }
.printer-details > summary { display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; list-style: none; font-size: 14px; color: var(--inkt-2); }
.printer-details > summary::-webkit-details-marker { display: none; }
.printer-details > summary > span:first-of-type { flex: 1; min-width: 0; }
.printer-details[open] > summary .tekstknop { visibility: hidden; }
.printer-details > .printer-blok { padding: 0 12px 12px; }
.printerkeuze .chips, .printer-blok .maatkeuze .chips { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; }
/* In een kaart: de blokken binnen het printervak wit, anders lijkt het leeg tussen de titels. */
.printer-details .printerkaart, .printer-details .afstellen { background: var(--wit); box-shadow: inset 0 0 0 1px var(--lijn); }
.printer-details .printerkaart { padding: 10px 12px; gap: 10px; }
.printer-details .printer-icoon { width: 40px; height: 40px; border-radius: 12px; }
.printer-blok .afstellen:not([open]) { padding: 10px 14px; }
.geen-breuk { white-space: nowrap; }
/* Twee labels per strook: de uitleg bij een oneven aantal en in een kaart. */
.strook-tip { margin: 6px 0 0; }
.onderbalk .strook-tip { margin: 0; padding: 8px 12px; border-radius: var(--rond-klein); background: var(--boter-licht); color: var(--inkt); box-shadow: var(--schaduw); }
.strook-tip .tekstknop { display: inline; padding: 0; text-align: left; }
