@font-face { font-family: "DM Sans"; src: url("fonts/DMSans-Regular.ttf"); font-weight: 400; }
@font-face { font-family: "DM Sans"; src: url("fonts/DMSans-Medium.ttf"); font-weight: 500; }
@font-face { font-family: "DM Sans"; src: url("fonts/DMSans-SemiBold.ttf"); font-weight: 600; }
@font-face { font-family: "DM Sans"; src: url("fonts/DMSans-Bold.ttf"); font-weight: 700; }
@font-face { font-family: "Orbitron"; src: url("fonts/Orbitron-Medium.ttf"); font-weight: 500; }
@font-face { font-family: "Orbitron"; src: url("fonts/Orbitron-SemiBold.ttf"); font-weight: 600; }
:root {
  /* Jerico Brandbook 2026 */
  --navy: #232F4B; --green: #678F72; --green-55: #ABC1B1; --green-40: #C2D2C6; --red: #CA3755;
  --ink: #232F4B; --ink-2: #545E73; --ink-3: #6B7385;
  --line: #D6DBE2; --line-soft: #ECEFF3; --paper: #FFFFFF; --paper-2: #F4F6F8; --bg: #EEF2EF;
  --accent: #678F72; --accent-soft: #E6EEE8; --accent-ink: #4E7259;
  --pass: #1B7F4C; --pass-soft: #E4F3EA; --fail: #C0392B; --fail-soft: #FBE9E7;
  --warn: #B7791F; --warn-soft: #FDF3DF; --hot: #7B3FA0; --cold: #3B6BB5;
  --radius: 8px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink);
  font-family: "DM Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.45; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- layout ---------- */
.topbar { background: var(--navy); border-bottom: 3px solid var(--green); }
.topbar .in { max-width: 1360px; margin: 0 auto; padding: 0 24px; height: 56px; display: flex; align-items: center; gap: 24px; white-space: nowrap; }
.topbar nav { display: flex; flex-wrap: nowrap; align-items: stretch; min-width: 0; }
.topbar nav::-webkit-scrollbar { display: none; }
.topbar .btn { white-space: nowrap; flex-shrink: 0; }
.topbar .brand { flex-shrink: 0; }
@media (max-width: 1280px) { .topbar .brand .brand-txt { display: none; } }
@media (max-width: 1000px) { .topbar .btn .long { display: none; } .topbar nav a { margin-right: 12px; } }
.topbar .brand { display: flex; align-items: center; gap: 12px; font-family: "Orbitron", sans-serif; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; color: var(--green-55); }
.topbar .brand img { height: 30px; }
.topbar .brand:hover { text-decoration: none; }
.topbar nav a { color: #DCE3EC; padding: 18px 2px; margin-right: 16px; flex-shrink: 0; border-bottom: 2px solid transparent; font-weight: 500; }
.topbar nav a.active, .topbar nav a:hover { color: #fff; border-bottom-color: var(--green); text-decoration: none; }
.topbar .spacer { flex: 1; }
main { max-width: 1180px; margin: 0 auto; padding: 28px 24px 60px; }

h1 { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; color: var(--navy); margin: 0 0 4px; }
h1 small { display: block; font-family: "DM Sans", sans-serif; font-size: 11px; font-weight: 600; color: var(--green); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
h2 { font-size: 13px; font-weight: 600; color: var(--accent-ink); text-transform: uppercase; letter-spacing: .06em; margin: 22px 0 10px; }
h3 { font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
.muted { color: var(--ink-2); } .small { font-size: 12px; } .mono { font-variant-numeric: tabular-nums; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; }
.card h2:first-child { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 800px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tile .k { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.tile .v { font-size: 24px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.tile .s { font-size: 12px; color: var(--ink-2); }
.tile.hot .v { color: var(--hot); } .tile.cold .v { color: var(--cold); }

/* ---------- tables ---------- */
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--navy); background: #F1F5F2; }
table.data td { padding: 8px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.data tr:hover td { background: #FAFBFC; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data td.c, table.data th.c { text-align: center; }
table.data tr.ambient td { color: var(--ink-3); }
table.data .over { color: var(--fail); font-weight: 600; }
table.data input, table.data select { width: 100%; }

/* ---------- badges ---------- */
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.tag.pass, .tag.approved { background: var(--pass-soft); color: var(--pass); }
.tag.fail { background: var(--fail-soft); color: var(--fail); }
.tag.na, .tag.draft { background: var(--paper-2); color: var(--ink-3); }
.tag.low { background: var(--paper-2); color: var(--ink-2); }
.tag.medium, .tag.submitted { background: var(--warn-soft); color: var(--warn); }
.tag.high { background: var(--fail-soft); color: var(--fail); }
.tag.sent, .tag.info { background: var(--accent-soft); color: var(--accent-ink); }
.pos-chip { display: inline-block; min-width: 24px; text-align: center; padding: 1px 6px; border-radius: 4px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; font-size: 12px; }
.pos-chip.hot { background: #F1E8F7; color: var(--hot); } .pos-chip.cold { background: #E3F1FA; color: var(--cold); } .pos-chip.amb { background: var(--paper-2); color: var(--ink-3); }

/* ---------- forms ---------- */
label { display: block; font-size: 12px; color: var(--ink-2); margin: 10px 0 4px; font-weight: 500; }
input[type=text], input[type=search], input[type=number], input[type=email], input[type=password], input[type=date], input[type=datetime-local], select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 13.5px; background: var(--paper); color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { min-height: 90px; resize: vertical; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 14px; }
.check { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 13.5px; color: var(--ink); }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.actions { display: flex; gap: 10px; align-items: center; margin-top: 16px; flex-wrap: wrap; }

.btn { display: inline-block; padding: 8px 14px; border-radius: 6px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-weight: 500; cursor: pointer; }
.btn:hover { background: var(--paper-2); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-ink); }
.btn.danger { color: var(--fail); border-color: #F0C9C4; } .btn.danger:hover { background: var(--fail-soft); }
.btn.sm { padding: 5px 10px; font-size: 12.5px; }

/* ---------- misc ---------- */
.flash { background: var(--accent-soft); color: var(--accent-ink); border-left: 4px solid var(--accent); padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; }
.flash.err { background: var(--fail-soft); color: var(--fail); border-left-color: var(--fail); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs a { padding: 10px 16px; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }
.tabs a.active { color: var(--accent-ink); border-bottom-color: var(--accent); }
.tabs a .n { display: inline-block; min-width: 18px; text-align: center; background: var(--paper-2); border-radius: 9px; font-size: 11px; padding: 1px 5px; margin-left: 6px; color: var(--ink-2); }
.steps { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--ink-3); margin-bottom: 14px; }
.steps span.on { color: var(--accent-ink); font-weight: 600; }
.dropzone { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 18px; background: var(--paper-2); }
.banner { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: var(--radius); margin: 8px 0 16px; }
.banner.pass { background: var(--pass-soft); border-left: 5px solid var(--pass); }
.banner.fail { background: var(--fail-soft); border-left: 5px solid var(--fail); }
.banner .big { font-size: 16px; font-weight: 600; }
.empty { color: var(--ink-3); font-style: italic; padding: 10px 0; }
.kv { font-size: 13px; } .kv th { text-align: left; font-weight: 400; color: var(--ink-2); padding: 3px 14px 3px 0; vertical-align: top; } .kv td { padding: 3px 0; font-weight: 500; }
details summary { cursor: pointer; color: var(--accent-ink); font-weight: 500; margin: 8px 0; }
.chart-wrap svg { width: 100%; height: auto; }

.topbar .btn.primary { background: var(--green); border-color: var(--green); }
.topbar .btn.primary:hover { background: var(--accent-ink); }
main::after { content: "Jopie regelt \2019t ff"; display: block; height: 24px; line-height: 24px; margin-top: 30px;
  padding-right: 250px; text-align: left; font-size: 13px; font-style: italic; color: #8C93A3;
  background: url("brand/Lijnen_Jerico_op_wit.svg") right center / auto 24px no-repeat; }

/* data-check: rows from the original file */
.linkbtn { display: inline-block; margin-top: 5px; padding: 3px 9px; border-radius: 6px; border: 1px solid var(--accent); background: var(--paper); color: var(--accent-ink); font: inherit; font-size: 12px; font-weight: 500; cursor: pointer; appearance: none; -webkit-appearance: none; }
.linkbtn:hover { background: var(--accent-soft); }
tr.ctx-row > td { background: #F7F9FA; }
.ctx-grid { display: flex; flex-wrap: wrap; gap: 14px; }
table.ctx { border-collapse: collapse; font-size: 12px; min-width: 300px; }
table.ctx caption { text-align: left; font-weight: 600; font-size: 12px; padding: 2px 0 4px; }
table.ctx th { text-align: left; font-weight: 500; color: #5B6670; padding: 2px 8px; border-bottom: 1px solid #DDE3E8; }
table.ctx td { padding: 2px 8px; border-bottom: 1px solid #EEF1F3; }
table.ctx tr.fill td { background: #E8F3EC; color: #1B7F4C; }
table.ctx tr.fill td:nth-child(3) { color: #8A949C; }
table.ctx tr.drop td { background: #FBEAEA; color: #C0392B; }
.empty-cell { font-style: italic; font-size: 11px; opacity: .8; }
table.ctx tr.gap td { background: #FFF6E5; color: #8A5A00; font-style: italic; }
table.ctx tr.mark td { background: #FFF6E5; font-weight: 600; }

/* report search */
.searchbar { display: flex; gap: 10px; align-items: center; margin: 0 0 12px; flex-wrap: wrap; }
.searchbar input[type=search] { flex: 1 1 320px; margin: 0; }
.searchbar select { width: auto; margin: 0; }

/* standard remarks + pre-flight */
.remark-row { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.remark-row.new { background: var(--paper-2); padding: 12px; border-radius: 6px; border-top: 0; }
.tpl-pick { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
ul.preflight { list-style: none; padding: 0; margin: 0 0 14px; }
ul.preflight li { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
ul.preflight li:last-child { border-bottom: 0; }
ul.preflight .ic { flex: 0 0 18px; height: 18px; border-radius: 50%; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; color: #fff; margin-top: 1px; }
ul.preflight .err .ic { background: var(--fail); }
ul.preflight .warn .ic { background: #E0A32E; }
ul.preflight .info .ic { background: #9AA3AA; }
ul.preflight .ok .ic { background: var(--pass, #1B7F4C); }
ul.preflight a { margin-left: auto; white-space: nowrap; font-size: 12px; }

/* users & signatures */
.sig-current { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 8px; margin-bottom: 6px; }
.sig-current img { max-height: 70px; max-width: 280px; display: block; }
.sig-tabs { display: flex; gap: 6px; margin: 6px 0; }
canvas.sigpad { width: 100%; height: 150px; background: #fff; border: 1px dashed var(--accent); border-radius: 6px; touch-action: none; cursor: crosshair; display: block; }

.card.suggest { border-left: 4px solid #E0A32E; background: #FFFBF2; }
.card.suggest.done { border-left-color: var(--accent); background: var(--paper); }

table.thermo input { width: 90px; margin: 0; padding: 4px 6px; }

/* report header summary + stepper */
.report-head { align-items: center; }
.summary-bar { display: flex; flex-wrap: wrap; gap: 8px 26px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 10px 16px; margin: -6px 0 16px; font-size: 13px; }
.summary-bar > div { display: flex; flex-direction: column; gap: 2px; }
.summary-bar .k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.tabs.steps a { display: inline-flex; align-items: center; gap: 7px; }
.tabs.steps .dot { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; background: var(--paper-2, #EEF1F3); color: var(--ink-2); border: 1px solid var(--line); }
.tabs.steps a.active .dot { background: var(--accent); color: #fff; border-color: var(--accent); }
.tabs.steps a.done .dot { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent); }
/* pre-flight groups */
.pf-head { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; margin: 10px 0 2px; }
.pf-head.err { color: var(--fail); } .pf-head.warn { color: #A86F00; } .pf-head.info { color: var(--ink-2); }
ul.preflight .err .ic { border-radius: 3px; }
/* spinner */
.spin { display: inline-block; width: 12px; height: 12px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -1px; margin-right: 4px; }
@keyframes spin { to { transform: rotate(360deg); } }
/* drop zones for file inputs */
label.drop { display: flex; align-items: center; gap: 10px; border: 1.5px dashed var(--line); border-radius: 8px; padding: 12px 14px; background: var(--paper); cursor: pointer; color: var(--ink-2); font-size: 13px; margin: 4px 0 8px; text-transform: none; letter-spacing: 0; font-weight: 400; }
label.drop::before { content: "⇪"; font-size: 18px; color: var(--accent); }
label.drop:hover, label.drop.over { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
label.drop.has { border-style: solid; border-color: var(--accent); color: var(--ink); }
label.drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
/* flatpickr in the house style */
.flatpickr-calendar { font-family: inherit; }
.flatpickr-day.selected, .flatpickr-day.selected:hover { background: var(--accent); border-color: var(--accent); }
/* misc */
td.nowrap, .nowrap { white-space: nowrap; }
.btn.ghost { border-color: transparent; color: var(--accent-ink); background: transparent; }
.span-all { grid-column: 1 / -1; }

/* imported old reports */
.tag.legacy { background: #EEE7DA; color: #6B5A3A; }
.legacy-banner { border: 1px solid #E2D6BF; background: #FBF7EF; border-radius: 10px; padding: 12px 16px; margin: 0 0 16px; color: #5A4A2C; }
.legacy-banner b { color: #3F3420; }
table.data tr.skip td { color: var(--ink-3); }

/* top bar: "Apparatuur" dropdown + settings gear */
.topbar .dd { position: relative; display: flex; margin-right: 16px; }
.topbar .dd-btn { background: none; border: 0; font: inherit; font-weight: 500; color: #DCE3EC; padding: 18px 2px; cursor: pointer;
  border-bottom: 2px solid transparent; display: flex; align-items: center; gap: 5px; }
.topbar .dd-btn .caret { font-size: 10px; opacity: .8; transition: transform .15s; }
.topbar .dd.active .dd-btn, .topbar .dd-btn:hover, .topbar .dd.open .dd-btn { color: #fff; border-bottom-color: var(--green); }
.topbar .dd.open .caret { transform: rotate(180deg); }
.topbar .dd-menu { display: none; position: absolute; top: 100%; left: -12px; min-width: 250px; z-index: 50;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 28px rgba(20, 30, 50, .18); padding: 6px; }
.topbar .dd.open .dd-menu { display: block; }
.topbar .dd-menu a { display: block; margin: 0; padding: 9px 12px; border: 0; border-radius: 7px; color: var(--ink); font-weight: 500; }
.topbar .dd-menu a small { display: block; font-weight: 400; color: var(--ink-3); font-size: 12px; margin-top: 1px; }
.topbar .dd-menu a:hover, .topbar .dd-menu a.active { background: var(--paper-2); color: var(--ink); border: 0; }
.topbar .dd-menu a.active { box-shadow: inset 3px 0 0 var(--green); }
.topbar .gear { color: #DCE3EC; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0; }
.topbar .gear:hover, .topbar .gear.active { color: #fff; background: rgba(255, 255, 255, .1); }
.topbar .gear.active { box-shadow: inset 0 -2px 0 var(--green); }
.topbar .gear svg { transition: transform .3s; }
.topbar .gear:hover svg { transform: rotate(45deg); }

.tile-btn { font: inherit; text-align: left; cursor: pointer; color: inherit; display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; }
.tile-btn:hover { border-color: var(--green); }

fieldset.new-eq { border: 1px solid var(--line); border-radius: 10px; padding: 6px 14px 12px; margin: 10px 0 4px; background: var(--paper-2); }
fieldset.new-eq legend { font-weight: 600; font-size: 13px; padding: 0 6px; color: var(--ink-2); }

.edit-note { border-left: 3px solid #E2D6BF; padding: 4px 0 6px 12px; margin: 0 0 10px; }
details.card > summary { cursor: pointer; list-style: none; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary h2::before { content: "▸ "; color: var(--ink-3); }
details.card[open] > summary h2::before { content: "▾ "; }

/* briefly highlight fields filled in automatically */
input.autofilled { background: #fff6dc; transition: background .8s; }

/* the hidden attribute must win over display:grid/flex of .row etc. */
[hidden] { display: none !important; }

/* a heading that opens a show/hide section (Studies, RH) keeps its space above */
.card > div[id] > h2:first-child { margin-top: 22px; }

/* save marker (forms with data-guard) */
.save-mark { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; box-shadow: 0 2px 10px rgba(0,0,0,.12);
  background: #eef6f0; color: #2e6b45; border: 1px solid #cfe5d6; }
.save-mark.dirty { background: #fff4dc; color: #8a5a00; border-color: #f0d9a4; padding: 5px 6px 5px 14px; }
.save-mark.busy { background: #f2f2f2; color: #555; border-color: #ddd; }
.save-mark.fresh { animation: savepulse 1.6s ease-out 1; }
@keyframes savepulse { 0% { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(46,107,69,.25); } 100% { transform: none; } }

/* data check: accept / ignore a finding right under its data */
.ctx-decide { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft, #e6e6e6); font-weight: 500; }
.dec-tag { margin-left: 8px; font-size: 12px; font-weight: 600; }
tr.dec-yes .dec-tag { color: #2e6b45; }
tr.dec-no .dec-tag { color: #a33; }
/* decided findings turn grey, so it is clear they need no more attention */
tr.dec-yes > td, tr.dec-no > td { background: #f6f6f4; color: #8a8a86; }
tr.dec-yes .tag, tr.dec-no .tag, tr.dec-yes .pos-chip, tr.dec-no .pos-chip { opacity: .5; }
tr.dec-no > td { text-decoration: none; }

/* "Data knippen" under the power failure / open door chart */
details.crop { margin: 10px 0 4px; padding: 8px 12px; border: 1px dashed var(--line, #d9d9d4); border-radius: 8px; }
details.crop > summary { cursor: pointer; }

/* interactive results charts */
.ichart-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 6px; }
.ichart-plot { width: 100%; }
.ichart-plot .u-legend { text-align: left; font-size: 12px; }
.ichart-plot .u-legend .u-series { cursor: pointer; }
.ichart-plot .u-legend .u-off > * { opacity: .35; }

/* "Resultaten akkoord" bar on the results tab */
.results-ok { padding: 12px 16px; border-left: 4px solid #d8a43a; }
.results-ok.done { border-left-color: #2e8b57; background: #f1f8f3; }
.results-ok .ok-big { font-weight: 600; color: #2e6b45; }

/* attachments card: standard certificates / extra attachments */
.att-block { border: 1px solid var(--line, #e2e2dc); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; }

/* room mapping card */
.room-card h3 { margin: 16px 0 6px; font-size: 13px; }
.room-grid { display: grid; grid-template-columns: minmax(420px, 1fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.room-pos input[type=text] { padding: 4px 6px; }
.room-pos tr.missing td { background: #fff4dc; }
.room-pos tr.rh-row-pos td { background: #eef5fb; }
.room-place svg { width: 100%; height: auto; border: 1px solid var(--line, #e2e2dc); border-radius: 6px; background: #fff; }
.room-photos { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.room-photos .ph { width: 200px; }
.room-photos .ph img { width: 200px; height: 130px; object-fit: cover; border-radius: 6px; display: block; }
.room-photos .ph input { margin-top: 4px; font-size: 12px; }
@media (max-width: 900px) { .room-grid { grid-template-columns: 1fr; } }
.room-view-tabs { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.room-view-tabs .seg { display: inline-flex; border: 1px solid var(--line, #e2e2dc); border-radius: 6px; overflow: hidden; }
.room-view-tabs .seg button { border: 0; background: #fff; padding: 3px 10px; font-size: 12px; cursor: pointer; color: inherit; }
.room-view-tabs .seg button.on { background: #232F4B; color: #fff; }
.r3d-wrap { position: relative; }
.r3d-wrap svg { width: 100%; height: auto; border: 1px solid var(--line, #e2e2dc); border-radius: 6px; background: #fff; cursor: grab; touch-action: none; user-select: none; }
.r3d-wrap svg:active { cursor: grabbing; }
.r3d-tip { position: absolute; pointer-events: none; background: #232F4B; color: #fff; font-size: 12px; padding: 5px 8px; border-radius: 5px; white-space: nowrap; z-index: 5; }
.r3d-help { margin-top: 3px; }
.dropzone.over { border-color: var(--accent, #678F72); background: #EEF5F0; }
.obj-editor { margin: 6px 0 18px; }
.obj-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.obj-tools .btn.on { background: #232F4B; color: #fff; border-color: #232F4B; }
.obj-canvas { width: 100%; max-width: 720px; height: auto; display: block; background: #fff; border: 1px solid var(--line, #e2e2dc); border-radius: 6px; touch-action: none; user-select: none; }
.obj-canvas .ob { cursor: grab; }
.obj-canvas.placing, .obj-canvas.placing .ob { cursor: crosshair; }
#obj-status { margin: 4px 0 8px; }
#obj-list table input[type=text] { width: 100%; min-width: 180px; }
#obj-list tr.sel td { background: #FFF8E6; }
.ob-letter { display: inline-block; min-width: 18px; text-align: center; font-weight: 700; font-size: 12px; border: 1px solid; border-radius: 4px; padding: 0 3px; }
.fix-table .yn { display: inline-flex; border: 1px solid var(--line, #e2e2dc); border-radius: 6px; overflow: hidden; }
.fix-table .yn button { border: 0; background: #fff; padding: 4px 10px; font-size: 12px; cursor: pointer; color: #555; }
.fix-table .yn button + button { border-left: 1px solid var(--line, #e2e2dc); }
.fix-table .yn button.on[data-v="1"] { background: #678F72; color: #fff; }
.fix-table .yn button.on[data-v="0"] { background: #8C93A3; color: #fff; }
.pv-btn.on { background: #232F4B; color: #fff; border-color: #232F4B; }
.pv-row > td { background: #FAFAF7; }
.pv-box { padding: 6px 4px 10px; }
.pv-chart { width: 100%; max-width: 680px; height: auto; display: block; background: #fff; border: 1px solid var(--line, #e2e2dc); border-radius: 6px; margin-bottom: 4px; }
.pv-table { margin-top: 8px; width: auto; }
.pv-table td.pv-fix { background: #FDF0E3; }
details.infos { margin-top: 18px; }
details.infos summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.dl-actions { margin-top: 16px; align-items: center; }
.pv-more { margin-top: 10px; } .pv-more summary { cursor: pointer; color: #555; margin-bottom: 6px; }
.fmt-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 18px; }
.fmt-row label { font-weight: 600; margin: 0; }
.fmt-row select { width: auto; max-width: 100%; }
.fp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.fp-card { display: block; border: 1px solid var(--line, #e2e2dc); border-radius: 8px; overflow: hidden; background: #fff; color: inherit; text-decoration: none; transition: box-shadow .15s; }
.fp-card:hover { box-shadow: 0 2px 10px rgba(35,47,75,.15); }
.fp-card img { display: block; width: 100%; height: 190px; object-fit: contain; background: #fff; border-bottom: 1px solid var(--line, #e2e2dc); }
.fp-meta { padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
/* foldable cards (data-fold) */
.card > h2.fold-h { cursor: pointer; user-select: none; }
.fold-ic { display: inline-block; width: 1em; margin-right: 4px; color: #8C93A3; transition: transform .15s; }
.card.folded > h2 .fold-ic { transform: rotate(-90deg); }
.card.folded > :not(h2) { display: none !important; }
.card.folded > h2 { margin-bottom: 0; }
.grid-2 > .card.folded { align-self: start; }
/* sortable tables */
th.sort-h { cursor: pointer; user-select: none; white-space: nowrap; }
th.sort-h:hover { color: #232F4B; }
th.sort-h[data-dir]::after { margin-left: 4px; font-size: .9em; color: #3a3f4a; }
th.sort-h[data-dir="asc"]::after { content: "↑"; }
th.sort-h[data-dir="desc"]::after { content: "↓"; }
/* gear menu (settings, users) — opens to the left, aligned to the right edge */
.topbar .gear-dd { margin-right: 0; margin-left: 10px; }
.topbar .gear-dd .dd-menu { left: auto; right: 0; min-width: 270px; }
.topbar .gear-dd .dd-btn.gear { border: 0; background: transparent; cursor: pointer; padding: 0; }
.topbar .gear-dd .dd-btn.gear:hover, .topbar .gear-dd .dd-btn.gear.active { background: rgba(255, 255, 255, .1); }
/* "Nog te doen" bar on the report steps */
.todo-bar { background: #FFF8E6; border: 1px solid #F0D9A0; border-radius: 10px; padding: 0; margin: -6px 0 18px; }
.todo-bar.has-err { background: #FDF0EE; border-color: #EBC2BC; }
.todo-bar summary { cursor: pointer; padding: 10px 14px; display: flex; align-items: center; gap: 8px; list-style: none; font-size: 14px; }
.todo-bar summary::-webkit-details-marker { display: none; }
.todo-bar .todo-ic { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; background: #D9A21B; }
.todo-bar.has-err .todo-ic { background: #C0463A; }
.todo-bar .todo-more { margin-left: auto; font-size: 12px; color: #7A6A45; }
.todo-bar[open] .todo-more { visibility: hidden; }
.todo-bar ul { list-style: none; margin: 0; padding: 0 14px 10px 42px; }
.todo-bar li { display: flex; align-items: baseline; gap: 8px; padding: 4px 0; font-size: 13.5px; border-top: 1px dashed rgba(0,0,0,.08); }
.todo-bar li .ic { font-weight: 700; width: 12px; color: #B07F12; }
.todo-bar li.err .ic { color: #C0463A; }
.todo-bar li a, .todo-bar li .muted { margin-left: auto; white-space: nowrap; font-size: 12.5px; }
.todo-bar li.here { font-weight: 600; }
.fp-card .fp-pdf { display: block; width: 100%; height: 190px; border: 0; border-bottom: 1px solid var(--line, #e2e2dc); pointer-events: none; background: #fff; }
button.fp-card { padding: 0; text-align: left; font: inherit; cursor: zoom-in; width: 100%; }
/* floor plan viewer */
.fp-viewer { position: fixed; inset: 0; z-index: 200; background: rgba(20, 26, 40, .92); display: flex; flex-direction: column; }
.fp-viewer[hidden] { display: none; }
.fp-bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; color: #fff; }
.fp-bar b { font-size: 15px; }
.fp-tools { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.fp-tools button, .fp-tools a { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 7px; padding: 5px 11px; font: inherit; font-size: 13px; cursor: pointer; text-decoration: none; }
.fp-tools button:hover, .fp-tools a:hover { background: rgba(255,255,255,.22); }
.fp-tools .fp-close { margin-left: 8px; }
.fp-stage { position: relative; flex: 1; overflow: hidden; margin: 0 16px 16px; background: #fff; border-radius: 8px; touch-action: none; cursor: grab; }
.fp-stage.grab { cursor: grabbing; }
.fp-img { position: absolute; left: 0; top: 0; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; max-width: none; }
.fp-frame { width: 100%; height: 100%; border: 0; }
.fp-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #6D7480; }
.topbar .dd-menu a, .topbar .dd-menu a:hover { text-decoration: none; }
.fp-card .fp-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.fp-card .fp-rooms { align-self: flex-start; margin-top: 6px; }

/* room mapping: neighbouring rooms from the floor plan, one click fills "wat ligt aan die kant" */
.nb-chips { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin: 2px 0 10px; }
.nb-chips .chip { border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 2px 9px; font: inherit; cursor: pointer; color: inherit; }
.nb-chips .chip:hover { border-color: var(--accent); background: var(--accent-soft); }

/* data check: a position estimated from its neighbours stands out */
tr.est-row td { background: #FFF6E0; }
tr.est-row td:first-child { box-shadow: inset 3px 0 0 #D9962B; }
.est-warn { font-weight: 600; color: #9A5B00; margin-bottom: 2px; }
.flash.warn-flash { background: #FFF6E0; color: #7A4A00; border-left-color: #D9962B; }

/* a study checkbox with a duration choice next to it (PQ 24 / 12 uur) */
.check-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.check-row .check { margin: 0; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--paper); flex: none; }
.seg button { border: 0; background: transparent; padding: 3px 12px; font: inherit; font-size: 13px; cursor: pointer; color: inherit; line-height: 1.5; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--accent); color: #fff; font-weight: 600; }
.seg.off { opacity: .45; pointer-events: none; }

/* Servicerapporten: one block per service report number */
.sr-group { border-top: 1px solid var(--line); padding: 12px 0 6px; }
.sr-group:first-of-type { border-top: 0; }
.sr-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.sr-no { font-size: 16px; font-weight: 700; }
.sr-head .sr-actions { margin-left: auto; display: inline-flex; gap: 8px; align-items: center; flex-wrap: nowrap; }
.sr-head .sr-inv { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.sr-invno { width: 140px; padding: 3px 8px; font-size: 13px; }
.sr-group.is-done .sr-no { color: var(--muted, #6b7280); }
.searchbar .seg { margin-left: 4px; }
.sr-head .btn { white-space: nowrap; }
.sr-head .sr-invno { height: 30px; box-sizing: border-box; margin: 0; }
.sr-head .sr-inv .btn { height: 30px; display: inline-flex; align-items: center; }

/* room mapping: floor plan next to the top view / 3D while placing sensors */
.room-plan-box { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; margin-bottom: 6px; cursor: zoom-in; min-height: 120px; position: relative; }
.room-plan-wait { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.room-plan-box img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; }
.room-plan-frame { width: 100%; height: 520px; border: 0; display: block; }

/* heading with a small action button on the right (e.g. "Plattegrond bekijken") */
h3.h-with-btn { display: flex; align-items: center; gap: 10px; }
h3.h-with-btn .btn { margin-left: auto; font-weight: 500; }

/* status tiles on the overview: the chosen one is filled, the others step back */
.tile-btn.on { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 2px 10px rgba(35, 47, 75, .18); }
.tile-btn.on .k { color: rgba(255, 255, 255, .85); }
.tiles.filtered .tile-btn:not(.on) { opacity: .5; }
.tiles.filtered .tile-btn:not(.on):hover { opacity: .85; }

/* calibration table: logger opens its calibration points */
.cal-table .linkish { border: 0; background: none; padding: 0; font: inherit; color: var(--accent); cursor: pointer; }
.cal-table .linkish:hover, .cal-table .linkish.on { text-decoration: underline; }
.cal-pts { width: auto; margin: 2px 0; }
.cal-pts td, .cal-pts th { padding: 3px 14px 3px 0; }

/* floor plan zoomed in on the room (room-mapping card) */
.room-plan-box.focused { height: 380px; }
.plan-ring { position: absolute; width: 74px; height: 74px; margin: -37px 0 0 -37px; border: 3px solid #232F4B; border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 0 0 9999px rgba(35,47,75,.10); pointer-events: none; }
.obj-canvas .spot { cursor: move; }

/* logged-in user in the top bar */
.topbar .me { position: relative; }
.topbar .me .dd-btn { color: #DCE3EC; font-weight: 500; }
.topbar .me .initials { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 12px; font-weight: 600; margin-right: 6px; }
.topbar .me form { margin: 0; }
.topbar .me .dd-menu button { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; padding: 0; text-align: left; width: 100%; }

/* Workflow: per person 'handtekening' tick */
.sign-table td:last-child { text-align: left; white-space: nowrap; padding-left: 14px; }
.sign-tick { display: inline-flex; gap: 6px; align-items: center; margin: 0; font-size: 12.5px; cursor: pointer; }
.sign-tick.off { color: var(--ink-3, #8a93a6); cursor: not-allowed; }

/* Jopie's feestdagen (static/feest.js) */
main[data-jopie]::after { content: attr(data-jopie); cursor: pointer; }
.topbar .feest-icon { margin-left: -6px; padding: 2px 4px; border: 0; background: none; font-size: 15px; line-height: 1; cursor: pointer; user-select: none; display: inline-flex; align-items: center; border-radius: 6px; }
.topbar .feest-icon:hover { background: rgba(255,255,255,.08); transform: rotate(-8deg); }
.topbar .feest-icon svg { display: block; }
main.jopie-long::after { height: auto; min-height: 24px; line-height: 18px; padding-top: 3px; padding-bottom: 3px; }
.feest-walker { position: fixed; left: 0; bottom: -3px; z-index: 9998; cursor: pointer; filter: drop-shadow(0 3px 3px rgba(0,0,0,.18)); }
.feest-walker.vlieg { bottom: auto; pointer-events: none; }
.feest-walker svg { display: block; transform-origin: 50% 100%; }
.feest-layer { position: fixed; inset: 0; pointer-events: none; z-index: 9999; overflow: hidden; }
.feest-p { position: absolute; left: 0; top: 0; font-size: 22px; line-height: 1; will-change: transform; }
.feest-p svg { display: block; }
.sign-tick .sign-lock { font-size: 11px; margin-left: 2px; }
/* all checkboxes in the app in the Jerico green, like the study checkboxes */
input[type=checkbox] { accent-color: var(--accent); }
.sign-tick input[type=checkbox] { width: 16px; height: 16px; margin: 0; }
.topbar .feest-icon + .feest-icon { margin-left: -8px; }
/* kerst */
html.feest-kerst body { background: transparent; }
.feest-sneeuw { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.feest-sneeuw span { position: absolute; top: 0; line-height: 0; will-change: transform; }
.sneeuwbal { position: fixed; left: 0; top: 0; z-index: 9997; cursor: grab; touch-action: none; user-select: none; transition: transform .35s cubic-bezier(.5,0,.9,.6); filter: drop-shadow(0 2px 2px rgba(27,37,64,.22)); }
.sneeuwbal.sleep, .sneeuwbal:active { transition: none; cursor: grabbing; }
.sneeuwbal svg { display: block; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.sneeuwbal .deco { opacity: 0; transition: opacity .4s; }
.sneeuwbal.klaar .deco { opacity: 1; }
.feest-boom { position: fixed; right: max(16px, calc(50% - 590px - 150px)); bottom: 6px; width: 124px; height: 112px; z-index: 9996; pointer-events: none; }
.feest-boom > svg { position: absolute; left: 20px; bottom: 8px; filter: drop-shadow(0 2px 2px rgba(27,37,64,.2)); }
.feest-boom .kado { position: absolute; bottom: 0; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; line-height: 0; }
.feest-boom .kado svg { overflow: visible; }
.feest-boom .kado.k1 { left: 0; } .feest-boom .kado.k2 { left: 47px; bottom: -3px; } .feest-boom .kado.k3 { left: 92px; }
.feest-boom .kado:hover { transform: translateY(-2px) rotate(-3deg); }
.feest-boom .kado .deksel { transition: transform .25s; transform-box: fill-box; transform-origin: 0 100%; }
.feest-boom .kado.open .deksel { transform: translate(-2px, -7px) rotate(-24deg); }
.feest-boom .kado-tekst { position: absolute; right: 0; bottom: 118px; width: 230px; padding: 10px 13px; border-radius: 10px; background: #fff; border: 1.5px solid #1B2540; color: #1B2540; font-size: 13px; line-height: 1.4; box-shadow: 0 6px 18px rgba(27,37,64,.18); opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.feest-boom .kado-tekst.zien { opacity: 1; transform: none; }
/* pasen */
html.feest-pasen main { position: relative; }
.feest-teller { margin-left: -4px; font: 600 11px/1 "DM Sans", sans-serif; letter-spacing: .02em; color: var(--green-55); text-transform: none; cursor: default; }
.paasei { position: absolute; padding: 0; border: 0; background: none; cursor: pointer; line-height: 0; z-index: 5; filter: drop-shadow(0 1px 1px rgba(27,37,64,.25)); }
.paasei:hover { transform: rotate(-8deg) scale(1.1); }
.paasei.e-voet { right: 118px; bottom: 60px; transform: rotate(14deg); }
.paasei.e-voet svg { width: 15px; height: 19px; }
.paasei.e-linksonder { position: fixed; left: 10px; bottom: -9px; transform: rotate(-18deg); }
.paasei.e-balk { position: static; margin-left: 2px; opacity: .9; }
.paasei.e-balk svg { width: 12px; height: 15px; }
.paasei.e-titel { right: 26px; top: 14px; transform: rotate(24deg); }
.paasei.e-titel svg { width: 14px; height: 18px; }
.paasei.e-rechts { position: fixed; right: -8px; top: 58%; transform: rotate(-32deg); }
.paasei.e-marge { left: 3px; top: 52px; transform: rotate(-12deg); }
.paasei.e-marge svg { width: 15px; height: 19px; }
.feest-finale, .feest-schrik { position: fixed; inset: 0; z-index: 10000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; transition: opacity .45s; }
.feest-finale { pointer-events: none; }
.feest-finale svg { filter: drop-shadow(0 6px 10px rgba(27,37,64,.25)); }
.feest-finale b { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1.5px solid #1B2540; color: #1B2540; font-size: 15px; }
.feest-finale.weg, .feest-schrik.weg { opacity: 0; }
/* halloween */
.feest-schrik { background: rgba(12,14,24,.86); cursor: pointer; }
.feest-schrik svg { max-width: 60vw; max-height: 60vh; }
.feest-schrik b { font: 800 54px/1 "Orbitron", sans-serif; letter-spacing: .08em; color: #F28C28; }
/* koningsdag: oranje boven */
html.feest-koningsdag { --green: #F28C28; --green-55: #F9C58D; --green-40: #FBD9B5; --accent: #EE7D11; --accent-soft: #FDEBD8; --accent-ink: #B85A06; --bg: #FCF4EA; }
html.feest-koningsdag .topbar .btn.primary:hover { background: #D96C08; }
html.feest-koningsdag .feest-vlaggen { position: relative; height: 0; z-index: 4; pointer-events: none; }
html.feest-koningsdag .feest-vlaggen::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='26'%3E%3Cpath d='M4 5h24L16 23z' fill='%23E7A0A0'/%3E%3Cpath d='M2 3h24L14 21z' fill='none' stroke='%23232F4B' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='M32 5h24L44 23z' fill='%23fff'/%3E%3Cpath d='M30 3h24L42 21z' fill='none' stroke='%23232F4B' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='M60 5h24L72 23z' fill='%23BFD3E6'/%3E%3Cpath d='M58 3h24L70 21z' fill='none' stroke='%23232F4B' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='M88 5h24L100 23z' fill='%23F3C69A'/%3E%3Cpath d='M86 3h24L98 21z' fill='none' stroke='%23232F4B' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='M0 2.5H112' stroke='%23232F4B' stroke-width='1.8'/%3E%3C/svg%3E") repeat-x; }
.feest-kraam { position: fixed; left: max(12px, calc(50% - 590px - 170px)); bottom: 14px; z-index: 9996; display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 10px;
  border: 1.7px solid #232F4B; border-radius: 10px; background: #fff; color: #232F4B; font: 700 13px/1.15 "DM Sans", sans-serif; cursor: pointer; box-shadow: 4px 4px 0 #F3A55C; transform: rotate(-3deg); text-align: left; }
.feest-kraam small { display: block; font-weight: 500; font-size: 11px; }
.feest-kraam:hover { transform: rotate(-1deg) translateY(-2px); }
.feest-spel { position: fixed; inset: 0; z-index: 10000; background: rgba(27,37,64,.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.spel-paneel { width: min(560px, 100%); background: #fff; border: 1.7px solid #232F4B; border-radius: 14px; overflow: hidden; box-shadow: 6px 6px 0 #F3A55C; color: #232F4B; }
.spel-kop { display: flex; align-items: center; gap: 16px; padding: 10px 14px; background: #F3C69A; border-bottom: 1.7px solid #232F4B; font-size: 13px; }
.spel-kop b { font-size: 15px; margin-right: auto; }
.spel-kop .sluit { border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: #1B2540; padding: 0 2px; }
.spel-veld { position: relative; height: 300px; overflow: hidden; cursor: crosshair; touch-action: none; user-select: none;
  background: linear-gradient(#EAF1F8 0 70%, #DDE7DF 70%); }
.spel-hoofd { position: absolute; left: 0; top: 0; width: 64px; height: 70px; will-change: transform; pointer-events: none; }
.spel-hoofd .oei, .spel-hoofd.geraakt .blij { display: none; }
.spel-hoofd.geraakt .oei { display: inline; }
.spel-toonbank { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: repeating-linear-gradient(90deg, #EBD9BF 0 46px, #232F4B 46px 47.7px); border-top: 1.7px solid #232F4B; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.spel-toonbank span { padding: 5px 12px; background: #fff; border: 1.7px solid #1B2540; border-radius: 6px; font: 700 12px/1 "Orbitron", sans-serif; letter-spacing: .08em; }
.spel-ei, .spel-splat { position: absolute; left: 0; top: 0; pointer-events: none; line-height: 0; }
.spel-ei { z-index: 3; }
.feest-walker.vlieg.klik { pointer-events: auto; cursor: pointer; }
.feest-spel.liefde .spel-paneel { width: min(440px, 100%); box-shadow: 6px 6px 0 #E7A0A0; }
.feest-spel.liefde .spel-kop { background: #F7D3DB; }
.liefde-veld { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 18px 12px; margin: 0; }
.liefde-cupido svg { display: block; width: 120px; height: auto; overflow: visible; }
.liefde-namen { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; width: 100%; }
.liefde-namen input { width: 100%; min-width: 0; padding: 8px 10px; border: 1.5px solid #C9CFDB; border-radius: 8px; font: inherit; font-size: 14px; color: #232F4B; background: #fff; }
.liefde-namen input:focus { outline: none; border-color: #E7A0A0; box-shadow: 0 0 0 3px #F7D3DB; }
.liefde-namen span { line-height: 0; }
.liefde-uitslag { width: 100%; text-align: center; }
.liefde-balk { height: 14px; border: 1.7px solid #232F4B; border-radius: 999px; background: #fff; overflow: hidden; }
.liefde-balk i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(135deg, #E7A0A0 0 8px, #F2B8C6 8px 16px); }
.liefde-pct { margin-top: 8px; font: 700 28px/1 "Orbitron", sans-serif; color: #C9566E; }
.liefde-oordeel { min-height: 1.4em; margin: 6px 0 0; font-size: 14px; }
.liefde-klein { margin: 0; font-size: 11px; color: #6B7488; }
html.feest-valentijn .feest-icon + .feest-icon svg { transform: rotate(-4deg); }
.spel-voet { display: flex; align-items: center; gap: 12px; padding: 10px 14px; font-size: 13px; min-height: 48px; }
.spel-voet .msg { margin-right: auto; }
.feest-toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 10001; padding: 9px 16px; border-radius: 999px; background: #1B2540; color: #fff; font-size: 13.5px; font-weight: 600; box-shadow: 0 6px 18px rgba(27,37,64,.3); transition: opacity .4s; }
.feest-toast.weg { opacity: 0; }
.feest-vonk { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; box-shadow: 0 0 6px currentColor; will-change: transform; }
.feest-klok { position: fixed; right: max(16px, calc(50% - 590px - 190px)); bottom: 14px; z-index: 9996; padding: 8px 14px; border-radius: 10px; background: #1B2540; color: #fff; font-size: 13px; box-shadow: 0 4px 14px rgba(27,37,64,.3); }
.feest-klok b { font: 700 16px/1 "Orbitron", sans-serif; letter-spacing: .04em; color: #E2B93B; }
.feest-klok small { opacity: .75; font-size: 11px; }
.feest-spin { position: fixed; top: 0; z-index: 9998; width: 44px; margin-left: -22px; pointer-events: none; }
.feest-spin i { position: absolute; left: 21.2px; top: -400px; bottom: 30px; width: 1.6px; background: #1B2540; opacity: .7; }
.feest-spin svg { position: absolute; left: 0; bottom: 0; }
/* 1 april: het lek */
.feest-lek { position: fixed; inset: 0; z-index: 9999; pointer-events: none; overflow: hidden; }
.lek-water { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: rgba(91,155,208,.5); }
.lek-water::before { content: ""; position: absolute; left: 0; right: 0; top: -11px; height: 12px; animation: lek-golf 1.6s linear infinite;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='12'%3E%3Cpath d='M0 6 Q20 -4 40 6 T80 6 V12 H0Z' fill='%235B9BD0' fill-opacity='.5'/%3E%3C/svg%3E") repeat-x; }
@keyframes lek-golf { to { background-position-x: 80px; } }
.lek-scheur { position: absolute; left: 0; width: 48px; height: 48px; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; touch-action: none; line-height: 0; }
.lek-scheur .dicht, .lek-scheur.vast .open { display: none; }
.lek-scheur.vast .dicht { display: inline; }
.lek-straal { position: absolute; left: 22px; overflow: visible; }
.lek-straal .glans { animation: lek-stroom .5s linear infinite; }
@keyframes lek-stroom { to { stroke-dashoffset: -26; } }
.lek-tip { position: absolute; z-index: 2; left: 14px; padding: 6px 11px; border-radius: 8px; background: #fff; border: 1.5px solid #232F4B; color: #232F4B; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.lek-scheur.r { left: auto; right: 0; }
.lek-straal.r { left: auto; right: 22px; transform: scaleX(-1); }
.lek-tip.r { left: auto; right: 14px; }
.feest-lek.vol { pointer-events: auto; }
.lek-bericht { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 30px; border-radius: 14px; background: #fff; border: 1.7px solid #232F4B; color: #232F4B; text-align: center; box-shadow: 5px 5px 0 #BFD3E6; font-size: 15px; }
.lek-bericht b { font: 800 26px/1.1 "Orbitron", sans-serif; letter-spacing: .04em; }
.lek-bericht .btn { margin-top: 6px; }
/* revisies */
details.versies { margin-top: 3px; }
details.versies summary { cursor: pointer; font-size: 12px; color: var(--ink-3); }
details.versies[open] summary { margin-bottom: 4px; }
details.versies > div { padding: 2px 0 2px 12px; border-left: 2px solid var(--line); }
.revisie-form { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
/* uitklapmenu's in de bovenbalk: los van de balk, pijltje naar de knop, icoon per regel */
.topbar .dd-menu { top: calc(100% + 12px); left: -16px; min-width: 320px; padding: 8px; border-radius: 12px; border-color: #D6DBE2; box-shadow: 0 14px 34px rgba(20, 30, 50, .2); }
.topbar nav .dd .dd-menu { top: calc(100% + 1px); }                                   /* the nav button reaches the bottom of the bar */
.topbar .gear-dd .dd-menu { left: auto; right: -8px; }
.topbar .me .dd-menu { left: auto; right: -8px; }
.topbar .dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }                 /* keeps the menu open while the mouse crosses the gap */
.topbar .dd-menu::after { content: ""; position: absolute; left: 36px; top: -6px; width: 11px; height: 11px; background: #fff; border-left: 1px solid #D6DBE2; border-top: 1px solid #D6DBE2; transform: rotate(45deg); border-top-left-radius: 2px; }
.topbar .gear-dd .dd-menu::after, .topbar .me .dd-menu::after { left: auto; right: 20px; }
.topbar .dd-menu .dd-kop { padding: 4px 10px 6px; font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.topbar .dd-menu .mi { display: grid; grid-template-columns: 36px 1fr auto; column-gap: 12px; align-items: center; padding: 8px 10px; border-radius: 7px; color: var(--ink); font-weight: 500; }
.topbar .dd-menu .mi + .mi, .topbar .dd-menu .mi + form, .topbar .dd-menu form + .mi { margin-top: 2px; }
.topbar .me .dd-menu button.mi { width: 100%; padding: 8px 10px; text-align: left; }
.topbar .dd-menu button.mi:hover { background: var(--paper-2); }
.topbar .dd-menu .mi-ic { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft, #E9F0EB); color: var(--accent-ink, #4E7259); transition: background .12s, color .12s; }
.topbar .dd-menu .mi:hover .mi-ic, .topbar .dd-menu .mi.active .mi-ic { background: var(--accent, #678F72); color: #fff; }
.topbar .dd-menu .mi-pijl { color: var(--ink-3); font-size: 18px; line-height: 1; opacity: 0; transform: translateX(-4px); transition: opacity .12s, transform .12s; }
.topbar .dd-menu .mi:hover .mi-pijl { opacity: 1; transform: none; }
.topbar .dd-menu a.mi.active { box-shadow: none; }
details.versies > .versie-rij { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
details.versies .versie-rij form { margin: 0; flex-shrink: 0; }
.btn.danger-link { color: #B42318; border-color: #F1C9C4; background: #fff; }
.btn.danger-link:hover { background: #FDECEA; }
.topbar .dd-menu .dd-kop2 { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.topbar .dd-menu .dd-lijn { height: 1px; background: var(--line); margin: 6px 2px; }
.topbar .me.active .initials { box-shadow: 0 0 0 2px var(--green); }
/* gebruikers */
.user-list { display: flex; flex-direction: column; gap: 10px; }
details.user { padding: 0; }
details.user > summary { list-style: none; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto 18px; align-items: center; column-gap: 14px; padding: 12px 18px; cursor: pointer; border-radius: 10px; }
details.user > summary::-webkit-details-marker { display: none; }
details.user > summary:hover { background: var(--paper-2); }
details.user[open] > summary { border-bottom: 1px solid var(--line); border-radius: 10px 10px 0 0; }
.user .avatar { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.user .avatar.uit { background: var(--paper-2); color: var(--ink-3); }
.user .avatar.plus { background: #fff; border: 1.5px dashed var(--line); color: var(--ink-3); font-size: 20px; font-weight: 400; }
.user .who b { display: block; font-size: 15px; }
.user .who small { display: block; color: var(--ink-3); font-size: 12.5px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user .user-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.user .chev { color: var(--ink-3); font-size: 11px; transition: transform .15s; }
details.user[open] .chev { transform: rotate(180deg); }
.user .userform { padding: 4px 18px 18px; }
.user .user-cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0 34px; }
@media (max-width: 900px) { .user .user-cols { grid-template-columns: 1fr; } details.user > summary { grid-template-columns: 42px minmax(0, 1fr) 18px; } .user .user-tags { grid-column: 2; grid-row: 2; justify-content: flex-start; margin-top: 6px; } }
.user h3 { margin: 18px 0 2px; font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-ink); }
.user .user-checks { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 14px; }
.user .user-checks label { display: flex; gap: 8px; align-items: flex-start; margin: 0; cursor: pointer; }
.user .user-checks input { margin-top: 3px; }
.user .user-checks small { display: block; color: var(--ink-3); font-weight: 400; font-size: 12px; }
.user .check-inline { display: flex; gap: 6px; align-items: center; margin: 10px 0 0; }
.user .sig-current { min-height: 64px; display: flex; align-items: center; padding: 8px 16px; margin: 8px 0 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-2); box-sizing: border-box; }
.user .sig-current img { max-height: 70px; max-width: 260px; }
.user .sig-pad { width: 100%; max-width: 480px; height: 140px; border: 1px dashed var(--line); border-radius: 8px; background: #fff; touch-action: none; cursor: crosshair; display: block; }
.user .sig-pad-wrap { max-width: 480px; }
.user .actions { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.user .actions { display: flex; align-items: center; }
details.verwijderd { margin-top: 8px; }
details.verwijderd > summary { cursor: pointer; color: var(--ink-3); font-size: 13px; padding: 6px 2px; }
.weg-rij { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 8px 14px; margin-top: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.weg-rij .avatar { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: var(--paper-2); color: var(--ink-3); }
.user.vast { padding: 0; }
.user .user-rij { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto 0; align-items: center; column-gap: 14px; padding: 12px 18px; }
.account-cols { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr); gap: 18px; align-items: start; }
.account-cols > .card.user { padding: 20px 22px; }
@media (max-width: 1000px) { .account-cols { grid-template-columns: 1fr; } }
/* inloggen in twee stappen */
.twofa { max-width: 860px; }
.twofa .stappen { padding-left: 20px; margin: 14px 0; }
.twofa .stappen > li { margin-bottom: 18px; padding-left: 4px; }
.twofa .qr-rij { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.twofa .qr-rij img { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.twofa .sleutel { display: block; margin: 6px 0; padding: 8px 12px; border-radius: 8px; background: var(--paper-2); font-size: 15px; letter-spacing: .08em; user-select: all; }
.twofa .code-form { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.twofa .code-form input { width: 170px; font-size: 22px; letter-spacing: .25em; text-align: center; }
.twofa .codes { display: grid; grid-template-columns: repeat(4, max-content); gap: 8px 14px; margin: 14px 0; }
.twofa .codes code { padding: 7px 12px; border-radius: 8px; background: var(--paper-2); font-size: 15px; }
@media (max-width: 700px) { .twofa .codes { grid-template-columns: repeat(2, max-content); } }
.twofa-acties { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 800px) { .twofa-acties { grid-template-columns: 1fr; } }
.twofa-acties h3 { margin: 0 0 2px; font-size: 14px; }
.twofa-kort { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

/* selection bar above the report list */
.sel-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; padding: 8px 12px;
           background: #FBEFEF; border: 1px solid #F0CACA; border-radius: 8px; font-size: 13px; }
.sel-bar #rdel-n { font-weight: 600; margin-right: auto; }

/* dropdown with a search field inside (apparatus on 'Nieuw rapport') */
.combo { position: relative; }
.combo-native { position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; opacity: 0; pointer-events: none; margin: 0; padding: 0; border: 0; }
.combo-btn { display: block; width: 100%; text-align: left; font: inherit; color: var(--ink, #232F4B); background: #fff; cursor: pointer;
             border: 1px solid var(--line, #D5DAE3); border-radius: 6px; padding: 8px 32px 8px 10px; font-size: 13.5px; min-height: 36px;
             white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
             background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.5 6 6l4.5-4.5' fill='none' stroke='%23232F4B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
             background-repeat: no-repeat; background-position: right 12px center; }
.combo-btn:focus, .combo-btn[aria-expanded=true] { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.combo-pop { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line, #D5DAE3);
             border-radius: 10px; box-shadow: 0 10px 28px rgba(35, 47, 75, .16); padding: 8px; }
.combo-pop input { margin: 0 0 6px; }
.combo-pop ul { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow-y: auto; }
.combo-pop li { padding: 6px 10px; border-radius: 6px; cursor: pointer; font-size: 13.5px; }
.combo-pop li:hover { background: var(--accent-soft, #E7F0E9); }
.combo-pop li[aria-selected=true] { background: var(--accent-soft, #E7F0E9); font-weight: 600; }
.combo-pop li.leeg { color: #6B7488; font-style: italic; cursor: default; background: none; }
.combo-pop li.nieuw { border-top: 1px solid var(--line, #E3E6EC); border-radius: 0 0 6px 6px; margin-top: 4px; color: var(--accent-ink, #4E7259); }

/* workflow: what waits for you, and who signed */
.nav-badge { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: #E7A0A0; color: #232F4B;
             font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; vertical-align: 1px; }
.todo-card { border-left: 4px solid var(--accent); }
.todo-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 8px 6px; border-top: 1px solid var(--line-soft); color: inherit; text-decoration: none; }
.todo-row:first-of-type { border-top: 0; }
.todo-row:hover { background: var(--paper-2); }
.wf-signed { color: var(--accent-ink); font-weight: 600; font-size: 12.5px; }
.wf-wait { color: var(--ink-3); font-size: 12.5px; }
.wf-back { background: #FBEFEF; border: 1px solid #F0CACA; border-radius: 8px; padding: 10px 12px; margin: 8px 0; font-size: 13px; }
.wf-reject { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.wf-reject textarea { min-height: 54px; }

/* grouped table (apparatus per client) and the calibration notice on the start page */
table.data tr.grp td { background: var(--paper-2); font-weight: 600; font-size: 13px; padding-top: 9px; padding-bottom: 9px; border-top: 1px solid var(--line); }
table.data tr.grp .grp-n { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 9px; background: var(--line-soft); color: var(--ink-2); font-size: 11.5px; font-weight: 600; }
.cal-note { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: baseline; }
.cal-note > a:last-child { margin-left: auto; white-space: nowrap; }

table.data tr.grp td { padding: 0; }
.grp-btn { all: unset; box-sizing: border-box; cursor: pointer; padding: 9px 10px; font-weight: 600; font-size: 13px; color: var(--ink); }
.grp-btn:hover { color: var(--accent-ink); }
.grp-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 4px; }
.grp-pijl { display: inline-block; width: 12px; color: var(--ink-3); transition: transform .12s; }
table:not(.zoekt) tbody.dicht .grp-pijl { transform: rotate(-90deg); }
table:not(.zoekt) tbody.dicht tr:not(.grp) { display: none !important; }
.grp-link { float: right; padding: 10px 12px; font-weight: 400; }

.ms-late { color: var(--fail); font-weight: 600; } .ms-soon { color: #9A5B00; font-weight: 600; } .ms-ok { color: var(--pass); }
.tile-btn.on .v { color: #fff; }

/* an action of the page itself (add an apparatus / a set): outlined, so the green 'Nieuw rapport' stays the one main button */
.btn.accent-line { background: var(--paper); border-color: var(--accent); color: var(--accent-ink); }
.btn.accent-line:hover { background: var(--accent-soft); }
