/* rs-form - The report card as printed: A4 sheet, header bar, grade bands, subject rows. */

.rs.rp{display:flex;flex-direction:column;padding:0 9mm 0;font-family:Arial,Helvetica,sans-serif}
.rp .bar{display:flex;height:2.2mm;margin:0 -9mm 3mm}.rp .bar i{display:block;height:100%}.rp .bar i:nth-child(1){width:25%;background:#141414}.rp .bar i:nth-child(2){width:30%;background:#be1e2d}.rp .bar i:nth-child(3){flex:1;background:#0a6b3a}
.rp .hd{display:flex;align-items:center;justify-content:center;text-align:center}.rp .hd>div{text-align:center}.rp .hd h1{font-size:20px;color:#0a6b3a;margin:0;text-align:center !important}.rp .hd .s2{font-size:13px;font-weight:700;color:#0a6b3a;margin-top:4px;text-align:center}.rp .hd .s3{font-size:10.5px;font-style:normal;color:#444;margin-top:2px;text-align:center}
.rp .rule{border-bottom:2px solid #0a6b3a;margin:3px 0 5px}
.rp .who{display:flex;align-items:flex-end;justify-content:space-between;background:#eef4f0;border:1px solid #444;padding:5px 9px;margin-bottom:4px}.rp .who>div{display:flex;flex-direction:column}.rp .who .mid{align-items:center}.rp .who .rt{align-items:flex-end}
.rp .lb{font-size:8px;font-weight:700;text-transform:uppercase;color:#555;letter-spacing:.03em}.rp .who b{font-size:18px;color:#000}.rp .who .gr{color:#0a6b3a}
.rs table.rt{margin:0 0 4px}.rs table.rt th{background:#d9e8df;color:#0a6b3a;font-size:10px;padding:5px 5px;text-transform:uppercase;text-align:center}.rs table.rt td{font-size:12px;padding:4px 6px}.rs table.rt td.c{text-align:center}.rs table.rt tr.tot td{background:#eef4f0;font-weight:700;color:#0a6b3a}
.rp .two{gap:6px;margin-bottom:6px}.rp .bx{border:1.5px solid #0a6b3a;padding:0 0 4px}.rp .bx h5{margin:0 0 5px;padding:5px 8px;font-size:10.5px;font-weight:700;font-style:normal;text-transform:uppercase;letter-spacing:.02em;background:#0a6b3a;color:#fff}.rp .bx table{margin-left:8px;width:calc(100% - 16px)}
.rs table.kv{margin:0}.rs table.kv td,.rs table.kv th{border:0;padding:2px 4px 2px 0;font-size:11px;vertical-align:top;color:#000}.rs table.kv td:first-child{color:#222;width:44%}.rs table.kv th{background:#d9e8df;color:#0a6b3a;font-size:10px;text-align:left;padding:3px 4px}.rs table.kv.key td{font-size:10.5px;padding:2px 4px 2px 0;border-bottom:1px solid #d9e8df}
/* The key's four columns are fixed shares: left to itself the Grade column takes 44% -
   the width the value column of every other .kv table wants - and the range breaks over
   two lines as soon as the form is set larger. A range never wraps and Meaning keeps the
   rest. */
.rs table.kv.key th:nth-child(1),.rs table.kv.key td:nth-child(1){width:13%}
.rs table.kv.key th:nth-child(2),.rs table.kv.key td:nth-child(2){width:26%;white-space:nowrap}
.rs table.kv.key th:nth-child(3),.rs table.kv.key td:nth-child(3){width:11%}
/* Class Performance is five facts, not a ledger: a hairline under each row, a quiet
   label and a bold value. The learner's own average and total were dropped - they are
   already in the marks table's TOTAL / AVERAGE line - so the five that remain can be
   set a size larger than they were. */
.rs table.kv.perf td{padding:2px 0;font-size:11.5px;border-bottom:1px solid #e4efe9}
.rs table.kv.perf tr:last-child td{border-bottom:0}
.rs table.kv.perf td:first-child{width:42%;font-size:11.5px;color:#5b6b62;padding-right:8px}.rs table.kv.perf .tsub{font-size:11.5px}
.rs table.kv.perf td b{font-size:11.5px;color:#15311f}
.rp h4.sh{margin:6px 0 2px;font-size:11.5px;color:#0a6b3a}.rp .tb{border:1px solid #444;padding:6px 9px;font-size:13px;line-height:1.45;white-space:pre-wrap;min-height:30px;background:#fff}.rp .tb.nt{font-size:12.5px;min-height:42px;background:#eef4f0}
.rp .fill{flex:1;min-height:4px}
/* rs-xcmp - The exam comparison bars under the two boxes: one bar per published
   sitting, the one being printed dark, the earlier ones light, a quarter-line grid.
   --xh is the only size the section owns: the plot height, which steps down as the bars
   pile up (see the data-n rungs below) so a learner with four sittings on the card pays
   for them with a shorter panel, not with a second page. Everything else - the bar
   width, the gaps, the type - is a share of --xh, so the whole figure scales as one. */
.rp .xcmp{--xh:64px;border:1.5px solid #0a6b3a;background:#f6faf7;margin:0 0 6px}
.rp .xcmp[data-n="3"]{--xh:54px}
.rp .xcmp[data-n="4"]{--xh:44px}
.rp .xcmp h5{margin:0;padding:4px 8px;font-size:10.5px;font-weight:700;font-style:normal;text-transform:uppercase;letter-spacing:.02em;background:#0a6b3a;color:#fff;display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.rp .xcmp .xnote{font-size:7.5px;font-weight:400;letter-spacing:0;text-transform:none;color:#d5e8db}
.rp .xch{padding:0 8px 4px}
.rp .xgr,.rp .xlr{display:flex;gap:clamp(3px,calc(var(--xh) * .094),6px)}
.rp .xgr{padding-top:calc(var(--xh) * .2)}
.rp .xy{flex:none;width:clamp(18px,calc(var(--xh) * .34),22px);height:var(--xh);display:flex;flex-direction:column;justify-content:space-between;text-align:right;font-size:6.5px;color:#555;line-height:1}
.rp .xpl{position:relative;flex:1;height:var(--xh);display:flex;align-items:flex-end;justify-content:center;border-bottom:1px solid #7d9686;min-width:0}
.rp .xpl s{position:absolute;left:0;right:0;height:1px;background:#dbe8df;z-index:0}
.rp .xpl i{position:relative;z-index:1;display:block;width:70%;max-width:calc(var(--xh) * .69);min-height:2px;display:flex;align-items:flex-start;justify-content:center}
.rp .xpl i.now{background:#0a6b3a}.rp .xpl i.old{background:#a9c9b5}
.rp .xpl i b{font-size:clamp(6.4px,calc(var(--xh) * .117),7.5px);font-weight:700;line-height:1;margin-top:2px;color:#fff}
.rp .xpl i.old b{color:#08381e}
/* a bar too short to hold its own figure lifts the figure above the bar, the way the
   server PDF does, instead of letting it hang over the zero line */
.rp .xpl i.low b{position:absolute;bottom:100%;left:0;right:0;margin:0;text-align:center;color:#08381e}
.rp .xpl i.now.low b{color:#0a6b3a}
.rp .xpl u{position:absolute;left:0;right:0;display:flex;align-items:center;justify-content:center;gap:1px;font-size:clamp(6.4px,calc(var(--xh) * .117),7.5px);font-weight:700;line-height:1}
.rp .xu{color:#0a6b3a}.rp .xd{color:#be1e2d}.rp .xe{color:#1565c0}.rp .xn{color:#666}
.rp .xlr{margin-top:3px}
.rp .xlr .xy{height:auto}
.rp .xls{flex:1;min-width:0;text-align:center;font-size:clamp(6px,calc(var(--xh) * .109),7px);color:#333;line-height:1.3}
.rp .xls span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rp .xls b{display:block;font-size:clamp(7px,calc(var(--xh) * .125),8px);color:#0a3d21;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* the safety squeeze keeps the page: a shorter plot first, then the section goes */
.rp.f2 .xcmp{--xh:48px}.rp.f2 .xcmp[data-n="3"]{--xh:44px}.rp.f2 .xcmp[data-n="4"]{--xh:38px}
.rp.f3 .xcmp{display:none}
.rp .prov{border:1.5px solid #be1e2d;background:#fdeef0;color:#8c1220;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.02em;padding:4px 9px;margin:-4px 0 6px}
.rt .tsub{font-size:9.5px;font-weight:400;color:#555}.rp .sig{gap:36px;margin:0 0 2px;flex-shrink:0}.rp .sig>div{text-align:center}.rp .sn{font-size:12px;font-weight:700;color:#0a6b3a;min-height:12px}.rp .sb{height:38px;display:flex;align-items:flex-end;justify-content:center}.rp .sb img{max-height:36px;max-width:90%}.rp .hd img{max-height:56px;max-width:64px}.rp .sl{font-size:10px;color:#333;border-top:1px solid #000;padding-top:2px}
.rp .ft{flex-shrink:0;font-size:7px;font-weight:700;color:#0a6b3a;margin:2px 0 3px}.rp .bot{height:2.4mm;background:#0a6b3a;margin:0 -9mm}
.pvbar{display:flex;align-items:center;justify-content:space-between;gap:8px;background:var(--sf,#fff);border:1px solid #cfd8d3;border-radius:8px;padding:8px 12px;margin:0 0 10px;position:sticky;left:0}
.dlg.big{width:min(900px,100%)}.rs.lst.cl{height:auto;min-height:0;overflow:visible;break-inside:auto}.rs.lst.cl h2{font-size:14px;margin:8px 0}.rs.lst.cl table td,.rs.lst.cl table th{font-size:12.5px;padding:4px 7px}.rs.lst.cl table th{background:#d9e8df;color:#0a6b3a;text-align:left}.rs.lst.cl tr{break-inside:avoid}
#pr,#pr *,.cp,.cp *,.rs,.rs *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
.cp{position:relative;width:210mm;height:296.5mm;background:#fff;overflow:hidden;page-break-after:always;break-after:page;font-family:Helvetica,Arial,sans-serif;color:#000;box-sizing:border-box;box-shadow:0 1px 6px rgba(0,0,0,.25)}
.cp:last-child{page-break-after:auto;break-after:auto}.cp i{position:absolute;display:block}
.cp .b1,.cp .b2,.cp .b3{top:0;height:2mm}.cp .b1{left:0;width:53mm;background:#141414}.cp .b2{left:53mm;width:61mm;background:#be1e2d}.cp .b3{left:114mm;width:96mm;background:#0a6b3a}.cp .bb{left:0;top:294.5mm;width:210mm;height:2.5mm;background:#0a6b3a}
.cp .cn,.cp .cg,.cp .cs,.cp .cT{position:absolute;left:0;width:100%;text-align:center}
.cp .cn{top:4.6mm;font-size:14pt;font-weight:700;color:#0a6b3a;line-height:8mm}.cp .cg{top:14.2mm;font-size:9pt;font-weight:700;color:#0a6b3a;line-height:5mm}.cp .cs{top:19.6mm;font-size:7.5pt;color:#6e6e6e;line-height:5mm}.cp .cT{top:24.4mm;font-size:8pt;color:#282828;line-height:5mm}
.cp .cr{position:absolute;left:10.5mm;top:31.7mm;width:189mm;border-top:.2mm solid #000}
table.clt{position:absolute;left:10.5mm;top:35mm;width:189mm;table-layout:fixed;border-collapse:collapse}
table.clt th,table.clt td{border:.2mm solid #000;height:8.07mm;padding:0 2mm;font-size:7.5pt;line-height:1;color:#000;background:none;text-transform:none;letter-spacing:0;overflow:hidden;white-space:nowrap}
table.clt th{height:10.5mm;font-size:6.5pt;font-weight:700;text-align:center;padding:0}table.clt td.c{text-align:center;padding:0}
.cp .cf,.cp .cpg{position:absolute;top:286.2mm;font-size:6pt;line-height:3mm;color:#000}.cp .cf{left:10.5mm}.cp .cpg{right:10.5mm}
@media print{.cp{box-shadow:none;margin:0}}
