:root {
  --navy: #0f2238; --navy-2: #18324f; --navy-3: #24456a;
  --amber: #f5a524; --amber-d: #d88a0c; --amber-l: #fff3dc;
  --bg: #eef1f5; --card: #fff; --line: #dde3ea; --text: #142033; --muted: #66758a;
  --green: #1f9d55; --green-l: #e3f6ea; --red: #d64545; --red-l: #fde8e8; --blue: #2b6cb0; --blue-l: #e6f0fb;
  --purple: #7c3aed; --purple-l: #f1eafe;
  --r: 12px; --sh: 0 1px 2px rgba(15,34,56,.06), 0 4px 14px rgba(15,34,56,.06);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 15px; -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
small, .muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
#print { display: none; }

/* ---------- knoppen & velden ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 16px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-weight: 600; white-space: nowrap; transition: transform .05s, background .15s; user-select: none; }
a.btn { text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--amber); border-color: var(--amber); color: #1d1300; }
.btn.primary:hover { background: var(--amber-d); border-color: var(--amber-d); }
.btn.dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.green { background: var(--green); border-color: var(--green); color: #fff; }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.danger-ghost { color: var(--red); background: transparent; border-color: transparent; }
.btn.sm { min-height: 32px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.btn.lg { min-height: 54px; font-size: 17px; padding: 0 22px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.input, .select, textarea.input { width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; outline: none; }
.input:focus, .select:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245,165,36,.2); }
label.f { display: block; margin-bottom: 12px; }
label.f > span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.row { display: flex; gap: 8px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.spacer { flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #eef2f6; color: var(--muted); white-space: nowrap; }
.chip.amber { background: var(--amber-l); color: #8a5300; }
.chip.green { background: var(--green-l); color: var(--green); }
.chip.red { background: var(--red-l); color: var(--red); }
.chip.blue { background: var(--blue-l); color: var(--blue); }
.chip.purple { background: var(--purple-l); color: var(--purple); }
.tag { font-size: 10px; font-weight: 800; padding: 1px 5px; border-radius: 4px; background: var(--green-l); color: var(--green); }
.seg { display: inline-flex; background: #e4e9ef; border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { padding: 7px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--muted); }
.seg button.on { background: #fff; color: var(--text); box-shadow: var(--sh); }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 16px; }
.card h3 { font-size: 15px; margin-bottom: 10px; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.loading { padding: 80px; text-align: center; color: var(--muted); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); }
table.t td { padding: 8px; border-bottom: 1px solid #eef1f4; vertical-align: middle; }
table.t td.r, table.t th.r { text-align: right; }
table.t tr:last-child td { border-bottom: 0; }
table.t tfoot td { font-weight: 700; border-top: 2px solid var(--line); }

/* ---------- login ---------- */
.login { min-height: 100%; display: grid; place-items: center; background: radial-gradient(1200px 600px at 20% -10%, var(--navy-3), var(--navy)); padding: 20px; }
.login-box { width: 100%; max-width: 360px; color: #fff; text-align: center; }
.login-box .logo { width: 64px; height: 64px; margin: 0 auto 10px; }
.login-box h1 { font-size: 26px; }
.login-box p { color: #a9b8cc; margin: 4px 0 22px; }
.pin-dots { display: flex; justify-content: center; gap: 12px; margin-bottom: 22px; height: 16px; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #5d7593; }
.pin-dots i.on { background: var(--amber); border-color: var(--amber); }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pinpad button { height: 64px; border-radius: 14px; background: rgba(255,255,255,.08); color: #fff; font-size: 24px; font-weight: 600; }
.pinpad button:active { background: rgba(255,255,255,.2); }
.pinpad button.ok { background: var(--amber); color: #1d1300; }
.demo-pins { margin-top: 22px; font-size: 13px; color: #a9b8cc; background: rgba(255,255,255,.06); border-radius: 12px; padding: 10px 12px; text-align: left; }
.demo-pins b { color: #fff; }
.demo-pins button { color: var(--amber); font-weight: 700; padding: 2px 4px; }

/* ---------- shell ---------- */
.shell { display: flex; flex-direction: column; height: 100%; }
.top { display: flex; align-items: center; gap: 14px; background: var(--navy); color: #fff; padding: 0 14px; height: 56px; flex: none; padding-top: env(safe-area-inset-top); box-sizing: content-box; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 16px; white-space: nowrap; }
.brand img { width: 30px; height: 30px; }
.brand span { color: #9fb2c9; font-size: 13px; }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav::-webkit-scrollbar { display: none; }
.nav a { position: relative; display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 9px; color: #c4d1e0; text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.nav a:hover { background: var(--navy-2); color: #fff; }
.nav a.on { background: var(--navy-3); color: #fff; }
.nav a .i { font-size: 16px; }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; display: inline-grid; place-items: center; }
.me { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 14px; }
.me small { color: #9fb2c9; }
.me .btn { background: transparent; color: #c4d1e0; border-color: var(--navy-3); }
.main { flex: 1; overflow: auto; padding: 16px; -webkit-overflow-scrolling: touch; }
.main.flush { padding: 0; overflow: hidden; }
.page-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.page-head h1 { font-size: 22px; margin-right: auto; }
.banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: var(--amber-l); color: #6b4100; margin-bottom: 14px; font-weight: 600; }

/* ---------- tafels ---------- */
.area-title { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin: 18px 0 8px; }
.tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.tbl { position: relative; min-height: 104px; border-radius: 14px; background: #fff; box-shadow: var(--sh); padding: 10px 12px; text-align: left; display: flex; flex-direction: column; gap: 2px; border: 2px solid transparent; }
.tbl .nm { font-size: 22px; font-weight: 800; }
.tbl .st { font-size: 12px; color: var(--muted); }
.tbl .amt { margin-top: auto; font-weight: 700; }
.tbl.busy { background: var(--navy); color: #fff; }
.tbl.busy .st { color: #a9bbd0; }
.tbl.attn { border-color: var(--amber); animation: pulse 1.6s infinite; }
.tbl .flags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.tbl .flags:empty { display: none; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(245,165,36,.5); } 50% { box-shadow: 0 0 0 6px rgba(245,165,36,0); } }
.quick { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- orderscherm ---------- */
.order { display: grid; grid-template-columns: 1fr 400px; height: 100%; min-height: 0; }
.menu-pane { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.menu-head { display: flex; gap: 8px; padding: 12px 12px 0; align-items: center; }
.menu-head .back { flex: none; }
.cats { display: flex; gap: 6px; padding: 10px 12px; overflow-x: auto; scrollbar-width: none; flex: none; }
.cats::-webkit-scrollbar { display: none; }
.cats button { padding: 9px 14px; border-radius: 999px; background: #fff; font-weight: 600; white-space: nowrap; box-shadow: var(--sh); font-size: 14px; }
.cats button.on { background: var(--navy); color: #fff; }
.prods { flex: 1; overflow: auto; padding: 4px 12px 90px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; align-content: start; }
.prod { min-height: 92px; border-radius: 12px; background: #fff; box-shadow: var(--sh); padding: 10px 12px; text-align: left; display: flex; flex-direction: column; gap: 4px; border-left: 4px solid var(--line); }
.prod.st-bar { border-left-color: var(--blue); }
.prod.st-keuken { border-left-color: var(--amber); }
.prod .pn { font-weight: 700; line-height: 1.2; }
.prod .pp { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--muted); font-size: 14px; }
.prod.off { opacity: .45; }
.prod.off .pp::after { content: 'UITVERKOCHT'; font-size: 10px; font-weight: 800; color: var(--red); }
.prod:active { transform: scale(.97); }
.prod.flash { animation: flash .35s; }
@keyframes flash { from { background: var(--amber-l); } to { background: #fff; } }

.ticket { background: #fff; border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.ticket-head { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ticket-head h2 { font-size: 19px; }
.ticket-head .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; align-items: center; }
.ticket-body { flex: 1; overflow: auto; padding: 6px 0; }
.grp { padding: 6px 14px 2px; display: flex; align-items: center; gap: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--muted); }
.grp .spacer { flex: 1; }
.grp.guest { color: #8a5300; background: var(--amber-l); padding-top: 8px; padding-bottom: 8px; }
.line { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; padding: 8px 14px; align-items: center; cursor: pointer; }
.line:hover { background: #f6f8fa; }
.line .q { font-weight: 800; min-width: 28px; }
.line .n { min-width: 0; }
.line .n b { font-weight: 600; }
.line .n small { display: block; font-size: 12px; }
.line .n .note { color: var(--red); font-weight: 600; }
.line .p { text-align: right; font-weight: 600; }
.line.st-void { opacity: .45; text-decoration: line-through; }
.line .ctl { display: flex; gap: 4px; align-items: center; }
.qbtn { width: 30px; height: 30px; border-radius: 8px; background: #eef2f6; font-weight: 800; font-size: 16px; }
.ticket-foot { border-top: 1px solid var(--line); padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); }
.sum { display: flex; justify-content: space-between; font-size: 14px; padding: 2px 0; }
.sum.total { font-size: 22px; font-weight: 800; padding: 6px 0; }
.foot-btns { display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px; margin-top: 8px; }
.ticket-toggle { display: none; }
.ticket-close { display: none; }

/* ---------- afrekenen ---------- */
.pay { display: grid; grid-template-columns: 1fr 420px; gap: 16px; max-width: 1100px; margin: 0 auto; }
.pay .bill .line { cursor: default; }
.pay .bill .line.sel { background: var(--amber-l); }
.due { text-align: center; padding: 10px 0 14px; }
.due .lbl { color: var(--muted); font-weight: 600; font-size: 13px; }
.due .amt { font-size: 44px; font-weight: 800; letter-spacing: -.02em; }
.methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.methods .btn { min-height: 66px; font-size: 17px; flex-direction: column; gap: 2px; }
.methods .btn small { font-weight: 500; font-size: 12px; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.keypad button { height: 52px; border-radius: 10px; background: #eef2f6; font-size: 20px; font-weight: 700; }
.bills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0; }
.change { text-align: center; padding: 12px; border-radius: 12px; background: var(--green-l); color: var(--green); font-weight: 800; font-size: 26px; }
.terminal-box { text-align: center; padding: 10px 0; }
.terminal-box .dev { width: 120px; height: 170px; margin: 6px auto 16px; border-radius: 18px; background: #1d2a3a; position: relative; box-shadow: inset 0 0 0 6px #2a3a4e; }
.terminal-box .dev::before { content: ''; position: absolute; left: 16px; right: 16px; top: 18px; height: 52px; border-radius: 6px; background: #7fd3a0; }
.terminal-box .dev.wait::before { background: #9cc3f5; animation: blink 1.2s infinite; }
.terminal-box .dev.bad::before { background: #f19a9a; }
.terminal-box .dev::after { content: ''; position: absolute; left: 18px; right: 18px; top: 84px; bottom: 16px; background: radial-gradient(circle, #44576e 5px, transparent 6px) 0 0/28px 22px; }
@keyframes blink { 50% { opacity: .55; } }
.terminal-box h3 { font-size: 20px; margin-bottom: 4px; }

/* ---------- keuken/bar ---------- */
.kds { background: #121a24; height: 100%; overflow: auto; color: #e8eef5; padding: 12px; }
.kds-head .btn { color: var(--text); }
.kds-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.kds-head h1 { font-size: 22px; color: #fff; margin-right: auto; }
.kds-head .seg { background: #233142; }
.kds-head .seg button { color: #9fb2c9; }
.kds-head .seg button.on { background: #3a4d63; color: #fff; }
.tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; align-items: start; }
.tk { background: #1d2733; border-radius: 12px; overflow: hidden; border-top: 6px solid #3fb950; }
.tk.warn { border-top-color: var(--amber); }
.tk.late { border-top-color: #f85149; }
.tk.held { border-top-color: #6e7f94; opacity: .8; }
.tk-h { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 12px 6px; }
.tk-h b { font-size: 20px; }
.tk-h .age { font-weight: 800; font-variant-numeric: tabular-nums; }
.tk.warn .age { color: var(--amber); } .tk.late .age { color: #f85149; }
.tk-m { padding: 0 12px 6px; font-size: 12px; color: #93a4b8; }
.tk-c { padding: 6px 12px 2px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #93a4b8; font-weight: 800; border-top: 1px dashed #314052; }
.tk-i { display: flex; gap: 10px; padding: 7px 12px; cursor: pointer; font-size: 16px; }
.tk-i .q { font-weight: 800; min-width: 26px; color: var(--amber); }
.tk-i small { display: block; color: #9fb2c9; font-size: 13px; }
.tk-i .note { color: #ffb4a8; font-weight: 700; }
.tk-i.done { opacity: .4; text-decoration: line-through; }
.tk-i.wait { opacity: .5; }
.tk-f { padding: 10px 12px; display: flex; gap: 8px; }
.tk-f .btn { flex: 1; background: #2b3a4c; color: #fff; border-color: #2b3a4c; }
.tk-f .btn.green { background: #238636; border-color: #238636; }
.kds .empty { color: #6e7f94; }

/* ---------- meldingen / lijsten ---------- */
.list { display: flex; flex-direction: column; gap: 8px; }
.li { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: var(--sh); flex-wrap: wrap; }
.li .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; background: #eef2f6; flex: none; }
.li .tx { flex: 1; min-width: 180px; }
.li .tx b { display: block; }
.li.done { opacity: .5; }
.li.click { cursor: pointer; }

/* ---------- rapport ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpi { background: #fff; border-radius: 12px; padding: 14px; box-shadow: var(--sh); }
.kpi .l { font-size: 12px; color: var(--muted); font-weight: 600; }
.kpi .v { font-size: 24px; font-weight: 800; margin-top: 2px; letter-spacing: -.01em; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 150px; padding-top: 10px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; min-width: 0; }
.bars .b i { display: block; width: 100%; max-width: 34px; background: var(--amber); border-radius: 4px 4px 0 0; min-height: 2px; }
.bars .b span { font-size: 11px; color: var(--muted); }
.hbar { height: 8px; border-radius: 4px; background: #eef2f6; overflow: hidden; margin-top: 4px; }
.hbar i { display: block; height: 100%; background: var(--navy-3); }

/* ---------- beheer ---------- */
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.qr-card { background: #fff; border-radius: 12px; padding: 12px; text-align: center; box-shadow: var(--sh); }
.qr-card svg { width: 150px; height: 150px; }
.qr-card a { font-size: 11px; word-break: break-all; color: var(--blue); }
.switch { position: relative; width: 44px; height: 26px; border-radius: 13px; background: #cbd5e1; flex: none; transition: background .15s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch.on { background: var(--green); }
.switch.on::after { left: 21px; }

/* ---------- modal & toast ---------- */
.ov { position: fixed; inset: 0; background: rgba(10,20,35,.5); display: grid; place-items: center; z-index: 50; padding: 16px; animation: fade .12s; }
@keyframes fade { from { opacity: 0; } }
.md { background: #fff; border-radius: 16px; width: 100%; max-width: 480px; max-height: calc(100% - 20px); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.md.wide { max-width: 760px; }
.md-h { display: flex; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); gap: 10px; }
.md-h h2 { font-size: 18px; flex: 1; }
.md-b { padding: 16px; overflow: auto; }
.md-f { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.opt-group { margin-bottom: 14px; }
.opt-group h4 { margin: 0 0 6px; font-size: 14px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts button { padding: 9px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; }
.opts button.on { border-color: var(--navy); background: var(--navy); color: #fff; }
.stepper { display: inline-flex; align-items: center; gap: 10px; }
.stepper button { width: 42px; height: 42px; border-radius: 10px; background: #eef2f6; font-size: 20px; font-weight: 800; }
.stepper b { min-width: 30px; text-align: center; font-size: 20px; }
#toasts { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: calc(100% - 32px); max-width: 420px; }
.toast { background: var(--navy); color: #fff; padding: 11px 16px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.25); font-weight: 600; animation: tin .2s; pointer-events: auto; }
.toast.err { background: var(--red); }
.toast.ok { background: var(--green); }
.toast.warn { background: var(--amber); color: #1d1300; }
@keyframes tin { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- bon ---------- */
.receipt { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; width: 300px; margin: 0 auto; background: #fff; color: #000; padding: 14px; line-height: 1.45; }
.receipt .c { text-align: center; }
.receipt .rl { display: flex; justify-content: space-between; gap: 8px; }
.receipt .rl span:first-child { flex: 1; }
.receipt hr { border: 0; border-top: 1px dashed #000; margin: 6px 0; }
.receipt .big { font-size: 16px; font-weight: 800; }
.receipt .sub { padding-left: 14px; color: #333; }
.receipt-preview { background: #eef1f5; padding: 14px; border-radius: 12px; }

/* ---------- responsief ---------- */
@media (max-width: 1000px) {
  .order { grid-template-columns: 1fr; }
  .ticket { position: fixed; inset: 0; z-index: 40; transform: translateY(100%); transition: transform .22s ease; border-left: 0; padding-top: env(safe-area-inset-top); }
  .ticket.open { transform: none; }
  .ticket-close { display: inline-flex; }
  .ticket-toggle { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; height: 58px; border-radius: 14px; background: var(--navy); color: #fff; align-items: center; justify-content: space-between; padding: 0 18px; font-weight: 700; font-size: 16px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
  .ticket-toggle .badge { background: var(--amber); color: #1d1300; margin-right: 8px; }
  .pay { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .shell { flex-direction: column; }
  .top { height: 50px; padding: 0 10px; gap: 8px; }
  .brand span, .me small { display: none; }
  .nav { position: fixed; bottom: 0; left: 0; right: 0; background: var(--navy); z-index: 20; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; gap: 0; }
  .nav a { flex-direction: column; gap: 2px; font-size: 10.5px; padding: 6px 8px; }
  .nav a .i { font-size: 19px; }
  .nav a .badge { position: absolute; top: 0; right: 4px; }
  .main { padding: 12px 12px 90px; }
  .main.flush { padding: 0 0 64px; }
  .tables { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
  .tbl { min-height: 92px; padding: 8px 10px; }
  .tbl .nm { font-size: 20px; }
  .prods { grid-template-columns: repeat(2, 1fr); padding-bottom: 150px; }
  .ticket-toggle { bottom: calc(72px + env(safe-area-inset-bottom)); }
  .ticket { z-index: 45; }
  .due .amt { font-size: 38px; }
  .md { max-height: calc(100% - 10px); }
  .ov { padding: 8px; align-items: end; }
  .tickets { grid-template-columns: 1fr; }
  .kds { padding-bottom: 80px; }
  .order { height: 100%; }
}

/* ---------- print ---------- */
@media print {

  body { background: #fff; }
  body > *:not(#print) { display: none !important; }
  #print { display: block !important; }
  #print .receipt { width: 72mm; padding: 4mm 0; font-size: 11.5px; }
  #print .qr-print { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10mm; padding: 10mm; }
  #print .qr-print div { text-align: center; page-break-inside: avoid; font-family: var(--font); }
  #print .qr-print svg { width: 45mm; height: 45mm; }
}

/* tafel verplaatsen */
.tbl.movesrc { outline: 3px solid var(--blue); outline-offset: 2px; }
.tbl.movedim { opacity: .45; }

/* tijdregistratie */
.clock-chip { padding: 6px 10px; border-radius: 999px; font-weight: 700; font-size: 13px; background: var(--navy-3); color: #c4d1e0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.clock-chip.st-werkt { background: var(--green); color: #fff; }
.clock-chip.st-pauze { background: var(--amber); color: #1d1300; }
.login-seg { margin: 10px auto 6px; background: rgba(255,255,255,.08); }
.login-seg button { color: #a9b8cc; }
.login-seg button.on { background: #fff; color: var(--navy); }
.klok-card { background: rgba(255,255,255,.06); border-radius: 18px; padding: 20px 18px; }
.klok-hi { font-size: 22px; font-weight: 800; }
.klok-msg { margin: 14px 0; padding: 14px; border-radius: 12px; background: var(--green); color: #fff; font-weight: 700; font-size: 17px; }
.klok-big { font-size: 44px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.klok-sub { color: #a9b8cc; font-size: 14px; margin-bottom: 12px; }
.klok-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 16px; }
.klok-stats div { background: rgba(255,255,255,.06); border-radius: 10px; padding: 8px 4px; }
.klok-stats small { display: block; color: #a9b8cc; font-size: 11px; }
.klok-stats b { font-size: 15px; }
.klok-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.klok-btn { min-height: 64px; font-size: 18px; }
.klok-light .klok-sub, .klok-light .klok-stats small { color: var(--muted); }
.klok-light .klok-stats div { background: #f1f4f7; }
table.t tr.sel td { background: var(--amber-l); }
@media (max-width: 720px) { .clock-chip { padding: 5px 8px; font-size: 12px; } .me > div { display: none; } }
#app { height: 100%; }
.klok-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.klok-btn { white-space: normal; padding: 0 10px; line-height: 1.2; }

/* geen inzoomen op mobiel: dubbeltik-zoom uit, en invoervelden min. 16px (anders zoomt iOS in bij focus) */
html, body, button, a, input, select, textarea, [data-a] { touch-action: manipulation; }
button { -webkit-user-select: none; user-select: none; }
@media (max-width: 1000px) { .input, .select, textarea.input, input, select, textarea { font-size: 16px; } }

/* bestelscherm: groepen en categorieën zonder horizontaal scrollen */
.groups { padding: 10px 12px 0; }
.groups .seg { width: 100%; display: flex; }
.groups .seg button { flex: 1; padding: 9px 6px; }
.cats.wrap { flex-wrap: wrap; overflow: visible; padding-bottom: 8px; }
@media (max-width: 720px) {
  .cats.wrap { gap: 6px; padding: 8px 12px; }
  .cats.wrap button { padding: 7px 11px; font-size: 13px; }
  .menu-head { padding: 10px 12px 0; }
}
@media (max-width: 720px) { .prod { min-height: 70px; padding: 8px 10px; } .prods { gap: 8px; } }

/* reserveringen */
.tbl.resv { background: var(--purple-l); border-color: var(--purple); color: #3b1d80; }
.tbl.resv .st { color: var(--purple); }

/* PWA */
.install-btn { margin-top: 16px; background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); width: 100%; }
.login { padding-top: calc(20px + env(safe-area-inset-top)); padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
@media (display-mode: standalone) { body { -webkit-user-select: none; user-select: none; } input, textarea { -webkit-user-select: text; user-select: text; } }
