/* 4Bizz - CASE202405637 - Opzet Bestelplatform - 28-10-2026 --> */
/* Huisstijl komt uit /merk.css (variabelen hieronder zijn de standaard). Geen externe lettertypen: de CSP staat alleen eigen bestanden toe. */
:root {
  --marine: #004085; --marine-donker: #003468; --marine-licht: #7fa3cf; --accent-zacht: #e6eef8;
  --goud: #D4AF37; --goud-zacht: #fbf3d9; --goud-hover: #bf9d2f; --op-goud: #212121; --op-marine: #ffffff;
  --tekst: #1d2733; --tekst-zacht: #6b7785; --lijn: #e3e8ee; --vlak: #f4f6f9; --wit: #ffffff;
  --ok: #1f8a4c; --ok-zacht: #e4f5ea; --waarschuwing: #b26b00; --waarschuwing-zacht: #fff3dc;
  --fout: #c0392b; --fout-zacht: #fdeceb;
  --radius: 14px; --schaduw: 0 1px 2px rgba(20,35,60,.06), 0 4px 14px rgba(20,35,60,.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.45 var(--font); color: var(--tekst); background: var(--vlak); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1rem; }
a { color: var(--marine); }
button, input, select, textarea { font: inherit; color: inherit; }
.klein { font-size: .85rem; color: var(--tekst-zacht); }
.laden { padding: 2rem; text-align: center; color: var(--tekst-zacht); }
.verborgen { display: none !important; }
.rechts { text-align: right; }
code { background: var(--vlak); padding: .1em .35em; border-radius: 6px; font-size: .9em; word-break: break-all; }

/* ----- knoppen en velden ----- */
.knop { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 0; cursor: pointer; padding: .65rem 1.1rem;
  border-radius: 10px; background: var(--goud); color: var(--op-goud); font-weight: 600; text-decoration: none; min-height: 44px; }
.knop:hover { background: var(--goud-hover); }
.knop:disabled { opacity: .5; cursor: not-allowed; }
.knop.groot { width: 100%; min-height: 50px; font-size: 1.05rem; }
.knop.stil { background: var(--wit); color: var(--tekst); border: 1px solid var(--lijn); }
.knop.stil:hover { background: var(--vlak); }
.knop.gevaar { background: var(--fout-zacht); color: var(--fout); }
.knop.klein { min-height: 36px; padding: .35rem .8rem; font-size: .9rem; color: inherit; }
label { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 .9rem; }
label small { font-weight: 400; color: var(--tekst-zacht); display: block; margin-top: .2rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=date], input[type=time], select, textarea {
  display: block; width: 100%; margin-top: .3rem; padding: .65rem .8rem; border: 1px solid var(--lijn); border-radius: 10px; background: var(--wit); min-height: 44px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--marine-licht); border-color: var(--marine); }
textarea { min-height: 80px; resize: vertical; }
.codeveld { font-size: 1.6rem; letter-spacing: .3em; text-align: center; }
.keuze { display: flex; align-items: center; gap: .5rem; font-weight: 500; }
.keuze input { width: 20px; height: 20px; margin: 0; }
.rij { display: flex; gap: .75rem; flex-wrap: wrap; align-items: flex-end; }
.rij > * { flex: 1 1 160px; }
.rij > .vast { flex: 0 0 auto; }

/* ----- inlogpagina's ----- */
body.inlog { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem 1rem;
  background: linear-gradient(160deg, var(--marine) 0%, var(--marine-donker) 100%); }
.inlog-kaart { width: 100%; max-width: 400px; background: var(--wit); border-radius: 20px; padding: 1.75rem 1.5rem; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.inlog-merk { text-align: center; margin-bottom: 1.25rem; }
.inlog-merk h1 { margin: .6rem 0 0; font-size: 1.35rem; }
.inlog-logo { max-height: 64px; max-width: 220px; }
.teken { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--goud); color: var(--op-goud); font-weight: 700; font-size: 1.3rem; }
.inlog-voet { color: rgba(255,255,255,.7); font-size: .8rem; margin-top: 1rem; }
.qr { display: block; margin: .5rem auto; width: 200px; height: 200px; }
.melding { padding: .65rem .85rem; border-radius: 10px; margin: 0 0 1rem; font-size: .92rem; }
.melding.fout { background: var(--fout-zacht); color: var(--fout); }
.melding.ok { background: var(--ok-zacht); color: var(--ok); }
.melding.let-op { background: var(--waarschuwing-zacht); color: var(--waarschuwing); }
.welkom { color: var(--tekst-zacht); text-align: center; }

/* ----- app-schil ----- */
.kop { position: sticky; top: 0; z-index: 20; background: var(--marine); color: var(--op-marine); padding: .6rem 1rem; padding-top: calc(.6rem + env(safe-area-inset-top)); display: flex; align-items: center; gap: .75rem; }
.kop .merk { display: flex; align-items: center; gap: .6rem; font-weight: 700; text-decoration: none; color: inherit; flex: 1; min-width: 0; }
.kop .merk img { height: 32px; max-width: 120px; object-fit: contain; }
.kop .merk .teken { width: 34px; height: 34px; border-radius: 10px; font-size: .9rem; }
.kop .merk span.naam { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kop select { width: auto; max-width: 200px; margin: 0; min-height: 38px; padding: .3rem .6rem; color: var(--tekst); font-weight: 600; }
.wagenknop { position: relative; display: inline-flex; align-items: center; gap: .4rem; background: var(--goud); color: var(--op-goud); text-decoration: none; padding: .45rem .8rem; border-radius: 999px; font-weight: 700; min-height: 38px; }
.wagenknop .teller { background: var(--op-goud); color: var(--goud); border-radius: 999px; padding: 0 .45rem; font-size: .8rem; min-width: 1.4rem; text-align: center; }
nav.hoofd { background: var(--wit); border-bottom: 1px solid var(--lijn); display: none; padding: 0 1rem; gap: .25rem; overflow-x: auto; }
nav.hoofd a, nav.onder a { color: var(--tekst-zacht); text-decoration: none; padding: .8rem .9rem; font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; position: relative; }
nav.hoofd a.actief { color: var(--marine); border-bottom-color: var(--goud); }
nav.onder { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--wit); border-top: 1px solid var(--lijn); display: flex; justify-content: space-around; padding-bottom: env(safe-area-inset-bottom); }
nav.onder a { flex: 1; text-align: center; padding: .55rem .2rem; font-size: .75rem; border: 0; display: flex; flex-direction: column; align-items: center; gap: .15rem; }
nav.onder a .pictogram { font-size: 1.3rem; line-height: 1; }
nav.onder a.actief { color: var(--marine); }
.badge { background: var(--fout); color: #fff; border-radius: 999px; font-size: .7rem; padding: 0 .4rem; min-width: 1.2rem; text-align: center; margin-left: .3rem; }
main.inhoud { max-width: 1100px; margin: 0 auto; padding: 1rem 1rem calc(5.5rem + env(safe-area-inset-bottom)); }
@media (min-width: 800px) {
  nav.hoofd { display: flex; } nav.onder { display: none; }
  main.inhoud { padding-bottom: 2rem; }
}
.paginakop { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.paginakop h1 { margin: 0; }
.kaart { background: var(--wit); border-radius: var(--radius); box-shadow: var(--schaduw); padding: 1rem; margin-bottom: 1rem; }
.kaart.vlak { box-shadow: none; border: 1px solid var(--lijn); }
.leeg { text-align: center; color: var(--tekst-zacht); padding: 2.5rem 1rem; }
.leeg .groot { font-size: 2.5rem; display: block; margin-bottom: .5rem; }

/* ----- catalogus ----- */
.zoekbalk { position: sticky; top: 56px; z-index: 10; background: var(--vlak); padding: .25rem 0 .5rem; }
.zoekbalk input { margin: 0; border-radius: 999px; padding-left: 1.1rem; box-shadow: var(--schaduw); }
.chips { display: flex; gap: .5rem; overflow-x: auto; padding: .5rem 0 .25rem; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; border: 1px solid var(--lijn); background: var(--wit); border-radius: 999px; padding: .4rem .9rem; cursor: pointer; font-weight: 600; font-size: .9rem; }
a.chip { text-decoration: none; color: var(--tekst); }
.chip.actief { background: var(--marine); border-color: var(--marine); color: var(--op-marine); }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: .75rem; margin-top: .5rem; }
@media (min-width: 600px) { .raster { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; } }
.artikel { background: var(--wit); border-radius: var(--radius); box-shadow: var(--schaduw); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.artikel.in-wagen { outline: 2px solid var(--goud); }
.artikel .foto { aspect-ratio: 4 / 3; background: var(--accent-zacht); display: grid; place-items: center; overflow: hidden; }
.artikel .foto img { width: 100%; height: 100%; object-fit: cover; }
.artikel .foto .letter { font-size: 2.4rem; font-weight: 700; color: var(--marine-licht); }
.artikel .tekst { padding: .6rem .75rem 0; flex: 1; }
.artikel .naam { font-weight: 600; font-size: .95rem; line-height: 1.25; }
.artikel .sub { color: var(--tekst-zacht); font-size: .8rem; margin-top: .15rem; }
.artikel .prijs { font-weight: 700; margin-top: .35rem; }
.artikel .prijs s { color: var(--tekst-zacht); font-weight: 400; font-size: .85rem; margin-right: .3rem; }
.ster { position: absolute; top: .4rem; right: .4rem; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); cursor: pointer; font-size: 1.15rem; line-height: 1; color: var(--tekst-zacht); box-shadow: var(--schaduw); }
.ster.aan { color: var(--goud-hover); }
.voorraad { display: inline-block; font-size: .72rem; font-weight: 700; padding: .05rem .5rem; border-radius: 999px; margin-top: .3rem; }
.voorraad.ja { background: var(--ok-zacht); color: var(--ok); } .voorraad.beperkt { background: var(--waarschuwing-zacht); color: var(--waarschuwing); } .voorraad.nee { background: var(--fout-zacht); color: var(--fout); }
.aantal { display: flex; align-items: stretch; margin: .6rem .75rem .75rem; border: 1px solid var(--lijn); border-radius: 10px; overflow: hidden; }
.aantal button { width: 44px; border: 0; background: var(--vlak); cursor: pointer; font-size: 1.2rem; font-weight: 700; }
.aantal button:active { background: var(--lijn); }
.aantal input { flex: 1; min-width: 0; margin: 0; border: 0; border-radius: 0; text-align: center; min-height: 44px; font-weight: 700; }
.aantal input:focus { outline: none; }
.wagenbalk { position: fixed; left: 0; right: 0; bottom: calc(56px + env(safe-area-inset-bottom)); z-index: 15; padding: .6rem 1rem; }
@media (min-width: 800px) { .wagenbalk { bottom: 0; } }
.wagenbalk a { display: flex; justify-content: space-between; max-width: 1100px; margin: 0 auto; background: var(--marine); color: var(--op-marine); border-radius: 14px; padding: .85rem 1.1rem; text-decoration: none; font-weight: 700; box-shadow: 0 6px 24px rgba(0,0,0,.25); }

/* ----- winkelwagen en lijsten ----- */
.regel { display: grid; grid-template-columns: 1fr auto; gap: .25rem .75rem; padding: .75rem 0; border-bottom: 1px solid var(--lijn); align-items: center; }
.regel:last-child { border-bottom: 0; }
.regel .aantal { margin: 0; grid-column: 1; width: 150px; }
.regel .bedrag { font-weight: 700; text-align: right; }
.totaal { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 700; padding-top: .75rem; }
.datumkeuze { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.datumkeuze button { border: 1px solid var(--lijn); background: var(--wit); border-radius: 12px; padding: .55rem .9rem; cursor: pointer; font-weight: 600; }
.datumkeuze button.actief { border-color: var(--marine); background: var(--marine); color: var(--op-marine); }
.status { display: inline-block; padding: .1rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--vlak); color: var(--tekst-zacht); }
.status.ok { background: var(--ok-zacht); color: var(--ok); } .status.let-op { background: var(--waarschuwing-zacht); color: var(--waarschuwing); } .status.fout { background: var(--fout-zacht); color: var(--fout); }
.lijstrij { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--lijn); cursor: pointer; }
.lijstrij:last-child { border-bottom: 0; }
.lijstrij .groot { font-weight: 700; }
.bevestigd { text-align: center; padding: 2rem 1rem; }
.bevestigd .vink { width: 72px; height: 72px; border-radius: 50%; background: var(--ok-zacht); color: var(--ok); font-size: 2.5rem; display: grid; place-items: center; margin: 0 auto 1rem; }

/* ----- tabellen en beheer ----- */
table.tabel { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.tabel th { text-align: left; color: var(--tekst-zacht); font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; padding: .4rem .5rem; border-bottom: 1px solid var(--lijn); }
table.tabel td { padding: .6rem .5rem; border-bottom: 1px solid var(--lijn); vertical-align: top; }
.scroll { overflow-x: auto; }
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.acties { display: flex; gap: .5rem; flex-wrap: wrap; }
.dagen { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: .9rem; }
pre.log { background: var(--vlak); padding: .6rem; border-radius: 8px; overflow-x: auto; font-size: .8rem; white-space: pre-wrap; }

/* ----- venster en melding ----- */
.achter { position: fixed; inset: 0; z-index: 50; background: rgba(15,25,40,.5); display: grid; place-items: center; padding: 1rem; }
.venster { background: var(--wit); border-radius: 18px; padding: 1.25rem; width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.venster.breed { max-width: 820px; }
.venster h2 { margin-bottom: 1rem; }
.venster .onder { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1rem; flex-wrap: wrap; }
.toasts { position: fixed; left: 0; right: 0; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 60; display: flex; flex-direction: column; align-items: center; gap: .5rem; pointer-events: none; padding: 0 1rem; }
.toast { background: var(--tekst); color: #fff; padding: .7rem 1rem; border-radius: 12px; box-shadow: var(--schaduw); max-width: 520px; font-size: .95rem; }
.toast.fout { background: var(--fout); }
/* 4Bizz - CASE202405637 - Opzet Bestelplatform - 28-10-2026 <-- */
