/* Smulio – stijl voor beheer zaak, beheer Procres en het keukenscherm.
   Zelfde kleuren en koppen als de bestelsite, maar rustiger en dichter: dit is werkgereedschap. */
:root {
  --zwart: #010705; --paneel: #0c110f; --paneel-2: #131a17; --paneel-3: #1b2420; --lijn: #26312b; --lijn-sterk: #3a4840;
  --goud: #e3ae22; --goud-donker: #ce9d1c; --goud-zacht: rgba(227, 174, 34, .14);
  --wit: #fff; --tekst: #f2f4f2; --tekst-zacht: #aab3ad;
  --groen: #5fb76b; --groen-zacht: rgba(95, 183, 107, .16); --rood: #e5604d; --rood-zacht: rgba(229, 96, 77, .16);
  --oranje: #f0923c; --oranje-zacht: rgba(240, 146, 60, .16); --blauw: #6aa7e8;
  --straal: 12px;
  --lettertype: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --lettertype-kop: "Rockwell", "Roboto Slab", "Bitter", Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--zwart); color: var(--tekst); font: 15px/1.5 var(--lettertype); min-height: 100vh; }
h1, h2, h3 { font-family: var(--lettertype-kop); font-weight: 700; line-height: 1.15; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--goud); }
ul { list-style: none; margin: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--goud); outline-offset: 2px; }
.zacht { color: var(--tekst-zacht); }
.fijn { font-size: .82rem; }
.rechts { text-align: right; }
.nowrap { white-space: nowrap; }

/* ---------- Bovenbalk ---------- */
.bk { position: sticky; top: 0; z-index: 20; background: rgba(1, 7, 5, .96); border-bottom: 1px solid var(--lijn); backdrop-filter: blur(8px); }
.bk-binnen { display: flex; align-items: center; gap: 14px; padding: 8px 18px; }
.bk-merk { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--wit); }
.bk-merk img { width: 40px; height: auto; }
.bk-merk b { font-family: var(--lettertype-kop); letter-spacing: .04em; text-transform: uppercase; font-size: 1.05rem; display: block; line-height: 1.1; }
.bk-merk span { font-size: .75rem; color: var(--tekst-zacht); }
.bk-ruimte { flex: 1; }
.bk-gebruiker { display: flex; align-items: center; gap: 8px; color: var(--tekst-zacht); font-size: .85rem; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--goud); color: var(--zwart); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.omgeving { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--goud-zacht); color: var(--goud); border: 1px solid var(--goud-donker); }
.omgeving.procres { background: rgba(106, 167, 232, .14); color: var(--blauw); border-color: rgba(106, 167, 232, .5); }

/* ---------- Schil: navigatie + inhoud ---------- */
.schil { display: grid; grid-template-columns: 1fr; min-height: calc(100vh - 57px); }
.nav { border-bottom: 1px solid var(--lijn); overflow-x: auto; display: flex; gap: 4px; padding: 8px 12px; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav-kop { display: none; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--tekst-zacht); padding: 16px 12px 6px; }
.nav a { flex: none; display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 10px; color: var(--tekst); text-decoration: none; font-weight: 600; font-size: .92rem; }
.nav a:hover { background: var(--paneel-3); }
.nav a.is-actief { background: var(--goud-zacht); color: var(--goud); }
.nav a.later { color: var(--tekst-zacht); opacity: .7; pointer-events: none; }
.nav .pil { margin-left: auto; font-size: .62rem; padding: 2px 7px; }
.nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.inhoud { padding: 18px 14px 120px; min-width: 0; max-width: 1180px; width: 100%; }
@media (min-width: 900px) {
  .schil { grid-template-columns: 236px 1fr; }
  .nav { flex-direction: column; border-bottom: 0; border-right: 1px solid var(--lijn); padding: 8px 12px; position: sticky; top: 57px; align-self: start; height: calc(100vh - 57px); overflow-y: auto; }
  .nav-kop { display: block; }
  .nav a { flex: none; }
  .inhoud { padding: 28px 32px 120px; }
}

/* ---------- Kopjes en vlakken ---------- */
.pagina-kop { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.pagina-kop h1 { font-size: 1.6rem; color: var(--wit); }
.pagina-kop p { margin: 4px 0 0; color: var(--tekst-zacht); max-width: 62ch; }
.pagina-kop .acties { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.vlak { background: var(--paneel); border: 1px solid var(--lijn); border-radius: var(--straal); padding: 16px; }
.vlak + .vlak { margin-top: 14px; }
.rij > .vlak, .menu-indeling .vlak, .bewerk .zij .vlak + .vlak { margin-top: 0; }
.bewerk .zij { display: grid; gap: 14px; }
.vlak h2 { font-size: 1.05rem; color: var(--goud); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.vlak > .zacht:first-of-type { margin: 0 0 12px; }
.rij { display: grid; gap: 12px; }
@media (min-width: 700px) { .rij.twee { grid-template-columns: 1fr 1fr; } .rij.drie { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Knoppen ---------- */
.primair, .secundair, .gevaar, .tekstknop {
  border-radius: 10px; padding: 9px 16px; font-weight: 700; border: 1px solid transparent; min-height: 40px; display: inline-flex; align-items: center; gap: 8px; justify-content: center; text-decoration: none;
}
.primair { background: var(--goud); color: var(--zwart); }
.primair:hover { background: #f0bd3a; }
.secundair { background: var(--paneel-2); border-color: var(--lijn-sterk); color: var(--tekst); }
.secundair:hover { border-color: var(--goud-donker); }
.gevaar { background: var(--rood-zacht); color: var(--rood); border-color: rgba(229, 96, 77, .4); }
.tekstknop { background: none; color: var(--goud); padding: 6px 8px; min-height: 0; }
.klein { padding: 5px 12px; min-height: 32px; font-size: .85rem; }
button:disabled { opacity: .45; cursor: not-allowed; }
.icoon { width: 36px; height: 36px; border-radius: 10px; background: none; border: 0; color: var(--tekst-zacht); font-size: 1.4rem; line-height: 1; }
.icoon:hover { background: var(--paneel-3); color: var(--wit); }

/* ---------- Velden ---------- */
.veld { display: flex; flex-direction: column; gap: 5px; }
.veld > span { font-size: .8rem; font-weight: 700; color: var(--tekst-zacht); }
.veld small { color: var(--tekst-zacht); font-size: .78rem; }
.veld input, .veld select, .veld textarea, .invoer {
  width: 100%; padding: 10px 12px; background: var(--paneel-2); border: 1px solid var(--lijn-sterk); border-radius: 10px; color: var(--wit);
}
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]), select, textarea {
  padding: 10px 12px; background: var(--paneel-2); border: 1px solid var(--lijn-sterk); border-radius: 10px; color: var(--wit); min-width: 0;
}
select { color-scheme: dark; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--goud); }
input[type="file"] { color: var(--tekst-zacht); font-size: .85rem; max-width: 100%; }
input[type="file"]::file-selector-button { background: var(--paneel-3); color: var(--tekst); border: 1px solid var(--lijn-sterk); border-radius: 8px; padding: 7px 12px; margin-right: 10px; font-weight: 700; cursor: pointer; }
input::placeholder, textarea::placeholder { color: #6f7a73; }
.variant-rij input, .variant-rij select, .allergeen-rij select { width: 100%; }
.veld textarea { min-height: 84px; resize: vertical; }
.veld input[type="color"] { padding: 3px; height: 42px; }
.veld.fout input { border-color: var(--rood); }
.veld .melding { font-size: .8rem; }
.melding.goed { color: var(--groen); } .melding.slecht { color: var(--rood); }
.invoer-groep { display: flex; align-items: stretch; }
.invoer-groep input { border-top-right-radius: 0; border-bottom-right-radius: 0; min-width: 0; }
.invoer-groep .achtervoegsel { padding: 10px 12px; background: var(--paneel-3); border: 1px solid var(--lijn-sterk); border-left: 0; border-radius: 0 10px 10px 0; color: var(--tekst-zacht); white-space: nowrap; display: flex; align-items: center; }
.prijsveld { max-width: 130px; }

/* Schakelaar */
.schakel { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.schakel input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.schakel i { width: 42px; height: 24px; border-radius: 999px; background: var(--paneel-3); border: 1px solid var(--lijn-sterk); position: relative; flex: none; transition: background .15s; }
.schakel i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--tekst-zacht); transition: transform .15s, background .15s; }
.schakel input:checked + i { background: var(--goud-zacht); border-color: var(--goud-donker); }
.schakel input:checked + i::after { transform: translateX(18px); background: var(--goud); }
.schakel input:focus-visible + i { outline: 3px solid var(--goud); outline-offset: 2px; }
.schakel-tekst { font-weight: 600; }
.schakel-rij { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--lijn); }
.schakel-rij:first-of-type { border-top: 0; }
.schakel-rij p { margin: 0; }

/* Pillen */
.pil { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--paneel-3); color: var(--tekst); white-space: nowrap; }
.pil.goed { background: var(--groen-zacht); color: var(--groen); }
.pil.let-op { background: var(--oranje-zacht); color: var(--oranje); }
.pil.slecht { background: var(--rood-zacht); color: var(--rood); }
.pil.goud { background: var(--goud-zacht); color: var(--goud); }
.stip { width: 9px; height: 9px; border-radius: 50%; background: var(--groen); display: inline-block; }
.stip.uit { background: var(--rood); } .stip.wacht { background: var(--oranje); }

/* ---------- Tabel ---------- */
.tabel-wrap { overflow-x: auto; border: 1px solid var(--lijn); border-radius: var(--straal); background: var(--paneel); }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--tekst-zacht); padding: 10px 14px; border-bottom: 1px solid var(--lijn); white-space: nowrap; }
td { padding: 10px 14px; border-bottom: 1px solid var(--lijn); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255, 255, 255, .02); }
td.naam b { display: block; color: var(--wit); }
td.naam span { color: var(--tekst-zacht); font-size: .82rem; }

/* ---------- Statistiek en voortgang ---------- */
.cijfers { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .cijfers { grid-template-columns: repeat(4, 1fr); } }
.cijfer { background: var(--paneel); border: 1px solid var(--lijn); border-radius: var(--straal); padding: 14px; }
.cijfer b { display: block; font-family: var(--lettertype-kop); font-size: 1.7rem; color: var(--wit); line-height: 1.1; }
.cijfer span { color: var(--tekst-zacht); font-size: .82rem; }
.voortgang { height: 8px; background: var(--paneel-3); border-radius: 999px; overflow: hidden; margin: 8px 0 4px; }
.voortgang i { display: block; height: 100%; background: var(--goud); border-radius: 999px; }
.taken li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--lijn); }
.taken li:first-child { border-top: 0; }
.taken .tekst { flex: 1; min-width: 0; }
.taken .tekst b { display: block; }
.vink { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--lijn-sterk); display: grid; place-items: center; flex: none; font-size: .8rem; font-weight: 800; }
.vink.klaar { background: var(--groen); border-color: var(--groen); color: var(--zwart); }

/* ---------- Menu-indeling ---------- */
.menu-indeling { display: grid; gap: 14px; }
@media (min-width: 980px) { .menu-indeling { grid-template-columns: 270px 1fr; align-items: start; } }
.cat-lijst { padding: 6px; }
.cat-lijst li { display: flex; align-items: center; gap: 6px; border-radius: 10px; }
.cat-lijst li.is-actief { background: var(--goud-zacht); }
.cat-lijst li button.cat-naam { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 10px 10px; font-weight: 600; display: flex; justify-content: space-between; gap: 8px; border-radius: 10px; }
.cat-lijst li.is-actief .cat-naam { color: var(--goud); }
.cat-lijst .tel { color: var(--tekst-zacht); font-weight: 500; font-size: .82rem; }
.cat-lijst .greep { color: var(--lijn-sterk); cursor: grab; padding: 0 2px 0 8px; font-size: 1.1rem; letter-spacing: -2px; }
.cat-lijst li.verborgen .cat-naam { opacity: .5; text-decoration: line-through; }
.gereedschap { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.gereedschap .zoek { flex: 1 1 220px; }
.foto-mini { width: 44px; height: 44px; border-radius: 8px; background: var(--paneel-3); object-fit: cover; flex: none; border: 1px solid var(--lijn); display: grid; place-items: center; color: var(--lijn-sterk); font-size: .7rem; }
.product-cel { display: flex; align-items: center; gap: 12px; }
.klik-rij { cursor: pointer; }

/* ---------- Product bewerken ---------- */
.bewerk { display: grid; gap: 14px; }
@media (min-width: 1000px) { .bewerk { grid-template-columns: 1fr 340px; align-items: start; } .bewerk .zij { position: sticky; top: 76px; } }
.terug { display: inline-flex; gap: 6px; color: var(--tekst-zacht); text-decoration: none; font-weight: 600; margin-bottom: 8px; }
.foto-vak { border: 2px dashed var(--lijn-sterk); border-radius: var(--straal); aspect-ratio: 4/3; display: grid; place-items: center; text-align: center; color: var(--tekst-zacht); overflow: hidden; cursor: pointer; background: var(--paneel-2); position: relative; }
.foto-vak:hover, .foto-vak.sleep { border-color: var(--goud); color: var(--goud); }
.foto-vak img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.foto-vak input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.foto-vak strong { display: block; color: var(--tekst); }
.variant-rij { display: grid; grid-template-columns: 1fr 120px auto auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--lijn); }
.variant-rij:first-of-type { border-top: 0; }
@media (max-width: 560px) { .variant-rij { grid-template-columns: 1fr 100px; } }
.allergeen-rij { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--lijn); }
.allergeen-rij:first-of-type { border-top: 0; }
@media (max-width: 560px) { .allergeen-rij { grid-template-columns: 1fr; } }
.drie-weg { display: inline-flex; background: var(--paneel-2); border: 1px solid var(--lijn-sterk); border-radius: 10px; padding: 3px; }
.drie-weg button { background: none; border: 0; border-radius: 8px; padding: 6px 12px; font-size: .82rem; font-weight: 700; color: var(--tekst-zacht); white-space: nowrap; }
.drie-weg button[aria-pressed="true"] { background: var(--paneel-3); color: var(--wit); }
.drie-weg button[data-w="bevat"][aria-pressed="true"] { background: var(--rood-zacht); color: var(--rood); }
.drie-weg button[data-w="sporen"][aria-pressed="true"] { background: var(--oranje-zacht); color: var(--oranje); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-keuze { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--lijn-sterk); background: var(--paneel-2); font-weight: 600; font-size: .88rem; cursor: pointer; }
.chip-keuze input { accent-color: var(--goud); }
.chip-keuze:has(input:checked) { border-color: var(--goud-donker); background: var(--goud-zacht); color: var(--goud); }
.bewaarbalk { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: rgba(12, 17, 15, .97); border-top: 1px solid var(--lijn-sterk); padding: 10px 18px; display: flex; gap: 10px; align-items: center; justify-content: flex-end; }
@media (min-width: 900px) { .bewaarbalk { left: 236px; } }
.bewaarbalk .zacht { margin-right: auto; }
.bevestig { background: var(--goud-zacht); border: 1px solid var(--goud-donker); border-radius: var(--straal); padding: 12px 14px; }
.bevestig .schakel-tekst { color: var(--goud); }

/* ---------- Printers ---------- */
.printer-kaart { display: grid; gap: 12px; }
.printer-kop { display: flex; align-items: center; gap: 12px; }
.printer-icoon { width: 48px; height: 48px; border-radius: 12px; background: var(--paneel-3); display: grid; place-items: center; flex: none; }
.printer-icoon svg { width: 26px; height: 26px; fill: none; stroke: var(--goud); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.stappen { counter-reset: s; display: grid; gap: 10px; }
.stappen li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.stappen li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: var(--goud-zacht); color: var(--goud); display: grid; place-items: center; font-weight: 800; }
code, .code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; background: var(--paneel-3); padding: 2px 7px; border-radius: 6px; font-size: .85em; word-break: break-all; }
.voorbeelden { display: grid; gap: 18px; }
@media (min-width: 760px) { .voorbeelden { grid-template-columns: auto 1fr; align-items: start; } }

/* Bon (witte thermische strook) en label (witte sticker) */
.bon {
  background: #f7f6f0; color: #151515; font: 12.5px/1.35 ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
  padding: 18px 16px; margin: 0; width: calc(48ch + 32px); max-width: 100%; overflow-x: auto; white-space: pre; border-radius: 4px 4px 0 0;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
  padding-bottom: 28px;
}
.labels { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.label { background: #fbfaf5; color: #111; border-radius: 6px; padding: 8px 10px; width: 250px; display: flex; flex-direction: column; justify-content: space-between; gap: 2px; border: 1px solid #cfcdbf; overflow: hidden; font-family: var(--lettertype); }
.label-kop { display: flex; gap: 8px; align-items: baseline; font-size: .74rem; }
.label-kop b { font-size: 1.1rem; font-family: var(--lettertype-kop); }
.label-kop span:last-child { margin-left: auto; font-weight: 700; }
.label-product { font-family: var(--lettertype-kop); font-weight: 800; font-size: 1.05rem; line-height: 1.1; }
.label-details { font-size: .72rem; color: #444; line-height: 1.25; }
.label-opm { font-size: .72rem; font-weight: 800; }
.label-voet { font-size: .68rem; text-align: right; color: #555; }

/* Wachtrij */
.wachtrij td { font-size: .88rem; }

/* ---------- Dialoog en toast ---------- */
.dialoog { border: 1px solid var(--lijn-sterk); border-radius: 16px; background: var(--paneel); color: var(--tekst); padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); }
.dialoog::backdrop { background: rgba(0, 0, 0, .7); }
.dialoog[open] { display: flex; flex-direction: column; }
.dialoog-kop { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 0 20px; }
.dialoog-kop h2 { font-size: 1.2rem; }
.dialoog-inhoud { padding: 12px 20px; overflow-y: auto; display: grid; gap: 12px; }
.dialoog-voet { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 20px 18px; }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px); background: var(--paneel-3); color: var(--wit); border: 1px solid var(--goud-donker); padding: 10px 18px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; font-weight: 600; max-width: calc(100vw - 24px); }
.toast.zichtbaar { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Beheer Procres: formulier met voorbeeld ---------- */
.nieuw-zaak { display: grid; gap: 14px; }
@media (min-width: 1000px) { .nieuw-zaak { grid-template-columns: 1fr 340px; align-items: start; } .nieuw-zaak .zij { position: sticky; top: 76px; } }
.adres-voorbeeld { font-size: 1.05rem; word-break: break-all; background: var(--paneel-2); border: 1px solid var(--lijn); border-radius: 10px; padding: 10px 12px; }
.adres-voorbeeld b { color: var(--goud); }
.mini-site { border-radius: 14px; overflow: hidden; border: 1px solid var(--lijn-sterk); }
.mini-kop { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.mini-logo { width: 34px; height: 34px; border-radius: 8px; background: #fff3; object-fit: contain; flex: none; }
.mini-kop b { font-family: var(--lettertype-kop); text-transform: uppercase; letter-spacing: .04em; }
.mini-body { padding: 12px; display: grid; gap: 8px; }
.mini-kaart { border-radius: 10px; padding: 10px; display: flex; justify-content: space-between; align-items: center; border: 1px solid rgba(255, 255, 255, .12); }
.mini-knop { border-radius: 10px; padding: 9px; text-align: center; font-weight: 800; }
.succes { text-align: center; padding: 28px 16px; }
.succes > .vink { width: 56px; height: 56px; margin: 0 auto 12px; font-size: 1.6rem; }

/* Keuzegroepen en opties */
.optie-rij { display: grid; grid-template-columns: 1fr 120px 64px 64px 36px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--lijn); }
.optie-kop { display: grid; grid-template-columns: 1fr 120px 64px 64px 36px; gap: 10px; font-size: .8rem; color: var(--tekst-zacht); padding-bottom: 4px; }
.optie-rij input:not([type=checkbox]) { width: 100%; }
.optie-rij .schakel, .optie-kop span { justify-self: center; }
@media (max-width: 640px) { .optie-rij, .optie-kop { grid-template-columns: 1fr 96px 56px 56px 32px; gap: 6px; } }
.cat-blok { border-top: 1px solid var(--lijn); padding: 10px 0; }
.cat-blok:first-of-type { border-top: 0; }
.cat-blok h3 { display: flex; justify-content: space-between; align-items: center; font-size: .95rem; margin: 0 0 6px; }
.vink-lijst { display: grid; gap: 4px 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.vink-lijst label { display: flex; gap: 8px; align-items: center; padding: 4px 0; cursor: pointer; }

/* ---------- Foto's nemen met de telefoon ---------- */
.foto-teller { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.foto-teller b { font-family: var(--lettertype-kop); font-size: 2rem; color: var(--goud); line-height: 1; }
.foto-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.foto-filters select { min-height: 40px; padding: 6px 10px; border-radius: 999px; background: var(--paneel-2); border: 1px solid var(--lijn-sterk); }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--lijn-sterk); background: var(--paneel-2); color: var(--tekst); text-decoration: none; font-weight: 600; }
.chip.is-actief { background: var(--goud); color: var(--zwart); border-color: var(--goud); }
.foto-lijst { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .foto-lijst { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .foto-lijst { grid-template-columns: repeat(3, 1fr); } }
.foto-kaart { background: var(--paneel); border: 1px solid var(--lijn); border-radius: var(--straal); overflow: hidden; display: grid; }
.foto-kaart[hidden] { display: none; }
.foto-kaart.net-gedaan { border-color: var(--groen); }
.foto-zoek { display: flex; gap: 8px; margin-bottom: 14px; position: sticky; top: 57px; z-index: 5; padding: 8px 0; background: var(--zwart, #000); }
.foto-zoek input { flex: 1; min-height: 46px; padding: 8px 16px; border-radius: 999px; background: var(--paneel-2); border: 1px solid var(--lijn-sterk); color: var(--tekst); font-size: 1rem; }
.foto-zoek button { min-height: 46px; border-radius: 999px; padding: 0 16px; }
.foto-beeld { position: relative; aspect-ratio: 4 / 3; background: var(--paneel-2); display: grid; place-items: center; }
.foto-beeld img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.foto-leeg { color: var(--tekst-zacht); font-weight: 600; }
.foto-bezig { position: absolute; inset: 0; background: rgba(1, 7, 5, .78); display: grid; place-content: center; justify-items: center; gap: 10px; font-weight: 700; }
.draai { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--lijn-sterk); border-top-color: var(--goud); animation: foto-draai .8s linear infinite; }
@keyframes foto-draai { to { transform: rotate(360deg); } }
.foto-info { padding: 12px 14px 14px; display: grid; gap: 4px; }
.foto-info b { font-size: 1.05rem; }
.foto-status { min-height: 1.3em; }
.foto-status.goed { color: var(--groen); font-weight: 700; }
.foto-status.fout { color: var(--rood); font-weight: 700; }
.foto-knoppen { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 6px; }
.foto-knop { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 10px 18px; border-radius: 10px; font-weight: 800; cursor: pointer; text-align: center; }
.foto-knop svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.foto-galerij { font-weight: 600; }

/* ---------- App-menu op de telefoon: onderbalk met "Meer" ----------
   Onder 900 px vervangt dit de zijbalk. Vanaf 900 px blijft de zijbalk en verdwijnt de onderbalk. */
.onderbalk, .meer-blad, .meer-achter { display: none; }
@media (max-width: 899px) {
  .alleen-groot { display: none !important; }
  .inhoud { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }

  .onderbalk {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: rgba(12, 17, 15, .98); border-top: 1px solid var(--lijn-sterk); backdrop-filter: blur(10px);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  }
  .onderbalk a, .onderbalk button {
    flex: 1; display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 52px; padding: 4px 2px;
    background: none; border: 0; border-radius: 12px; color: var(--tekst-zacht); text-decoration: none;
    font-size: .72rem; font-weight: 700; letter-spacing: .02em;
  }
  .onderbalk svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .onderbalk .is-actief { color: var(--goud); background: var(--goud-zacht); }
  .onderbalk [aria-expanded="true"] { color: var(--goud); }

  /* Knoppen die bovenaan de pagina vastzitten, komen boven de onderbalk te staan */
  .bewaarbalk { bottom: calc(64px + env(safe-area-inset-bottom)); }
  body:has(.onderbalk) .toast { bottom: calc(140px + env(safe-area-inset-bottom)); }

  .meer-achter { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .6); }
  .meer-blad {
    display: flex; flex-direction: column; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; max-height: 86vh;
    background: var(--paneel); border-top: 1px solid var(--lijn-sterk); border-radius: 18px 18px 0 0;
    padding: 10px 16px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -12px 40px rgba(0, 0, 0, .55);
    animation: meer-op .2s ease-out;
  }
  .meer-blad[hidden], .meer-achter[hidden] { display: none; }
  .meer-blad::before { content: ""; width: 42px; height: 4px; border-radius: 4px; background: var(--lijn-sterk); margin: 0 auto 10px; flex: none; }
  .meer-kop { display: flex; align-items: center; gap: 12px; padding: 4px 0 12px; border-bottom: 1px solid var(--lijn); flex: none; }
  .meer-kop b { display: block; color: var(--wit); }
  .meer-kop > div { flex: 1; min-width: 0; }
  .meer-sluit { width: 44px; height: 44px; border-radius: 50%; background: var(--paneel-3); border: 0; font-size: 1.6rem; line-height: 1; color: var(--tekst); }
  .meer-lijst { overflow-y: auto; padding: 6px 0; display: grid; }
  .meer-lijst a {
    display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 8px 10px; border-radius: 12px;
    color: var(--tekst); text-decoration: none; font-weight: 600; font-size: 1rem;
  }
  .meer-lijst a:active { background: var(--paneel-3); }
  .meer-lijst a.is-actief { background: var(--goud-zacht); color: var(--goud); }
  .meer-lijst svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
  .meer-lijst small { margin-left: auto; color: var(--tekst-zacht); font-size: .72rem; font-weight: 600; }
  .meer-uit { padding-top: 10px; border-top: 1px solid var(--lijn); flex: none; }
  .meer-uit button { width: 100%; min-height: 48px; }
  body.meer-open { overflow: hidden; }
}
@keyframes meer-op { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .meer-blad { animation: none; } }