@page{size:auto;margin:12mm}
@media print{
 body{font:13px/1.4 Arial,sans-serif;background:white;color:#183247}
 #invoice-preview{padding:0;border:0;max-width:none}
 #invoice-preview>h2,body>h2{font-size:22px;line-height:1.15;margin:9px 0}
 #invoice-preview>p,body>p{margin:7px 0}
 .parties{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:10px 0}
 .parties h3{font-size:13px;margin:4px 0}.parties p{margin:4px 0}
 .invoice-table{overflow:visible;margin:12px 0}.invoice-table table{min-width:0;width:100%;table-layout:fixed;font-size:11px}
 .invoice-table th,.invoice-table td{padding:5px;overflow-wrap:anywhere;vertical-align:top}
 .invoice-table th:first-child{width:26%}.invoice-table th:nth-child(2){width:6%}
 .invoice-table th:nth-child(3){width:12%}.invoice-table th:nth-child(4){width:8%}
 .invoice-table th:nth-child(5){width:12%}.invoice-table th:nth-child(6){width:12%}
 .invoice-table th:nth-child(7){width:10%}.invoice-table th:nth-child(8){width:14%}
 thead{display:table-header-group}tr{break-inside:avoid}
 .totals{max-width:340px;margin:12px 0 10px auto;break-inside:avoid}
 .totals p{display:flex;justify-content:space-between;gap:15px;margin:3px 0;padding:4px 0;line-height:1.35}
 .totals strong{white-space:nowrap}.document-note{font-size:10px;line-height:1.3;margin:8px 0 0;break-inside:avoid}
 .example-badge{font-size:11px;padding:6px;margin:0 0 9px;background:none;border:1px solid #bbb}
 .prewrap{white-space:pre-wrap;overflow-wrap:anywhere}
}
