.invoice-editor{background:#f5f5f5!important;border-radius:0!important;min-height:calc(100vh - 110px)!important}.invoice-editor .modal-head{border-radius:0!important}.invoice-title{font-size:20px;font-weight:700;display:flex;align-items:center;gap:18px}.invoice-payment{display:flex;border-left:1px solid #ddd;padding-left:16px;gap:0}.invoice-payment button{border:0;padding:8px 15px;background:#eef3f8;color:#60768b;cursor:pointer}.invoice-payment button.selected{background:#2187fa;color:white}.invoice-editor .sale-form{padding:0!important}.invoice-editor .sale-fields{display:flex!important;justify-content:space-between;gap:24px;padding:30px 24px 70px;min-height:225px}.invoice-party{display:flex;gap:20px;align-items:flex-start;flex-wrap:wrap}.invoice-party>.field{width:230px}.invoice-billing>span{display:block;font-size:10px;color:#778796;margin-bottom:6px}.invoice-meta{display:grid;gap:8px;width:290px}.invoice-meta .field{display:grid;grid-template-columns:110px 1fr;align-items:center;gap:8px}.invoice-meta .field label,.invoice-meta .field>span{font-size:11px;text-align:right;color:#778796}.invoice-editor .sale-lines-head,.invoice-editor .sale-line{display:grid!important;grid-template-columns:50px minmax(220px,1fr) 100px 90px 150px 150px 40px!important;gap:0!important;padding:0!important;background:#fff}.invoice-editor .sale-lines-head>*,.invoice-editor .sale-line>*{padding:12px 9px;border:1px solid #dcdfe3;border-right:0;min-width:0;align-self:stretch}.invoice-editor .sale-lines-head{color:#335676;font-size:11px}.invoice-editor .sale-line input,.invoice-editor .sale-line select{border-radius:0;box-shadow:none!important;height:42px}.invoice-editor .sale-line .line-picker{padding:0;position:relative}.invoice-editor .line-search{border:0!important;width:100%}.invoice-editor .wholesale-hint{padding:0 9px 5px;font-size:10px}.invoice-editor .line-disc,.invoice-editor .line-tax,.invoice-editor .line-product{display:none!important}.invoice-editor .invoice-row-number,.invoice-editor .invoice-unit{font-size:12px;color:#63798a}.invoice-editor .line-amount{text-align:right;font-size:12px}.invoice-editor .line-results{z-index:20}.invoice-editor .sale-add-mobile{display:block!important;background:white;padding:7px 24px}.invoice-editor .sale-add-mobile button{background:#fff!important;color:#2187fa!important;border:1px solid #2187fa!important;border-radius:3px!important;min-height:30px!important;padding:5px 10px!important;font-size:11px!important}.invoice-editor .sale-bottom{padding:24px;display:grid;grid-template-columns:1fr 340px;gap:36px}.invoice-editor .sale-actions{position:sticky;bottom:0;background:#fff!important;padding:16px 24px!important;display:flex;justify-content:space-between;border-top:1px solid #ddd}.invoice-editor .sale-actions>div{display:flex;gap:15px}.invoice-editor .sale-actions .primary{background:#2187fa!important;border-color:#2187fa!important;min-width:120px}.invoice-options{padding:12px 24px;font-size:12px;color:#60768b}.invoice-options-fields{display:flex;gap:15px;flex-wrap:wrap;padding:12px 0}.invoice-discount{margin-bottom:16px}.invoice-discount label{display:flex;gap:9px;align-items:center;font-size:12px}.invoice-discount input{width:110px}.invoice-discount select{width:65px}.invoice-editor input,.invoice-editor select{min-height:36px;border:1px solid #ccd3db;background:#fff;padding:8px;color:#19324a;border-radius:4px}.invoice-editor .party-results{z-index:25}.invoice-editor .sale-totals>div{margin-bottom:10px}.invoice-editor .sale-note textarea{background:#fff}
@media(max-width:850px){.invoice-editor .sale-fields{flex-direction:column;padding:18px;min-height:0}.invoice-meta{width:100%;max-width:400px}.invoice-party{gap:12px}.invoice-party>.field{width:100%}.invoice-editor .sale-lines-head,.invoice-editor .sale-line{grid-template-columns:30px minmax(130px,1fr) 60px 50px 80px 90px 32px!important;min-width:580px}.invoice-editor #sale-lines,.invoice-editor .sale-lines-head{overflow:visible}.invoice-editor .sale-form{overflow-x:auto}.invoice-editor .sale-bottom{grid-template-columns:1fr;padding:18px;gap:18px}.invoice-editor .sale-actions{min-width:300px}.invoice-title{font-size:17px}.invoice-editor .line-search{font-size:12px}}
/* Sale entry takes the entire viewport; closing it restores normal navigation. */
body:has(.invoice-editor) .sidebar,body:has(.invoice-editor) .topbar{display:none!important}
body:has(.invoice-editor){overflow:hidden}
.sale-page:has(.invoice-editor){position:fixed!important;inset:0!important;z-index:1000!important;overflow:auto!important;background:#f5f5f5!important;min-height:100vh!important}
.sale-page .invoice-editor{height:auto!important;min-height:100vh!important;border-radius:0!important;box-shadow:none!important}
.invoice-editor .sale-form{min-height:calc(100vh - 65px);display:flex;flex-direction:column}
.invoice-editor .sale-actions{margin-top:auto;z-index:30}
.invoice-editor button{height:38px!important;min-height:38px!important;border:1px solid #2187fa!important;border-radius:6px!important;background:#2187fa!important;color:#fff!important;padding:8px 16px!important;font:600 13px Arial,sans-serif!important;box-shadow:none!important;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.invoice-editor button:hover{background:#146cd0!important;border-color:#146cd0!important}
.invoice-editor button:focus-visible{outline:2px solid #19324a;outline-offset:3px}
.invoice-editor .sale-actions button,.invoice-editor .sale-add-mobile button,.invoice-editor .invoice-payment button{min-width:100px!important}
.invoice-editor .invoice-payment{gap:8px}
.invoice-editor .sale-add-mobile button{background:#2187fa!important;color:#fff!important;border-radius:6px!important;padding:8px 16px!important;font-size:13px!important}
.invoice-editor .invoice-payment button.selected{outline:2px solid #19324a;outline-offset:2px}
.invoice-editor .close,.invoice-editor .sale-line button{width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important;padding:0!important;align-self:center;justify-self:center}
