/* report.css – rapport (skjerm-forhåndsvisning og A4-utskrift) i Sweco-stil */
.report { font-family: "Sweco Sans", Arial, Helvetica, sans-serif; color: #2b2b2b; font-size: 10pt; line-height: 1.45; }
.report h1 { font-size: 22pt; font-weight: 400; margin: 6mm 0 1mm; color: #1f1f1f; letter-spacing: -0.2pt; line-height: 1.15; }
.report .doctype { margin-top: 14mm; font-size: 9pt; text-transform: uppercase; letter-spacing: 1.2pt; color: #77777a; }
.report .subtitle { font-size: 13pt; color: #3a3a3a; margin-bottom: 8mm; }
.report .rp-head { border-bottom: 1px solid #3a3a3a; padding-bottom: 6mm; margin-bottom: 6mm; }
.report .rp-head .logo img { height: 7mm; }
.report .rp-head .logo .logotxt { font-size: 20pt; }
.report h2 { font-size: 13.5pt; font-weight: 500; color: #1f1f1f; margin: 8mm 0 3mm; padding-bottom: 1.5mm; border-bottom: 0.6pt solid #e2e0da; break-after: avoid; }
.report h2 .n { display: inline-block; min-width: 9mm; }
.report h2.nonum { margin-top: 2mm; }
.report h3 { font-size: 11pt; font-weight: 700; color: #1f1f1f; margin: 6mm 0 2mm; break-after: avoid; }
.report h4 { font-size: 10pt; font-weight: 700; margin: 4.5mm 0 1.5mm; color: #3a3a3a; break-after: avoid; }
.report p { margin: 0 0 2.5mm; }
.report ul.refs { margin: 0; padding-left: 5mm; }
.report ul.refs li { margin-bottom: 1mm; }
.report .muted { color: #77777a; }
.report sub { font-size: 72%; line-height: 0; }
.report table { border-collapse: collapse; width: 100%; margin: 2mm 0 3mm; break-inside: auto; }
.report table tr { break-inside: avoid; }
.report table.meta { width: 100%; margin-bottom: 5mm; }
.report table.meta th { text-align: left; font-weight: 400; color: #77777a; width: 42mm; padding: 1.2mm 0; vertical-align: top; }
.report table.meta td { padding: 1.2mm 0; color: #1f1f1f; }
.report table.sign th { text-align: left; font-weight: 400; font-size: 8.5pt; color: #77777a; border-top: 0.6pt solid #3a3a3a; padding: 1.5mm 2mm 0 0; }
.report table.sign td { padding: 1mm 2mm 2mm 0; height: 8mm; vertical-align: top; }
.report .tbl th, .report .tbl td { padding: 1.3mm 2mm; border-bottom: 0.5pt solid #e2e0da; text-align: left; vertical-align: top; }
.report .tbl thead th { background: #f4f3ef; font-weight: 500; font-size: 8.5pt; color: #3a3a3a; border-bottom: 0.8pt solid #3a3a3a; vertical-align: bottom; line-height: 1.25; }
.report .tbl thead th small { color: #77777a; font-weight: 400; }
.report .tbl.data { font-size: 8.5pt; }
.report .tbl.data td { padding: 1mm 1.6mm; font-variant-numeric: tabular-nums; }
.report .tbl.small { font-size: 9pt; }
.report .tbl.kv th { width: 52mm; font-weight: 400; color: #55555a; }
.report .tbl.center td, .report .tbl.center th { text-align: center; }
.report .tbl .r { text-align: right; }
.report .tbl .c { text-align: center; }
.report .tbl .b { font-weight: 700; }
.report .tbl tr.sel td { background: #faf3d6; }
.report .tbl tr.exc td { color: #a4a4a6; }
.report .tbl.sum td { font-variant-numeric: tabular-nums; }
.report .tnote { font-size: 8.5pt; color: #6b6b6e; margin-top: -1mm; }
.report .eq { font-family: "Cambria Math", "Times New Roman", serif; font-size: 10.5pt; background: #faf9f6; border-left: 2pt solid #e2e0da; padding: 1.4mm 3mm; margin: 1.2mm 0; break-inside: avoid; }
.report .eq b { font-family: "Sweco Sans", Arial, sans-serif; font-size: 10pt; }
.report .ok { color: #4f6b33; font-weight: 700; font-family: "Sweco Sans", Arial, sans-serif; font-size: 9pt; }
.report .nok { color: #821307; font-weight: 700; font-family: "Sweco Sans", Arial, sans-serif; font-size: 9pt; }
.report .result { display: grid; grid-template-columns: 1.3fr 1fr 1fr; border: 0.8pt solid #3a3a3a; margin: 2mm 0 3mm; break-inside: avoid; }
.report .result > div { padding: 2.5mm 3mm; border-right: 0.5pt solid #e2e0da; display: flex; flex-direction: column; gap: 0.6mm; }
.report .result > div:first-child { background: #faf3d6; }
.report .result > div:last-child { border-right: 0; }
.report .result .rl { font-size: 8pt; color: #6b6b6e; }
.report .result .rv { font-size: 14pt; color: #1f1f1f; font-weight: 700; }
.report .result .rv small { font-size: 9pt; font-weight: 400; color: #6b6b6e; }
.report .result .rm { font-size: 8pt; color: #6b6b6e; }
.report ul.msgs { margin: 2mm 0; padding-left: 5mm; font-size: 9pt; color: #55555a; }
.report ul.msgs li.w { color: #6b5310; }
.report .ccomment { border-left: 2pt solid #dec55b; padding: 1mm 0 1mm 3mm; margin: 3mm 0; }
.report .cons { break-before: auto; }
.report .cons + .cons { margin-top: 8mm; }
.report .fig { margin: 3mm 0; break-inside: avoid; }
.report .fig img { max-width: 100%; max-height: 150mm; display: block; border: 0.5pt solid #e2e0da; }
.report .fig figcaption { font-size: 8.5pt; color: #6b6b6e; margin-top: 1.5mm; }
.report .appendix { break-before: page; }

/* Diagram */
.report svg.chart { width: 100%; height: auto; display: block; margin-top: 3mm; break-inside: avoid; }
svg.chart .gl { stroke: #eceae4; stroke-width: 1; }
svg.chart .ax { stroke: #3a3a3a; stroke-width: 1; }
svg.chart .tk { font: 10px "Sweco Sans", Arial, sans-serif; fill: #6b6b6e; text-anchor: middle; }
svg.chart .lb { font: 10.5px "Sweco Sans", Arial, sans-serif; text-anchor: middle; }
svg.chart .lm { stroke: #3a3a3a; stroke-width: 1.4; }
svg.chart .lmt { fill: #3a3a3a; }
svg.chart .lk { stroke: #a4852f; stroke-width: 2.4; stroke-dasharray: 6 3; }
svg.chart .lkt { fill: #a4852f; font-weight: 700; }
svg.chart .lc { stroke: #7e8dab; stroke-width: 1.4; stroke-dasharray: 2 3; }
svg.chart .lct { fill: #7e8dab; }
svg.chart .pt { fill: #3a3a3a; }
svg.chart .pf { fill: #fff; stroke: #3a3a3a; stroke-width: 1.5; }
svg.chart .po { fill: #fff; stroke: #821307; stroke-width: 2; }
.report .legend { display: flex; flex-wrap: wrap; gap: 4mm; font-size: 8pt; color: #55555a; margin-top: 1mm; }
.report .legend i { display: inline-block; vertical-align: middle; margin-right: 1.5mm; }
.report .legend i.d { width: 2.5mm; height: 2.5mm; border-radius: 50%; }
.report .legend i.d.pt { background: #3a3a3a; }
.report .legend i.d.pf { border: 1.2pt solid #3a3a3a; }
.report .legend i.d.po { border: 1.5pt solid #821307; }
.report .legend i.l { width: 6mm; height: 0; border-top: 1.4pt solid #3a3a3a; }
.report .legend i.l.lk { border-top: 2pt dashed #a4852f; }
.report .legend i.l.lc { border-top: 1.4pt dotted #7e8dab; }

/* Skjermvisning av beregning (utenfor rapport) bruker samme stil */
.report.calcview { font-size: 14px; }
.report.calcview .eq { font-size: 15px; }
.report.calcview .eq b, .report.calcview .ok, .report.calcview .nok { font-size: 14px; }
.report.calcview .tbl.small, .report.calcview ul.msgs { font-size: 13px; }
.report.calcview .legend { font-size: 12px; }
.report.calcview .result .rl, .report.calcview .result .rm { font-size: 12px; }
.report.calcview .result .rv { font-size: 20px; }

@page {
  size: A4;
  margin: 18mm 17mm 20mm 17mm;
}
@media print {
  .report { font-size: 9.5pt; }
  .report .rp-head .doctype { margin-top: 12mm; }
}
.report.calcview svg.chart { max-width: 760px; }

/* Forklaringer for lesere uten fagbakgrunn */
.report .explain { border-left: 2.5pt solid #dec55b; background: #fdfaf0; padding: 2mm 3.5mm; margin: 2mm 0 3mm; font-size: 9pt; color: #3a3a3a; break-inside: avoid; }
.report .explain .xt, .report .plain .xt { font-size: 7.5pt; text-transform: uppercase; letter-spacing: 0.8pt; color: #a4852f; font-weight: 700; margin-bottom: 1mm; }
.report .explain p { margin: 0 0 1.5mm; }
.report .explain p:last-child { margin-bottom: 0; }
.report .explain ul { margin: 0; padding-left: 4.5mm; }
.report .explain li { margin-bottom: 1mm; }
.report .plain { border: 0.8pt solid #dec55b; background: #faf3d6; padding: 3mm 4mm; margin: 2mm 0 4mm; font-size: 10pt; line-height: 1.5; break-inside: avoid; }
.report .dpath { display: flex; flex-wrap: wrap; align-items: stretch; gap: 1.5mm; margin: 2mm 0 2.5mm; break-inside: avoid; }
.report .dstep { border: 0.6pt solid #cfcdc6; padding: 1.5mm 2.5mm; display: flex; flex-direction: column; justify-content: center; min-width: 26mm; background: #fff; }
.report .dstep .dk { font-size: 8pt; color: #6b6b6e; }
.report .dstep .dv { font-size: 9.5pt; color: #1f1f1f; font-weight: 700; }
.report .dstep.last { border-color: #3a3a3a; background: #faf3d6; }
.report .dpath .arr { align-self: center; color: #a4a4a6; font-size: 12pt; }
.report .override { font-size: 9pt; border-left: 2pt solid #821307; padding-left: 3mm; }
.report .msgh { font-size: 8pt; text-transform: uppercase; letter-spacing: 0.8pt; color: #77777a; margin-top: 3mm; }
.report .tbl.gloss td:first-child { white-space: nowrap; font-weight: 700; color: #1f1f1f; }
.report.calcview .explain { font-size: 13.5px; }
.report.calcview .explain .xt, .report.calcview .plain .xt { font-size: 11px; }
.report.calcview .plain { font-size: 15px; }
.report.calcview .dstep .dk { font-size: 12px; }
.report.calcview .dstep .dv { font-size: 14px; }
.report.calcview .override, .report.calcview .msgh { font-size: 13px; }

/* Sammendrag */
.report .summary h3.sh { font-size: 10.5pt; margin: 4mm 0 1.5mm; color: #1f1f1f; }
.report .facts { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 0.8pt solid #3a3a3a; border-bottom: 0.5pt solid #e2e0da; margin: 3mm 0 2mm; break-inside: avoid; }
.report .facts > div { padding: 2mm 2.5mm; display: flex; flex-direction: column; border-right: 0.5pt solid #e2e0da; }
.report .facts > div:last-child { border-right: 0; }
.report .facts span { font-size: 7.5pt; color: #77777a; text-transform: uppercase; letter-spacing: 0.6pt; }
.report .facts b { font-size: 12pt; color: #1f1f1f; font-weight: 500; }
.report .rcards { display: grid; grid-template-columns: 1fr 1fr; gap: 3mm; margin: 2mm 0 3mm; }
.report .rcard { border: 0.8pt solid #3a3a3a; border-top: 3pt solid #dec55b; padding: 3mm 3.5mm; break-inside: avoid; background: #fff; }
.report .rcard.warn { border-top-color: #821307; }
.report .rcard .rn { font-size: 10.5pt; font-weight: 700; color: #1f1f1f; margin-bottom: 2mm; line-height: 1.25; }
.report .rcard .rmain { display: grid; grid-template-columns: 1.35fr 1fr; gap: 2mm; padding-bottom: 2mm; border-bottom: 0.5pt solid #e2e0da; }
.report .rcard .rmain > div { display: flex; flex-direction: column; }
.report .rcard .lbl { font-size: 7.5pt; color: #77777a; text-transform: uppercase; letter-spacing: 0.5pt; }
.report .rcard .big { font-size: 22pt; font-weight: 700; color: #1f1f1f; line-height: 1.1; letter-spacing: -0.3pt; }
.report .rcard .big small { font-size: 10pt; font-weight: 400; color: #55555a; }
.report .rcard .rcls .big { color: #a4852f; }
.report .rcard .sym { font-size: 8.5pt; color: #6b6b6e; }
.report .rcard .rsub { display: flex; flex-wrap: wrap; gap: 1mm 4mm; font-size: 8.5pt; color: #55555a; margin-top: 2mm; }
.report .rcard .rsub b { color: #1f1f1f; }
.report .rcard .rmeth { font-size: 8pt; color: #77777a; margin-top: 1.5mm; }
.report .concl { border-left: 2.5pt solid #3a3a3a; padding: 1mm 0 1mm 4mm; font-size: 10pt; }
.report.calcview .facts b { font-size: 16px; }
.report .rcard:only-child { grid-column: 1 / -1; }
.report ul.bl { margin: 0 0 2.5mm; padding-left: 5mm; }
.report ul.bl li { margin-bottom: 1mm; }

/* ======================= v1.2: sideramme, nivåer, roligere forklaringer ======================= */
.report table.pgframe { width: 100%; border-collapse: collapse; margin: 0; }
.report table.pgframe > thead > tr > td, .report table.pgframe > tbody > tr > td { padding: 0; border: 0; vertical-align: top; }
.report .pghead { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 2.5mm; margin-bottom: 6mm; border-bottom: 0.6pt solid #3a3a3a; }
.report .pghead .logo img { height: 6mm; display: block; }
.report .pghead .logo .logotxt { font-size: 15pt; font-weight: 700; color: #1f1f1f; }
.report .pghead .pgh-r { display: flex; flex-direction: column; align-items: flex-end; font-size: 7.5pt; color: #6b6b6e; line-height: 1.35; }
.report .pgfoot-screen { margin-top: 10mm; padding-top: 2mm; border-top: 0.5pt solid #cfcdc6; font-size: 7.5pt; color: #6b6b6e; }
.report .rp-head .doctype { margin-top: 6mm; }

/* Forklaringer: diskret notat i stedet for gule bokser */
.report .explain { background: none; border-left: 1pt solid #cfcdc6; padding: 0.5mm 0 0.5mm 3mm; margin: 1.5mm 0 3mm; font-size: 8.5pt; line-height: 1.45; color: #5f5f62; font-style: normal; }
.report .explain::before { content: "Forklaring  "; font-size: 7pt; text-transform: uppercase; letter-spacing: 0.6pt; color: #8a8a8d; font-weight: 700; }
.report .explain b { color: #3a3a3a; }
.report p.plain { border: 0; background: none; padding: 0 0 2mm; margin: 0 0 3mm; border-bottom: 0.5pt solid #e2e0da; font-size: 10pt; }
.report .dstep { background: #fff; border-color: #d8d6cf; }
.report .dstep.last { background: #f4f3ef; border-color: #3a3a3a; }
.report .dpath .arr { font-size: 11pt; }
.report .result > div:first-child { background: #f4f3ef; }
.report .tbl tr.sel td { background: #f4f3ef; }
.report .rcard { border-top: 2pt solid #3a3a3a; }
.report .rcard .rcls .big { color: #1f1f1f; }
.report .ccomment { border-left-color: #3a3a3a; }
.report .eq { border-left-color: #d8d6cf; }

/* Kort format: litt mer luft i nøkkeltabellen */
.report.lvl-kort .cons .tbl.kv th { width: 48mm; }
.report.lvl-kort .cons + .cons { margin-top: 6mm; }

/* På skjerm: smalere forklaringer */
.report.calcview .explain { font-size: 13px; }
.report.calcview .explain::before { font-size: 10.5px; }
.report.calcview p.plain { font-size: 15px; }

@media print {
  .report .pgfoot-screen { display: none; }
  .report .rp-head .doctype { margin-top: 4mm; }
}

/* ======================= v1.3: ryddigere utregning og diagram ======================= */
.report .sym { font-size: 8pt; color: #8a8a8d; font-weight: 400; margin-left: 1mm; white-space: nowrap; }
.report .tbl.ctab { margin: 1.5mm 0 2.5mm; }
.report .tbl.ctab th { width: 40%; font-weight: 400; color: #2b2b2b; }
.report .tbl.ctab td.cu { color: #6b6b6e; font-size: 9pt; font-variant-numeric: tabular-nums; }
.report .tbl.ctab td.cr { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; width: 22%; }
.report .tbl.ctab td.cn { width: 14%; font-size: 8.5pt; color: #6b6b6e; }
.report .tbl.ctab.m4 th { width: 24%; }
.report .tbl.ctab.m4 thead th { width: auto; }
.report .tbl.ctab tr.gov td.cr { font-weight: 700; }
.report .tbl.ctab tr.tot th, .report .tbl.ctab tr.tot td { border-top: 0.8pt solid #3a3a3a; border-bottom: 0; padding-top: 1.8mm; }
.report .tbl.ctab tr.sel th, .report .tbl.ctab tr.sel td { background: #f4f3ef; font-weight: 700; }
.report .result .rv small { font-size: 10pt; font-weight: 400; color: #55555a; }
.report .result .rl { font-size: 8.5pt; color: #3a3a3a; }
.report ol.steps { padding-left: 5mm; margin: 1mm 0 3mm; }
.report ol.steps li { margin-bottom: 1.2mm; }

/* Søylediagram */
.report figure.chartfig { margin: 3mm 0 2mm; break-inside: avoid; }
.report figure.chartfig figcaption { font-size: 8pt; color: #6b6b6e; margin-top: 1mm; }
.report figure.chartfig figcaption span { margin-left: 3mm; white-space: nowrap; }
.report figure.chartfig .sq { display: inline-block; width: 2.6mm; height: 2.6mm; vertical-align: -0.3mm; margin-right: 1mm; }
svg.chart .bar { fill: #cfcdc6; }
svg.chart .bf { fill: #fff; stroke: #a4a4a6; stroke-width: 1.2; }
svg.chart .bo { fill: #fff; stroke: #821307; stroke-width: 1.4; stroke-dasharray: 3 2; }
.report .sq.bo { border: 1.2pt dashed #821307; }
.report .sq.bf { border: 1pt solid #a4a4a6; }
svg.chart .lm { stroke: #3a3a3a; stroke-width: 1.3; stroke-dasharray: none; }
svg.chart .lk { stroke: #1f1f1f; stroke-width: 2.4; stroke-dasharray: none; }
svg.chart .lc { stroke: #7e8dab; stroke-width: 1.3; stroke-dasharray: 4 3; }
svg.chart .lb { font: 10.5px "Sweco Sans", Arial, sans-serif; text-anchor: start; }
svg.chart .lmt { fill: #3a3a3a; }
svg.chart .lkt { fill: #1f1f1f; font-weight: 700; }
svg.chart .lct { fill: #6b7a99; }
svg.chart .tk { font-size: 9.5px; }
.report.calcview svg.chart { max-width: 820px; }

/* v1.4: konklusjon som vanlig avsnitt, tallene i resultatkortene på samme høyde */
.report .concl { border-left: 0; padding: 0; font-size: inherit; }
.report .rcard .lbl { min-height: 2.6em; display: flex; align-items: flex-end; line-height: 1.3; }
.report .rcard .rmain { align-items: end; }
