/* ledger */
.business-document.design-ledger{font-family:Georgia,"Times New Roman",Times,serif;color:#1b1b1b;font-variant-numeric:tabular-nums;-webkit-print-color-adjust:exact;print-color-adjust:exact;}
.business-document.design-ledger .document-business{font-weight:700;letter-spacing:.01em;}
.business-document.design-ledger .document-title{letter-spacing:.06em;}
.business-document.design-ledger .document-lines th{font-weight:700;}
.business-document.design-ledger .document-total{font-weight:700;}
.business-document.design-ledger .document-footer{border-top:1px solid #222;}
.business-document.design-ledger .print-sample{border:3px double #222;letter-spacing:.08em;}

.business-document.design-ledger.paper-a4,.business-document.design-ledger.paper-custom{display:flex;flex-direction:column;}
.business-document.design-ledger.paper-a4>*,.business-document.design-ledger.paper-custom>*{flex:0 0 auto;min-width:0;}
.business-document.design-ledger.paper-a4>section.document-notes,.business-document.design-ledger.paper-custom>section.document-notes{order:1;}
.business-document.design-ledger.paper-a4>.document-payment,.business-document.design-ledger.paper-custom>.document-payment{order:2;}
.business-document.design-ledger.paper-a4>.document-signatures,.business-document.design-ledger.paper-custom>.document-signatures{order:3;}
.business-document.design-ledger.paper-a4>.document-authorisation,.business-document.design-ledger.paper-custom>.document-authorisation{order:4;}
.business-document.design-ledger.paper-a4>.document-footer,.business-document.design-ledger.paper-custom>.document-footer{order:5;}
.business-document.design-ledger.paper-a4 .document-header,.business-document.design-ledger.paper-custom .document-header{display:flex;align-items:flex-start;justify-content:space-between;gap:8mm;text-align:left;margin:0 0 4mm;padding:0 0 3.5mm;border-bottom:3px double var(--brand);}
.business-document.design-ledger.paper-a4 .document-brand,.business-document.design-ledger.paper-custom .document-brand{flex:1 1 0;min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;}
.business-document.design-ledger.paper-a4 .document-logo,.business-document.design-ledger.paper-custom .document-logo{grid-row:1 / span 2;grid-column:1;margin:0 4mm 0 0;max-width:38mm;max-height:20mm;}
.business-document.design-ledger.paper-a4 .document-business,.business-document.design-ledger.paper-custom .document-business{grid-column:2;font-size:16pt;line-height:1.2;margin:0 0 1.5mm;overflow-wrap:anywhere;}
.business-document.design-ledger.paper-a4 .document-address,.business-document.design-ledger.paper-custom .document-address{grid-column:2;font-size:9.5pt;line-height:1.3;margin:0;color:#333;}
.business-document.design-ledger.paper-a4 .document-heading,.business-document.design-ledger.paper-custom .document-heading{flex:0 1 auto;max-width:55%;min-width:40mm;text-align:right;}
.business-document.design-ledger.paper-a4 .document-title,.business-document.design-ledger.paper-custom .document-title{font-size:22pt;line-height:1.1;letter-spacing:.04em;margin:0 0 2.5mm;padding:0;border:0;color:#111;overflow-wrap:normal;}
.business-document.design-ledger.paper-a4 .document-number,.business-document.design-ledger.paper-custom .document-number{display:block;font-size:12pt;letter-spacing:.02em;overflow-wrap:anywhere;}
.business-document.design-ledger.paper-a4 .document-date,.business-document.design-ledger.paper-custom .document-date{font-size:10pt;margin:1mm 0 0;color:#333;}

.business-document.design-ledger.paper-a4 .document-details,.business-document.design-ledger.paper-custom .document-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1mm 10mm;font-size:10pt;margin:0 0 4mm;}
.business-document.design-ledger.paper-a4 .document-details>div,.business-document.design-ledger.paper-custom .document-details>div{display:flex;justify-content:space-between;align-items:baseline;gap:4mm;margin:0;padding:0 0 1mm;border-bottom:1px solid #e2ded4;min-width:0;}
.business-document.design-ledger.paper-a4 .document-details dt,.business-document.design-ledger.paper-custom .document-details dt{flex:0 0 auto;font-size:8.5pt;letter-spacing:.08em;text-transform:uppercase;color:#444;}
.business-document.design-ledger.paper-a4 .document-details dd,.business-document.design-ledger.paper-custom .document-details dd{flex:1 1 auto;min-width:0;text-align:right;font-weight:700;overflow-wrap:anywhere;white-space:pre-line;}

.business-document.design-ledger.paper-a4 .document-lines,.business-document.design-ledger.paper-custom .document-lines{border:1px solid #222;border-top:2px solid var(--brand);font-size:10.5pt;}
.business-document.design-ledger.paper-a4 .document-lines thead,.business-document.design-ledger.paper-custom .document-lines thead{display:table-header-group;}
.business-document.design-ledger.paper-a4 .document-lines th,.business-document.design-ledger.paper-custom .document-lines th{background:#f1efe9;background:color-mix(in srgb,var(--brand) 9%,#f6f4ef);border-top:0;border-bottom:1px solid #222;padding:2mm 2.5mm;font-size:9pt;letter-spacing:.06em;text-transform:uppercase;white-space:normal;}
.business-document.design-ledger.paper-a4 .document-lines td,.business-document.design-ledger.paper-custom .document-lines td{border-bottom:1px solid #d6d2c8;padding:1.5mm 2.5mm;}
.business-document.design-ledger.paper-a4 .document-lines th+th,.business-document.design-ledger.paper-custom .document-lines th+th,.business-document.design-ledger.paper-a4 .document-lines td+td,.business-document.design-ledger.paper-custom .document-lines td+td{border-left:1px solid #d6d2c8;}
.business-document.design-ledger.paper-a4 .document-lines th:first-child,.business-document.design-ledger.paper-custom .document-lines th:first-child,.business-document.design-ledger.paper-a4 .document-lines td:first-child,.business-document.design-ledger.paper-custom .document-lines td:first-child{padding-left:2.5mm;}
.business-document.design-ledger.paper-a4 .document-lines th:last-child,.business-document.design-ledger.paper-custom .document-lines th:last-child,.business-document.design-ledger.paper-a4 .document-lines td:last-child,.business-document.design-ledger.paper-custom .document-lines td:last-child{padding-right:2.5mm;}
.business-document.design-ledger.paper-a4 .document-lines tbody tr:last-child td,.business-document.design-ledger.paper-custom .document-lines tbody tr:last-child td{border-bottom:0;}
.business-document.design-ledger.paper-a4 .document-lines td strong,.business-document.design-ledger.paper-custom .document-lines td strong{font-weight:700;overflow-wrap:anywhere;}
.business-document.design-ledger.paper-a4 .document-lines small,.business-document.design-ledger.paper-custom .document-lines small{color:#444;}
.business-document.design-ledger.paper-a4 .document-lines:has(th:nth-child(5)) th:nth-child(2),.business-document.design-ledger.paper-custom .document-lines:has(th:nth-child(5)) th:nth-child(2){width:16mm;text-align:right;}
.business-document.design-ledger.paper-a4 .document-lines:has(th:nth-child(5)) td:nth-child(2),.business-document.design-ledger.paper-custom .document-lines:has(th:nth-child(5)) td:nth-child(2){text-align:right;}
.business-document.design-ledger.paper-a4 .document-lines:has(th:nth-child(5)) th:nth-child(3),.business-document.design-ledger.paper-custom .document-lines:has(th:nth-child(5)) th:nth-child(3){width:28mm;text-align:right;}
.business-document.design-ledger.paper-a4 .document-lines:has(th:nth-child(5)) th:nth-child(4),.business-document.design-ledger.paper-custom .document-lines:has(th:nth-child(5)) th:nth-child(4){width:32mm;}
.business-document.design-ledger.paper-a4 .document-lines:has(th:nth-child(5)) th:nth-child(5),.business-document.design-ledger.paper-custom .document-lines:has(th:nth-child(5)) th:nth-child(5){width:30mm;}
.business-document.design-ledger.paper-a4 .document-lines:has(th:nth-child(5)) td:nth-child(4),.business-document.design-ledger.paper-custom .document-lines:has(th:nth-child(5)) td:nth-child(4){font-size:9pt;}
.business-document.design-ledger.paper-a4.doc-kind-statement .document-lines th:last-child,.business-document.design-ledger.paper-custom.doc-kind-statement .document-lines th:last-child{width:46mm;}

.business-document.design-ledger.paper-a4 .document-tax-summary,.business-document.design-ledger.paper-custom .document-tax-summary{width:86mm;max-width:100%;margin:-1px 0 0 auto;padding:2mm 3mm 1mm;border:1px solid #222;}
.business-document.design-ledger.paper-a4 .document-tax-summary .document-balance,.business-document.design-ledger.paper-custom .document-tax-summary .document-balance{margin:0 0 1mm;font-size:10pt;}
.business-document.design-ledger.paper-a4 .document-total,.business-document.design-ledger.paper-custom .document-total{width:86mm;max-width:100%;margin:4mm 0 0 auto;padding:2.5mm 3mm;border:1px solid #222;border-top:2px solid var(--brand);font-size:13pt;}
.business-document.design-ledger.paper-a4 .document-lines~.document-total,.business-document.design-ledger.paper-custom .document-lines~.document-total{margin-top:-1px;}
.business-document.design-ledger.paper-a4 .document-total+.document-balance,.business-document.design-ledger.paper-custom .document-total+.document-balance{width:86mm;max-width:100%;margin:0 0 0 auto;padding:1.5mm 3mm;border:1px solid #222;border-top:0;font-size:10.5pt;}
.business-document.design-ledger.paper-a4>.document-balance,.business-document.design-ledger.paper-custom>.document-balance{width:86mm;max-width:100%;margin-left:auto;}

.business-document.design-ledger.paper-a4 .document-notes,.business-document.design-ledger.paper-custom .document-notes{margin:4mm 0 0;padding:2mm 3mm;border:1px solid #d6d2c8;border-left:3px solid #222;font-size:10pt;}
.business-document.design-ledger.paper-a4 .document-notes strong,.business-document.design-ledger.paper-custom .document-notes strong{font-size:8.5pt;letter-spacing:.08em;text-transform:uppercase;}
.business-document.design-ledger.paper-a4 .document-signatures,.business-document.design-ledger.paper-custom .document-signatures{display:grid;grid-template-columns:2fr 2fr 1fr;gap:6mm;margin:5mm 0 0;}
.business-document.design-ledger.paper-a4 .document-signatures>div,.business-document.design-ledger.paper-custom .document-signatures>div{display:block;min-height:11mm;border-bottom:1px solid #222;}
.business-document.design-ledger.paper-a4 .document-signatures .signature-blank,.business-document.design-ledger.paper-custom .document-signatures .signature-blank{display:none;}
.business-document.design-ledger.paper-a4 .document-footer,.business-document.design-ledger.paper-custom .document-footer{text-align:left;margin:5mm 0 0;padding:2.5mm 0 0;font-size:9pt;color:#333;}

.business-document.design-ledger .document-tagline{font-style:italic;}
.business-document.design-ledger.paper-a4 .document-tagline,.business-document.design-ledger.paper-custom .document-tagline{grid-column:2;font-size:10pt;color:#333;margin:0 0 1.5mm;}
.business-document.design-ledger.paper-a4 .document-payment,.business-document.design-ledger.paper-custom .document-payment{margin:4mm 0 0;border:1px solid #222;border-top:2px solid var(--brand);}
.business-document.design-ledger.paper-a4 .document-payment-methods,.business-document.design-ledger.paper-custom .document-payment-methods{display:grid;grid-template-columns:repeat(auto-fill,minmax(52mm,1fr));gap:0;overflow:hidden;}
.business-document.design-ledger.paper-a4 .document-payment-title,.business-document.design-ledger.paper-custom .document-payment-title{margin:0;font-weight:700;padding:1.5mm 2.5mm;font-size:9pt;letter-spacing:.08em;text-transform:uppercase;background:#f1efe9;background:color-mix(in srgb,var(--brand) 9%,#f6f4ef);border-bottom:1px solid #222;}
.business-document.design-ledger.paper-a4 .payment-method,.business-document.design-ledger.paper-custom .payment-method{padding:2mm 2.5mm;font-size:9.5pt;line-height:1.35;border-right:1px solid #d6d2c8;border-bottom:1px solid #d6d2c8;margin:0 -1px -1px 0;min-width:0;overflow-wrap:anywhere;break-inside:avoid;page-break-inside:avoid;}
.business-document.design-ledger.paper-a4 .payment-method>*,.business-document.design-ledger.paper-custom .payment-method>*{display:block;margin:0;}
.business-document.design-ledger.paper-a4 .payment-type,.business-document.design-ledger.paper-custom .payment-type{font-size:8pt;letter-spacing:.08em;text-transform:uppercase;color:#444;}
.business-document.design-ledger.paper-a4 .payment-provider,.business-document.design-ledger.paper-custom .payment-provider{font-weight:700;}
.business-document.design-ledger.paper-a4 .payment-number,.business-document.design-ledger.paper-custom .payment-number{font-weight:700;letter-spacing:.02em;}
.business-document.design-ledger.paper-a4 .payment-extra,.business-document.design-ledger.paper-custom .payment-extra{font-size:9pt;color:#444;}
.business-document.design-ledger.paper-a4 .document-authorisation,.business-document.design-ledger.paper-custom .document-authorisation{display:flex;flex-wrap:wrap;align-items:flex-start;gap:3mm 5mm;margin:5mm 0 0;}
.business-document.design-ledger.paper-a4 .document-stamp,.business-document.design-ledger.paper-custom .document-stamp{display:block;max-width:26mm;max-height:26mm;width:auto;height:auto;object-fit:contain;}
.business-document.design-ledger.paper-a4 .document-signature,.business-document.design-ledger.paper-custom .document-signature{flex:1 1 38mm;max-width:62mm;min-width:34mm;display:flex;flex-direction:column;justify-content:flex-start;font-size:9.5pt;overflow-wrap:anywhere;}
.business-document.design-ledger.paper-a4 .signature-image,.business-document.design-ledger.paper-custom .signature-image{display:block;height:12mm;width:auto;max-width:100%;object-fit:contain;object-position:left bottom;margin:0 0 -1mm;}
.business-document.design-ledger.paper-a4 .document-signature:not(:has(.signature-image)),.business-document.design-ledger.paper-custom .document-signature:not(:has(.signature-image)){padding-top:11mm;}
.business-document.design-ledger.paper-a4 .signature-line,.business-document.design-ledger.paper-custom .signature-line{display:block;border-top:1px solid #222;margin:0 0 1mm;}
.business-document.design-ledger.paper-a4 .signature-name,.business-document.design-ledger.paper-custom .signature-name{display:block;font-weight:700;}
.business-document.design-ledger.paper-a4 .signature-title,.business-document.design-ledger.paper-custom .signature-title{display:block;color:#444;font-size:9pt;}

/* The Elegant font choice (Print settings, fmt-font-elegant: Georgia, or DejaVu Serif where Georgia is missing) is
   taller and wider than Ledger's own serif; on A4 its lines are set a little closer, so a short document with a stamp
   and three signatures still fits one page (M's format check, 1 Nov). Other fonts and the roll layout are unchanged. */
.business-document.design-ledger.paper-a4.fmt-font-elegant,.business-document.design-ledger.paper-custom.fmt-font-elegant{line-height:1.22;}
.business-document.design-ledger.paper-a4.fmt-font-elegant .document-lines td,.business-document.design-ledger.paper-custom.fmt-font-elegant .document-lines td{padding-top:1.2mm;padding-bottom:1.2mm;}
.business-document.design-ledger.paper-a4.fmt-font-elegant .document-details>div,.business-document.design-ledger.paper-custom.fmt-font-elegant .document-details>div{padding-bottom:.6mm;}

@media print{
.business-document.design-ledger.paper-a4 .document-header,.business-document.design-ledger.paper-custom .document-header,.business-document.design-ledger.paper-a4 .document-total,.business-document.design-ledger.paper-custom .document-total,.business-document.design-ledger.paper-a4 .document-tax-summary,.business-document.design-ledger.paper-custom .document-tax-summary,.business-document.design-ledger.paper-a4 .document-signatures,.business-document.design-ledger.paper-custom .document-signatures,.business-document.design-ledger.paper-a4 .document-footer,.business-document.design-ledger.paper-custom .document-footer,.business-document.design-ledger.paper-a4 .document-authorisation,.business-document.design-ledger.paper-custom .document-authorisation{break-inside:avoid;page-break-inside:avoid;}
.business-document.design-ledger.paper-a4 .document-notes,.business-document.design-ledger.paper-custom .document-notes{break-inside:avoid;page-break-inside:avoid;}
.business-document.design-ledger.paper-a4 .document-lines tr,.business-document.design-ledger.paper-custom .document-lines tr{break-inside:avoid;page-break-inside:avoid;}
.business-document.design-ledger.paper-a4 .document-tax-summary,.business-document.design-ledger.paper-custom .document-tax-summary{break-after:avoid;page-break-after:avoid;}
}

/* swiss */
.business-document.design-swiss{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;color:#111;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.business-document.design-swiss .document-title{font-weight:900;letter-spacing:-.02em;text-transform:lowercase;border-top:0;padding-top:0}
.business-document.design-swiss .document-title::first-letter{text-transform:uppercase}
.business-document.design-swiss .document-title::after{content:"";display:inline-block;width:0;height:0;border:1.2mm solid var(--brand);margin-left:1mm;vertical-align:baseline}
.business-document.design-swiss .document-business{font-weight:800}
.business-document.design-swiss .document-total{border-top:2px solid #111;border-bottom:1.2mm solid var(--brand);padding:2mm 0;font-weight:800}
.business-document.design-swiss .print-sample{border:2px solid #111;border-left:3mm solid var(--brand);text-align:left;letter-spacing:.06em}
.business-document.design-swiss .document-lines th{text-transform:uppercase;letter-spacing:.04em;font-weight:800}

.business-document.design-swiss.paper-a4{padding:5mm 9mm 3mm;font-size:10pt;line-height:1.4;display:flex;flex-direction:column}
/* After the totals: notes, payment details, delivery receipt lines, then the company sign-off (stamp and signatures)
   last, just above the footer. Keeps the totals together across a page break. */
.business-document.design-swiss.paper-a4>.document-notes{order:1}
.business-document.design-swiss.paper-a4>.document-payment{order:2}
.business-document.design-swiss.paper-a4>.document-signatures{order:3}
.business-document.design-swiss.paper-a4>.document-authorisation{order:4}
.business-document.design-swiss.paper-a4>.document-footer{order:5}
.business-document.design-swiss.paper-a4 .document-header{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:auto auto auto 1fr;column-gap:6mm;text-align:left;margin:0 0 4mm}
.business-document.design-swiss.paper-a4 .document-heading{display:contents}
.business-document.design-swiss.paper-a4 .document-title{grid-column:1/-1;grid-row:1;font-size:30pt;line-height:.95;margin:0 0 3mm;max-width:100%}
.business-document.design-swiss.paper-a4 .document-title::after{border-width:2.2mm;margin-left:1.5mm}
.business-document.design-swiss.paper-a4 .document-brand{grid-column:1/3;grid-row:2/5;border-top:2px solid #111;padding-top:2mm;min-width:0}
.business-document.design-swiss.paper-a4 .document-logo{margin:0 0 2mm;max-width:36mm;max-height:13mm}
.business-document.design-swiss.paper-a4 .document-business{font-size:12pt;margin:0 0 1mm}
.business-document.design-swiss.paper-a4 .document-address{font-size:8.5pt;line-height:1.3;margin:0}
.business-document.design-swiss.paper-a4 .document-number,.business-document.design-swiss.paper-a4 .document-date{grid-row:2;align-self:start;border-top:2px solid #111;padding-top:2mm;margin:0;min-width:0}
.business-document.design-swiss.paper-a4 .document-number{grid-column:3/5;font-size:12pt;letter-spacing:0}
.business-document.design-swiss.paper-a4 .document-date{grid-column:3/5;grid-row:3;border-top:0;padding-top:0;margin-top:2mm;font-size:10pt}
.business-document.design-swiss.paper-a4 .document-details{display:grid;grid-template-columns:repeat(auto-fit,minmax(30mm,1fr));gap:0 6mm;font-size:10pt;margin:0 0 3mm}
.business-document.design-swiss.paper-a4 .document-details>div{display:block;border-top:2px solid #111;padding-top:1.5mm;margin:0 0 3mm;min-width:0}
.business-document.design-swiss.paper-a4 .document-details dt{display:block;font-size:7.5pt;font-weight:800;letter-spacing:.08em;text-transform:uppercase;margin-bottom:1mm}
.business-document.design-swiss.paper-a4 .document-details dt::before{content:"";display:inline-block;width:0;height:0;border:.8mm solid var(--brand);margin-right:1.2mm;vertical-align:.2mm}
.business-document.design-swiss.paper-a4 .document-details dd{text-align:left;font-weight:600;white-space:pre-line}
.business-document.design-swiss.paper-a4 .document-lines{font-size:10pt}
.business-document.design-swiss.paper-a4 .document-lines th{font-size:7.5pt;border-top:2px solid #111;border-bottom:1px solid #111;padding-top:2mm;padding-bottom:1.5mm}
.business-document.design-swiss.paper-a4 .document-lines td{border-bottom:1px solid #c8c8c8;padding-top:1.2mm;padding-bottom:1.2mm}
.business-document.design-swiss.paper-a4 .document-lines tr{break-inside:avoid;page-break-inside:avoid}
.business-document.design-swiss.paper-a4 .document-lines th:nth-child(4):nth-last-child(2),.business-document.design-swiss.paper-a4 .document-lines td:nth-child(4):nth-last-child(2){padding-left:4mm}
.business-document.design-swiss.paper-a4.doc-kind-statement .document-lines th:last-child,.business-document.design-swiss.paper-a4.doc-kind-statement .document-lines .line-amount{width:48mm}
.business-document.design-swiss.paper-a4 .document-lines th:first-child:nth-last-child(5){width:38%}
.business-document.design-swiss.paper-a4 .document-lines th:nth-child(2):nth-last-child(4){width:8%}
.business-document.design-swiss.paper-a4 .document-lines th:nth-child(3):nth-last-child(3){width:15%;text-align:right}
.business-document.design-swiss.paper-a4 .document-lines th:nth-child(4):nth-last-child(2){width:20%}
.business-document.design-swiss.paper-a4 .document-lines th:last-child:nth-child(5){text-align:right}
.business-document.design-swiss.paper-a4 .document-lines small{font-size:8.5pt;color:#333}
.business-document.design-swiss.paper-a4 .document-tax-summary{width:58%;margin:4mm 0 0 auto;border-top:2px solid #111;padding-top:1mm;break-inside:avoid;page-break-inside:avoid;break-after:avoid;page-break-after:avoid}
.business-document.design-swiss.paper-a4 .document-tax-summary .document-balance{margin-top:1.5mm}
.business-document.design-swiss.paper-a4 .document-total{width:58%;margin:2.5mm 0 0 auto;font-size:15pt;break-inside:avoid;page-break-inside:avoid;break-before:avoid;page-break-before:avoid}
.business-document.design-swiss.paper-a4>.document-balance{width:58%;margin-left:auto}
.business-document.design-swiss.paper-a4 .document-notes{border-top:2px solid #111;padding-top:1.5mm;margin-top:4mm;font-size:10pt}
.business-document.design-swiss.paper-a4 .document-notes strong{display:block;font-size:7.5pt;letter-spacing:.08em;text-transform:uppercase}
.business-document.design-swiss.paper-a4 .document-signatures{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 6mm;margin-top:7mm}
.business-document.design-swiss.paper-a4 .document-signatures>div{display:flex;flex-direction:column-reverse;align-items:stretch;gap:1mm;border-top:0;min-height:12mm}
.business-document.design-swiss.paper-a4>.document-notes{break-inside:avoid;page-break-inside:avoid}
.business-document.design-swiss.paper-a4 .document-footer{text-align:left;border-top:2px solid #111;margin-top:4mm;padding-top:1.5mm;font-size:8.5pt;break-inside:avoid;page-break-inside:avoid;break-before:avoid;page-break-before:avoid}
.business-document.design-swiss.paper-a4 .document-footer p:first-child{font-weight:800}

.business-document.design-swiss .document-tagline{font-size:8.5pt;letter-spacing:.06em;text-transform:uppercase;color:#333;margin:0 0 1.5mm}
.business-document.design-swiss .document-payment{margin-top:5mm;break-inside:avoid;page-break-inside:avoid}
.business-document.design-swiss .document-payment-title{font-size:8pt;font-weight:800;letter-spacing:.08em;text-transform:uppercase;margin:0 0 2mm}
.business-document.design-swiss .document-payment-title::before{content:"";display:inline-block;width:0;height:0;border:.8mm solid var(--brand);margin-right:1.2mm;vertical-align:.2mm}
.business-document.design-swiss .payment-method{border-top:1px solid #111;padding-top:1.5mm;margin-bottom:2.5mm;min-width:0;break-inside:avoid;page-break-inside:avoid}
.business-document.design-swiss .payment-method>*{display:block}
.business-document.design-swiss .payment-type{font-size:7pt;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#444}
.business-document.design-swiss .payment-provider{font-size:10pt}
.business-document.design-swiss .payment-account-name,.business-document.design-swiss .payment-extra{font-size:8.5pt;color:#333}
.business-document.design-swiss .payment-number{font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:.02em}
.business-document.design-swiss .document-authorisation{margin-top:6mm;break-inside:avoid;page-break-inside:avoid}
.business-document.design-swiss .document-stamp{display:block;max-width:30mm;max-height:30mm;object-fit:contain;margin:0 0 3mm}
.business-document.design-swiss .document-signature{margin-bottom:4mm;min-width:0}
.business-document.design-swiss .document-signature>*{display:block}
.business-document.design-swiss .signature-image{max-width:45mm;max-height:14mm;object-fit:contain;margin:0 0 -1mm}
.business-document.design-swiss .signature-line{height:8mm;border-top:0;border-bottom:1px solid #111;margin:0 0 1mm}
.business-document.design-swiss .signature-image+.signature-line{height:0}
.business-document.design-swiss .signature-name{font-size:10pt}
.business-document.design-swiss .signature-title{font-size:8.5pt;color:#333}
.business-document.design-swiss.paper-a4 .document-payment{border-top:2px solid #111;padding-top:1.5mm;margin-top:4mm}
.business-document.design-swiss.paper-a4 .payment-method{margin-bottom:1.5mm;line-height:1.3}
.business-document.design-swiss.paper-a4 .document-payment-methods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 6mm}
.business-document.design-swiss.paper-a4 .document-authorisation{display:flex;flex-wrap:wrap;align-items:flex-end;gap:3mm 5mm;margin-top:4mm}
.business-document.design-swiss.paper-a4 .document-stamp{margin:0;max-width:21mm;max-height:21mm}
.business-document.design-swiss.paper-a4 .document-signature{flex:1 1 36mm;max-width:52mm;margin:0}
.business-document.design-swiss.paper-a4 .signature-image{max-height:11mm}
.business-document.design-swiss.paper-a4 .signature-name{font-size:9.5pt;line-height:1.25}
.business-document.design-swiss.paper-a4 .signature-title{font-size:7.5pt;line-height:1.25}
/* 58 mm rolls (50 mm of print width): a details value drops under its label when the two do not fit side by side, so a
   word is never broken inside (was "Wareh ouse"). */
.business-document.design-swiss.paper-58mm .document-details>div{flex-wrap:wrap;column-gap:2mm;row-gap:0}
.business-document.design-swiss.paper-58mm .document-details dd{flex:1 1 auto;min-width:0;overflow-wrap:break-word}

/* Elegant font (Print settings → Font, Georgia): wider and taller than Swiss's own type, so on A4 the spacing tightens a
   little and a short document with a stamp and signatures still fits one page (M's format check, #743). */
.business-document.design-swiss.paper-a4.fmt-font-elegant{line-height:1.3}
.business-document.design-swiss.paper-a4.fmt-font-elegant .document-address{line-height:1.25}
.business-document.design-swiss.paper-a4.fmt-font-elegant .document-lines td{padding-top:1mm;padding-bottom:1mm}
.business-document.design-swiss.paper-a4.fmt-font-elegant .document-details>div{margin-bottom:2mm}
.business-document.design-swiss.paper-a4.fmt-font-elegant .payment-method{line-height:1.2}

/* band */
.business-document.design-band.paper-a4{--band-x:12mm;--band-tint:color-mix(in srgb,var(--brand) 9%,#fff);--band-label:color-mix(in srgb,var(--brand) 55%,#000);
 padding:0;display:flex;flex-direction:column;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.business-document.design-band.paper-a4>*{margin-left:var(--band-x);margin-right:var(--band-x)}
.business-document.design-band.paper-a4>.print-sample{margin-top:6mm}

/* Header band: the business on the left, the document title, number and date on the right. */
.business-document.design-band.paper-a4 .document-header{margin:0 0 4mm;padding:6mm var(--band-x) 5mm;background:var(--brand);color:var(--brand-ink);text-align:left;
 display:flex;justify-content:space-between;align-items:flex-start;gap:8mm}
.business-document.design-band.paper-a4 .document-brand{display:grid;grid-template-columns:minmax(0,1fr);gap:0 5mm;align-items:start;min-width:0;flex:1 1 auto}
.business-document.design-band.paper-a4 .document-brand:has(.document-logo){grid-template-columns:auto minmax(0,1fr)}
.business-document.design-band.paper-a4 .document-brand:has(.document-logo)>:not(.document-logo){grid-column:2}
.business-document.design-band.paper-a4 .document-logo{grid-column:1;grid-row:1 / span 4;margin:0;max-width:30mm;max-height:18mm;filter:none;background:#fff;padding:1.5mm;border-radius:2mm}
.business-document.design-band.paper-a4 .document-business{font-size:15pt;line-height:1.2;margin:0 0 1.5mm;color:inherit}
.business-document.design-band.paper-a4 .document-tagline{margin:0 0 1.5mm;font-size:9pt;font-style:italic}
.business-document.design-band.paper-a4 .document-address{margin:0;font-size:8pt;line-height:1.3;opacity:.92}
.business-document.design-band.paper-a4 .document-heading{flex:0 0 auto;max-width:48%;text-align:right}
.business-document.design-band.paper-a4 .document-title{margin:0;padding:0;border:0;font-size:22pt;letter-spacing:.06em;line-height:1;color:inherit}
.business-document.design-band.paper-a4 .document-number{display:block;font-size:11pt;letter-spacing:.02em;margin-top:2.5mm}
.business-document.design-band.paper-a4 .document-date{margin:1mm 0 0;font-size:9pt}

/* Details strip. */
.business-document.design-band.paper-a4 .document-details{display:grid;grid-template-columns:repeat(auto-fill,minmax(30mm,1fr));gap:2.5mm 6mm;background:var(--band-tint);padding:3mm 5mm;border-radius:1.5mm;margin-bottom:4mm}
.business-document.design-band.paper-a4 .document-details>div{display:block;margin:0;min-width:0}
.business-document.design-band.paper-a4 .document-details dt{font-size:7.5pt;letter-spacing:.08em;text-transform:uppercase;font-weight:700;color:var(--band-label)}
.business-document.design-band.paper-a4 .document-details dd{text-align:left;font-size:10pt;margin-top:.5mm}

/* Lines: a brand header row (repeated on each printed page) and light zebra rows. The table is a flex item, so it is
   sized to the content box rather than 100% plus the side margins. */
.business-document.design-band.paper-a4>.document-lines{width:auto;align-self:stretch}
.business-document.design-band.paper-a4 .document-lines thead{display:table-header-group}
.business-document.design-band.paper-a4 .document-lines th{background:var(--brand);color:var(--brand-ink);border:0;padding:2.2mm 2mm;font-size:8.5pt;font-weight:600}
.business-document.design-band.paper-a4 .document-lines td{border:0;padding:1.4mm 2mm}
.business-document.design-band.paper-a4 .document-lines th:first-child,.business-document.design-band.paper-a4 .document-lines td:first-child{padding-left:3mm}
.business-document.design-band.paper-a4 .document-lines th:last-child,.business-document.design-band.paper-a4 .document-lines td:last-child{padding-right:3mm}
.business-document.design-band.paper-a4.doc-kind-statement .document-lines th:last-child,.business-document.design-band.paper-a4.doc-kind-statement .document-lines .line-amount{width:48mm}
.business-document.design-band.paper-a4 .document-lines tbody tr:nth-child(even) td{background:var(--band-tint)}
.business-document.design-band.paper-a4 .document-lines tr{break-inside:avoid}
/* The priced A4 table (Item, Qty, Unit price, VAT, Amount), also on a priced delivery note. */
.business-document.design-band.paper-a4 .document-lines:has(th:nth-child(5)) th{width:auto;text-align:left}
.business-document.design-band.paper-a4 .document-lines:has(th:nth-child(5)) th:nth-child(2){width:14mm}
.business-document.design-band.paper-a4 .document-lines:has(th:nth-child(5)) th:nth-child(3){width:28mm;text-align:right}
.business-document.design-band.paper-a4 .document-lines:has(th:nth-child(5)) th:nth-child(4){width:24mm}
.business-document.design-band.paper-a4 .document-lines:has(th:nth-child(5)) th:nth-child(5){width:30mm;text-align:right}

/* Totals on the right; the grand total sits in a brand bar. */
.business-document.design-band.paper-a4>.document-tax-summary,.business-document.design-band.paper-a4>.document-total,.business-document.design-band.paper-a4>.document-balance{width:88mm;margin-left:auto}
.business-document.design-band.paper-a4 .document-tax-summary{margin-top:4mm;break-inside:avoid}
.business-document.design-band.paper-a4 .document-tax-summary .document-balance{margin:1.5mm 0 0;padding:0 3mm}
.business-document.design-band.paper-a4 .document-total{background:var(--brand);color:var(--brand-ink);padding:2.5mm 3mm;margin-top:3mm;font-size:12.5pt;break-inside:avoid;break-before:avoid}
.business-document.design-band.paper-a4>.document-balance{padding:0 3mm;break-before:avoid}

/* Blocks keep the order print.js renders them (no flex order: Chromium ignores keep-together rules between
   reordered flex items in print), so the footer band always goes over with what comes before it. */
.business-document.design-band.paper-a4 .document-notes{margin-top:4mm}
.business-document.design-band.paper-a4 .document-notes strong{color:var(--band-label)}
.business-document.design-band.paper-a4 .document-signatures{margin-top:4mm}
/* The delivery receipt lines (Received by, Signature, Date) in one row: a line to write on, its label below. */
.business-document.design-band.paper-a4 .document-signatures{display:grid;grid-template-columns:2fr 1.6fr 1fr;gap:0 6mm}
.business-document.design-band.paper-a4 .document-signatures>div{display:flex;flex-direction:column-reverse;align-items:stretch;gap:1mm;min-height:0;min-width:0;margin:0}
.business-document.design-band.paper-a4 .document-signatures .signature-blank{flex:0 0 auto;min-width:0;min-height:8mm}
.business-document.design-band.paper-a4 .document-signatures>div>span:first-child{font-size:8pt;color:var(--band-label)}

/* Payment details (1 to about 10 methods): a title, then a wrapping grid of small boxes. */
.business-document.design-band.paper-a4 .document-payment{margin-top:4mm;break-inside:avoid}
.business-document.design-band.paper-a4 .document-payment-title{margin:0 0 2mm;font-size:7.5pt;letter-spacing:.08em;text-transform:uppercase;font-weight:700;color:var(--band-label)}
.business-document.design-band.paper-a4 .document-payment-methods{display:grid;grid-template-columns:repeat(auto-fill,minmax(52mm,1fr));gap:3mm}
.business-document.design-band.paper-a4 .payment-method{display:flex;flex-direction:column;border-left:1.2mm solid var(--brand);background:var(--band-tint);padding:2mm 3mm;font-size:8.5pt;line-height:1.35;min-width:0;overflow-wrap:anywhere;break-inside:avoid}
.business-document.design-band.paper-a4 .payment-type{font-size:7pt;letter-spacing:.06em;text-transform:uppercase;color:var(--band-label)}
.business-document.design-band.paper-a4 .payment-provider{font-size:9.5pt}
.business-document.design-band.paper-a4 .payment-number{font-weight:700;font-variant-numeric:tabular-nums}
.business-document.design-band.paper-a4 .payment-extra{font-size:8pt;color:#333}
/* Authorisation: the company stamp and up to three signatures, side by side. */
.business-document.design-band.paper-a4 .document-authorisation{margin-top:5mm;display:flex;flex-wrap:wrap;align-items:flex-start;gap:4mm 5mm;break-inside:avoid}
.business-document.design-band.paper-a4 .document-stamp{display:block;width:auto;height:auto;max-width:22mm;max-height:22mm;object-fit:contain;flex:0 0 auto}
/* Each signature is the same four rows (image area, line, name, title), so the lines and names line up across
   signatures whether or not each has an image and however long each title is. */
.business-document.design-band.paper-a4 .document-signature{flex:0 1 40mm;min-width:34mm;display:grid;grid-template-rows:12mm auto auto auto;align-content:start;font-size:8.5pt}
.business-document.design-band.paper-a4 .document-signature>.signature-image{grid-row:1;align-self:end}
.business-document.design-band.paper-a4 .document-signature>.signature-line{grid-row:2}
.business-document.design-band.paper-a4 .document-signature>.signature-name{grid-row:3}
.business-document.design-band.paper-a4 .document-signature>.signature-title{grid-row:4}
.business-document.design-band.paper-a4 .signature-image{display:block;max-width:40mm;max-height:11mm;object-fit:contain;margin:0 0 1mm}
.business-document.design-band.paper-a4 .signature-line{display:block;border-top:1px solid #333;margin-bottom:1.5mm}
.business-document.design-band.paper-a4 .signature-title{color:#333}

/* Footer band: in the flow, kept with what comes before it, at least 5 mm below it. */
.business-document.design-band.paper-a4 .document-footer{margin:auto 0 0;padding:3mm var(--band-x);border:0;border-top:4mm solid transparent;background:var(--brand);background-clip:padding-box;
 color:var(--brand-ink);text-align:left;display:flex;flex-wrap:wrap;justify-content:space-between;gap:1mm 8mm;break-inside:avoid;break-before:avoid}
.business-document.design-band.paper-a4 .document-footer p{margin:0}
.business-document.design-band.paper-a4 .document-footer:empty{display:none}

/* The Elegant font (Print settings, Georgia) has wide letters: keep the grand total on one line and the details strip
   and payment boxes as compact as with the design's own font, so a short document still fits on one A4 page. */
.business-document.design-band.paper-a4.fmt-font-elegant{line-height:1.3}
.business-document.design-band.paper-a4.fmt-font-elegant .document-total{font-size:11pt}
.business-document.design-band.paper-a4.fmt-font-elegant .document-details dd{font-size:9pt}
.business-document.design-band.paper-a4.fmt-font-elegant .payment-method{font-size:8pt}
.business-document.design-band.paper-a4.fmt-font-elegant .payment-provider{font-size:9pt}
.business-document.design-band.paper-a4.fmt-font-elegant .document-details{padding:2.5mm 4mm;gap:2mm 6mm;margin-bottom:3mm}
.business-document.design-band.paper-a4.fmt-font-elegant .document-header{margin-bottom:3mm}
.business-document.design-band.paper-a4.fmt-font-elegant .document-authorisation{margin-top:3.5mm}

@media screen{
 .business-document.design-band.paper-a4{min-height:263mm}
}
/* Print: A4 with a 12 mm page margin (app.js), so the bands need less inner room and one page is 273 mm high;
   a little under that pushes a short document's footer to the bottom without ever adding a page. */
@media print{
 .business-document.design-band.paper-a4{--band-x:7mm;display:block}
 /* Normal block flow in print: Chromium does not keep flex items together across a page break, so in a flex column
    the footer band could be left alone on the last page. The table then needs an explicit width. */
 .business-document.design-band.paper-a4>.document-lines{width:calc(100% - 2 * var(--band-x))}
}

/* corp */
.business-document.design-corp{--corp-ink:#1b1f24;--corp-muted:#4f5a66;--corp-line:#cfd6de;--corp-stripe:#f2f4f7;--corp-strong:var(--brand,#1f4e79);color:var(--corp-ink)}
.business-document.design-corp{--corp-strong:oklch(from var(--brand,#1f4e79) min(l,0.42) c h)}
.business-document.design-corp>.document-header::before{content:"";display:block;height:2mm;margin:0 0 4mm;background:linear-gradient(90deg,var(--brand,#1f4e79) 0 70%,var(--brand-2,var(--brand,#1f4e79)) 70% 100%);-webkit-print-color-adjust:exact;print-color-adjust:exact}
.business-document.design-corp .document-title{color:var(--corp-strong)}
.business-document.design-corp .document-details dt{color:var(--corp-strong)}
.business-document.design-corp .print-sample{border:1px solid var(--corp-strong);color:var(--corp-strong);text-align:center;font-weight:700;letter-spacing:.08em}

.business-document.design-corp.paper-a4{font-family:Arial,Helvetica,"Liberation Sans",sans-serif;font-variant-numeric:tabular-nums;text-align:left;padding-top:0}
/* Blocks follow the order public/print.js renders them (totals, notes, payment details, delivery receipt lines, stamp
   and signatures, footer) in normal flow, so the browser's keep-together rules hold across page breaks. */
.business-document.design-corp.paper-a4 .document-header{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:3mm 8mm;text-align:left;margin:0 0 5mm;padding:0;border:0}
.business-document.design-corp.paper-a4>.document-header::before{flex:0 0 100%;margin:0 0 3.5mm;height:2.2mm}
.business-document.design-corp.paper-a4 .document-brand{flex:1 1 90mm;min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"logo name" "logo tag" "logo addr";column-gap:4mm;align-items:start}
.business-document.design-corp.paper-a4 .document-logo{grid-area:logo;width:16mm;height:16mm;object-fit:contain;margin:0;border-radius:1.5mm}
.business-document.design-corp.paper-a4 .document-business{grid-area:name;margin:0 0 1mm;font-size:13pt;line-height:1.2;font-weight:700;color:var(--corp-ink);overflow-wrap:anywhere}
.business-document.design-corp.paper-a4 .document-address{grid-area:addr;margin:0;font-size:9pt;line-height:1.35;color:var(--corp-muted);white-space:pre-line;overflow-wrap:anywhere}
.business-document.design-corp.paper-a4 .document-heading{flex:0 1 auto;max-width:100%;margin-left:auto;text-align:right}
.business-document.design-corp.paper-a4 .document-title{margin:0 0 2mm;padding:0;border:0;font-size:20pt;line-height:1.05;font-weight:600;letter-spacing:0}
.business-document.design-corp.paper-a4 .document-number{display:block;margin:0;font-size:11pt;font-weight:700;letter-spacing:0;overflow-wrap:anywhere}
.business-document.design-corp.paper-a4 .document-date{margin:1mm 0 0;font-size:9.5pt;color:var(--corp-muted)}
.business-document.design-corp.paper-a4 .print-sample{font-size:9pt;padding:1.5mm;margin:0 0 4mm}

.business-document.design-corp.paper-a4 .document-details{display:grid;grid-template-columns:repeat(auto-fit,minmax(48mm,1fr));gap:2.5mm 6mm;margin:0 0 5mm;padding:3mm 5mm;border:1px solid var(--corp-line);border-radius:1.2mm}
.business-document.design-corp.paper-a4 .document-details>div{display:block;margin:0;min-width:0}
.business-document.design-corp.paper-a4 .document-details dt{margin:0 0 .6mm;font-size:8pt;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.business-document.design-corp.paper-a4 .document-details dd{margin:0;font-size:10pt;font-weight:500;text-align:left;white-space:pre-line;overflow-wrap:anywhere}

.business-document.design-corp.paper-a4 .document-lines{font-size:10pt}
.business-document.design-corp.paper-a4 .document-lines thead{display:table-header-group}
.business-document.design-corp.paper-a4 .document-lines th{background:var(--brand,#1f4e79);color:var(--brand-ink,#fff);font-size:8.5pt;font-weight:700;letter-spacing:.02em;border:0;padding-top:2mm;padding-bottom:2mm;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.business-document.design-corp.paper-a4 .document-lines th:first-child,.business-document.design-corp.paper-a4 .document-lines td:first-child{padding-left:2.5mm}
.business-document.design-corp.paper-a4 .document-lines th:last-child,.business-document.design-corp.paper-a4 .document-lines td:last-child{padding-right:2.5mm}
.business-document.design-corp.paper-a4 .document-lines th:first-child:nth-last-child(5){width:36%}
.business-document.design-corp.paper-a4 .document-lines th:nth-child(5):last-child{text-align:right}
.business-document.design-corp.paper-a4.doc-kind-statement .document-lines th:last-child,.business-document.design-corp.paper-a4.doc-kind-statement .document-lines .line-amount{width:48mm}
.business-document.design-corp.paper-a4 .document-lines td{border-bottom:1px solid var(--corp-line);padding-top:1.5mm;padding-bottom:1.5mm}
.business-document.design-corp.paper-a4 .document-lines tbody tr:nth-child(even) td{background:var(--corp-stripe);-webkit-print-color-adjust:exact;print-color-adjust:exact}
.business-document.design-corp.paper-a4 .document-lines strong{font-weight:600}
.business-document.design-corp.paper-a4 .document-lines small{color:var(--corp-muted)}

.business-document.design-corp.paper-a4 .document-tax-summary,.business-document.design-corp.paper-a4 .document-balance,.business-document.design-corp.paper-a4 .document-total{margin-left:auto;width:min(100%,92mm)}
.business-document.design-corp.paper-a4 .document-tax-summary .document-balance{width:100%}
.business-document.design-corp.paper-a4 .document-balance{margin-top:1.5mm;font-size:10pt;color:var(--corp-muted)}
.business-document.design-corp.paper-a4 .document-balance strong{color:var(--corp-ink);font-weight:600}
.business-document.design-corp.paper-a4 .document-total{margin-top:2.5mm;padding-top:1.5mm;border-top:.6mm solid var(--brand,#1f4e79);border-bottom:0;font-size:13pt;color:var(--corp-strong)}
.business-document.design-corp.paper-a4 .document-total strong{color:var(--corp-strong)}

.business-document.design-corp.paper-a4 .document-notes{margin:5mm 0 0;padding:3.5mm 5mm;border:1px solid var(--corp-line);border-left:1.2mm solid var(--brand,#1f4e79);border-radius:1.2mm;font-size:9.5pt;white-space:normal}
.business-document.design-corp.paper-a4 .document-notes strong{display:block;margin:0 0 1mm;font-size:8pt;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--corp-strong)}
.business-document.design-corp.paper-a4 .document-notes p{margin:0;white-space:pre-line;overflow-wrap:anywhere}
.business-document.design-corp.paper-a4 .document-tagline{grid-area:tag;margin:0 0 1mm;font-size:9.5pt;font-style:italic;color:var(--corp-muted);overflow-wrap:anywhere}
.business-document.design-corp.paper-a4 .document-payment{margin:5mm 0 0;break-inside:avoid}
.business-document.design-corp.paper-a4 .document-payment-title{margin:0 0 2mm;font-size:8pt;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--corp-strong)}
.business-document.design-corp.paper-a4 .document-payment-methods{display:grid;grid-template-columns:repeat(auto-fill,minmax(54mm,1fr));gap:3mm}
.business-document.design-corp.paper-a4 .payment-method{display:flex;flex-direction:column;min-width:0;padding:2mm 3.5mm;border:1px solid var(--corp-line);border-top:.8mm solid var(--brand,#1f4e79);border-radius:1.2mm;font-size:9pt;line-height:1.3;overflow-wrap:anywhere;break-inside:avoid;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.business-document.design-corp.paper-a4 .payment-type{font-size:7.5pt;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--corp-muted)}
.business-document.design-corp.paper-a4 .payment-provider{font-size:10pt;font-weight:700;color:var(--corp-ink)}
.business-document.design-corp.paper-a4 .payment-number{font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:.02em}
.business-document.design-corp.paper-a4 .payment-extra{color:var(--corp-muted);font-size:8.5pt}
.business-document.design-corp.paper-a4 .document-authorisation{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:flex-end;gap:3mm 5mm;margin:5mm 0 0;break-inside:avoid}
.business-document.design-corp.paper-a4 .document-stamp{width:auto;max-width:24mm;max-height:24mm;object-fit:contain;margin-right:auto}
.business-document.design-corp.paper-a4 .document-signature{display:flex;flex-direction:column;align-items:center;flex:0 1 40mm;min-width:34mm;font-size:9pt;text-align:center;overflow-wrap:anywhere}
.business-document.design-corp.paper-a4 .signature-image{display:block;max-width:100%;max-height:12mm;object-fit:contain;margin:0 0 1mm}
.business-document.design-corp.paper-a4 .signature-line{display:block;align-self:stretch;height:0;margin:0 0 1.2mm;border-top:1px solid var(--corp-ink)}
.business-document.design-corp.paper-a4 .signature-name{font-weight:700}
.business-document.design-corp.paper-a4 .signature-title{color:var(--corp-muted);font-size:8.5pt}
.business-document.design-corp.paper-a4 .document-signatures{margin-top:5mm;padding:2mm 5mm;border:1px solid var(--corp-line);border-radius:1.2mm}
/* The delivery receipt lines (Received by, Signature, Date) sit side by side in one row: a blank line, its label below. */
.business-document.design-corp.paper-a4 .document-signatures{display:grid;grid-template-columns:2fr 1.6fr 1fr;gap:0 6mm;padding:3mm 5mm 2mm}
.business-document.design-corp.paper-a4 .document-signatures>div{display:flex;flex-direction:column-reverse;align-items:stretch;gap:1mm;min-height:0;min-width:0}
.business-document.design-corp.paper-a4 .document-signatures .signature-blank{flex:0 0 auto;min-width:0;min-height:9mm}
.business-document.design-corp.paper-a4 .document-signatures>div>span:first-child{font-size:8pt;color:var(--corp-muted)}
.business-document.design-corp.paper-a4 .document-footer{margin-top:5mm;padding-top:2mm;border-top:1px solid var(--corp-line);color:var(--corp-muted);font-size:8.5pt;text-align:left}

@media print{
 .business-document.design-corp.paper-a4 .document-lines tr,.business-document.design-corp.paper-a4 .document-total,.business-document.design-corp.paper-a4 .document-signatures{break-inside:avoid}
 /* The totals stay together: Subtotal and VAT on one page, and the grand total with them. */
 .business-document.design-corp.paper-a4 .document-tax-summary{break-inside:avoid}
 .business-document.design-corp.paper-a4 .document-total{break-before:avoid}
 /* Long notes may continue on the next page instead of leaving a large gap; a short note stays in one piece. */
 /* The notes box stays in one piece (a page break inside it could leave the NOTES heading alone). */
 .business-document.design-corp.paper-a4 .document-notes{break-inside:avoid;page-break-inside:avoid;orphans:2;widows:2}
 .business-document.design-corp.paper-a4 .document-notes>strong{break-after:avoid;page-break-after:avoid}
 /* The footer never stands alone on a last page: it goes over with whatever comes before it. */
 .business-document.design-corp.paper-a4>.document-footer{break-before:avoid;break-inside:avoid}
 /* A short note never stands alone at the top of a last page: it goes over with the payment details before it. */
 .business-document.design-corp.paper-a4>.document-notes{break-before:avoid}
}

/* elegant */
.business-document.design-elegant{font-family:"Libre Caslon Text","Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua","URW Palladio L",P052,Georgia,"Noto Serif","DejaVu Serif","Times New Roman",serif;color:#222;line-height:1.45}
.business-document.design-elegant .document-header{text-align:center;margin:0 0 3mm}
.business-document.design-elegant .document-brand{text-align:center}
.business-document.design-elegant .document-business{font-family:"Libre Caslon Text","Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua","URW Palladio L",P052,Georgia,"Noto Serif","DejaVu Serif","Times New Roman",serif;font-weight:400;font-size:15pt;letter-spacing:.16em;text-transform:uppercase;line-height:1.2;margin:0 0 1mm;color:#222}
.business-document.design-elegant .document-address{font-size:8.5pt;line-height:1.25;color:#333;margin:0 0 1mm}
.business-document.design-elegant .document-heading{text-align:center}
.business-document.design-elegant .document-heading::before{content:"";display:block;width:60%;margin:1mm auto 2mm;border-top:1px solid var(--brand)}
.business-document.design-elegant .document-title{font-family:"Libre Caslon Text","Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua","URW Palladio L",P052,Georgia,"Noto Serif","DejaVu Serif","Times New Roman",serif;font-style:italic;font-weight:400;font-size:18pt;letter-spacing:.02em;line-height:1.15;text-transform:lowercase;border:0;padding:0;margin:0 0 1.5mm;color:#333;color:color-mix(in srgb,var(--brand) 45%,#000)}
.business-document.design-elegant .document-title::first-letter{text-transform:uppercase}
.business-document.design-elegant .document-number{display:inline;font-family:"Libre Caslon Text","Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua","URW Palladio L",P052,"Noto Serif","DejaVu Serif","Times New Roman",serif;font-weight:400;font-size:10.5pt;letter-spacing:.06em;font-variant-numeric:lining-nums tabular-nums}
.business-document.design-elegant .document-date{display:inline;margin:0;font-size:10.5pt}
.business-document.design-elegant .document-date::before{content:"·";margin:0 .6em;color:var(--brand)}
.business-document.design-elegant .document-details{font-size:10pt;margin:0 0 4mm}
.business-document.design-elegant .document-details dt{font-family:"Gill Sans","Gill Sans MT",Optima,Candara,"Segoe UI","Helvetica Neue",Arial,sans-serif;font-size:7.5pt;letter-spacing:.12em;text-transform:uppercase;color:#333}
.business-document.design-elegant .document-details dd{font-weight:400;font-family:"Libre Caslon Text","Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua","URW Palladio L",P052,"Noto Serif","DejaVu Serif","Times New Roman",serif;font-variant-numeric:lining-nums}
.business-document.design-elegant .document-lines{font-size:10pt}
.business-document.design-elegant .document-lines th{font-family:"Libre Caslon Text","Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua","URW Palladio L",P052,Georgia,"Noto Serif","DejaVu Serif","Times New Roman",serif;font-style:italic;font-weight:400;font-size:9.5pt;border-top:0;border-bottom:1px solid var(--brand);padding:1.5mm 1mm;color:#333;color:color-mix(in srgb,var(--brand) 45%,#000)}
.business-document.design-elegant .document-lines td{border-bottom:1px solid #ddd;border-bottom-color:color-mix(in srgb,var(--brand) 22%,#fff);padding:2mm 1mm}
.business-document.design-elegant .document-lines tr{break-inside:avoid;page-break-inside:avoid}
.business-document.design-elegant .document-lines .line-amount,.business-document.design-elegant .document-lines small{font-family:"Libre Caslon Text","Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua","URW Palladio L",P052,"Noto Serif","DejaVu Serif","Times New Roman",serif;font-variant-numeric:lining-nums tabular-nums}
.business-document.design-elegant .document-lines small{color:#333}
.business-document.design-elegant .document-tax-summary{font-family:"Libre Caslon Text","Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua","URW Palladio L",P052,"Noto Serif","DejaVu Serif","Times New Roman",serif;font-variant-numeric:lining-nums tabular-nums}
.business-document.design-elegant .document-balance{font-family:"Libre Caslon Text","Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua","URW Palladio L",P052,"Noto Serif","DejaVu Serif","Times New Roman",serif;font-variant-numeric:lining-nums tabular-nums}
.business-document.design-elegant .document-total{font-family:"Libre Caslon Text","Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua","URW Palladio L",P052,"Noto Serif","DejaVu Serif","Times New Roman",serif;font-variant-numeric:lining-nums tabular-nums;font-weight:700;border-top:1px solid var(--brand);border-bottom:1px solid var(--brand);padding:1.2mm 0;margin-top:2mm;break-before:avoid;page-break-before:avoid}
.business-document.design-elegant .document-notes{font-size:10pt}
.business-document.design-elegant .document-signatures{font-family:"Libre Caslon Text","Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua","URW Palladio L",P052,Georgia,"Noto Serif","DejaVu Serif","Times New Roman",serif}
.business-document.design-elegant .document-footer{border-top:0;font-style:italic;color:#333;margin-top:5mm;padding-top:0}
.business-document.design-elegant .document-footer:empty{display:none}
.business-document.design-elegant .document-footer::before{content:"";display:block;width:40%;margin:0 auto 1.5mm;border-top:1px solid var(--brand)}
.business-document.design-elegant .document-tagline{font-style:italic;font-size:10pt;color:#333;margin:0 0 2mm}
.business-document.design-elegant .document-payment{margin:2.5mm 0 0;text-align:center;break-inside:avoid;page-break-inside:avoid}
.business-document.design-elegant .document-payment-title{font-family:"Libre Caslon Text","Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua","URW Palladio L",P052,Georgia,"Noto Serif","DejaVu Serif","Times New Roman",serif;font-style:italic;font-weight:400;font-size:11pt;margin:0 0 1mm;color:#333;color:color-mix(in srgb,var(--brand) 45%,#000)}
.business-document.design-elegant .document-payment-methods{display:flex;flex-wrap:wrap;justify-content:center;gap:2mm 3mm}
.business-document.design-elegant .payment-method{flex:0 1 44mm;min-width:38mm;border:1px solid #ccc;border-color:color-mix(in srgb,var(--brand) 45%,#fff);padding:1mm 2.5mm;font-size:9pt;line-height:1.25;text-align:center;overflow-wrap:anywhere;break-inside:avoid;page-break-inside:avoid}
.business-document.design-elegant .payment-method>*{display:block;margin:0}
.business-document.design-elegant .payment-type{font-family:"Gill Sans","Gill Sans MT",Optima,Candara,"Segoe UI","Helvetica Neue",Arial,sans-serif;font-size:7pt;letter-spacing:.12em;text-transform:uppercase;color:#333}
.business-document.design-elegant .payment-provider{font-weight:700}
.business-document.design-elegant .payment-number{font-family:"Libre Caslon Text","Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua","URW Palladio L",P052,"Noto Serif","DejaVu Serif","Times New Roman",serif;font-variant-numeric:lining-nums tabular-nums;font-weight:700;letter-spacing:.03em}
.business-document.design-elegant .payment-extra{font-size:8pt;font-style:italic;color:#333}
.business-document.design-elegant .document-authorisation{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:3mm 4mm;margin:3mm 0 0;break-inside:avoid;page-break-inside:avoid}
.business-document.design-elegant .document-stamp{display:block;max-width:24mm;max-height:24mm;width:auto;height:auto;object-fit:contain}
.business-document.design-elegant .document-signature{flex:0 1 42mm;min-width:30mm;text-align:center;font-size:9pt;line-height:1.3;overflow-wrap:anywhere}
.business-document.design-elegant .document-signature>*{display:block;margin:0}
.business-document.design-elegant .signature-image{max-width:100%;max-height:10mm;margin:0 auto 1mm;object-fit:contain}
.business-document.design-elegant .signature-line{height:0;border-top:1px solid var(--brand);margin:0 0 1.5mm}
.business-document.design-elegant .signature-name{font-weight:400;letter-spacing:.04em}
.business-document.design-elegant .signature-title{font-style:italic;font-size:8pt;color:#333}
.business-document.design-elegant .print-sample{font-family:"Gill Sans","Gill Sans MT",Optima,Candara,"Segoe UI","Helvetica Neue",Arial,sans-serif;font-weight:600;letter-spacing:.14em;border:1px solid var(--brand);color:#222}
/* Block order is the base order (print.js since #839): totals, notes, payment details, the delivery receipt lines, then
   the company sign-off (stamp and signatures) last above the footer. Plain block layout, not flex: Chrome keeps
   "break-before:avoid" only between ordinary blocks, so the footer goes over with what comes before it instead of
   standing alone on a last page (M, 7-8 lines with a logo and no stamp). */
.business-document.design-elegant.paper-a4{padding:8mm 14mm}
.business-document.design-elegant.paper-a4 .document-logo{margin-bottom:1mm;max-height:12mm}
.business-document.design-elegant.paper-a4 .document-business{font-size:14.5pt}
.business-document.design-elegant.paper-a4 .document-title{font-size:19pt}
.business-document.design-elegant.paper-a4 .document-details{display:grid;grid-template-columns:1fr 1fr;gap:1mm 12mm;margin:3mm 0 2.5mm}
.business-document.design-elegant.paper-a4 .document-details>div{margin:0;border-bottom:1px solid #eee;border-bottom-color:color-mix(in srgb,var(--brand) 15%,#fff);padding-bottom:1mm}
.business-document.design-elegant.paper-a4 .document-lines td{padding:1mm 1.5mm}
.business-document.design-elegant.paper-a4 .document-lines th{padding:1.5mm 1.5mm}
.business-document.design-elegant.paper-a4 .document-tax-summary,.business-document.design-elegant.paper-a4>.document-balance,.business-document.design-elegant.paper-a4 .document-total{margin-left:auto;width:62%}
.business-document.design-elegant.paper-a4 .document-lines th:first-child:nth-last-child(5){width:38%}
.business-document.design-elegant.paper-a4.doc-kind-statement .document-lines th:last-child,.business-document.design-elegant.paper-a4.doc-kind-statement .document-lines .line-amount{width:48mm}
.business-document.design-elegant.paper-a4 .document-lines:has(th:nth-child(5)) th:nth-child(4){width:34mm}
.business-document.design-elegant.paper-a4 .document-lines:has(th:nth-child(5)) td:nth-child(4){white-space:nowrap}
.business-document.design-elegant.paper-a4 .document-lines:has(th:nth-child(5)) th:nth-child(2){width:14mm}
.business-document.design-elegant.paper-a4 .document-total{font-size:12.5pt}
.business-document.design-elegant.paper-a4 .document-footer{margin-top:2.5mm}
.business-document.design-elegant.paper-a4 .document-notes{margin-top:2.5mm}
.business-document.design-elegant.paper-a4 .document-signatures{margin:3mm 0 0}
/* The delivery receipt lines (Received by, Signature, Date) sit side by side in one row. */
.business-document.design-elegant.paper-a4 .document-signatures{display:grid;grid-template-columns:2fr 1.6fr 1fr;gap:0 5mm}
.business-document.design-elegant.paper-a4 .document-signatures>div{margin:0;min-width:0}
/* 58 mm roll (G, #743 6549557711): the wide letter-spacing and the label beside each value left no room, so words broke
   mid-way ("DISTRIBUTIO-N", "Warehou-se"). Here the name is spaced less, each label sits above its value, the date has
   its own line, and table words break only between words. */
.business-document.design-elegant.paper-58mm .document-business{font-size:11pt;letter-spacing:.06em;overflow-wrap:break-word}
.business-document.design-elegant.paper-58mm .document-date{display:block;margin-top:.5mm}
.business-document.design-elegant.paper-58mm .document-date::before{content:none}
.business-document.design-elegant.paper-58mm .document-details>div{display:block;margin:0 0 1.2mm}
.business-document.design-elegant.paper-58mm .document-details dt{font-size:6.5pt}
.business-document.design-elegant.paper-58mm .document-details dd{text-align:left;overflow-wrap:break-word}
.business-document.design-elegant.paper-58mm .document-lines th,.business-document.design-elegant.paper-58mm .document-lines td{padding-left:.5mm;padding-right:.5mm;overflow-wrap:break-word;word-break:normal}
.business-document.design-elegant.paper-58mm .document-lines th{font-size:7.5pt;letter-spacing:0}
.business-document.design-elegant.paper-58mm .document-lines .line-amount,.business-document.design-elegant.paper-58mm .document-lines .line-amount>*{font-size:8.5pt;letter-spacing:-.01em}
@media print{
.business-document.design-elegant .document-lines thead{display:table-header-group}
.business-document.design-elegant .document-total,.business-document.design-elegant .document-tax-summary,.business-document.design-elegant .document-footer{break-inside:avoid;page-break-inside:avoid}
/* M's 1–60 line sweep: "Balance due" never starts a page alone, and short notes stay with what comes before them. */
.business-document.design-elegant.paper-a4>.document-balance,.business-document.design-elegant.paper-a4>.document-notes{break-before:avoid;page-break-before:avoid}
/* Long notes may continue on the next page (a short note stays whole). Base print.css's #printTicket rule still wins
   over this one until the base lets designs choose. */
.business-document.design-elegant.paper-a4 .document-notes{break-inside:auto;page-break-inside:auto;orphans:3;widows:3}
}
