/* Customer report (ÄB-26): screen preview and A4 print. Self-contained, so the HTML export can embed it. */
.cr {
  --cr-ink: #17212b; --cr-muted: #526171; --cr-line: #e9e1d5; --cr-soft: #fbf8f3; --cr-navy: #101a2b;
  --cr-rasp: #C53059; --cr-rasp-text: #a8264c; --cr-rasp-soft: #fbe7ed; --cr-ok: #1e6b3a; --cr-ok-bg: #e5f4ea;
  --cr-bad: #a4262c; --cr-bad-bg: #fdeced; --cr-warn: #3d2800; --cr-warn-bg: #fff6e2; --cr-pos: #2f7d55; --cr-neg: #c44969; --cr-other: #c9c1b4;
  font-family: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--cr-ink); background: #fff; line-height: 1.55; font-size: 15px;
  max-width: 820px; margin: 0 auto; padding: 48px 56px 32px; box-sizing: border-box;
}
.cr *, .cr *::before, .cr *::after { box-sizing: border-box; }
.cr-body { margin: 0; background: #f3eee6; padding: 24px 0; }
.cr h1 { font-size: 34px; line-height: 1.15; margin: 4px 0 18px; letter-spacing: -.01em; }
.cr h2 { font-size: 21px; margin: 0 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--cr-line); }
.cr h3 { font-size: 15px; margin: 18px 0 6px; }
.cr p { margin: 0 0 10px; }

.cr-head { border-bottom: 4px solid var(--cr-rasp); padding-bottom: 18px; margin-bottom: 26px; }
.cr-brand { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--cr-navy); margin: 0 0 6px; }
.cr-brand::after { content: ''; display: block; width: 44px; height: 4px; border-radius: 2px; background: var(--cr-rasp); margin-top: 8px; }
.cr-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--cr-rasp-text); margin: 0; }
.cr-meta { display: grid; grid-template-columns: repeat(4, auto); gap: 4px 28px; margin: 0 0 14px; justify-content: start; }
.cr-meta dt { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--cr-muted); }
.cr-meta dd { margin: 0; font-weight: 600; }
.cr-status { display: inline-block; font-weight: 700; font-size: 13px; padding: 4px 12px; border-radius: 999px; margin: 0; }
.cr-ok { background: var(--cr-ok-bg); color: var(--cr-ok); }
.cr-draft { background: var(--cr-warn-bg); color: var(--cr-warn); }
.cr-bad { background: var(--cr-bad-bg); color: var(--cr-bad); }
.cr-draftnote { font-size: 13px; color: var(--cr-muted); margin: 8px 0 0; }

.cr-section { margin: 0 0 30px; }
.cr-intro, .cr-muted, .cr-more { color: var(--cr-muted); font-size: 13px; }
.cr-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cr-tiles li { border: 1px solid var(--cr-line); border-top: 4px solid var(--cr-navy); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; }
.cr-tiles li:nth-child(2) { border-top-color: var(--cr-rasp); }
.cr-tiles li:nth-child(3) { border-top-color: #b48b42; }
.cr-tiles li:nth-child(4) { border-top-color: var(--cr-pos); }
.cr-tile-v { font-size: 28px; font-weight: 700; line-height: 1.1; }
.cr-tile-l { font-weight: 600; font-size: 13px; margin-top: 4px; }
.cr-tile-n { color: var(--cr-muted); font-size: 12px; }

.cr-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.cr-sum { background: var(--cr-soft); border-radius: 10px; padding: 12px 16px; border-left: 4px solid var(--cr-line); }
.cr-sum h3 { margin: 0 0 6px; }
.cr-sum ul { margin: 0; padding-left: 18px; font-size: 14px; }
.cr-sum li { margin-bottom: 4px; }
.cr-sum-strength { border-left-color: var(--cr-pos); }
.cr-sum-problem { border-left-color: var(--cr-neg); }
.cr-sum-gap { border-left-color: #b48b42; }
.cr-sum-question { border-left-color: var(--cr-navy); }

.cr-legend { font-size: 12px; color: var(--cr-muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cr-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-left: 10px; }
.cr-key:first-child { margin-left: 0; }
.cr-key-pos { background: var(--cr-pos); } .cr-key-neg { background: var(--cr-neg); } .cr-key-other { background: var(--cr-other); }
.cr-bars, .cr-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cr-bars th, .cr-bars td, .cr-table th, .cr-table td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--cr-line); vertical-align: middle; }
.cr-bars thead th, .cr-table thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--cr-muted); font-weight: 700; }
.cr-bars tbody th { font-weight: 600; white-space: nowrap; }
.cr-bar-col { width: 44%; }
.cr-bar { display: flex; align-items: center; gap: 8px; }
.cr-bar-svg { width: 58%; height: 12px; flex: 0 0 auto; border-radius: 3px; overflow: hidden; }
.cr-bar-bg { fill: #f1ece4; } .cr-bar-pos { fill: var(--cr-pos); } .cr-bar-neg { fill: var(--cr-neg); } .cr-bar-other { fill: var(--cr-other); }
.cr-bar-label { font-size: 12px; white-space: nowrap; }
.cr-num { text-align: right; font-variant-numeric: tabular-nums; }

.cr-insight { margin: 0 0 18px; padding: 14px 18px; border: 1px solid var(--cr-line); border-left: 4px solid var(--cr-line); border-radius: 10px; }
.cr-strength .cr-insight { border-left-color: var(--cr-pos); }
.cr-problem .cr-insight { border-left-color: var(--cr-neg); }
.cr-gap .cr-insight { border-left-color: #b48b42; }
.cr-question .cr-insight { border-left-color: var(--cr-navy); }
.cr-statement { font-weight: 600; font-size: 15.5px; }
.cr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cr-chip { background: var(--cr-soft); border: 1px solid var(--cr-line); border-radius: 999px; padding: 1px 10px; font-size: 12px; font-weight: 600; }
.cr-quote { margin: 10px 0 0; padding: 8px 14px; background: var(--cr-soft); border-radius: 8px; }
.cr-quote blockquote { margin: 0 0 4px; font-style: italic; font-size: 14px; overflow-wrap: anywhere; }
.cr-quote figcaption { font-size: 12px; color: var(--cr-muted); }
.cr-more { margin: 8px 0 0; }

.cr-recs ol { margin: 0; padding: 0; list-style: none; counter-reset: rec; }
.cr-rec { counter-increment: rec; position: relative; padding: 14px 18px 12px 58px; margin-bottom: 14px; border: 1px solid var(--cr-line); border-radius: 10px; }
.cr-rec::before { content: counter(rec); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--cr-navy); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.cr-rec-action { font-weight: 700; }
.cr-rec dl { display: grid; grid-template-columns: 170px 1fr; gap: 4px 14px; margin: 0; font-size: 13.5px; }
.cr-rec dt { color: var(--cr-muted); font-weight: 600; }
.cr-rec dd { margin: 0; }

.cr-method { font-size: 13.5px; }
.cr-list { margin: 0; padding-left: 18px; }
.cr-list li { margin-bottom: 4px; }
.cr-foot { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--cr-line); padding-top: 10px; margin-top: 30px; font-size: 11px; color: var(--cr-muted); }

.cr .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.cr-chart { margin: 4px 0 16px; break-inside: avoid; page-break-inside: avoid; }
.cr-chart .chart-canvas { width: 100%; }
.cr-chart svg { max-width: 100%; height: auto; }
.cr-ratings .cr-chart + .cr-chart { margin-top: 18px; }

@media (max-width: 760px) {
  .cr { padding: 24px 18px; }
  .cr-meta { grid-template-columns: 1fr 1fr; }
  .cr-tiles, .cr-summary-grid { grid-template-columns: 1fr 1fr; }
  .cr-rec { padding-left: 18px; } .cr-rec::before { display: none; }
  .cr-rec dl { grid-template-columns: 1fr; }
  .cr-bars tbody th { white-space: normal; }
  .cr-bar-svg { width: 40%; }
}

@page { size: A4; margin: 16mm 14mm 18mm; }
@media print {
  .cr-body { background: #fff; padding: 0; }
  .cr { max-width: none; padding: 0; font-size: 10.5pt; }
  .cr h1 { font-size: 24pt; }
  .cr-brand { font-size: 18pt; }
  .cr-brand::after { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cr h2 { font-size: 15pt; break-after: avoid; page-break-after: avoid; }
  .cr h3 { break-after: avoid; }
  .cr-tiles li, .cr-sum, .cr-quote, .cr-rec, .cr-bars tr, .cr-table tr, .cr-statement { break-inside: avoid; page-break-inside: avoid; }
  .cr-insight { break-inside: auto; }
  .cr-statement, .cr-chips { break-after: avoid; }
  .cr-recs, .cr-method { break-before: page; page-break-before: always; }
  .cr-status, .cr-tiles li, .cr-sum, .cr-quote, .cr-chip, .cr-bar-svg, .cr-rec::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
