/* Office documents (order confirmation, pro-forma, vehicle schedule, profit sheet, letters) – A4, printed or saved as PDF */
/* margin 0: the browser has no room for its own date / title / web address lines; each .page carries its own margins */
@page { size: A4 portrait; margin: 0; }
* { box-sizing: border-box; }
body { margin: 0; background: #e9e9ec; color: #111; font: 9.2pt Arial, Helvetica, sans-serif; line-height: 1.32; }
.doc-bar { position: sticky; top: 0; z-index: 5; display: flex; gap: 12px; align-items: center; justify-content: space-between; background: #003B4D; color: #fff; padding: 10px 16px; font: 14px -apple-system, Segoe UI, Arial, sans-serif; }
.doc-btn { background: #fff; color: #003B4D; border: 0; border-radius: 18px; padding: 8px 16px; font: 600 14px -apple-system, Segoe UI, Arial, sans-serif; cursor: pointer; }
.page { background: #fff; width: 210mm; min-height: 297mm; margin: 16px auto; padding: 14mm 14mm 34mm; position: relative; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
@media print { body { background: #fff; } .no-print, .doc-bar { display: none !important; } .page { margin: 0; width: 210mm; min-height: 0; height: 296mm; overflow: hidden; padding: 12mm 13mm 30mm; box-shadow: none; page-break-after: always; break-after: page; } .page:last-child { page-break-after: auto; break-after: auto; } }
.of-head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; margin-bottom: 5mm; }
.of-head .logo { width: 19mm; height: 19mm; border-radius: 3mm; }
.of-head.pro { flex-direction: row-reverse; }
.of-head.letter { justify-content: flex-end; }
.of-title { flex: 1; text-align: right; }
.of-head.pro .of-title { text-align: left; }
.of-title h1 { margin: 0 0 3mm; font-size: 18pt; letter-spacing: .02em; }
.refs { margin-left: auto; border-collapse: collapse; }
.refs th { text-align: right; font-weight: 400; padding: 0 3mm 0 0; }
.refs td { text-align: left; padding: 0; font-weight: 600; }
h2 { font-size: 10pt; margin: 3.5mm 0 1.5mm; text-transform: none; }
h3 { font-size: 10.5pt; margin: 4mm 0 1.5mm; }
p { margin: 0 0 1.8mm; }
.small { font-size: 8pt; color: #333; }
table.grid { width: 100%; border-collapse: collapse; margin: 0 0 2.5mm; }
table.grid th, table.grid td { border: .6pt solid #333; padding: .9mm 2mm; text-align: left; vertical-align: top; }
table.grid th { width: 34%; font-weight: 400; }
table.grid tr.tall td, table.grid tr.tall th { height: 9mm; }
table.grid tr.shade td, table.grid tr.shade th { background: #e3eef1; }
table.grid.four th { width: 17%; } table.grid.four td { width: 33%; }
table.grid.narrow { width: 60%; }
td.hl { background: #ffef5a; font-weight: 700; }
.dd { display: flex; flex-wrap: wrap; gap: 3mm 8mm; align-items: center; margin-top: 2mm; }
.dd-opt, .check-line { display: inline-flex; gap: 2.5mm; align-items: center; }
/* Adobe Sign version: each tick box's tag sits above its wording (Adobe puts the box where the tag is), so all four fit on one line */
.dd.tagged { flex-wrap: nowrap; gap: 5mm; align-items: flex-start; }
.dd.tagged .dd-opt { flex-direction: column; align-items: flex-start; gap: .6mm; white-space: nowrap; }
.dd.tagged .tag.cb { font-size: 6pt; line-height: 3.2mm; height: 3.2mm; }
.box { display: inline-block; width: 5mm; height: 5mm; border: .8pt solid #222; position: relative; flex-shrink: 0; overflow: hidden; }
.row-line { display: flex; justify-content: space-between; border-bottom: .6pt solid #999; padding-bottom: 1mm; }
ol.decl { margin: 0 0 2mm; padding-left: 5mm; font-size: 8.2pt; line-height: 1.28; }
ol.decl li { margin-bottom: .6mm; }
.note-hl { background: #ffef5a; display: inline-block; padding: .5mm 2mm; font-size: 8.5pt; }
table.sign { width: 100%; border-collapse: collapse; margin: 2mm 0 4mm; }
table.sign th, table.sign td { border: .6pt solid #333; padding: 1.5mm 2mm; text-align: left; height: 11mm; vertical-align: bottom; }
table.sign th { width: 15%; font-weight: 400; vertical-align: middle; }
/* Adobe Sign text tags: white so they don't show, sized so Adobe makes a sensible box */
.tag { color: #fff; font-size: 9pt; white-space: nowrap; }
.tag.sig { font-size: 14pt; }
.tag.cb { font-size: 8pt; }
.of-foot { position: absolute; left: 14mm; right: 14mm; bottom: 8mm; text-align: center; font-size: 7pt; color: #333; line-height: 1.35; }
@media print { .of-foot { left: 13mm; right: 13mm; bottom: 12mm; } }
/* Pro-forma */
.pro-to { display: flex; justify-content: space-between; gap: 8mm; margin: 6mm 0; }
.pro-to .lbl { font-weight: 700; margin: 0; }
.pro-to .to { background: #dde3ef; padding: 2mm 4mm; min-width: 85mm; }
.pro-to .refs th { font-weight: 700; }
.pro-to .refs td { background: #dde3ef; padding: 1mm 3mm; }
table.lines { width: 100%; border-collapse: collapse; margin-bottom: 4mm; }
table.lines th { background: #dde3ef; text-align: left; padding: 1.6mm 2mm; border: .6pt solid #3d5a99; }
table.lines td { padding: 1.4mm 2mm; border-left: .6pt solid #3d5a99; border-right: .6pt solid #3d5a99; }
table.lines tbody tr:last-child td { border-bottom: .6pt solid #3d5a99; padding: 3mm 2mm 3mm; }
.num { text-align: right; white-space: nowrap; }
table.totals { margin-left: auto; border-collapse: collapse; min-width: 75mm; }
table.totals th { text-align: right; font-weight: 400; padding: 1mm 3mm; }
table.totals td { text-align: right; border: .6pt solid #3d5a99; padding: 1mm 3mm; min-width: 30mm; }
table.totals tr.total th, table.totals tr.total td { font-weight: 700; font-size: 11.5pt; }
.pro-sign { display: flex; gap: 12mm; margin: 6mm 0 2mm; }
.pro-sign p { border-bottom: .6pt solid #333; min-width: 70mm; padding-bottom: 6mm; }
.bacs { white-space: normal; }
/* Vehicle schedule */
.sched-intro { margin: 0; font-size: 9pt; }
.sched-intro .fill { display: inline-block; min-width: 40mm; border-bottom: .6pt solid #333; }
.parties { font-weight: 700; font-size: 11pt; margin: 1mm 0 0; }
.parts { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5mm; }
.part { border: .9pt solid #111; padding: 1.5mm 2.5mm; break-inside: avoid; }
.part h3 { margin: 0 0 1mm; font-size: 8.8pt; }
.part table { width: 100%; border-collapse: collapse; font-size: 8pt; line-height: 1.2; }
.part th { text-align: left; font-weight: 400; width: 46%; padding: .35mm 0; vertical-align: top; }
.part td { padding: .35mm 0; border-bottom: .4pt dotted #999; }
.legend { font-size: 8pt; }
ul.dmg { margin: 0 0 2mm; padding-left: 4mm; font-size: 8.5pt; }
/* Profit sheet */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 6mm; margin-bottom: 2.5mm; }
table.kv { width: 100%; border-collapse: collapse; }
table.kv caption { text-align: left; font-weight: 700; padding-bottom: 1mm; }
table.kv th { text-align: left; font-weight: 400; padding: .6mm 0; border-bottom: .4pt solid #ccc; }
table.kv td { padding: .6mm 0; border-bottom: .4pt solid #ccc; min-width: 28mm; }
.big { font-size: 12pt; margin-top: 4mm; }
/* Letters */
.letter .addr { margin: 6mm 0 8mm; }
.letter .date { margin-bottom: 6mm; }
table.letter-facts { border-collapse: collapse; margin: 3mm 0 5mm; }
table.letter-facts th { text-align: left; font-weight: 400; padding: .8mm 12mm .8mm 0; vertical-align: top; min-width: 45mm; }
table.letter-facts td { padding: .8mm 0; }
.sig-gap { margin-top: 12mm; }
.letter h3 { color: #003B4D; }

/* The schedule's last parts share the page: Part VII on the left, VIII–X on the right */
.schedule .of-head { margin-bottom: 3mm; }
.schedule .part h3 + table { margin-bottom: 1mm; }
.schedule .part h3:not(:first-child) { margin-top: 1.6mm; }
@media print { .page.letter, .page.schedule, .page.profit { overflow: visible; } }
/* The terms page of the order form carries the most text: a touch smaller so it fits one page with its footer */
.page.terms { font-size: 8.5pt; line-height: 1.28; }
.page.terms h2 { margin: 2.6mm 0 1.2mm; }
.page.terms ol { margin-top: 1mm; margin-bottom: 1.5mm; }
.page.terms li { margin-bottom: .4mm; }
/* Letters and reports that run over more than one page: the margins repeat on every page, with the footer at the foot of each */
.page.flow { height: auto; min-height: 296mm; }
@media print {
  .page.flow { height: auto; min-height: 0; overflow: visible; padding: 12mm 13mm 30mm; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
  .page.flow .of-foot { position: fixed; }
}
.letter-text h3 { font-size: 10.5pt; margin: 4mm 0 1.5mm; color: #003B4D; }
.letter-text ul { margin: 0 0 2mm; padding-left: 5mm; }
.report-h { font-size: 16pt; margin: 2mm 0 1mm; color: #003B4D; }
.report .muted { color: #555; }
.report-body:focus { outline: 2px dashed #003B4D; outline-offset: 2mm; }
.report-body h2 { font-size: 11pt; color: #003B4D; border-bottom: .6pt solid #c7c7cc; padding-bottom: 1mm; margin: 6mm 0 2mm; break-after: avoid; }
.report-body h3 { font-size: 9.5pt; margin: 3mm 0 1mm; break-after: avoid; }
.rec { break-inside: avoid; }
table.kv { border-collapse: collapse; width: 100%; margin: 0 0 2mm; }
table.kv th, table.kv td { text-align: left; vertical-align: top; padding: .7mm 2mm .7mm 0; border-bottom: .4pt solid #e5e5ea; font-weight: 400; }
table.kv th { width: 45mm; color: #555; }
table.kv.summary th { width: auto; }
.redacted { background: #000; color: #000; letter-spacing: -.05em; }
.redact-bar #redact-msg { font-weight: 600; }
table.ref-table td.write { min-width: 45mm; }
/* Keep the sign-off with "Kind regards" */
.letter-text p:nth-last-child(2) { break-after: avoid; page-break-after: avoid; }
.letter-text p:last-child { break-inside: avoid; page-break-inside: avoid; }
/* How to pay on the pro-forma: bank transfer, then card with the order's own QR code */
.pay-h { font-size: 12px; margin: 10px 0 4px; text-transform: uppercase; letter-spacing: .04em; }
.pay-card { display: flex; gap: 16px; align-items: center; break-inside: avoid; }
.pay-card .pay-qr { margin: 0; text-align: center; }
.pay-card .pay-qr svg { width: 110px; height: 110px; display: block; }
.pay-card .pay-qr figcaption { font-size: 10px; color: #555; margin-top: 2px; }
.pay-url { word-break: break-all; }

/* Payment schedule (statement) */
.st-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.st-head h1 { margin: 0; font-size: 20px; } .st-title { text-align: right; }
.st-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.st-sum div { border: 1px solid #d9e2e5; border-radius: 6px; padding: 6px 8px; }
.st-sum span { display: block; font-size: 9px; color: #555; text-transform: uppercase; letter-spacing: .04em; }
.st-sum strong { font-size: 13px; }
table.st { width: 100%; border-collapse: collapse; font-size: 10px; }
.st th { text-align: left; border-bottom: 1.5px solid #003B4D; padding: 4px; }
.st td { border-bottom: 1px solid #e5e9eb; padding: 3px 4px; vertical-align: top; }
.st .num { text-align: right; white-space: nowrap; } .st tr.pay td { color: #2d6a3e; }
.st tfoot td { font-weight: 700; border-top: 1.5px solid #003B4D; border-bottom: 0; }
.st thead { display: table-header-group; } .st tr { break-inside: avoid; }
/* Rental agreement – everything on one page */
.page.ra { font-size: 8pt; line-height: 1.28; padding-bottom: 24mm; }
@media print { .page.ra { padding: 9mm 11mm 22mm; } .page.ra .of-foot { bottom: 8mm; } }
.ra .of-head { margin-bottom: 2.5mm; }
.ra .of-head .logo { width: 14mm; height: 14mm; }
.ra .of-title h1 { font-size: 14pt; margin: 0; }
.ra .ra-kind { margin: 0 0 1mm; font-weight: 700; color: #003B4D; }
.ra-car { display: flex; gap: 3mm; align-items: center; margin: 0 0 2mm; }
.ra-plate { background: #ffd200; border: .6pt solid #333; border-radius: 1mm; padding: .8mm 2.5mm; font: 700 12pt Arial, sans-serif; letter-spacing: .06em; white-space: nowrap; }
.ra-cols { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 3mm; margin-bottom: 1.5mm; }
.ra-t { width: 100%; border-collapse: collapse; align-self: start; }
.ra-t caption { text-align: left; font-weight: 700; font-size: 7.5pt; letter-spacing: .06em; color: #333; padding-bottom: .5mm; }
.ra-t th, .ra-t td { border-top: .5pt solid #bbb; padding: .4mm 0; vertical-align: top; text-align: left; font-size: 7.5pt; line-height: 1.25; }
.ra-t th { font-weight: 400; color: #444; padding-right: 3.5mm; width: 40%; }
.ra-t td { font-weight: 600; }
/* Key figures the hirer must notice: light teal */
.ra-t tr.ra-hl th, .ra-t tr.ra-hl td { background: #d6eef0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ra-t tr.ra-hl th { padding-left: 1.2mm; }
.ra-t tr.ra-hl td { padding-right: 1.2mm; }
.ra-note { background: #e3eef1; border-radius: 1.5mm; padding: 1.5mm 2.5mm; margin: 0 0 1.5mm; font-size: 7.6pt; }
.ra-dec { background: #f3f3f5; border-radius: 1.5mm; padding: 1.5mm 2.5mm; margin-bottom: 1.5mm; }
.ra h2 { font-size: 7.5pt; letter-spacing: .06em; margin: 0 0 1mm; color: #333; }
.ra-dec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1mm 4mm; }
.ra-d { display: flex; gap: 2mm; align-items: flex-start; }
.ra-d p { margin: 0; font-size: 7.4pt; line-height: 1.24; }
.ra-ini { flex: 0 0 13mm; height: 6mm; border: .8pt dashed #003B4D; border-radius: 1mm; background: #e8f1f3; font-size: 6.5pt; color: #003B4D; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ra-legal { display: grid; grid-template-columns: 1fr 1fr; gap: 4mm; margin-bottom: 1.5mm; }
.ra-legal section { display: flex; flex-direction: column; }
.ra-legal p { font-size: 6.3pt; line-height: 1.26; margin: 0 0 .8mm; text-align: justify; hyphens: auto; }
.ra-sig { margin-top: auto; height: 8mm; border: .8pt dashed #003B4D; border-radius: 1mm; background: #e8f1f3; display: flex; align-items: center; padding: 0 2mm; font-size: 7pt; color: #003B4D; overflow: hidden; }
.ra-accept { font-size: 7.6pt; margin: 0 0 1mm; }
.ra .ra-sign { margin: 0 0 1.5mm; }
.ra .ra-sign th, .ra .ra-sign td { height: 8mm; padding: 1mm 2mm; font-size: 7.6pt; }
.ra-dp { font-size: 7pt; margin: 0; }
/* Specimen copies in the template library */
.specimen-mark { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 4; font: 700 110pt Arial, sans-serif; color: rgba(0, 59, 77, .08); transform: rotate(-30deg); letter-spacing: .1em; }
.specimen-bar { background: #fff4d6; color: #5a3d00; text-align: center; padding: 8px 16px; font: 14px -apple-system, Segoe UI, Arial, sans-serif; }
@media print { .specimen-bar { display: none; } }
/* Vehicle summary (two pages) */
.page.vs { font: 10pt -apple-system, 'Segoe UI', Arial, sans-serif; color: #1d1d1f; padding: 13mm 14mm 26mm; }
@media print { .page.vs { padding: 12mm 14mm 24mm; } }
.vs-head { display: flex; justify-content: space-between; align-items: flex-start; }
.vs-head .logo { width: 16mm; height: 16mm; border-radius: 3mm; }
.vs-head h1 { margin: 0; font-size: 13pt; text-align: right; }
.vs-head p { margin: 0; color: #55555a; font-size: 9pt; text-align: right; }
.vs-hero { margin: 3mm 0 2mm; text-align: center; }
.vs-hero img { width: 120mm; height: auto; max-height: 68mm; object-fit: contain; }
.vs-id { text-align: center; margin-bottom: 4mm; }
.vs-plate { display: inline-flex; align-items: stretch; background: #ffd200; border: .6pt solid #555; border-radius: 1.2mm; font: 700 17pt 'Arial Narrow', Arial, sans-serif; letter-spacing: .08em; overflow: hidden; }
.vs-plate span { background: #1d4e9e; color: #fff; font-size: 6pt; padding: 0 1.2mm; display: flex; align-items: flex-end; padding-bottom: 1mm; margin-right: 2mm; }
.vs-plate { padding-right: 3mm; }
.vs-id h2 { font-size: 22pt; margin: 2mm 0 1mm; letter-spacing: -.02em; }
.vs-der { margin: 0; font-size: 11pt; }
.vs-sub { margin: 1mm 0 0; color: #55555a; font-size: 9pt; }
.vs-tiles { list-style: none; padding: 0; margin: 0 0 5mm; display: grid; grid-template-columns: repeat(auto-fit, minmax(24mm, 1fr)); gap: 2.5mm; }
.vs-tiles li { background: #f5f5f7; border-radius: 3mm; padding: 2.5mm 1mm; text-align: center; }
.vs-tiles strong { display: block; font-size: 14pt; }
.vs-tiles small { font-size: 8pt; font-weight: 400; color: #55555a; margin-left: .5mm; }
.vs-tiles span { font-size: 8pt; color: #55555a; }
.vs-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8mm; }
.vs-t { width: 100%; border-collapse: collapse; margin-bottom: 4mm; }
.vs-t caption { text-align: left; font-size: 8pt; font-weight: 700; letter-spacing: .08em; color: #55555a; padding-bottom: 1mm; }
.vs-t th, .vs-t td { border-top: .5pt solid #e0e0e5; padding: 1.6mm 0; font-size: 9pt; text-align: left; vertical-align: top; }
.vs-t th { font-weight: 400; color: #55555a; }
.vs-t td { text-align: right; font-weight: 600; }
.vs-head2 { display: flex; justify-content: space-between; border-bottom: .5pt solid #e0e0e5; padding-bottom: 3mm; margin-bottom: 4mm; font-size: 10pt; }
.vs-head2 span { color: #55555a; font-size: 9pt; }
.vs-box { background: #f5f5f7; border-radius: 4mm; padding: 4mm 5mm 2mm; margin-bottom: 4mm; break-inside: avoid; }
.vs-box-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2mm; }
.vs-box-h h2 { margin: 0; font-size: 12.5pt; }
.vs-box-h span { font-size: 8pt; color: #55555a; }
.vs-chip { background: #fff; border-radius: 9mm; padding: .8mm 3mm; font-weight: 600; }
.vs-chip.ok { background: #e3f4e8; color: #1e6b30 !important; }
.vs-kpi { list-style: none; margin: 0 0 3mm; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3mm; }
.vs-kpi li { background: #fff; border-radius: 2.5mm; padding: 2mm 3mm; }
.vs-kpi span { display: block; font-size: 7.5pt; color: #55555a; }
.vs-kpi strong { font-size: 14pt; }
.vs-box .vs-t th, .vs-box .vs-t td { border-color: #dcdce1; }
.vs-callout { background: #fff; border-radius: 2.5mm; padding: 2.5mm 3.5mm; font-size: 9pt; margin: 0 0 3mm; }
.vs-small { font-size: 7.6pt; color: #55555a; margin: 0 0 2mm; }
.vs-disc { margin-top: 2mm; }
.vs-foot { position: absolute; left: 14mm; right: 14mm; bottom: 10mm; display: flex; justify-content: space-between; border-top: .5pt solid #e0e0e5; padding-top: 2mm; font-size: 7.6pt; color: #55555a; }
/* Order form terms page: a little tighter so the footnote clears the footer */
.page.terms { font-size: 8.2pt; line-height: 1.24; }
.page.terms h2 { margin: 2mm 0 .8mm; }
.page.terms ol.decl { font-size: 7.4pt; line-height: 1.2; }
.page.terms table.sign th, .page.terms table.sign td { height: 9mm; }
.page.terms > p.small:last-of-type { font-size: 7pt; }
/* Keep the terms page within one A4 sheet on screen and in print, with room to spare for other browsers' fonts */
.page.terms { padding-top: 11mm; padding-bottom: 26mm; }
.page.terms p { margin: 0 0 1.6mm; }
.page:has(> .of-head.pro) { padding-bottom: 30mm; }
@media print { .page.terms { padding-top: 9mm; padding-bottom: 24mm; } .page.terms .of-foot { bottom: 9mm; } }
/* Advice of Charges (built live from Settings) */
.page.aoc { font: 7.4pt/1.25 -apple-system, 'Segoe UI', Arial, sans-serif; padding: 11mm 12mm 26mm; }
@media print { .page.aoc { padding: 9mm 11mm 22mm; } }
.aoc .of-title h1 { margin: 0; }
.aoc-sub { margin: 0; color: #55555a; }
.aoc-intro { margin: 0 0 2mm; color: #3a3a3c; }
.aoc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6mm; align-items: start; }
.aoc-heads { display: grid; grid-template-columns: 1fr 1fr; gap: 6mm; margin: 0 0 1mm; }
.aoc-hd { display: flex; gap: 1.5mm; font-size: 5.8pt; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #6e6e73; padding-bottom: .6mm; border-bottom: .5pt solid #d2d2d7; }
.aoc-hd span:first-child { flex: 1 1 0; }
.aoc-hp { flex: 0 0 29.5mm; text-align: right; }
.aoc-hv { flex: 0 0 11mm; text-align: right; }
.aoc-foot { position: absolute; left: 12mm; right: 12mm; bottom: 9mm; padding-top: 2mm; border-top: .5pt solid #e5e5ea; font-size: 5.9pt; line-height: 1.5; color: #6e6e73; }
@media print { .aoc-foot { left: 11mm; right: 11mm; bottom: 7mm; } }
.aoc-sec { break-inside: auto; margin: 0 0 1.2mm; }
.aoc-sec h2 { font-size: 7pt; letter-spacing: .09em; color: #003B4D; margin: 0 0 1mm; break-after: avoid; }
.aoc-it { display: flex; gap: 2.5mm; padding: .5mm 0; border-top: .5pt solid #e5e5ea; break-inside: avoid; }
.aoc-it.hl { background: #e6f0f2; border-radius: 1.5mm; padding: 1.1mm 1.6mm; margin: .4mm -1.6mm; border-top-color: transparent; }
.aoc-d { flex: 1 1 0; display: flex; flex-direction: column; gap: .3mm; }
.aoc-t { font-weight: 600; font-size: 7.2pt; }
.aoc-n { font-size: 6pt; color: #55555a; }
.aoc-n a, .aoc-intro a { color: #003B4D; }
.aoc-nr { align-self: flex-end; font-size: 5.8pt; font-weight: 700; letter-spacing: .06em; padding: .2mm 1.2mm; border-radius: .8mm; background: #003B4D; color: #fff; margin-top: .4mm; }
.aoc-p { flex: 0 0 42mm; display: flex; flex-direction: column; gap: .8mm; }
.aoc-pr { display: flex; gap: 1.5mm; font-size: 6.9pt; }
.aoc-l { flex: 0 0 11mm; color: #55555a; white-space: nowrap; }
.aoc-a { flex: 1 1 0; text-align: right; font-weight: 600; }
.aoc-v { flex: 0 0 11mm; text-align: right; color: #3a3a3c; white-space: nowrap; }

/* Long documents: terms and conditions, Return Standards, Complaints Policy (flow over as many pages as they need) */
.longdoc { page: longdoc; background: #fff; width: 210mm; box-sizing: border-box; margin: 16px auto; padding: 16mm 17mm 18mm; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); font-size: 9.4pt; line-height: 1.42; color: #1d1d1f; }
@page longdoc { size: A4; margin: 14mm 15mm 16mm; }
@media print { .longdoc { margin: 0; width: auto; padding: 0; box-shadow: none; } }
@media (max-width: 820px) { .longdoc { width: auto; margin: 0; padding: 20px 16px; box-shadow: none; } }
.longdoc .ld-head { display: flex; justify-content: flex-end; margin-bottom: 4mm; }
.longdoc .ld-head .logo { height: 16mm; width: auto; border-radius: 3mm; }
.longdoc h1 { font-size: 19pt; letter-spacing: -.01em; margin: 0 0 2mm; color: #003B4D; }
.longdoc h1 + p { color: #55555a; margin-top: 0; }
.longdoc h2 { font-size: 11.5pt; margin: 6mm 0 2mm; color: #003B4D; break-after: avoid; }
.longdoc h3 { font-size: 10pt; margin: 4mm 0 1.5mm; break-after: avoid; }
.longdoc p { margin: 0 0 2mm; }
.longdoc p.cl { padding-left: 9mm; text-indent: -9mm; }
.longdoc p.sub { padding-left: 16mm; text-indent: -7mm; }
.longdoc .cn { display: inline-block; min-width: 7mm; text-indent: 0; font-weight: 600; color: #003B4D; }
.longdoc p.sub .cn { min-width: 6mm; }
.longdoc ul { margin: 0 0 2.5mm; padding-left: 6mm; }
.longdoc li { margin-bottom: 1mm; }
.longdoc a { color: #003B4D; overflow-wrap: anywhere; }
.longdoc table.ld-t { width: 100%; border-collapse: collapse; margin: 1mm 0 3.5mm; font-size: 8.8pt; break-inside: auto; }
.longdoc table.ld-t th, .longdoc table.ld-t td { border: .5pt solid #d2d2d7; padding: 1.4mm 2mm; text-align: left; vertical-align: top; }
.longdoc table.ld-t thead th { background: #e6f0f2; color: #003B4D; font-weight: 600; }
.longdoc table.ld-t.kv th { width: 34%; background: #f5f5f7; font-weight: 600; }
.longdoc table.ld-t tr { break-inside: avoid; }
.longdoc .fill { background: #e6f0f2; color: #003B4D; border-radius: 1mm; padding: 0 1mm; font-style: italic; }
.longdoc .filled { font-weight: 600; }
.longdoc mark { background: #fff3b0; }
.longdoc .ld-foot { margin-top: 8mm; padding-top: 2.5mm; border-top: .5pt solid #e5e5ea; font-size: 7.4pt; color: #6e6e73; }
/* Boxes to sign and tick (Adobe Acrobat Sign places its fields on the tags inside them) */
.longdoc .esign { display: inline-block; vertical-align: middle; border: 1.2pt solid #003B4D; border-radius: 1.2mm; background: #fff; }
.longdoc .esign.sig { width: 70mm; height: 13mm; }
.longdoc .esign.date, .longdoc .esign.txt { width: 45mm; height: 7mm; }
.longdoc .esign.cbx { width: 5mm; height: 5mm; margin-right: 2mm; }
.longdoc .esign .tag { font-size: 9pt; }
.longdoc .esign.sig .tag { font-size: 14pt; }
.longdoc p.tick { display: flex; align-items: flex-start; gap: 1mm; padding: 2mm 3mm; border-radius: 2mm; background: #fff3b0; border: .8pt solid #e0b400; break-inside: avoid; }
.longdoc p.tick .esign.cbx { flex: 0 0 auto; margin-top: .3mm; }
.longdoc table.ld-t td .esign { margin: 1mm 0; }
/* A box the customer must tick (highlighted so it isn't missed in Adobe Sign) */
.check-line.req { display: flex; align-items: flex-start; background: #fff3b0; border: .8pt solid #e0b400; border-radius: 1.5mm; padding: 1.5mm 2mm; }
/* Amended rental agreement: the amendment banner takes room, so tighten the page a little */
.page.ra .note-hl { display: block; font-size: 7.4pt; padding: 1mm 2mm; margin: 0 0 1.5mm; }
.page.ra:has(> .note-hl) .ra-legal p { font-size: 6pt; line-height: 1.22; }
.page.ra:has(> .note-hl) .ra-note { font-size: 7.2pt; padding: 1.2mm 2.2mm; }
/* Long documents look like A4 sheets on screen, with the footer at the foot of the sheet */
.longdoc { min-height: 297mm; display: flex; flex-direction: column; }
.longdoc > .ld-foot { margin-top: auto; }
@media print { .longdoc { min-height: 0; display: block; } .longdoc.ld-one { min-height: 266mm; display: flex; break-inside: avoid; } }
/* One-sheet forms: room to write by hand */
.ld-form table.ld-t.kv { font-size: 9.4pt; }
.ld-form table.ld-t.kv th { width: 40%; }
.ld-form table.ld-t.kv td { height: 11mm; }
.ld-form table.ld-t.kv tr:first-child td { height: 16mm; }
.ld-form table.ld-t.kv tr:nth-child(6) td { height: 22mm; }
.ld-form table.ld-t.kv tr:nth-child(7) td { height: 18mm; }
/* Signing packs: each document starts on a new page */
.pack-break { break-before: page; page-break-before: always; }
.longdoc .esign.rad { border-radius: 50%; }

/* Tick boxes for Adobe Sign: Adobe whites out each tag's text where it sits, so the tag goes on its own line above
   the wording, on a white background where the white-out can't be seen. The tick box appears at the tag's start. */
.longdoc p.tick { display: block; position: relative; background: #fff; border: 1.2pt solid #e0b400; border-left-width: 4pt; padding: 2mm 3mm 2mm 3mm; }
.longdoc p.tick > .esign.cbx { display: block; width: 5mm; height: 5mm; margin: 0 0 1.5mm; overflow: visible; white-space: nowrap; }
.longdoc p.tick > .esign.cbx .tag { font-size: 9pt; line-height: 5mm; }
.longdoc p.tick > span { display: block; }

/* Order form tick boxes with Adobe Sign: the same – the tag on its own line above the wording */
.check-line.tagged { display: block; }
.check-line.tagged > .tag.cb { display: block; height: 4.5mm; line-height: 4.5mm; overflow: visible; }

/* ---------- Letters on headed paper ---------- */
/* A fine teal band across the top edge, the logo on the left and the company's details on the right */
.page.letter { padding-top: 15mm; font-size: 9.8pt; line-height: 1.42; }
.page.letter::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3.5mm; background: #003B4D; }
.lh { display: flex; align-items: center; justify-content: space-between; gap: 8mm; padding-bottom: 4mm; border-bottom: .8pt solid #003B4D; margin-bottom: 0; }
.lh .logo { width: 17mm; height: 17mm; border-radius: 3mm; }
.lh-co { text-align: right; font-size: 8pt; line-height: 1.5; color: #4a5b61; }
.lh-co strong { color: #003B4D; font-size: 9.5pt; letter-spacing: .01em; }
/* Address in the window of a DL window envelope; date and references on the right */
.lt { display: flex; justify-content: space-between; align-items: flex-start; gap: 10mm; margin: 9mm 0 6mm; min-height: 27mm; }
.lt .addr { margin: 0; width: 85mm; line-height: 1.45; }
table.lt-refs { border-collapse: collapse; font-size: 9pt; }
table.lt-refs th { text-align: left; font-weight: 400; color: #5a6a70; padding: .4mm 5mm .4mm 0; }
table.lt-refs td { text-align: left; padding: .4mm 0; }
.letter p { margin: 0 0 2.4mm; }
.letter .subj { font-size: 12pt; font-weight: 700; color: #003B4D; margin: 3mm 0 3mm; }
.letter h3 { font-size: 10.5pt; margin: 5mm 0 1.5mm; color: #003B4D; }
/* The key figure, set apart */
.callout { display: flex; flex-direction: column; gap: 1mm; border-left: 1.4mm solid #003B4D; background: #eef5f7; padding: 4mm 6mm; margin: 2mm 0 5mm; border-radius: 0 2mm 2mm 0; }
.callout-figure { font-size: 16pt; font-weight: 700; color: #003B4D; letter-spacing: -.01em; }
.callout-note { font-size: 9pt; color: #4a5b61; }
/* Sign-off: the signature image (or room to sign by hand), name and details */
.signoff { margin-top: 4mm; break-inside: avoid; page-break-inside: avoid; }
.signoff p { margin: 0 0 1mm; }
.sig-img { display: block; height: 15mm; max-width: 70mm; object-fit: contain; object-position: left center; margin: 2mm 0 1mm; }
.sig-space { height: 14mm; }
.sig-name { line-height: 1.4; }
.sig-contact { font-size: 8.5pt; color: #4a5b61; }
.page.letter .of-foot { border-top: .6pt solid #c9d6da; padding-top: 2mm; color: #5a6a70; }
.st-h { font-size: 11pt; color: #003B4D; margin: 6mm 0 2mm; }

/* Optional maintenance on the order form: a Yes / No to tick (Adobe Sign checkboxes, or boxes to tick by hand) */
.maint-q { align-items: center; }
.maint-q .yn { display: inline-flex; gap: 6mm; flex-shrink: 0; }
.maint-q .box { text-align: center; line-height: 4.6mm; font-size: 9pt; }
/* Never a blank sheet after the last page */
@media print { .page:last-of-type { page-break-after: auto; break-after: auto; } }
.ra-t td.ra-fn { font-weight: 400; font-size: 6.8pt; color: #444; border-top: 0; padding-top: 1mm; }

/* Rental agreement: a touch tighter so the separate agreement and rental numbers, and the fuller liability wording, still fit one A4 sheet */
.ra .of-title .refs th, .ra .of-title .refs td { line-height: 1.2; }
.ra .ra-sign th, .ra .ra-sign td { height: 7mm; padding: .8mm 2mm; }
.ra-sig { height: 7mm; }
.ra-legal p { font-size: 6.15pt; line-height: 1.24; }
@media print { .page.ra { padding: 7.5mm 11mm 21mm; } .page.ra .of-foot { bottom: 7mm; } }
/* On screen too, keep these one A4 sheet tall */
@media screen { .page.terms { padding-bottom: 22mm; } .page.terms .of-foot { bottom: 7mm; } .page.ra { padding-top: 11mm; padding-bottom: 21mm; } .page.ra .of-foot { bottom: 7mm; } }
.ra-sub { font-weight: 400; font-size: 6.8pt; color: #444; }

/* Rental agreement on two pages (v0.188): page 1 the details and declarations, page 2 the liability statement, indemnity and signatures.
   Room at the foot of every page for Adobe Sign's transaction footer, initials boxes Adobe can read, and wide signature fields. */
.page.ra { padding-bottom: 30mm; }
.page.ra .of-foot, .page.ra2 .of-foot { bottom: 14mm; }
@media print { .page.ra { padding: 10mm 12mm 30mm; } .page.ra .of-foot { bottom: 14mm; } }
@media screen { .page.ra { padding-top: 12mm; padding-bottom: 30mm; } .page.ra .of-foot { bottom: 14mm; } }
.ra-dec-h { margin: 0 0 1.5mm; font-size: 7.4pt; color: #444; }
.ra-dec-list { display: flex; flex-direction: column; gap: 2mm; }
.ra-dec-list .ra-d { display: grid; grid-template-columns: 1fr 52mm; gap: 4mm; align-items: center; }
.ra-dec-list .ra-d p { font-size: 7.8pt; line-height: 1.3; }
.ra-dec-list .ra-ini { flex: none; width: 52mm; height: 9mm; overflow: visible; justify-content: flex-start; padding: 0 2mm; }
.ra-ini .tag.ini { font-size: 8pt; line-height: 9mm; white-space: nowrap; }
.ra-ini-l { color: #003B4D; font-size: 6.5pt; }
.ra-cont { text-align: right; font-size: 7.4pt; color: #444; margin: 2mm 0 0; }
.ra2-head { display: flex; align-items: center; gap: 3mm; margin-bottom: 4mm; font-size: 8pt; }
.ra2-head .logo { width: 9mm; height: 9mm; }
.ra2 .ra-legal { grid-template-columns: 1fr; gap: 3mm; }
.ra2 .ra-legal p { font-size: 7.4pt; line-height: 1.3; }
.ra2 .ra-sig { height: 10mm; }
.ra-sign-h { margin: 3mm 0 1mm !important; }
.ra .ra-sign { margin: 0 0 2mm; table-layout: fixed; }
.ra .ra-sign th { width: 22mm; }
.ra .ra-sign th, .ra .ra-sign td { height: 9mm; padding: .8mm 2mm; font-size: 7.8pt; vertical-align: middle; }
.ra .ra-sign td { overflow: visible; white-space: nowrap; }
.tag.fld { font-size: 9pt; }
/* Page 1 has room now: a little larger and airier */
.page.ra:not(.ra2) .ra-t th, .page.ra:not(.ra2) .ra-t td { font-size: 8.4pt; padding: .9mm 0; }
.page.ra:not(.ra2) .ra-t th { padding-right: 3.5mm; }
.page.ra:not(.ra2) .ra-t caption { font-size: 8pt; padding-bottom: 1mm; }
.page.ra:not(.ra2) .ra-cols { margin-bottom: 4mm; gap: 5mm; }
.page.ra:not(.ra2) .ra-note { font-size: 8.4pt; padding: 2.5mm 3.5mm; margin-bottom: 4mm; }
.page.ra:not(.ra2) .ra-dec { padding: 3mm 3.5mm; }
.page.ra:not(.ra2) .ra-dec-list .ra-d p { font-size: 8.6pt; }
.page.ra:not(.ra2) .ra-dec-list { gap: 3mm; }
.page.ra:not(.ra2) .ra-sub { font-size: 7.4pt; }
/* Leave the foot of every page clear for Adobe Sign's transaction footer (it prints along the very bottom) */
@media print { .of-foot { bottom: 14mm; } .page { padding-bottom: 32mm; } .page.terms { padding-bottom: 30mm; } .page.terms .of-foot { bottom: 13mm; } }
@media screen { .page.terms { padding-bottom: 28mm; } .page.terms .of-foot { bottom: 13mm; } }
.page.terms { font-size: 8.1pt; line-height: 1.24; }
.page.terms ol.decl { font-size: 7.3pt; line-height: 1.2; }
.page.terms h2 { margin: 1.6mm 0 .6mm; }
.page.terms p { margin: 0 0 1.3mm; }
.page.terms table.sign th, .page.terms table.sign td { height: 8mm; }
.page.terms table.sign { margin: 1.5mm 0 2.5mm; }
.doc-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.doc-btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
.doc-btn:disabled { opacity: .6; cursor: default; }
/* Page 2 with a joint hirer has an extra signature block: a little tighter */
.ra2 .ra-legal p { font-size: 7.2pt; line-height: 1.27; }
.ra2 .ra-sign th, .ra2 .ra-sign td { height: 8.5mm; }
.ra2 .ra-sign-h { margin: 2.5mm 0 1mm !important; }

/* Change of Address notice */
.coa .coa-addr { display: grid; grid-template-columns: 1fr 1fr; gap: 6mm; margin: 3mm 0 4mm; }
.coa .coa-addr > div { border: .5pt solid #bbb; border-radius: 2mm; padding: 2.5mm 3.5mm; }
.coa .coa-addr > div:last-child { border-color: #003B4D; background: #f2f7f8; }
.coa .coa-l { display: block; font-size: 7.5pt; color: #555; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 1mm; }
.coa .coa-addr p { margin: 0; }
.coa table.coa-cars { width: 100%; border-collapse: collapse; margin: 1mm 0 3mm; font-size: 8.5pt; }
.coa table.coa-cars th, .coa table.coa-cars td { border-bottom: .5pt solid #ccc; padding: 1mm 1.5mm; text-align: left; }
.coa .ra-sign { width: 100%; border-collapse: collapse; table-layout: fixed; margin-bottom: 2mm; }
.coa .ra-sign th { width: 22mm; text-align: left; font-size: 8pt; }
.coa .ra-sign th, .coa .ra-sign td { border: .5pt solid #bbb; height: 9mm; padding: .8mm 2mm; white-space: nowrap; overflow: visible; }

/* Arrears letters and Consumer Credit Act notices (flow over as many A4 pages as they need) */
.longdoc.nt { font-size: 10pt; line-height: 1.45; }
.nt .lt { margin-top: 8mm; }
.nt .subj { font-size: 12pt; font-weight: 700; color: #003B4D; margin: 3mm 0; }
.nt h2.nt-h { font-size: 14pt; color: #003B4D; margin: 2mm 0 3mm; text-transform: none; }
.nt h2.nt-h span { font-size: 10.5pt; font-weight: 600; }
.nt h3 { font-size: 10.5pt; color: #003B4D; margin: 4mm 0 1.2mm; break-after: avoid; }
.nt .nt-important { font-size: 12pt; border: 1.2pt solid #003B4D; padding: 2mm 3mm; display: inline-block; margin: 0 0 2mm; }
.nt .nt-strong { font-size: 10.5pt; }
.nt .nt-box { background: #eef5f7; border-radius: 2mm; padding: 2.5mm 3.5mm; margin: 1mm 0 2mm; }
.nt table.nt-t { width: 100%; border-collapse: collapse; margin: 1.5mm 0 3mm; font-size: 9.4pt; break-inside: auto; }
.nt table.nt-t th, .nt table.nt-t td { text-align: left; padding: 1.2mm 2mm; border-bottom: .5pt solid #cfdadd; }
.nt table.nt-t thead th { background: #003B4D; color: #fff; font-weight: 600; }
.nt table.nt-t .num { text-align: right; white-space: nowrap; }
.nt table.nt-t tfoot th, .nt table.nt-t tfoot td { font-weight: 700; border-top: 1pt solid #003B4D; border-bottom: 0; }
.nt .nt-total { font-size: 11pt; }
.nt .nt-encl { margin-top: 5mm; font-size: 9pt; }
.nt ul { margin: 0 0 2mm; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
