.sales-a4{box-sizing:border-box;width:100%;max-width:210mm;min-height:270mm;margin:0 auto;padding:14mm;background:#fff;color:#243247;font:12px/1.5 Arial,sans-serif;box-shadow:0 3px 18px #23324712}.sales-a4 *{box-sizing:border-box}.sales-a4 h1{font-size:22px;margin:0 0 6px}.sales-a4 h2{font-size:16px;margin:0 0 8px}.sales-a4 h3{font-size:12px;margin:0 0 8px}.sales-a4 p{margin:3px 0;white-space:pre-line;overflow-wrap:anywhere}.invoice-head{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding-bottom:20px;border-bottom:2px solid #315f9f}.invoice-number{text-align:right;overflow-wrap:anywhere}.invoice-parties{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding:22px 0}.invoice-parties span,.invoice-items small{display:block;color:#697586;font-size:10px}.invoice-parties strong{display:block;font-size:13px}.invoice-parties dl{display:grid;grid-template-columns:90px 1fr;gap:4px 12px;margin:0}.sales-a4 dd{margin:0;text-align:right}.invoice-items{width:100%;border-collapse:collapse!important;table-layout:fixed;font-size:10px!important}.invoice-items th,.invoice-items td{padding:9px 5px!important;border:0!important;border-bottom:1px solid #e2e7ef!important;text-align:right!important;white-space:normal!important;overflow-wrap:anywhere}.invoice-items th{background:#f1f4f8!important;color:#344054!important;font-size:9px!important;letter-spacing:0!important}.invoice-items th:first-child{width:6%}.invoice-items th:nth-child(2){width:28%;text-align:left!important}.invoice-items td:nth-child(2){text-align:left!important}.invoice-items th:nth-child(3){width:9%}.invoice-bottom{display:grid;grid-template-columns:1fr 1fr;gap:30px;padding-top:22px}.invoice-totals{margin:0}.invoice-totals>div{display:flex;justify-content:space-between;gap:15px;padding:5px 0}.invoice-totals>div:nth-child(4),.invoice-totals>div:last-child{border-top:1px solid #ccd6e3;font-weight:bold}.invoice-totals dt{font-size:10px}.invoice-totals dd{white-space:nowrap;font-weight:600}.invoice-thanks{padding-top:18px;color:#697586}.invoice-signatures{display:flex;justify-content:space-between;text-align:center;margin:45px 20px 0}.invoice-signatures span{display:block;margin-top:45px}.sales-internal{max-width:210mm;margin:24px auto 0}.sales-internal>summary{cursor:pointer;padding:14px;font-weight:600}.sales-internal>div{padding:12px}.invoice-print{margin:0;background:#edf0f4}.print-toolbar{display:block;margin:14px auto;padding:10px 20px}#salesDetailDialog>.dialog-head{gap:16px}#salesDetailDialog>.dialog-head>div{flex:1}#salesDetailDialog>.dialog-head>.primary-button{flex:none;white-space:nowrap;order:1}#salesDetailDialog>.dialog-head>button[aria-label]{order:2}#salesDetailDialog .purchase-detail-body{overflow-x:auto}@page{size:A4 portrait;margin:12mm}@media print{html,body.invoice-print{background:white;margin:0}.print-toolbar{display:none}.sales-a4{max-width:none;width:100%;min-height:0;padding:0;box-shadow:none}.invoice-items thead{display:table-header-group}.invoice-items tr,.invoice-bottom,.invoice-signatures{break-inside:avoid}.sales-a4{-webkit-print-color-adjust:exact;print-color-adjust:exact}}@media screen and (max-width:700px){#salesDetailDialog .sales-a4{min-width:660px;padding:24px}#salesDetailDialog>.dialog-head{flex-wrap:wrap}#salesDetailDialog>.dialog-head>.primary-button{min-height:38px;padding:8px 14px}}

#salesDetailDialog .dialog-head>.invoice-print-button{display:inline-flex;align-items:center;justify-content:center;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;padding:0!important;border-radius:10px;font-size:14px!important;flex:none}#salesDetailDialog .invoice-print-button svg{width:20px;height:20px;flex:none}
.sales-a4 .invoice-items{min-width:0!important;max-width:100%!important;width:100%!important;table-layout:fixed!important}.sales-a4 .invoice-items th,.sales-a4 .invoice-items td{min-width:0!important;max-width:none!important}.sales-a4 .invoice-items th:nth-child(n+4){width:14.25%}.sales-a4 .invoice-items td{font-size:10px!important}.sales-a4 .invoice-items strong{font-size:10px!important}

.invoice-points{margin-top:22px;padding:12px 0;border-block:1px solid #e0e5ed;font-size:11px;break-inside:avoid}.invoice-points h3{margin:0 0 4px}
