:root {
  --groen: #1B6B35;
  --groen-licht: #e8f3ec;
  --groen-mid: #2d8a4a;
  --oranje: #C8671A;
  --oranje-licht: #fdf0e8;
  --bg: #f7f8f6;
  --surface: #ffffff;
  --border: #d4ddd6;
  --fg: #1a2420;
  --fg-muted: #5a6b60;
  --score-1: #d9534f;
  --score-2: #e88c2a;
  --score-3: #f0c040;
  --score-4: #5aab5a;
  --score-5: #1B6B35;
  --radius: 10px;
  --shadow: 0 2px 8px rgba(27,107,53,0.10);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131a15;
    --surface: #1e2820;
    --border: #2d3d31;
    --fg: #e8f0ea;
    --fg-muted: #8aaa90;
    --groen-licht: #1e3225;
    --oranje-licht: #2a1e10;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #131a15;
  --surface: #1e2820;
  --border: #2d3d31;
  --fg: #e8f0ea;
  --fg-muted: #8aaa90;
  --groen-licht: #1e3225;
  --oranje-licht: #2a1e10;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  font-size: 15px;
  line-height: 1.6;
  padding: 0 0 40px;
}

/* HEADER */
.header {
  background: var(--groen);
  color: white;
  padding: 28px 32px 22px;
}
.header-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}
.logo-badge {
  background: rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
}
.header h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.header-sub {
  font-size: 13px;
  opacity: 0.82;
  margin-top: 4px;
}

/* META ROW */
.meta-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 32px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.meta-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.meta-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--fg-muted);
}
.meta-input {
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 14px;
  font-family: inherit;
  background: var(--bg);
  color: var(--fg);
  min-width: 160px;
}
.meta-input:focus { outline: none; border-color: var(--groen); }
.meta-field.wide .meta-input { min-width: 240px; }

/* CONTENT */
.content {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 20px 0;
}

/* SECTION */
.section {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.section-header {
  background: var(--groen-licht);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-num {
  background: var(--groen);
  color: white;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.section-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--groen);
}
.section-desc {
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 1px;
}

.questions { padding: 8px 0; }

/* QUESTION */
.q {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.q:last-child { border-bottom: none; }

.q-label {
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
}
.q-num {
  color: var(--fg-muted);
  font-weight: 400;
  flex-shrink: 0;
  min-width: 22px;
}

/* LIKERT SCALE */
.likert {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.likert-opt {
  flex: 1;
  min-width: 48px;
}
.likert-opt input[type="radio"] { display: none; }
.likert-opt label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  border-radius: 7px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  font-size: 12px;
  color: var(--fg-muted);
  background: var(--bg);
}
.likert-opt label .score-num {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}
.likert-opt label .score-txt {
  font-size: 10px;
  line-height: 1.2;
}
.likert-opt input:checked + label {
  color: white;
  border-color: transparent;
}

/* Score colors */
.likert-opt.s1 input:checked + label { background: var(--score-1); }
.likert-opt.s2 input:checked + label { background: var(--score-2); }
.likert-opt.s3 input:checked + label { background: var(--score-3); color: #333; }
.likert-opt.s4 input:checked + label { background: var(--score-4); }
.likert-opt.s5 input:checked + label { background: var(--score-5); }
.likert-opt.s6 input:checked + label { background: #1a5a28; }
.likert-opt.s7 input:checked + label { background: #134d22; }
.likert-opt.s8 input:checked + label { background: var(--oranje); }
.likert-opt.s9 input:checked + label { background: #b05a16; }
.likert-opt.s10 input:checked + label { background: #963e0a; }

.likert-opt:hover label { border-color: var(--groen); }

/* YN (ja/nee) */
.yn { display: flex; gap: 8px; }
.yn-opt input[type="radio"] { display: none; }
.yn-opt label {
  padding: 7px 20px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  background: var(--bg);
  transition: all 0.15s;
}
.yn-opt.ja input:checked + label { background: var(--groen); color: white; border-color: var(--groen); }
.yn-opt.nee input:checked + label { background: var(--score-1); color: white; border-color: var(--score-1); }
.yn-opt.nvt input:checked + label { background: var(--fg-muted); color: white; border-color: var(--fg-muted); }
.yn-opt:hover label { border-color: var(--groen); }

/* TEXT AREA */
.text-q textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13.5px;
  background: var(--bg);
  color: var(--fg);
  resize: vertical;
  min-height: 72px;
  transition: border-color 0.15s;
  line-height: 1.5;
}
.text-q textarea:focus { outline: none; border-color: var(--groen); }
.text-q textarea::placeholder { color: var(--fg-muted); }

/* OVERALL SCORE */
.score-display {
  background: var(--groen-licht);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.score-big {
  font-size: 52px;
  font-weight: 700;
  color: var(--groen);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  min-width: 80px;
}
.score-info h3 { font-size: 15px; font-weight: 600; }
.score-info p { font-size: 13px; color: var(--fg-muted); margin-top: 2px; }
.score-bar-wrap {
  flex: 1;
  background: var(--border);
  border-radius: 4px;
  height: 10px;
  overflow: hidden;
  margin-top: 8px;
}
.score-bar-fill {
  height: 100%;
  background: var(--groen);
  border-radius: 4px;
  transition: width 0.4s;
  width: 0%;
}

/* AANBEVELING */
.aanbeveling-opts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.aanbeveling-opts .aanbeveling-opt input[type="radio"] { display: none; }
.aanbeveling-opts .aanbeveling-opt label {
  padding: 9px 16px;
  border-radius: 7px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  background: var(--bg);
  color: var(--fg);
  transition: all 0.15s;
}
.aanbeveling-opt.ja input:checked + label { background: var(--groen); color: white; border-color: var(--groen); }
.aanbeveling-opt.misschien input:checked + label { background: var(--oranje); color: white; border-color: var(--oranje); }
.aanbeveling-opt.nee input:checked + label { background: var(--score-1); color: white; border-color: var(--score-1); }
.aanbeveling-opt:hover label { border-color: var(--groen); }

/* SUBMIT */
.bottom-bar {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
}
.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn {
  padding: 11px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s;
}
.btn-primary {
  background: var(--groen);
  color: white;
}
.btn-primary:hover { background: var(--groen-mid); }
.btn-secondary {
  background: transparent;
  color: var(--fg);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { border-color: var(--groen); color: var(--groen); }

/* PRINT STYLES */
@media print {
  body { background: white; color: black; }
  .section, .score-display { box-shadow: none; border: 1px solid #ccc; }
  .header { background: #1B6B35 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .btn-row { display: none; }
}

/* COMPLETENESS */
.progress-bar-wrap {
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 8px;
}
.progress-fill {
  height: 100%;
  background: rgba(255,255,255,0.9);
  border-radius: 2px;
  transition: width 0.3s;
  width: 0%;
}
.progress-label {
  font-size: 12px;
  opacity: 0.75;
  margin-top: 4px;
}

/* NOTE */
.q-note {
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: -6px;
  margin-bottom: 8px;
  font-style: italic;
}

/* TOELICHTING */
.toelichting {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.toelichting label {
  font-size: 12px;
  color: var(--fg-muted);
}
.toelichting textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 7px 10px;
  font-family: inherit;
  font-size: 13px;
  background: var(--bg);
  color: var(--fg);
  resize: vertical;
  min-height: 50px;
  transition: border-color 0.15s;
  line-height: 1.4;
}
.toelichting textarea:focus { outline: none; border-color: var(--groen); }
.toelichting textarea::placeholder { color: var(--fg-muted); opacity: 0.7; }

/* ================= Aanvullingen voor het beoordelingssysteem ================= */
[hidden] { display: none !important; }
a { color: var(--groen); }
:root { --rood: #d9534f; --focus: 0 0 0 3px rgba(27,107,53,0.25); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) a { color: #7fd197; }
}

.header-top { flex-wrap: wrap; }
.header-user { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 13px; }
.header-user form { display: inline; }
.linkbtn { background: none; border: 1px solid rgba(255,255,255,0.5); color: #fff; border-radius: 6px; padding: 4px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.linkbtn:hover { background: rgba(255,255,255,0.15); }

.nav { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 14px; }
.nav a { color: #fff; text-decoration: none; padding: 6px 14px; border-radius: 7px; font-size: 13px; font-weight: 500; background: rgba(255,255,255,0.12); }
.nav a:hover { background: rgba(255,255,255,0.22); }
.nav a.active { background: #fff; color: var(--groen); font-weight: 600; }

.meta-static { font-size: 14px; padding: 5px 0; font-weight: 500; }
select.meta-input { min-width: 280px; max-width: 100%; }
.meta-bar .meta-field.wide { flex: 1 1 280px; }

.flash { max-width: 820px; margin: 16px auto 0; padding: 12px 16px; border-radius: 8px; font-size: 14px; border: 1px solid var(--border); background: var(--surface); }
.flash.inline { margin: 0 0 16px; max-width: none; }
.flash-ok { background: var(--groen-licht); border-color: rgba(27,107,53,0.35); }
.flash-error { background: #fdecea; border-color: #f0b4b0; color: #7a1f1a; }
.flash-info { background: var(--oranje-licht); border-color: rgba(200,103,26,0.3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .flash-error { background: #3a1f1d; color: #f4b9b4; border-color: #6b2d29; } }
.flash code, .linkbox { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; word-break: break-all; }
.linkbox { display: block; margin-top: 6px; padding: 8px 10px; background: var(--bg); border: 1px dashed var(--border); border-radius: 6px; user-select: all; }

main.content { max-width: 820px; }
main.content.wide, .content.wide { max-width: 1180px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 20px; box-shadow: var(--shadow); }
.card h2 { font-size: 17px; margin-bottom: 10px; color: var(--groen); }
.card h3 { font-size: 15px; margin: 18px 0 8px; }
.muted { color: var(--fg-muted); }
.small { font-size: 12.5px; }
.right { text-align: right; }

.q-text { flex: 1; }
.score-sub { font-size: 12px; color: var(--fg-muted); margin-top: 2px; }
.score-display .score-info { flex: 1; }
.likert-opt input:focus-visible + label, .yn-opt input:focus-visible + label, .aanbeveling-opt input:focus-visible + label { box-shadow: var(--focus); }
input:disabled + label { cursor: default; opacity: 0.85; }
input:disabled:not(:checked) + label { opacity: 0.55; }
.likert-opt input:disabled:checked + label { opacity: 1; }
textarea[readonly] { background: var(--surface); }
.tip-box { margin: 4px 0 12px; padding: 12px 16px; background: var(--oranje-licht); border-radius: 8px; border: 1px solid rgba(200,103,26,0.3); font-size: 13px; color: var(--fg-muted); }
#reviewForm .content, .content.has-savebar { padding-bottom: 110px; }

.savebar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -4px 14px rgba(0,0,0,0.08); padding: 10px 20px calc(10px + env(safe-area-inset-bottom)); z-index: 20; }
.savebar-inner { max-width: 820px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.save-status { font-size: 13px; color: var(--fg-muted); }
.save-status.ok::before { content: "✓ "; color: var(--groen); font-weight: 700; }
.save-status.busy { color: var(--oranje); }
.save-status.err { color: var(--rood); font-weight: 600; }

.btn-row { max-width: 820px; margin: 0 auto; }
.btn-small { padding: 6px 12px; font-size: 13px; border-radius: 6px; text-decoration: none; display: inline-block; line-height: 1.4; }
.btn-danger { background: transparent; color: var(--rood); border: 1.5px solid var(--rood); }
.btn-danger:hover { background: var(--rood); color: #fff; }
a.btn { text-decoration: none; display: inline-block; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { color: #fff !important; }

.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: var(--border); color: var(--fg); margin-left: 4px; vertical-align: middle; white-space: nowrap; }
.badge-green { background: var(--groen-licht); color: var(--groen); border: 1px solid rgba(27,107,53,0.3); }
.badge-orange { background: var(--oranje-licht); color: var(--oranje); border: 1px solid rgba(200,103,26,0.35); }
.badge-red { background: #fdecea; color: #a1302a; border: 1px solid #f0b4b0; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.7px; color: var(--fg-muted); padding: 8px 10px; border-bottom: 2px solid var(--border); white-space: nowrap; }
.table td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:last-child td { border-bottom: none; }
.table .actions { min-width: 250px; }
.table .status { min-width: 120px; }
.nowrap { white-space: nowrap; }
.table .actions form { display: inline; }
.table .actions .btn { margin: 2px 2px 2px 0; }

/* formulieren in beheer */
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack label, .grid-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.6px; }
.stack input, .grid-form input[type=text], .grid-form input[type=email], .grid-form input[type=date], .stack select {
  border: 1.5px solid var(--border); border-radius: 6px; padding: 8px 10px; font: inherit; font-size: 14px; background: var(--bg); color: var(--fg); text-transform: none; letter-spacing: 0; font-weight: 400; }
.stack input:focus, .grid-form input:focus { outline: none; border-color: var(--groen); box-shadow: var(--focus); }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 16px; align-items: end; }
.check { flex-direction: row !important; align-items: center; gap: 8px !important; text-transform: none !important; letter-spacing: 0 !important; font-size: 14px !important; font-weight: 500 !important; color: var(--fg) !important; }
.check input { width: 18px; height: 18px; accent-color: var(--groen); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; align-items: center; }

/* eenvoudige losse pagina's (login, setup, fout) */
body.simple { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.simple-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; max-width: 480px; width: 100%; }
.simple-card .logo-badge { display: inline-block; background: var(--groen); color: #fff; margin-bottom: 14px; }
.simple-card h1 { font-size: 20px; margin-bottom: 12px; color: var(--groen); }
.simple-card p { margin-bottom: 10px; }
.simple-card .flash { margin: 0 0 14px; }

/* resultaten */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 18px; border-bottom: 2px solid var(--border); }
.tabs a { padding: 8px 16px; text-decoration: none; font-weight: 500; font-size: 14px; color: var(--fg-muted); border-radius: 7px 7px 0 0; margin-bottom: -2px; border-bottom: 2px solid transparent; }
.tabs a:hover { color: var(--groen); }
.tabs a.active { color: var(--groen); border-bottom-color: var(--groen); font-weight: 600; }

.vendor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; margin-bottom: 20px; }
.vcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.vcard h3 { font-size: 16px; margin: 0; }
.vcard .vdate { font-size: 12.5px; color: var(--fg-muted); margin-bottom: 12px; }
.vstats { display: flex; align-items: flex-end; gap: 22px; flex-wrap: wrap; }
.vstat .num { font-size: 34px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.vstat.avg .num { color: var(--groen); font-size: 44px; }
.vstat .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.7px; color: var(--fg-muted); margin-top: 4px; }
.vstat.min .num { color: var(--score-1); }
.vstat.max .num { color: var(--groen); }
.vcard .vn { font-size: 12.5px; color: var(--fg-muted); margin-top: 12px; }
.vcard .vlink { margin-top: 10px; display: inline-block; font-size: 13px; font-weight: 600; }

.strip { position: relative; height: 34px; margin: 16px 6px 2px; }
.strip-line { position: absolute; left: 0; right: 0; top: 14px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #d9534f, #e88c2a 30%, #f0c040 50%, #5aab5a 75%, #1B6B35); opacity: 0.35; }
.strip-range { position: absolute; top: 12px; height: 10px; border-radius: 5px; background: var(--groen); opacity: 0.3; }
.dot { position: absolute; top: 9px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--surface); border: 3px solid var(--groen); cursor: default; }
.dot.min { border-color: var(--score-1); }
.dot.max { border-color: var(--groen); background: var(--groen); }
.dot:hover, .dot:focus { z-index: 5; transform: scale(1.25); outline: none; }
.avg-mark { position: absolute; top: 4px; width: 3px; height: 26px; margin-left: -1px; background: var(--fg); border-radius: 2px; }
.strip-scale { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--fg-muted); margin: 0 6px 4px; }

/* tooltips (ook via toetsenbord/tikken) */
[data-tip]:not(.dot):not(.avg-mark) { position: relative; }
.dot, .avg-mark { position: absolute; }
[data-tip]:hover::after, [data-tip]:focus::after {
  content: attr(data-tip); white-space: pre; position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
  background: #1a2420; color: #fff; padding: 6px 10px; border-radius: 6px; font-size: 12px; font-weight: 500; line-height: 1.4; z-index: 30; pointer-events: none; text-align: left;
  font-family: 'Inter', Arial, sans-serif; text-transform: none; letter-spacing: 0; }
[data-tip]:hover::before, [data-tip]:focus::before { content: ""; position: absolute; left: 50%; bottom: calc(100% + 2px); transform: translateX(-50%); border: 6px solid transparent; border-top-color: #1a2420; border-bottom: 0; z-index: 30; }
.tipnum { border-bottom: 1px dotted currentColor; cursor: help; }

.heat td.cell { text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; min-width: 90px; }
.heat th.vh { text-align: center; text-transform: none; font-size: 12.5px; letter-spacing: 0; color: var(--fg); }
.heat tr.secrow td { background: var(--groen-licht); font-weight: 700; color: var(--groen); font-size: 12.5px; padding: 6px 10px; }

.qbar { display: flex; align-items: center; gap: 10px; }
.qbar-track { flex: 1; height: 10px; background: var(--border); border-radius: 5px; overflow: hidden; min-width: 120px; }
.qbar-fill { height: 100%; background: var(--groen); border-radius: 5px; }
.qbar-val { min-width: 76px; font-variant-numeric: tabular-nums; font-weight: 600; }
.dist { display: flex; gap: 6px; flex-wrap: wrap; }

.answers-q { margin-bottom: 20px; }
.answers-q h3 { font-size: 14px; margin: 0 0 8px; }
.answers-q .qn { color: var(--fg-muted); font-weight: 400; margin-right: 6px; }
.quote { border-left: 3px solid var(--groen); background: var(--bg); padding: 8px 12px; border-radius: 0 7px 7px 0; margin-bottom: 8px; font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.quote .by { display: block; font-size: 12px; color: var(--fg-muted); margin-top: 4px; white-space: normal; }

.matrix td.sc, .matrix th.sc { text-align: center; white-space: nowrap; }
.matrix td.sc a { display: inline-block; min-width: 46px; padding: 3px 8px; border-radius: 6px; text-decoration: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.matrix td.sc.na { color: var(--fg-muted); }
.matrix tfoot td { font-weight: 700; border-top: 2px solid var(--border); background: var(--groen-licht); }

@media (max-width: 640px) {
  .header, .meta-bar { padding-left: 16px; padding-right: 16px; }
  select.meta-input { min-width: 0; width: 100%; }
  .savebar-inner { flex-direction: column; align-items: stretch; gap: 8px; text-align: center; }
  .vendor-grid { grid-template-columns: 1fr; }
}

@media print {
  .nav, .savebar, .btn-row, .tip-box, .header-user, .progress-bar-wrap, .progress-label, noscript { display: none !important; }
  #reviewForm .content { padding-bottom: 0; }
  .section { break-inside: avoid; }
  .meta-input { border: none; background: none; appearance: none; -webkit-appearance: none; padding: 0; font-weight: 600; }
}
