/* AHOHA - crew – lichte, goed leesbare stijl voor gebruik buiten op smartphone */
[hidden] { display: none !important; }
:root {
  --ink: #0f2133; --ink-2: #44566a; --muted: #6b7c8f;
  --bg: #f3f5f8; --card: #ffffff; --line: #dde3ea; --line-2: #eef1f5;
  --brand: #12395f; --brand-2: #1d5a96; --accent: #f2b134;
  --ok: #15803d; --ok-bg: #e3f4e8; --warn: #a15c00; --warn-bg: #fff1d6; --bad: #b42318; --bad-bg: #fde7e4;
  --info: #1d5a96; --info-bg: #e2eefa; --teal: #0f766e; --teal-bg: #dcf3ef; --ext: #6d28d9; --ext-bg: #ede7fb;
  --radius: 12px; --shadow: 0 1px 2px rgba(15,33,51,.06), 0 4px 14px rgba(15,33,51,.05);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand-2); text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.01em; }
h1 { font-size: 1.55rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1rem; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .nowrap { white-space: nowrap; }
.right { text-align: right; } .center { text-align: center; }
.stack > * + * { margin-top: 1rem; } .row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.grow { flex: 1 1 auto; } .between { justify-content: space-between; }

/* topbar */
.topbar { background: var(--brand); color: #fff; position: sticky; top: 0; z-index: 20; }
.topbar .inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 12px; min-height: 52px; }
.brand { color: #fff; text-decoration: none; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; display: flex; gap: 8px; align-items: center; }
.brand img { height: 42px; width: auto; display: block; }  /* transparant: staat op de donkere topbalk */
.brand .mark { width: 26px; height: 26px; border-radius: 7px; background: var(--accent); color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: .9rem; }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: #cfe0f1; text-decoration: none; padding: 14px 11px; font-size: .94rem; white-space: nowrap; border-bottom: 3px solid transparent; }
.nav a:hover { color: #fff; } .nav a.active { color: #fff; border-bottom-color: var(--accent); font-weight: 600; }
.userbox { display: flex; gap: 10px; align-items: center; font-size: .85rem; color: #cfe0f1; white-space: nowrap; }
.userbox form { margin: 0; } .userbox button { background: none; border: 0; color: #cfe0f1; cursor: pointer; font: inherit; text-decoration: underline; padding: 0; }
/* Twee rijen: merk + gebruiker bovenaan, het hele menu eronder (zo blijft elk menu-item zichtbaar). */
.topbar .inner { flex-wrap: wrap; padding-top: 6px; row-gap: 0; }
.brand { order: 1; } .userbox { order: 2; margin-left: auto; } .nav { order: 3; flex: 1 0 100%; flex-wrap: wrap; }
.nav a { padding: 10px 11px 11px; }
@media (max-width: 760px) {
  .userbox .who { display: none; }
  .nav { flex-wrap: nowrap; margin: 0 -16px; padding: 0 12px; }
  .nav a { padding: 10px 10px 11px; }
}
.desk-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .desk-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }

main { max-width: 1200px; margin: 0 auto; padding: 20px 16px 64px; }
.pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.pagehead p { margin: 0; color: var(--ink-2); }
.crumbs { font-size: .875rem; color: var(--muted); margin-bottom: 4px; } .crumbs a { color: var(--muted); }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.card.flush { padding: 0; overflow: hidden; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.grid { display: grid; gap: 14px; } .g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } .g3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.kpi .n { font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; } .kpi .l { color: var(--ink-2); font-size: .85rem; }
.kpi.bad .n { color: var(--bad); } .kpi.ok .n { color: var(--ok); }

/* buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--brand); background: var(--brand); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn.ghost { background: #fff; color: var(--brand); border-color: var(--line); } .btn.ghost:hover { background: var(--line-2); }
.btn.ok { background: var(--ok); border-color: var(--ok); } .btn.danger { background: #fff; color: var(--bad); border-color: #f1b4ad; } .btn.danger:hover { background: var(--bad-bg); }
.btn.warn { background: var(--warn-bg); color: var(--warn); border-color: #f2d28b; } .btn.sm { min-height: 36px; padding: 0 12px; font-size: .9rem; } .btn.block { width: 100%; }
.btn.lg { min-height: 52px; font-size: 1.05rem; }
label { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 4px; }
input[type=text], input[type=search], input[type=email], input[type=number], input[type=password], input[type=datetime-local], select, textarea {
  width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid #c4cdd8; border-radius: 10px; background: #fff; font: inherit; color: var(--ink); }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #f2b13499; outline-offset: 1px; border-color: var(--brand-2); }
.field { margin-bottom: 12px; } .errorlist { list-style: none; margin: 4px 0 0; padding: 0; color: var(--bad); font-size: .875rem; }
.help { color: var(--muted); font-size: .8rem; margin-top: 3px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; } .filters > div { flex: 1 1 160px; } .filters .btn { flex: 0 0 auto; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; min-height: 44px; } .check input { width: 20px; height: 20px; }

/* messages */
.msgs { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.msgs li { padding: 12px 14px; border-radius: 10px; border: 1px solid; }
.msgs .success { background: var(--ok-bg); border-color: #b6e0c3; color: #0e5a2b; } .msgs .error { background: var(--bad-bg); border-color: #f1b4ad; color: #8a1a10; }
.msgs .info, .msgs .warning { background: var(--info-bg); border-color: #b9d4ee; color: #12395f; }
.alert { padding: 12px 14px; border-radius: 10px; border: 1px solid; margin-bottom: 12px; } .alert.bad { background: var(--bad-bg); border-color: #f1b4ad; color: #8a1a10; } .alert.warn { background: var(--warn-bg); border-color: #f2d28b; color: #6b3d00; } .alert.info { background: var(--info-bg); border-color: #b9d4ee; color: #12395f; }

/* tabs */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; margin-bottom: 16px; scrollbar-width: none; }
.tabs a { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); text-decoration: none; white-space: nowrap; font-weight: 600; min-height: 40px; display: inline-flex; align-items: center; }
.tabs a.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; } .subtabs a { padding: 10px 14px; text-decoration: none; color: var(--ink-2); border-bottom: 3px solid transparent; white-space: nowrap; } .subtabs a.active { color: var(--brand); border-bottom-color: var(--accent); font-weight: 700; }

/* tables */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .94rem; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); background: #f8fafc; font-weight: 700; white-space: nowrap; position: sticky; top: 0; }
tbody tr:hover { background: #fafbfd; } td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.teamrow td { background: var(--line-2); font-weight: 700; padding: 8px 12px; border-left: 5px solid var(--tc, var(--brand)); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: baseline; }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.s-planned { background: #eef1f5; color: #44566a; border-color: #d5dce5; } .s-checked-in { background: var(--info-bg); color: var(--info); border-color: #b9d4ee; }
.s-on-post { background: var(--teal-bg); color: var(--teal); border-color: #a8dcd5; } .s-completed { background: var(--ok-bg); color: var(--ok); border-color: #b6e0c3; }
.s-partial { background: var(--warn-bg); color: var(--warn); border-color: #f2d28b; } .s-no-show { background: var(--bad-bg); color: var(--bad); border-color: #f1b4ad; }
.badge.open { background: var(--bad-bg); color: var(--bad); border-color: #f1b4ad; } .badge.ext { background: var(--ext-bg); color: var(--ext); border-color: #d4c6f5; }
.badge.ok { background: var(--ok-bg); color: var(--ok); border-color: #b6e0c3; } .badge.neutral { background: #eef1f5; color: var(--ink-2); border-color: #d5dce5; }

/* voortgang & dekking */
.bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; min-width: 70px; } .bar > span { display: block; height: 100%; background: var(--ok); }
.bar.low > span { background: var(--bad); } .bar.mid > span { background: var(--accent); }
.cover { display: flex; gap: 2px; } .cover i { flex: 0 0 26px; height: 24px; border-radius: 4px; font-style: normal; font-size: .7rem; display: grid; place-items: center; font-weight: 700; }
.cover .full { background: var(--ok-bg); color: var(--ok); } .cover .part { background: var(--warn-bg); color: var(--warn); } .cover .none { background: var(--bad-bg); color: var(--bad); } .cover .empty { background: transparent; color: #c5ced9; }
.hourhead { display: flex; gap: 2px; } .hourhead i { flex: 0 0 26px; text-align: center; font-style: normal; font-size: .7rem; color: var(--muted); font-weight: 600; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: .8rem; color: var(--ink-2); } .legend span { display: inline-flex; align-items: center; gap: 5px; } .legend i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }

/* aanwezigheid */
.att { display: grid; gap: 10px; }
.att-row { background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 10px; }
.att-row.st-planned { border-left-color: #b4bfcc; } .att-row.st-checked-in { border-left-color: var(--brand-2); } .att-row.st-on-post { border-left-color: var(--teal); }
.att-row.st-completed { border-left-color: var(--ok); } .att-row.st-partial { border-left-color: var(--accent); } .att-row.st-no-show { border-left-color: var(--bad); }
.att-main { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; } .att-name { font-weight: 700; font-size: 1.05rem; }
.att-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .att-actions form { margin: 0; }
.att-actions .btn { min-height: 46px; }
.partial-form { display: flex; gap: 6px; align-items: center; } .partial-form input { width: 90px; min-height: 46px; }
details.more > summary { cursor: pointer; color: var(--ink-2); font-size: .875rem; list-style: none; min-height: 36px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 8px; } details.more > summary:hover { background: var(--line-2); }
.statusline { display: flex; gap: 8px; flex-wrap: wrap; } .statusline a { text-decoration: none; }
.statusline .chip { padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: .875rem; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; }
.statusline .chip b { font-size: 1.05rem; color: var(--ink); } .statusline .chip.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }

/* onthaal */
.deskbox { position: sticky; top: 52px; z-index: 5; background: var(--bg); padding: 8px 0 12px; }
.deskbox input[type=search] { min-height: 58px; font-size: 1.2rem; border-width: 2px; border-color: var(--brand-2); }
.person-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 10px; margin-bottom: 10px; }
.person-card.done { background: var(--ok-bg); border-color: #b6e0c3; } .person-card .name { font-size: 1.15rem; font-weight: 700; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--info-bg); color: var(--brand); display: grid; place-items: center; font-weight: 700; flex: 0 0 auto; }
.shiftline { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: .94rem; }

/* organogram */
.org-team { border-left: 6px solid var(--tc, var(--brand)); }
.org-children { margin-left: 18px; padding-left: 14px; border-left: 2px dashed var(--line); display: grid; gap: 12px; margin-top: 12px; }
.people-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; } .people-list li { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.contact a { white-space: nowrap; } .vacant { color: var(--warn); font-weight: 600; }
.note-box { background: var(--info-bg); border: 1px solid #b9d4ee; border-radius: 10px; padding: 10px 12px; font-size: .92rem; white-space: pre-line; }
.login { max-width: 400px; margin: 8vh auto; }
.pagination { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 16px; }
.empty-state { text-align: center; padding: 36px 16px; color: var(--ink-2); }
@media print { .topbar, .no-print, .tabs, .btn { display: none !important; } body { background: #fff; } .card { box-shadow: none; } }

/* checkboxlijst (allergieën) */
fieldset.field { border: 0; padding: 0; margin: 0 0 12px; } fieldset.field legend { font-weight: 700; margin-bottom: 4px; padding: 0; }
.checkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0 10px; }
.checkgrid .check { min-height: 40px; }
/* rapporten */
.reportcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.reportcard { display: block; text-decoration: none; color: inherit; } .reportcard:hover { border-color: var(--brand); }
.reportcard h2 { margin: 0 0 6px; } .reportcard p { margin: 0; color: var(--ink-2); }
table.matrix td, table.matrix th { text-align: center; } table.matrix td:first-child, table.matrix th:first-child { text-align: left; }
table.matrix td.zero { color: #b8c1cd; } table.matrix tfoot td, table.matrix tfoot th { font-weight: 800; border-top: 2px solid var(--line); }
.names { font-size: .875rem; color: var(--ink-2); }
.daysection { break-inside: avoid-page; }
@media print { .daysection { page-break-before: always; } .daysection:first-of-type { page-break-before: auto; } }

/* T-shirtmaat: groot op het onthaal, klein in lijsten */
.shirt { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 64px; padding: 4px 12px; border: 2px solid var(--brand); border-radius: 12px; font-weight: 800; font-size: 1.6rem; line-height: 1.1; color: var(--brand); background: #fff; }
.shirt > span { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.shirt.unknown { border-style: dashed; border-color: #d4a017; color: #8a5a00; background: #fff8e6; font-size: 1.1rem; }
.shirt.sm { display: inline-flex; flex-direction: row; min-width: 0; padding: 0 9px; font-size: .85rem; border-width: 1px; border-radius: 8px; }

/* offline: statusbalk, paneel en meldingen */
#sync-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: center;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #12395f; color: #fff; font-size: .94rem; box-shadow: 0 -2px 10px rgba(0,0,0,.18); }
#sync-bar.off { background: #7a3b00; } #sync-bar.warn { background: #8a1c1c; } #sync-bar.wait { background: #1d5a96; }
#sync-bar a, #sync-bar .sync-btn { color: #12395f; background: #fff; border: 0; border-radius: 8px; padding: 6px 12px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; min-height: 36px; }
#sync-bar .sync-btn.bad { background: #ffe1dd; color: #8a1c1c; }
#sync-panel { position: fixed; left: 12px; right: 12px; bottom: 70px; max-width: 560px; margin: 0 auto; z-index: 61; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: 0 8px 30px rgba(0,0,0,.25); max-height: 60vh; overflow: auto; }
#sync-panel h3 { margin: 0 0 6px; } .sync-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line-2); }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 70px; z-index: 62; background: #1b2b3c; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: .94rem; max-width: 90vw; }
.att-row.queued { opacity: .85; border-left-color: #1d5a96; background: #f4f8fd; }
body { padding-bottom: 0; } body.has-sync-bar { padding-bottom: var(--sync-h, 64px); }
body.has-sync-bar .groupbar { bottom: var(--sync-h, 0px); }

/* onthaal: vereniging, groepen, scannen */
.person-card .assoc { display: inline-block; margin-top: 2px; padding: 2px 10px; border-radius: 99px; background: var(--info-bg); color: var(--brand); font-weight: 700; font-size: .95rem; }
.seg { display: flex; gap: 4px; background: #e6ebf1; padding: 4px; border-radius: 12px; margin: 0 0 8px; max-width: 420px; }
.seg button { flex: 1; min-height: 44px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.seg button.active { background: #fff; color: var(--brand); box-shadow: var(--shadow); }
.pill { display: inline-block; padding: 4px 12px; border-radius: 99px; font-size: .85rem; font-weight: 600; }
.pill.on { background: var(--ok-bg); color: var(--ok); } .pill.off { background: var(--warn-bg); color: var(--warn); }
.grouplink { display: block; width: 100%; text-align: left; font: inherit; cursor: pointer; margin-bottom: 10px; padding: 14px; color: var(--ink); }
.grouplink:hover { border-color: var(--brand-2); }
.grouplist { margin-bottom: 84px; }
.grouprow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); min-height: 60px; cursor: pointer; }
.grouprow:last-child { border-bottom: 0; }
.grouprow input[type=checkbox] { width: 26px; height: 26px; flex: 0 0 auto; accent-color: var(--ok); }
.grouprow .gname { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.grouprow.done { background: var(--ok-bg); cursor: default; }
.groupbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(243,245,248,.96); border-top: 1px solid var(--line); }
.groupbar .btn { max-width: 720px; margin: 0 auto; }
.scan-overlay { position: fixed; inset: 0; z-index: 60; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.scan-overlay video { width: 100%; max-height: 70vh; object-fit: cover; }
.scan-overlay .scan-hint { color: #fff; padding: 0 16px; text-align: center; }
.assoc-tag { display: inline-block; margin-left: 6px; padding: 1px 9px; border-radius: 99px; background: var(--info-bg); color: var(--brand); font-weight: 700; font-size: .85rem; }

.plate { display: inline-block; padding: 1px 10px; border: 2px solid var(--ink); border-radius: 6px; background: #fff; font: 700 .95rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; white-space: nowrap; }
.parkform { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.parkform input[type=text] { width: 150px; min-height: 36px; text-transform: uppercase; }
.parktag { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-size: .9rem; }

.qrbox { width: 150px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 10px; padding: 6px; background: #fff; }
.qrbox svg { width: 100%; height: auto; display: block; }
.alert.ok { background: var(--ok-bg); border-color: #b6e0c3; color: #0f5a2c; font-weight: 600; }

/* logo */
.login-logo { display: block; width: 100%; max-width: 340px; height: auto; margin: 0 auto 4px; border-radius: 14px; background: #000; }
