/* Inventaris — shell en schermen, bovenop de huisstijl (/thema/huisstijl.css). Shell zoals Coaching. */

:root { --testbalk-h: 0px; --oranje-tekst: #B4531F; --lijst-max: 820px; }
:root.is-test { --testbalk-h: 36px; }
.test-balk {
  position: sticky; top: 0; z-index: 40; height: var(--testbalk-h); display: flex; align-items: center; justify-content: center;
  padding: 0 16px; color: var(--groen); font-size: 13px; font-weight: 600; line-height: 1.2; text-align: center;
  background: repeating-linear-gradient(-45deg, var(--oranje) 0 14px, #EA8E5A 14px 28px);
  border-bottom: 2px solid var(--groen); box-sizing: border-box; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.test-balk strong { font-weight: 800; letter-spacing: .08em; margin-right: 2px; }
@media (max-width: 380px) { .test-balk { font-size: 12px; padding: 0 10px; } .test-balk strong { letter-spacing: .04em; } }

.laden { color: var(--ink-3); padding: 24px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ─── Shell ─── */
.shell { display: flex; min-height: 100vh; }
@media (min-width: 901px) {
  .shell { background: linear-gradient(to right, var(--groen) var(--sidebar-w), transparent var(--sidebar-w)); }
}
.kolom { flex: 1; min-width: 0; }
.zij {
  width: var(--sidebar-w); flex-shrink: 0; background: var(--groen); color: var(--creme);
  padding: 28px 18px; position: sticky; top: var(--testbalk-h); height: calc(100vh - var(--testbalk-h)); overflow-y: auto;
  display: flex; flex-direction: column;
}
.zij-merk { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; padding-left: 4px; }
.zij-merk-icoon { width: 40px; height: 40px; border-radius: 9px; flex-shrink: 0; }
.zij .logo { font-weight: 700; font-size: 20px; line-height: 1.1; }
.zij .sub { font-size: 13px; opacity: .65; margin-top: 2px; }
.zij-link {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--creme); text-decoration: none; padding: 10px 14px;
  border-radius: var(--r-pill); margin-bottom: 4px; font-weight: 500; opacity: .8;
  transition: background .15s var(--ease), opacity .15s var(--ease);
}
.zij-link:hover { background: rgba(255,255,255,.06); opacity: 1; }
.zij-link[aria-current="page"] { background: rgba(134,199,157,.22); opacity: 1; font-weight: 600; }
.zij-link:focus-visible, .mobiel-link:focus-visible, .menu-knop:focus-visible { outline: 2px solid var(--oranje); outline-offset: 2px; }
.nav-teller {
  flex: none; min-width: 22px; height: 22px; padding: 0 7px; border-radius: var(--r-pill); background: var(--oranje);
  color: var(--wit); font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; font-variant-numeric: tabular-nums;
}
.zij-voet { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); }
.zij-naam { padding: 10px 14px 0; font-size: 12px; opacity: .6; }
.hub-link {
  display: inline-flex; align-items: center; gap: 10px; color: var(--creme); text-decoration: none;
  font-weight: 500; border-radius: var(--r-pill); transition: background .15s var(--ease), opacity .15s var(--ease);
}
.hub-link img { flex-shrink: 0; }
.hub-link:hover { background: rgba(255,255,255,.06); opacity: 1; }
.hub-link:focus-visible { outline: 2px solid var(--oranje); outline-offset: 2px; }
.zij-hub { display: flex; padding: 10px 14px; opacity: .8; }
.top, .mobiel-menu { display: none; }

main { padding: 32px 40px 56px; max-width: 1180px; outline: none; }
.melding.fout { background: var(--rood-licht); color: var(--rood); padding: 12px 16px; border-radius: var(--r-sm); font-weight: 500; }
.muted { color: var(--ink-2); }
.subtle { color: var(--ink-3); }
a { color: var(--oranje-tekst); }
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--oranje); outline-offset: 2px; }

/* Geen hoofdletterlabels in tabellen (huisstijl-th is uppercase) */
th { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 600; }

/* ─── Kop ─── */
.kop { margin-bottom: 20px; }
.kop-rij { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; }
.kop-tekst { min-width: 0; }
.kop-sub { margin-top: 4px; color: var(--ink-2); font-size: 15px; }
.kop-chips { margin-top: 10px; }
.kop-acties { display: flex; gap: 10px; flex-wrap: wrap; }

/* ─── Vestigingsschakelaar ─── */
.seg { display: inline-flex; background: var(--wit); border: 1px solid var(--rule); border-radius: var(--r-pill); padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg-knop {
  border: 0; background: transparent; font: inherit; color: var(--ink); font-size: 14px; font-weight: 500;
  padding: 8px 16px; min-height: 38px; border-radius: var(--r-pill); cursor: pointer; white-space: nowrap;
  transition: background .15s var(--ease);
}
.seg-knop:hover { background: var(--groen-50); }
.seg-knop[aria-pressed="true"] { background: var(--groen); color: var(--wit); font-weight: 700; }
.seg-knop small { margin-left: 6px; opacity: .7; font-variant-numeric: tabular-nums; }
.seg-select { display: none; }

/* ─── Chips ─── */
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; font: inherit; font-size: 13px; font-weight: 500; line-height: 1.2;
  padding: 6px 12px; border-radius: var(--r-pill); background: var(--wit); color: var(--ink);
  border: 1px solid var(--rule); white-space: nowrap; margin: 0;
}
.chip small { opacity: .6; margin-left: 2px; font-variant-numeric: tabular-nums; }
.chip-knop { cursor: pointer; min-height: 34px; transition: background .15s var(--ease), border-color .15s var(--ease); }
.chip-knop:hover { border-color: var(--rule-strong); background: var(--grijs-50); }
.chip-knop[aria-pressed="true"] { background: var(--groen); color: var(--wit); border-color: var(--groen); }
.chip-knop[aria-pressed="true"] small { opacity: .8; }
.chip-select {
  width: auto; cursor: pointer; min-height: 34px; padding: 6px 30px 6px 12px; appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
}
.chip-select.is-aan { background-color: var(--groen); color: var(--wit); border-color: var(--groen); }
.chip-select:focus { box-shadow: none; }
.chip-licht { background: var(--grijs-50); }
.chip-doel { background: var(--groen-50); border-color: transparent; color: #1F6B3F; }

/* ─── Startscherm ─── */
.zoek-rij { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.zoekveld {
  flex: 1; min-width: 240px; border-radius: var(--r-pill); padding: 12px 20px; font-size: 15px; min-height: 48px;
}
.zoek-rij .btn { min-height: 48px; }
.tegels { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 18px 0 16px; }
.tegel {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; font: inherit; color: var(--ink);
  background: var(--wit); border: 1.5px solid transparent; border-radius: var(--r-sm); padding: 12px 14px; cursor: pointer;
  box-shadow: var(--shadow-xs); transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.tegel:hover { box-shadow: var(--shadow-sm); }
.tegel[aria-pressed="true"] { border-color: var(--groen); }
.tegel-naam { font-size: 15px; line-height: 1.25; }
.tegel-tellers { font-size: 13px; color: var(--ink-2); }
.waarschuw { color: var(--oranje-tekst); font-weight: 700; }
.tegel-tellers .waarschuw::before { content: ', '; color: var(--ink-2); font-weight: 400; }
.tegel-slot { font-size: 12px; color: var(--ink-3); }

.filters { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.filter-rij { display: flex; gap: 12px; align-items: baseline; }
.filter-label { width: 128px; flex-shrink: 0; font-size: 13px; color: var(--ink-2); padding-top: 7px; }
.filter-hint { font-size: 13px; color: var(--ink-3); padding: 7px 0; }

/* De lijst is zo breed als zijn kolommen (max. 820px): geen lege strook rechts van Meld. */
.lijst-blok { width: fit-content; min-width: min(100%, 560px); max-width: min(100%, var(--lijst-max)); margin-top: 18px; }
.lijst-kop { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; margin-bottom: 6px; }
.lijst-aantal { font-size: 13px; color: var(--ink-2); }
.lijst { background: var(--wit); border-radius: var(--r-sm); box-shadow: var(--shadow-xs); overflow: hidden; }
.lijst[aria-busy="true"] { opacity: .6; transition: opacity .2s; }
.lijst-rij {
  display: grid; grid-template-columns: minmax(200px, 340px) 96px 118px 70px; column-gap: 18px; align-items: center;
  padding: 10px 16px; border-top: 1px solid var(--rule); cursor: pointer; transition: background .12s var(--ease);
}
.lijst-rij:first-child { border-top: 0; }
.lijst-rij:not(.lijst-koppen):hover { background: var(--grijs-50); }
.lijst-koppen { cursor: default; font-size: 12px; color: var(--ink-2); padding-top: 12px; padding-bottom: 6px; }
.lijst-naam { display: flex; flex-direction: column; min-width: 0; }
.lijst-link { color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; line-height: 1.3; }
.lijst-link:hover { text-decoration: underline; }
/* Stretched link: de hele rij is het aanraakdoel van de naamlink; Meld ligt erboven. */
.lijst-rij:not(.lijst-koppen) { position: relative; }
.lijst-link::after { content: ''; position: absolute; inset: 0; }
.lijst-actie { position: relative; z-index: 1; }
.lijst-meta { font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lijst-aantal-cel { font-size: 14px; font-variant-numeric: tabular-nums; }
.lijst-actie { justify-self: end; }
.status-stapel { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.btn-meld {
  font: inherit; font-size: 13px; font-weight: 700; color: var(--oranje-tekst); background: var(--wit);
  border: 1.5px solid var(--oranje); border-radius: var(--r-pill); padding: 5px 14px; min-height: 34px; cursor: pointer;
  transition: background .15s var(--ease);
}
.btn-meld:hover { background: var(--oranje-50); }
.toevoegen-regel { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.link-knop { font: inherit; color: var(--oranje-tekst); background: none; border: 0; padding: 4px 0; text-decoration: underline; cursor: pointer; font-weight: 600; }

/* Status-badges */
.st { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: var(--r-pill); white-space: nowrap; line-height: 1.4; }
.st-ok { background: var(--groen-100); color: #1F6B3F; }
.st-neutraal { background: #EEF3EF; color: var(--ink-2); }
.st-laag { background: var(--geel-licht); color: var(--geel-donker); }
.st-op { background: var(--rood-licht); color: var(--rood); }
.st-onbekend { background: rgba(19,52,43,.06); color: var(--ink-2); }
.st-best { background: #E6EEF8; color: #2A4E7F; }

/* Lege toestand */
.leeg { text-align: center; padding: 36px 22px; }
.leeg h3 { margin-bottom: 6px; }
.leeg p { max-width: 48ch; margin: 0 auto; }
.leeg .btn { margin-top: 14px; }

/* ─── Detail ─── */
.kruimel { font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.kruimel a { color: var(--ink-2); text-decoration: none; }
.kruimel a:hover { color: var(--ink); text-decoration: underline; }
.detail-raster { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; }
.detail-links { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.kaart { padding: 18px 20px; min-width: 0; }
.kaart-kop { font-size: 17px; margin-bottom: 12px; }
.kaart-kop small { font-weight: 400; font-size: 12px; color: var(--ink-3); margin-left: 4px; }
.tabel-scroll { overflow-x: auto; max-width: 100%; }
.kaart-tabel th, .kaart-tabel td { padding: 9px 12px 9px 0; background: transparent; vertical-align: top; }
.kaart-tabel th { border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.kaart-tabel tr:hover td { background: transparent; }
.kaart-tabel td { font-size: 14px; }
.cel-sub { display: block; font-size: 12px; color: var(--ink-3); }
.bestelinfo { font-size: 14px; margin-bottom: 10px; color: var(--ink-2); }
.tijdlijn { list-style: none; font-size: 14px; line-height: 1.5; }
.tijdlijn li { position: relative; padding: 0 0 10px 18px; }
.tijdlijn li::before { content: ''; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--lichtgroen); }
.tijdlijn li:not(:last-child)::after { content: ''; position: absolute; left: 3.5px; top: 17px; bottom: 0; width: 1px; background: var(--rule); }

/* ─── Bestellingen ─── */
.tabbladen { display: flex; gap: 4px; border-bottom: 1px solid var(--rule); margin: 0 0 16px; overflow-x: auto; scrollbar-width: none; }
.tabbladen::-webkit-scrollbar { display: none; }
.tabblad {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; min-height: 44px; font-size: 14px; color: var(--ink-2);
  text-decoration: none; white-space: nowrap; border-radius: var(--r-sm) var(--r-sm) 0 0;
}
.tabblad:hover { color: var(--ink); background: rgba(19,52,43,.04); }
.tabblad[aria-current="page"] { color: var(--ink); font-weight: 700; box-shadow: inset 0 -3px 0 var(--oranje); }
.tab-teller { font-size: 12px; font-weight: 700; background: rgba(19,52,43,.08); border-radius: var(--r-pill); padding: 0 7px; line-height: 20px; font-variant-numeric: tabular-nums; }
.tab-balk { max-width: var(--lijst-max); display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 4px; }
.groepen { max-width: var(--lijst-max); }
.groep { margin-top: 18px; }
.groep-kop { display: flex; align-items: baseline; gap: 10px; font-size: 17px; margin-bottom: 4px; }
.groep-kop small { font-weight: 400; font-size: 13px; color: var(--ink-3); }
.cat-kop { font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 12px 0 6px 2px; }
.bestel-box { background: var(--wit); border-radius: var(--r-sm); box-shadow: var(--shadow-xs); overflow: hidden; }
.bestel-rij {
  display: grid; grid-template-columns: minmax(200px, 1fr) 100px 118px auto; column-gap: 18px; align-items: center;
  padding: 10px 16px; border-top: 1px solid var(--rule);
}
.bestel-rij:first-child { border-top: 0; }
.bestel-tekst { display: flex; flex-direction: column; min-width: 0; }
.bestel-naam { color: var(--ink); font-weight: 700; text-decoration: none; font-size: 15px; }
.bestel-naam:hover { text-decoration: underline; }
.bestel-meta { font-size: 12px; color: var(--ink-2); }
.bestel-aantal { font-size: 14px; font-variant-numeric: tabular-nums; }
.bestel-acties { display: flex; gap: 6px; justify-content: flex-end; }
.btn-small { min-height: 34px; }
.filter-balk { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.zoek-klein { width: 200px; min-height: 34px; padding: 6px 14px; font-size: 13px; border-radius: var(--r-pill); }
.tabel-kaart { padding: 4px 18px; max-width: 980px; }
.geschiedenis-tabel td { font-size: 13px; }
.wensen { display: flex; flex-direction: column; gap: 10px; max-width: var(--lijst-max); }
.wens { display: flex; justify-content: space-between; gap: 16px; background: var(--wit); border-radius: var(--r-sm); box-shadow: var(--shadow-xs); padding: 14px 16px; }
.wens-vervallen { opacity: .65; }
.wens-naam { font-size: 15px; }
.wens-toelichting { font-size: 14px; margin-top: 6px; }
.wens-waar { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.wens-acties { display: flex; flex-direction: column; gap: 6px; align-items: stretch; min-width: 190px; }
.wens-acties select { padding: 7px 12px; font-size: 13px; }

/* ─── Modaal ─── */
.modaal {
  border: 0; border-radius: var(--r-md); padding: 0; width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
  margin: auto; color: var(--ink); background: var(--wit); box-shadow: var(--shadow-lg);
}
.modaal-breed { width: min(680px, calc(100vw - 32px)); }
.modaal::backdrop { background: rgba(19,52,43,.45); }
.modaal-kop { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 22px 4px; }
.modaal-kop h2 { font-size: 20px; }
.modaal-sub { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.modaal-sluit {
  flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--grijs-100); color: var(--ink);
  font-size: 22px; line-height: 1; cursor: pointer;
}
.modaal-sluit:hover { background: var(--grijs-200); }
.modaal-inhoud { padding: 14px 22px 22px; }
.modaal-knoppen { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; }
.modaal-knoppen-verdeeld { justify-content: space-between; align-items: center; }
.meld-knoppen { display: grid; gap: 10px; margin-top: 4px; }
.meld-knoppen .btn { min-height: 52px; font-size: 16px; }
.form-kop { font-size: 15px; margin-bottom: 10px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-row > * { min-width: 0; }
.veld-hulp { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.meer { border-top: 1px solid var(--rule); padding-top: 12px; margin: 6px 0 14px; }
.meer summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--oranje-tekst); min-height: 32px; }
.meer[open] summary { margin-bottom: 12px; }
.chip-keuze { border: 0; margin: 0 0 16px; padding: 0; }
.chip-keuze legend { font-size: 14px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.chip-vink { cursor: pointer; min-height: 34px; position: relative; }
.chip-vink input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-vink:has(input:checked) { background: var(--groen); color: var(--wit); border-color: var(--groen); }
.chip-vink:has(input:focus-visible) { outline: 2px solid var(--oranje); outline-offset: 2px; }
.error-msg { margin: 0 0 12px; }
.btn-gevaar { color: var(--rood); padding-left: 0; }
.btn-gevaar:hover:not(:disabled) { background: transparent; color: #A32F1B; text-decoration: underline; }
.bevestig { background: var(--creme); border-left: 4px solid var(--rood); border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 12px; }
.bevestig-vraag { font-weight: 600; }

/* Meldingen (toast) */
.meldingen { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: var(--groen); color: var(--creme); padding: 12px 18px; border-radius: var(--r-sm); box-shadow: var(--shadow-md); font-size: 14px; font-weight: 500; }
.toast-fout { background: var(--rood); color: var(--wit); }

/* ─── Tablet en kleiner ─── */
@media (max-width: 900px) {
  .zij { display: none; }
  .top {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--groen); color: var(--creme); padding: 10px 16px; position: sticky; top: var(--testbalk-h); z-index: 10;
  }
  .top-merk { display: flex; align-items: center; font-weight: 700; font-size: 18px; min-width: 0; color: var(--creme); text-decoration: none; }
  .top-merk-icoon { width: 30px; height: 30px; border-radius: 7px; margin-right: 10px; flex-shrink: 0; }
  .top-acties { display: flex; align-items: center; gap: 6px; }
  .top-hub { padding: 8px 12px; min-height: 44px; font-size: 14px; font-weight: 600; gap: 8px; }
  .menu-knop {
    background: rgba(255,255,255,.12); color: var(--creme); border: 0; border-radius: var(--r-pill);
    padding: 8px 18px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; min-height: 44px;
  }
  .mobiel-menu { display: block; background: var(--groen); padding: 4px 12px 14px; position: sticky; top: calc(64px + var(--testbalk-h)); z-index: 10; }
  .mobiel-menu.hidden { display: none !important; }
  .mobiel-link { display: flex; align-items: center; justify-content: space-between; color: var(--creme); text-decoration: none; padding: 12px 14px; min-height: 44px; border-radius: var(--r-pill); font-weight: 500; opacity: .85; }
  .mobiel-link[aria-current="page"] { background: rgba(255,255,255,.12); opacity: 1; font-weight: 600; }
  main { padding: 20px 16px 40px; }
  h1 { font-size: 26px; }
  .detail-raster { grid-template-columns: 1fr; }
}

/* ─── Telefoon ─── */
@media (max-width: 719px) {
  .kop-rij { align-items: center; flex-wrap: nowrap; }
  .kop-sub { display: none; }
  .seg { display: none; }
  .seg-select {
    display: block; width: auto; max-width: 170px; min-height: 44px; border-radius: var(--r-pill); padding: 8px 32px 8px 14px; font-size: 14px; font-weight: 600;
    appearance: none; -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: calc(100% - 17px) 52%, calc(100% - 12px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
  }
  .zoek-rij { flex-wrap: wrap; }
  .zoekveld { min-width: 0; flex-basis: 100%; }
  .zoek-rij .btn { flex: 1; }

  /* Categorieën en filters als horizontaal scrollbare chipsrijen */
  .tegels { display: flex; overflow-x: auto; gap: 8px; margin: 14px -16px 10px; padding: 2px 16px 4px; scrollbar-width: none; }
  .tegels::-webkit-scrollbar, .filter-chips::-webkit-scrollbar, .cat-chips::-webkit-scrollbar { display: none; }
  .tegel { flex: 0 0 auto; flex-direction: row; align-items: center; gap: 6px; padding: 10px 14px; min-height: 44px; border-radius: var(--r-pill); box-shadow: none; border: 1px solid var(--rule); }
  .tegel[aria-pressed="true"] { background: var(--groen); color: var(--wit); border-color: var(--groen); }
  .tegel[aria-pressed="true"] .tegel-tellers, .tegel[aria-pressed="true"] .waarschuw { color: var(--wit); }
  .tegel-naam { font-size: 14px; white-space: nowrap; }
  .tegel-tellers { font-size: 12px; white-space: nowrap; }
  .tegel-aantal { display: none; }
  .tegel-tellers .waarschuw::before { content: ''; }
  .tegel-tellers .waarschuw + .waarschuw::before { content: ' · '; }
  .tegel-slot { display: none; }
  .filters { gap: 6px; }
  .filter-rij { display: block; }
  .filter-label { display: none; }
  .filter-chips, .cat-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px; scrollbar-width: none; }
  .chip-knop, .chip-select { min-height: 44px; flex: 0 0 auto; }
  /* Overige aanraakdoelen op de telefoon: minimaal 44 px (globals). */
  .chip-vink { min-height: 44px; padding: 8px 14px; }
  .link-knop { min-height: 44px; padding: 10px 0; }
  .meer summary { min-height: 44px; line-height: 44px; }
  .modaal-sluit { width: 44px; height: 44px; }
  .kruimel a { display: inline-flex; align-items: center; min-height: 44px; }
  .bestel-naam { display: inline-flex; align-items: center; min-height: 44px; align-self: flex-start; }
  input:not([type="checkbox"]), select, textarea { min-height: 44px; }
  .seg-select { min-height: 44px; }
  .top-merk { min-height: 44px; }
  .wens-waar a, .bestelinfo a { display: inline-flex; align-items: center; min-height: 44px; }
  .filter-hint { display: none; }

  .lijst-blok { margin-top: 12px; width: auto; min-width: 0; max-width: none; }
  .lijst-koppen { display: none; }
  .lijst-rij { grid-template-columns: auto 1fr auto; grid-template-areas: 'naam naam actie' 'aantal status actie'; column-gap: 10px; row-gap: 4px; padding: 10px 12px; }
  .lijst-rij:nth-child(2) { border-top: 0; }
  .lijst-naam { grid-area: naam; }
  .lijst-aantal-cel { grid-area: aantal; font-size: 13px; color: var(--ink-2); }
  .lijst-status { grid-area: status; flex-direction: row; flex-wrap: wrap; }
  .lijst-actie { grid-area: actie; }
  .btn-meld { min-height: 44px; min-width: 64px; padding: 8px 16px; font-size: 14px; }
  .lijst-meta { white-space: normal; }

  .btn, .btn-small { min-height: 44px; }
  .kop-acties { width: 100%; }
  .kop-acties .btn { flex: 1; }
  .pagina-artikel .kop-rij { flex-wrap: wrap; }

  .tab-balk { flex-direction: column; align-items: stretch; }
  .bestel-rij { grid-template-columns: 1fr auto; grid-template-areas: 'tekst tekst' 'aantal status' 'acties acties'; row-gap: 6px; padding: 12px; }
  .bestel-tekst { grid-area: tekst; }
  .bestel-aantal { grid-area: aantal; }
  .bestel-status { grid-area: status; justify-self: end; }
  .bestel-acties { grid-area: acties; justify-content: stretch; }
  .bestel-acties .btn { flex: 1; }
  .zoek-klein { width: 100%; min-height: 44px; }
  .filter-balk .chip-select { flex: 1 1 45%; }

  /* Tabellen als kaartjes */
  .kaart-tabel thead { display: none; }
  .kaart-tabel, .kaart-tabel tbody, .kaart-tabel tr, .kaart-tabel td { display: block; width: 100%; }
  .kaart-tabel tr { padding: 10px 0; border-bottom: 1px solid var(--rule); }
  .kaart-tabel tr:last-child { border-bottom: 0; }
  .kaart-tabel td { border: 0; padding: 3px 0; display: flex; gap: 12px; justify-content: space-between; text-align: right; }
  .kaart-tabel td > .cel { min-width: 0; }
  .kaart-tabel td::before { content: attr(data-label); color: var(--ink-3); font-size: 12px; text-align: left; flex: none; padding-top: 2px; }
  .kaart-tabel td:first-child { font-size: 15px; }
  .kaart-tabel td:first-child::before { display: none; }
  .kaart-tabel td:first-child { justify-content: flex-start; text-align: left; flex-direction: column; gap: 0; }
  .tabel-kaart { padding: 4px 14px; }

  .wens { flex-direction: column; }
  .wens-acties { min-width: 0; }
  .wens-acties select { min-height: 44px; }

  .modaal { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: var(--r-md) var(--r-md) 0 0; }
  .form-row { flex-direction: column; gap: 0; }
  .modaal-knoppen .btn { flex: 1; }
  .modaal-knoppen-verdeeld { flex-direction: column-reverse; align-items: stretch; }
  .meldingen { bottom: 16px; }
}

@media (max-width: 420px) {
  .top-hub span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ─── Beheer ─── */
.pagina-beheer { max-width: 980px; }
.beheer-uitleg { margin: 0 0 16px; max-width: 62ch; }
.beheer-kop { font-size: 16px; margin: 0 0 12px; }
.beheer-lijst { list-style: none; margin: 0; padding: 0; }
.beheer-bestaand { margin-top: 20px; overflow: hidden; }
.beheer-rij { display: grid; grid-template-columns: 1fr auto; gap: 10px 20px; align-items: end; padding: 14px 16px; }
.beheer-bestaand .beheer-rij + .beheer-rij { border-top: 1px solid var(--rule); }
.beheer-nieuw { padding: 0; }
.beheer-uit .beheer-velden { opacity: .6; }
.beheer-velden { display: flex; gap: 12px; flex-wrap: wrap; min-width: 0; }
.beheer-veld { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 170px; }
.beheer-veld.beheer-naam { flex: 2 1 200px; }
.beheer-veld.beheer-klein { flex: 0 0 84px; }
.beheer-veld label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.beheer-veld input, .beheer-veld select { width: 100%; }
.beheer-acties { display: flex; align-items: center; gap: 16px; }
.beheer-actief { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; min-height: 34px; }
.beheer-actief input { width: 18px; height: 18px; }
.beheer-rij .error-msg { grid-column: 1 / -1; margin: 0; }
@media (max-width: 719px) {
  .beheer-velden { gap: 10px; }
  .beheer-rij { grid-template-columns: 1fr; padding: 14px 12px; }
  .beheer-nieuw { padding: 0; }
  .beheer-veld, .beheer-veld.beheer-naam, .beheer-veld.beheer-klein { flex: 1 1 100%; }
  .beheer-acties { justify-content: space-between; }
  .beheer-actief { min-height: 44px; }
  .beheer-acties .btn { flex: 0 0 auto; min-width: 120px; }
  .beheer-bestaand { border-radius: var(--r-md); }
}
