.erp-print-preview-dialog{gap:0;width:100%;max-width:min(920px,100vw - 2rem);padding:0;overflow:hidden}.erp-print-preview-toolbar{border-bottom:1px solid color-mix(in oklab, var(--foreground) 10%, transparent);background:color-mix(in oklab, var(--muted) 35%, transparent);flex-wrap:wrap;align-items:end;gap:.75rem 1rem;padding:1rem 1rem .75rem;display:flex}.erp-print-preview-field{gap:.35rem;min-width:9rem;display:grid}.erp-print-preview-field--toggles{border:1px solid color-mix(in oklab, var(--foreground) 12%, transparent);background:color-mix(in oklab, var(--background) 80%, transparent);border-radius:.5rem;flex:100%;min-width:14rem;padding:.65rem .75rem}.erp-print-preview-toggles-label{color:var(--foreground);font-size:.75rem;font-weight:600}.erp-print-preview-toggles-row{flex-wrap:wrap;gap:.75rem 1.25rem;margin-top:.35rem;display:flex}.erp-print-preview-field label{color:var(--muted-foreground);font-size:.75rem}.erp-print-preview-actions{gap:.5rem;margin-inline-start:auto;display:flex}.erp-print-preview-body{background:color-mix(in oklab, var(--muted) 20%, transparent);max-height:min(72vh,820px);padding:1rem;position:relative;overflow:auto}.erp-print-preview-canvas{position:relative}.erp-print-preview-refresh{inset-inline-end:1rem;z-index:2;color:var(--muted-foreground);background:color-mix(in oklab, var(--background) 92%, transparent);border:1px solid color-mix(in oklab, var(--foreground) 10%, transparent);border-radius:9999px;align-items:center;gap:.4rem;padding:.35rem .65rem;font-size:.75rem;display:inline-flex;position:absolute;top:1rem;box-shadow:0 4px 16px #00000014;box-shadow:0 4px 16px lab(0% 0 0/.08)}.erp-print-preview-canvas:has(.erp-print-preview-refresh) .erp-print-page{opacity:.72;transition:opacity .12s}.erp-print-page{box-sizing:border-box;color:#111;background:#fff;flex-shrink:0;width:210mm;min-height:297mm;margin:0 auto;padding:14mm 12mm;position:relative;box-shadow:0 8px 28px #0000001f;box-shadow:0 8px 28px lab(0% 0 0/.12)}.erp-print-page--a4{width:210mm;min-height:297mm}.erp-print-page--a5{width:148mm;min-height:210mm;padding:10mm 8mm}.erp-print-page--letter{width:216mm;min-height:279mm;padding:12mm}.erp-print-page--dl{width:220mm;min-height:110mm;padding:6mm 8mm}.erp-print-page--c5{width:229mm;min-height:162mm;padding:8mm}.erp-print-page--c4{width:229mm;min-height:324mm;padding:10mm}.erp-print-page--custom{width:var(--erp-print-page-w,210mm);min-height:var(--erp-print-page-h,297mm)}.erp-print-page--thermal80{width:80mm;min-height:200mm;padding:3mm;font-size:13px}.erp-print-page--thermal58{width:58mm;min-height:200mm;padding:2mm;font-size:12px}.erp-print-page--compact{padding:10mm}.erp-print-page--compact .erp-print-header{margin-bottom:.75rem;padding-bottom:.5rem}.erp-print-page--compact .erp-print-title{font-size:1.05rem}.erp-print-page--prep{min-height:auto}.erp-print-page--break-after{margin-bottom:1rem}.erp-print-table--prep .erp-print-check-col,.erp-print-table .erp-print-check-col{text-align:center;vertical-align:middle;width:2rem}.erp-print-check-col-label{font-size:.75rem}.erp-print-check-box{vertical-align:middle;border:2px solid #111;border-radius:2px;width:1rem;height:1rem;display:inline-block}.erp-print-write-col{text-align:center;vertical-align:middle;width:3.4rem;min-width:3rem}.erp-print-write-box{vertical-align:middle;border:1.5px solid #111;border-radius:2px;width:2.6rem;min-height:1.25rem;display:inline-block}.erp-print-shape{align-items:center;gap:.4rem;margin:.35rem 0;display:flex}.erp-print-shape-label{font-size:.85rem}.erp-print-shape-box{border:2px solid #111;width:12mm;height:12mm;display:inline-block}.erp-print-shape-line{border-bottom:1px solid #111;flex:1;min-width:40mm;height:1.1em;display:inline-block}.erp-print-prep-hint{color:#444;margin-top:1rem;font-size:.8rem}.erp-print-header{border-bottom:2px solid #111;justify-content:space-between;align-items:start;gap:1rem;margin-bottom:1rem;padding-bottom:.75rem;display:flex}.erp-print-header-brand{flex:auto;align-items:flex-start;gap:1rem;min-width:0;display:flex}.erp-print-header-brand.is-blank{visibility:hidden}.erp-print-header-identity{min-width:0}.erp-print-logo{max-width:calc(var(--erp-print-logo-max-h,72px) * 2.2);max-height:var(--erp-print-logo-max-h,72px);object-fit:contain;flex-shrink:0}.erp-print-company-name{font-family:var(--font-alexandria), var(--font-tajawal), sans-serif;font-size:var(--erp-print-name-size,1.15rem);font-weight:700;line-height:1.3}.erp-print-company-meta{color:#444;margin-top:.25rem;font-size:.75rem}.erp-print-header-end{flex-shrink:0;align-items:flex-start;gap:.65rem;display:flex}.erp-print-doc-meta{text-align:end;font-size:.8rem}.erp-print-archive-qr{object-fit:contain;width:72px;height:72px;image-rendering:pixelated;border:0;flex-shrink:0}.erp-print-copy-kind{letter-spacing:.02em;text-transform:uppercase;margin-top:.35rem;font-size:.95rem;font-weight:700}.erp-print-title{font-family:var(--font-alexandria), var(--font-tajawal), sans-serif;margin:0 0 .75rem;font-size:1.25rem;font-weight:700}.erp-print-meta-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.35rem 1rem;margin-bottom:1rem;font-size:.82rem;display:grid}.erp-print-meta-grid span{color:#555}.erp-print-meta-grid strong{color:#111;font-weight:600}.erp-print-section-title{margin:.85rem 0 .35rem;font-size:.82rem;font-weight:700}.erp-print-lines-heading{justify-content:space-between;align-items:baseline;gap:.75rem;display:flex}.erp-print-lines-heading .erp-print-section-title{margin-block:.85rem .35rem}.erp-print-party-last4{text-align:end;color:#111;margin:.85rem 0 .35rem;font-size:1.35rem;font-weight:800;line-height:1.1}.erp-print-party-block{gap:.15rem;font-size:.82rem;display:grid}.erp-print-party-address{margin-top:.2rem;font-size:.8rem}.erp-print-lines-heading .erp-print-party-last4{text-align:inherit}.erp-print-item-notes{color:#777;margin-top:.12rem;font-size:.68rem;font-weight:400;line-height:1.25;display:block}.erp-print-envelope-window{border:1.5px solid #111;border-radius:2px;min-height:28mm;margin-top:6mm;padding:5mm 6mm}.erp-print-envelope-window-name{margin-bottom:.35rem;font-size:1.05rem;font-weight:700}.erp-print-envelope-window-row{margin-top:.25rem;font-size:.85rem}.erp-print-table{border-collapse:collapse;width:100%;font-size:.78rem}.erp-print-table-stage{position:relative}.erp-print-unposted-watermark{z-index:30;pointer-events:none;color:#991b1b52;letter-spacing:.14em;-webkit-user-select:none;user-select:none;white-space:nowrap;-webkit-print-color-adjust:exact;print-color-adjust:exact;font-size:clamp(2.8rem,9vw,4.8rem);font-weight:800;line-height:1;position:absolute;top:52%;left:50%;transform:translate(-50%,-50%)rotate(-26deg)}.erp-print-page>.erp-print-unposted-watermark{inset:52% auto auto 50%}.erp-print-table th,.erp-print-table td{vertical-align:top;border:1px solid #ccc;padding:.35rem .45rem}.erp-print-table th{background:#f3f3f3;font-weight:700}.erp-print-table .erp-print-num{text-align:end;font-variant-numeric:tabular-nums}.erp-print-row-child>td{vertical-align:top;background:0 0;border-top:none;border-bottom-color:#ddd;padding:.05rem .35rem .4rem}.erp-print-table tr:has(+.erp-print-row-child)>td{border-bottom:none;padding-bottom:.15rem}.erp-print-statement-child{margin:0;padding:0}.erp-print-statement-child-stack{gap:.35rem;display:grid}.erp-print-statement-child-empty{color:#666;margin:0;font-size:.7rem}.erp-print-statement-child-lines{color:#333;gap:.08rem;padding-block:.1rem;font-size:.72rem;display:grid}.erp-print-statement-child-line{color:#333;font-size:.72rem;line-height:1.4}.erp-print-child-table{border-collapse:collapse;width:100%;max-width:32rem;margin-block:.1rem .15rem;font-size:.68rem}.erp-print-child-table th,.erp-print-child-table td{vertical-align:top;border:1px solid #cfcfcf;padding:.14rem .3rem}.erp-print-child-table th{background:#e8e8e8;font-weight:650}.erp-print-child-table .erp-print-num{text-align:end;font-variant-numeric:tabular-nums;white-space:nowrap}.erp-print-child-footer td{background:#f4f4f4;border-top:1px solid #cfcfcf;font-weight:600}.erp-print-table .erp-print-row-section td{background:#ececec;font-weight:700}.erp-print-table .erp-print-row-total td{background:#f5f5f5;font-weight:650}.erp-print-table .erp-print-row-net td{background:#e8f6ef;font-weight:700}.erp-print-money{white-space:nowrap;align-items:baseline;gap:.22em;display:inline-flex}.erp-print-ccy{letter-spacing:.01em;color:currentColor;vertical-align:baseline;font-size:1.55em;font-weight:800;line-height:.9;display:inline-block}.erp-print-line-cards{flex-direction:column;gap:0;display:flex}.erp-print-line-card{break-inside:avoid;page-break-inside:avoid;border-bottom:1px solid #d4d4d4;grid-template-columns:32mm minmax(0,1fr) 46mm;align-items:center;gap:.55rem .75rem;padding:.55rem .15rem;display:grid}.erp-print-line-card-photo{background:#f4f4f4;width:32mm;height:32mm;overflow:hidden}.erp-print-line-card-photo img,.erp-print-line-card-photo-empty{object-fit:contain;width:100%;height:100%;display:block}.erp-print-line-card-photo-empty{background:radial-gradient(circle at 70% 30%,#eee 0 18%,#0000 19%),linear-gradient(#f7f7f7,#ececec)}.erp-print-line-card-name{margin-bottom:.35rem;font-size:.95rem;font-weight:700;line-height:1.25}.erp-print-line-card-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:.12rem .75rem;font-size:.75rem;display:grid}.erp-print-line-card-facts span{color:#555}.erp-print-line-card-code{min-width:0}.erp-print-item-barcode{flex-direction:column;align-items:stretch;gap:.15rem;display:flex}.erp-print-item-barcode-svg{width:100%;height:11mm;display:block}.erp-print-item-barcode-text{text-align:center;letter-spacing:.04em;font-family:ui-monospace,Consolas,monospace;font-size:.68rem}.erp-print-totals{justify-content:flex-end;margin-top:.75rem;display:flex}.erp-print-totals table{border-collapse:collapse;min-width:14rem;font-size:.82rem}.erp-print-totals td{padding:.2rem .45rem}.erp-print-totals td:last-child{text-align:end;font-variant-numeric:tabular-nums;font-weight:600}.erp-print-memo{white-space:pre-wrap;border:1px dashed #bbb;margin-top:.85rem;padding:.55rem .65rem;font-size:.8rem}.erp-print-meta-row{display:contents}.erp-print-page--cheque .erp-print-meta-grid{margin-bottom:.75rem}.erp-print-cheque-images{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin-bottom:.75rem;display:grid}.erp-print-cheque-image{break-inside:avoid;page-break-inside:avoid;margin:0}.erp-print-cheque-image figcaption{color:#444;margin-bottom:.35rem;font-size:.75rem;font-weight:700}.erp-print-cheque-image-preview{object-fit:contain;background:#fafafa;border:1px solid #ccc;width:100%;max-height:95mm;display:block}.erp-print-totals td:last-child{font-weight:700}.erp-print-totals--inline{margin-bottom:1rem}.erp-print-report-footnote{color:#666;margin-top:1rem;font-size:.7rem}@media print{@page{size:A4;margin:10mm}html,body{--erp-ui-zoom:1;zoom:1!important;background:#fff!important;height:auto!important;overflow:visible!important}body.erp-printing>:not(#erp-print-root){display:none!important}#erp-print-root{visibility:visible!important;color:#111!important;background:#fff!important;width:100%!important;margin:0!important;padding:0!important;display:block!important;position:static!important}#erp-print-root .erp-print-page{-webkit-print-color-adjust:exact;print-color-adjust:exact;width:100%!important;min-height:auto!important;box-shadow:none!important;color:#111!important;background:#fff!important;margin:0!important;padding:14mm 12mm!important;position:static!important}#erp-print-root .erp-print-page--compact{padding:10mm!important}#erp-print-root .erp-print-page--break-after{break-after:page;page-break-after:always}#erp-print-root .erp-print-table{page-break-inside:auto;border-collapse:collapse!important;width:100%!important}#erp-print-root .erp-print-table thead{display:table-header-group}#erp-print-root .erp-print-table tbody{display:table-row-group}#erp-print-root .erp-print-table tr{page-break-inside:avoid}#erp-print-root .erp-print-table th,#erp-print-root .erp-print-table td{border:1px solid #ccc!important}#erp-print-root .erp-print-table th{background:#f3f3f3!important}#erp-print-root .erp-print-cheque-images{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.75rem!important;display:grid!important}#erp-print-root .erp-print-cheque-image{break-inside:avoid!important;page-break-inside:avoid!important}#erp-print-root .erp-print-cheque-image-preview{border:1px solid #ccc!important;max-height:95mm!important}}
