/* Shared document style: canonical invoice, guest summary, preview and print. */
.document-preview{margin:0;padding:24px 16px;background:#edf1f6;font-family:Arial,Helvetica,sans-serif;color:#243247;line-height:1.5}.document-preview *,.invoice-sheet *{box-sizing:border-box}.document-preview .preview-label{max-width:820px;margin:0 auto 14px;border-radius:8px;background:#f8fafc;border:1px solid #dee5ef;padding:11px 16px;color:#7c8799;font-size:11px;text-align:left}.document-preview .preview-label strong{color:#536378;font-size:12px;display:block;margin-bottom:2px}
.invoice-sheet{position:relative;min-height:0;width:100%;max-width:820px;margin:0 auto;padding:40px 42px 30px;background:#fff;border:1px solid #e0e6ef;border-radius:4px;box-shadow:0 5px 23px #27364c0a;color:#243247;font-family:Arial,Helvetica,sans-serif;font-size:11px;line-height:1.5;isolation:isolate}.invoice-sheet p{margin:0 0 5px;font-size:11px;line-height:1.55}.invoice-sheet h1,.invoice-sheet h2,.invoice-sheet h3{line-height:1.35;color:#243247;letter-spacing:0}.invoice-sheet .invoice-header{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);align-items:start;gap:24px;padding:0 0 25px;margin:0 0 24px;border-bottom:3px solid #b52b4b}.invoice-sheet .invoice-brand-block{display:flex;align-items:flex-start;gap:16px;min-width:0;text-align:left}.invoice-sheet .invoice-brand-block img{width:75px;height:78px;object-fit:contain;flex-shrink:0}.invoice-sheet .invoice-brand-block>div{min-width:0}.invoice-sheet .invoice-brand-block h2{margin:5px 0 9px;font-size:15px;font-weight:700}.invoice-sheet .invoice-brand-block p{color:#7a8699;font-size:9px;line-height:1.5;overflow-wrap:anywhere;margin-bottom:5px}.invoice-sheet .invoice-meta{text-align:right;min-width:0}.invoice-sheet .invoice-meta h1{font-size:23px;font-weight:700;margin:3px 0 10px;letter-spacing:.01em}.invoice-sheet .invoice-meta .invoice-no{color:#b52b4b;font-size:14px;font-weight:700;margin-bottom:10px;overflow-wrap:anywhere}.invoice-sheet .invoice-meta>p{color:#7a8699;font-size:10px;margin-bottom:4px}.invoice-sheet .status{display:inline-block;padding:4px 9px;font-size:9px;font-weight:600;border-radius:5px;background:#f1f4f8;color:#64748b;margin:7px 0 0}.invoice-sheet .status.paid{color:#207451;background:#ecf7f0}.invoice-sheet .status.issued,.invoice-sheet .status.partial{color:#b42318;background:#fff3f1}.invoice-sheet .status.void{color:#b42318;background:#fff3f1}
.invoice-sheet .party-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:14px;margin:0 0 24px;padding:0;border:0}.invoice-sheet .party-grid>div{padding:16px 18px;background:#f6f8fb;border-radius:7px;min-width:0}.invoice-sheet .party-grid .label{color:#7a8699;font-size:8px;font-weight:700;letter-spacing:.1em}.invoice-sheet .party-grid h2{font-size:14px;margin:9px 0 8px;overflow-wrap:anywhere}.invoice-sheet .party-grid p{font-size:10px;margin:0 0 4px;overflow-wrap:anywhere;white-space:pre-line}.invoice-sheet .party-grid strong{font-weight:600}.invoice-sheet .invoice-section-title{font-size:9px;font-weight:700;letter-spacing:.08em;color:#7a8699;margin:0 0 12px}
.invoice-sheet table{width:100%;border-collapse:collapse;text-align:left}.invoice-sheet .invoice-items{table-layout:fixed;margin:0 0 24px;border:0;box-shadow:none}.invoice-sheet .invoice-items th{background:#f5f7fa;color:#7a8699;font-size:8px;font-weight:700;padding:10px 8px;text-transform:none;letter-spacing:.03em;line-height:1.4;border:0}.invoice-sheet .invoice-items td{font-size:10px;padding:13px 8px;line-height:1.5;border-bottom:1px solid #e4e9f0;vertical-align:top;overflow-wrap:anywhere;color:#243247}.invoice-sheet .invoice-items th:nth-child(1){width:5%}.invoice-sheet .invoice-items th:nth-child(2){width:35%}.invoice-sheet .invoice-items th:nth-child(3){width:12%}.invoice-sheet .invoice-items th:nth-child(4){width:8%}.invoice-sheet .invoice-items th:nth-child(5),.invoice-sheet .invoice-items th:nth-child(6){width:20%}.invoice-sheet .invoice-items th:nth-child(n+4),.invoice-sheet .invoice-items td:nth-child(n+4){text-align:right;font-variant-numeric:tabular-nums}.invoice-sheet .invoice-items td:nth-child(2){white-space:pre-wrap}.invoice-sheet .invoice-items td:last-child{font-weight:600}.invoice-sheet .customer-services th:first-child{width:5%}.invoice-sheet .customer-services th:nth-child(2){width:95%}.invoice-sheet .customer-services td:last-child{font-weight:400}
.invoice-sheet .invoice-bottom{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);align-items:start;gap:28px;margin-top:5px}.invoice-sheet .invoice-bottom h3,.invoice-sheet .invoice-extra h3,.invoice-sheet .invoice-receipt-history h3,.invoice-sheet .terms h3{font-size:9px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:#7a8699;margin:0 0 10px}.invoice-sheet .invoice-bottom p{font-size:10px;line-height:1.65;overflow-wrap:anywhere;margin:0 0 15px}.invoice-sheet .invoice-bottom strong{font-weight:600}.invoice-sheet .invoice-totals{margin:0;background:#f6f8fb;padding:7px 13px;border-radius:7px;border:0}.invoice-sheet .invoice-totals>div{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:6px 2px;font-size:10px;color:#6d7a8d;border:0;border-radius:0;line-height:1.5}.invoice-sheet .invoice-totals dt{font-weight:400;min-width:0}.invoice-sheet .invoice-totals dd{margin:0;color:#243247;font-weight:600;white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}.invoice-sheet .invoice-totals .grand.money-total{background:#faedf1;color:#b52b4b;border-top:1px solid #e9cad3;font-size:12px;margin:6px -13px 0;padding:12px 15px}.invoice-sheet .invoice-totals .grand.money-total dt,.invoice-sheet .invoice-totals .grand.money-total dd{color:#b52b4b;font-weight:700}.invoice-sheet .invoice-totals .money-paid{color:#207451;padding-top:10px}.invoice-sheet .invoice-totals .money-paid dd{color:#207451}.invoice-sheet .invoice-totals .balance{margin:5px -13px -7px;padding:11px 15px;font-size:11px;border-radius:0 0 7px 7px;background:#edf7f1;color:#207451}.invoice-sheet .invoice-totals .balance dt,.invoice-sheet .invoice-totals .balance dd{font-weight:700;color:inherit}.invoice-sheet .invoice-totals .balance.balance-pending,.invoice-sheet .invoice-totals .balance.balance-overdue{background:#fff3f1;color:#b42318}
.invoice-sheet .invoice-extra{margin:18px 0;padding:0}.invoice-sheet .invoice-extra p{font-size:10px;line-height:1.6}.invoice-sheet .multiline{white-space:pre-wrap;overflow-wrap:anywhere}.invoice-sheet .invoice-receipt-history{margin:25px 0 18px;padding:0}.invoice-sheet .invoice-receipt-history table{font-size:10px;table-layout:fixed}.invoice-sheet .invoice-receipt-history th{color:#7a8699;font-size:8px;background:#f5f7fa;letter-spacing:.03em;padding:9px 8px;line-height:1.5}.invoice-sheet .invoice-receipt-history td{border-bottom:1px solid #e4e9f0;padding:10px 8px;color:#243247;font-size:10px;line-height:1.5;overflow-wrap:anywhere;vertical-align:top}.invoice-sheet .invoice-receipt-history td:first-child{width:26%}.invoice-sheet .invoice-receipt-history .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:600}.invoice-sheet .invoice-receipt-history small{display:block;font-size:9px;color:#7a8699;margin-top:4px}.invoice-sheet .invoice-receipt-history>p{font-size:9px;color:#7a8699;margin-top:10px}.invoice-sheet .split-rounding-note{font-size:9px;color:#7a8699;background:#f8fafc;padding:9px 11px;border-radius:5px;margin:0 0 20px}.invoice-sheet .terms{border-top:1px solid #e4e9f0;margin:26px 0 0;padding-top:16px}.invoice-sheet .terms p{font-size:9px;color:#7a8699;line-height:1.65;margin-bottom:6px}.invoice-sheet .computer-note{color:#b52b4b!important;font-size:9px;font-weight:500;margin:20px 0 0!important}.invoice-sheet .void-mark{position:absolute;inset:40% 0 auto;font-size:100px;opacity:.07;color:#b42318;font-weight:700;text-align:center;transform:rotate(-25deg);pointer-events:none;z-index:-1}.customer-document .customer-view-note{font-size:10px;color:#7a8699}.customer-document .invoice-header{gap:14px}.customer-document .invoice-meta h1{font-size:20px}
@media(max-width:660px){.document-preview{padding:10px}.invoice-sheet{padding:24px 20px}.invoice-sheet .invoice-header{grid-template-columns:1fr;gap:16px}.invoice-sheet .invoice-meta{text-align:left}.invoice-sheet .invoice-meta h1{font-size:20px}.invoice-sheet .invoice-brand-block img{width:62px;height:65px}.invoice-sheet .party-grid{grid-template-columns:1fr;gap:10px}.invoice-sheet .invoice-bottom{grid-template-columns:1fr;gap:12px}.invoice-sheet .invoice-bottom>div:empty{display:none}.invoice-sheet .invoice-items td{font-size:9px;padding:10px 4px}.invoice-sheet .invoice-items th{font-size:7px;padding:8px 4px}.invoice-sheet .invoice-items th:nth-child(2){width:31%}.invoice-sheet .invoice-items th:nth-child(5),.invoice-sheet .invoice-items th:nth-child(6){width:22%}.invoice-sheet .invoice-receipt-history td{font-size:9px;padding:8px 4px}.invoice-sheet .invoice-receipt-history .num{white-space:normal}}
@media print{@page{size:A4;margin:12mm}.document-preview{margin:0;padding:0;background:#fff}.preview-label{display:none!important}.invoice-sheet{max-width:none;width:100%;border:0;box-shadow:none;padding:0;border-radius:0;-webkit-print-color-adjust:exact;print-color-adjust:exact}.invoice-sheet .invoice-header,.invoice-sheet .party-grid,.invoice-sheet .invoice-bottom{break-inside:avoid}.invoice-sheet .invoice-items thead,.invoice-sheet .invoice-receipt-history thead{display:table-header-group}.invoice-sheet tr{break-inside:avoid}.invoice-sheet .invoice-receipt-history{break-inside:auto}.invoice-sheet .terms{break-inside:avoid}}

/* Compact, brand-consistent layout choices for screen and print. */
.invoice-sheet{padding:30px 32px 24px}.invoice-sheet .invoice-header{padding-bottom:18px;margin-bottom:18px;gap:18px}.invoice-sheet .party-grid{margin-bottom:18px}.invoice-sheet .party-grid>div{padding:12px 14px}.invoice-sheet .invoice-items{margin-bottom:18px}.invoice-sheet .invoice-items td{padding:10px 8px}.invoice-sheet .invoice-totals>div{padding:5px 2px}.invoice-sheet .terms{margin-top:20px;padding-top:12px}.invoice-sheet.layout-signature .invoice-header{border-color:#203c62}.invoice-sheet.layout-signature .invoice-meta .invoice-no,.invoice-sheet.layout-signature .computer-note{color:#203c62!important}.invoice-sheet.layout-signature .party-grid>div{background:#f1f5fa;border-left:3px solid #203c62}.invoice-sheet.layout-signature .invoice-items th{background:#203c62;color:#fff}.invoice-sheet.layout-signature .invoice-totals .grand.money-total{background:#203c62;border-color:#203c62;color:#fff}.invoice-sheet.layout-signature .invoice-totals .grand.money-total dt,.invoice-sheet.layout-signature .invoice-totals .grand.money-total dd{color:#fff}.invoice-sheet.layout-signature .invoice-header{border-bottom-width:1px}.invoice-sheet.layout-signature .invoice-meta h1{letter-spacing:.07em}.invoice-sheet .invoice-brand-block img{max-width:75px}.inline-document-preview .invoice-sheet{min-height:0}
@media(max-width:660px){.invoice-sheet{padding:22px 16px}}@media print{.invoice-sheet{padding:0;min-height:0}}

/* Validated invoice accents, shared by inline, standalone and printed copies. */
.invoice-sheet{--invoice-accent:#b52b4b;--invoice-accent-ink:#b52b4b;--invoice-on-accent:#fff;--invoice-accent-pale:#faf0f3}.invoice-sheet.layout-signature{--invoice-accent:#203c62;--invoice-accent-ink:#203c62;--invoice-accent-pale:#edf3fa}
.invoice-sheet .invoice-header,.invoice-sheet.layout-signature .invoice-header{border-color:var(--invoice-accent)}.invoice-sheet .invoice-meta .invoice-no,.invoice-sheet .computer-note,.invoice-sheet.layout-signature .invoice-meta .invoice-no,.invoice-sheet.layout-signature .computer-note{color:var(--invoice-accent-ink)!important}
.invoice-sheet .invoice-totals .grand.money-total{background:var(--invoice-accent-pale);color:var(--invoice-accent-ink);border-color:var(--invoice-accent)}.invoice-sheet .invoice-totals .grand.money-total dt,.invoice-sheet .invoice-totals .grand.money-total dd{color:var(--invoice-accent-ink)}
.invoice-sheet.layout-signature .party-grid>div{border-color:var(--invoice-accent);background:var(--invoice-accent-pale)}.invoice-sheet.layout-signature .invoice-items th,.invoice-sheet.layout-signature .invoice-totals .grand.money-total{background:var(--invoice-accent);border-color:var(--invoice-accent);color:var(--invoice-on-accent)}.invoice-sheet.layout-signature .invoice-totals .grand.money-total dt,.invoice-sheet.layout-signature .invoice-totals .grand.money-total dd{color:var(--invoice-on-accent)}
.invoice-sheet .customer-services th:first-child{width:5%}.invoice-sheet .customer-services th:nth-child(2){width:65%}.invoice-sheet .customer-services th:nth-child(3){width:8%}.invoice-sheet .customer-services th:nth-child(4){width:22%}.invoice-sheet .customer-services th:nth-child(n+3),.invoice-sheet .customer-services td:nth-child(n+3){text-align:right;font-variant-numeric:tabular-nums}.invoice-sheet .customer-services td:last-child{font-weight:600}
