/* The company's own paper (acc-sheet.js): the contract's sheet in the colours of
   the company's logo, green for rules and bars, its blue for what carries white
   text and for headings (9:1 on white). What is here is only what an invoice or
   a journal needs and a contract does not; the rest is acc-contract.css. */
.pcon--co{--con-accent:#96ca0d;--con-deep:#06419d;--con-ink:#06419d;--con-fill:#f0f4fb;
  /* Plex first: it has no Arabic, so Arabic falls through to Naskh, while the
     names and models a ledger is full of stay out of Naskh's serif Latin. */
  font-family:'IBM Plex Sans','Noto Naskh Arabic',sans-serif}
.pcon--co .spacer{height:9mm}

/* The ledger in English: the sheet reads left to right. The contract is always
   Arabic and never reaches these. */
.pcon[dir="ltr"]{line-height:1.5}
.pcon[dir="ltr"] .lh__en{text-align:left}
/* The other language under the title is Arabic here: spacing would break its letters apart. */
.pcon[dir="ltr"] .title .en{font-family:'Noto Naskh Arabic',serif;font-size:10pt;letter-spacing:0;text-transform:none}

.pcon--co .parties--one{grid-template-columns:1fr}
.pcon--co .party{position:relative;padding-bottom:2.5mm}
.pcon--co .party__role{margin-bottom:.4mm}
.pcon .party__name{font-weight:700;font-size:12pt;line-height:1.5}
.pcon .party__sub{font-size:9.5pt;color:var(--con-soft)}
.pcon .paid{position:absolute;inset-inline-end:5mm;top:50%;transform:translateY(-50%) rotate(-5deg);
  padding:.8mm 5mm;border:2px solid var(--con-deep);border-radius:1.5mm;color:var(--con-deep);
  font-family:'Noto Kufi Arabic',sans-serif;font-weight:700;font-size:13pt;letter-spacing:.06em;line-height:1.5}

/* A table that may run over a page: rows stay whole, and the total prints once,
   at the end (a browser repeats a tfoot on every page by default). */
.pcon table.grid--long{break-inside:auto}
.pcon table.grid--long tr{break-inside:avoid}
.pcon table.grid--long tfoot{display:table-row-group}
.pcon table.grid--dense{font-size:9.2pt;line-height:1.35}
.pcon table.grid--dense td{padding:.7mm 2mm}
.pcon table.grid .is-bad th,.pcon table.grid .is-bad td{color:#b42318}
.pcon .soft{color:var(--con-soft)}
.pcon .ln{font-weight:600}
.pcon .ln__m{display:flex;flex-wrap:wrap;gap:0 4mm;font-size:8.8pt;color:var(--con-soft);line-height:1.5}

/* the journal: an entry's identity as a strip, its lines under it */
.pcon tbody.ent{break-inside:avoid}
.pcon table.grid .ent__h td{background:var(--con-fill);padding:.9mm 2mm}
.pcon .ent__h div{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 3.5mm}
.pcon .ent__n{min-width:5mm;color:var(--con-soft)}
.pcon .ent__t{color:var(--con-ink);font-weight:600}
.pcon .ent__m{flex:1 1 40mm;min-width:0;color:var(--con-soft)}

/* the figures, beside the amount in words */
.pcon .close{display:grid;grid-template-columns:1fr 74mm;gap:6mm;margin-bottom:3mm;break-inside:avoid}
.pcon .note{font-size:9.6pt;margin-top:1.5mm}
.pcon table.sums{width:100%;border-collapse:collapse;font-size:10.2pt}
.pcon table.sums th{text-align:start;font-weight:500;color:var(--con-soft);padding:.8mm 0;border-bottom:1px solid var(--con-line)}
.pcon table.sums td{text-align:end;font-weight:600;padding:.8mm 0;border-bottom:1px solid var(--con-line)}
.pcon table.sums .is-grand th,.pcon table.sums .is-grand td{color:var(--con-ink);font-weight:700;font-size:11pt;border-bottom:1.5px solid var(--con-deep)}
.pcon .due{display:flex;align-items:center;justify-content:space-between;gap:4mm;margin-top:2mm;padding:1.6mm 3mm;
  border-radius:1.5mm;background:var(--con-deep);color:#fff}
.pcon .due span{font-size:9.6pt}
.pcon .due b{font-size:13pt;font-weight:700}
.pcon .thanks{margin-top:3mm;text-align:center;font-size:9.5pt;color:var(--con-soft)}
.pcon--co .specs + .signs{margin-top:6mm}
.pcon--co .sign th{width:20mm}
