:root {
  --bg: #f4f5f7; --card: #fff; --text: #1d2430; --muted: #6a7482; --line: #d9dde3;
  --accent: #b8431f; --accent-dark: #93340f; --ok: #1b7a43; --warn: #a86400; --bad: #b3261e;
  --radius: 12px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 17px; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.4; }
a { color: var(--accent-dark); }
h1 { font-size: 1.6rem; margin: .2em 0 .6em; }
h2 { font-size: 1.15rem; margin: 1.2em 0 .5em; }
h3 { font-size: 1rem; margin: 1em 0 .3em; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .r { text-align: right; } .nowrap { white-space: nowrap; }
.center { text-align: center; }
code, pre { background: #eef0f3; border-radius: 6px; padding: 2px 6px; font-size: .9rem; }
pre { padding: 12px; overflow: auto; }

/* kop */
.topbar { display: flex; align-items: center; gap: 18px; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 18px; position: sticky; top: 0; z-index: 20; flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 1.15rem; text-decoration: none; color: var(--text); }
.brand span { color: var(--accent); font-weight: 600; }
.topbar nav { display: flex; gap: 4px; align-items: center; flex: 1; flex-wrap: wrap; }
.topbar nav a, .menu summary { padding: 10px 14px; border-radius: 10px; text-decoration: none; color: var(--text); font-weight: 600; cursor: pointer; list-style: none; }
.topbar nav a:hover, .menu summary:hover { background: #eef0f3; }
.topbar nav a.on { background: #fbe9e3; color: var(--accent-dark); }
.menu { position: relative; }
.menu summary::-webkit-details-marker { display: none; }
.menu > div { position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); min-width: 220px; padding: 6px; display: flex; flex-direction: column; z-index: 30; }
.who { display: flex; align-items: center; gap: 12px; }
.who form { margin: 0; }
.name { font-weight: 700; }
.timer { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .9rem; min-width: 3.2em; text-align: right; }
.timer.low { color: var(--bad); font-weight: 700; }
.warn-bar { background: #fff3cd; color: #5c4300; text-align: center; padding: 10px; font-weight: 600; position: sticky; top: 58px; z-index: 19; border-bottom: 1px solid #e6c767; }

.page { max-width: 1100px; margin: 0 auto; padding: 18px; }
.page.wide { max-width: 1500px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 14px 0; }
.card.narrow { max-width: 520px; margin: 40px auto; }
.card.scroll, .scroll { overflow: auto; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid2 > .card { margin: 0; }
@media (max-width: 800px) { .grid2 { grid-template-columns: 1fr; } }
.head-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.head-row h1 { margin: .2em 0; }
.actions { display: flex; gap: 10px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.actions form, .head-row form { margin: 0; }
.actions.wrap { margin: 8px 0; }
.spacer { flex: 1; }

/* knoppen */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: var(--text); padding: 10px 16px; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; min-height: 44px; }
.btn:hover { background: #f1f3f6; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); }
.btn.danger { color: var(--bad); border-color: #e3b5b1; }
.btn.danger:hover { background: #fdeceb; }
.btn.small { padding: 6px 12px; min-height: 36px; font-size: .9rem; }
.btn.big { min-height: 52px; padding: 12px 22px; font-size: 1.05rem; }
.btn.huge { min-height: 84px; padding: 18px 26px; font-size: 1.3rem; border-radius: 16px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.quick { display: flex; gap: 14px; flex-wrap: wrap; margin: 10px 0 18px; }
.quick form { margin: 0; }

/* formulieren */
.field { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .9rem; margin: 8px 0; }
.field input, .field select, .field textarea, .pos-tools input, #cq { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid #b9c0ca; border-radius: 10px; background: #fff; min-height: 44px; }
.field input:focus, .field select:focus, .field textarea:focus, .pos-tools input:focus, #cq:focus { outline: 3px solid #f2c4b4; border-color: var(--accent); }
.field.grow { flex: 1; min-width: 200px; }
.field.slim input { width: 11em; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 14px; }
.form-grid .span2 { grid-column: span 2; }
@media (max-width: 560px) { .form-grid .span2 { grid-column: span 1; } }
.stack { display: flex; flex-direction: column; gap: 6px; }
.filters, .inline-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.inline-form { margin-top: 14px; }
.check, .switch { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; min-height: 44px; }
.check input, .switch input { width: 22px; height: 22px; accent-color: var(--accent); }
.row-form { display: inline-flex; gap: 8px; align-items: center; margin: 0; }
.row-form input, .row-form select { font: inherit; padding: 8px 10px; border: 1px solid #b9c0ca; border-radius: 8px; min-height: 38px; }
fieldset.choices { border: 0; padding: 0; margin: 0; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 10px; margin: 8px 0; cursor: pointer; }
.choice small { display: block; color: var(--muted); font-weight: 400; }
.choice input { margin-top: 5px; width: 20px; height: 20px; accent-color: var(--accent); }

/* tabellen */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); border-bottom: 2px solid var(--line); padding: 8px 10px; white-space: nowrap; }
.table td { padding: 10px; border-bottom: 1px solid #eceff3; vertical-align: top; }
.table.compact td { padding: 6px 10px; }
.table th.r { text-align: right; }
tr.inactive td, tr.struck td { color: var(--muted); }
tr.struck td a { text-decoration: line-through; }
.totals { margin-left: auto; margin-top: 10px; border-collapse: collapse; min-width: 260px; }
.totals td { padding: 3px 0 3px 24px; }
.totals tr.sum td { font-weight: 800; border-top: 2px solid var(--text); padding-top: 6px; font-size: 1.05rem; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 12px; }

/* badges en meldingen */
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; vertical-align: middle; background: #e8eaee; }
.badge.concept { background: #fff1cc; color: #7a5200; }
.badge.definitief, .badge.nieuw { background: #d8f0e0; color: #14602f; }
.badge.geannuleerd, .badge.overslaan { background: #f6d8d5; color: #8e1d16; }
.badge.bijwerken { background: #dce9fb; color: #1d4a8f; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 6px; background: #e8eaee; color: #444; margin-left: 4px; vertical-align: middle; }
.tag.warn { background: #fff1cc; color: #7a5200; }
.flash { padding: 12px 16px; border-radius: 10px; margin: 12px 0; border: 1px solid; }
.flash.ok { background: #e3f5ea; border-color: #a8d8b9; color: #14502a; }
.flash.fout { background: #fdeceb; border-color: #efb8b3; color: #7a1812; }
.flash.warn { background: #fff6dc; border-color: #ecd28a; color: #5c4300; }
.flash ul { margin: 6px 0 0; padding-left: 20px; }
.issue { font-size: .85rem; } .issue.fout { color: var(--bad); font-weight: 600; } .issue.waarschuwing { color: var(--warn); } .issue.info { color: var(--muted); }
.stats { display: flex; gap: 12px; flex-wrap: wrap; margin: 12px 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 18px; min-width: 120px; text-align: center; }
.stat b { display: block; font-size: 1.7rem; } .stat span { color: var(--muted); font-size: .85rem; }
.stat.ok b { color: var(--ok); } .stat.warn b { color: var(--warn); } .stat.fout b { color: var(--bad); }
.notes li { margin: 4px 0; }
.tabs { display: flex; gap: 6px; margin: 14px 0 0; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; border-radius: 10px 10px 0 0; text-decoration: none; background: #e8eaee; color: var(--text); font-weight: 600; }
.tabs a.on { background: #fff; border: 1px solid var(--line); border-bottom-color: #fff; }
.pdf-frame { width: 100%; height: calc(100vh - 220px); min-height: 520px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }

/* inloggen */
body.login { background: linear-gradient(160deg, #f6e3dc, #f4f5f7 60%); }
.login-main { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.pin-card { background: #fff; border-radius: 22px; padding: 28px 32px 34px; box-shadow: 0 14px 44px rgba(0,0,0,.14); text-align: center; width: min(92vw, 380px); }
.pin-card h1 { margin: 0; font-size: 1.8rem; }
.dots { display: flex; gap: 18px; justify-content: center; margin: 18px 0 20px; }
.dots i { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--accent); display: block; }
.dots i.on { background: var(--accent); }
.dots.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pad button { font: inherit; font-size: 1.9rem; font-weight: 700; min-height: 78px; border-radius: 18px; border: 1px solid var(--line); background: #f7f8fa; cursor: pointer; touch-action: manipulation; }
.pad button:active { background: #fbe9e3; transform: scale(.96); }

/* kassascherm */
body.pos-page .page { padding: 10px 14px; }
.pos-head { display: flex; align-items: center; gap: 12px 14px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 14px; flex-shrink: 0; }
.pos-head .field { flex-direction: row; align-items: center; gap: 8px; }
.pos-head .field, .pos-head .switch { margin: 0; }
.customer-btn { text-align: left; font: inherit; border: 2px solid var(--accent); background: #fff8f5; border-radius: 12px; padding: 8px 16px; min-width: 240px; min-height: 56px; cursor: pointer; display: flex; flex-direction: column; }
.customer-btn b { font-size: 1.1rem; }
.order-box { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 2px solid var(--accent); border-radius: 12px; overflow: hidden; }
.seg button { font: inherit; font-weight: 700; font-size: 1.02rem; border: 0; background: #fff; color: var(--accent); padding: 0 18px; min-height: 52px; cursor: pointer; touch-action: manipulation; }
.seg button + button { border-left: 2px solid var(--accent); }
.seg button.on { background: var(--accent); color: #fff; }
.phone-fields { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.phone-fields input.needs { border-color: var(--bad); background: #fdeceb; }
.when-at { display: inline-flex; gap: 6px; }
.when-at input { min-height: 44px; font: inherit; border: 1px solid var(--line); border-radius: 10px; padding: 0 8px; }
.customer-link { font: inherit; border: 0; background: none; cursor: pointer; padding: 4px 2px; color: var(--muted); }
.customer-link b { color: var(--text); font-weight: 600; }
.customer-link.on b { color: var(--accent); }
.more { align-self: center; } .more summary { cursor: pointer; font-weight: 600; padding: 8px; }
.more[open] { position: relative; } .more[open] > label { background: #fff; }
.save-state { color: var(--muted); font-size: .85rem; align-self: center; }
/* Op een tablet in landschap vult het kassascherm precies het scherm; links en rechts scrollen apart. */
body.pos-page { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
body.pos-page .topbar { flex-shrink: 0; position: static; }
body.pos-page main.page { flex: 1; min-height: 0; display: flex; flex-direction: column; width: 100%; max-width: none; }
.pos { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(360px, 1fr); gap: 14px; margin-top: 10px; flex: 1; min-height: 0; }
.pos-left, .pos-right { display: flex; flex-direction: column; min-height: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.pos-right h2 { margin: 0 0 8px; }
.pos-tools { display: flex; gap: 10px; } .pos-tools input { flex: 1; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; flex-shrink: 0; }
.chip { font: inherit; font-weight: 600; border: 1px solid var(--line); background: #f3f4f7; border-radius: 999px; padding: 8px 16px; white-space: nowrap; cursor: pointer; min-height: 40px; }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.tiles { overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 10px; align-content: start; grid-auto-rows: max-content; padding: 8px 6px 6px; flex: 1; }
.tile { position: relative; text-align: left; font: inherit; min-height: 98px; border: 2px solid var(--line); border-radius: 12px; background: #fff; padding: 10px; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; touch-action: manipulation; }
.tile:hover { border-color: #e2a592; } .tile:active { transform: scale(.97); background: #fbe9e3; }
.tile.free { background: #fff8ec; border-style: dashed; }
.tile .d { font-weight: 700; font-size: .92rem; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tile .m { font-size: .8rem; color: var(--muted); margin-top: 6px; display: flex; justify-content: space-between; gap: 6px; }
.tile .m .klant { color: var(--ok); font-weight: 700; }
.tile .m > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .m > span:last-child { white-space: nowrap; flex: none; }
.tile .qb { position: absolute; top: -9px; right: -7px; background: var(--accent); color: #fff; border-radius: 999px; min-width: 30px; height: 30px; padding: 0 8px; display: grid; place-items: center; font-weight: 800; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.tile.has { border-color: var(--accent); }
.tile.pic { padding: 0 0 8px; justify-content: flex-start; height: auto; }
.tile.pic .ti { display: block; flex: none; width: 100%; height: 112px; object-fit: cover; border-radius: 10px 10px 0 0; background: var(--line); pointer-events: none; }
.tile.pic .d { padding: 6px 8px 0; -webkit-line-clamp: 3; flex: none; }
.tile.pic .m { padding: 0 8px; margin-top: auto; }
.tile.pic .qb { z-index: 1; }
.photo-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.photo-row img { width: 160px; height: 120px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.photo-row .ph-empty { width: 160px; height: 120px; border-radius: 10px; border: 2px dashed var(--line); display: grid; place-items: center; color: var(--muted); font-size: .85rem; }
.bon { overflow: auto; flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 2px; }
.bon .empty { color: var(--muted); text-align: center; margin: 40px 10px; }
.line { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; }
.line .desc { font-weight: 700; line-height: 1.2; }
.line .desc .code { color: var(--muted); font-weight: 400; font-size: .8rem; display: block; }
.line .rm { font: inherit; border: 0; background: transparent; color: var(--bad); font-size: 1.3rem; cursor: pointer; width: 40px; height: 40px; border-radius: 8px; }
.line .rm:hover { background: #fdeceb; }
.line .ctrl { display: flex; align-items: center; gap: 8px; grid-column: 1 / -1; flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper button { font: inherit; font-size: 1.5rem; font-weight: 700; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: #f3f4f7; cursor: pointer; touch-action: manipulation; }
.stepper button:active { background: #fbe9e3; }
.stepper .q { font: inherit; font-size: 1.25rem; font-weight: 800; min-width: 74px; height: 48px; border-radius: 12px; border: 2px solid var(--accent); background: #fff; cursor: pointer; }
.line .unit { color: var(--muted); }
.line .price { margin-left: auto; text-align: right; font-variant-numeric: tabular-nums; }
.line .price small { color: var(--ok); font-weight: 700; display: block; font-size: .72rem; }
.line .free-edit { grid-column: 1 / -1; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 6px; }
.line .free-edit input, .line .free-edit select { font: inherit; padding: 8px; border: 1px solid #b9c0ca; border-radius: 8px; min-height: 42px; min-width: 0; }
.line.warn-line { border-color: var(--warn); background: #fffaf0; }
.bon-foot { border-top: 1px solid var(--line); padding-top: 8px; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.bon-foot .totals { margin: 0; min-width: 0; }
@media (max-width: 960px), (max-height: 600px) {
  body.pos-page { height: auto; overflow: auto; display: block; }
  body.pos-page .topbar { position: sticky; }
  .pos { grid-template-columns: 1fr; }
  .tiles { max-height: 46vh; min-height: 220px; }
  .bon { overflow: visible; }
}

/* vensters */
.modal { position: fixed; inset: 0; background: rgba(20,24,32,.55); display: grid; place-items: center; z-index: 50; padding: 12px; }
.modal[hidden] { display: none; }
.modal-box { background: #fff; border-radius: 18px; padding: 18px 20px; width: min(94vw, 560px); max-height: 90vh; display: flex; flex-direction: column; }
.modal-box.small-box { width: min(94vw, 340px); }
.confirm-box { width: min(94vw, 460px); }
.confirm-box .seg { display: flex; margin-bottom: 12px; }
.confirm-box .seg button { flex: 1; }
.cf-label { font-weight: 700; margin: 10px 0 6px; }
.pay-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.pay-buttons button { min-height: 58px; font-size: 1.15rem; font-weight: 700; border: 2px solid var(--line, #ccc); border-radius: 10px; background: #fff; cursor: pointer; }
.pay-buttons button.on { background: var(--accent, #1d6b3a); color: #fff; border-color: var(--accent, #1d6b3a); }
.pay-buttons.needs { outline: 3px solid var(--bad); border-radius: 10px; }
.confirm-box .actions { display: flex; gap: 8px; justify-content: flex-end; }
.confirm-box input.needs { border-color: var(--bad); outline: 2px solid var(--bad); }
.missing-box { width: min(94vw, 420px); border-top: 6px solid var(--bad); }
.missing-box p { margin: 0 0 6px; }
.missing-list { margin: 4px 0 14px; padding-left: 1.2em; font-weight: 700; font-size: 1.1rem; line-height: 1.6; color: var(--bad); }
@keyframes flag-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(200, 40, 30, 0); } 50% { box-shadow: 0 0 0 5px rgba(200, 40, 30, .45); } }
.flag { outline: 3px solid var(--bad) !important; outline-offset: 2px; border-radius: 10px; animation: flag-pulse .9s ease-in-out 4; }
.modal-box h2 { margin: 0 0 10px; }
.modal .list { overflow: auto; margin: 10px 0; display: flex; flex-direction: column; gap: 6px; min-height: 120px; }
.modal .list button { text-align: left; font: inherit; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; min-height: 56px; }
.modal .list button:hover { background: #fbe9e3; } .modal .list button small { color: var(--muted); display: block; }
#cq { width: 100%; }
.qty-display { font-size: 2.4rem; font-weight: 800; text-align: center; border: 2px solid var(--accent); border-radius: 14px; padding: 8px; margin: 6px 0 12px; min-height: 66px; font-variant-numeric: tabular-nums; }
.numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.numpad button { font: inherit; font-size: 1.7rem; font-weight: 700; min-height: 68px; border-radius: 14px; border: 1px solid var(--line); background: #f7f8fa; cursor: pointer; touch-action: manipulation; }
.numpad button:active { background: #fbe9e3; }
.modal .actions { justify-content: flex-end; }
.picker { position: relative; }
.picker-list { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.14); max-height: 280px; overflow: auto; z-index: 10; }
.picker-list button { display: block; width: 100%; text-align: left; font: inherit; font-weight: 400; padding: 10px 12px; border: 0; border-bottom: 1px solid #eceff3; background: #fff; cursor: pointer; }
.picker-list button:hover { background: #fbe9e3; }

/* Extra ergonomie voor telefoons en tablets in staand formaat. */
@media (max-width: 700px) {
  html { font-size: 16px; }
  .topbar { gap: 8px; padding: 8px 10px; align-items: flex-start; }
  .brand { padding: 8px 4px; }
  .topbar nav { order: 3; flex-basis: 100%; gap: 4px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .topbar nav a, .menu summary { white-space: nowrap; padding: 9px 11px; }
  .menu > div { position: fixed; top: auto; left: 10px; right: 10px; min-width: 0; }
  .who { margin-left: auto; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
  .who .name { display: none; }
  .page { padding: 12px 10px; }
  .card { padding: 12px; }
  .quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .quick > *, .quick form { min-width: 0; }
  .quick .btn { width: 100%; }
  .filters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .filters .grow { grid-column: 1 / -1; }
  .filters .btn { width: 100%; }
  .table { min-width: 680px; }
  .head-row { align-items: stretch; }
  .head-row > form, .head-row > form .btn { width: 100%; }
  .pos-head { padding: 8px; gap: 8px; }
  .customer-btn { min-width: 0; flex: 1 1 100%; }
  .pos-tools { flex-wrap: wrap; }
  .pos-tools input { min-width: 100%; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 8px 2px; }
  .tile { min-height: 90px; padding: 9px; }
  .line .free-edit { grid-template-columns: 1fr 1fr; }
  .bon-foot { align-items: stretch; }
  .bon-foot .actions, .bon-foot .actions .btn { width: 100%; }
  .pin-card { padding: 24px 20px; }
  .pad { gap: 9px; }
  .pad button { min-height: 68px; }
}

/* Duidelijke focus voor toetsenbordbediening en externe toetsenborden. */
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #1769aa;
  outline-offset: 2px;
}

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#f-pay.needs { border-color: var(--accent); background: #fff8f5; }
fieldset.choices .check { display: inline-flex; margin-right: 18px; }
