/* =========================================================================
   Tablova — design system "Bistro"
   Warme, smakelijke uitstraling; werkt op telefoon, tablet en desktop.
   ========================================================================= */

/* Het hidden-attribuut moet altijd verbergen (ook bij display:flex-elementen). */
[hidden] { display: none !important; }

/* Dubbeltik-zoom uitzetten bij snel tikken (PIN/toegangscode, tegels, knoppen).
   'manipulation' laat scrollen/pannen gewoon toe. */
button, a, input, select, textarea, label, .tile, .staff-tile, .pinpad button { touch-action: manipulation; }

:root {
  /* Merk-/accentkleuren (Tablova "Bistro") */
  --brand:        #3a332b;   /* inkt */
  --brand-deep:   #23201b;
  --accent:       #c9442b;   /* tomaat (per restaurant instelbaar) */
  --accent-warm:  #e9b949;   /* boter */
  --leaf:         #6e7b3f;

  /* Neutralen (licht thema) */
  --bg:           #f4ede3;   /* papier */
  --surface:      #ffffff;
  --surface-2:    #ebe2d4;
  --line:         #ddd2c1;
  --text:         #23201b;
  --text-soft:    #6f675a;
  --text-mute:    #9a9184;

  /* Status */
  --ok:           #4f8a5b;
  --warn:         #d98b3a;
  --danger:       #a8261b;

  /* Vorm & schaduw */
  --r-sm: 10px;  --r: 16px;  --r-lg: 22px;  --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(35,32,27,.06), 0 2px 8px rgba(35,32,27,.06);
  --sh-2: 0 6px 24px rgba(35,32,27,.12);
  --sh-3: 0 18px 48px rgba(35,32,27,.22);

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --tap: 52px;               /* comfortabele raakdoelen */
}

/* Systeem-donker (tenzij gebruiker expliciet 'light' koos) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #14100b;
    --surface:   #201b14;
    --surface-2: #2a241b;
    --line:      #37301f;
    --text:      #f2ead9;
    --text-soft: #c3b8a2;
    --text-mute: #8f8471;
    --sh-1: 0 1px 2px rgba(0,0,0,.4);
    --sh-2: 0 6px 24px rgba(0,0,0,.45);
    --sh-3: 0 18px 48px rgba(0,0,0,.6);
  }
}
/* Expliciete donker-keuze (thema-knop) — wint altijd */
:root[data-theme="dark"] {
  --bg:        #14100b;
  --surface:   #201b14;
  --surface-2: #2a241b;
  --line:      #37301f;
  --text:      #f2ead9;
  --text-soft: #c3b8a2;
  --text-mute: #8f8471;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 16px; }

/* ---------------- Splash ---------------- */
.splash { position: fixed; inset: 0; display: grid; place-content: center; gap: 20px; justify-items: center;
  background: radial-gradient(120% 120% at 50% 0%, var(--brand) 0%, var(--brand-deep) 70%); }
.splash-mark { font-size: 64px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); animation: bob 1.6s ease-in-out infinite; }
.splash-dots { display: flex; gap: 8px; }
.splash-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-warm); opacity: .4; animation: pulse 1.2s ease-in-out infinite; }
.splash-dots span:nth-child(2) { animation-delay: .2s; }
.splash-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@keyframes pulse { 50% { opacity: 1; transform: scale(1.25); } }

/* ---------------- App-layout ---------------- */
.app { min-height: 100dvh; display: flex; flex-direction: column; }
.app[data-loading="1"] > *:not(.splash) { display: none; }

.topbar {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 16px; background: var(--brand-deep); color: #f4ede3;
  box-shadow: var(--sh-2); position: sticky; top: 0; z-index: 20;
  padding-top: max(10px, env(safe-area-inset-top));
}
.topbar .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .2px; }
.topbar .brand img { width: 30px; height: 30px; border-radius: 8px; }
.topbar .spacer { flex: 1; }
.topbar .nav { display: flex; gap: 6px; background: rgba(255,255,255,.08); padding: 4px; border-radius: var(--r-pill); }
.topbar .nav button {
  border: 0; background: transparent; color: #e9dfca; padding: 8px 16px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 14px; transition: .15s;
}
.topbar .nav button.active { background: var(--accent-warm); color: #2a2213; }
.topbar .who { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #d9cfb9; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-content: center;
  background: var(--accent); color: #fff; font-weight: 700; }
.icon-btn { border: 0; background: rgba(255,255,255,.1); color: #f4ede3; width: 40px; height: 40px;
  border-radius: 12px; font-size: 18px; display: grid; place-content: center; }

/* Kassa-iconen (SVG) — strak op maat in knoppen en tegels */
.icon-btn svg { width: 20px; height: 20px; }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.pay-methods .m-ico svg { width: 24px; height: 24px; }
/* Bon-printen-vinkje: het bon-icoontje klein houden (niet die reuzen-SVG) */
.pb-ico { display: inline-flex; flex: 0 0 auto; }
.pb-ico svg { width: 20px; height: 20px; opacity: .7; }
.cart-empty .big svg { width: 40px; height: 40px; opacity: .5; }
.kds-empty svg { width: 22px; height: 22px; vertical-align: -4px; margin-right: 4px; }
.tile .t-ph svg { width: 28px; height: 28px; }
.l-note svg, .note-add svg { width: 14px; height: 14px; vertical-align: -2px; }

/* ---------------- Buttons ---------------- */
.btn {
  border: 0; border-radius: var(--r); padding: 0 20px; height: var(--tap);
  font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--surface-2); color: var(--text); box-shadow: var(--sh-1); transition: transform .06s, filter .15s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn.primary { background: linear-gradient(180deg, var(--brand), var(--brand)); color: #fff; }
.btn.accent  { background: var(--accent); color: #fff; }
.btn.pay     { background: linear-gradient(180deg, #58975f, var(--ok)); color: #fff; }
.btn.ghost   { background: transparent; box-shadow: none; color: var(--text-soft); }
.btn.danger  { background: transparent; color: var(--danger); box-shadow: none; }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn.block { width: 100%; }
.btn.lg { height: 60px; font-size: 18px; }

/* ---------------- Login ---------------- */
.login { min-height: 100dvh; display: grid; place-content: center; padding: 24px;
  background: radial-gradient(140% 120% at 50% -10%, var(--brand-deep) 0%, var(--brand-deep) 60%); }
.login-card { width: min(440px, 92vw); background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--sh-3); padding: 26px; }
.login-card h1 { margin: 4px 0 2px; font-size: 22px; }
.login-card .sub { color: var(--text-mute); margin: 0 0 18px; font-size: 14px; }
.login-logo { text-align: center; margin-bottom: 8px; }
.login-logo img { width: 52px; height: 52px; }
.login-card #gateCode, .login-card #sGate { width: 100%; height: 52px; border: 1px solid var(--line); border-radius: 12px;
  padding: 0 14px; background: var(--surface); color: var(--text); font-size: 18px; text-align: center; letter-spacing: .1em; }
.gate-err { color: var(--danger); margin: 10px 0 0; min-height: 18px; font-size: 14px; }
.staff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 6px; }
.staff-tile { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: var(--r);
  border: 2px solid var(--line); background: var(--surface); text-align: left; transition: .15s; }
.staff-tile:hover { border-color: var(--accent); }
.staff-tile.sel { border-color: var(--brand); background: var(--surface-2); }
.staff-tile .role { font-size: 12px; color: var(--text-mute); }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.pinpad button { height: 62px; font-size: 24px; font-weight: 700; border-radius: var(--r);
  border: 0; background: var(--surface-2); color: var(--text); box-shadow: var(--sh-1); }
.pin-display { text-align: center; letter-spacing: 12px; font-size: 30px; height: 40px; margin: 8px 0; color: var(--brand); }

/* ---------------- Kassa ---------------- */
.kassa { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 0; min-height: 0; }
.menu-pane { display: flex; flex-direction: column; min-height: 0; min-width: 0; padding: 14px; gap: 12px; }
.cats { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chip { border: 0; background: var(--surface); color: var(--text-soft);
  padding: 12px 18px; border-radius: var(--r-pill); font-weight: 700; font-size: 15px;
  box-shadow: var(--sh-1); white-space: nowrap; }
.cat-chip.active { background: var(--brand); color: #fff; }

.products { flex: 1; overflow-y: auto; display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); align-content: start; padding-bottom: 12px; }
.tile { position: relative; border: 0; text-align: left; background: var(--surface); color: var(--text); border-radius: var(--r);
  padding: 0; overflow: hidden; box-shadow: var(--sh-1); display: flex; flex-direction: column;
  transition: transform .06s, box-shadow .15s; }
.tile:active { transform: translateY(1px) scale(.98); box-shadow: var(--sh-2); }
.tile .t-img { aspect-ratio: 1 / 1; background: #fff; display: grid; place-items: center; overflow: hidden; }
.tile .t-img img { width: 100%; height: 100%; object-fit: contain; display: block; }  /* hele foto tonen */
.tile .t-ph { font-size: 28px; opacity: .45; }
.tile .t-body { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.tile .t-name { font-weight: 700; font-size: 15px; line-height: 1.2; }
.tile .t-price { color: var(--text-soft); font-weight: 700; margin-top: auto; }
.tile .t-badge { position: absolute; top: 8px; right: 8px; min-width: 26px; height: 26px; padding: 0 7px;
  border-radius: var(--r-pill); background: var(--accent); color: #fff; font-weight: 800; font-size: 13px;
  display: grid; place-content: center; box-shadow: var(--sh-2); }

/* Order-paneel (mandje) */
.cart { background: var(--surface); border-left: 1px solid var(--line); display: flex; flex-direction: column;
  min-height: 0; box-shadow: -6px 0 24px rgba(35,32,27,.06); }
.cart-head { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.cart-head h2 { margin: 0; font-size: 17px; }
.cart-head .oid { color: var(--text-mute); font-size: 13px; }
.seg { display: flex; background: var(--surface-2); border-radius: var(--r-pill); padding: 4px; gap: 4px; }
.seg button { border: 0; background: transparent; color: var(--text-soft); padding: 7px 12px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 13px; }
.seg button.active { background: var(--surface); color: var(--text); box-shadow: var(--sh-1); }

.cart-meta { padding: 10px 16px; display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.cart-meta select { flex: 1; min-width: 120px; height: 42px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--surface); color: var(--text); padding: 0 10px; }
.cart-cust { padding: 10px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.cart-cust .g-field span { font-size: 12px; }
.cart-cust textarea, .cart-cust input { width: 100%; }

.lines { flex: 1; overflow-y: auto; padding: 8px 8px 4px; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 8px; border-radius: var(--r-sm); }
.line:hover { background: var(--surface-2); }
.line .l-name { font-weight: 600; }
.line .l-note { grid-column: 1 / -1; font-size: 12px; color: var(--text-mute); }
.line .l-price { font-weight: 700; text-align: right; align-self: center; }
.stepper { display: inline-flex; align-items: center; gap: 4px; grid-column: 1 / -1; margin-top: 4px; }
.stepper button { width: 34px; height: 34px; border-radius: 10px; border: 0; background: var(--surface-2);
  color: var(--text); font-size: 20px; font-weight: 700; box-shadow: var(--sh-1); }
.stepper .q { min-width: 30px; text-align: center; font-weight: 700; }
.stepper .rm { margin-left: auto; color: var(--danger); background: transparent; box-shadow: none; }
.stepper .note-add { width: auto; padding: 0 8px; font-size: 12px; font-weight: 600; color: var(--text-mute); background: transparent; box-shadow: none; }

/* Snelle notitie per orderregel */
.l-note { grid-column: 1 / -1; margin-top: 4px; text-align: left; border: 0; background: var(--surface-2);
  color: var(--text-soft); font-size: 12px; padding: 5px 9px; border-radius: 8px; cursor: pointer; }
.note-edit { grid-column: 1 / -1; margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.note-edit input { flex: 1; min-width: 150px; height: 38px; border: 1px solid var(--line); border-radius: 8px;
  padding: 0 10px; background: var(--surface); color: var(--text); }
.note-edit [data-act="note-save"] { height: 38px; padding: 0 14px; border: 0; border-radius: 8px;
  background: var(--brand); color: #fff; font-weight: 700; }
.note-presets { width: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.note-presets button { border: 0; background: var(--surface-2); color: var(--text-soft); border-radius: 999px;
  padding: 5px 10px; font-size: 12px; font-weight: 600; }

.cart-empty { flex: 1; display: grid; place-content: center; color: var(--text-mute); text-align: center; gap: 6px; padding: 30px; }
.cart-empty .big { font-size: 40px; }

.totals { border-top: 1px solid var(--line); padding: 12px 16px; display: grid; gap: 4px; }
.totals .row { display: flex; justify-content: space-between; color: var(--text-soft); font-size: 14px; }
.totals .row.grand { color: var(--text); font-size: 22px; font-weight: 800; margin-top: 4px; }
.totals .row.disc { color: var(--leaf); }
.cart-actions { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; border-top: 1px solid var(--line); }

/* ---------------- Bestellingen-lijst ---------------- */
.orders { flex: 1; padding: 16px; overflow-y: auto; }
.orders-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.orders-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ocard { background: var(--surface); border-radius: var(--r); box-shadow: var(--sh-1); padding: 14px; border-left: 5px solid var(--text-mute); }
.ocard.open { border-left-color: var(--warn); }
.ocard.completed { border-left-color: var(--ok); }
.ocard.cancelled { border-left-color: var(--danger); opacity: .7; }
.ocard .o-top { display: flex; justify-content: space-between; align-items: baseline; }
.ocard .o-no { font-weight: 800; }
.ocard .o-total { font-weight: 800; font-size: 18px; }
.ocard .o-meta { color: var(--text-mute); font-size: 13px; margin: 6px 0 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); color: var(--text-soft);
  padding: 3px 9px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; }
.chip.ch-pos { background: #e8efe6; color: #3f6b47; }
.chip.ch-thuisbezorgd { background: #ffe6cf; color: #9a5a23; }
.chip.ch-qr { background: #e3edf5; color: #35648a; }
.chip.paid { background: #dff0e2; color: #2f7a43; }
.chip.unpaid { background: #fbe6df; color: #a5432f; }
.ocard .o-actions { display: flex; gap: 8px; }
.ocard .o-actions .btn { height: 42px; font-size: 14px; padding: 0 14px; flex: 1; }

/* ---------------- Modal ---------------- */
.modal-back { position: fixed; inset: 0; background: rgba(20,16,11,.55); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 16px; z-index: 50; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(460px, 96vw); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-3);
  overflow: hidden; animation: rise .18s ease; display: flex; flex-direction: column;
  max-height: 92vh; max-height: 92dvh; }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } }
.modal h3 { margin: 0; padding: 18px 20px 6px; font-size: 20px; flex: none; }
.modal .m-head, .modal .m-foot { flex: none; }
.modal .m-body { padding: 8px 20px 4px; flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.modal .m-foot { padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); display: flex; gap: 10px; }
.modal .m-foot .btn { flex: 1; }
.menu-wrap { position: relative; display: inline-flex; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; z-index: 60;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-3);
  padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0;
  background: transparent; color: var(--text); font: inherit; font-weight: 600; font-size: 15px;
  padding: 12px 12px; border-radius: 10px; cursor: pointer; }
.menu-item:hover { background: var(--surface-2); }
.menu-item svg { width: 20px; height: 20px; flex: none; color: var(--text-mute); }
.menu-item.bell-on { color: #b8860b; }
.menu-item.bell-on svg { color: color-mix(in srgb, var(--accent-warm) 85%, black); }
.icon-btn.bell-on { color: var(--accent-warm); }
.pay-lines { background: var(--surface-2, #f4ebda); border-radius: var(--r); padding: 12px 14px; margin: 0 0 14px; }
.pay-lines .pl-head { font-weight: 700; font-size: 14px; color: var(--text-mute); margin-bottom: 8px; }
.pl-row { display: flex; align-items: baseline; gap: 8px; padding: 3px 0; font-size: 15px; }
.pl-row .pl-q { flex: 0 0 auto; font-weight: 700; color: var(--text-mute); min-width: 26px; }
.pl-row .pl-n { flex: 1; min-width: 0; }
.pl-row .pl-n em { display: block; font-style: normal; font-size: 12px; color: var(--text-mute); }
.pl-row .pl-p { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.pl-tot { display: flex; justify-content: space-between; font-weight: 800; font-size: 16px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 14px; }
.pay-methods button { height: 64px; border-radius: var(--r); border: 2px solid var(--line); background: var(--surface);
  font-weight: 700; font-size: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.pay-methods button.sel { border-color: var(--brand); background: var(--surface-2); }
.pay-methods .m-ico { font-size: 22px; }
.cash-calc { display: grid; gap: 8px; }
.cash-calc .field { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px;
  background: var(--surface-2); border-radius: var(--r); font-weight: 700; }
.cash-calc input { width: 130px; text-align: right; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 8px; background: var(--surface); color: var(--text); font-size: 18px; font-weight: 700; }
.change { color: var(--ok); font-size: 22px; }
.quick-cash { display: flex; gap: 8px; flex-wrap: wrap; }
.quick-cash button { flex: 1; min-width: 70px; height: 46px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--surface); font-weight: 700; }

/* ---------------- Toast ---------------- */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 80; }
.toast { background: var(--brand-deep); color: #f4ede3; padding: 12px 18px; border-radius: var(--r-pill);
  box-shadow: var(--sh-3); font-weight: 600; animation: rise .2s; }
.toast.err { background: var(--danger); }
.toast.ok  { background: var(--ok); }

/* ---------------- Keuken (KDS) ---------------- */
.kds { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 16px; }
.kds-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.kds-head h2 { margin: 0; font-size: 20px; }
.kds-rem { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-soft, #555); }
.kds-rem input { width: 64px; height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; background: var(--surface); color: var(--text); text-align: center; }
.kds-sub { color: var(--text-mute); font-weight: 700; }
.kds-grid { flex: 1; overflow-y: auto; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); align-content: start; }
.kds-empty { grid-column: 1 / -1; text-align: center; color: var(--text-mute); font-size: 18px; padding: 60px 20px; }
.kcard { position: relative; background: var(--surface); border-radius: 16px; box-shadow: var(--sh-1); padding: 0;
  border-top: 5px solid var(--warn); display: flex; flex-direction: column; gap: 0; overflow: hidden; }
.kcard.ch-qr { border-top-color: #35648a; }
.kcard.ch-thuisbezorgd { border-top-color: var(--accent); }
.kcard.t-delivery { border-top-color: var(--accent); }
.kcard.t-takeaway { border-top-color: var(--brand); }
.kcard.t-dinein { border-top-color: #35648a; }
.k-top { display: flex; align-items: center; gap: 8px; padding: 12px 14px 8px; }
.k-no { font-weight: 900; font-size: 19px; letter-spacing: .3px; }
.k-where { color: var(--text-soft); font-weight: 700; font-size: 13px; background: var(--surface-2); padding: 2px 9px; border-radius: 999px; }
.k-when { margin-left: auto; background: var(--brand-deep); color: var(--accent-warm); font-weight: 800; font-size: 13px; padding: 3px 10px; border-radius: 999px; }
.k-when + .k-time { margin-left: 8px; }
.k-time { margin-left: auto; color: var(--text-mute); font-weight: 700; font-size: 12px; }
.k-items { list-style: none; margin: 0; padding: 4px 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.k-items li { display: flex; gap: 6px; align-items: baseline; font-size: 16px; font-weight: 600; }
.k-qty { flex: none; min-width: 30px; color: var(--brand); font-weight: 900; font-size: 17px; }
.k-nm { flex: 1; min-width: 0; }
.k-note { display: block; font-size: 13px; font-weight: 700; color: var(--danger); margin-top: 1px; }
.k-ready { margin: auto 12px 12px; height: 52px; font-size: 17px; }

/* Nieuwe, nog niet bevestigde bestelling: opvallende markering + pulserend belletje-gevoel */
.k-new { display: block; background: var(--danger, #c0432f); color: #fff; font-weight: 800; font-size: 12px;
  letter-spacing: .04em; text-transform: uppercase; text-align: center; padding: 6px 10px; cursor: pointer; }
.kcard.knew { border-top-color: var(--danger, #c0432f); box-shadow: 0 0 0 2px var(--danger, #c0432f), var(--sh-2); animation: kpulse 1.1s ease-in-out infinite; cursor: pointer; }
@keyframes kpulse { 0%,100% { box-shadow: 0 0 0 2px var(--danger,#c0432f), var(--sh-1); } 50% { box-shadow: 0 0 0 5px rgba(192,67,47,.35), var(--sh-2); } }
@media (prefers-reduced-motion: reduce) { .kcard.knew { animation: none; } }

/* Badge op de Keuken-navigatieknop met aantal nieuwe bestellingen */
.nav-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px;
  background: var(--danger, #c0432f); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 800; vertical-align: middle; }

/* ---------------- Afrekenen (tafels) ---------------- */
.pay-view { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 16px; }
.pay-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pay-head h2 { margin: 0; font-size: 20px; }
.tafel-entry { display: flex; gap: 8px; }
.tafel-entry input { width: 120px; height: 44px; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 0 12px; background: var(--surface); color: var(--text); font-size: 18px; font-weight: 700; }
.pay-hint { color: var(--text-mute); margin: 8px 0 14px; }
.tables-grid { flex: 1; overflow-y: auto; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); align-content: start; }
.table-tile { border: 0; background: var(--surface); border-radius: var(--r); box-shadow: var(--sh-1);
  padding: 18px 14px; display: flex; flex-direction: column; gap: 6px; text-align: left; border-left: 5px solid var(--warn); }
.table-tile:active { transform: translateY(1px) scale(.99); }
.tt-name { font-weight: 800; font-size: 17px; }
.tt-total { font-weight: 800; font-size: 22px; color: var(--brand); }
.tt-cnt { color: var(--text-mute); font-size: 13px; }
.bill-lines { max-height: 44vh; overflow-y: auto; margin-bottom: 12px; }
.bl { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.bl-note { font-size: 12px; color: var(--text-mute); padding: 0 0 6px; }
/* Bewerkbare tafelregels */
.bl-item { padding: 8px 0; border-bottom: 1px solid var(--line); }
.bl-row { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: baseline; font-weight: 600; }
.bl-q { color: var(--text-soft); }
.bl-price { font-variant-numeric: tabular-nums; }
.bl-actions { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.bl-actions button { border: 0; background: var(--surface-2); color: var(--text); border-radius: 8px; height: 32px; min-width: 32px; font-weight: 700; }
.bl-actions .bl-qn { min-width: 24px; text-align: center; background: transparent; }
.bl-abtn { padding: 0 10px; font-size: 12px; color: var(--text-soft); display: inline-flex; align-items: center; gap: 4px; }
.bl-abtn svg { width: 14px; height: 14px; }
.bl-del { margin-left: auto; color: var(--danger); }
.bl-priceedit { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; color: var(--text-soft); }
.bl-priceedit input { flex: 1; max-width: 110px; height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; background: var(--surface); color: var(--text); font-size: 15px; }
.bl-priceedit button { height: 36px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 700; }
.bl-move { display: flex; gap: 8px; margin: 4px 0 14px; }
.bl-move select { flex: 1; height: 42px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 0 10px; }
/* Losse (afhaal) bestellingen in Afrekenen */
.loose-wrap { margin: 0 0 16px; }
.loose-title { font-weight: 700; color: var(--text-soft); font-size: 13px; margin: 0 0 8px; }
.loose-list { display: flex; flex-wrap: wrap; gap: 8px; }
.loose-item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-left: 4px solid var(--warn); border-radius: 12px; padding: 10px 14px; min-width: 130px; }
.loose-item .li-no { font-weight: 800; }
.loose-item .li-cust { font-size: 12px; color: var(--text-mute); }
.loose-item .li-tot { font-weight: 700; font-variant-numeric: tabular-nums; }
/* Bezorgen */
.deliv-view { flex: 1; padding: 16px; overflow-y: auto; }
.deliv-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.tips-box { background: var(--surface); border-radius: var(--r); box-shadow: var(--sh-1); margin-bottom: 10px; overflow: hidden; }
.tips-box > summary, .tips-day > summary, .tips-user > summary {
  cursor: pointer; display: flex; align-items: center; gap: 8px; list-style: none; font-weight: 600; }
.tips-box > summary::-webkit-details-marker, .tips-day > summary::-webkit-details-marker, .tips-user > summary::-webkit-details-marker { display: none; }
.tips-box > summary::before, .tips-day > summary::before, .tips-user > summary::before {
  content: '▸'; color: var(--text-mute); font-size: 12px; transition: transform .15s; }
.tips-box[open] > summary::before, .tips-day[open] > summary::before, .tips-user[open] > summary::before { transform: rotate(90deg); }
.tips-box > summary { padding: 13px 14px; }
.tips-ico { font-size: 16px; }
.tips-sum { margin-left: auto; color: #16a34a; font-weight: 700; font-variant-numeric: tabular-nums; }
.tips-inner { padding: 0 14px 10px; }
.tips-user { border-top: 1px solid var(--line); }
.tips-user > summary { padding: 10px 0; }
.tips-user-body { padding-left: 16px; }
.tips-day { border-top: 1px solid var(--line); }
.tips-day > summary { padding: 9px 0; font-weight: 500; }
.tips-orders { padding: 0 0 8px 16px; display: grid; gap: 5px; }
.tips-order { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--text-mute); }
.tips-order em { color: var(--text-mute); font-style: normal; margin-left: 8px; opacity: .7; }
.tips-order span:last-child { color: var(--text); font-variant-numeric: tabular-nums; font-weight: 600; }
.tips-empty { padding: 8px 0; color: var(--text-mute); font-size: 14px; }
.deliv-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.deliv-card { background: var(--surface); border-radius: var(--r); box-shadow: var(--sh-1); padding: 14px; border-left: 5px solid var(--brand); }
.dc-top { display: flex; align-items: center; gap: 8px; }
.dc-no { font-weight: 800; }
.dc-time { color: var(--text-mute); font-size: 13px; }
.dc-pay { margin-left: auto; font-weight: 700; font-size: 12px; padding: 3px 9px; border-radius: 999px; }
.dc-pay.paid { background: #dff3e4; color: #1c7a44; }
.dc-pay.unpaid { background: #fdefd2; color: #9a6b06; }
.dc-name { font-weight: 700; margin-top: 8px; }
.dc-addr { color: var(--text-soft); margin-top: 2px; }
.dc-note { color: var(--text-mute); font-size: 13px; margin-top: 4px; font-style: italic; }
.dc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dc-actions .btn { flex: 1; min-width: 90px; }
.dc-actions .btn svg { width: 16px; height: 16px; }
.dc-only { display: block; width: 100%; margin-top: 8px; background: transparent; border: 0; cursor: pointer;
  color: var(--text-mute); font-size: 13px; font-weight: 600; text-decoration: underline; padding: 4px; }
.quick-cash button.sel { background: var(--brand); color: #fff; }

/* Afreken-fooi (iDEAL/Tap): bedrag vast + fooi optioneel */
.dp-amt { font-size: 15px; color: var(--text-soft); margin: 2px 0 10px; }
.dp-amt strong { color: var(--text); font-size: 18px; }
.dp-tip-lbl { font-size: 13px; font-weight: 600; color: var(--text-mute); margin-bottom: 6px; }
.dp-grand { margin-top: 12px; display: flex; align-items: baseline; justify-content: space-between; font-weight: 600; }
.dp-grand strong { color: var(--brand); font-size: 20px; }

/* "Afronden naar €X"-knop (volle breedte) */
.tip-round { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 1px; cursor: pointer;
  border: 1.5px solid var(--brand); background: var(--surface-2); color: var(--brand); border-radius: 12px;
  padding: 10px; font-weight: 800; font-size: 16px; margin-bottom: 8px; }
.tip-round small { font-weight: 600; font-size: 12px; color: var(--text-mute); }
.tip-round.sel { background: var(--brand); color: #fff; }
.tip-round.sel small { color: rgba(255, 255, 255, .85); }

/* Fooi-QR: premium bedrag-kiezer */
.tip-presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); gap: 8px; margin: 6px 0 2px; }
.tip-presets button { height: 50px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text);
  border-radius: 12px; font-weight: 800; font-size: 15px; cursor: pointer; transition: border-color .12s, background .12s; }
.tip-presets button:hover { border-color: var(--brand); }
.tip-presets button.sel { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: var(--sh-1); }
.tip-amt-field { display: block; margin: 12px 0 0; }
.tip-amt-field > span { display: block; font-size: 12px; font-weight: 600; color: var(--text-mute); margin-bottom: 6px; }
.tip-amt-input { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 0 14px; background: var(--surface); transition: border-color .12s; }
.tip-amt-input:focus-within { border-color: var(--brand); }
.tip-amt-input .tip-cur { font-weight: 800; color: var(--text-soft); font-size: 19px; }
.tip-amt-input input { flex: 1; min-width: 0; border: 0; background: transparent; height: 54px; font-size: 22px;
  font-weight: 800; color: var(--text); outline: none; text-align: left; }
.tip-amt-input input::-webkit-outer-spin-button, .tip-amt-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tip-amt-input input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.pay-methods.pay-3 { grid-template-columns: 1fr 1fr 1fr; }
.dp-qr { text-align: center; padding: 10px 0; }
.dp-qr #dpQr, .dp-qr #tipQrImg { display: inline-block; margin: 10px auto; background: #fff; padding: 10px; border-radius: 12px; box-shadow: var(--sh-1); }
.dp-qr #dpQr img, .dp-qr #dpQr canvas, .dp-qr #tipQrImg img, .dp-qr #tipQrImg canvas { display: block; }
.dp-link { display: inline-block; margin-top: 6px; color: var(--brand); font-weight: 600; }
.pos-waitmsg { color: var(--text-mute); margin-top: 10px; }

/* Plattegrond */
.pay-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.floor { position: relative; flex: 1; min-height: 62vh; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background:
    radial-gradient(140% 100% at 50% -10%, color-mix(in srgb, var(--accent-warm) 6%, transparent), transparent 55%),
    var(--surface);
  box-shadow: inset 0 2px 16px rgba(35,32,27,.06); }
/* Zachte plankenvloer-textuur (werkt in licht én donker). */
.floor::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 54px, rgba(0,0,0,.028) 54px 55px); }
.floor::after { content: ""; position: absolute; inset: 10px; pointer-events: none; border-radius: 14px;
  border: 1px dashed color-mix(in srgb, var(--line) 70%, transparent); }

.tbl { position: absolute; transform: translate(-50%, -50%); width: 88px; height: 64px;
  border: 1.5px solid var(--line); border-radius: 14px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: 0 2px 6px rgba(35,32,27,.12), inset 0 1px 0 rgba(255,255,255,.45);
  display: flex; align-items: center; justify-content: center; cursor: pointer; touch-action: none; color: var(--text);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; z-index: 1; }
.tbl:hover { transform: translate(-50%, -50%) scale(1.04); box-shadow: 0 10px 22px rgba(35,32,27,.18); z-index: 3; }
.tbl.terras { border-radius: 50%; width: 74px; height: 74px; }
.tbl.has-bill { border-color: var(--warn); background: linear-gradient(180deg, #fbe7d0, #f6d8ab); box-shadow: 0 4px 14px rgba(217,139,58,.28); }
.tbl.dragging { box-shadow: var(--sh-3); z-index: 6; opacity: .95; cursor: grabbing; }
.tbl-top { display: flex; flex-direction: column; align-items: center; gap: 1px; line-height: 1.1; }
.tbl-name { font-weight: 800; font-size: 13px; }
.tbl.has-bill .tbl-name { color: #7a4a12; }
.tbl-total { font-weight: 800; color: #a35a12; font-size: 13px; }
.tbl-seats { color: var(--text-mute); font-size: 10.5px; }

/* Stoeltjes rond de tafel */
.chairs { position: absolute; inset: 0; pointer-events: none; }
.chair { position: absolute; width: 18px; height: 8px; border-radius: 5px; transform: translateX(-50%);
  background: #c3b291; background: color-mix(in srgb, var(--line) 62%, var(--text-mute)); }
.chair.top { top: -12px; }
.chair.bot { bottom: -12px; }
.chairs.round .chair { top: 50%; left: 50%; width: 11px; height: 11px; border-radius: 50%; transform-origin: center; }
.tbl.has-bill .chair { background: #e0a860; background: color-mix(in srgb, var(--warn) 55%, var(--line)); }

/* ---------------- Gast-bestelapp (QR) ---------------- */
.guest { min-height: 100dvh; background: var(--bg); color: var(--text); padding-bottom: 92px; }
.guest[data-loading="1"] > *:not(.splash) { display: none; }
.g-top { position: sticky; top: 0; z-index: 10; background: linear-gradient(180deg, var(--brand-deep), var(--brand-deep)); color: #f4ede3;
  padding: 16px; padding-top: max(16px, env(safe-area-inset-top)); box-shadow: var(--sh-2); }
.g-brand { font-weight: 800; font-size: 22px; letter-spacing: .2px; }
.g-table { color: #d9cfb9; font-size: 14px; margin-top: 3px; }
.g-top-row { display: flex; align-items: center; gap: 12px; }
.g-back { width: 46px; height: 46px; flex: 0 0 auto; border: 0; border-radius: 12px; background: rgba(255,255,255,.14); color: #fff; font-size: 24px; font-weight: 800; }
.g-titles { min-width: 0; }
.g-sub { color: #d9cfb9; font-size: 14px; margin-top: 2px; }
.g-mode { margin-top: 12px; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 0; border-radius: 12px; background: rgba(255,255,255,.14); color: #f4ede3; padding: 11px 14px; font-weight: 700; font-size: 15px; }
.g-mode-edit { color: var(--honey); font-weight: 700; font-size: 13px; flex: 0 0 auto; }
.g-mode-l { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.g-mode-ic { display: inline-flex; }
.g-mode-ic svg { width: 18px; height: 18px; }

/* Zakelijke (B2B) balk + betaalinfo op de bestelpagina */
.g-b2b { margin-top: 10px; width: 100%; display: flex; align-items: center; gap: 9px;
  border-radius: 12px; background: color-mix(in srgb, var(--accent-warm) 16%, transparent); border: 1px solid color-mix(in srgb, var(--accent-warm) 35%, transparent);
  color: #f4ede3; padding: 9px 12px; font-size: 14px; }
.g-b2b-ic { display: inline-flex; flex: none; }
.g-b2b-ic svg { width: 18px; height: 18px; }
.g-b2b-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.g-b2b-txt strong { color: var(--honey); }
.g-b2b-out { flex: none; background: transparent; border: 0; color: var(--honey); font-weight: 700; font-size: 13px; cursor: pointer; }
.g-b2b-pay { display: flex; align-items: flex-start; gap: 9px; background: var(--cream, #f4ede3); color: var(--text, var(--brand-deep));
  border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.45; margin-top: 4px; }
.g-b2b-pay .g-b2b-ic svg { width: 20px; height: 20px; color: var(--green, var(--brand)); }

/* 18+ leeftijdspoort op de bestelpagina */
.age-gate { z-index: 200; }
/* Blijvende "activeer 18+"-knop als iemand 'onder 18' koos */
.age-switch { position: fixed; z-index: 25; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  background: var(--brand-deep); color: #f4ede3; font-weight: 700; font-size: 14px; padding: 12px 16px; border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,.28); }
.age-switch .ag-plus { background: var(--honey, var(--accent-warm)); color: var(--brand-deep); font-weight: 900; font-size: 12px; padding: 2px 7px; border-radius: 999px; flex: none; }
body.has-cart .age-switch { bottom: calc(80px + env(safe-area-inset-bottom)); } /* boven de mandjebalk */
@media (min-width: 1200px) {
  .age-switch { left: 20px; right: auto; width: 264px; bottom: 20px; }
  body.has-cart .age-switch { bottom: 20px; } /* desktop heeft geen onderbalk */
}
.g-agegate { max-width: 380px; text-align: center; padding: 26px 22px calc(22px + env(safe-area-inset-bottom)); }
.g-agegate h3 { margin: 4px 0 6px; font-size: 22px; }
.g-agegate p { color: var(--text-soft, #4a4336); line-height: 1.5; margin: 0 0 6px; }
.ag-badge { width: 68px; height: 68px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-deep); color: var(--accent-warm); font-weight: 900; font-size: 26px; line-height: 1; }
.ag-badge span { font-size: 16px; }
.ag-btns { display: grid; gap: 10px; margin: 16px 0 6px; }
.ag-btns .btn { width: 100%; }
.ag-note { font-size: 12px; color: var(--text-mute, #9a9184); margin-top: 8px !important; }

/* Admin: zakelijke klanten */
.cp-h { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-mute); margin: 0 0 8px; }
.cp-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.cp-pendrow { border-left: 3px solid color-mix(in srgb, var(--accent-warm) 85%, black); align-items: flex-start; }
.cp-pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.cp-pill.ok { background: #dff3e4; color: #1c7a44; }
.cp-pill.off { background: #eee7d8; color: #7a6f5c; }
.cp-pill.pend { background: #fbeecf; color: #8a6a12; }
.cp-pill.rej { background: #f3d9d9; color: #a12a2a; }
.cp-pill.prepay { background: #e5efff; color: #1e5bb8; }
.cp-pill.invoice { background: #fbeecf; color: #8a6a12; }
.cp-bill { margin: 4px 0 12px; }
.cp-bill summary { cursor: pointer; color: var(--text-mute); font-size: 14px; padding: 6px 0; }
.g-back svg { width: 24px; height: 24px; }
.t-ph svg { width: 30px; height: 30px; }
.g-line-img .t-ph svg { width: 22px; height: 22px; }
.g-modebtns .mb-ico svg { width: 26px; height: 26px; }
.g-check svg { width: 34px; height: 34px; }
.up-plus svg { width: 18px; height: 18px; }
.g-field textarea { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--surface);
  color: var(--text); font-family: inherit; font-size: 16px; resize: vertical; min-height: 44px; }
.g-paychoice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 4px; }
.gpc { display: flex; align-items: center; gap: 10px; text-align: left; border: 2px solid var(--line); border-radius: 14px;
  background: var(--surface); color: var(--text); padding: 12px; }
.gpc.sel { border-color: var(--brand); background: var(--surface-2); }
.gpc-ic { display: inline-flex; flex: 0 0 auto; }
.gpc-ic svg { width: 22px; height: 22px; color: var(--brand); }
.gpc span b { display: block; font-size: 14px; }
.gpc span small { color: var(--text-mute); font-size: 12px; }

/* Eten/Drinken groepskeuze */
.g-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 16px; }
.g-group { position: relative; border: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 1/1; box-shadow: var(--sh-2); color: #fff; }
.g-group-img { position: absolute; inset: 0; background: var(--accent-warm); }
.g-group[data-group="drinken"] .g-group-img { background: var(--accent); }
.g-group-img img { width: 100%; height: 100%; object-fit: cover; }
.g-group::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(35,32,27,.1), color-mix(in srgb, var(--brand-deep) 72%, transparent)); }
.g-group span { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-weight: 800; font-size: 24px; z-index: 1; }

/* Categorie-tegels */
.g-cattiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding: 16px; }
.g-cattile { position: relative; border: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--sh-1); color: #fff; }
.g-ct-img { position: absolute; inset: 0; background: var(--surface-2); display: grid; place-items: center; }
.g-ct-img img { width: 100%; height: 100%; object-fit: cover; }
.g-ct-img .t-ph { font-size: 30px; opacity: .5; }
.g-cattile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(35,32,27,.06), color-mix(in srgb, var(--brand-deep) 72%, transparent)); }
.g-ct-name { position: absolute; left: 10px; right: 10px; bottom: 10px; text-align: center; font-weight: 800; font-size: 16px; z-index: 1; }
.g-products { padding: 16px; }
/* Productfoto's op de bestelpagina vierkant en volledig zichtbaar (studiofoto's zijn vierkant). */
.g-products .tile .t-img { height: auto; aspect-ratio: 1 / 1; background: #fff; }
.g-products .tile .t-img img { object-fit: contain; }  /* hele foto tonen, niet bijsnijden */

/* Mode-popup + mandje-mode-balk */
.g-modebar { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--text); padding: 12px 14px; font-weight: 700; margin: 6px 0 12px; }
.g-modepop .g-modebtns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.g-modebtns button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 10px;
  border: 2px solid var(--line); border-radius: 14px; background: var(--surface); font-weight: 700; color: var(--text); }
.g-modebtns button.sel { border-color: var(--brand); background: var(--surface-2); }
.g-modebtns .mb-ico { font-size: 26px; }

/* Checkout-sheet schuifbaar op telefoon + regel met foto */
.g-sheet { max-height: 92vh; display: flex; flex-direction: column; }
.g-sheet .m-body { overflow-y: auto; }
.g-line-img { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--surface-2); flex: 0 0 auto; display: grid; place-items: center; }
.g-line-img img { width: 100%; height: 100%; object-fit: cover; }
.g-line-img .t-ph { font-size: 22px; opacity: .5; }
.g-line-main { flex: 1; min-width: 0; }
.g-cats { position: sticky; top: 62px; z-index: 9; display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; background: var(--bg); }
.g-products { padding: 12px 16px; }

/* ---- Bestelpagina op groter scherm: centreren & tegels temmen ---- */
.g-top-row, .g-mode, .g-groups, .g-cattiles, #gprods, .g-msg, .g-order-btn {
  max-width: 1060px; margin-left: auto; margin-right: auto;
}
@media (min-width: 760px) {
  /* Branded achtergrond: zachte glow boven, gekleurde flanken links/rechts */
  .guest {
    background:
      radial-gradient(1100px 460px at 50% -6%, rgba(74, 120, 84, .20), transparent 62%),
      linear-gradient(90deg, rgba(201, 68, 43, .24), rgba(201, 68, 43, 0) 15%, rgba(201, 68, 43, 0) 85%, rgba(201, 68, 43, .24)),
      var(--bg);
    background-attachment: fixed;
  }
  /* De bestelkolom als subtiel verhoogd paneel zodat de flanken 'm omlijsten */
  .g-groups, .g-cattiles, #gprods {
    background: var(--surface);
    border-radius: 20px;
    padding: 20px;
    margin-top: 18px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .16);
  }
  .g-group { aspect-ratio: 16 / 9; }
  .g-groups { gap: 18px; }
  .g-cattiles { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  #gprods { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
  #gprods .t-img { height: auto; aspect-ratio: 1 / 1; }
  /* Tegels binnen het paneel iets lichter tillen t.o.v. de paneelkleur */
  #gprods .tile, .g-cattile { background: var(--surface-2); }
}
@media (min-width: 1100px) {
  .g-groups { grid-template-columns: 1fr 1fr; }
  .g-group { aspect-ratio: 2 / 1; }
}

/* Zijpanelen op ruime schermen: merk-info links, live mandje rechts */
.g-rail { display: none; }
@media (min-width: 1200px) {
  .g-body { display: grid; grid-template-columns: 264px minmax(0, 760px) 300px;
    gap: 24px; justify-content: center; align-items: start; padding: 0 20px; }
  .g-center { min-width: 0; }
  .g-rail { display: block; position: sticky; top: 132px; }
  .g-bar { display: none; }              /* rechter rail heeft de afrekenknop */
  .guest { padding-bottom: 24px; }
  /* binnen de kolommen niet nog eens centreren/beperken */
  .g-groups, .g-cattiles, #gprods, .g-msg { max-width: none; margin-top: 0; }
}
.rail-card { background: var(--surface); color: var(--text); border-radius: 18px; padding: 18px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .16); }
.rail-hero { border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 14px; background: var(--surface-2); }
.rail-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rail-brand { font-weight: 800; font-size: 20px; }
.rail-tag { color: var(--text-soft); font-size: 14px; margin-top: 2px; }
.rail-usps { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rail-usps li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; color: var(--text-soft); }
.rail-usps li svg { width: 20px; height: 20px; color: var(--brand); flex: 0 0 auto; }
.rail-hours { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 2px; }
.rail-hours span { font-size: 12px; color: var(--text-mute); text-transform: uppercase; letter-spacing: .03em; }
.rail-hours strong { color: var(--text); font-size: 16px; }
/* Rechter mandje */
.cart-rail-head { font-weight: 800; font-size: 17px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cart-rail-head span { background: var(--accent-warm); color: #2a2213; border-radius: var(--r-pill);
  min-width: 26px; height: 26px; display: grid; place-items: center; font-size: 13px; padding: 0 8px; font-weight: 800; }
.cart-rail-empty { display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--text-mute); padding: 26px 0; text-align: center; }
.cart-rail-empty svg { width: 34px; height: 34px; opacity: .55; }
.cart-rail-lines { display: flex; flex-direction: column; gap: 11px; max-height: 44vh; overflow-y: auto; }
.crl { display: grid; grid-template-columns: 30px 1fr auto; gap: 6px; font-size: 14px; align-items: baseline; }
.crl-q { color: var(--text-soft); font-weight: 700; }
.crl-n { min-width: 0; }
.crl-n em { display: block; font-style: normal; color: var(--text-mute); font-size: 12px; }
.crl-p { font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-rail-total { display: flex; justify-content: space-between; align-items: center; margin-top: 14px;
  padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; }
.cart-rail-total strong { font-size: 18px; }
.cart-rail-btn { margin-top: 14px; height: 52px; }
.g-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--surface);
  box-shadow: 0 -6px 24px rgba(31, 42, 36, .14); }
.g-order-btn { width: 100%; height: 58px; border: 0; border-radius: var(--r-pill);
  background: var(--accent); color: #fff; font-weight: 800; font-size: 17px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 18px; gap: 12px; }
.g-order-btn .g-count { background: var(--accent-warm); color: #2a2213; border-radius: var(--r-pill);
  min-width: 30px; height: 30px; display: grid; place-items: center; }
.g-sheet .g-line { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.g-l-top { display: flex; justify-content: space-between; font-weight: 700; }
.g-l-opt { margin-top: 2px; font-size: 12px; color: var(--text-mute); }
.zone-rows { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 10px; }
.zone-row { display: flex; gap: 8px; align-items: flex-end; }
.zone-row .g-field { flex: 1; min-width: 0; }
.zone-row .z-rm { flex: 0 0 auto; height: 38px; padding: 0 12px; }
.g-quote { margin-top: 6px; font-size: 13px; padding: 8px 10px; border-radius: 8px;
  background: var(--surface-2, #f4f0ea); color: var(--text-soft, #555); }
.g-quote.bad { background: #fdecea; color: #b23b2e; font-weight: 600; }
.term-row { display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left;
  padding: 12px 14px; margin: 6px 0; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--text); font-size: 15px; cursor: pointer; }
.term-row.sel { border-color: var(--accent, #2e7d57); box-shadow: inset 0 0 0 1px var(--accent, #2e7d57); }
.term-row .tr-name small { color: var(--text-mute); font-weight: 400; }
.term-row .tr-ok { color: var(--accent, #2e7d57); font-weight: 700; font-size: 18px; }
.g-note { width: 100%; margin-top: 6px; height: 36px; border: 1px solid var(--line); border-radius: 8px;
  padding: 0 10px; background: var(--surface); color: var(--text); }
.g-success { position: fixed; inset: 0; z-index: 60; background: rgba(20, 16, 11, .6); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 20px; }
.g-success-card { background: var(--surface); border-radius: var(--r-lg); padding: 30px; text-align: center;
  max-width: 360px; box-shadow: var(--sh-3); }
.g-check { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 36px;
  display: grid; place-items: center; margin: 0 auto 12px; }
.g-sub { color: var(--text-mute); }
.g-msg { padding: 40px; text-align: center; color: var(--text-mute); }
.g-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; font-weight: 600; color: var(--text-soft); }
.g-field span { font-size: 13px; }
.g-field input, .g-field select { height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px;
  background: var(--surface); color: var(--text); font-weight: 600; font-size: 16px; }
.g-type { margin-bottom: 12px; }
.g-warn { color: var(--danger); font-weight: 700; font-size: 13px; margin-top: 6px; }
/* Upselling */
.up-sell { margin: 10px 0 14px; }
.up-title { font-weight: 700; margin-bottom: 8px; color: var(--text); }
.up-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.up-card { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px 8px 8px; min-width: 210px; text-align: left; }
.up-card:active { transform: scale(.98); }
.up-img { width: 46px; height: 46px; border-radius: 9px; overflow: hidden; background: var(--surface); flex: 0 0 auto; }
.up-img img { width: 100%; height: 100%; object-fit: cover; }
.up-info { display: flex; flex-direction: column; }
.up-name { font-weight: 700; font-size: 14px; }
.up-price { color: var(--accent); font-weight: 700; font-size: 13px; }
.up-plus { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 800; flex: 0 0 auto; }

/* ---------------- QR-codes per tafel ---------------- */
.qr-view { flex: 1; overflow-y: auto; padding: 16px; }
.qr-head { display: flex; align-items: center; gap: 12px; }
.qr-head h2 { margin: 0; font-size: 20px; }
.qr-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 12px; }
.qr-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.qr-biz { font-weight: 800; }
.qr-name { font-size: 22px; font-weight: 800; color: var(--brand); }
.qr-img { background: #fff; padding: 10px; border-radius: 10px; }
.qr-img img, .qr-img canvas { display: block; }
.qr-cap { color: var(--text-mute); font-size: 12px; }
@media print {
  .topbar, .no-print { display: none !important; }
  .qr-view { padding: 0; overflow: visible; }
  .qr-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .qr-card { break-inside: avoid; border: 1px dashed #999; }
  body, .app, #main { background: #fff !important; }
}

/* ---------------- Beheer (admin) ---------------- */
.admin-view { flex: 1; overflow-y: auto; padding: 16px; }
.admin-head { margin-bottom: 14px; }
.admin-toolbar { margin-bottom: 14px; }
.p-group { margin-bottom: 18px; }
.p-group h3 { margin: 0 0 8px; font-size: 13px; color: var(--text-mute); text-transform: uppercase; letter-spacing: .5px; }
.p-row { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px;
  margin-bottom: 6px; text-align: left; cursor: pointer; color: var(--text); }
.p-row:hover { border-color: var(--accent); }
.p-row.inactive { opacity: .55; }
.p-name { font-weight: 700; }
.p-off { color: var(--danger); font-weight: 600; font-size: 12px; }
.p-price { color: var(--text-soft); font-weight: 700; white-space: nowrap; }
.admin-form { max-width: 640px; }
.admin-form h3 { margin: 18px 0 10px; font-size: 16px; }
.admin-row { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-row .g-field { flex: 1; min-width: 130px; }
.admin-check { display: flex; align-items: center; gap: 10px; margin: 8px 0; font-weight: 600; color: var(--text-soft); }
.admin-check input { width: 20px; height: 20px; }
.admin-hint { font-size: 12.5px; color: var(--text-mute); margin: 6px 0 0; line-height: 1.45; }
.g-field small { font-weight: 400; color: var(--text-mute); }
.g-check.g-check-wait { background: var(--warn, #d9930b); animation: gpulse 1s ease-in-out infinite; }
@keyframes gpulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
.admin-actions { margin-top: 18px; }

/* ---- Facturen ---- */
.inv-list { display: flex; flex-direction: column; gap: 8px; }
.inv-row { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.inv-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.inv-no { font-weight: 700; }
.inv-to { color: var(--text-mute); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.inv-badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.inv-badge.paid { background: #dff3e4; color: #1c7a44; }
.inv-badge.open { background: #fdefd2; color: #9a6b06; }
.inv-badge.cancel { background: #f3d9d9; color: #a12a2a; }
.inv-lhead, .inv-lrow { display: grid; grid-template-columns: 1fr 52px 78px 62px 34px; gap: 6px; align-items: center; }
.inv-lhead { font-size: 11px; color: var(--text-mute); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 4px; padding: 0 2px; }
.inv-lrow { margin-bottom: 6px; }
.inv-lrow input, .inv-lrow select { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 14px; min-width: 0; }
.inv-lrow .il-tax { padding: 8px 2px; }
.inv-lrow .il-del { border: 0; background: var(--surface-2); color: var(--text-mute); border-radius: 8px; font-size: 18px; cursor: pointer; height: 36px; }

/* Smartphone: omschrijving op een eigen regel, aantal/prijs/btw eronder. */
@media (max-width: 560px) {
  .inv-lhead { display: none; }
  .inv-lrow { grid-template-columns: 56px 1fr 64px 36px;
    grid-template-areas: "desc desc desc desc" "qty price tax del"; row-gap: 6px; margin-bottom: 12px;
    border-bottom: 1px solid var(--line); padding-bottom: 10px; }
  .inv-lrow .il-desc { grid-area: desc; }
  .inv-lrow .il-qty { grid-area: qty; }
  .inv-lrow .il-price { grid-area: price; }
  .inv-lrow .il-tax { grid-area: tax; }
  .inv-lrow .il-del { grid-area: del; }
}
.inv-total-preview { margin-top: 14px; text-align: right; font-size: 15px; color: var(--text-soft); }
.inv-detail { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; font-size: 15px; }
.inv-detail .lbl { display: inline-block; min-width: 72px; color: var(--text-mute); font-size: 13px; }
.inv-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.inv-actions .btn { flex: 1 1 auto; }
.inv-msg { margin-top: 14px; font-size: 13px; color: var(--text-soft); word-break: break-all; }
.prod-photo { display: flex; align-items: center; gap: 12px; }
.pp-preview { width: 80px; height: 80px; border-radius: 10px; background: var(--surface-2); display: grid;
  place-items: center; overflow: hidden; color: var(--text-mute); font-size: 12px; flex: 0 0 auto; }
.pp-preview img { width: 100%; height: 100%; object-fit: cover; }
.pp-none { color: var(--text-mute); }
.pp-btn { height: 44px; }
#logoPrev { width: 130px; }
#logoPrev img { object-fit: contain; }
.pos-wait { text-align: center; padding: 26px 10px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pos-spin { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: pos-rot .8s linear infinite; }
@keyframes pos-rot { to { transform: rotate(360deg); } }
.pp-hint { color: var(--text-mute); font-size: 13px; margin: 4px 0; }

/* Rapportages */
.rep-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.rep-dates { display: flex; align-items: center; gap: 8px; }
.rep-dates input { height: 42px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; background: var(--surface); color: var(--text); }
.rep-dates .btn { height: 42px; }
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--sh-1); }
.kpi-l { display: block; color: var(--text-mute); font-size: 13px; font-weight: 600; }
.kpi-v { display: block; font-size: 26px; font-weight: 800; margin-top: 4px; }
.rep-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--sh-1); margin-bottom: 16px; }
.rep-card h3 { margin: 0 0 12px; font-size: 15px; }
.rep-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rep-tbl { width: 100%; border-collapse: collapse; }
.rep-tbl td { padding: 7px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.rep-tbl td.r { text-align: right; color: var(--text-soft); white-space: nowrap; }
.chart-scroll { overflow-x: auto; }
.rep-empty { color: var(--text-mute); }
@media (max-width: 760px) { .kpi-row { grid-template-columns: repeat(2, 1fr); } .rep-cols { grid-template-columns: 1fr; } }

/* ---------------- Mobiel ---------------- */
.cart-fab { display: none; }
@media (max-width: 900px) {
  .kassa { grid-template-columns: minmax(0, 1fr); }
  .cart { position: fixed; inset: 0; top: 0; z-index: 40; border-left: 0;
    transform: translateY(100%); transition: transform .25s ease; }
  .app[data-cart="open"] .cart { transform: translateY(0); }
  .cart-fab { display: flex; position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 35;
    height: 58px; padding: 0 22px; border-radius: var(--r-pill); border: 0; align-items: center; gap: 10px;
    background: linear-gradient(180deg, var(--brand), var(--brand)); color: #fff; box-shadow: var(--sh-3); font-weight: 800; font-size: 16px; }
  .cart-fab .cf-count { background: var(--accent-warm); color: #2a2213; border-radius: var(--r-pill);
    min-width: 26px; height: 26px; display: grid; place-content: center; font-size: 14px; }
  .cart-close { display: inline-flex !important; }
}
.cart-close { display: none; }

/* Geen horizontale pagina-scroll op smartphone */
html, body { max-width: 100%; overflow-x: hidden; }
#main { min-width: 0; }
@media (max-width: 720px) {
  .topbar { gap: 8px; padding: 8px 10px; padding-top: max(8px, env(safe-area-inset-top)); }
  .topbar .brand { display: none; }                  /* logo weg — avatar neemt de linkerplek */
  .topbar .spacer { display: none; }
  .topbar .who { order: -1; gap: 0; }                /* avatar helemaal links */
  .topbar .nav { flex: 1; min-width: 0; overflow-x: auto; justify-content: flex-start;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .topbar .nav::-webkit-scrollbar { display: none; }
  .topbar .nav button { padding: 8px 12px; font-size: 13px; white-space: nowrap; flex: 0 0 auto; }
  .topbar .who span:not(.avatar) { display: none; }  /* alleen avatar, naam verbergen */
}

/* ---- Bestel-popup: "Vandaag / Andere dag" + kalender ---- */
.g-modepop .g-when-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.g-when-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px;
  border: 2px solid var(--line); border-radius: 12px; background: var(--surface); font-weight: 700; color: var(--text); cursor: pointer; }
.g-when-tabs button.sel { border-color: var(--brand); background: var(--surface-2); }
.g-when-tabs .wt-ic { display: inline-flex; }
.g-when-tabs .wt-ic svg { width: 18px; height: 18px; }
.g-modepop input[type="date"] { width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 12px;
  padding: 0 12px; font: inherit; background: var(--surface); color: var(--text); }

/* ---- Keukenscherm: geplande (latere dag) bestellingen ---- */
.kcard.kplanned { border-top-color: var(--warn); }
.k-when.k-plan { background: var(--warn); color: #2a2213; }

/* ---- Bestellen nog gesloten: "binnenkort open"-scherm ---- */
.g-closed { min-height: 78vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.gc-card { width: min(460px, 100%); text-align: center; color: #f4ede3; border-radius: 24px; padding: 44px 30px;
  background: radial-gradient(120% 90% at 50% -10%, var(--brand-deep) 0%, var(--brand-deep) 62%);
  box-shadow: var(--sh-2); border: 1px solid color-mix(in srgb, var(--accent-warm) 22%, transparent); }
.gc-eyebrow { letter-spacing: 4px; text-transform: uppercase; font-size: 12px; font-weight: 800; color: var(--accent-warm); }
.gc-title { font-size: clamp(30px, 7vw, 44px); line-height: 1.06; margin: 8px 0 10px; color: #fff; }
.gc-sub { color: #d9cfb9; line-height: 1.6; margin: 0 auto 18px; max-width: 34ch; }
.gc-count { display: inline-block; background: rgba(255,255,255,.08); border: 1px solid color-mix(in srgb, var(--accent-warm) 30%, transparent);
  color: var(--accent-warm); font-weight: 800; padding: 8px 16px; border-radius: 999px; margin-bottom: 22px; }
.gc-btn { text-decoration: none; }

/* ---- Kassa-lade: dagopening / dagafsluiting ---- */
.cash-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--r);
  margin-bottom: 16px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--sh-1); }
.cash-bar.open { border-color: #7fbf8e; }
.cash-bar .cb-info { display: flex; flex-direction: column; gap: 3px; }
.cb-badge { align-self: flex-start; font-weight: 800; font-size: 11px; letter-spacing: .3px; text-transform: uppercase;
  background: var(--ok); color: #fff; padding: 3px 10px; border-radius: 999px; }
.cb-badge.off { background: var(--text-mute); }
.cb-meta { color: var(--text-mute); font-size: 12.5px; }
.cb-nums { display: flex; gap: 20px; }
.cb-nums span { display: flex; flex-direction: column; }
.cb-nums b { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cb-nums small { color: var(--text-mute); font-size: 11px; }
.cb-nums .cb-exp b { color: var(--ok); }
.cash-bar > .btn { margin-left: auto; }
.cb-warn { background: #fbeee0; border: 1px solid var(--warn); color: #7a4a12; border-radius: 10px; padding: 10px 12px;
  font-size: 13.5px; margin-bottom: 12px; }
.cb-sum { display: grid; gap: 6px; background: var(--surface-2); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.cb-sum > div { display: flex; justify-content: space-between; }
.cb-sum span { color: var(--text-soft); }
.cb-sum b { font-variant-numeric: tabular-nums; }
.cb-sum .cb-exp { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 2px; font-size: 16px; }
.cb-sum .cb-exp b { color: var(--ok); }
.cb-diff { min-height: 20px; font-weight: 800; margin: -4px 0 10px; }
.cb-diff.ok { color: var(--ok); }
.cb-diff.over { color: var(--warn); }
.cb-diff.short { color: var(--danger, #c0432f); }

/* ---- Kassa-pill in de bovenbalk (dagopening/afsluiting) ---- */
.topbar .cash-pill { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.08);
  color: #f4ede3; font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; }
.topbar .cash-pill:hover { background: rgba(255,255,255,.15); }
.cash-pill .cp-dot { width: 9px; height: 9px; border-radius: 50%; background: #c9b98f; flex: none; }
.topbar .cash-pill.on { border-color: rgba(127,191,142,.6); }
.cash-pill.on .cp-dot { background: #58d18a; box-shadow: 0 0 0 3px rgba(88,209,138,.25); }
.cash-pill.off .cp-dot { background: var(--warn); }

/* ---- Offline-modus ---- */
.off-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 16px; font-weight: 700; font-size: 13.5px; }
.off-bar[hidden] { display: none; }
.off-bar.down { background: #7a2a1e; color: #ffe3dc; }
.off-bar.pending { background: var(--warn); color: #2a2213; }
.off-sync { margin-left: auto; border: 0; border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: 13px; cursor: pointer;
  background: rgba(255,255,255,.22); color: inherit; }
.off-sync:hover { background: rgba(255,255,255,.34); }
.off-note { background: #fbeee0; border: 1px solid var(--warn); color: #7a4a12; border-radius: 10px; padding: 10px 12px;
  font-size: 13.5px; margin-bottom: 12px; }

/* ---- Keuze-opties (bv. broodsoort) ---- */
.opt-lbl { font-weight: 700; color: var(--text-soft); margin: 0 0 10px; }
.opt-list { display: grid; gap: 8px; }
.opt-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); padding: 14px 16px;
  font-weight: 700; font-size: 15px; color: var(--text); cursor: pointer; text-align: left; }
.opt-row:hover { border-color: var(--brand); background: var(--surface-2); }
.opt-row b { color: var(--accent); font-weight: 800; }

/* ---- Allergenen-iconen + legenda ---- */
.t-allerg { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 5px; }
.alg { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; background: var(--surface-2);
  color: var(--text-soft); align-items: center; justify-content: center; flex: none; }
.alg svg { width: 14px; height: 14px; }
.g-alg-legend { display: flex; align-items: center; gap: 8px; margin: 16px auto; padding: 9px 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text-soft);
  font-weight: 600; font-size: 13px; cursor: pointer; }
.g-alg-legend .alg { width: 24px; height: 24px; }
.alg-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.alg-leg { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.alg-leg .alg { width: 32px; height: 32px; }
.alg-leg .alg svg { width: 20px; height: 20px; }
@media (max-width: 420px) { .alg-legend { grid-template-columns: 1fr; } }

/* ---- Allergenen-keuze (product-scherm beheer) ---- */
.alg-pick { margin-top: 6px; }
.alg-pick-lbl { display: block; font-weight: 600; color: var(--text-soft); font-size: 13px; margin-bottom: 6px; }
.alg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 4px 10px; }
.alg-chk { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--text); }
.alg-chk input { width: 18px; height: 18px; flex: none; }

/* Koppen in de display-serif (Young Serif heeft één gewicht: 400). */
h1, h2, h3, .modal h3, .gc-title, .g-brand, .login-card h1 { font-family: var(--font-display); font-weight: 400; letter-spacing: -.01em; }

/* Mollie Connect-blok in Instellingen */
.mc-box { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin: 6px 0 12px; background: var(--surface); }
.mc-box p { margin: 0 0 8px; }
.mc-adv { margin: 8px 0 12px; } .mc-adv summary { cursor: pointer; color: var(--text-soft); font-size: 14px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; background: var(--surface-2); color: var(--text); }
.pill.ok { background: #dcefe2; color: #2f6b45; } .pill.warn { background: #fbf0d0; color: #6b4e08; }
