/* Invoice Studio A4 print update */
.a4-sheet{width:210mm;min-height:297mm;margin:24px auto;background:#fff;padding:17mm 16mm;box-shadow:0 5px 28px #17243a17;color:#1d2939;font-size:11px;line-height:1.5;box-sizing:border-box}.a4-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.issuer{display:flex;gap:14px;align-items:flex-start;max-width:60%}.company-logo{max-width:115px;max-height:75px;object-fit:contain}.issuer-name{font-size:19px;font-weight:800;color:#164e44}.issuer-details{font-size:10px;color:#667386;margin-top:5px}.doc-heading{text-align:right}.doc-heading h1{font-size:27px;letter-spacing:1px;color:#164e44;margin:0 0 8px}.doc-heading strong{font-size:12px}.doc-status{display:inline-block;margin-top:10px;padding:4px 10px;border-radius:5px;background:#e9f4f0;color:#176d5d;font-weight:700;font-size:9px}.a4-rule{border-top:2px solid #176d5d;margin:23px 0}.a4-parties{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:26px}.a4-parties strong{font-size:13px}.eyebrow{font-size:9px;font-weight:800;color:#6b7788;letter-spacing:1px;margin-bottom:8px}.detail-text{color:#667386;margin-top:7px}.doc-meta{max-width:230px;margin-left:auto;width:100%}.doc-meta>div{display:flex;justify-content:space-between;gap:10px;margin-bottom:9px}.doc-meta span{color:#667386}.doc-meta strong{font-size:11px}.a4-items{width:100%;min-width:0;border-collapse:collapse;table-layout:fixed}.a4-items th{background:#edf5f2;color:#174c44;font-size:10px;font-weight:800;text-align:left;padding:10px 7px}.a4-items td{font-size:10px;padding:12px 7px;vertical-align:top;border-bottom:1px solid #e6ebef;overflow-wrap:anywhere}.a4-items .num{text-align:right;white-space:nowrap}.a4-items tr{break-inside:avoid;page-break-inside:avoid}.a4-bottom{display:grid;grid-template-columns:1fr 1.1fr;gap:25px;margin-top:24px;break-inside:avoid}.payment-note{font-size:10px;color:#667386}.payment-note p{margin:0 0 10px}.payment-note strong{color:#263648}.a4-totals>div{display:flex;justify-content:space-between;gap:10px;padding:6px 0}.a4-totals .total-row{border-top:2px solid #176d5d;margin-top:9px;padding-top:12px;font-size:15px;color:#164e44}.a4-foot{margin-top:48px;padding-top:12px;border-top:1px solid #e6ebef;color:#8792a0;font-size:10px}@media(max-width:850px){.a4-sheet{width:100%;min-height:0;padding:24px 16px}.a4-header{flex-wrap:wrap}.issuer{max-width:100%}.a4-items{font-size:10px}.a4-items td,.a4-items th{padding:6px 3px}.a4-bottom{grid-template-columns:1fr}.a4-parties{grid-template-columns:1fr}}@page{size:A4 portrait;margin:0}@media print{html,body{background:#fff!important;margin:0!important;padding:0!important}body>header,body>footer,main>footer,.no-print{display:none!important}main{max-width:none!important;margin:0!important;padding:0!important}.a4-sheet{width:210mm!important;min-height:297mm!important;margin:0!important;padding:17mm 16mm!important;box-shadow:none!important;border:0!important;break-after:auto;print-color-adjust:exact;-webkit-print-color-adjust:exact}.a4-items thead{display:table-header-group}.a4-items tr{break-inside:avoid}.a4-bottom{break-inside:avoid}}

.item-with-photo{display:flex;align-items:center;gap:9px}.item-photo{width:50px;height:50px;object-fit:contain;flex-shrink:0;border:1px solid #e6ebef;border-radius:4px}.item-with-photo span{overflow-wrap:anywhere}@media print{.item-photo{print-color-adjust:exact;-webkit-print-color-adjust:exact}}
