/* Kerstdorp Izegem — bestuurdersportaal / installer */
:root {
  --night: #0c1b2a; --night-2: #142a3d; --pine: #0f3d2e; --pine-2: #2f7d5b; --red: #c62f2f; --gold: #f2b84b;
  --cream: #fbf5ea; --bg: #f4f1ea; --card: #fff; --line: #e7e1d4; --ink: #1d1d1d; --muted: #746d60;
  --ok: #2f7d5b; --warn: #b77900; --bad: #c62f2f; --radius: 14px;
  --f: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif; --fd: "Fraunces", Georgia, serif;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 var(--f); color: var(--ink); background: var(--bg); }
a { color: var(--pine-2); }
h1, h2, h3 { font-family: var(--fd); line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: 1.9rem; } h2 { font-size: 1.35rem; } h3 { font-size: 1.1rem; }
code { background: #f1ece1; padding: 2px 6px; border-radius: 6px; }
.muted { color: var(--muted); }
small { font-size: .82em; }

/* Layout */
.adm { display: grid; grid-template-columns: 268px 1fr; min-height: 100vh; }
.side { background: var(--night); color: #dfe6ec; padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.side .logo { display: block; padding: 4px 8px 18px; }
.side .logo svg { width: 100%; height: auto; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: #dfe6ec; text-decoration: none; font-weight: 500; }
.side nav a:hover { background: rgba(255,255,255,.07); }
.side nav a.on { background: var(--gold); color: var(--night); font-weight: 700; }
.side nav a .ico { width: 20px; text-align: center; }
.side nav .sep { margin: 14px 12px 6px; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: #8da2b4; }
.side .me { margin-top: 18px; padding: 12px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.side .me a { color: var(--gold); }
.side .badge-n { margin-left: auto; background: var(--red); color: #fff; border-radius: 999px; font-size: .72rem; padding: 1px 7px; font-weight: 700; }
.main { padding: 26px 30px 60px; min-width: 0; }
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.topbar h1 { margin: 0; }
.btn.mtoggle { display: none; }
@media (max-width: 900px) {
  .adm { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 30; left: 0; top: 0; bottom: 0; width: 260px; transform: translateX(-100%); transition: transform .3s; }
  .side.open { transform: none; box-shadow: 0 0 60px rgba(0,0,0,.4); }
  .btn.mtoggle { display: inline-flex; }
  .main { padding: 18px 14px 60px; }
}

/* Componenten */
.card { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: 0 1px 0 var(--line), 0 8px 24px -18px rgba(0,0,0,.35); margin-bottom: 18px; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.kpi { background: var(--card); border-radius: var(--radius); padding: 18px 20px; box-shadow: 0 1px 0 var(--line), 0 8px 24px -18px rgba(0,0,0,.35); position: relative; overflow: hidden; }
.kpi small { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--muted); font-size: .72rem; }
.kpi b { display: block; font: 800 1.9rem/1.1 var(--fd); margin-top: 4px; }
.kpi .sub { font-size: .85rem; color: var(--muted); }
.kpi.dark { background: var(--night); color: #fff; } .kpi.dark small, .kpi.dark .sub { color: #9fb3c4; }
.kpi.red { background: var(--red); color: #fff; } .kpi.red small, .kpi.red .sub { color: #ffd9d6; }
.kpi.gold { background: var(--gold); }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 10px; border: 0; background: var(--pine); color: #fff; font: 700 .9rem var(--f); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { filter: brightness(1.1); }
.btn.red { background: var(--red); } .btn.gold { background: var(--gold); color: var(--night); } .btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.sm { padding: 5px 10px; font-size: .8rem; border-radius: 8px; }
.btn.big { padding: 13px 22px; font-size: 1rem; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.row-gap { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:hover td { background: #faf8f3; }
.tbl .num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tfoot td { font-weight: 800; border-top: 2px solid var(--ink); }
.scroll-x { overflow-x: auto; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: #eee; white-space: nowrap; }
.pill.ok { background: #dcf1e4; color: var(--ok); } .pill.warn { background: #fff0cc; color: var(--warn); } .pill.bad { background: #fde0dd; color: var(--bad); } .pill.blue { background: #dcecf8; color: #1d5c8c; } .pill.dark { background: var(--night); color: #fff; }
.note { padding: 12px 14px; border-radius: 10px; background: #fff3d6; margin: 10px 0; }
.note.ok { background: #dcf1e4; color: var(--pine); } .note.err { background: #fde0dd; color: var(--bad); } .note.warn { background: #fff0cc; }
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; font-weight: 700; background: #dcf1e4; color: var(--pine); }
.flash-err { background: #fde0dd; color: var(--bad); }

/* Formulieren */
.form label, label.f { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: .85rem; margin-bottom: 12px; }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea, label.f input, label.f select, label.f textarea, .inp {
  font: 500 .95rem var(--f); padding: 9px 11px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus, .inp:focus { outline: none; border-color: var(--pine-2); box-shadow: 0 0 0 3px rgba(47,125,91,.15); }
.form .radio, .chk { flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 500 !important; }
.form fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 4px; margin: 0 0 16px; }
.form legend { font-weight: 800; padding: 0 6px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 14px; }
@media (max-width: 700px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-bottom: 14px; }
.filters .inp { width: auto; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 14px; }

/* Kalender */
.calm { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.calm .dow { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; padding: 4px; }
.calm .d { background: #fff; border-radius: 10px; min-height: 108px; padding: 7px 8px; font-size: .78rem; border: 2px solid transparent; cursor: pointer; display: flex; flex-direction: column; gap: 3px; position: relative; }
.calm .d:hover { border-color: var(--gold); }
.calm .d.closed { background: #ece7dc; color: #9b9283; cursor: default; }
.calm .d.today { border-color: var(--red); }
.calm .d.sel { border-color: var(--pine); box-shadow: 0 0 0 3px rgba(47,125,91,.25); }
.calm .d .n { font: 800 1.05rem var(--fd); }
.calm .d .load { height: 6px; border-radius: 3px; background: #eee; overflow: hidden; }
.calm .d .load span { display: block; height: 100%; background: var(--pine-2); }
.calm .d .load.hi span { background: var(--warn); } .calm .d .load.full span { background: var(--bad); }
.calm .d .tag { border-radius: 6px; padding: 1px 6px; font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.calm .d .tag.ev { background: #fff0cc; } .calm .d .tag.rent { background: #dcecf8; color: #1d5c8c; } .calm .d .tag.rent.new { background: #fde0dd; color: var(--bad); }
.calm .d .free { color: var(--ok); font-weight: 700; }
.calm .empty { visibility: hidden; }
@media (max-width: 700px) { .calm .d { min-height: 70px; font-size: .7rem; } .calm .d .tag { display: none; } }
.daybar { position: relative; height: 34px; background: #eee; border-radius: 8px; margin: 8px 0 20px; }
.daybar .seg { position: absolute; top: 0; bottom: 0; border-radius: 8px; font-size: .72rem; color: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; white-space: nowrap; font-weight: 700; }
.daybar .open { background: var(--pine-2); opacity: .85; }
.daybar .rent { background: #1d5c8c; } .daybar .rent.new { background: var(--red); }
.daybar .ticks { position: absolute; left: 0; right: 0; top: 100%; display: flex; justify-content: space-between; font-size: .68rem; color: var(--muted); }

/* Planning */
.week { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: 8px; overflow-x: auto; }
.week .col { background: #fff; border-radius: 12px; padding: 10px; min-height: 220px; }
.week .col.closed { background: #ece7dc; }
.week .col h4 { margin: 0 0 8px; font: 800 .95rem var(--fd); display: flex; justify-content: space-between; align-items: center; }
.shift { border-radius: 9px; padding: 6px 8px; margin-bottom: 6px; color: #fff; font-size: .8rem; position: relative; }
.shift strong { display: block; }
.shift .x { position: absolute; top: 3px; right: 6px; color: #fff; opacity: .7; text-decoration: none; border: 0; background: none; cursor: pointer; font-size: 1rem; }
.shift.closer { box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--night); }
.closer-badge { background: var(--night); color: var(--gold); border-radius: 6px; padding: 1px 6px; font-size: .7rem; font-weight: 800; }
.no-closer { color: var(--bad); font-size: .75rem; font-weight: 700; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: middle; margin-right: 4px; }

/* Tafelschikking */
.seat-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 16px; }
@media (max-width: 1000px) { .seat-wrap { grid-template-columns: 1fr; } }
.floor { position: relative; height: 640px; background: #fff; border-radius: 14px; overflow: auto; background-image: radial-gradient(#e7e1d4 1px, transparent 1px); background-size: 20px 20px; border: 2px dashed var(--line); }
.floor .tb { position: absolute; width: 120px; height: 120px; border-radius: 50%; background: var(--cream); border: 3px solid var(--pine); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; cursor: grab; user-select: none; font-size: .78rem; padding: 6px; touch-action: none; }
.floor .tb.rect { border-radius: 14px; width: 140px; height: 100px; }
.floor .tb.full { border-color: var(--bad); background: #fde0dd; }
.floor .tb.over { box-shadow: 0 0 0 4px var(--gold); }
.floor .tb strong { font: 800 .95rem var(--fd); }
.floor .tb .cnt { font-weight: 800; }
.floor .tb .who { font-size: .68rem; line-height: 1.15; max-height: 34px; overflow: hidden; color: var(--muted); }
.floor .tb .del { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--bad); color: #fff; border: 0; cursor: pointer; display: none; font-size: .8rem; }
.floor .tb:hover .del { display: block; }
.resv { background: #fff; border-radius: 10px; padding: 8px 10px; margin-bottom: 6px; border-left: 4px solid var(--gold); cursor: grab; font-size: .85rem; }
.resv.assigned { border-left-color: var(--pine-2); opacity: .75; }
.resv small { display: block; color: var(--muted); }
.droplist { min-height: 80px; max-height: 560px; overflow: auto; }

/* Bars */
.bars { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding-top: 10px; }
.bars div { flex: 1; background: var(--pine-2); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.bars div:hover::after { content: attr(data-t); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--night); color: #fff; padding: 2px 6px; border-radius: 6px; font-size: .7rem; white-space: nowrap; }
.hbar { height: 10px; background: #eee; border-radius: 5px; overflow: hidden; min-width: 80px; }
.hbar span { display: block; height: 100%; background: var(--pine-2); }

/* Modals */
dialog { border: 0; border-radius: 16px; padding: 22px; width: min(560px, 94vw); box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
dialog::backdrop { background: rgba(12,27,42,.55); }

/* Login + installer */
body.login, body.install { background: radial-gradient(circle at 50% 0, #1d3a55, var(--night) 70%); min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card, .install-card { background: #fff; border-radius: 20px; padding: 32px; width: min(420px, 100%); box-shadow: 0 30px 80px -30px #000; }
.install-card { width: min(760px, 100%); }
.login-card svg, .install-logo { width: 240px; height: auto; display: block; margin: 0 auto 18px; }
.login-card .btn { width: 100%; justify-content: center; padding: 12px; }
.checks { list-style: none; padding: 0; columns: 2; font-size: .9rem; }
.checks .ok { color: var(--ok); } .checks .bad { color: var(--bad); font-weight: 700; }
.hidden { display: none !important; }
@media print { .side, .topbar .row-gap, .no-print { display: none !important; } .adm { display: block; } .main { padding: 0; } body { background: #fff; } .card { box-shadow: none; } }
.form label.chk, label.chk { display: block !important; font-weight: 500; }
label.chk input { margin: 0 6px 0 0; vertical-align: middle; }

/* Verhuur: offerte-traject */
.rent-flow { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 16px; flex-wrap: wrap; counter-reset: rf; }
.rent-flow li { counter-increment: rf; flex: 1 1 140px; padding: 10px 14px; border-radius: 10px; background: #eef1ee; color: #6b756f; font-weight: 600; font-size: .9rem; }
.rent-flow li::before { content: counter(rf) ". "; }
.rent-flow li.on { background: var(--night); color: #fff; }
.busy-list { margin: 10px 0 14px; line-height: 2; }

/* Prijslijst, stock en verkooplijsten */
.cat-row td { background: #f3efe6; font-weight: 800; color: var(--night); font-size: .9rem; letter-spacing: .02em; }
.sub-row td { font-weight: 700; color: #6b756f; border-bottom: 2px solid #e6e2d8; }
.pico { width: 36px; height: 36px; border-radius: 8px; padding: 3px; }
.pico svg { width: 100%; height: 100%; }
.price-in { width: 90px; text-align: right; font-weight: 800; padding: 6px 8px; border: 1px solid #d9d3c4; border-radius: 8px; font: inherit; }
.price-in:focus { border-color: var(--night); outline: 2px solid #f2b84b66; }
.sort-in { width: 54px; text-align: right; padding: 6px; border: 1px solid #e3ddcf; border-radius: 8px; font: inherit; color: #6b756f; }
.qty-in { width: 80px; text-align: right; padding: 7px 8px; border: 1px solid #d9d3c4; border-radius: 8px; font: inherit; font-weight: 700; }
.matrix th, .matrix td { padding: 6px 7px; white-space: nowrap; }
.matrix td:first-child { position: sticky; left: 0; background: #fff; z-index: 1; }
.matrix tr.cat-row td:first-child { background: #f3efe6; }
.sales-filter .row-gap { align-items: flex-end; }
.sales-filter label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: .85rem; }
.sales-filter input, .sales-filter select { padding: 8px 10px; border: 1px solid #d9d3c4; border-radius: 10px; font: inherit; }
.quick-dates { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
tr.voided td { opacity: .5; }
.print-only { display: none; }
@media print { .print-only { display: block; } th.print-only, td.print-only { display: table-cell; } .no-print, .side, .topbar .mtoggle, #topActions { display: none !important; } .price-in, .sort-in { border: 0; } }
@media (min-width: 1100px) { .grid.g2.wide-left { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); } }

/* Gebruikers */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.tpl { position: relative; cursor: pointer; }
.tpl input { position: absolute; opacity: 0; }
.tpl span { display: block; border: 2px solid #e3ddcf; border-radius: 14px; padding: 12px 14px; height: 100%; background: #fff; transition: border-color .15s, box-shadow .15s; }
.tpl span b { display: block; font-size: 1rem; }
.tpl span small { color: #6b756f; font-size: .82rem; }
.tpl input:checked + span { border-color: var(--night); box-shadow: 0 0 0 3px #f2b84b88; background: #fffaf0; }
.pw-row { display: flex; gap: 6px; } .pw-row input { flex: 1; }
.perm-group { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; padding: 8px 0; border-bottom: 1px dashed #e6e2d8; }
.perm-group strong { width: 100%; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: #6b756f; }
.nowrap { white-space: nowrap; }
.side nav a { padding: 7px 12px; }
.side nav .sep { margin: 10px 12px 4px; }
.side .logo svg { width: 118px; margin: 0 auto; display: block; }
.login-card svg, .install-logo { width: 150px; }

/* Functies aan/uit */
.feat-form h3 { margin: 22px 0 6px; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: #6b756f; font-family: inherit; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 14px; border: 1px solid #e6e2d8; border-radius: 14px; margin-bottom: 8px; cursor: pointer; background: #fff; }
.switch-row:hover { border-color: #cfc7b5; }
.switch-row .sw-text { display: grid; gap: 2px; }
.switch-row small { color: #6b756f; font-weight: 400; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch { flex-shrink: 0; width: 50px; height: 28px; border-radius: 999px; background: #d6d2c8; position: relative; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.switch-row input:checked + .switch { background: var(--ok, #2f7d5b); }
.switch-row input:checked + .switch::after { transform: translateX(22px); }
.switch-row.danger input:checked + .switch { background: var(--bad, #c62f2f); }
.switch-row input:focus-visible + .switch { outline: 3px solid #f2b84b; }

/* Pauzes & uren */
.brk-list { display: grid; gap: 10px; }
.brk { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 12px 14px; border: 1px solid #e6e2d8; border-radius: 14px; background: #fff; }
.brk-who { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; }
.brk-who small { grid-column: 2; color: #6b756f; }
.brk-tot { text-align: right; } .brk-tot b { display: block; font-size: 1.3rem; } .brk-tot small { color: #6b756f; }
.brk-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 700px) { .brk { grid-template-columns: 1fr auto; } .brk-btns { grid-column: 1 / -1; justify-content: flex-start; } }
.form .switch-row, .switch-row { flex-direction: row !important; align-items: center !important; text-align: left; }
.switch-row .sw-text { flex: 1; justify-items: start; }
.logo-prev { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.logo-prev span { display: grid; place-items: center; height: 110px; border-radius: 12px; padding: 12px; background-image: linear-gradient(45deg, rgba(0,0,0,.06) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.06) 75%), linear-gradient(45deg, rgba(0,0,0,.06) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.06) 75%); background-size: 16px 16px; background-position: 0 0, 8px 8px; }
.logo-prev .lp-light { background-color: #fbf5ea; }
.logo-prev .lp-dark { background-color: #0c1b2a; }
.logo-prev img { max-width: 100%; max-height: 86px; object-fit: contain; }
.logo-prev span.chosen { outline: 3px solid #f2b84b; outline-offset: 2px; }

/* Onthaal eetavond */
.desk-grid { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1000px) { .desk-grid { grid-template-columns: 1fr; } }
.desk-new { position: sticky; top: 14px; }
.desk-new details summary { cursor: pointer; color: var(--muted); font-weight: 700; font-size: .9rem; margin: 6px 0; }
.stepper { display: flex; gap: 6px; align-items: center; }
.stepper input { text-align: center; font-weight: 800; font-size: 1.1rem; min-width: 0; }
.stepper .btn { padding: 8px 14px; font-size: 1.1rem; }
.desk-total { font-size: 1.05rem; margin: 10px 0; } .desk-total b { font: 800 1.6rem/1 var(--fd); margin-left: 6px; }
.desk-pay { display: grid; grid-template-columns: 1fr; gap: 8px; }
.desk-pay .btn { width: 100%; justify-content: center; }
.btn.blue { background: #1d5c8c; color: #fff; border-color: #1d5c8c; }
.arr-btn { width: 38px; height: 38px; border-radius: 10px; border: 2px solid var(--line); background: #fff; font-size: 1.2rem; font-weight: 800; color: #fff; cursor: pointer; }
.arr-btn:hover { border-color: var(--ok); }
.desk-tbl tr.in .arr-btn { background: var(--ok); border-color: var(--ok); }
.desk-tbl tr.in td { background: #f1faf4; }
.desk-tbl .grp-edit summary { cursor: pointer; color: var(--muted); list-style: none; }
.desk-tbl .grp-edit .inp { max-width: 200px; padding: 4px 8px; }
.desk-tbl th.print-only, .desk-tbl td.print-only { display: none; }
@media print { .desk-grid { display: block; } .desk-tbl th.print-only, .desk-tbl td.print-only { display: table-cell; font-size: 1.1rem; } .desk-tbl tr.in td { background: none; } .desk-tbl .pill { border: 1px solid #999; } }

/* Tafelplan bar */
.bt-wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .bt-wrap { grid-template-columns: 1fr; } }
.bt-plan { position: relative; aspect-ratio: 1 / 1.15; background: radial-gradient(circle at 30% 20%, #1d3a55, #102336 70%); border-radius: 18px; touch-action: none; user-select: none; overflow: hidden; }
.bt-t { position: absolute; z-index: 1; transform: translate(-50%, -50%); width: var(--ts, 17%); aspect-ratio: 1; border-radius: 50%; background: #fbf5ea; color: #0c1b2a; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: grab; box-shadow: 0 4px 12px #0007; border: 3px solid transparent; line-height: 1.1; }
.bt-t b { font-size: .95rem; } .bt-t small { font-size: .6rem; opacity: .7; }
.bt-t.sh-rect { border-radius: 12px; width: calc(var(--ts, 17%) * 1.25); aspect-ratio: 1.5; }
.bt-t.sh-bar { border-radius: 12px; width: calc(var(--ts, 17%) * 3.6); aspect-ratio: 6; }
.bt-t.on { border-color: var(--gold); box-shadow: 0 0 0 4px #f2b84b66; }
.bt-edit label { display: block; margin-bottom: 8px; font-weight: 700; font-size: .85rem; }
.bt-edit .inp { width: 100%; margin-top: 4px; }

.bt-bg { position: absolute; inset: 0; background: #fff center / 100% 100% no-repeat; pointer-events: none; }
.bt-plan.placing { cursor: crosshair; outline: 3px dashed var(--gold); outline-offset: 3px; }
.bt-plan.placing .bt-t { cursor: not-allowed; }
.bt-t.long b { font-size: .7rem; text-align: center; line-height: 1.05; }
.bt-t b { pointer-events: none; }
.bt-mode { margin-bottom: 10px; flex-wrap: wrap; }
.bt-sliders { display: grid; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.bt-sliders label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; font-size: .85rem; }
.bt-sliders input[type=range] { width: 55%; }
.bt-edit label { display: block; }
.bt-plan.has-bg { background: #fff; }
.room-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.room-tab { padding: 10px 18px; border-radius: 14px 14px 0 0; background: #e8e1d3; color: inherit; text-decoration: none; font-weight: 800; border-bottom: 4px solid transparent; }
.room-tab small { font-weight: 600; opacity: .65; margin-left: 4px; }
.room-tab.on { background: #0c1b2a; color: #fff; border-bottom-color: var(--gold); }
.room-tools { margin-left: auto; }
.keg-tbl .keg-part { white-space: nowrap; } .keg-tbl .keg-part .btn { padding: 4px 9px; margin-right: 3px; } .keg-chips { font-size: .85rem; font-weight: 700; } .keg-size { width: auto; padding: 4px 6px; }
.flash-float { position: fixed; right: 20px; z-index: 200; max-width: 420px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.35); animation: flashIn .25s ease-out; transition: opacity .5s, transform .5s; }
.flash-gone { opacity: 0; transform: translateY(-10px); pointer-events: none; }
@keyframes flashIn { from { opacity: 0; transform: translateY(-10px); } }
/* Tafelschikking: verwijderknop altijd bereikbaar (binnen de tafel, niet enkel bij hover) */
.floor .tb .del { display: grid !important; place-items: center; top: 10%; right: 10%; width: 26px; height: 26px; font-size: 1rem; line-height: 1; opacity: .35; z-index: 2; transition: opacity .15s, transform .15s; }
.floor .tb.rect .del { top: 4px; right: 4px; }
.floor .tb:hover .del { opacity: 1; }
.floor .tb .del:hover { transform: scale(1.15); opacity: 1; }
/* Bewerkformulier naast een lijst blijft in beeld tijdens het scrollen */
@media (min-width: 1001px) {
  .grid.g2 > form.card.form:last-child { position: sticky; top: 14px; align-self: start; max-height: calc(100vh - 28px); overflow: auto; }
}
.edit-flash { animation: editFlash 1.2s ease-out; }
@keyframes editFlash { 0% { box-shadow: 0 0 0 4px var(--gold); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- Menu in groepen + zoeken ---------- */
.nav-search { margin: 0 2px 10px; }
.nav-search input { width: 100%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff; border-radius: 10px; padding: 9px 12px; font: inherit; font-size: .9rem; }
.nav-search input::placeholder { color: #9fb0c0; }
.nav-search input:focus { outline: 2px solid var(--gold); background: rgba(255,255,255,.12); }
.side nav .grp { margin: 2px 0; border-radius: 12px; }
.side nav .grp[open] { background: rgba(255,255,255,.035); padding-bottom: 4px; }
.side nav .grp > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; font-weight: 700; font-size: .92rem; color: #fff; user-select: none; }
.side nav .grp > summary::-webkit-details-marker { display: none; }
.side nav .grp > summary::after { content: "▸"; margin-left: auto; color: #8da2b4; transition: transform .2s; }
.side nav .grp[open] > summary::after { transform: rotate(90deg); }
.side nav .grp > summary:hover { background: rgba(255,255,255,.07); }
.side nav .grp .g-ico { width: 20px; text-align: center; }
.side nav .grp a { margin-left: 10px; padding: 7px 10px; font-size: .9rem; }
.side nav a .lbl { display: flex; flex-direction: column; line-height: 1.2; }
.side nav a .lbl small { display: none; font-size: .74rem; font-weight: 400; color: #9fb0c0; margin-top: 2px; }
.side nav a.on .lbl small { color: rgba(12,27,42,.7); }
.side nav a.only-search { display: none; }
.side.searching nav a .lbl small { display: block; }
.side.searching nav a.only-search.hit { display: flex; }
.side.searching nav a:not(.hit) { display: none; }
.side.searching nav .grp > summary { pointer-events: none; }
.side nav .nav-site { margin-top: 10px; border-top: 1px solid rgba(255,255,255,.1); border-radius: 0; padding-top: 12px; }
.side.searching nav .nav-site { display: none; }
.nav-empty { color: #9fb0c0; font-size: .85rem; padding: 8px 12px; }

/* Help & handleidingen */
.side nav .nav-help { margin-top: 10px; border-top: 1px solid rgba(255,255,255,.1); border-radius: 0; padding-top: 12px; }
.side nav .nav-help + .nav-site { margin-top: 0; border-top: 0; padding-top: 8px; }
.help-hero { display: flex; gap: 22px; align-items: center; background: linear-gradient(135deg, #0f3d2e, #0c1b2a); color: #f8f6f2; }
.help-hero h2 { color: #fff; } .help-hero .muted { color: #c9d5d0; }
.help-bot { flex: none; filter: drop-shadow(0 8px 18px rgba(0,0,0,.35)); }
.help-ask { display: flex; gap: 8px; max-width: 620px; } .help-ask .inp { flex: 1; font-size: 1rem; padding: 11px 14px; }
.help-starters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.help-starters .chip { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .85rem; cursor: pointer; }
.help-starters .chip:hover { background: rgba(255,255,255,.2); }
.help-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 0 16px; }
.help-doc { display: grid; grid-template-columns: 48px 1fr; gap: 4px 14px; }
.help-doc .hd-ico { font-size: 1.7rem; width: 48px; height: 48px; display: grid; place-items: center; background: var(--cream); border-radius: 12px; }
.help-doc h3 { margin: 2px 0 2px; } .help-doc p { margin: 0 0 6px; font-size: .9rem; }
.help-doc .hd-act { grid-column: 2; display: flex; gap: 8px; margin-top: 6px; }
.help-doc details summary { cursor: pointer; color: var(--pine-2); font-size: .88rem; }
.hd-toc { margin: 6px 0 0; padding-left: 20px; font-size: .88rem; } .hd-toc li { margin: 2px 0; }
.help-q.is-new { border-left: 4px solid var(--red); } .help-qtext { font-size: 1.05rem; margin: 8px 0; }
@media (max-width: 700px) { .help-hero { flex-direction: column; text-align: center; } .help-ask { flex-direction: column; } .help-starters { justify-content: center; } .help-docs { grid-template-columns: 1fr; } }
.learn[hidden] { display: none !important; }
.pico .plogo, .pico .plogo img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.pico .plogo { background: #fff; }
.pico.big { width: 64px; height: 64px; border-radius: 14px; padding: 5px; flex: none; }
.logo-edit { display: flex; gap: 12px; align-items: center; margin: 4px 0 10px; }
.mix-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.pico .plogo { display: grid; place-items: center; } .pico .plogo img { width: auto; height: auto; max-width: 92%; max-height: 80%; }
