.v249-modal[hidden]{display:none!important}.v249-modal{position:fixed;inset:0;z-index:2147483100;background:rgba(8,19,35,.78);display:grid;place-items:center;padding:12px}.v249-dialog{background:#fff;color:#1e314a;border-radius:14px;border:1px solid #cbd8e8;width:min(860px,100%);max-height:94vh;overflow:auto;padding:20px;box-shadow:0 20px 65px #0005}.v249-dialog header,.v249-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.v249-dialog h2{margin:3px 0 9px;font-size:20px}.v249-dialog p{font-size:13px;line-height:1.6}.v249-dialog .v249-modes{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.v249-dialog button{min-height:40px;white-space:normal}.v249-dialog [data-v249-mode]{background:#e4ebf3;color:#1e324b;border:1px solid #a8bbcf;font-weight:700}.v249-dialog [data-v249-mode].selected{background:#245c91;color:#fff;border-color:#245c91}.v249-hints{font-size:12px;padding:10px;background:#eff6fe;border-radius:8px;margin-bottom:12px}.v249-page-list{display:grid;gap:8px}.v249-page{display:flex;gap:12px;align-items:center;justify-content:space-between;border:1px solid #d3dce8;padding:12px;border-radius:9px}.v249-page span{display:grid;gap:5px;min-width:0;overflow-wrap:anywhere}.v249-page small{color:#55647a;font-size:12px}.v249-page select{width:auto;min-width:124px;min-height:40px}.v249-result{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;border-bottom:1px solid #d3deea}.v249-result div{display:grid;gap:5px}.v249-result small{color:#55647a}.v249-result label{display:grid;gap:4px;font-size:12px}.v249-result input{width:150px;min-height:40px;text-align:right}.v249-sum{font-size:16px!important;padding:12px;background:#f1f5fa;border-radius:8px}.v249-dialog footer{margin:18px 0 8px}.v249-dialog footer button:first-child{background:#226b48;color:#fff;border:1px solid #226b48;font-weight:750}#v249Status{min-height:1.5em}.v241-draft button.v249-review-button{background:#536477!important;color:#fff!important;font-weight:750!important}.v241-draft button.v249-review-button:hover{background:#425265!important;color:#fff!important}@media(max-width:650px){.v249-dialog{padding:13px;max-height:96vh}.v249-page,.v249-result{display:grid;gap:8px}.v249-page select{width:100%}.v249-result input{width:100%}.v249-dialog footer button{width:100%}}

/* V271: one-step scan review. Prioritise invoice totals and editable facts over page mechanics. */
#v249InvoiceReview .v271-review-card{display:grid;gap:12px;padding:16px;margin:12px 0;border:1px solid #b7cbdc;border-radius:12px;background:#fff}
#v249InvoiceReview .v271-review-heading{display:flex;align-items:baseline;gap:8px 16px;flex-wrap:wrap;justify-content:space-between}
#v249InvoiceReview .v271-review-heading strong{font-size:17px;color:#143d61}
#v249InvoiceReview .v271-review-heading small{font-size:12px;color:#5d6c7e}
#v249InvoiceReview .v271-review-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#v249InvoiceReview .v271-review-field{display:grid;gap:5px;font-size:12px;font-weight:700;color:#35465b;min-width:0}
#v249InvoiceReview .v271-review-field input,#v249InvoiceReview .v271-review-field select{box-sizing:border-box;min-width:0;width:100%;height:42px;padding:7px 10px;border:1px solid #b9c9da;border-radius:8px;background:#fff;color:#172033;font:inherit;font-weight:500;line-height:1.35}
#v249InvoiceReview .v271-review-field input:focus-visible,#v249InvoiceReview .v271-review-field select:focus-visible{outline:3px solid #93c5fd;outline-offset:1px}
#v249InvoiceReview .v271-review-money{display:grid;grid-template-columns:minmax(0,1fr) minmax(170px,1.4fr);gap:12px;padding:10px 12px;background:#ecf5fd;border-radius:9px;align-items:end}
#v249InvoiceReview .v271-review-money>label{display:grid;gap:5px;font-size:12px;font-weight:750;color:#163d62}
#v249InvoiceReview .v271-review-money input,#v249InvoiceReview .v271-review-money select{box-sizing:border-box;width:100%;min-width:0;height:46px;border:1px solid #8eabc4;background:white;border-radius:7px;padding:8px;font-size:16px;font-weight:800;color:#143d61}
#v249InvoiceReview .v271-review-money input{text-align:right;font-variant-numeric:tabular-nums;font-size:20px}
#v249InvoiceReview .v271-page-assignment{margin:15px 0;padding:10px 12px;border:1px solid #d2deea;border-radius:9px;background:#f8fafc}
#v249InvoiceReview .v271-page-assignment>summary{cursor:pointer;color:#31546f;font-weight:650;font-size:13px;padding:5px 0}
#v249InvoiceReview .v249-sum{font-weight:800;font-size:17px!important;background:#e8f5ed;color:#1b5c3b}
#v249InvoiceReview footer{position:sticky;bottom:-20px;z-index:2;background:#fff;border-top:1px solid #e3eaf1;padding:12px 0;margin-top:14px}
#v249InvoiceReview footer [data-v249-action="release"]{background:#206c4a!important;color:white!important;border-color:#206c4a!important;font-weight:800}
#v249InvoiceReview footer [data-v249-action="confirm"]{background:#eef2f7!important;color:#27445d!important;border:1px solid #a7baca!important}
#v249InvoiceReview .v251-fx-review{grid-column:1/-1}
@media(max-width:760px){#v249InvoiceReview .v271-review-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){#v249InvoiceReview .v271-review-fields,#v249InvoiceReview .v271-review-money{grid-template-columns:1fr}#v249InvoiceReview .v271-review-card{padding:11px}#v249InvoiceReview footer{bottom:-13px}#v249InvoiceReview .v271-review-heading strong{font-size:15px}}

/* Feedback 2026-11-11: wide review with optional original invoice preview. */
#v249InvoiceReview .v249-dialog{width:min(1620px,calc(100vw - 24px));max-width:none}
#v249InvoiceReview .v275-review-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start}
#v249InvoiceReview .v275-source-aside{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:9px}
#v249InvoiceReview .v275-source-aside>[hidden],#v249InvoiceReview #v275SourcePanel[hidden]{display:none!important}
#v249InvoiceReview #v275SourcePanel{width:100%;min-width:0;display:grid;gap:7px}
#v249InvoiceReview #v275SourceSelect{box-sizing:border-box;width:100%;max-width:100%;min-height:36px;border:1px solid #b9c9da;border-radius:7px;padding:6px}
#v249InvoiceReview #v275SourceStatus{margin:0;font-size:12px}
#v249InvoiceReview #v275SourceContent{min-width:0}
#v249InvoiceReview #v275SourceContent iframe,#v249InvoiceReview #v275SourceContent img{display:block;width:100%;height:min(65vh,750px);object-fit:contain;border:1px solid #ccd8e5;border-radius:7px;background:#f5f7fa}
@media(min-width:1000px){
 #v249InvoiceReview .v275-review-layout:has(#v275SourcePanel:not([hidden])){grid-template-columns:minmax(0,1fr) minmax(380px,0.95fr)}
 #v249InvoiceReview .v275-review-layout:has(#v275SourcePanel:not([hidden])) #v275SourcePanel{position:sticky;top:10px}
}
@media(max-width:760px){#v249InvoiceReview .v249-dialog{width:calc(100vw - 12px);padding:12px}#v249InvoiceReview .v275-review-fields{grid-template-columns:1fr}}
