﻿/* print-shared.css -- the rules every PRINTED document shares between the screen
   and the PDF (Q-015 / CR-185, 28 Aug 2026). MOVED out of app.css, not copied:
   SharedPrintStylesheetTests fails the build if any selector here also appears in
   app.css or in CertificatePdfRenderer's embedded block. The renderer reads this
   file at render time and inlines it ahead of its own print-only geometry, so the
   left-aligned-slip class of drift (CR-183) is structurally impossible for these
   rules. Renderer-only rules (page boxes, the fixed PDF footer) stay embedded --
   they have no screen counterpart to drift against. */

/* ORDER NOTE (CR-185): blocks are in the PDF renderer's ORIGINAL embedded order,
   not app.css's. The printed deliverable keeps its exact former cascade for every
   moved rule; the screen side was re-proven with computed-style before/after checks
   on all five document families after this ordering was chosen. Do not re-sort. */

/* Certificate — A4; letterhead stretched to border width; footer pinned to bottom.
   min-height only (no fixed height): a certificate taller than one page grows naturally
   and flows onto a real second PDF page instead of clipping/overlapping the footer. */
.certificate-document {
    width: 194mm;
    min-height: 287mm;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}
/* Height comes from the block's inline style (the lab's CCLetterheadHeight); 28mm here is the
   fallback for anything rendering the band without one. */
.letterhead-img {
    width: 100%;
    height: 28mm;
    object-fit: fill;
    display: block;
}
.letterhead-running-id {
    position: absolute;
    right: 2mm;
    bottom: 1mm;
    display: flex;
    gap: 3mm;
    font-size: 6.5pt;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.85);
    padding: 0.3mm 1mm;
}
/* The letter footer closes the page: .certificate-document is a flex column, so pushing the
   band down with auto margin puts it at the foot of the sheet rather than immediately under
   the last paragraph (owner, 18 Aug 2026). */
.certificate-document > .doc-letterfooter { margin-top: auto; }
/* =============================================================================
   Quotation print (QuotationPrint.razor) -- the conversion of the legacy report
   `qryQuotation`. Sized to match the Access report: A4 portrait, the same block
   order, and a totals footer that repeats if the item list breaks across pages.
   ============================================================================= */
.qtn-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1pt solid #000; padding-bottom: 2mm; margin-bottom: 2mm; }
.qtn-company { font-size: 9pt; line-height: 1.35; }
.qtn-company strong { font-size: 12pt; }
.qtn-meta { width: 100%; font-size: 9.5pt; margin-bottom: 3mm; }
.qtn-meta td { padding: 0.5mm 0; }
.qtn-to { font-size: 9.5pt; line-height: 1.4; margin-bottom: 4mm; }
table.qtn-items tfoot td { border-top: 0.75pt solid #000; }
.qtn-addl { font-size: 8pt; font-style: italic; padding-top: 0.5mm; }
.qtn-note { font-size: 9pt; margin: 3mm 0; }
.qtn-block { font-size: 9pt; margin: 3mm 0; }
.qtn-block ol { margin: 1mm 0 0 5mm; padding: 0; }
.qtn-block li { margin-bottom: 0.8mm; }
.qtn-sign-name { margin-top: 12mm; font-weight: bold; }
/* Quotation print -- refinements after comparing against the real legacy PDF
   (Legacy App Screenshots\Reports\Quotation.pdf). */
.qtn-meta td.lbl { width: 22mm; }
.qtn-cust { margin-left: 8mm; }
.qtn-attn { width: 100%; font-size: 9.5pt; margin: 2mm 0; }
.qtn-attn td.right { text-align: right; }
.qtn-salutation { font-size: 9.5pt; margin: 2mm 0 1mm; }
.qtn-intro { font-size: 9.5pt; margin: 0 0 2mm; }
.qtn-block-head { font-weight: bold; text-decoration: underline; }
.qtn-close { font-size: 9.5pt; margin: 1mm 0; }
/* Delivery Challan (ChallanPrint.razor) -- laid out against
   Data\_Export\Reports\DeliveryChallan.pdf. */
/* Tightened to the printed original, 22 Aug 2026. The chrome that carries these tables is a
   FIXED height with the column headings anchored at its foot, and at the old pitch the two
   tables alone came to 86mm inside a 96mm box -- so on a buyer with a three-line name and
   address the headings were pushed out of the chrome and the first item row printed over them
   (owner: "Alignment issues in preview and pdf"). AlfaTech's own Invoice Multi-Page.pdf runs an
   8.5mm row pitch; this was 10.2mm. */
table.dc-head { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 9.5pt; margin-bottom: 1.5mm; }
table.dc-head td { border: 0.5pt solid #000; padding: 0.5mm 1.5mm; vertical-align: top; word-wrap: break-word; line-height: 1.25; }
table.dc-head td.lbl { width: 18%; background: #f2f2f2; white-space: nowrap; }
/* The gauge id sits right-aligned in the same cell as the instrument name, as on the PDF. */
.dc-gauge { float: right; }
.dc-foot { display: flex; justify-content: space-between; align-items: flex-start;
           gap: 6mm; font-size: 9.5pt; margin-top: 2mm; }
.dc-note { flex: 1; }
.dc-total { white-space: nowrap; }
.dc-sign { display: flex; justify-content: space-between; align-items: flex-end;
           font-size: 9.5pt; margin-top: 12mm; page-break-inside: avoid; }
.dc-sign-right { text-align: center; }
.dc-sign-space { height: 14mm; }
/* Tax Invoice (InvoicePrint.razor) -- laid out against
   Legacy App Screenshots\Reports\Tax Invoice.pdf and Tax Invoice 1.pdf. */
.inv-titlebar { display: flex; justify-content: center; align-items: baseline;
                position: relative; margin-bottom: 1.5mm; }
/* 13pt, not 16: the printed original's TAX INVOICE is 4.6mm tall, and the h2's own default
   margins were adding 5mm of air above the supplier box inside a fixed-height chrome. */
.inv-titlebar .qtn-title { font-size: 13pt; margin: 0; }
.inv-copy { position: absolute; right: 0; color: #b00; font-weight: 600; font-size: 9pt; }
.inv-supplier { width: 48%; font-size: 8.5pt; line-height: 1.25; }
.inv-strong { font-weight: 700; }
.inv-gst { display: grid; grid-template-columns: 28mm 1fr; font-size: 9pt; margin-top: 1mm; line-height: 1.25; }
.inv-subline { font-size: 8.5pt; }
.inv-foot { display: flex; gap: 0; align-items: stretch; font-size: 9pt; }
.inv-bank { flex: 1; border: 0.5pt solid #000; border-top: 0; padding: 1.5mm; }
.inv-bank-grid { display: grid; grid-template-columns: 24mm 1fr; }
.inv-remarks { margin-top: 3mm; }
.inv-totals { width: 78mm; border: 0.5pt solid #000; border-top: 0; border-left: 0; }
.inv-qty { text-align: center; padding: 1mm; border-bottom: 0.5pt solid #000; }
.inv-totals table { width: 100%; border-collapse: collapse; }
.inv-totals td { padding: 0.6mm 1.5mm; }
.inv-totals td.num { text-align: right; }
.inv-totals tr.rule td { border-top: 0.5pt solid #000; }
.inv-grand td { border-top: 0.75pt solid #000; font-size: 10pt; }
.inv-words { border: 0.5pt solid #000; border-top: 0; padding: 1.5mm; font-size: 9.5pt; }
.inv-sign { display: flex; border: 0.5pt solid #000; border-top: 0;
            font-size: 8.5pt; page-break-inside: avoid; }
.inv-decl { flex: 1; padding: 1.5mm; border-right: 0.5pt solid #000; }
.inv-decl-body { margin: 2mm 0; }
.inv-recv { text-align: center; margin-top: 4mm; }
.inv-auth { width: 78mm; text-align: center; padding: 1.5mm; }
/* The lab's stamp centred in the signature block (AlfaTech reference invoice, 19 Aug 2026),
   with a rule on its right (owner, 19 Aug 2026). */
.inv-stamp-cell { display: flex; align-items: center; justify-content: center; padding: 1mm 2mm;
                  border-right: 0.5pt solid #000; }
.inv-stamp-cell img { width: 19mm; height: 19mm; }
.inv-jurisdiction { display: flex; justify-content: space-between;
                    font-size: 8.5pt; margin-top: 1.5mm; }
.inv-generated { text-align: center; font-size: 8.5pt; }
/* The invoice tail (totals through the jurisdiction line) never splits across pages --
   it moves to the next page whole (owner, 19 Aug 2026, after SL-0075 split its totals). */
.inv-tail { break-inside: avoid; page-break-inside: avoid; }
.acl-abs { position: absolute; line-height: 1.15; }
.acl-doc .b { font-weight: bold; }
.acl-doc .acl-c { text-align: center; }
.acl-title { text-align: center; font-weight: bold; font-size: 12pt; }
.acl-box { border: 0.3mm solid #000; box-sizing: border-box; }
.acl-headband { border-top: 0.3mm solid #000; border-bottom: 0.3mm solid #000; box-sizing: border-box; }
.acl-clip { white-space: nowrap; overflow: hidden; }
table.doc-flow { position: absolute; left: 0; width: 187.5mm; border-collapse: collapse; table-layout: fixed;
                 font-size: 9pt; font-family: Cambria, "Times New Roman", Times, serif; }
.acl-items .acl-name { float: left; padding-left: 1.2mm; }
.acl-items .acl-gid { float: right; padding-right: 1.8mm; }
.acl-doc .acl-8 { font-size: 8pt; }
.acl-doc .acl-left { text-align: left; }
table.acl-srf-items td:last-child { border-right: 0.3mm solid #000; }
table.acl-srf-items tr { break-inside: avoid; page-break-inside: avoid; }
table.acl-rc-items { font-size: 8pt; }
table.acl-rc-items td { border: 0.3mm solid #000; padding: 0.8mm 0.5mm; }
table.acl-rc-items tr { break-inside: avoid; page-break-inside: avoid; }
table.acl-rc-items .b { font-weight: bold; }
/* Flow-chrome documents (quotation, invoice): the chrome is normal flow with a fixed height,
   the headings table anchored at its bottom so the rows line up with data-flow-top-mm on
   every page. */
.acl-flowdoc { height: auto; min-height: 281mm; }
.acl-chromehead { display: flex; flex-direction: column; overflow: hidden; }
.acl-chromehead .acl-headtable { margin-top: auto; flex-shrink: 0; }
/* Backstop. The headings are anchored at the chrome's foot, so anything above them that grows
   past the box pushes them out of it and the first item row prints over them. Letting the
   header tables shrink instead means a pathological buyer address loses its last line -- the
   column headings stay where the rows expect them. */
.acl-chromehead > table.dc-head { flex: 0 1 auto; min-height: 0; overflow: hidden; }
/* The LAST head table takes up whatever slack the fixed-height chrome has left, so the
   headings still land on the flow boundary without a strip of white paper above them (owner,
   22 Aug 2026: "Showing gap above table"). The buyer box simply gets a little taller. */
.acl-chromehead > table.dc-head.inv-buyer { flex: 1 1 auto; }
/* The two-line headings (Qty. / (Nos) and friends) at the item table's own pitch, not the
   roomier one the body rows use -- the band is 9.9mm on the printed original. */
.acl-chromehead .acl-headtable th { padding: 0.5mm 1.5mm; line-height: 1.2; }
/* Inside the fixed-height chrome, paragraph spacing is the legacy's tight pitch, not the
   browser default -- otherwise the bottom-anchored headings get squeezed out. */
.acl-chromehead p { margin: 1mm 0; }
.acl-chromehead .qtn-to, .acl-chromehead .qtn-meta { margin-bottom: 1.5mm; }
table.doc-flow.acl-inflow { position: static; width: 100%; }
.inv-rows td.inv-desc { text-align: left; }
/* Service Request Form. Geometry from Reports\Service Request Form.txt with the printed
   original as authority; table-layout:fixed so declared widths bind in every engine (the
   19 Aug challan/quotation lesson). A style that matters on paper must ALSO go in
   CertificatePrintCss -- the PDF renderer never loads this file. */
.srf-titlerow { position: relative; }
.srf-formatno { position: absolute; right: 0; bottom: 1mm; font-size: 8pt; }
.srf-head { display: flex; gap: 4mm; align-items: flex-start; font-size: 9pt; margin-bottom: 1.5mm; }
.srf-cust { flex: 1 1 auto; border-collapse: collapse; table-layout: fixed; width: 58%; }
.srf-cust td { padding: 0.5mm; vertical-align: top; }
.srf-cust td.lbl { width: 26%; white-space: nowrap; }
.srf-cust td.s { width: 3%; }
.srf-panel { flex: 0 0 40%; border: 0.75pt solid #000; border-collapse: collapse; table-layout: fixed; width: 40%; }
.srf-panel td { padding: 0.5mm 1mm; vertical-align: top; }
.srf-panel td.lbl { width: 38%; white-space: nowrap; }
.srf-panel td.s { width: 4%; }
.srf-panel td.b, .srf-req td.b { font-weight: bold; }
.srf-certblock { font-size: 9pt; margin: 1mm 0; }
.srf-certname { font-weight: bold; margin-left: 3mm; }
.srf-certaddr { margin-left: 14mm; }
.srf-secthead { font-weight: bold; font-size: 9pt; margin: 1.5mm 0 0.5mm; }
.srf-text { font-size: 8pt; line-height: 1.35; margin: 0.5mm 0; }
.srf-req { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 8pt; }
.srf-req td { padding: 0.4mm 0.5mm; vertical-align: top; overflow-wrap: break-word; }
.srf-note { display: flex; gap: 2mm; align-items: flex-start; }
.srf-notelbl { font-size: 8pt; }
table.srf-items { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 9pt; margin-top: 1.5mm; }
table.srf-items td.num { text-align: right; }
.srf-agree { font-size: 9pt; margin-top: 2mm; }
.srf-signrow { display: flex; font-size: 9pt; margin: 3mm 0 1.5mm; }
.srf-sign-name { flex: 0 0 31%; }
.srf-sign-sig { flex: 0 0 37%; }
.srf-sign-date { flex: 1 1 auto; }
.srf-notesrow { display: flex; gap: 2mm; font-size: 9pt; margin: 1mm 0; }
.srf-prepared { display: flex; font-size: 9pt; margin-top: 7mm; }
.srf-prepared span:first-child { flex: 0 0 54%; }
.qtn-meta td.qtn-meta-right { width: 30mm; text-align: right; padding-right: 2mm; }
.certificate-body { flex: 1 1 auto; min-height: 0; }
.doc-control { text-align: right; font-size: 7.5pt; margin-bottom: 1mm; }
.title {
    text-align: center;
    font-weight: bold;
    font-size: 14pt;
    margin: 0 0 1.2mm;
    letter-spacing: 0.02em;
}
.identity-ulr { font-size: 8.5pt; margin: 0 0 0.6mm; }
/* The amendment pair (Q-005 / Q-014, 10 Sep 2026). It had no rule at all, so it rendered
   left-aligned with the two halves run together. The legacy's controls sit at Left 6240 and
   8400 of a 9360-twip content width -- the right-hand third -- about 1mm apart, on their own
   fixed row above the identity table (Top 1980, the table at 2580).
   min-height reserves that row even when empty, which is what the legacy's fixed-position
   controls do: a first-issue certificate and its amendment then line up instead of the whole
   table dropping a line the day an amendment is issued. */
.identity-amendment { font-size: 8.5pt; text-align: right; margin: 0 0 0.6mm; min-height: 1.2em; }
/* ULR left, amendment pair right, on one line (owner, 16 Sep 2026: "Reduce space between ULR No and the box
   below"). The line keeps its height when both are empty, so the identity table never moves when an
   amendment is issued -- the reason the amendment row was reserved in the first place. */
.identity-topline { display: flex; align-items: baseline; gap: 4mm; min-height: 1.2em; margin: 0 0 0.6mm; font-size: 8.5pt; }
.identity-topline > .identity-ulr, .identity-topline > .identity-amendment { margin: 0; min-height: 0; }
.identity-topline > .identity-amendment { margin-left: auto; }
.identity-amendment .amend-dt { margin-left: 4mm; }
/* The 4mm gap is the value app.css already used; the legacy's controls sit about 1mm apart
   (Left 6240 + Width 2100, next at 8400), but re-picking it would be churn for nothing. */
table.identity-grid {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.2mm;
    font-size: 8.5pt;
}
table.kv { width: 100%; border-collapse: collapse; margin-bottom: 0.3mm; }
table.kv td { padding: 0.35mm 0; vertical-align: top; }
table.kv td.k.emphasis { font-weight: bold; }
table.kv td.s { width: 2mm; padding-right: 0.8mm; }
.env-gap { display: inline-block; width: 6mm; }
.rule { border-bottom: 0.5pt solid #000; }
.section {
    text-align: center;
    font-weight: bold;
    margin: 1.2mm 0 0.6mm;
    font-size: 9pt;
}
.section-left {
    font-weight: bold;
    margin: 1.2mm 0 0.6mm;
    font-size: 8.5pt;
}
/* A parameter's results caption on the generic certificate and the datasheet -- the legacy
   subreport's own look: Cambria 9pt, bold, underlined, centred, full content width
   (TCalibrationDetailsFormatNo41 subreport.txt:260-284). It was an undefined class rendering
   as a bare browser h4, larger than the certificate's own section bar (E6 review D2). */
.results-caption {
    text-align: center;
    font-weight: bold;
    text-decoration: underline;
    font-size: 9pt;
    font-family: inherit;
    margin: 1.2mm 0 0.6mm;
}
.unit-line { text-align: left; font-size: 8.5pt; margin: 0 0 0.6mm; }
/* Format 51's title band (TCalibrationDetailsFormatNo51 subreport, GroupHeader0): the parameter's
   name centred across the width, and " Range : ..." at the left of the SAME line, bold 9pt -- two
   boxes at Top 0 over one another, one centred and one left-aligned. */
.results-title-band { position: relative; }
.results-title-band .results-range { position: absolute; left: 0; bottom: 0.6mm; font-weight: bold; font-size: 9pt; }
/* The "* / #" mark: a box of its own at the right edge of the calibration point's cell. */
table.f51-results td.point { position: relative; }
table.f51-results td.point .mark { position: absolute; right: 1mm; top: 50%; transform: translateY(-50%); }
/* Format 62 record sheet (CR-412): the conditions band and the weighings on one seven-column grid.
   Within a reading there is no rule under the difference (the legacy's detail rules stop at 7920
   twips); after it, the average line with its label at the right of its cell. */
table.f62-record { table-layout: fixed; width: 100%; }
table.f62-record tr.conditions td { font-weight: normal; }
table.f62-record tr.more td.diff { border-bottom-color: transparent; }
table.f62-record tr.reading-foot td { position: relative; text-align: right; font-size: 9pt; }
table.f62-record tr.reading-foot .average-label { font-weight: bold; }
table.f62-record tr.reading-foot .evaporation { position: absolute; left: 1mm; }
/* Cheque Deposit Slip (CR-183). The legacy's page header letterhead and per-bank band are
   centred, plain-weight 9pt lines -- Cheque Deposit Slip.txt:278-342 (letterhead) and
   :644-698 (bank name italic, title, "For dd-mmm-yy"). */
.slip-letterhead { text-align: center; font-size: 9pt; margin: 0 0 2mm; }
.slip-band { text-align: center; font-size: 9pt; margin: 2.4mm 0 1mm; }
/* Billing Register (CR-183): the customer band as a row inside the one captioned table,
   so the caption row prints once as the legacy's RepeatSection company header does. */
.grid.results tr.band-row td { text-align: left; font-weight: bold; }
/* A report's total row: the legacy's footer sums are FontWeight 700 above a full-width rule
   (qryTWorkMonitor and its kin). Eighteen report pages carry tr.is-total; this is its one rule. */
.grid.results tr.is-total td { font-weight: bold; border-top: 2px solid #000; }
/* A report footer's two sign-off captions, one at each edge -- the legacy's "Prepared By :-"
   (Left 60) and "Approved By :-" (right-aligned) on the Certificate Generated Record. */
.acct-signoff { display: flex; justify-content: space-between; margin-top: 10mm; }
/* Account Statement (CR-183): the paid tick's own narrow caption-less column, left of
   Bill Amount, as the legacy's BillTick control has it. */
.grid.results th.tick, .grid.results td.tick { width: 4mm; text-align: center; }
/* Monthly Billing (CR-183): the cells left of the "Amount in Rs." strap draw no box, as
   the legacy caption band is empty there. */
.grid.results th.no-rule { border: 0; background: transparent; }
/* Accounts-family reports (28 Aug 2026, from ui-conformance's grading of the four new
   pages): these legacy letterheads are flush LEFT (TextAlign=1), unlike the deposit
   slip's centred one; a report title the legacy leaves left-aligned and plain uses
   .title-left; a company group that forces a new page in the legacy breaks here too.
   Shared file, not app.css: all of it prints. */
.report-letterhead-left { text-align: left; font-size: 9pt; margin: 0 0 1mm; }
.title-left { font-size: 14pt; margin: 1mm 0; }
.page-break-before { break-before: page; page-break-before: always; }
.trace-head { margin: 1mm 0 0.8mm; font-size: 8.5pt; line-height: 1.25; }
.trace-label { font-weight: normal; }
.trace-note-inline { font-size: 8.5pt; }
.muted-cert { font-size: 7.5pt; color: #555; font-style: italic; }
table.grid tr, table.equip tr { break-inside: avoid; page-break-inside: avoid; }
table.grid th .sub { display: block; font-weight: bold; font-size: 8pt; }
/* A report cell's second strip: one value centred (the legacy's NominalSize) with a small
   italic note pushed to the right on the same line (lblQty, TextAlign right, italic, 8pt) --
   the Work Order Register's Range/Size cell. */
table.grid td .rs-line2 { display: block; position: relative; }
table.grid td .rs-line2 .qty { position: absolute; right: 0; top: 0; font-style: italic; font-size: 0.85em; }

table.grid td.left { text-align: left; padding-left: 1mm; }
table.equip { font-size: 8pt; margin-bottom: 1mm; }
.unc { margin: 1.2mm 0 0.6mm; }
.unc .note { font-size: 8pt; line-height: 1.25; }
.discipline-line { text-align: center; margin-top: 1mm; font-size: 8.5pt; }
.endmark {
    text-align: center;
    font-weight: bold;
    margin: 0.6mm 0 0.4mm;
    font-size: 8.5pt;
}
/* The sign-off prints IN the page footer, as the legacy's PageFooterSection has it (owner, 14 Sep
   2026: "Legacy: sign-off in footer"). AlfaTech's Calibration Certificate report stacks one 2220-twip
   band: signature images, "Calibrated By" / "Authorized by", the names and both QR codes in its upper
   22mm, the footer notes under them, and lblEndOfCertificate in the last 240 twips. The band is laid
   out in that order, in flow -- the footer image at its own proportions across the width, no taller
   than the lab's footer depth -- and the PDF renderer stamps the same band on every page
   (RepeatingBands). The 22 Aug 2026 layout reserved the full footer depth under the sign-off and put
   End of Certificate above the notes; it pushed full certificates onto a second page. */
.has-letter-footer .certificate-footer > .cert-signoff > .letter-footer,
.has-letter-footer .certificate-footer > .letter-footer {
    position: static;
    margin: 0.5mm 0 0;
}
.has-letter-footer .certificate-footer .letter-footer-img {
    display: block;
    width: 100%;
    height: auto !important;
    max-height: var(--cert-ft-mm, 25.4mm);
    object-fit: contain;
}
.has-letter-footer .certificate-footer > .endmark { margin: 0.4mm 0 0; }
/* A full-page letterhead shows through the sheet (owner, 14 Sep 2026): its watermark is part of the
   lab's page, so the sheet must not paint white over it. */
.has-page-letterhead .certificate-sheet { background-color: transparent; }
/* The title sits 1mm under the sheet's top border, as the PDF prints it (owner, 16 Sep 2026: "Reduce gap between
   Calibration Certificate and top border"). */
.has-page-letterhead .certificate-sheet { padding-top: 1mm; }
.sig { width: 100%; border-collapse: collapse; margin-top: 0; break-inside: avoid; page-break-inside: avoid; }
.sig td { vertical-align: middle; font-size: 8.5pt; }
/* QR column on the left (owner, 21 Aug 2026), narrow enough that the two signatory columns
   keep the width they had. */
.sig td.sig-qr-cell { width: 30mm; text-align: left; }
.sig td.sig-person { width: auto; }
.sig tr.sig-labels td { padding-bottom: 0.4mm; vertical-align: bottom; }
.sig-person { padding-top: 1mm; }
.sig .name { display: block; font-weight: bold; }
.sig .role-sub { display: block; font-weight: bold; font-size: 8pt; margin-top: 0.3mm; }
.sig .stamp { text-align: center; }
.sig-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2mm;
}
/* Legacy ImageCalibratedBy / ImageAuthorisedBy: 56 x 8.5mm, zoom-fit, above the name.
   Keep in sync with CertificatePrintCss (the PDF renderer's own copy). */
.sig-image { display: block; max-width: 56mm; max-height: 8.5mm; width: auto; height: auto; }
/* The signature's slot keeps the legacy image control's 8.5mm whether or not there is a signature, so both names and
   designations sit at a fixed place (owner, 16 Sep 2026). The signature sits on the slot's bottom edge, over the name. */
.sig-slot { height: 8.5mm; display: flex; align-items: flex-end; }
.sig-slot-right { justify-content: flex-end; }
.sig-image-right { margin-left: auto; }
.verified-stamp { max-height: 14mm; width: auto; display: block; }
.cert-qr { max-height: 16mm; width: auto; display: block; }
/* CR-248: the certificate's own verify QR, beside the NABL badge and the SAME SIZE as it
   (owner, 10 Sep 2026: "adjust the height and width as per NABL Scope QR image"). It carries no
   size of its own for that reason -- it inherits .cert-qr's 16mm box above, so the two stay in
   step if that ever changes rather than drifting apart on a second number. The badge measures
   15.78 x 16.00mm because its source image is 670x679; this one is square, so 16 x 16mm.
   Comfortably above the ~12mm below which a phone struggles with a URL payload. */
.verify-qr { display: block; text-align: center; }
.verify-qr .cert-qr { margin: 0 auto; }
.verify-qr-cap { font-size: 5.5pt; line-height: 1.1; margin-top: 0.4mm; white-space: nowrap; }
/* The fingerprint on the public verify page: long, and it must wrap without inviting a misread. */
.verify-hash { word-break: break-all; font-family: ui-monospace, Consolas, monospace; font-size: 0.85em; }
.qr-link { text-decoration: none; }
.qr-box {
    display: inline-block;
    border: 1px solid #000;
    padding: 2mm 3mm;
    font-weight: bold;
    font-size: 7.5pt;
}
.qr-url { font-size: 5.5pt; margin-top: 0.5mm; word-break: break-all; }
.cert-notes {
    margin: 1.2mm 0 0.6mm;
    padding-left: 0;
    list-style: none;
    font-size: 7.5pt;
    line-height: 1.2;
}
.cert-notes li { margin-bottom: 0.25mm; }
.cert-notes li::before { content: "●  "; }
.nabl-scope { font-size: 6.5pt; font-weight: bold; margin-top: 0.4mm; }

/* ---- The account reports' common chrome (owner, 28 Aug 2026 -- CR-188) ------------------
   One standard across the whole accounts family: the lab's name, address, phone and email
   at the top; the title, criteria and period centred beneath it; column headings and group
   bands repeating on every printed page (they live in each table's thead); 0.5in of space
   above everything. AcctReportChrome.razor renders the block and carries the print @page
   rules; CertificatePdfRenderer draws the letterhead onto every PDF page. */
.acct-letterhead { text-align: center; line-height: 1.3; margin-bottom: 1mm; }
.acct-letterhead .acct-lab { font-size: 12pt; font-weight: 700; }
.acct-letterhead .acct-lab-line { font-size: 9pt; }
/* The QMS document-control line (Reports Format No. register). Left-aligned, small,
   under the letterhead on screen; the PDF draws its own copy bottom-left per page. */
.acct-letterhead .acct-format-line { font-size: 8pt; text-align: left; }

/* ---- The MU Study evaluation sheet (the legacy "TMU Study" report, CR-193) -------- */
.mu-print { font-size: 9.5pt; line-height: 1.45; }
.mu-print .mup-title { text-align: center; font-size: 13pt; font-weight: 700;
    text-decoration: underline; margin: 2mm 0 1.5mm; }
.mu-print .mup-idrow { display: flex; justify-content: space-between; margin-bottom: 2mm; }
.mu-print .mup-sections { margin: 0; padding-left: 5.5mm; }
.mu-print .mup-sections > li { margin-bottom: 2.2mm; }
.mu-print .cap { font-weight: 700; }
.mu-print .mup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4mm 6mm; margin: 1mm 0 0 1mm; }
.mu-print table.mup-table { width: 100%; border-collapse: collapse; margin: 1.5mm 0; }
.mu-print table.mup-table th, .mu-print table.mup-table td {
    border: 0.5pt solid #000; padding: 0.6mm 1.2mm; font-size: 9pt; }
.mu-print table.mup-table th { text-align: center; font-weight: 700; }
.mu-print table.mup-table td.c { text-align: center; }
.mu-print .mup-pre { white-space: pre-line; }
.mu-print .mup-typea { display: flex; gap: 8mm; align-items: flex-start; }
.mu-print .mup-sigma { margin-top: 6mm; }
.mu-print .mup-sigma div { margin-bottom: 2mm; }
.mu-print .mup-typeb-title { text-align: center; font-weight: 700; letter-spacing: 1px;
    margin: 3mm 0 0.5mm; }
.mu-print .mup-results { margin-top: 2.5mm; }
.mu-print .mup-results > div { margin-bottom: 1.8mm; }
.mu-print .mup-eubox { border: 1pt solid #000; padding: 0.8mm 2.5mm; margin-left: 5mm;
    font-weight: 700; }
.mu-print .mup-footer { display: flex; justify-content: space-between; margin-top: 8mm; break-inside: avoid; page-break-inside: avoid; }
.mu-print .mup-pagebreak { break-before: page; page-break-before: always; margin-top: 4mm; }
.acct-criteria { text-align: center; margin: 1.5mm 0 3mm; }
.acct-criteria .acct-title { font-size: 13pt; font-weight: 700; margin: 1mm 0; }
.acct-criteria p { margin: 0.5mm 0; }
/* His words on the statement: "Columns should have fixed width." Fixed layout also keeps
   sister tables (one per group) aligned column-for-column. */
table.grid.results.acct-fixed { table-layout: fixed; width: 100%; }
table.grid.results.acct-fixed td, table.grid.results.acct-fixed th { overflow-wrap: break-word; }

/* Delivery Performance: the legacy report's footer chart (Graph10, a Microsoft Graph column chart
   of Delivery Performance by month) drawn as an SVG so it prints and PDFs with the table. */
.dp-chart { margin-top: 4mm; break-inside: avoid; page-break-inside: avoid; }
.dp-chart svg { width: 100%; height: auto; display: block; }
.dp-chart .dp-grid { stroke: #bbb; stroke-width: 0.5; }
.dp-chart .dp-axis { stroke: #000; stroke-width: 1; }
.dp-chart .dp-bar { fill: #3a5f85; }
.dp-chart .dp-tick { font-size: 9px; fill: #000; }
.dp-chart .dp-legend { font-size: 9px; fill: #000; font-weight: bold; }

/* Environmental Record / Electric Supply Record prints: the legacy group header's
   "Department :" / "Month :" line, the three time-slot captions under "Time", a signature
   frame the size of the legacy's ImageSign (660 x 240 twips), the footer notes and the
   report's own document-control captions (Doc No. / Issue / Amendment). */
.env-print tr.band-row td.env-band { font-weight: 400; font-size: 9pt; padding: 1mm 1.5mm; }
.env-print td.env-band span:last-child { float: right; }
.env-print th.env-slot { font-weight: 400; font-size: 7.5pt; }
.env-print td.env-sign { width: 11.6mm; height: 4.5mm; padding: 0; }
.env-print td.env-sign img { height: 4.2mm; max-width: 11.4mm; display: block; margin: 0 auto; }
.env-print table.env-monthly { margin-top: 3mm; }
.env-print .env-note { margin: 1mm 0 0 1mm; font-size: 8.5pt; }
.env-print .env-doccontrol, .qr-print .env-doccontrol { display: flex; justify-content: space-between; gap: 4mm; margin-top: 6mm; font-size: 9pt; line-height: 1.35; }
.env-print .env-doccontrol span, .qr-print .env-doccontrol span { flex: 1 1 0; }
/* The same document-control footer on a report page outside those two families (Equipment History Card, UAT-067). */
.report-doccontrol { display: flex; justify-content: space-between; gap: 4mm; margin-top: 6mm; font-size: 9pt; line-height: 1.35; }
.report-doccontrol span { flex: 1 1 0; }
.env-print .env-signoff, .qr-print .env-signoff { margin-top: 4mm; justify-content: flex-start; gap: 40mm; }

/* Calibration Price List: the legacy report is a 2580-twip (46 mm) strip — customer, ATTN.,
   one small table per UUC type, the terms under each. History Card - Equipment and Ref Std:
   the "Remark :" line of its group footer. */
.price-strip { width: 46mm; margin: 2mm 0 4mm; font-size: 8pt; }
.price-strip .price-customer { font-weight: 700; }
.price-strip .price-attn { margin-bottom: 1mm; }
.price-strip table.price-table { margin-top: 1mm; }
.price-strip .price-terms { margin: 1mm 0 3mm; }
.price-strip .price-terms-indent { padding-left: 2mm; }
.hc-remark { margin-top: 2mm; font-size: 9pt; }
.hc-band { text-align: right; font-weight: 700; font-size: 9pt; margin: 1mm 0; }
.acct-criteria p.acct-right { text-align: right; }
/* CALIBRATION REPORT: the work order's "Customer :" / "D.C. No. & Date :" group header as a band
   row in the captioned table (RepeatSection), and the page footer's note. */
.grid.results tr.band-row td.calrep-band { font-weight: 400; padding: 1mm 1.5mm; }
.grid.results td.calrep-band span:last-child { float: right; }
.calrep-note { margin-top: 2mm; font-size: 8pt; text-align: center; }
.grid.results a.calrep-link { color: inherit; text-decoration: underline; }
/* CR-499: Master Equipment Traceability -- one work order per page, captions right-aligned under the UUC type. */
.grid.results.mtrace { margin-bottom: 2mm; }
.grid.results.mtrace tbody td { vertical-align: top; }
.grid.results.mtrace.mtrace-newpage { break-before: page; }
.grid.results.mtrace td .mtrace-cap { text-align: right; font-style: italic; }
.grid.results.mtrace tbody td { border-top: 0; border-bottom: 0; }
.grid.results.mtrace tbody tr:last-child td { border-bottom: 1px solid currentColor; }
.grid.results.mtrace tfoot td.mtrace-note-cell { border: 0; padding: 0; }
.grid.results.mtrace td .mtrace-link { word-break: break-all; text-decoration: underline; }
.mtrace-note { margin-top: 2mm; font-size: 9pt; font-style: italic; display: flex; gap: 4mm; align-items: flex-start; }
/* CR-503: Accutrace's Calibration Report -- customer and address left, D.C. and Work Order No. right, both two lines. */
.grid.results td.acalrep-band .acalrep-band-inner { display: flex; justify-content: space-between; align-items: flex-start; }
.grid.results td.acalrep-band .acalrep-wo { float: none; text-align: right; }
/* Every label on the legacy report is italic (FontItalic on each Label); CustomGIType prints at 9pt. */
.grid.results.acalrep thead th { font-style: italic; }
.grid.results.acalrep .acalrep-custom-type { font-size: 9pt; }
.grid.results.acalrep .acalrep-address { font-size: 9pt; }
.grid.results.acalrep { table-layout: fixed; }
.grid.results.acalrep td { overflow-wrap: anywhere; }

/* Quality records: the Intermediate Check / Training group bands (two facts on one line), the
   Quality Check for Instruments sheet's label : value head, its per-parameter blocks, notes and
   the two signatures. */
.grid.results tr.band-row td.qr-band { font-weight: 400; padding: 1mm 1.5mm; }
.grid.results td.qr-band span:last-child { float: right; }
.qr-print table.qr-qci td:nth-child(odd) { width: 18%; }
.qr-print table.qr-group + table.qr-group { margin-top: 3mm; }
.qr-print .qr-line { margin-top: 2.5mm; font-size: 9pt; }
.qr-print .qr-param { margin-left: 5mm; }
.qr-print .qr-row { display: flex; justify-content: space-between; padding-right: 20mm; }
.qr-print .qr-notes { margin-top: 4mm; font-size: 9pt; }
.qr-print .qr-notes-title { text-decoration: underline; }
.qr-print .qr-sign { display: flex; flex-direction: column; gap: 4mm; margin-top: 4mm; font-size: 9pt; }
.qr-print .qr-sign-img { height: 10mm; vertical-align: middle; margin-left: 4mm; }
/* CR-554: the quality records' sign-off signatures, on the environmental prints and the History Card too
   (the legacy's ImageCalibratedBy / ImageAuthorisedBy are 600 twips high = 10.6 mm). */
.env-signoff .qr-sign-img { height: 10mm; vertical-align: middle; margin-left: 4mm; }
.sig tr.sig-images td { height: 11mm; vertical-align: bottom; text-align: center; }
.sig tr.sig-images .qr-sign-img { height: 10mm; }
.sig tr.sig-dates td { vertical-align: top; font-size: 8.5pt; }

/* Order Acknowledgement cum Proforma Invoice (Precision's Order Acceptance Report): the "To,"
   block beside the reference table, the amounts column at the right of the footer, the
   requirements in two columns, the bank / terms blocks and the three signatory lines. */
.oa-print .oa-head { display: flex; justify-content: space-between; gap: 6mm; margin: 2mm 0 0; font-size: 9pt; }
.oa-print .oa-to { flex: 1 1 0; }
/* A right-aligned caption (Rate / Amount, TextAlign 3) over a right-aligned column. */
.grid.results th.num { text-align: right; }
.oa-print .oa-box { border: 0.5pt solid #000; padding: 1mm 1.5mm; }
.oa-print .oa-b { font-weight: 700; }
.oa-print .oa-attn-band { display: flex; justify-content: space-between; border-top: 0; padding: 1mm 1.5mm; font-size: 9pt; margin-bottom: 2mm; }
.oa-print .oa-attn-band span:last-child { width: 42%; }
.oa-print table.oa-amounts tr.oa-hidden-row td { height: 4mm; }
.oa-print table.kv.oa-refs { width: 42%; }
.oa-print .oa-cert { margin: 1mm 0 2mm; font-size: 9pt; }
.oa-print .oa-footer { display: flex; justify-content: space-between; gap: 6mm; margin-top: 2mm; font-size: 9pt; }
.oa-print .oa-footer table.oa-amounts { border-left: 0.5pt solid #000; padding-left: 2mm; }
.oa-print .oa-left { flex: 1 1 0; }
.oa-print .oa-left .oa-gap { margin-top: 3mm; }
.oa-print table.oa-amounts { width: 36%; border-collapse: collapse; }
.oa-print table.oa-amounts td { padding: 0.4mm 1mm; }
.oa-print table.oa-amounts td.num { text-align: right; font-variant-numeric: tabular-nums; }
.oa-print table.oa-amounts tr.is-total td { font-weight: 700; border-top: 0.5pt solid #000; }
.oa-print .oa-req, .oa-print .oa-bank, .oa-print .oa-terms { margin-top: 3mm; font-size: 9pt; }
.oa-print .oa-req-title { font-weight: 700; }
.oa-print .oa-req-row { display: flex; }
.oa-print .oa-req-row > span { flex: 1 1 0; }
/* CR-251: each requirement is five cells on fixed tracks, so numbers, captions, colons,
   values and hints line up down each column -- as both the SRF's printed original and the
   legacy acknowledgement's right half place them, and as a single flowing line cannot. The
   two halves carry identical tracks, so the two columns align with each other too. A
   requirement with no hint spans its value across the empty track rather than clipping. */
/* The SRF leaves a trailing gutter in each half -- its hint sits at 4380 twips of a 5640
   half -- so the left half's hint does not run into the right half's number. */
.oa-print .oa-rq { display: grid; grid-template-columns: 7.5% 60% 2.5% 14% 16%;
                   box-sizing: border-box; padding-right: 2.5mm; }
.oa-print .oa-rq-val.wide { grid-column: 4 / 6; }
.oa-print .oa-signs { display: flex; justify-content: space-between; margin-top: 8mm; font-size: 9pt; }

/* Calibration Uncertainty Sheet: the environmental cells beside the identity rows, the section
   captions, the reading sets, the two Type B tables, the derived-figure lines and the sign-off. */
.us-print { font-size: 9pt; }
.us-print table.kv td.us-env { text-align: center; }
.us-print .us-envcell { display: inline-block; width: 30%; text-align: center; }
.us-print .us-freq { margin-left: 6mm; }
.us-print .us-sub { font-weight: 700; margin: 2mm 0 1mm; }
.us-print .stddev { margin-top: 3mm; }
.us-print .us-readings-head { display: flex; justify-content: space-between; align-items: flex-start; margin-top: 3mm; }
.us-print .us-right { text-align: right; }
.us-print .us-set { margin-top: 1.5mm; }
.us-print .us-scope { display: flex; justify-content: space-between; margin-top: 1mm; }
.us-print .us-typeb-title { text-align: center; font-weight: 700; letter-spacing: 1px; margin: 3mm 0 1mm; }
.us-print .us-factor { display: block; font-size: 8pt; }
.us-print .us-results { margin-top: 3mm; line-height: 1.6; }
.us-print .us-results .us-formula { margin-left: 8mm; }
.us-print .us-signoff { margin-top: 8mm; }
.us-print .us-sign-img { display: block; height: 10mm; margin-bottom: 1mm; }
.us-print .us-signoff .us-right .us-sign-img { margin-left: auto; }
.us-print .us-format { margin-top: 4mm; font-size: 8pt; }

/* ---- The calibration datasheet (the legacy "Calibration Recordsheet") --------------------
   MOVED here from app.css, 14 Sep 2026, on the CR-185 convention: the datasheet PDF rendered
   with none of these rules, because the renderer inlines this file and never app.css (owner:
   an unstyled Observation Sheet with the lab logo at its natural 1873px width). Appended in
   app.css's own order; they had no earlier position in the renderer to preserve. Screen
   computed styles were diffed before/after on every element of a Format 2 sheet. */
.ds-remark { margin: 0.35rem 0 0; font-size: 9pt; text-align: left; }
/* Datasheet closing block -- "Readings for Standard Deviation" + "MU Scope (CMC)".
   Shared across formats; see StandardDeviationBlock.razor for the legacy geometry. */
.stddev { margin: 1.2mm 0 0.6mm; }
.stddev .stddev-right { float: right; text-align: right; }
/* "Higher CMC value certified." sits on its own line under the units note (Top 540 vs 300). */
.stddev .stddev-cmc-note { display: block; }
.stddev .stddev-desc { font-size: 8.5pt; margin: 0.6mm 0 0.3mm; }
table.stddev-grid { margin-bottom: 0.6mm; }
/* The MU pair is a plain two-column caption/value row, not a bordered grid. */
table.stddev-mu { width: 100%; border-collapse: collapse; font-size: 8.5pt; margin-bottom: 0.6mm; }
table.stddev-mu td { padding: 0.35mm 0; vertical-align: top; }
table.stddev-mu td.k { white-space: nowrap; width: 16%; }
table.stddev-mu td.v { width: 34%; }
table.stddev-mu td.k2 { white-space: nowrap; width: 34%; text-align: right; padding-right: 1.5mm; }
table.stddev-mu td.v2 { width: 16%; }
/* =============================================================================
   Calibration datasheet (the legacy "Calibration Recordsheet")
   -----------------------------------------------------------------------------
   Proportions are the legacy report's own, converted from twips at 1440/inch:
   the content column is 10740 twips = 189.4mm, the page header band 1260 = 22.2mm,
   the logo box 2760 x 1140 = 48.7 x 20.1mm. Type is 9pt, as the report sets.
   ============================================================================= */

.ds-document {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.ds-sheet {
    width: 189.4mm;
    background: #fff;
    color: #000;
    border: 0.6pt solid #000;
    padding: 0;
    font-size: 9pt;
    line-height: 1.25;
}

/* ---- page header band ---- */
.ds-pagehead {
    display: flex;
    align-items: stretch;
    border-bottom: 0.6pt solid #000;
    min-height: 22.2mm;
}

.ds-pagehead-logo {
    width: 48.7mm;
    flex: 0 0 auto;
    border-right: 0.6pt solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1mm;
}

.ds-pagehead-logo img { max-width: 100%; max-height: 20.1mm; object-fit: contain; }

.ds-pagehead-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 1mm 2mm;
    text-align: center;
}

.ds-company { font-size: 13pt; font-weight: bold; line-height: 1.15; }
.ds-address { font-size: 8.5pt; line-height: 1.2; flex: 1 1 auto; }

/* The title sits under its own rule, as the report draws one at T=900. */
.ds-title {
    border-top: 0.6pt solid #000;
    padding-top: 0.8mm;
    font-size: 11pt;
    font-weight: bold;
}

.ds-body { padding: 2mm 2.5mm; }

/* ---- identity band ---- */
table.ds-kv { width: 100%; border-collapse: collapse; margin-bottom: 1.2mm; }
table.ds-kv td { padding: 0.35mm 0; vertical-align: top; font-size: 9pt; }
table.ds-kv td.k { width: 21%; white-space: nowrap; }
table.ds-kv td.s { width: 2mm; padding-right: 1mm; }
table.ds-kv td.v { width: 27%; }
table.ds-kv td.k2 { width: 21%; white-space: nowrap; padding-left: 3mm; }
table.ds-kv td.ds-sub { font-style: italic; }
.ds-freq { margin-left: 6mm; }

/* Instrument details are indented under their heading, as the report indents them. */
table.ds-instrument td.k { width: 12%; padding-left: 1mm; }
table.ds-instrument td.v { width: 36%; }

.ds-section { font-weight: bold; margin: 1.5mm 0 0.8mm; font-size: 9.5pt; }

/* ---- tables ---- */
table.ds-grid {
    width: 100%;
    border-collapse: collapse;
    font-size: 8.5pt;
    margin-bottom: 1.5mm;
}

table.ds-grid th,
table.ds-grid td {
    border: 0.5pt solid #000;
    padding: 0.6mm 1mm;
    text-align: center;
    vertical-align: middle;
}

table.ds-grid th { font-weight: bold; }
/* A plunger dial reading the entry sequence skips -- shaded so the technician leaves it (CR-335).
   print-color-adjust, or the PDF and the printer both drop the background. */
table.ds-grid td.ds-skip {
    background: #d9d9d9;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
}
table.ds-grid .left { text-align: left; }

/* Results heading line: the subreport's own caption on the left, its units note on the right. */
.ds-results-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 4mm;
    font-weight: bold;
    font-size: 9pt;
    margin: 1.5mm 0 0.8mm;
}

.ds-results-unit { font-weight: normal; }

.ds-observations { margin: 1.2mm 0; font-size: 9pt; line-height: 1.3; }

.ds-notbuilt {
    margin: 3mm 0;
    padding: 2mm;
    border: 0.5pt dashed #000;
    font-size: 9pt;
}

/* ---- page footer band ---- */
.ds-pagefoot {
    border-top: 0.6pt solid #000;
    padding: 1.5mm 2.5mm 1mm;
    margin-top: 2mm;
}

.ds-sign {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 4mm;
}

.ds-sign-left { text-align: left; }
.ds-sign-right { text-align: right; }
.ds-sign-page { font-size: 8.5pt; padding-bottom: 0.5mm; }
.ds-sign-img { display: block; max-height: 10mm; max-width: 50mm; margin-bottom: 0.5mm; }
.ds-sign-right .ds-sign-img { margin-left: auto; }
.ds-sign-name { font-weight: bold; font-size: 9pt; }
.ds-sign-role { font-size: 8.5pt; }
.ds-control { margin-top: 1.5mm; font-size: 8pt; }

@media print {
    /* The sheet IS the page in print: no centring frame, no screen padding. */
    .ds-document { display: block; padding: 0; }
    .ds-sheet { width: auto; border: none; }
    /* Keep a table's rows with their heading rather than orphaning one on a new page. */
    table.ds-grid { break-inside: auto; }
    table.ds-grid tr { break-inside: avoid; page-break-inside: avoid; }
    .ds-pagefoot { break-inside: avoid; page-break-inside: avoid; }
}

/* Hand-entry blanks the legacy record sheet prints under a table (Format 4's parallelism
   lines). Empty boxes, as on the paper sheet. */
.ds-blanks { margin: 2mm 0 1mm; display: flex; flex-wrap: wrap; gap: 3mm 10mm; font-size: 9pt; }
.ds-blank { display: flex; align-items: baseline; gap: 1.5mm; }
/* A ruled blank. It may be genuinely blank (Format 4's hand-entry lines) or carry a stored value
   (CR-280 — Format 2's parallelism readings, which ReportFooter_Format fills from the parent), so
   it centres its text over the rule and gives it room. An empty box is unchanged by either. */
.ds-blank-box {
    display: inline-block;
    width: 15mm;
    border-bottom: 0.5pt solid #000;
    height: 3.5mm;
    line-height: 3.5mm;
    text-align: center;
}

/* Lines the record sheet closes a results block with -- Format 7's "Hysteresis found" and
   "Repeatability found", which the certificate does not carry. */
.ds-foundline {
    display: flex;
    justify-content: space-between;
    gap: 6mm;
    font-size: 9pt;
    margin: 1mm 0 2mm;
}

/* Format 12's three-wire working, above its Go/NoGo tables. */
.ds-threewire {
    display: flex;
    flex-wrap: wrap;
    gap: 2mm 8mm;
    font-size: 9pt;
    margin: 1.5mm 0 1mm;
}
/* --------------------------------------------------------------------------
   The parameter list (CR-175).

   The legacy's "TCalibrationDetails subreport" draws NO chrome: ReportHeader,
   PageHeader, GroupFooter, PageFooter and ReportFooter are all zero-height, and
   the Detail section just stacks one subreport per format, only the matching one
   having rows. The single visible thing it contributes is the group header --
   60 twips on the certificate, 84 on the record sheet -- which is the gap
   between one parameter and the next. About 1mm and 1.5mm respectively; one
   rule serves both.
   -------------------------------------------------------------------------- */
.parameter-block + .parameter-block { margin-top: 1.5mm; }
.parameter-block { break-inside: avoid; }

/* ---- CR-387: certificates drawn from a lab's certificate style (Styled/StyledCertificate.razor). ----
   Only a styled sheet carries .styled; the built-in certificate never matches any rule below.
   Section 1 (.styled-head) is lifted out by the PDF renderer and repeated on every page;
   .styled-repeat-only shows only in that repeated copy. */
.certificate-sheet.styled.st-font-cambria { font-family: Cambria, "Times New Roman", Times, serif; }
.certificate-sheet.styled.st-font-arial { font-family: Arial, Helvetica, sans-serif; }
.certificate-sheet.styled.st-font-times { font-family: "Times New Roman", Times, serif; }
.certificate-sheet.styled { line-height: 1.2; color: #000; }
.styled .styled-repeat-only { display: none; }
.styled .st-title-line { position: relative; margin: 0 0 1mm 0; min-height: 5mm; }
.styled .st-align-centre { text-align: center; }
.styled .st-align-left { text-align: left; }
.styled .st-align-right { text-align: right; }
.styled .st-title-right { position: absolute; right: 0; bottom: 0; font-size: 0.95em; font-weight: normal; font-style: normal; }
.styled .st-page-below { text-align: right; margin: 0.5mm 0 1mm 0; }
.styled .st-part { margin: 0 0 1.2mm 0; }
.styled .st-boxed { border: 0.3mm solid #000; padding: 0.6mm 1mm; }
.styled .st-heading { font-weight: bold; margin: 0.6mm 0; }
.styled .st-heading-boldcentre { text-align: center; }
.styled .st-heading-boldleft { text-align: left; }
.styled .st-heading-underlinedcentre { text-align: center; text-decoration: underline; }
.styled .st-heading-shaded { text-align: center; background: #d9d9d9; padding: 0.4mm 0; }
/* CR-673: the Accent heading - bold capitals, left, behind a bar in the style's accent colour. */
.styled .st-heading-accent { text-align: left; text-transform: uppercase; letter-spacing: 0.04em;
                             border-left: 1.2mm solid var(--st-accent, #1F4E79); padding: 0.1mm 0 0.1mm 1.5mm; margin: 1.2mm 0 0.8mm 0; }
.styled .st-bold { font-weight: bold; }
.styled .st-note { font-size: 0.85em; font-weight: normal; }
.styled table.st-row, .styled table.st-equipment-table { width: 100%; border-collapse: collapse; table-layout: auto; }
.styled table.st-row th, .styled table.st-row td,
.styled table.st-equipment-table th, .styled table.st-equipment-table td {
    border: 0.3mm solid #000; padding: 0.6mm 0.8mm; text-align: center; vertical-align: middle; }
.styled table.st-row th, .styled table.st-equipment-table th { font-weight: bold; }
.styled .st-cols { display: flex; gap: 2mm; }
.styled .st-cols > .st-col { flex: 1 1 50%; }
.styled table.st-list { width: 100%; border-collapse: collapse; }
.styled table.st-list td { padding: 0.25mm 0.6mm; vertical-align: top; text-align: left; }
.styled table.st-list td.st-cap { white-space: nowrap; width: 1%; }
.styled table.st-list td.st-colon { width: 1%; padding-left: 1mm; padding-right: 1mm; }
.styled table.st-list tr.st-indent td.st-cap { padding-left: 10mm; }
.styled table.st-paired td.st-indent-cap { padding-left: 10mm; }
.styled table.st-paired td.st-val { width: 40%; }
.styled .st-statement { margin: 0.6mm 0; }
.styled .st-look-bold { font-weight: bold; }
.styled .st-look-spacedcapitals { font-weight: bold; text-transform: uppercase; letter-spacing: 0.25em;
                                  text-decoration: underline; text-align: center; }
.styled .st-notes-caption { font-weight: bold; margin-top: 1mm; }
.styled .st-note-line { margin: 0.2mm 0; }
.styled .st-results { margin: 1mm 0; }
.styled .st-results.st-new-page { break-before: page; page-break-before: always; }
.styled .st-results-heading { position: relative; text-align: center; font-weight: bold; margin: 0.6mm 0; }
.styled .st-results-left { position: absolute; left: 0; font-weight: normal; }
/* CR-494: Accutrace's CT ratio at the right of the RESULTS line; italic captions; a value under its caption. */
.styled .st-results-right { position: absolute; right: 0; font-weight: normal; }
.styled.st-captions-italic td.st-cap, .styled.st-captions-italic th, .styled.st-captions-italic .st-notes-caption,
.styled.st-captions-italic .st-heading { font-style: italic; }
.styled table.st-list td.st-val-below { padding-left: 0; }
/* CR-657: Accutrace's frames. A fixed caption column that wraps; two boxes in one frame with a single rule between;
   a rule under the heading and under a full-row field; a divider between the columns. The rules run to the box
   edge through its padding (0.6mm / 1mm). */
.styled .st-capw table.st-list td.st-cap { width: var(--st-cap-w); min-width: var(--st-cap-w); max-width: var(--st-cap-w); white-space: normal; }
.styled .st-part.st-joined { margin-top: -1.2mm; border-top: 0; }
.styled .st-rule-heading > .st-heading { border-bottom: 0.3mm solid #000; margin: -0.6mm -1mm 0; padding: 0.6mm 1mm; }
.styled .st-fullrows { border-bottom: 0.3mm solid #000; margin: 0 -1mm; padding: 0 1mm; }
.styled .st-cols.st-divided { gap: 0; margin: -0.6mm -1mm; }
.styled .st-cols.st-divided > .st-col { padding: 0.6mm 1mm; }
.styled .st-cols.st-divided > .st-col + .st-col { border-left: 0.3mm solid #000; }
.styled .st-keep-together { break-inside: avoid; page-break-inside: avoid; }
.styled.st-results-ruled .st-results table th, .styled.st-results-ruled .st-results table td { border: 0.3mm solid #000; }
/* CR-495: a second value at the right of a field line (Accutrace's "Accuracy : x" on the Type line). */
.styled .st-extra { float: right; padding-left: 4mm; }
/* CR-658: the QR codes and the stamp sit in one row, as Accutrace's page footer draws them (imgScopeQR 1008 twips =
   17.8 mm, imgStamp 900 twips = 15.9 mm, between the two signatures, 21.2 mm deep in all). Wrapped, the verify QR
   stacked under the scope QR and the band grew into the letterhead's foot. */
.styled .st-sig-mid img.st-qr { height: 17.8mm; margin-right: 1mm; vertical-align: bottom; }
.styled .st-doc-control { font-size: 0.85em; margin-top: 0.6mm; }
.styled .st-signoff table.st-sig { width: 100%; border-collapse: collapse; }
.styled .st-signoff td { vertical-align: bottom; padding: 0 1mm; }
.styled .st-signoff .st-sig-left { text-align: left; width: 30%; }
.styled .st-signoff .st-sig-right { text-align: right; width: 30%; }
.styled .st-signoff .st-sig-mid { text-align: center; white-space: nowrap; }
.styled .st-signoff .st-sig-slot { height: 8.5mm; }
.styled .st-signoff .st-sig-slot img.sig-image { max-height: 8.5mm; max-width: 45mm; }
.styled .st-signoff img.cert-qr { display: inline-block; height: 16mm; width: 16mm; margin: 0 1mm; vertical-align: bottom; }
.styled .st-signoff img.st-stamp { height: 15.9mm; width: auto; vertical-align: bottom; }
.styled .st-signoff table.st-sig-grid th, .styled .st-signoff table.st-sig-grid td {
    border: 0.3mm solid #000; text-align: center; vertical-align: middle; padding: 0.6mm; width: 33%; }
.styled .st-signoff table.st-sig-grid tr.st-sig-space td { height: 12mm; }
.styled .st-signoff .st-sig-qr { width: 18mm; text-align: center; }
.styled .st-signoff .st-sig-roles table.st-list td { padding: 0.2mm 0.6mm; }

/* CR-673 (Q-123): the Modern look. Only a sheet whose style chooses it carries .st-look-modern, so no Classic style
   and no built-in certificate matches a rule below. The results table (.st-results) is never touched (design §3.4).
   Mono printers: the tiles are a light grey that may print as nothing, which loses no information; captions are
   a mid grey that stays legible; the accent bar and title print as a dark grey. */
.styled.st-look-modern .st-title { color: var(--st-accent, #1F4E79); letter-spacing: 0.02em; }
.styled.st-look-modern .st-part { margin-bottom: 1.6mm; }
.styled.st-look-modern .st-boxed { border: 0.25mm solid #c3cad3; border-radius: 1mm; padding: 1mm 1.2mm; }
.styled.st-look-modern table.st-row { border-collapse: separate; border-spacing: 0.8mm 0; margin: 0 -0.8mm; width: calc(100% + 1.6mm); }
.styled.st-look-modern table.st-row th, .styled.st-look-modern table.st-row td { border: 0; background: #eef1f5; text-align: left; }
.styled.st-look-modern table.st-row th { font-weight: normal; font-size: 0.72em; text-transform: uppercase; letter-spacing: 0.05em;
                                          color: #5a6472; padding: 0.7mm 1mm 0 1mm; border-radius: 0.8mm 0.8mm 0 0; }
.styled.st-look-modern table.st-row td { padding: 0.2mm 1mm 0.8mm 1mm; border-radius: 0 0 0.8mm 0.8mm; }
.styled.st-look-modern table.st-list td.st-cap { color: #5a6472; }
.styled.st-look-modern table.st-equipment-table th { background: #e3e8ee; font-weight: bold; }
/* CR-674 (owner, 4 Nov 2026: "update the result table headers also like modern style"): every format's results header
   row - its <thead> - on the same shaded band as the equipment header, and the results heading with the accent bar.
   Only the shading: the format's columns, captions, text and rules are its own (design 3.4), and some formats hide
   particular rules on purpose, so no border is touched (and a deliberately blank .no-rule header cell stays blank) -
   which is also why the equipment table keeps its black rules. */
.styled.st-look-modern .st-results table thead th:not(.no-rule) { background: #e3e8ee; }
/* CR-675: the Acceptance Criteria block draws its header row as <th> cells inside <tbody> (each row of its grid may
   be a header row), so the rule above missed it; found checking every format, 4 Nov 2026. Its own <th> cells only:
   elsewhere a <th> in a body is a row label, not a header. */
.styled.st-look-modern .st-results table.acceptance tbody th:not(.no-rule) { background: #e3e8ee; }
.styled.st-look-modern .st-results-heading.st-results-accent { text-align: left; text-transform: uppercase; letter-spacing: 0.04em;
                                                               border-left: 1.2mm solid var(--st-accent, #1F4E79); padding: 0.1mm 0 0.1mm 1.5mm; margin: 1.2mm 0 0.8mm 0; }
.styled.st-look-modern .st-notes-caption { text-transform: uppercase; letter-spacing: 0.04em; }
/* CR-687: the Modern certificate's closing band -- NABL QR left, signatures (and stamp) centred between, certificate QR
   right. The QR cells keep the sign-off's own 18mm width; the signature cells share the rest equally. */
.styled .st-signoff-modernband table.st-sig { width: 100%; table-layout: fixed; }
.styled .st-signoff-modernband td { text-align: center; vertical-align: bottom; }
.styled .st-signoff-modernband td.st-sig-qr { width: 20mm; }
.styled .st-signoff-modernband td.st-band-stamp { width: 20mm; }
/* The signature cells start at the top, so their captions sit on one line whether or not a name or signature prints. */
.styled .st-signoff-modernband td.st-band-sign { vertical-align: top; }
.styled .st-signoff-modernband .st-band-cap { font-size: 7pt; color: #5a6472; }
/* CR-680: the Modern look on a REPORT (first the Calibration Due List), taken from the lab's active certificate style
   (ReportLook). Only a report whose document carries .rpt-look-modern matches, so no Classic report changes. The same
   vocabulary as the Modern certificate: accent title, captioned tiles, accent-bar headings, a shaded header row. The
   table's columns, text and black rules are the report's own and are not touched.
   Every selector is anchored by child combinators to the report's own body (.rpt-look-modern > .certificate-sheet >
   .certificate-body > ...), so a certificate or other document nested inside a Modern report keeps its own look
   (ui-conformance review, 5 Nov 2026). The tiles size to their content: one Period tile is not a full-width band. */
.rpt-look-modern > .certificate-sheet > .certificate-body > .title { color: var(--st-accent, #1F4E79); }
.rpt-look-modern > .certificate-sheet > .certificate-body > table.rpt-tiles { border-collapse: separate; border-spacing: 0.8mm 0; margin: 0 0 1.2mm -0.8mm; width: auto; }
.rpt-look-modern > .certificate-sheet > .certificate-body > table.rpt-tiles th,
.rpt-look-modern > .certificate-sheet > .certificate-body > table.rpt-tiles td { border: 0; background: #eef1f5; text-align: left; white-space: nowrap; }
.rpt-look-modern > .certificate-sheet > .certificate-body > table.rpt-tiles th { font-weight: normal; font-size: 6.5pt; text-transform: uppercase; letter-spacing: 0.05em;
                                      color: #5a6472; padding: 0.7mm 2mm 0 1mm; border-radius: 0.8mm 0.8mm 0 0; }
.rpt-look-modern > .certificate-sheet > .certificate-body > table.rpt-tiles td { font-size: 8.5pt; padding: 0.2mm 2mm 0.8mm 1mm; border-radius: 0 0 0.8mm 0.8mm; }
.rpt-look-modern > .certificate-sheet > .certificate-body > p.section-left { border-left: 1.2mm solid var(--st-accent, #1F4E79); padding: 0.1mm 0 0.1mm 1.5mm; margin: 2mm 0 0.8mm; }
.rpt-look-modern > .certificate-sheet > .certificate-body > table.grid > thead th:not(.no-rule) { background: #e3e8ee; }
/* CR-682 (owner, 5 Nov 2026: "make table borders less dark color, it looks odd in modern style design. Remove report
   page borders"). Modern reports only; a Classic report keeps the legacy's black frame and rules. The frame goes the
   way CR-375 takes it off a certificate -- transparent, so the sheet keeps its geometry. The rules turn a light
   blue-grey that still prints on a mono printer; a cell a report deliberately leaves unruled (.no-rule) keeps that. */
.rpt-look-modern > .certificate-sheet { border-color: transparent; }
.rpt-look-modern > .certificate-sheet > .certificate-body > table.grid > thead > tr > th:not(.no-rule),
.rpt-look-modern > .certificate-sheet > .certificate-body > table.grid > tbody > tr > td:not(.no-rule) { border-color: #b4bcc8; }
.rpt-look-modern > .certificate-sheet > .certificate-body > p.section-left .rpt-cert-name { font-weight: normal; }
/* CR-683 (owner, 5 Nov 2026: "Yes, start rolling out"): the same look on every report drawn in ReportDocument -- the
   accounts chrome (AcctReportChrome) and the report's grid tables, wherever they sit in the report's body. Colours and
   weights only: columns, captions, text, which cells are ruled and which rows are totals stay each report's own.
   - the title in the accent colour;
   - header cells shaded and lightly ruled, body and footer cells lightly ruled (a .no-rule cell stays unruled);
   - a group band row (tr.band-row) on the light tile shade instead of plain bold;
   - a totals row (tr.is-total) keeps its line above, in a mid grey instead of 2px black;
   - a group heading (p.section-left) with the accent bar, kept with its table. */
.rpt-look-modern > .certificate-sheet > .certificate-body .acct-criteria .acct-title { color: var(--st-accent, #1F4E79); }
.rpt-look-modern > .certificate-sheet > .certificate-body table.grid > thead > tr > th:not(.no-rule),
.rpt-look-modern > .certificate-sheet > .certificate-body table.grid > thead > tr > td:not(.no-rule) { background: #e3e8ee; border-color: #b4bcc8; }
.rpt-look-modern > .certificate-sheet > .certificate-body table.grid > tbody > tr > th:not(.no-rule),
.rpt-look-modern > .certificate-sheet > .certificate-body table.grid > tbody > tr > td:not(.no-rule),
.rpt-look-modern > .certificate-sheet > .certificate-body table.grid > tfoot > tr > th:not(.no-rule),
.rpt-look-modern > .certificate-sheet > .certificate-body table.grid > tfoot > tr > td:not(.no-rule) { border-color: #b4bcc8; }
.rpt-look-modern > .certificate-sheet > .certificate-body table.grid tr.band-row > td { background: #eef1f5; }
.rpt-look-modern > .certificate-sheet > .certificate-body table.grid tr.is-total > td:not(.no-rule) { border-top: 1px solid #7d8794; }
.rpt-look-modern > .certificate-sheet > .certificate-body p.section-left { border-left: 1.2mm solid var(--st-accent, #1F4E79); padding: 0.1mm 0 0.1mm 1.5mm; }
/* CR-684 (owner, 5 Nov 2026: "Yes, convert them"): the Modern look on the business documents -- Delivery Challan,
   Invoice, Invoice-cum-DC, Proforma Invoice, Quotation, Service Request Form, Returnable Challan, Payment Receipt.
   They are laid out to the millimetre from the lab's printed originals, so this changes COLOURS ONLY: no position,
   size, width, font or text. Reached through the DocumentLook marker placed just before the document (Classic places
   none). Lines go light blue-grey -- !important because the documents draw them through a dozen rules and inline
   styles, and none of them hides a line by colour (checked: no transparent border in any document); titles take the
   accent; heading bands and table header rows take the light shade. The documents draw no page frame. */
.doc-look-modern ~ .acl-doc *, .doc-look-modern ~ .pr-doc * { border-color: #b4bcc8 !important; }
.doc-look-modern ~ .acl-doc .acl-title, .doc-look-modern ~ .acl-doc .aqtn-title, .doc-look-modern ~ .acl-doc .qtn-title,
.doc-look-modern ~ .pr-doc .qtn-title { color: var(--st-accent, #1F4E79); }
.doc-look-modern ~ .acl-doc .acl-headband,
.doc-look-modern ~ .acl-doc thead th, .doc-look-modern ~ .pr-doc thead th { background-color: #e3e8ee; }
/* CR-684: Calibration Due Reports, a bare certificate-sheet reached through DocumentLook NoFrame: no frame, light rules,
   shaded header rows, the accent title, the month heading with the accent bar, the company rule in light grey. */
.doc-look-modern ~ .certificate-sheet { border-color: transparent; }
.doc-look-modern ~ .certificate-sheet .qtn-head { border-bottom-color: #b4bcc8; }
.doc-look-modern ~ .certificate-sheet .qtn-title { color: var(--st-accent, #1F4E79); }
.doc-look-modern ~ .certificate-sheet table.grid > thead > tr > th:not(.no-rule) { background: #e3e8ee; border-color: #b4bcc8; }
.doc-look-modern ~ .certificate-sheet table.grid > tbody > tr > td:not(.no-rule),
.doc-look-modern ~ .certificate-sheet table.grid > tfoot > tr > td:not(.no-rule) { border-color: #b4bcc8; }
.doc-look-modern ~ .certificate-sheet .rc-group-head { border-left: 1.2mm solid var(--st-accent, #1F4E79); padding-left: 1.5mm;
                                                       break-after: avoid; page-break-after: avoid; }
/* A customer heading never stands alone at the foot of a page, away from its table. */
.rpt-look-modern > .certificate-sheet > .certificate-body > p.section-left { break-inside: avoid; page-break-inside: avoid; break-after: avoid; page-break-after: avoid; }
/* Format 60, the weighing balance (CR-417). CERTIFICATE: a bold centred 9pt title over each test
   ("…FormatNo60 subreport", txtRepeatabilityTest / txtEccentricityTest at Top 120); the governing
   repeatability readings five boxes across (the 60r subreport is five columns of 2076 twips, each
   box 360 high); the pan diagram (3240 of 10380 twips wide) with the eccentricity lines beside it
   (6840 wide from 3540). The Error column has no rule between its rows: the detail's rule stops at 5040. */
.f60-test-title { text-align: center; font-weight: bold; font-size: 9pt; margin: 2mm 0 1mm; }
.f60-test-title.boxed { border: 1px solid #000; padding: 0.6mm 0; }
.f60-test-title.boxed.joined { margin-bottom: 0; border-bottom: 0; }
table.f60-repeatability { table-layout: fixed; width: 100%; }
table.f60-repeatability td { height: 6.3mm; width: 20%; }
.f60-eccentricity { display: flex; align-items: flex-start; gap: 2.9%; break-inside: avoid; }
.f60-eccentricity .f60-pan { width: 31.2%; flex: none; }
.f60-eccentricity table.f60-eccentricity-lines { width: 65.9%; table-layout: fixed; }
table.f60-eccentricity-lines td { height: 7.4mm; }
table.f60-eccentricity-lines td.error { border-top-color: transparent; border-bottom-color: transparent; }
table.f60-eccentricity-lines tr:last-child td.error { border-bottom-color: #000; }
/* The MPE band: its table on the left half (5160 of 10380 twips), the verification interval at the right, level with the table's heading. */
.f60-mpe { display: flex; justify-content: space-between; align-items: flex-start; font-size: 9pt; break-inside: avoid; }
.f60-mpe .f60-mpe-table { width: 50.3%; }
.f60-mpe tr.stray td { border-color: transparent; }
.f60-mpe .f60-mpe-table table { table-layout: fixed; width: 100%; }
.f60-mpe .f60-mpe-interval { margin-top: 7mm; padding-right: 13%; }
/* RECORD SHEET ("Calibration Record Sheet W"): four numbered parts at 10pt. */
.f60-capacity { display: flex; justify-content: space-between; font-size: 10pt; margin: 0 0 1mm; padding-right: 14%; }
.f60-part { font-size: 10pt; margin: 2mm 0 0; }
.f60-part-title { font-size: 9pt; margin: 0 0 1mm; }
.f60-part .f60-small { font-size: 8pt; }
table.f60-record-repeatability, table.f60-record-linearity, table.f60-record-eccentricity, table.f60-record-performance { table-layout: fixed; }
/* The legacy's own widths on a 10800-twip sheet: 10440, 10080, 9540 and 10080. */
table.grid.results.f60-record-repeatability { width: 96.7%; }
table.grid.results.f60-record-linearity, table.grid.results.f60-record-performance { width: 93.3%; }
table.grid.results.f60-record-eccentricity { width: 88.3%; }
table.f60-record-repeatability tr.loads td { text-align: left; }
table.f60-record-repeatability td, table.f60-record-linearity td, table.f60-record-eccentricity td, table.f60-record-performance td { height: 5.3mm; }
.f60-weights { display: flex; justify-content: space-between; font-size: 9pt; margin: 1mm 0 0; }
.f60-part .f60-load { display: inline-block; min-width: 27mm; text-align: center; }
.f60-pans { display: block; width: 58%; margin: 1mm 0 1mm 26%; }
.f60-instructions { margin: 4mm 0 0; }
.f60-instructions ol { margin: 1mm 0 0; padding-left: 5mm; }
.f60-instructions li { margin: 0 0 1mm; }
/* Format 61 record sheet (CR-423). One block of 1560 twips per weight, in four parts that keep their own
   pitch (300 twips = 5.3mm, 240 = 4.25mm) - so each part is its own stack inside one table row, not a
   grid of six equal lines. Rules as the legacy draws them: under the nominal value; a vertical one between
   each label and its value, none between the four details; under every line of the cycles; on the right, none
   under the mass value and one at 540, level with the rule under cycle 1. */
.f61-record-head { display: flex; justify-content: space-between; font-size: 9pt; margin: 1mm 0 0.6mm; }
table.f61-record { table-layout: fixed; width: 100%; }
table.f61-record tr.weight { break-inside: avoid; }
table.f61-record tr.weight > td { padding: 0; vertical-align: top; height: 27.5mm; }
table.f61-record tr.weight > td.sr { padding-top: 0.9mm; }
table.f61-record td.part .top { position: relative; height: 5.3mm; line-height: 5.3mm; text-align: center; border-bottom: 1px solid #000; box-sizing: border-box; }
table.f61-record td.part .top .mark { position: absolute; right: 1mm; }
table.f61-record td.part .details > div { display: flex; height: 5.3mm; line-height: 5.3mm; }
table.f61-record td.part .details > div > span:first-child { width: 48%; text-align: right; padding-right: 1mm; box-sizing: border-box; border-right: 1px solid #000; }
table.f61-record td.part .details > div > span:last-child { width: 52%; text-align: center; }
table.f61-record td.part .details { height: 22.2mm; }
table.f61-record td.part .details > div:last-child { height: 6.3mm; }
table.f61-record table.cycles { width: 100%; border-collapse: collapse; table-layout: fixed; }
table.f61-record table.cycles td { height: 4.25mm; padding: 0; text-align: center; border: 0; border-right: 1px solid #000; border-bottom: 1px solid #000; }
table.f61-record table.cycles tr.means td { height: 5.3mm; }
table.f61-record table.cycles td:last-child { border-right: 0; }
table.f61-record table.cycles tr:last-child td { border-bottom: 0; height: 5.2mm; }
table.f61-record td.part .reading { height: 9.55mm; line-height: 5.3mm; text-align: center; border-bottom: 1px solid #000; box-sizing: border-box; }
table.f61-record td.part .standard-label { margin-top: 1mm; height: 9.5mm; text-align: center; }
table.f61-record td.part .standard { height: 5.3mm; line-height: 5.3mm; text-align: center; }
/* Format 61 certificate: the denomination keeps the two spaces before the weight's ID. */
table.f51-results td.point .denomination { white-space: pre-wrap; }

/* Format 59 record sheet (CR-427): ten columns on the legacy's own widths. The grid is 10440 twips
   in a 10800 control, flush left - as Format 60's record tables. */
table.grid.results.f59-record { table-layout: fixed; width: 96.7%; }
/* Format 56, QI's record sheet (CR-520): the small "°C" at the foot of the Cal. Point cell (lblDegCSR / lblDegCUR),
   and the dashed rule over a converting side's °C line (LineSDegC / LineUDegC). */
table.grid.results.f59-record .f56-dc-label { display: block; font-size: 0.85em; }
table.grid.results.f59-record tr.f56-dc td { border-top: 0; }
table.grid.results.f59-record tr.f56-dc td.f56-dc-side { border-top: 1px dashed #000; }

/* Format 63 (force machines), CR-431. Certificate: the frame is 10320 of the 10380-twip page, and
   the foot's three lines share it - the first two with cells under 0, 120 and 240 degrees only,
   the right-hand part of each open. Record sheet: 10680 of 10800 twips, flush left. */
table.grid.results.f63-results { table-layout: fixed; width: 99.4%; }
table.f63-results td.point { position: relative; }
table.f63-results td.point .mark { position: absolute; right: 0.5mm; top: 50%; transform: translateY(-50%); }
table.f63-results tfoot th, table.f63-results tfoot td { font-weight: bold; }
table.f63-results tfoot .l { text-align: left; }
table.f63-results tfoot .r { text-align: right; }
table.f63-results tfoot .open { border-left: 0; border-right: 0; border-top: 0; border-bottom: 0; }
table.f63-results tfoot tr.zero td.open:last-child { border-right: 1px solid #000; }
table.f63-results tfoot tr.mre th { border-top: 1px solid #000; }
table.f63-results tfoot tr.mre .value { padding-left: 1.5mm; }
.f63-kgf-remark { font-size: 9pt; font-weight: bold; margin-top: 0.6mm; }
table.grid.results.f63-record { table-layout: fixed; width: 98.9%; }
table.f63-record th.plain { font-weight: normal; }
table.f63-record tfoot td.none { border: 0; }
/* The foot prints once, at the end, as the report's group footer does - never repeated on each page. */
table.f63-results tfoot, table.f63-record tfoot { display: table-row-group; }

/* Formats 64 and 64AF (Rockwell hardness), CR-435: the certificate's table, which is also the
   record sheet's. Each line is two text lines high - force over "(kgf)", block value over its
   unit, uncertainty over the block's unit; the other boxes print on the upper text line (their
   text starts at the top of a box set 60 twips down). The 64AF frame is 10320 of the 10380-twip page. */
table.grid.results.f64-results { table-layout: fixed; width: 100%; }
table.grid.results.f64-results.f64af { width: 99.4%; }
table.f64-results td { vertical-align: top; }
table.f64-results td.two .under { display: block; }

/* Format 65 (Vickers hardness), CR-440: the certificate's table, which is also the record sheet's.
   No Sr. No. column. Each block is two lines with a rule between them - but none between the force
   in N and its "(kgf)" - and the uncertainty stands over both. A block is not split across pages. The bar over the
   "d" and the "H" of the two mean captions is the report's own short line. */
table.grid.results.f65-results { table-layout: fixed; width: 100%; }
table.f65-results tbody { break-inside: avoid; page-break-inside: avoid; }
/* The report's detail is 732 twips for the two lines: 6.45 mm each. */
table.f65-results tbody td { height: 6.4mm; }
/* The force in N stands on the upper line and "(kgf)" on the lower, with no rule between them. */
table.f65-results td.force-n { border-bottom: 0; }
table.f65-results td.force-kgf { border-top: 0; }
table.f65-results th.uim-head { vertical-align: top; }
table.f65-results td.uim { vertical-align: middle; }
table.f65-results th .mean { text-decoration: overline; }

/* CR-604: Accutrace's "Quotation Letter" (Data\_ExportAccutrace\Reports\qryQuotation.txt), Times New Roman 11 pt.
   A report label is bold unless it says FontWeight 400; a text box is regular unless it says 700. */
/* .acl-doc.aqtn, not .aqtn: app.css's .acl-doc (Cambria 9 pt) loads later on screen and would win a tie. */
.acl-doc.aqtn { font-family: "Times New Roman", Times, serif; font-size: 11pt; color: #000; line-height: 1.3; }
.aqtn-chrome { height: 38.1mm; position: relative; }
.aqtn-chrome .doc-letterhead { position: absolute; left: 0; top: 0; width: 100%; height: 37mm; object-fit: fill; }
.aqtn-title { position: absolute; left: 0; right: 0; top: 31.75mm; text-align: center; font-size: 14pt; font-weight: 700; text-decoration: underline; }
/* Ref. / Date at the report's twips: Ref. 60, its value 1140, Date 7380 (right-aligned to 8520), its value 8640. */
.aqtn-ref { width: 192.6mm; border-collapse: collapse; margin: 1mm 0 0; table-layout: fixed; }
.aqtn-ref td { padding: 0 1mm; height: 5.3mm; vertical-align: top; white-space: nowrap; }
.aqtn-ref td:nth-child(1) { width: 20.1mm; font-weight: 400; }
.aqtn-ref td:nth-child(2) { width: 110mm; }
.aqtn-ref td:nth-child(3) { width: 22.2mm; font-weight: 400; text-align: right; }
.aqtn-to { padding: 0 1mm; min-height: 5.3mm; }
.aqtn-para { margin: 0; padding: 0 1mm; min-height: 5.3mm; font-weight: 400; }
.aqtn-gap { margin-top: 2mm; }
.aqtn-sac { text-align: right; font-weight: 700; padding-right: 7.4mm; margin-top: -4.2mm; }
.aqtn-items { width: 192.6mm; border-collapse: collapse; margin-top: 2mm; table-layout: fixed; }
.aqtn-items th, .aqtn-items td { border: 1px solid #000; padding: 0.4mm 1mm; text-align: center; vertical-align: top; }
.aqtn-items th { font-weight: 700; height: 5.3mm; }
.aqtn-items .left { text-align: left; }
.aqtn-items .num { text-align: right; }
.aqtn-foot { display: flex; width: 192.6mm; justify-content: space-between; align-items: flex-start; }
.aqtn-remark { padding: 1mm; max-width: 95mm; }
.aqtn-remark .aqtn-lbl { font-weight: 400; }
/* Labels at 7980 (1500 wide, right-aligned), values in the Amount column 9600-10860, ruled 9540-10920. */
.aqtn-totals { border-collapse: collapse; width: 52.9mm; table-layout: fixed; flex: 0 0 auto; }
.aqtn-totals td { padding: 0.4mm 1mm; height: 5.3mm; font-weight: 700; white-space: nowrap; }
.aqtn-totals td.aqtn-tl { text-align: right; width: 28.6mm; }
.aqtn-totals td.num { text-align: right; border-left: 1px solid #000; border-right: 1px solid #000; border-bottom: 1px solid #000; }
.aqtn-terms-head { margin-top: 1.5mm; padding: 0 1mm; font-size: 10pt; font-weight: 700; text-decoration: underline; }
.aqtn-terms { margin: 1.5mm 0 0; padding-left: 12mm; font-size: 10pt; font-weight: 700; }
.aqtn-terms li { margin: 0; line-height: 1.25; }
.aqtn-terms li.aqtn-first { text-decoration: underline; }
.aqtn-bankrow { display: flex; align-items: flex-start; gap: 3mm; margin-top: 3mm; padding-left: 6.4mm; font-size: 9pt; }
.aqtn-stamp { width: 32.8mm; height: 22.2mm; flex: 0 0 auto; }
.aqtn-stamp img { width: 100%; height: 100%; object-fit: contain; }
.aqtn-kv { border-collapse: collapse; font-size: 9pt; }
.aqtn-kv td { padding: 0 1mm 0 0; vertical-align: top; height: 4.2mm; }
.aqtn-kv td:first-child { width: 19mm; }
.aqtn-kv td { white-space: nowrap; }
.aqtn-kv td:last-child { white-space: normal; }
.aqtn-kv:last-of-type td:last-child { white-space: nowrap; }
.aqtn-kv tr:first-child td { width: auto; }
.aqtn-kv:last-of-type { margin-left: auto; }

/* =============================================================================
   ACCUTRACE'S RECORD SHEET (CR-651; owner, 26 Oct 2026: "the datasheet design is still not as per the provided legacy
   reports" -- a fixed per-lab layout, mCompany.RsLayout = 'Accutrace'). Everything below is scoped to .ds-acc, so the
   standard (Alfa-Tech) sheet cannot change. Measured from the lab's printed record sheets
   (D:\ICPro Backup\64Bit\ICProET Accutrace\CalRecordsheets, RATL- E-161026-001-001 and RATL-MD-161026-008-018) and its
   report (Data\_ExportAccutrace\Reports\Calibration Record sheet.txt):
     - no frame round the whole sheet; the header, the identity band and the page footer are each their own box;
     - header: logo divider at 63 mm, a rule above the title; company and city 14 pt bold, title 12 pt bold;
     - 3 mm between the header box and the identity box; the identity box is split at 113.6 of 12.7..202.2 mm (53.3 %),
       "Details of Instrument :" between two rules inside it;
     - the equipment table has no box, only the rules between its five columns;
     - Times New Roman 10 pt; the footer 9 pt, ruled under the *Note, Format / Rev. and Issue lines.
   ============================================================================= */
.ds-acc .ds-sheet { border: none; font-family: "Times New Roman", Times, serif; font-size: 10pt; }
.ds-acc .ds-sheet table.ds-kv td { font-size: 10pt; }
.ds-acc .ds-pagehead { border: 0.6pt solid #000; }
.ds-acc .ds-company { font-size: 14pt; }
.ds-acc .ds-address { font-size: 14pt; font-weight: bold; flex: 0 0 auto; margin-bottom: 1mm; }
.ds-acc .ds-title { font-size: 12pt; margin-top: auto; }
.ds-acc .ds-body { padding: 3mm 0 2mm; }

.ds-acc .ds-idbox { position: relative; border: 0.6pt solid #000; margin-bottom: 2mm; }
.ds-acc .ds-idbox::after { content: ""; position: absolute; top: 0; bottom: 0; left: 53.3%; border-left: 0.6pt solid #000; }
/* Fixed columns so the right half starts exactly at the divider (53.3 %): left k + s + v = 53.3, right 46.7. */
.ds-acc .ds-idbox table.ds-kv { margin: 0; table-layout: fixed; }
.ds-acc .ds-idbox table.ds-kv td { overflow-wrap: anywhere; }
.ds-acc .ds-idbox table.ds-kv tr:first-child td:nth-child(1) { width: 22%; }
.ds-acc .ds-idbox table.ds-kv tr:first-child td:nth-child(2) { width: 2%; }
.ds-acc .ds-idbox table.ds-kv tr:first-child td:nth-child(3) { width: 29.3%; }
.ds-acc .ds-idbox table.ds-kv tr:first-child td:nth-child(4) { width: 21%; }
.ds-acc .ds-idbox table.ds-kv tr:first-child td:nth-child(5) { width: 2%; }
.ds-acc .ds-idbox table.ds-kv tr:first-child td:nth-child(6) { width: 23.7%; }
.ds-acc .ds-idbox table.ds-instrument tr:first-child td:nth-child(1) { width: 12%; }
.ds-acc .ds-idbox table.ds-instrument tr:first-child td:nth-child(3) { width: 39.3%; }
.ds-acc .ds-idbox table.ds-kv td.k { padding-left: 1mm; }
.ds-acc .ds-idbox table.ds-kv td.k2 { padding-left: 2mm; }
.ds-acc .ds-idbox .ds-section { margin: 0; padding: 0.6mm 1mm; border-top: 0.6pt solid #000; border-bottom: 0.6pt solid #000; font-size: 10pt; }
.ds-acc .ds-env { display: inline-block; min-width: 22mm; font-weight: normal; }
.ds-acc .ds-env.ds-env-cap, .ds-acc td.ds-envhead { font-weight: bold; }
.ds-acc .ds-env-hum { text-align: right; min-width: 18mm; }

.ds-acc .ds-section { font-size: 10pt; }
.ds-acc table.ds-equip-acc { font-size: 10pt; table-layout: fixed; }
.ds-acc table.ds-equip-acc th,
.ds-acc table.ds-equip-acc td { border: none; border-left: 0.5pt solid #000; padding: 0.4mm 1mm; }
.ds-acc table.ds-equip-acc th:first-child,
.ds-acc table.ds-equip-acc td:first-child { border-left: none; }
.ds-acc table.ds-equip-acc th:nth-child(1) { width: 30%; }
.ds-acc table.ds-equip-acc th:nth-child(2) { width: 12.8%; }
.ds-acc table.ds-equip-acc th:nth-child(3) { width: 18.3%; }
.ds-acc table.ds-equip-acc th:nth-child(4) { width: 12.8%; }
.ds-acc table.ds-equip-acc th:nth-child(5) { width: 26.1%; }

.ds-acc .ds-pagefoot { border: 0.6pt solid #000; padding: 1.5mm 2mm 0; }
.ds-acc .ds-sign-name { font-size: 9pt; }
.ds-acc .ds-control { margin: 0 -2mm; padding: 0.4mm 2mm; font-size: 9pt; border-top: 0.6pt solid #000; }
/* Label307 sits on the footer's own rule-free band; the rules are at T 1200 / 1440 / 1680 only. */
.ds-acc .ds-control.ds-note { font-style: italic; margin-top: 2mm; border-top: none; }
.ds-acc .ds-control-pair { display: flex; justify-content: space-between; }
.ds-acc .ds-control-pair > span:last-child { width: 36%; }

.ds-acc .stddev-acc table.stddev-acc-grid { width: 100%; border-collapse: collapse; margin: 0.8mm 0; }
.ds-acc .stddev-acc table.stddev-acc-grid td { width: 20%; padding: 0.4mm 0; text-align: left; }
.ds-acc .stddev-acc .stddev-acc-mu { margin: 0.6mm 0; }

/* Review 31 Oct 2026 (C3 / C8). A heading stays with what it heads: 4NF's "Line Contact Error" printed as
   the last line of page 1 with its table on page 2. And a long value with no spaces (an equipment ID or a
   certificate number such as VILLP/26-27/M-0600-REV2) wraps inside its cell instead of widening the
   column past the page. Neither changes a page that had neither problem. */
.certificate-sheet .section, .certificate-sheet .results-head, .certificate-sheet .trace-head,
.certificate-sheet .results-caption, .certificate-sheet .part-caption, .certificate-sheet .observation-header,
.ds-sheet .ds-section, .ds-sheet .ds-results-head {
    break-after: avoid;
    page-break-after: avoid;
}
.certificate-sheet table.grid td, .ds-sheet table.ds-grid td { overflow-wrap: anywhere; }

/* CR-691 (owner, 5 Nov 2026: "Replace current with modern style"): the Service Request Form as a flowing Modern
   document. A .pr-doc, so it takes the business documents' light rules and accent (DocumentLook); the bands, the
   repeated item headings and the page numbers come from the PDF renderer's business-document path. */
/* Its own stacking context, so the watermark (z-index -1) paints over the page background and under everything else. */
.srf-m { position: relative; z-index: 0; font-size: 9pt; }
.srf-m > img.srf-m-watermark { position: absolute; z-index: -1; left: 0; top: 0; width: 100%; height: 281mm; object-fit: contain; pointer-events: none; }
@media print { .srf-m > img.srf-m-watermark { position: fixed; height: 100%; } }
/* In the PDF the form is the body's own child (the converter renders the root's inner HTML, not under print media): fixed
   there too, so the watermark repeats on every page as the legacy's did. On screen the form sits inside #srf-root. */
body > .srf-m > img.srf-m-watermark { position: fixed; height: 100%; }
.srf-m .b { font-weight: bold; }
.srf-m .c { text-align: center; }
.srf-m-titlerow { display: flex; align-items: flex-end; justify-content: space-between; gap: 4mm;
    border-bottom: 0.6mm solid var(--st-accent, #1F4E79); padding-bottom: 1mm; margin: 0 0 2.5mm; }
.srf-m .srf-m-title { margin: 0; text-align: left; font-size: 15pt; letter-spacing: 1.5pt; color: var(--st-accent, #1F4E79); }
.srf-m-formatno { font-size: 8pt; color: #555; white-space: nowrap; }
.srf-m-part { font-weight: bold; font-size: 8pt; letter-spacing: 0.1em; color: var(--st-accent, #1F4E79); margin: 0 0 1mm; }
.srf-m-cap { font-size: 7pt; text-transform: uppercase; letter-spacing: 0.06em; color: #5a6472; margin: 0 0 0.8mm; }
.srf-m-sect { margin-top: 2.5mm; break-after: avoid; page-break-after: avoid; }
.srf-m-lbl { color: #5a6472; }
table.srf-m-tiles { width: 100%; border-collapse: separate; border-spacing: 0.8mm 0; margin: 0 -0.8mm 2mm; table-layout: fixed; }
table.srf-m-tiles th, table.srf-m-tiles td { border: 0; background: #eef1f5; text-align: left; padding: 0 1.5mm; overflow-wrap: anywhere; }
table.srf-m-tiles th { font-weight: normal; font-size: 6.5pt; text-transform: uppercase; letter-spacing: 0.05em; color: #5a6472;
    padding-top: 0.8mm; border-radius: 0.8mm 0.8mm 0 0; }
table.srf-m-tiles td { font-size: 8.5pt; padding-bottom: 1mm; border-radius: 0 0 0.8mm 0.8mm; }
.srf-m-cards { display: flex; gap: 2mm; margin-bottom: 0.5mm; break-inside: avoid; page-break-inside: avoid; }
.srf-m-card { flex: 1 1 0; border: 0.25mm solid #b4bcc8; border-left: 1mm solid var(--st-accent, #1F4E79); border-radius: 0.8mm; padding: 1.2mm 2mm; }
table.srf-m-kv { border-collapse: collapse; margin-top: 0.8mm; }
table.srf-m-kv td { padding: 0 1mm 0 0; vertical-align: top; }
table.srf-m-kv td:first-child { color: #5a6472; white-space: nowrap; }
.srf-m-validity { margin-top: 1.5mm; display: flex; align-items: center; gap: 1.5mm; }
.srf-m-validity .b { margin-right: 2mm; }
.srf-m-box { display: inline-block; width: 3.2mm; height: 3.2mm; border: 0.25mm solid #5a6472; border-radius: 0.4mm; margin-left: 2mm; }
.srf-m-text { font-size: 8pt; line-height: 1.3; margin: 0 0 1.2mm; }
.srf-m-note .b { color: #3f3f3f; }
table.srf-m-req { width: 100%; border-collapse: collapse; font-size: 8pt; margin-bottom: 1.5mm; table-layout: fixed; break-inside: avoid; page-break-inside: avoid; }
table.srf-m-req td { padding: 0.6mm 1mm; border-bottom: 0.2mm solid #dde2e8; vertical-align: top; }
table.srf-m-req td.srf-m-no { width: 5mm; color: var(--st-accent, #1F4E79); font-weight: bold; }
table.srf-m-req td.srf-m-val { width: 27mm; font-weight: bold; }
.srf-m-hint { font-weight: normal; color: #7a8492; font-size: 7pt; }
.srf-m-keep { break-inside: avoid; page-break-inside: avoid; }
.srf-m-agree { margin: 2mm 0 1mm; }
table.srf-m-sign { width: 100%; border-collapse: collapse; table-layout: fixed; }
table.srf-m-sign th { font-size: 7pt; text-transform: uppercase; letter-spacing: 0.05em; color: #5a6472; font-weight: normal; text-align: left;
    padding: 0.6mm 1.5mm; background: #eef1f5; border: 0.25mm solid #b4bcc8; }
table.srf-m-sign td { height: 8mm; border: 0.25mm solid #b4bcc8; }
.srf-m-office { margin-top: 2mm; }
.srf-m-partb { display: flex; justify-content: space-between; align-items: baseline; margin: 4mm 0 1mm;
    border-top: 0.6mm solid var(--st-accent, #1F4E79); padding-top: 1.2mm; break-after: avoid; page-break-after: avoid; }
.srf-m-partb .srf-m-part { margin: 0; }
.srf-m table.srf-m-items { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 8.5pt; }
/* break-inside: avoid on the heading group: Blink repeats a table header on a continuation page only when the header
   group cannot itself break (the certificate override's rule). */
.srf-m table.srf-m-items thead { display: table-header-group; break-inside: avoid; page-break-inside: avoid; }
.srf-m table.srf-m-items th { background: #e3e8ee; font-size: 7.5pt; font-weight: bold; padding: 1mm; border: 0.25mm solid #b4bcc8; vertical-align: middle; text-align: center; }
.srf-m table.srf-m-items th.left { text-align: left; }
.srf-m table.srf-m-items td { border: 0.25mm solid #b4bcc8; padding: 1mm; vertical-align: top; overflow-wrap: anywhere; }
.srf-m table.srf-m-items tr { break-inside: avoid; page-break-inside: avoid; }
.srf-m-details { font-size: 7.5pt; color: #333; }
.srf-m table.srf-m-items td.srf-m-labid { font-size: 7.5pt; overflow-wrap: normal; word-break: normal; }
.srf-m-foot { margin-top: 3mm; border-top: 0.25mm solid #b4bcc8; padding-top: 1.5mm; }
.srf-m-prep { display: flex; justify-content: space-between; margin-top: 3mm; padding-right: 30mm; }
.srf-m .report-pagefoot { display: none; }

/* CR-693: the Analysis report -- per parameter, the error graph and the point table; an overall result band. */
.ar-body .ar-meta { margin: 0.6mm 0; font-size: 9pt; }
.ar-body .ar-lbl { color: #5a6472; }
.ar-body .ar-empty { margin-top: 6mm; font-size: 10pt; color: #5a6472; }
.ar-body .ar-verdict { display: flex; align-items: baseline; gap: 3mm; margin: 3mm 0 2mm; padding: 2mm 3mm; border-radius: 1mm;
    border-left: 1.5mm solid #7a8492; background: #eef1f5; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ar-body .ar-verdict-cap { font-size: 7pt; text-transform: uppercase; letter-spacing: 0.06em; color: #5a6472; }
.ar-body .ar-verdict-word { font-size: 14pt; font-weight: bold; }
.ar-body .ar-verdict-note { font-size: 8pt; color: #5a6472; }
.ar-body .ar-verdict.ar-pass { border-left-color: #1e8449; } .ar-body .ar-verdict.ar-pass .ar-verdict-word { color: #1e8449; }
.ar-body .ar-verdict.ar-fail { border-left-color: #c0392b; } .ar-body .ar-verdict.ar-fail .ar-verdict-word { color: #c0392b; }
.ar-body .ar-verdict.ar-ind { border-left-color: #d68910; } .ar-body .ar-verdict.ar-ind .ar-verdict-word { color: #b9770e; }
.ar-body .ar-param { margin-top: 3mm; }
.ar-body .ar-param p.section-left { break-after: avoid; page-break-after: avoid; }
.ar-body svg.ar-graph { display: block; width: 100%; height: auto; max-height: 60mm; margin: 1mm 0 1.5mm; break-inside: avoid; page-break-inside: avoid; }
.ar-body table.ar-table td.ar-res { font-weight: bold; }
.ar-body table.ar-table td.ar-fail { color: #c0392b; }
.ar-body table.ar-table td.ar-ind { color: #b9770e; }
.ar-body table.ar-table td.ar-pass { color: #1e8449; }
.ar-body .ar-foot { margin-top: 2mm; font-size: 7.5pt; color: #5a6472; }

/* CR-695 (owner, 5 Nov 2026): the datasheet is always Modern -- the reports' look on the record sheet. Light rules,
   the accent on the title and headings, a shaded heading row, no frame. Colours and line weights only: no size,
   position or page rule changes, so the sheet breaks pages exactly where it did. On .ds-sheet, which the PDF carries. */
.ds-sheet.ds-modern { border-color: transparent !important; }
.ds-sheet.ds-modern * { border-color: #b4bcc8 !important; }
.ds-sheet.ds-modern .ds-title { color: var(--st-accent, #1F4E79); border-top-color: var(--st-accent, #1F4E79) !important; }
.ds-sheet.ds-modern .ds-company { color: var(--st-accent, #1F4E79); }
.ds-sheet.ds-modern .ds-section, .ds-sheet.ds-modern .ds-results-head, .ds-sheet.ds-modern .section { color: var(--st-accent, #1F4E79); }
.ds-sheet.ds-modern table.ds-grid th, .ds-sheet.ds-modern table.grid > thead > tr > th {
    background: #e3e8ee; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ds-sheet.ds-modern .ds-pagefoot { border-top-color: var(--st-accent, #1F4E79) !important; }

/* CR-695: the Uncertainty Sheet's contribution chart -- horizontal bars, the largest contributor in the accent. */
.us-chart { margin: 4mm 0 2mm; break-inside: avoid; page-break-inside: avoid; font-size: 8.5pt; }
.us-chart-title { font-weight: bold; margin-bottom: 1.5mm; color: var(--st-accent, #1F4E79); }
.us-chart-row { display: grid; grid-template-columns: 22mm 58mm 1fr 14mm; align-items: center; gap: 2mm; margin: 0.6mm 0; }
.us-chart-src { font-weight: bold; white-space: nowrap; }
.us-chart-desc { color: #5a6472; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.us-chart-track { display: block; height: 3.2mm; background: #eef1f5; border-radius: 0.6mm; overflow: hidden;
    -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.us-chart-bar { display: block; height: 100%; background: #9fb3c8; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.us-chart-row.largest .us-chart-bar { background: var(--st-accent, #1F4E79); }
.us-chart-row.largest .us-chart-src, .us-chart-row.largest .us-chart-pct { color: var(--st-accent, #1F4E79); }
.us-chart-pct { text-align: right; white-space: nowrap; }

/* =============================================================================
   CR-702 (owner, 9 Nov 2026): "Use the same font which is used in SRF in all reports except Certificate" -- and, shown
   the SRF on screen (Barlow) beside its PDF (Cambria): "Barlow, like the screen". Every report, business document and
   datasheet prints in Barlow, headings in Barlow Condensed, on screen and in the PDF alike. Certificates keep their own
   font (their sheet is not one of these roots). Stickers are labels, not reports, and are untouched.

   The faces are declared here, not only in app.css, because the PDF renderer inlines this file and nothing else: the
   first url is the screen's (/css/ -> /fonts/), the second the renderer's (it resolves from the content root).
   "html " only keeps these selectors distinct from the layouts' own (SharedPrintStylesheetTests). !important on the
   roots only: the datasheet's lab font arrives as an inline style, and the legacy layouts name
   Cambria / Times New Roman on these same elements at higher specificity. Descendants inherit.
   ============================================================================= */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; src: url('../fonts/barlow-400.woff2') format('woff2'), url('wwwroot/fonts/barlow-400.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; src: url('../fonts/barlow-500.woff2') format('woff2'), url('wwwroot/fonts/barlow-500.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; src: url('../fonts/barlow-600.woff2') format('woff2'), url('wwwroot/fonts/barlow-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; src: url('../fonts/barlow-700.woff2') format('woff2'), url('wwwroot/fonts/barlow-700.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 500; src: url('../fonts/barlow-condensed-500.woff2') format('woff2'), url('wwwroot/fonts/barlow-condensed-500.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; src: url('../fonts/barlow-condensed-600.woff2') format('woff2'), url('wwwroot/fonts/barlow-condensed-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; src: url('../fonts/barlow-condensed-700.woff2') format('woff2'), url('wwwroot/fonts/barlow-condensed-700.woff2') format('woff2'); }
html .rpt-doc, html .acl-doc, html .acl-doc.aqtn, html table.doc-flow, html .pr-doc, html .ds-sheet, html .ds-acc .ds-sheet {
    font-family: 'Barlow', 'Segoe UI', Arial, sans-serif !important;
}
html .rpt-doc h1,
html .rpt-doc h2,
html .rpt-doc h3,
html .rpt-doc h4,
html .acl-doc h1,
html .acl-doc h2,
html .acl-doc h3,
html .acl-doc h4,
html .pr-doc h1,
html .pr-doc h2,
html .pr-doc h3,
html .pr-doc h4,
html .ds-sheet h1,
html .ds-sheet h2,
html .ds-sheet h3,
html .ds-sheet h4 {
    font-family: 'Barlow Condensed', 'Barlow', 'Segoe UI', Arial, sans-serif;
}
