/* MGTOTALS Update14. Dedicated A4 document family, independent of application UI. */
@font-face{font-family:MGTDocument;src:url('fonts/LiberationSans-Regular.ttf') format('truetype');font-weight:400;font-display:block}
@font-face{font-family:MGTDocument;src:url('fonts/LiberationSans-Bold.ttf') format('truetype');font-weight:700;font-display:block}
.doc-sheet.billdu-sheet.a4-page{box-sizing:border-box;position:relative;width:210mm!important;min-width:210mm;max-width:210mm;min-height:297mm;margin:0 auto 8mm;padding:15mm 15mm 24mm!important;background:#fff;color:#202a31;font-family:MGTDocument,Arial,sans-serif;font-size:9.5pt;line-height:1.38;letter-spacing:0;border:0;box-shadow:0 1px 5px #10233320;text-align:left}
.a4-page *{box-sizing:border-box}.a4-page h1,.a4-page h2,.a4-page h3,.a4-page p{font-family:inherit;letter-spacing:0;color:inherit;line-height:inherit}.a4-page h1{font-size:21pt!important;font-weight:700!important;color:var(--document-color)!important;margin:0 0 2mm;line-height:1.15}.a4-page h3{font-size:10pt;margin:0 0 3mm;font-weight:700}.a4-page p{margin:0 0 4mm}.a4-page strong{font-weight:700}.a4-body{width:180mm}.a4-paginated{height:297mm;overflow:visible}.a4-paginated>.a4-body{height:258mm;overflow:visible;display:flow-root}
.a4-letterhead{display:flex;justify-content:space-between;align-items:flex-start;gap:12mm;min-height:28mm;margin-bottom:8mm}.a4-letterhead .logo-frame{width:43mm;min-width:43mm;height:28mm;aspect-ratio:auto}.a4-issuer{font-size:8pt;text-align:right;line-height:1.45;max-width:112mm;overflow-wrap:anywhere}.a4-issuer strong{font-size:9.5pt}.a4-contact{margin-top:1mm}.a4-address-grid{display:grid;grid-template-columns:1fr 76mm;gap:10mm;margin:0 0 9mm;min-height:29mm}.a4-recipient{overflow-wrap:anywhere;font-size:10pt;line-height:1.45}.a4-recipient>strong{display:block;margin-bottom:1mm}.a4-eyebrow{font-size:7pt;text-transform:uppercase;letter-spacing:.08em;color:#69747c;margin-bottom:2mm}.a4-customer-vat{font-size:8pt;margin-top:2mm}.a4-meta{font-size:8.5pt}.a4-meta>div{display:grid;grid-template-columns:1fr 1fr;gap:3mm;padding:1mm 0}.a4-meta span{color:#617079}.a4-meta strong{text-align:right;overflow-wrap:anywhere}.a4-document-heading{display:flex;justify-content:space-between;align-items:end;padding-bottom:4mm;margin-bottom:4mm;border-bottom:.4mm solid var(--document-color)}.a4-document-heading>span{font-size:8.5pt;color:#69747c}.a4-document-number{font-size:12pt;font-weight:700}.a4-intro,.a4-note{font-size:9pt;white-space:normal;overflow-wrap:anywhere;line-height:1.45!important}.a4-continuation{display:flex;align-items:center;height:10mm;border-bottom:.3mm solid #a6afb4;font-size:9pt;font-weight:700;margin-bottom:4mm}
.a4-page table{width:180mm!important;table-layout:fixed!important;border-collapse:collapse!important;white-space:normal!important;font:inherit;margin:0!important;border:0!important}.a4-page table th,.a4-page table td{border:0;border-bottom:.2mm solid #dfe4e7;padding:2.5mm 1.4mm!important;font-size:9pt!important;line-height:1.35!important;vertical-align:top;letter-spacing:0;text-transform:none;overflow-wrap:anywhere;color:#202a31;background:white!important}.a4-page table th{background:#eef1f3!important;font-size:8pt!important;font-weight:700;color:#36434c!important;border-top:.25mm solid #aeb8bf;border-bottom:.25mm solid #aeb8bf;padding-top:2.7mm!important;padding-bottom:2.7mm!important}.a4-page .numeric{text-align:right;white-space:nowrap;overflow-wrap:normal}.a4-page .a4-items td:first-child{width:auto;color:#68757e}.a4-page .a4-items small{font-size:6.8pt!important;font-weight:400;display:block;color:#657179;margin:1mm 0 0;line-height:1.3}.a4-page .item-name{font-size:9pt;font-weight:400;display:block}.a4-page .item-detail{font-size:8.5pt;color:#58656e;white-space:pre-wrap;line-height:1.4;margin-top:1mm;overflow-wrap:anywhere}.a4-page .item-amount{font-weight:700}.a4-page table tr{break-inside:avoid}.a4-page thead{display:table-header-group}
.a4-totals-block{display:flow-root;margin:6mm 0 5mm;break-inside:avoid}.a4-page .billdu-totals{width:88mm;margin:0 0 0 auto;font-size:9.5pt;border:0;float:none}.a4-page .billdu-totals>div{display:flex;justify-content:space-between;align-items:baseline;gap:5mm;border:0;padding:1.5mm 0;background:none;color:#202a31}.a4-page .billdu-totals>div>span:first-child{font-size:9pt;text-transform:none;font-weight:400}.a4-page .billdu-totals strong{white-space:nowrap;font-weight:400}.a4-page .billdu-totals .a4-grand-total{margin:2mm 0;padding:3mm 0;border-top:.45mm solid #253c4b;border-bottom:.25mm solid #c7cfd4;font-size:12pt}.a4-page .a4-grand-total strong,.a4-page .a4-grand-total>span:first-child{font-size:12pt!important;font-weight:700!important}.a4-page .billdu-balance{font-size:10pt!important;font-weight:700;background:none!important;color:#202a31!important;padding:2mm 0!important}.a4-page .billdu-balance strong{font-weight:700}.a4-vat-free{clear:both;padding-top:4mm;margin:0!important;font-size:8.5pt;color:#53636e!important}
.a4-payment{border-top:.25mm solid #c7cfd4;padding-top:4mm;margin:0 0 5mm;break-inside:avoid}.a4-payment dl{display:grid;grid-template-columns:34mm 1fr;gap:1.2mm 4mm;font-size:8.5pt;margin:0}.a4-payment dt{color:#64717a}.a4-payment dd{margin:0;overflow-wrap:anywhere}.a4-payment .a4-iban{white-space:nowrap;overflow-wrap:normal;font-size:9pt;font-weight:700;letter-spacing:.02em}.a4-payment-table{margin-bottom:4mm!important}.a4-payment-table th:first-child{width:30mm}.a4-payment-table th:last-child{width:35mm}.a4-signature{padding-top:10mm;font-size:9pt}
.a4-page .a4-footer.billdu-footer{position:absolute;left:15mm;right:15mm;bottom:9mm;margin:0!important;padding:3mm 15mm 0 0;border-top:.2mm solid #c9d0d5;font-size:7pt;line-height:1.45;color:#606e77;max-height:17mm;overflow-wrap:anywhere}.a4-footer strong{font-weight:400}.a4-page-number{position:absolute;right:0;bottom:0;font-size:7pt;white-space:nowrap}.qr-page-number{position:absolute;right:15mm;top:177mm;font:8pt MGTDocument,Arial,sans-serif;color:#53636e}.qr-page-heading{font-family:MGTDocument,Arial,sans-serif;color:#202a31;padding:15mm}.qr-page-heading h2{font-size:18pt;margin:0 0 6mm}.qr-page-heading p{font-size:10pt;line-height:1.5}.qr-print-page{margin:0 auto 8mm!important;width:210mm!important;height:297mm!important;box-sizing:border-box}.qr-print-slip{width:210mm!important;height:105mm!important;bottom:0!important;left:0!important}.qr-print-slip>svg{width:210mm!important;height:105mm!important;max-width:none!important}.twint-print-page{width:210mm;position:relative;font-family:MGTDocument,Arial,sans-serif}.twint-print-page h2{font-size:18pt}.twint-print-page p{font-size:10pt}
.document-preview{padding:20px;background:#e8edf0}.document-preview .a4-page{margin:0 auto 8mm}.document-preview .a4-page:last-child{margin-bottom:0}.editor-preview .document-preview{width:842px;padding:20px 24px}.a4-print-preparing{display:block!important;position:absolute!important;left:-10000px;top:0;visibility:hidden!important;width:210mm}.document-preview .a4-page .billdu-items{border:0!important}
@media print{
 @page mgtDocument{size:210mm 297mm;margin:0} @page qrPayment{size:210mm 297mm;margin:0}
 html,body{margin:0!important;padding:0!important;background:white!important}#app,dialog,#toast{display:none!important}#print{display:block!important;padding:0!important;margin:0!important;position:static!important;visibility:visible!important}#print .doc-sheet.billdu-sheet.a4-page{page:mgtDocument;width:210mm!important;height:297mm!important;min-height:297mm!important;max-height:297mm;min-width:210mm;padding:15mm 15mm 24mm!important;margin:0!important;box-shadow:none!important;break-after:page;break-inside:avoid;overflow:visible}#print .a4-page:last-child{break-after:auto}#print .a4-page .billdu-items td,#print .a4-page .billdu-items th{font-size:9pt!important;padding:2.5mm 1.4mm!important}#print .a4-page .billdu-items th{font-size:8pt!important;background:#eef1f3!important;color:#36434c!important;padding-top:2.7mm!important;padding-bottom:2.7mm!important}#print .qr-print-page,#print .twint-print-page{margin:0!important;page:qrPayment;break-before:page;break-inside:avoid;height:297mm!important}.a4-page,.qr-print-page,.a4-page *{-webkit-print-color-adjust:exact;print-color-adjust:exact}#print .a4-footer{margin:0!important}.a4-body{display:flow-root}
}
.a4-document-number small{font-size:8pt;font-weight:400;margin-right:3mm;color:#66747e}
.monthly-report,.expense-report{font-family:MGTDocument,Arial,sans-serif}.monthly-report header{border-bottom:.45mm solid #324f62}.monthly-report h1{color:#263e4d;font-size:21pt;font-weight:700}.monthly-report th{background:#edf1f4!important;color:#334b5b!important;border-top:.25mm solid #bac7d0;border-bottom:.25mm solid #bac7d0;font-size:8pt!important}.monthly-report td{font-size:8pt!important}.monthly-report .report-total td{background:#f0f3f5;color:#263e4d}.report-legend{border-radius:0;background:#fff9f8;color:#963b33}.expense-report h1{color:#263e4d;font-size:21pt}.expense-report h2{font-size:13pt}.expense-report th{background:#eef2f4;color:#334b5b}
/* Explicit specificity isolates print typography from the legacy table selectors. */
.doc-sheet.billdu-sheet.a4-page table th,.doc-sheet.billdu-sheet.a4-page table td{text-align:left;font-family:MGTDocument,Arial,sans-serif;line-height:1.3!important}
.doc-sheet.billdu-sheet.a4-page .a4-items th{font-size:8pt!important;padding:2mm 1.3mm!important;letter-spacing:0;text-transform:none;background:#eef1f3!important;color:#36434c!important}
.doc-sheet.billdu-sheet.a4-page .a4-items td{font-size:9pt!important;padding:2mm 1.3mm!important}
.doc-sheet.billdu-sheet.a4-page table .numeric{text-align:right!important}.doc-sheet.billdu-sheet.a4-page .item-description{text-align:left!important}.doc-sheet.billdu-sheet.a4-page .item-position{text-align:left!important}.doc-sheet.billdu-sheet.a4-page .a4-items th small{font-size:6.8pt!important;line-height:1.15;margin-top:1mm}
.a4-letterhead{margin-bottom:5mm}.a4-address-grid{margin-bottom:5mm}.a4-meta>div{padding:.6mm 0}.a4-document-heading{padding-bottom:3mm}.a4-settlement{display:flow-root;break-inside:avoid}.a4-payment dl{grid-template-columns:27mm 64mm 22mm 1fr;gap:1.3mm 3mm}.a4-payment .a4-iban{font-size:8.5pt;letter-spacing:0}.a4-page .billdu-totals>div{padding:1mm 0}.a4-page .billdu-totals .a4-grand-total{padding:2mm 0;margin:1.5mm 0}.a4-page .billdu-totals .billdu-balance{padding:1mm 0!important}.a4-totals-block{margin:4mm 0}.a4-payment{padding-top:3mm;margin-bottom:3mm}
@media print{#print .doc-sheet.billdu-sheet.a4-page .a4-items td{font-size:9pt!important;padding:2mm 1.3mm!important}#print .doc-sheet.billdu-sheet.a4-page .a4-items th{font-size:8pt!important;padding:2mm 1.3mm!important}}
/* A compact letterhead and item rhythm leave room for totals on ordinary invoices. */
.a4-letterhead{min-height:25mm;margin-bottom:3mm}.a4-letterhead .logo-frame{width:38mm;min-width:38mm;height:25mm}.a4-address-grid{margin-bottom:4mm}.a4-page h1{margin-bottom:1mm}.a4-document-heading{padding-bottom:2.5mm;margin-bottom:3mm}.a4-page .item-detail{line-height:1.35;margin-top:.6mm}.doc-sheet.billdu-sheet.a4-page .a4-items td{padding:1.2mm 1.3mm!important}.a4-totals-block{margin:3mm 0}.a4-page .billdu-totals{line-height:1.25}.a4-page .billdu-totals>div{padding:.7mm 0}.a4-payment h3{margin-bottom:2mm}.a4-payment dl{line-height:1.3}.a4-page .a4-meta>div{padding:.45mm 0}
@media print{#print .doc-sheet.billdu-sheet.a4-page .a4-items td{padding:1.2mm 1.3mm!important}}
.qr-bank-details{position:absolute;left:15mm;right:15mm;bottom:115mm;font:9.5pt/1.5 MGTDocument,Arial,sans-serif;color:#202a31;border-top:.25mm solid #bac4ca;padding-top:5mm}.qr-bank-details h3{font-size:11pt;margin:0 0 4mm}.qr-bank-details dl{display:grid;grid-template-columns:36mm 1fr;gap:1.5mm 5mm;margin:0}.qr-bank-details dt{color:#53636e}.qr-bank-details dd{margin:0;overflow-wrap:anywhere}.qr-bank-details .a4-iban{white-space:nowrap;overflow-wrap:normal;font-variant-numeric:tabular-nums}.monthly-report th,.monthly-report td{overflow-wrap:anywhere}
.monthly-report table{width:100%!important;table-layout:fixed}.monthly-report th,.monthly-report td{width:auto!important;padding:1.4mm 1.1mm!important;line-height:1.35!important}.monthly-report th{white-space:normal!important;overflow-wrap:normal!important;text-transform:none!important;letter-spacing:0!important;vertical-align:bottom}.monthly-report td{vertical-align:top}.monthly-report tbody td:nth-child(3),.monthly-report tbody td:nth-child(4),.monthly-report tbody td:nth-child(5),.monthly-report tbody td:nth-child(6),.monthly-report tbody td:nth-child(10){white-space:nowrap;overflow-wrap:normal;font-variant-numeric:tabular-nums}.monthly-report .report-total td{white-space:nowrap;overflow-wrap:normal}.monthly-report td small{font-size:7pt}
/* Off-screen A4 export shares every document rule with print and preview. */
.mg-pdf-render{position:absolute;left:-12000px;top:0;width:210mm;background:white;pointer-events:none;z-index:-1}.mg-pdf-render .a4-page{box-shadow:none}.mg-pdf-render .twint-print-page{height:297mm;box-sizing:border-box}
@media print{.mg-pdf-render{display:none!important}}
