/* Hotelsysteem Hotel het Anker – rustige, duidelijke opmaak met grote knoppen */
:root {
  /* Huisstijl Hotel het Anker: zwart, goud en wit */
  --bg: #f6f5f1; --card: #ffffff; --ink: #161616; --quiet: #6b665c; --line: #e7e2d8; --line-strong: #d9d3c6;
  --navy: #111111; --navy-2: #262626; --navy-ink: #d9d3c5;
  --gold: #c9a24a; --gold-2: #e2c47a;
  --accent: #9a7425; --accent-2: #7d5d1a; --accent-bg: #f6efdc;
  --ok: #18794e; --ok-bg: #e3f5ec; --warn: #a15c07; --warn-bg: #fdf0db; --err: #c0262d; --err-bg: #fde8e8;
  --radius: 14px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 18, 12, .06), 0 4px 16px rgba(20, 18, 12, .05);
  --shadow-lg: 0 10px 30px rgba(20, 18, 12, .12);
}
* { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.65rem; line-height: 1.25; margin: 0 0 20px; font-weight: 700; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
h2 { font-size: 1.05rem; margin: 0 0 14px; font-weight: 650; letter-spacing: -.01em; }
small { font-size: .7em; font-weight: 500; color: var(--quiet); }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- App-indeling: zijbalk + inhoud ---------- */
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: var(--navy); color: var(--navy-ink); display: flex; flex-direction: column; padding: 20px 14px; position: sticky; top: 0; height: 100vh; }
.side .logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.05rem; padding: 4px 10px 22px; letter-spacing: -.01em; }
.side .logo:hover { text-decoration: none; }
.side .logo .mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #d8b45c, #a07c2c); display: grid; place-items: center; }
.side .logo .mark svg { width: 20px; height: 20px; stroke: #111; }
.side .logo small { display: block; color: var(--navy-ink); font-weight: 500; font-size: .72rem; opacity: .8; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--navy-ink); font-weight: 500; }
.side nav a:hover { background: var(--navy-2); color: #fff; text-decoration: none; }
.side nav a.active { background: var(--gold); color: #111; font-weight: 650; }
.side nav a.active svg { stroke: var(--accent); }
.side .foot { margin-top: auto; border-top: 1px solid rgba(255, 255, 255, .1); padding: 14px 10px 0; font-size: .88rem; }
.side .foot .who { color: #fff; font-weight: 600; }
.side .foot .role { color: var(--navy-ink); font-size: .8rem; margin-bottom: 10px; }
.side .foot .links { display: flex; gap: 14px; flex-wrap: wrap; }
.side .foot button, .side .foot a { background: none; border: 0; padding: 0; color: var(--navy-ink); font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.side .foot button:hover, .side .foot a:hover { color: #fff; text-decoration: none; }
.side .foot svg { width: 16px; height: 16px; }

.content { min-width: 0; display: flex; flex-direction: column; }
.bar { display: flex; align-items: center; gap: 12px; padding: 14px 32px; background: rgba(243, 245, 248, .85); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); }
.search { flex: 1; max-width: 520px; position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--quiet); width: 18px; height: 18px; }
.search input { width: 100%; padding-left: 42px; border-radius: 999px; background: var(--card); }
main { padding: 28px 32px 64px; width: 100%; max-width: 1440px; }
main.narrow { max-width: 440px; margin: 0 auto; padding-top: 0; }

/* ---------- Inlogscherm ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(1200px 600px at 20% -10%, #4a3a14 0%, transparent 60%), var(--navy); }
.login-card { width: 100%; max-width: 420px; background: var(--card); border-radius: 20px; padding: 32px; box-shadow: var(--shadow-lg); }
.login-card .logo { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; font-weight: 700; font-size: 1.2rem; }
.login-card .logo .mark { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #d8b45c, #a07c2c); display: grid; place-items: center; }
.login-card .logo .mark svg { stroke: #111; width: 24px; height: 24px; }
.login-card .btn.primary { width: 100%; justify-content: center; }
.login-card .hint { margin: 16px 0 0; }

/* ---------- Knoppen en velden ---------- */
.btn, button.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); font: inherit; font-weight: 550; text-decoration: none; cursor: pointer; min-height: 44px; transition: background .12s, border-color .12s, box-shadow .12s; }
.btn:hover { border-color: var(--accent); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(154, 116, 37, .3); }
.btn.primary:hover { background: var(--accent-2); }
.btn.danger { color: var(--err); border-color: #f2c4c6; }
.btn.danger:hover { background: var(--err-bg); border-color: var(--err); }
.btn.small { padding: 6px 12px; min-height: 36px; font-size: .9rem; }
.btn.chip { border-radius: 999px; }
.btn.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
button:disabled { opacity: .6; cursor: wait; }
button.link { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; padding: 4px; }
form.inline { display: inline; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 16px; }
.actions .spacer { flex: 1; }
.card .actions { margin: 16px 0 0; }

input, select, textarea { font: inherit; color: var(--ink); padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; min-height: 44px; transition: border-color .12s, box-shadow .12s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(29, 111, 216, .15); }
textarea { min-height: 84px; width: 100%; resize: vertical; }
.form label, label.form { display: block; margin-bottom: 14px; font-weight: 600; font-size: .92rem; }
.form label input, .form label select, .form label textarea, label.form input, label.form textarea { display: block; width: 100%; margin-top: 6px; font-weight: 400; font-size: 1rem; }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.form h2 { margin-top: 8px; }
.hint { color: var(--quiet); font-size: .88rem; font-weight: 400; }

/* ---------- Kaarten, tegels, tabellen ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; box-shadow: var(--shadow); }
.card > h2:first-child { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 20px; }
.grid2 > .card { margin-bottom: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 24px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; color: var(--ink); box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; transition: transform .12s, box-shadow .12s; }
a.tile:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.tile .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-bg); color: var(--accent); flex: none; }
.tile .ic.green { background: var(--ok-bg); color: var(--ok); }
.tile .ic.orange { background: var(--warn-bg); color: var(--warn); }
.tile .ic.navy { background: #ecebe7; color: var(--navy); }
.tile .ic.purple { background: #efe9fb; color: #6b46c1; }
.tile .label { color: var(--quiet); font-size: .88rem; }
.tile .num { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .8rem; color: var(--quiet); font-weight: 600; }
td.num, th.num { text-align: right; white-space: nowrap; }
tr:last-child td, tr:last-child th { border-bottom: 0; }
.card table tr:hover td { background: #fbfaf7; }
.empty { color: var(--quiet); padding: 18px 0; text-align: center; }
.kv th { width: 40%; font-size: .88rem; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: #f0eee9; color: var(--quiet); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.bevestigd { background: var(--accent-bg); color: var(--accent); }
.badge.ingecheckt, .badge.schoon { background: var(--ok-bg); color: var(--ok); }
.badge.uitgecheckt { background: #f0eee9; color: var(--quiet); }
.badge.geannuleerd, .badge.noshow, .badge.onderhoud { background: var(--err-bg); color: var(--err); }
.badge.vuil, .badge.pending { background: var(--warn-bg); color: var(--warn); }

.flash { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; background: var(--ok-bg); color: var(--ok); font-weight: 500; }
.flash.err { background: var(--err-bg); color: var(--err); }
.flash.warn { background: var(--warn-bg); color: var(--warn); }
.banner { margin: 16px 32px 0; }
.warn-text { color: var(--warn); }

/* Kleine lijst met kamer + naam (Vandaag) */
.list-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.room-pill { min-width: 44px; height: 44px; padding: 0 8px; border-radius: 12px; background: #f0ede6; color: var(--navy); font-weight: 700; display: grid; place-items: center; flex: none; }
.list-row .main { flex: 1; min-width: 0; }
.list-row .main a, .list-row .main strong { font-weight: 600; color: var(--ink); }

/* ---------- Synchronisatiestatus ---------- */
.syncstatus { margin-left: auto; font-size: .85rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.syncstatus:hover { text-decoration: none; filter: brightness(.97); }
.syncstatus::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(255, 255, 255, .6); }
.syncstatus.ok { background: var(--ok-bg); color: var(--ok); }
.syncstatus.busy { background: var(--accent-bg); color: var(--accent); }
.syncstatus.busy::before { animation: pulse 1s infinite; }
.syncstatus.off { background: var(--warn-bg); color: var(--warn); }
.syncstatus.err { background: var(--err-bg); color: var(--err); }
@keyframes pulse { 50% { opacity: .3; } }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 20px 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 100; max-width: 90vw; display: flex; align-items: center; gap: 10px; font-weight: 500; animation: rise .2s ease-out; }
.toast::before { content: "✓"; width: 22px; height: 22px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; font-size: .8rem; }
.toast.err::before { content: "!"; background: var(--err); }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 8px); } }

/* ---------- Planning ---------- */
.planning-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.planning { border-collapse: separate; border-spacing: 0; min-width: 900px; }
.planning th, .planning td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 0; height: 46px; min-width: 62px; font-size: .84rem; text-align: center; }
.planning tr:hover td { background: transparent; }
.planning th { height: 52px; line-height: 1.25; color: var(--quiet); font-weight: 600; background: #fbfaf7; }
.planning th b { display: block; color: var(--ink); font-size: .95rem; }
.planning th.room, .planning td.room { position: sticky; left: 0; background: var(--card); text-align: left; padding: 0 14px; min-width: 180px; z-index: 1; box-shadow: 1px 0 0 var(--line); }
.planning td.room strong { display: inline-block; min-width: 28px; }
.planning th.today { background: var(--accent-bg); color: var(--accent); }
.planning th.today b { color: var(--accent); }
.planning th.weekend { background: #f4f2ed; }
.planning td a.free { display: block; height: 46px; }
.planning td a.free:hover { background: var(--accent-bg); }
.planning td a.free:hover::after { content: "+"; line-height: 46px; color: var(--accent); font-weight: 700; }
.planning td.booked { padding: 4px 3px; }
.planning td.booked a { display: block; height: 36px; line-height: 36px; border-radius: 8px; background: #f1e6cc; color: #10498f; text-decoration: none; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 0 10px; font-weight: 600; border-left: 4px solid var(--accent); text-align: left; }
.planning td.booked.ingecheckt a { background: #d5f0e2; color: #0f5a39; border-left-color: var(--ok); }
.planning td.booked.uitgecheckt a { background: #eeebe4; color: var(--quiet); border-left-color: #b5ae9f; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }

.nights td input[type=number] { width: 84px; }
.total-row th, .total-row td { font-size: 1.05rem; color: var(--ink); }
.big { font-size: 1.2rem; font-weight: 700; }
.print-only { display: none; }

/* ---------- Kassa ---------- */
.kassa { display: grid; grid-template-columns: 1fr 420px; gap: 20px; align-items: start; }
.cats { position: sticky; top: 72px; z-index: 2; background: var(--bg); padding: 4px 0 12px; margin: 0; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 24px; }
.product { --c: var(--accent); min-height: 96px; border: 1px solid var(--line); border-top: 4px solid var(--c); background: var(--card); border-radius: var(--radius); font: inherit; color: var(--ink); cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 6px; padding: 14px; box-shadow: var(--shadow); text-align: left; transition: transform .08s, box-shadow .12s; }
.product:hover { box-shadow: var(--shadow-lg); }
.product:active { transform: scale(.97); background: var(--accent-bg); }
.product span { font-weight: 650; }
.product small { font-size: .95rem; color: var(--quiet); font-weight: 600; }
.product.c0 { --c: #9a7425; } .product.c1 { --c: #18794e; } .product.c2 { --c: #c2410c; } .product.c3 { --c: #7c3aed; }
.product.c4 { --c: #b91c5c; } .product.c5 { --c: #0e7490; } .product.c6 { --c: #a16207; } .product.c7 { --c: #475569; }
.kassa-bon { position: sticky; top: 84px; }
.kassa-bon .bon-lines { max-height: 42vh; overflow-y: auto; margin: 0 -8px; }
.kassa-bon td { padding: 9px 8px; }
.kassa-bon td.qty { white-space: nowrap; text-align: center; width: 120px; }
.kassa-bon td.qty .btn { min-height: 32px; width: 32px; padding: 0; justify-content: center; }
.bon-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-top: 2px solid var(--ink); margin-top: 8px; font-weight: 700; }
.bon-total .big { font-size: 1.8rem; letter-spacing: -.02em; }
.pay-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 12px; }
.pay-buttons .btn { min-height: 60px; justify-content: center; font-size: 1.1rem; }
.room-select { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 12px; }
.open-bons { display: flex; gap: 8px; flex-wrap: wrap; }
.open-bons .btn { border-style: dashed; }

/* ---------- Beheerpagina's (server) ---------- */
.top { display: flex; gap: 16px; align-items: center; padding: 14px 32px; background: var(--navy); color: #fff; }
.top .brand { color: #fff; font-weight: 700; }
.top .hint { color: var(--navy-ink); }
.menu { display: flex; gap: 4px; align-items: center; padding: 10px 32px; background: var(--card); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.menu a { padding: 8px 14px; border-radius: var(--radius-sm); color: var(--ink); font-weight: 500; }
.menu a.active, .menu a:hover { background: var(--accent-bg); color: var(--accent); text-decoration: none; }
.menu .spacer { flex: 1; }
.menu .who { color: var(--quiet); font-size: .9rem; }
body.bare main { max-width: 480px; margin: 0 auto; padding-top: 64px; }
.narrow-card { max-width: 480px; }

/* ---------- Kleine schermen ---------- */
@media (max-width: 1000px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: sticky; top: 0; height: auto; z-index: 10; flex-direction: row; align-items: center; padding: 8px 12px; gap: 8px; overflow-x: auto; }
  .side .logo { padding: 0 6px 0 0; }
  .side .logo span, .side .logo small { display: none; }
  .side nav { flex-direction: row; gap: 2px; }
  .side nav a { padding: 8px 10px; white-space: nowrap; }
  .side .foot { margin: 0 0 0 auto; border: 0; padding: 0; display: flex; gap: 10px; align-items: center; }
  .side .foot .who, .side .foot .role { display: none; }
  .bar { position: static; padding: 12px 16px; flex-wrap: wrap; }
  main { padding: 20px 16px 48px; }
  .banner { margin: 12px 16px 0; }
  .kassa { grid-template-columns: 1fr; }
  .kassa-bon, .cats { position: static; }
}
@media (max-width: 640px) {
  .side nav a span { display: none; }
  .grid2 { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { padding: 14px; gap: 10px; }
  .tile .ic { width: 36px; height: 36px; }
  .tile .num { font-size: 1.3rem; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  h1 { font-size: 1.35rem; }
  .card { padding: 16px; }
}

/* ---------- Printen ---------- */
@media print {
  .side, .bar, .top, .menu, .actions, .no-print, .flash, .syncstatus, #banner, .toast { display: none !important; }
  .shell { display: block; }
  .print-only { display: block; }
  body { background: #fff; }
  main { padding: 0; max-width: none; }
  .card { border: 0; padding: 0; box-shadow: none; }
  th, td { padding: 6px 4px; }
}
.legend i.lg-bev { background: #f1e6cc; border-left: 4px solid var(--accent); }
.legend i.lg-in { background: #d5f0e2; border-left: 4px solid var(--ok); }
.legend i.lg-uit { background: #eeebe4; border-left: 4px solid #b5ae9f; }
.card h2 .badge::before { display: none; }
.grid2 { align-items: start; }
.planning td.room, .planning th.room { white-space: nowrap; max-width: 240px; min-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.planning td.room strong { display: inline-grid; place-items: center; min-width: 30px; height: 26px; border-radius: 7px; background: #f0ede6; margin-right: 8px; font-size: .85rem; }
.planning td.room .hint { font-size: .8rem; }
.kassa-bon td.qty .btn { min-height: 36px; width: 36px; font-size: 1.1rem; }
.kassa-bon td.qty strong { display: inline-block; min-width: 24px; }
.product { min-height: 110px; }
.product span { font-size: 1.05rem; }
.grid2 { margin-bottom: 20px; }
@media (max-width: 640px) { .bar .btn.primary { flex: 1; justify-content: center; } .bar .syncstatus { margin-left: 0; } }
body.admin .card { overflow-x: auto; }
.card td > input:not([type=checkbox]), .card td > select { width: 100%; min-width: 72px; }
.card td > input[type=number] { max-width: 100px; }

/* Waarschuwing voor problemen met kanaalboekingen */
.alert { background: var(--err-bg); color: var(--err); border: 1px solid currentColor; border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; display: grid; gap: 6px; }
.alert .btn { justify-self: start; margin-top: 6px; }

/* Factuur */
.pre { white-space: pre-line; }
.invoice { max-width: 820px; padding: 40px; }
.invoice h1 { margin: 0 0 6px; font-size: 1.5rem; }
.invoice h2 { margin: 0 0 8px; font-size: 1.2rem; }
.inv-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; color: var(--quiet); }
.inv-head h1, .inv-head h2 { color: var(--text, #14213d); }
.inv-meta .kv th { padding-right: 16px; }
.inv-to { margin-bottom: 24px; }
.inv-lines, .inv-vat { width: 100%; margin-bottom: 20px; }
.inv-vat { max-width: 460px; margin-left: auto; font-size: .9rem; }
.inv-foot { margin-top: 28px; padding-top: 12px; border-top: 1px solid #e7e2d8; color: var(--quiet); font-size: .85rem; }
@media print {
  .invoice { max-width: none; padding: 0; }
  .content, #view { padding: 0 !important; margin: 0 !important; }
}

/* Koppelingen */
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: #f0eee9; padding: 2px 6px; border-radius: 6px; }
code.secret { display: inline-block; padding: 10px 14px; font-size: 1rem; word-break: break-all; user-select: all; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
label.check input { width: auto; }

/* Bestellingen uit de gastenapp in de kassa */
.guest-orders { border: 2px solid var(--accent); }
.guest-orders .order { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 12px 0; border-top: 1px solid #e7e2d8; }
.guest-orders .order:first-of-type { border-top: 0; }
.guest-orders .note { color: var(--warn); font-weight: 600; }
.nav-count { margin-left: auto; background: var(--err, #c0392b); color: #fff; border-radius: 999px; font-size: .75rem; font-weight: 700; padding: 1px 8px; }

/* Kassa: tafeloverzicht */
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.page-head h1 { margin: 0; }
.page-head .actions { margin: 0; }
.chip-count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); font-size: .8rem; font-weight: 700; text-align: center; }
.btn.chip.on .chip-count { background: rgba(255, 255, 255, .2); color: #fff; }
.table-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-bottom: 28px; }
.table-tile { min-height: 112px; display: flex; flex-direction: column; justify-content: space-between; gap: 4px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); border-left: 5px solid var(--ok); background: var(--card); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .08s, box-shadow .12s; }
.table-tile:hover { box-shadow: var(--shadow-lg); }
.table-tile:active { transform: scale(.97); }
.table-tile .t-name { font-weight: 700; font-size: 1.1rem; }
.table-tile .t-total { font-size: 1.35rem; font-weight: 750; letter-spacing: -.01em; }
.table-tile .t-meta { color: var(--quiet); font-size: .85rem; }
.table-tile.busy { border-left-color: var(--warn); background: var(--warn-bg); }
.table-tile.busy.loose { border-left-color: var(--accent); background: var(--accent-bg); }
.product[disabled] { opacity: .45; cursor: not-allowed; }
select.small { min-height: 36px; padding: 6px 10px; font-size: .9rem; }
.big-amount { font-size: 2.4rem; font-weight: 750; letter-spacing: -.02em; margin: 4px 0 8px; }
#vg-pay input { max-width: 140px; }

/* Planning: slaapzaal en parkeergarage */
.planning tr.group th { height: 40px; background: #f0ede6; color: var(--ink); font-weight: 700; border-top: 2px solid var(--line-strong); }
.planning tr.group th.room { background: #f0ede6; }
.planning tr.group th.count { font-size: .8rem; color: var(--quiet); }
.planning tr.group th.count.full { color: var(--err); background: var(--err-bg); }
.planning tr.bed td { height: 34px; }
.planning tr.bed td.room { font-size: .84rem; }

/* Parkeren */
.table-tile.spot { min-height: 128px; }
.table-tile.spot .t-who { font-weight: 650; }
.table-tile.spot.geparkeerd { border-left-color: var(--ok); background: var(--ok-bg); }
.table-tile.spot.gereserveerd { border-left-color: var(--accent); background: var(--accent-bg); }
.table-tile.spot.vertrokken { border-left-color: var(--line-strong); background: #f5f3ee; }
.table-tile .badge { align-self: flex-start; }
.occ { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.occ-day { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); border: 1px solid var(--line); }
.occ-day:hover { background: var(--accent-bg); }
.occ-day.full { border-color: var(--err); background: var(--err-bg); }
.occ-day small { color: var(--quiet); font-size: .75rem; }
.occ-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; max-width: 48px; }
.occ-dots i { width: 8px; height: 8px; border-radius: 2px; background: var(--line-strong); }
.occ-dots i.on { background: var(--accent); }
.occ-day.full .occ-dots i.on { background: var(--err); }

/* Telefoon: balk onderin en menu "Meer" */
.tabbar, .bon-jump { display: none; }
.sheet[hidden] { display: none; }
@media (max-width: 640px) {
  .side { display: none; }
  .content { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: var(--navy); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(20, 18, 12, .18); }
  .tabbar a, .tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px;
    color: var(--navy-ink); background: none; border: 0; border-radius: 10px; font: inherit; font-size: .72rem; font-weight: 600; text-decoration: none; cursor: pointer; }
  .tabbar .i { width: 22px; height: 22px; }
  .tabbar a.active { background: rgba(201, 162, 74, .18); color: var(--gold-2); }
  .tabbar .nav-count { position: absolute; top: 2px; right: calc(50% - 22px); margin: 0; padding: 0 6px; font-size: .7rem; }
  .sheet { position: fixed; inset: 0; z-index: 30; background: rgba(10, 20, 35, .45); display: flex; align-items: flex-end; }
  .sheet-panel { width: 100%; background: var(--card); border-radius: 18px 18px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); max-height: 85vh; overflow-y: auto; }
  .sheet-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
  .sheet-head .btn { margin-left: auto; }
  .sheet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .sheet-grid a, .sheet-grid button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 84px; padding: 10px 6px;
    border: 1px solid var(--line); border-radius: 14px; background: #faf8f4; color: var(--ink); font: inherit; font-size: .85rem; font-weight: 600; text-decoration: none; text-align: center; cursor: pointer; }
  .sheet-grid a.active { border-color: var(--accent); background: var(--accent-bg); color: var(--accent); }
  .sheet-grid .i { width: 24px; height: 24px; }
  .bar { gap: 8px; }
  .bar .syncstatus { order: -1; flex-basis: 100%; }
  .bar .search { order: 0; flex: 1 1 0; min-width: 0; max-width: none; }
  .bar .btn.primary { flex: 0 0 auto; width: 48px; padding: 0; justify-content: center; }
  .bar .btn.primary .lbl { display: none; }
}
/* Kassa op een smal scherm: knop naar de bon (die staat onder de producten) */
@media (max-width: 1000px) {
  .bon-jump { display: flex; position: sticky; bottom: 12px; z-index: 5; width: 100%; justify-content: space-between; align-items: center; margin: 8px 0 16px;
    padding: 14px 18px; border: 0; border-radius: 14px; background: var(--navy); color: #fff; font: inherit; font-weight: 700; box-shadow: var(--shadow-lg); cursor: pointer; }
}
@media (max-width: 640px) { .bon-jump { bottom: calc(80px + env(safe-area-inset-bottom)); } }

/* Losse regel op de kamerrekening */
.extra-line { margin-top: 14px; }
.extra-line summary { cursor: pointer; color: var(--accent); font-weight: 600; padding: 6px 0; }

/* Extra's en aanbetaling */
.w-money { width: 6.5em; }
.w-num { width: 4.5em; }
.deposit-state { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.item-form .row { align-items: end; }
.paytext { width: 100%; min-height: 7rem; font: inherit; }

/* Plaatjes bij kassaproducten */
.prod-img-cell { display: flex; gap: 6px; align-items: center; }
.prod-img-cell form { margin: 0; }
.prod-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.file-btn { position: relative; overflow: hidden; }
.file-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.product.has-img { padding: 0; overflow: hidden; justify-content: flex-start; }
.product.has-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--accent-bg); }
.product.has-img span, .product.has-img small { padding: 0 12px; }
.product.has-img small { padding-bottom: 10px; margin-top: auto; }
.row-warn td { background: var(--warn-bg); }
.card.highlight { outline: 3px solid var(--gold); }
.reg-row { align-items: end; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 8px; }
.form label.check { flex-direction: row; align-items: center; gap: 6px; }
.table-scroll { overflow-x: auto; }
.price-cal td, .price-cal th { white-space: nowrap; }
.price-cal tr.weekend td { background: var(--accent-bg); }
.src { display: inline-block; margin-left: 4px; font-size: .72rem; padding: 1px 6px; border-radius: 99px; background: var(--line); color: var(--ink); font-weight: 600; }
.src.auto { background: var(--gold); color: #111; }
.weekday-checks { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 6px 0; }
.nowrap { white-space: nowrap; }
.form input.w-money, .form td input.w-money { width: 6.5em; min-width: 0; }
.form input.w-num, .form td input.w-num { width: 4.5em; min-width: 0; }
.form td select { width: auto; }
.mail-preview { white-space: pre-wrap; background: var(--bg); padding: 10px; border-radius: 8px; margin-top: 6px; max-width: 60ch; }
