/* Barcode SVGs must retain their intrinsic width instead of inheriting the app icon size. */
.document-barcode svg,.garment-label svg{width:auto}
/* Fiscal PDF retains QR at a fixed printable size. */

.document-toolbar select{padding:9px;border:1px solid #cbd2df;border-radius:6px;max-width:160px}.document-barcode{text-align:center;margin:8px 0}.document-barcode svg{display:block;max-width:100%;height:48px;margin:auto}.document-barcode small{display:block;font-family:monospace}.garment-label{display:inline-block;vertical-align:top;border:1px dashed #b2b8c2;padding:4px;margin:2px;text-align:center;font-size:9px;line-height:1.2;overflow:hidden}.garment-label svg{display:block;max-width:100%;height:24px;margin:3px auto}.garment-label strong,.garment-label small{display:block}.label-top{display:flex;justify-content:space-between;gap:3px;white-space:nowrap;overflow:hidden}.label-top b{overflow:hidden;text-overflow:ellipsis}.label-customer,.label-item{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.label-tag{font-family:monospace;font-size:10px}.report-label .label-sheet{padding:5px;margin:12px auto}.report-label .document-body{height:100%;line-height:1}.report-label .garment-label{border:0;margin:0;padding:0}
.report-landscape .document-sheet{width:1122px;height:794px}.report-landscape .document-body{height:540px}
.report-thermal .document-sheet{height:1122px;padding:12px 9px;font-size:12px;line-height:1.6}.report-80 .document-sheet{width:80mm}.report-58 .document-sheet{width:58mm}
.report-thermal .document-sheet header{margin-bottom:10px;padding-bottom:8px}.report-thermal .document-sheet h1{font-size:17px}.report-thermal .document-sheet h2{font-size:13px}.report-thermal .document-sheet .business{font-size:14px}.report-thermal .document-sheet .meta{font-size:10px}.report-thermal .document-body p{font-size:12px;margin:5px 0}.report-thermal .document-sheet footer{left:9px;right:9px;bottom:12px;font-size:8px;gap:5px}.report-thermal .document-sheet th,.report-thermal .document-sheet td{padding:5px 3px;font-size:10px}.report-thermal .report-summary{padding:6px}.report-thermal .thermal-record{border-top:1px dashed #8793aa;padding-top:7px}.report-thermal .fiscal-qr{height:170px}.report-thermal .fiscal-qr img{width:145px;height:145px}
#pdf-preview{max-width:1300px;margin:14px auto;padding:10px}#pdf-frame{width:100%;height:80vh;border:1px solid #cbd2df;background:white}.preview-mode #document-pages{position:absolute;left:-20000px;top:0}
@media print{.report-landscape .document-sheet{width:297mm;height:210mm}.report-thermal .document-sheet{padding:12px 9px}.report-80 .document-sheet{width:80mm}.report-58 .document-sheet{width:58mm}.preview-mode #document-pages{position:static;left:auto;top:auto}}
.fiscal-qr{margin:12px 0;text-align:center;height:208px;break-inside:avoid}.fiscal-qr img{width:180px;height:180px;image-rendering:pixelated}.fiscal-qr figcaption{font-size:10px}.fiscal-hash{overflow-wrap:anywhere;font-family:monospace}
@font-face{font-family:Cairo;src:url('/assets/fonts/Cairo.ttf')}*{box-sizing:border-box}.document-page{background:#e9eeeb;font-family:Cairo,Arial,sans-serif}.document-toolbar{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;background:white;padding:14px;position:sticky;top:0;z-index:5;border-bottom:1px solid #cbd9d0}.document-toolbar input{width:180px;padding:10px;border:1px solid #cbd9d0;border-radius:7px}.document-toolbar label{font-size:12px}.document-notice{max-width:900px;margin:14px auto;padding:10px 16px;background:#f5f8f6;border:1px solid #d4e1d9;line-height:1.8;color:#547064;font-size:13px}.document-sheet{width:794px;height:1122px;margin:18px auto;background:white;padding:42px 44px;position:relative;color:#152c24;font-size:13px;line-height:1.9}.document-sheet header{border-bottom:2px solid #087469;padding-bottom:12px;margin-bottom:17px}.document-sheet h1{font-size:23px;line-height:1.6;margin:7px 0}.document-sheet h2{font-size:17px;margin:10px 0 7px}.document-sheet .business{font-size:16px;font-weight:700;color:#087469}.document-sheet .meta{font-size:11px;color:#66796e}.document-body{height:865px;overflow:visible}.document-body p{white-space:pre-line;overflow-wrap:anywhere;margin:7px 0;font-size:13px}.document-sheet table{border-collapse:collapse;width:100%;table-layout:fixed;margin:10px 0 14px;font-size:11px}.document-sheet th{background:#edf4ef;color:#0e574a;border-bottom:2px solid #acd1bd;padding:8px;text-align:right;overflow-wrap:anywhere}.document-sheet td{border-bottom:1px solid #dbe4dd;padding:7px;vertical-align:top;overflow-wrap:anywhere;white-space:pre-line}.document-sheet tr:nth-child(even)td{background:#f7faf8}.document-sheet footer{position:absolute;bottom:27px;right:44px;left:44px;display:flex;justify-content:space-between;border-top:1px solid #d5e2d9;padding-top:9px;font-size:10px;color:#6a7e71}.draft-banner{background:#fff1d4;border:1px solid #eccb83;padding:8px;margin:8px 0;color:#714900;font-weight:700}.document-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin:0 0 15px}.dialog .document-actions{padding:0 22px;margin:0}.whatsapp{background:#126f45;color:white}.document-sheet .report-summary{padding:10px;background:#eef6f0;border-right:3px solid #36816b}@media(max-width:820px){#document-pages{overflow-x:auto;max-width:100vw}.document-sheet{margin:12px}.document-toolbar{position:static}.document-notice{margin:10px}}@media print{@page{size:A4;margin:0}.no-print{display:none!important}.document-page{background:white}#document-pages{overflow:visible}.document-sheet{width:210mm;height:297mm;margin:0;break-after:page;padding:11mm 11.6mm}.document-sheet:last-child{break-after:auto}.document-body{height:229mm}table{break-inside:auto}tr{break-inside:avoid}}

@media print{.report-label .label-sheet{margin:0;height:var(--label-print-height)!important;break-inside:avoid}.report-label .label-sheet .document-body{height:100%!important}}

.barcode-image{display:block;max-width:100%;margin:3px auto;object-fit:contain}.document-barcode .barcode-image{margin:6px auto}

.business-logo{display:block;max-width:28mm;height:12mm;object-fit:contain;margin:0 auto 2mm}.garment-label .business-logo{max-width:10mm;height:4mm;margin:0}

.structured-report{color:#241c23;font-variant-numeric:tabular-nums}.structured-report header{border-color:#78354b;display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 14px}.structured-report header .business{color:#713349}.structured-report header h1,.structured-report header .meta{grid-column:1/-1}.structured-report header .business-logo{grid-column:2;grid-row:1/3;margin:0}.structured-report .report-summary{border-inline-start:3px solid #87425a;background:#f6f1f3;color:#2b2127;margin:4px 0;padding:5px 10px;font-weight:650}.structured-report th{background:#f1e9ed;color:#39252e;border-bottom:2px solid #8a586a}.structured-report td{border-color:#e0d9dd}.structured-report tr:nth-child(even) td{background:#faf8f9}.structured-report footer{color:#504751}.structured-report h2{color:#68334a}.report-thermal .structured-report header{display:block}.report-thermal .structured-report td,.report-thermal .structured-report th{color:black}.report-thermal .structured-report .thermal-record{border-color:#383238}

.label-top .label-business,.label-tag{font-weight:750}.garment-label .label-phone,.garment-label .label-tag{direction:ltr;unicode-bidi:isolate}
.report-thermal .document-sheet:not(.receipt-sheet)>header{border-bottom:1.5px solid #30272c;padding-bottom:6px;margin-bottom:8px;text-align:center}
.report-thermal .document-sheet .report-summary{margin:3px 0;padding:4px 5px;border-inline-start:2px solid #7b6870;background:#f5f3f3;color:#231d20;line-height:1.4}
.report-thermal .document-sheet table{border-collapse:collapse;width:100%;table-layout:fixed;font-variant-numeric:tabular-nums}
.report-thermal .document-sheet table th{font-weight:bold;color:#21181d;background:#eee9ec;line-height:1.35;border:0;border-bottom:1px solid #5e5359}
.report-thermal .document-sheet table td{border:0;border-bottom:1px dotted #b9afb4;color:#211b1d;vertical-align:top;line-height:1.52}
.report-thermal .document-sheet table :is(td,th){padding:3px 2px;white-space:normal;overflow-wrap:anywhere}
.report-thermal .document-sheet .roll-items :first-child:is(th,td){width:35%;text-align:start}
.report-thermal .document-sheet .roll-items :nth-child(2):is(th,td){width:15%;text-align:center}
.report-thermal .document-sheet .roll-items :last-child:is(th,td){font-weight:700}
.report-58 .document-sheet .roll-items :first-child:is(th,td){width:30%}
.report-58 .document-sheet .roll-items :nth-child(2):is(th,td){width:21%}
.report-58 .document-sheet .roll-items th{padding-inline:1px;font-size:9px;overflow-wrap:normal}

.roll-entry{break-inside:avoid;border-bottom:1px dashed #9c9099;margin:0 0 6px;padding:3px 0 5px;overflow-wrap:anywhere}
.report-thermal .document-sheet .roll-entry-head{display:grid;grid-template-columns:1fr auto;gap:0 4px;align-items:start;padding:3px 4px;background:#f1edef;margin:0 0 3px;border:0;text-align:start}
.roll-entry-head>span{font-size:9px;color:#4a4146}.roll-entry-head strong{grid-column:1;line-height:1.45}.roll-entry-head small{grid-column:2;grid-row:1/span 2;align-self:center}
.roll-entry dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 5px;margin:0}.roll-entry dl>div{min-width:0}.roll-entry .roll-wide{grid-column:1/-1}
.roll-entry dt{font-size:9px;color:#50484c;line-height:1.4}.roll-entry dd{margin:0;font-weight:650;color:#211b20;line-height:1.45;font-variant-numeric:tabular-nums}
.report-58 .roll-entry dl{gap:2px 3px}.report-thermal footer{font-variant-numeric:tabular-nums}
