/* Shared paper design for reports, vouchers, invoices and registers. */
.print-brand{display:flex;align-items:center;gap:18px;border-bottom:3px solid #b39a58;padding:0 0 16px;margin-bottom:20px;break-inside:avoid}
.print-brand.print-only{display:none}
.print-brand img{width:72px;height:64px;object-fit:contain;flex-shrink:0}
.print-brand h1{font:700 23px/1.2 "Segoe UI",Arial,sans-serif;color:#183544;margin:0}
.print-brand p{margin:6px 0 0;font:11px/1.4 "Segoe UI",Arial,sans-serif;color:#647580;letter-spacing:.8px;text-transform:uppercase}
.print-form-heading h2{font-size:20px;color:#183544;margin:0 0 6px}
.print-form-heading p{font-size:11px;color:#647580;margin:0 0 20px}
.print-value{display:none}
.print-document,.report-page,.challan-copy{font-family:"Segoe UI",Arial,sans-serif}
.print-document .statement-heading h2,.report-heading h2{color:#183544;font-size:21px;font-weight:600;margin:0 0 8px}
.print-document .statement-heading{border-bottom:1px solid #d8e0e5;padding-bottom:14px;margin-bottom:20px}
.print-document .statement-heading p,.report-heading p{color:#647580;line-height:1.5}
.print-document .statement-heading dl{color:#51616b;line-height:1.5}
.print-document table,.challan-copy table{font-variant-numeric:tabular-nums}
.print-document table th,.challan-copy table th{background:#edf2f5;color:#183544;border-color:#d5dfe5;font-weight:600;white-space:normal}
.print-document table td,.challan-copy table td{border-color:#d5dfe5}
.print-document .report-section h3,.valuation-section h3,.parta-section h3{color:#183544;font-size:12px;font-weight:600;border:0;border-bottom:2px solid #b39a58;background:none;padding:6px 0;margin:14px 0 8px;break-after:avoid}
.print-document .report-total td{font-weight:700;background:#edf2f5;border-top:2px solid #183544}
.statement-footer,.report-footnote{border-top:1px solid #d5dfe5;color:#647580;font-size:10px;padding-top:10px;margin-top:20px}
.closing-print .statement-heading>div,.worksheet-caption{border:0;border-left:3px solid #b39a58;background:#f4f7f9;padding:10px 12px}
.worksheet-caption strong{color:#183544;font-weight:600}
.statement-total{border-color:#183544;color:#183544}
.challan-copy .print-brand h1{font-size:21px}
.challan-copy .copy-name{font-size:10px;color:#51616b;background:#edf2f5;padding:5px 10px;border-radius:3px}
.print-preview .print-brand.print-only,.print-preview .print-form-heading{display:flex}
.print-preview .print-form-heading{display:block}
.print-preview .window{background:white;border:1px solid #d5dfe5;box-shadow:0 4px 18px #142a3a18}
.print-preview .window:has(.print-form-heading){max-width:210mm;padding:22px 24px}
.print-preview .transaction-window:has(.print-form-heading){max-width:297mm}
.print-preview .window:has(.print-form-heading) .toolbar{margin:0 0 20px;padding:8px 0;border:0;background:white}
.print-preview .toolbar>:not([data-print-preview]):not([data-print]){display:none}
.print-preview .no-print:not(.toolbar),.print-preview .hint,.print-preview .message,.print-preview .document-state-actions{display:none!important}
.print-preview .print-source-field{display:none!important}
.print-preview .print-value{display:block;white-space:pre-wrap;overflow-wrap:anywhere;min-height:1em;color:#183544;padding:3px 0}
.print-preview .input-with-button button,.print-preview .grid-code button,.print-preview .grid-footer button{display:none}
.print-preview .table-wrap{overflow:visible;margin:14px 0}
.print-preview .voucher-grid,.print-preview .transaction-grid{min-height:0}
.print-preview .form-heading,.print-preview .legacy-document-heading,.print-preview .legacy-fields{padding:12px 0}
.print-preview .print-form-heading~form table th{background:#edf2f5;font-weight:600;white-space:normal}
.print-preview .print-form-heading~form table th,.print-preview .print-form-heading~form table td{border-color:#d5dfe5;padding:6px;font-size:11px}
.print-preview .print-form-heading~form label{color:#647580}
.print-preview .print-form-heading~form .grid-footer{padding:12px 0}
.print-preview .window:has(.print-form-heading) table tbody tr{background:white}
.print-preview .window:has(.print-form-heading) table tfoot{background:#edf2f5;border-top:2px solid #183544}
.print-preview .challan-sheet{max-width:210mm;margin:auto;background:white;padding:20px;box-shadow:0 4px 18px #142a3a18}
.print-preview .challan-copy{background:white;border:0;border-bottom:1px dashed #b8c6cf;padding:15px 0 25px}
.print-preview .challan-copy:last-child{border-bottom:0}
.print-preview .report-table-scroll{overflow:visible}.print-preview .report-table-scroll td{white-space:normal;overflow-wrap:anywhere}
.print-preview .wide-report-screen{display:none}.print-preview .wide-report-print{display:block}.wide-report-print table{table-layout:fixed}.wide-report-print th,.wide-report-print td{overflow-wrap:anywhere}
/* Duplicate dispatch/invoice copies use the two halves of landscape paper. */
.duplicate-print{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;background:white;padding:24px;max-width:1400px;margin:0 auto;align-items:start;color:#183544}
.duplicate-print>article{min-width:0;padding:0 0 0 20px;overflow-wrap:anywhere}
.duplicate-print>article:first-child{border:0;border-right:1px dashed #b8c6cf;padding:0 28px 0 0}
.duplicate-print table{width:100%;border-collapse:collapse}
.duplicate-print .print-brand h1{font-size:19px}
.duplicate-print .print-brand img{width:52px;height:48px}
.duplicate-print dl dd{min-width:0}
.copy-print-meta{font-size:10px;color:#647580;margin-top:18px}
.credit-invoice-copy{font:12px/1.4 "Segoe UI",Arial,sans-serif}
.credit-invoice-brand{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:start}
.credit-invoice-brand h1{font-size:22px;line-height:1.15;color:#183544;margin:0}
.credit-invoice-brand p{font-size:10px;margin:5px 0}
.credit-invoice-brand dl{display:grid;grid-template-columns:auto auto;gap:2px 8px;font-size:9px;margin:0}
.credit-invoice-brand dd{margin:0}
.credit-invoice-title{text-align:center;margin:30px 0 20px}
.credit-invoice-title h2{font-size:21px;margin:0 0 6px;color:#183544}
.credit-invoice-title span{font-size:10px;color:#647580}
.credit-invoice-details{display:grid;grid-template-columns:1.2fr 1fr;gap:18px;margin-bottom:24px}
.credit-invoice-details dl{display:grid;grid-template-columns:auto minmax(0,1fr);gap:5px 9px;margin:0;font-size:10px;align-content:start}
.credit-invoice-details dt{font-weight:600}.credit-invoice-details dd{margin:0}
.credit-invoice-instructions{font-size:10px;white-space:normal;margin:0 0 15px}
.credit-invoice-lines{table-layout:fixed}
.credit-invoice-lines .item{width:34%}.credit-invoice-lines .qty{width:12%}.credit-invoice-lines .weight{width:16%}.credit-invoice-lines .rate{width:17%}.credit-invoice-lines .amount{width:21%}
.credit-invoice-lines th,.credit-invoice-lines td{border:1px solid #aab9c3;padding:8px 5px;font-size:10px;white-space:normal}
.credit-invoice-lines th{background:#edf2f5}.credit-invoice-lines tfoot{font-weight:700}
.credit-invoice-balances{margin:8px 0 18px;font-size:11px}
.credit-invoice-balances th{padding:3px 8px;text-align:right;border:0;background:transparent}
.credit-invoice-balances td{width:25%;padding:3px 5px;border:0}
.credit-invoice-balances .net-balance td{border-top:1px solid #183544;border-bottom:3px double #183544;font-weight:700}
.credit-invoice-words{font-size:10px;line-height:1.5;margin:15px 0}
.credit-invoice-weights{table-layout:fixed;margin:12px 0;text-align:center}
.credit-invoice-weights th,.credit-invoice-weights td{border:1px solid #aab9c3;padding:4px;font-size:10px}
.credit-invoice-basis{font-size:8px;color:#647580;line-height:1.4;margin:16px 0}
.credit-invoice-signatures{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-top:70px;font-size:8px;text-align:center}
.credit-invoice-signatures span{border-top:1px solid #647580;padding-top:5px}
.print-preview .duplicate-print{max-width:297mm;padding:20px;grid-template-columns:repeat(2,minmax(0,1fr));box-shadow:0 4px 18px #142a3a18}
.print-preview .duplicate-print .challan-copy{border:0;padding:0 0 0 20px}
.print-preview .duplicate-print .challan-copy:first-child{border-right:1px dashed #b8c6cf;padding:0 28px 0 0}
@media screen and (max-width:1000px){.duplicate-print{grid-template-columns:1fr}.duplicate-print>article{padding:20px 0}.duplicate-print>article:first-child{border-right:0;border-bottom:1px dashed #b8c6cf;padding:0 0 28px}}
@media print{
    @page{size:A4 landscape;margin:12mm}
    @page statement{size:A4 portrait;margin:12mm}
    @page forms{size:A4 portrait;margin:12mm}
    @page landscape{size:A4 landscape;margin:12mm}
    .window:has(.print-form-heading){page:forms}
    .transaction-window:has(.print-form-heading){page:landscape}
    .parta-statement,.worksheet-print,.closing-print,.challan-sheet{page:statement}
    html,body,#workspace,.window,.report-page,.challan-copy{font-family:"Segoe UI",Arial,sans-serif;color:#183544;background:white!important}
    .print-brand.print-only{display:flex!important}
    .print-form-heading{display:block!important}
    .print-brand{border-bottom:2pt solid #b39a58;padding-bottom:10pt;margin-bottom:14pt}
    .print-brand img{width:48pt;height:43pt}
    .print-brand h1{font-size:17pt;color:#183544;margin:0}
    .print-brand p{font-size:7pt}
    .print-form-heading h2{font-size:15pt}
    .print-form-heading p{font-size:8pt}
    .statement-heading h2,.report-heading h2{font-size:15pt!important}
    .print-document .statement-heading{padding-bottom:8pt;margin-bottom:12pt}
    .print-document th,.challan-copy th,.window:has(.print-form-heading) th{background:#edf2f5!important;color:#183544!important;border-color:#d5dfe5!important;font-weight:600;white-space:normal;print-color-adjust:exact;-webkit-print-color-adjust:exact}
    .print-document td,.challan-copy td,.window:has(.print-form-heading) td{border-color:#d5dfe5!important}
    .print-document tfoot{display:table-row-group}
    .print-document .report-total td{background:#edf2f5!important;border-top:1.5pt solid #183544!important;print-color-adjust:exact}
    .print-document .report-section h3,.valuation-section h3,.parta-section h3{border-bottom:1pt solid #b39a58;font-size:9pt}
    .table-wrap{overflow:visible!important;margin:10pt 0!important}
    .report-table-scroll{overflow:visible!important}
    .report-table-scroll th{min-width:0}
    .report-table-scroll td,.report-table-scroll th{white-space:normal;overflow-wrap:anywhere}
    .wide-report-screen{display:none!important}
    .wide-report-print{display:block!important}
    .wide-report-print .report-section{margin:12pt 0;break-inside:auto}
    .voucher-grid,.transaction-grid{min-height:0!important}
    .print-source-field{display:none!important}
    .print-value{display:block;white-space:pre-wrap;overflow-wrap:anywhere;min-height:1em;padding:2pt 0}
    .hint,.message,.document-state-actions,.stock-title-panel,.grid-footer button,.input-with-button button{display:none!important}
    .window:has(.print-form-heading) label{color:#51616b;font-size:8pt}
    .window:has(.print-form-heading) table{font-size:8pt}
    .window:has(.print-form-heading) td,.window:has(.print-form-heading) th{padding:4pt}
    .window:has(.print-form-heading) table tbody tr{background:white!important}
    .window:has(.print-form-heading) table tfoot{background:#edf2f5!important;border-top:1.5pt solid #183544;print-color-adjust:exact}
    .form-heading,.legacy-document-heading,.legacy-fields{padding:8pt 0!important}
    .worksheet-caption,.closing-print .statement-heading>div{border:0;border-left:2pt solid #b39a58;background:white}
    .print-preview .window:has(.print-form-heading),.print-preview .challan-sheet{padding:0;max-width:none;box-shadow:none}
    .challan-copy{border:0;border-bottom:1pt dashed #b8c6cf;padding:10pt 0;break-inside:avoid}
    .challan-copy:last-child{border-bottom:0}
    @page copies{size:A4 landscape;margin:9mm}
    .duplicate-print,.print-preview .duplicate-print{page:copies;max-width:none;width:100%;padding:0;box-shadow:none;gap:7mm;grid-template-columns:repeat(2,minmax(0,1fr))}
    .duplicate-print>article,.print-preview .duplicate-print .challan-copy{padding:0;border:0;break-inside:auto}
    .duplicate-print>article:first-child,.print-preview .duplicate-print .challan-copy:first-child{border:0;border-right:1pt dashed #b8c6cf;padding:0 7mm 0 0}
    .duplicate-print .print-brand{gap:8pt;margin-bottom:12pt}
    .duplicate-print .print-brand h1{font-size:14pt}.duplicate-print .print-brand img{width:34pt;height:32pt}
    .duplicate-print .challan-copy>strong{font-size:13pt}.duplicate-print .challan-copy dl{font-size:8pt;gap:4pt}
    .duplicate-print .challan-copy table th,.duplicate-print .challan-copy table td{font-size:8pt;padding:5pt}
    .duplicate-print .challan-signatures{margin-top:45pt;font-size:7pt;gap:8pt}
    .credit-invoice-brand h1{font-size:16pt}.credit-invoice-brand dl{font-size:6.5pt}.credit-invoice-brand p{font-size:7pt}
    .credit-invoice-title{margin:12pt 0 14pt}.credit-invoice-title h2{font-size:16pt}
    .credit-invoice-details{margin-bottom:16pt;gap:10pt}.credit-invoice-details dl{font-size:7.5pt;gap:3pt 5pt}
    .credit-invoice-lines th,.credit-invoice-lines td{font-size:7.5pt;padding:5pt 3pt}
    .credit-invoice-balances{font-size:8pt}.credit-invoice-words,.credit-invoice-weights th,.credit-invoice-weights td{font-size:7.5pt}
    .credit-invoice-basis{font-size:6pt}.credit-invoice-signatures{margin-top:25pt;font-size:6pt;gap:7pt}
    thead{display:table-header-group}
    tr,.print-brand,.statement-heading{break-inside:avoid}
}
