/* Printed invoice follows the compact cutting-sheet reference. */
.invoice-document,.invoice-document *{box-sizing:border-box;font-family:"Times New Roman",Times,serif;color:#000}
.invoice-document{width:100%;max-width:198mm;margin:0 auto;background:#fff;font-size:8pt;line-height:1.12}
.invoice-document table{border-collapse:collapse;width:100%;table-layout:fixed;margin:0 0 1.2mm;font-size:inherit}
.invoice-document td,.invoice-document th{border:.2mm solid #000;padding:.7mm 1mm;font-weight:400;font-size:inherit;vertical-align:top;overflow-wrap:anywhere}
.invoice-document .invoice-section-title{background:#c8c8c8;text-align:center;font-size:14pt;font-weight:700;letter-spacing:.2pt;padding:.5mm 1mm}
.invoice-profile-table col{width:auto}
.invoice-company-logo{background:#fff}
.invoice-field-label{font-weight:400}
.invoice-field-value{white-space:pre-wrap}
.invoice-cut-table td{padding:.6mm 1mm;font-size:7.5pt}
.invoice-cut-table td>span{float:left;max-width:72%}
.invoice-cut-table td>b{display:block;text-align:right;font-weight:400;overflow-wrap:anywhere}
.invoice-document .invoice-document-title{font-size:13pt}
.invoice-document-title>span{margin-left:6mm;font-size:11pt;font-weight:400;white-space:nowrap}
.invoice-document-title strong{font-size:13pt}
.invoice-document .invoice-grand-total{background:#a9bfd4;font-weight:700}
.invoice-grand-total>span,.invoice-grand-total>b{font-weight:700!important}
.invoice-notes{border:.2mm solid #000;padding:1mm;margin-top:-1.4mm;margin-bottom:1.2mm}
.invoice-notes p{margin:0 0 1mm;white-space:pre-wrap;overflow-wrap:anywhere}
.invoice-notes p:last-child{margin-bottom:0}
.invoice-notes p>span{display:inline-block;margin-right:2mm}
.invoice-document .invoice-items-table{font-size:7.5pt}
.invoice-items-table th,.invoice-items-table td{text-align:center;padding:.6mm .4mm}
.invoice-items-table thead th{background:#d0d0d0;font-weight:700}
.invoice-items-table .invoice-items-caption{text-align:left;font-weight:400}
.invoice-items-table td:first-child,.invoice-items-table thead tr:last-child>th:first-child{text-align:left;padding-left:1mm}
.invoice-reference-column{width:28%}
.invoice-quantity-column{width:11%}
.invoice-color-column{width:16%}
.invoice-color-items td:nth-child(2),.invoice-color-items tfoot th:first-child{text-align:left;padding-left:1mm}
.invoice-color-items .invoice-piece-grand-total th{background:#a9bfd4}
.invoice-piece-summary{break-inside:avoid}
.invoice-grade-note,.invoice-grade-warning{margin:1.2mm 0;font-size:8pt;line-height:1.2}
.invoice-grade-warning{border:.2mm solid #000;padding:1mm;font-weight:700}
.invoice-items-table tfoot th{background:#d0d0d0;font-weight:700}
.invoice-items-table tfoot{display:table-row-group}
.invoice-signature{width:105mm;margin:16mm auto 5mm;border-top:.2mm solid #000;text-align:center;padding-top:.5mm;font-size:8pt;break-inside:avoid}
.invoice-system-footer{text-align:center;font-size:8pt;border-top:.2mm solid #000;padding-top:1mm;margin-top:10mm}
.company-profile-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.company-profile-form-grid .wide{grid-column:1/-1}
.client-details-grid>.client-address-number{grid-column:auto}
@media(max-width:600px){.company-profile-form-grid{grid-template-columns:1fr 1fr}}
@page costuraInvoice{size:A4;margin:6mm 6mm 14mm;@bottom-center{content:"CosturaApp Corte";font-family:"Times New Roman",Times,serif;font-size:8pt;color:#000;vertical-align:middle}}
@media print{#print-root[data-paper="invoice"]{page:costuraInvoice;margin:0;padding:0;width:auto}body:has(#print-root[data-paper="invoice"]){margin:0;padding:0}.invoice-document{max-width:none}.invoice-profile-table,.invoice-cut-table{break-inside:avoid}.invoice-document tr{break-inside:avoid}.invoice-document thead{display:table-header-group}.invoice-system-footer{display:none}html:has(#print-root[data-paper="invoice"]),body:has(#print-root[data-paper="invoice"]){background:#fff!important}.invoice-signature{break-inside:avoid}}
