/* The forklift sale contract (acc-contract.js). Sized in millimetres and points
   because it is drawn to the paper, and scoped under .pcon so that none of it
   reaches a ledger screen. The brand sets four colours: --con-accent is the
   brand's own light colour, for rules and bars only; --con-deep and --con-ink are
   darker shades that white text and headings stay readable on (>= 6:1). */
.pcon{
  --con-soft:#5b6270;--con-line:#cfd5df;
  box-sizing:border-box;background:#fff;color:#16181d;
  font-family:'Noto Naskh Arabic','IBM Plex Sans',serif;font-size:10.9pt;line-height:1.62;
  -webkit-print-color-adjust:exact;print-color-adjust:exact;
}
.pcon--zoomlion{--con-accent:#aace39;--con-deep:#3f6e12;--con-ink:#2f5a0c;--con-fill:#f4f8ea}
.pcon--byd{--con-accent:#00bdf2;--con-deep:#0b5aa0;--con-ink:#08467e;--con-fill:#eef6fc}
.pcon *{box-sizing:border-box}
.pcon .ltr{direction:ltr;unicode-bidi:isolate;white-space:nowrap;font-family:'IBM Plex Sans','Noto Naskh Arabic',sans-serif;font-size:.93em}
/* fixed: one over-wide item must not push every page's edge off the paper */
.pcon table.page{width:100%;border-collapse:collapse;table-layout:fixed}
.pcon table.page > thead td,.pcon table.page > tfoot td{padding:0}
.pcon .spacer{height:15mm}

/* the letterhead: repeats on every page */
.pcon .lh{display:flex;align-items:center;justify-content:space-between;gap:4mm;padding:3mm 0;margin-bottom:6mm;
  border-top:4px solid var(--con-accent);border-bottom:2.2px solid var(--con-deep);position:relative}
.pcon .lh::after{content:"";position:absolute;inset-inline-start:0;bottom:-5px;width:38mm;height:3px;background:var(--con-accent)}
.pcon .lh__brand{display:flex;align-items:center;gap:3.5mm}
.pcon .lh__brand img{width:15mm;height:15mm;border-radius:2mm}
.pcon .lh__ar{font-family:'Noto Kufi Arabic',sans-serif;font-weight:700;font-size:13pt;color:var(--con-ink);line-height:1.5;white-space:nowrap}
.pcon .lh__en{font-family:'IBM Plex Sans',sans-serif;font-size:8.5pt;letter-spacing:.14em;text-transform:uppercase;color:var(--con-soft);direction:ltr;text-align:right}
.pcon .lh__contact{font-size:8pt;color:var(--con-soft);line-height:1.42;text-align:end}
.pcon .lh__end{display:flex;align-items:center;gap:3.5mm}
/* Zoomlion's logo is its own green block; BYD's is white and needs a plate. */
.pcon .lh__mark{border-radius:2.5mm;overflow:hidden;line-height:0}
.pcon .lh__mark img{height:8.5mm;width:auto}
.pcon--byd .lh__mark{background:var(--con-accent);padding:2mm 2.6mm}
.pcon--byd .lh__mark img{height:11mm}

/* the page footer: initials on every page */
.pcon .pf{position:fixed;bottom:0;left:0;right:0;display:flex;align-items:flex-end;justify-content:space-between;gap:6mm;
  font-size:7.5pt;color:var(--con-soft)}
.pcon .pf__ini{display:flex;align-items:flex-end;gap:2mm}
.pcon .pf__ini i{display:inline-block;width:22mm;border-bottom:1px solid #8a93a3;height:6mm}
.pcon .pf__no{font-size:7.5pt}
@media screen{ .pcon .pf{display:none} }

/* the title */
.pcon .title{text-align:center;margin:0 0 4mm}
.pcon .title h1{margin:0;font-family:'Noto Kufi Arabic',sans-serif;font-weight:700;font-size:20pt;color:var(--con-ink);line-height:1.5}
.pcon .title .en{font-family:'IBM Plex Sans',sans-serif;font-size:8.5pt;letter-spacing:.3em;text-transform:uppercase;color:var(--con-soft)}
.pcon .meta{display:grid;grid-template-columns:1.5fr 1fr 1fr;border:1px solid var(--con-line);border-radius:2mm;overflow:hidden;margin-bottom:5mm}
.pcon .meta div{padding:2mm 4mm;background:var(--con-fill)}
.pcon .meta div + div{border-inline-start:1px solid var(--con-line)}
.pcon .meta span{display:block;font-size:8pt;color:var(--con-soft);line-height:1.4}
.pcon .meta b{font-size:10.5pt;font-weight:600}
.pcon .lead{margin:0 0 3mm}

/* the parties */
.pcon .parties{display:grid;grid-template-columns:1fr 1fr;gap:5mm;margin-bottom:3mm}
.pcon .party{border:1px solid var(--con-line);border-top:3px solid var(--con-deep);border-radius:2mm;padding:3mm 4mm 2mm;break-inside:avoid}
.pcon .party__role{font-family:'Noto Kufi Arabic',sans-serif;font-weight:700;font-size:10pt;color:var(--con-ink);margin-bottom:1.5mm}
.pcon .party table{border-collapse:collapse;width:100%;font-size:10.2pt}
.pcon .party th{text-align:start;font-weight:500;color:var(--con-soft);width:18mm;vertical-align:top;padding:.4mm 0}
.pcon .party td{padding:.4mm 0;font-weight:600}
.pcon .both{margin:0 0 5mm;color:var(--con-soft);font-size:10pt}

/* the clauses */
.pcon .cl{margin:0 0 3.4mm}
.pcon .cl.keep{break-inside:avoid}
.pcon .cl h3{display:flex;align-items:baseline;gap:3mm;margin:0 0 1.5mm;padding-bottom:1mm;border-bottom:1px solid var(--con-line);break-after:avoid;line-height:1.6}
.pcon .cl__no{font-family:'Noto Kufi Arabic',sans-serif;font-weight:700;font-size:10pt;color:#fff;background:var(--con-deep);padding:.3mm 3mm;border-radius:1.2mm;white-space:nowrap}
.pcon .cl__t{font-family:'Noto Kufi Arabic',sans-serif;font-weight:700;font-size:11pt;color:var(--con-ink)}
.pcon .cl__b p{margin:0 0 1.5mm;text-align:justify}
.pcon .cl__b ol{margin:0 0 1mm;padding-inline-start:6mm}
.pcon .cl__b li{margin-bottom:1mm;text-align:justify}
.pcon .amt{font-weight:700}

.pcon table.grid{width:100%;border-collapse:collapse;margin:2mm 0 3mm;font-size:10.2pt;break-inside:avoid}
.pcon table.grid th,.pcon table.grid td{border:1px solid var(--con-line);padding:1.4mm 2.5mm;vertical-align:middle}
.pcon table.grid thead th{background:var(--con-deep);color:#fff;font-weight:600;font-size:9.5pt;border-color:var(--con-deep)}
.pcon table.grid tfoot th,.pcon table.grid tfoot td{background:var(--con-fill);font-weight:700}
.pcon table.grid tfoot th{text-align:start}
.pcon table.grid .c{text-align:center}
.pcon table.grid .num{text-align:end;white-space:nowrap}
.pcon table.grid .words{font-size:9.5pt}
.pcon table.grid .model .ltr{white-space:normal;overflow-wrap:anywhere}  /* a long code must not push the prices off the table */

.pcon .specs{border:1px solid var(--con-line);border-radius:2mm;padding:2mm 4mm 1.5mm;background:var(--con-fill);break-inside:avoid}
.pcon .specs__h{font-family:'Noto Kufi Arabic',sans-serif;font-weight:600;font-size:9.5pt;color:var(--con-ink);margin-bottom:1mm}
.pcon .specs dl{display:grid;grid-template-columns:1fr 1fr;gap:.5mm 8mm;margin:0}
.pcon .specs dl div{display:flex;gap:2mm;border-bottom:1px dotted var(--con-line);padding:.6mm 0}
.pcon .specs dt{color:var(--con-soft);min-width:24mm}
.pcon .specs dd{margin:0;font-weight:600}

/* the signatures */
.pcon .signs{display:grid;grid-template-columns:1fr 1fr;gap:8mm;margin-top:5mm;break-inside:avoid}
.pcon .sign{border:1px solid var(--con-line);border-radius:2mm;padding:3.5mm 5mm;position:relative}
.pcon .sign__role{font-family:'Noto Kufi Arabic',sans-serif;font-weight:700;font-size:10.5pt;color:#fff;background:var(--con-deep);display:inline-block;padding:.4mm 4mm;border-radius:1.2mm;margin-bottom:2mm}
.pcon .sign__co{font-weight:700;font-size:11pt;margin-bottom:2mm}
.pcon .sign table{border-collapse:collapse;width:62%;font-size:10.2pt}
.pcon .sign th{text-align:start;font-weight:500;color:var(--con-soft);width:16mm;padding:.8mm 0;vertical-align:bottom}
.pcon .sign td{padding:.8mm 0;font-weight:600}
.pcon .blank{display:block;border-bottom:1px dotted #8a93a3;height:6mm}
.pcon .blank.tall{height:11mm;border-bottom-style:solid;border-color:#16181d}

/* the form beside the sheet, and the sheet as paper on the desk. The two scroll
   apart: a form as tall as this must stay in reach of a three-page sheet. */
.prtside--con{flex-basis:352px;overflow:auto}
.prtwrap:has(.prtside--con){height:calc(100vh - 210px)}
.con-sec{font-weight:600;font-size:calc(12px * var(--acc-fs,1));color:var(--acc-ink-soft,#5b6a82);padding-top:6px;border-top:1px solid var(--acc-line,#e3e8ef)}
.prtpreview .pdoc:has(.pcon){max-width:none;width:max-content;padding:0}
@media screen{ .prtpreview .pcon{width:210mm;padding:12mm 15mm;zoom:.82} }
@media (max-width:860px){
  .prtwrap:has(.prtside--con){height:auto}
  .prtpreview .pcon{zoom:.44}
}
