.invoice-totals{border:1px solid #dce5d8;background:#f5f8ee;border-radius:12px;padding:12px 20px;margin:22px 0}.invoice-totals>div{display:flex;justify-content:space-between;gap:14px;padding:8px 0}.invoice-grand{border-top:1px solid #cedac7;font-size:18px;margin-top:8px}.receipt-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:22px 0}.receipt-item{border:1px solid #dce5d8;border-radius:12px;padding:18px;min-width:0}.receipt-item-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.receipt-item-head strong{color:#5a705e;font-size:12px}.receipt-item .field{margin:0 0 12px}.receipt-item .field input,.receipt-item .field select{width:100%;min-width:0;box-sizing:border-box}.receipt-item .field small{overflow-wrap:anywhere;font-size:11px;color:#728475}.receipt-item-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.needs-entry{border:2px solid #ba843e!important;background:#fff9eb}.receipt-check{display:flex;align-items:flex-start;gap:12px;padding:18px 0;font-size:15px;line-height:1.6}.receipt-check input{width:23px;height:23px;flex:0 0 23px}.invoice-savebar{display:flex;justify-content:space-between;gap:12px;padding:18px 0 4px}.finance-filters{display:flex;align-items:flex-end;gap:15px;margin:20px 0}.finance-filters .field{flex:1;margin:0}.finance-actions{margin:20px 0;flex-wrap:wrap}.finance-row{display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap}.finance-row>div{flex:1;min-width:150px}.finance-row small{display:block;color:#768273;margin:7px 0}.finance-import-preview{max-height:45vh;overflow:auto}.photo-options{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:12px 0}.photo-options small{display:block;font-size:12px;line-height:1.6;text-align:left;color:#6e7c6d}.camera-dialog{padding:0;width:min(600px,calc(100vw - 20px));max-height:95dvh;overflow:auto;border:0;border-radius:16px}.camera-instructions,.camera-status{padding:12px 18px;margin:0;font-size:14px;line-height:1.6}.camera-view{position:relative;height:min(58dvh,580px);background:#17231e;overflow:hidden}.camera-view video,.camera-preview{width:100%;height:100%;object-fit:contain}.camera-frame{position:absolute;inset:8% 15%;border:3px solid #e3efb9;border-radius:10px;box-shadow:0 0 0 200px #0005;pointer-events:none}.camera-view [hidden]{display:none}.camera-dialog .modal-footer{padding:15px}.sidebar{overflow-y:auto}.invoice-review #receiptErrors{font-size:14px;line-height:1.6}.invoice-review #receiptErrors p{margin:8px 0}.invoice-review details textarea{display:block;width:100%;box-sizing:border-box;margin:12px 0;padding:12px;font:inherit}.finance-import-preview .row{padding:12px}
@media(max-width:650px){.receipt-products{grid-template-columns:1fr;gap:14px}.receipt-item{padding:14px}.receipt-item-grid{gap:12px}.receipt-item .field label{font-size:12px}.receipt-item .field input,.receipt-item .field select{font-size:16px;min-height:46px;padding:10px;max-width:100%}.invoice-review{padding:16px 12px!important}.invoice-review .form-grid{grid-template-columns:1fr}.invoice-savebar{position:sticky;bottom:0;background:#fbfcf7;border-top:1px solid #d5dfce;padding:12px 0;z-index:4;flex-wrap:wrap}.invoice-savebar .btn.primary{flex:1;white-space:normal}.invoice-totals{padding:12px;font-size:14px}.invoice-grand{font-size:17px}.finance-filters{flex-wrap:wrap;padding:15px}.finance-filters .field{flex:1 1 120px}.finance-filters button{width:100%}.finance-row>div{flex-basis:65%}.finance-row .btn{width:100%}.finance-actions .btn{flex:1;white-space:normal}.photo-options{justify-content:center}.photo-options .btn{width:100%}.camera-frame{inset:7% 10%}}

.upload-previews{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;width:100%;margin:16px 0}.upload-previews[hidden]{display:none}.upload-preview{margin:0;min-width:0;background:white;border:1px solid #dce5d8;border-radius:10px;padding:10px}.preview-photo-button{display:block;width:100%;padding:0;border:0;border-radius:7px;overflow:hidden;background:#eef2e8;cursor:zoom-in}.preview-photo-button img{display:block;width:100%;height:230px;object-fit:contain}.upload-preview figcaption{font-size:12px;color:#617667;overflow-wrap:anywhere;margin-top:9px;line-height:1.5}.photo-zoom{padding:16px;width:min(900px,calc(100vw - 20px));max-height:94dvh;overflow:auto;border:0;border-radius:12px}.photo-zoom img{display:block;max-width:100%;height:auto;margin:auto}.photo-zoom p{overflow-wrap:anywhere;font-size:13px}.photo-zoom .btn{position:sticky;top:0;z-index:2;background:white}@media(max-width:650px){.upload-previews{grid-template-columns:1fr}.preview-photo-button img{height:280px}}

.invoice-paper-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;padding-bottom:20px;border-bottom:2px solid #284c40;margin-bottom:20px}.invoice-paper-head span{font-size:11px;letter-spacing:.2em;color:#70836d}.invoice-paper-head h2{font-size:27px;margin:8px 0}.invoice-paper-head p{font-size:13px;color:#6b7e70}.invoice-paper-head>strong{font-size:23px;white-space:nowrap}.delivery-summary{display:flex;flex-wrap:wrap;gap:16px;padding:12px 0;font-size:14px}.arrived{color:#287140}.missing{color:#b33d31}.delivery-check{display:flex;gap:10px;margin:14px 0 8px}.delivery-choice{flex:1;border:1px solid #cbd8c5;border-radius:8px;background:#fff;min-height:48px;padding:12px;font:inherit;font-weight:700;cursor:pointer}.delivery-choice.yes{color:#287140}.delivery-choice.no{color:#ae3830}.delivery-choice.yes.selected{border:2px solid #287140;background:#e4f3e6}.delivery-choice.no.selected{border:2px solid #ae3830;background:#ffebe6}.delivery-note{font-size:12px;margin:8px 0 14px;color:#718371;line-height:1.5}.delivery-note.missing{color:#b33d31}.original-invoice{padding:16px 0}.original-invoice summary{font-weight:700;cursor:pointer}.original-invoice .btn{margin:12px 8px 0 0}.digital-result{display:flex;gap:12px;align-items:center;border-bottom:1px solid #e3e9de;padding:13px 0}.digital-result small{display:block;color:#70816d;margin-top:6px}.delivery-result{font-size:24px;font-weight:700}.digital-invoice{padding:18px 0}.delivery-invoice .receipt-products{grid-template-columns:1fr}.delivery-invoice .receipt-item-grid{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:650px){.invoice-paper-head{flex-wrap:wrap}.invoice-paper-head>strong{font-size:22px}.delivery-choice{font-size:16px;min-height:52px}.delivery-invoice .receipt-item-grid{grid-template-columns:1fr 1fr}.delivery-summary{gap:10px;font-size:12px}}

.invoice-claim-action{border:1px solid #dfc9bb;border-radius:12px;background:#fff6ee;padding:20px;margin:20px 0}.invoice-claim-action p{margin:0 0 12px;color:#a83f2e;font-weight:700}.invoice-claim-action small{display:block;margin-top:12px;line-height:1.6;color:#7b7567}.invoice-claims-context{margin-bottom:24px;border-color:#dbbca6}.invoice-claims-context small{display:block;color:#7c7e70;margin-top:6px}.invoice-claims-context .row{gap:15px;flex-wrap:wrap}@media(max-width:650px){.invoice-claim-action .btn{width:100%}.invoice-claims-context .row>.btn{width:100%}}

.group-claim-item{display:flex;gap:14px;justify-content:space-between;border-bottom:1px solid #e2e8dd;padding:15px 0}.group-claim-item p{font-size:13px;margin:7px 0}.group-claim-item>strong{white-space:nowrap}#groupClaimMessage{width:100%;box-sizing:border-box;padding:13px;border:1px solid #d4ddcf;border-radius:8px;font:inherit}.supplier-debts{margin-bottom:24px}.supplier-debts>p{color:#74816d;font-size:13px}@media(max-width:650px){.group-claim-item{flex-wrap:wrap}.group-claim-item>div{width:100%}}

.price-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:16px}.price-card{margin:0}.price-card .row{align-items:flex-start;gap:12px}.price-card small{display:block}.price-card .pill{white-space:nowrap}@media(max-width:600px){.invoice-savebar{flex-wrap:wrap}.invoice-savebar .btn{width:100%}.price-card{padding:20px}}

.invoice-exit{position:sticky;top:0;z-index:8;padding:8px 0;background:var(--bg,#f6f6ef)}#duplicateInvoiceNotice .btn{margin:6px 8px 0 0}@media(max-width:600px){#duplicateInvoiceNotice .btn{display:block;width:100%;margin:10px 0 0}.invoice-exit .btn{width:100%}}

.invoice-history-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:16px}.invoice-history-list .card{margin:0}.history-photos{display:flex;gap:12px;flex-wrap:wrap}.history-photos .btn{display:flex;flex-direction:column;gap:8px}.history-photos img{width:110px;height:150px;object-fit:contain}.history-product{border-top:1px solid #e4e8e1;padding:18px 0}.history-product .info{margin:12px 0}.history-product p{line-height:1.65}
