.invoice-workspace{min-width:0;color:#1d1731}.invoice-heading{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:18px}.invoice-eyebrow{color:#7c3aed;font-size:11px;font-weight:600;margin-bottom:6px}.invoice-heading h2{font-size:22px;line-height:1.3;font-weight:800;letter-spacing:-.4px}.invoice-filename{overflow-wrap:anywhere;font-size:12px;color:#73748b;margin-top:5px}.invoice-heading-actions{display:flex;flex-wrap:wrap;gap:8px;padding-top:8px}.invoice-primary,.invoice-secondary,.invoice-text-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;cursor:pointer;font-weight:700;transition:background .15s,border-color .15s}.invoice-primary{padding:11px 17px;border-radius:10px;background:linear-gradient(110deg,#7d00f4,#8c13ff);color:#fff;font-size:12px;box-shadow:0 2px 5px #7d00f41c}.invoice-primary:hover{background:#7200dc}.invoice-secondary{padding:8px 11px;border:1px solid #ddcff5;border-radius:9px;background:#fff;color:#6d28d9;font-size:11px}.invoice-secondary:hover{background:#f8f4ff;border-color:#b890ed}.invoice-text-button{padding:6px 2px;color:#7c00f5;font-size:11px;white-space:nowrap}.invoice-text-button:hover{color:#5100ab;text-decoration:underline}.invoice-workspace button:disabled,.invoice-dialog button:disabled{opacity:.5;cursor:not-allowed}.invoice-workspace button:focus-visible,.invoice-dialog button:focus-visible,.invoice-table-scroll:focus-visible,.invoice-supplier-scroll:focus-visible{outline:2px solid #9333ea;outline-offset:3px}.invoice-history{max-height:160px;overflow:auto;display:flex;flex-wrap:wrap;gap:7px;margin-bottom:15px}.invoice-history button{display:flex;min-width:0;align-items:center;gap:7px;max-width:330px;border:1px solid #e5daf5;border-radius:9px;padding:8px 10px;background:#fff;color:#685078;font-size:11px;cursor:pointer}.invoice-history button[aria-current]{color:#6d00d9;border-color:#aa74f4;background:#f8f3ff}.invoice-history button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.invoice-history small{flex-shrink:0}.invoice-upload{border:1px solid #e4d6f7;border-radius:15px;padding:16px;background:#fff;margin-bottom:16px}.invoice-file-picker{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;border:1px dashed #c6a4ed;border-radius:11px;padding:23px 15px;background:#faf7ff;cursor:pointer;color:#7843be}.invoice-file-picker:hover{border-color:#8b21ed}.invoice-file-picker:focus-within{outline:2px solid #9333ea;outline-offset:3px}.invoice-file-picker strong{font-size:13px;overflow-wrap:anywhere;max-width:100%}.invoice-file-picker span{font-size:10px;color:#858095}.invoice-upload-actions{margin-top:12px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}.invoice-upload-actions p{font-size:11px;color:#7f7b8c}.invoice-ai-consent{display:flex;align-items:flex-start;gap:9px;margin-top:12px;font-size:11px;line-height:1.6;color:#826335}.invoice-ai-consent input{margin-top:3px;accent-color:#8100ee}.invoice-feedback{padding:10px 13px;border-radius:10px;font-size:12px;line-height:1.6;margin-bottom:14px}.invoice-error{background:#fff1f2;color:#b42338}.invoice-success{background:#ecfdf5;color:#087b59}.invoice-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:15px}.invoice-counter{display:flex;align-items:center;gap:11px;border:1px solid #e5dff0;padding:13px 15px;background:#fff;border-radius:14px;box-shadow:0 2px 4px #21123d05}.invoice-counter>span{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:13px;flex-shrink:0;background:#f0e6ff;color:#8500f3}.invoice-counter small{display:block;margin-bottom:2px;font-size:11px;color:#66637c}.invoice-counter strong{display:block;font-size:17px;line-height:1.3;font-weight:800}.invoice-counter-available>span{color:#16a34a;background:#dcfce7}.invoice-counter-missing>span{color:#eb9500;background:#fff3d2}.invoice-panel{overflow:hidden;border:1px solid #e4ddee;border-radius:14px;background:#fff;box-shadow:0 2px 5px #30204405;margin-bottom:15px;padding:0 14px}.invoice-panel-heading{padding:14px 1px 12px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px}.invoice-panel-heading h3{font-size:15px;line-height:1.4;font-weight:800}.invoice-panel-heading h3>span{margin-left:9px;font-size:11px;color:#837790;font-weight:500}.invoice-panel-heading p{margin-top:3px;font-size:11px;color:#827c90}.invoice-unresolved{color:#ae6c08;font-size:11px}.invoice-table-scroll,.invoice-supplier-scroll{width:100%;max-height:318px;overflow:auto;scrollbar-width:thin;scrollbar-color:#d1c2e6 transparent}.invoice-workspace table,.invoice-dialog table{border-collapse:separate;border-spacing:0;width:100%;text-align:left;font-size:12px}.invoice-workspace th,.invoice-dialog th{position:sticky;top:0;z-index:1;background:#f3f0f9;color:#665974;font-size:10px;font-weight:600;white-space:nowrap;padding:7px 10px}.invoice-workspace th:first-child{border-radius:7px 0 0 7px}.invoice-workspace th:last-child{border-radius:0 7px 7px 0}.invoice-workspace td,.invoice-dialog td{padding:8px 10px;border-bottom:1px solid #f0ebf5}.invoice-products{min-width:720px}.invoice-products th:first-child{width:30px}.invoice-products td:first-child{font-size:11px;color:#8a8297}.invoice-products td:nth-child(2){width:38%;min-width:180px;max-width:380px}.invoice-products td strong,.invoice-dialog td strong{display:block;font-size:12px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}.invoice-products td small,.invoice-dialog td small{display:block;font-size:9px;color:#978ca4;line-height:1.4;margin-top:1px}.invoice-products td:last-child{text-align:right}.invoice-products tr:hover{background:#fcfaff}.invoice-code{font-size:10px;overflow-wrap:anywhere;min-width:110px}.invoice-nowrap{white-space:nowrap}.invoice-stock{display:inline-flex;border-radius:6px;padding:4px 7px;font-size:10px;line-height:1.1;font-weight:600;white-space:nowrap;background:#fff4db;color:#b97000}.invoice-stock-available{background:#dcfce7;color:#168341}.invoice-stock-unresolved,.invoice-stock-unit_mismatch{background:#f3ecff;color:#8651bf}.invoice-table-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 1px}.invoice-table-footer>span{font-size:10px;color:#8c8199}.invoice-sort-label{display:inline-flex;align-items:center;gap:6px;font-size:10px;color:#776486;border:1px solid #e9e2f1;padding:7px 9px;border-radius:8px}.invoice-supplier-scroll{max-height:340px}.invoice-suppliers{min-width:720px}.invoice-suppliers td{padding-top:13px;padding-bottom:13px}.invoice-supplier-name{display:flex;align-items:center;gap:8px;min-width:150px}.invoice-supplier-name strong{display:block;font-size:12px;font-weight:800}.invoice-rank{display:inline-block;min-width:14px;color:#9989aa;font-size:10px}.invoice-complete-label{display:inline-block;margin-top:3px;font-size:9px;color:#178344}.invoice-complete-supplier td{background:#f1fcf6}.invoice-complete-supplier .invoice-coverage i{background:#20c45c}.invoice-coverage{min-width:140px;max-width:230px;font-size:11px}.invoice-coverage>div{margin-top:6px;height:5px;background:#eae4f1;overflow:hidden;border-radius:8px}.invoice-coverage i{display:block;height:100%;border-radius:8px;background:linear-gradient(90deg,#7700f2,#a038ff)}.invoice-coverage small{display:block;margin-top:4px;font-size:9px;color:#b57713}.invoice-estimate{white-space:nowrap;font-size:13px;font-weight:800}.invoice-muted{color:#93879d;font-size:11px}small.invoice-muted{display:block;margin-top:4px;font-size:9px}.invoice-estimate-note{margin:10px 1px 12px;color:#8e829c;font-size:10px;line-height:1.6}.invoice-estimate-note.invoice-unresolved{color:#ae6c08}.invoice-results-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:140px;padding:22px;text-align:center;font-size:12px;color:#9783a8}.invoice-results-empty strong{color:#4f3c61}.invoice-results-empty p{max-width:460px;font-size:11px;line-height:1.6}.invoice-dialog-backdrop{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;background:#160b2b66;padding:20px;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.invoice-dialog{width:min(570px,100%);max-height:calc(100dvh - 40px);overflow:auto;background:#fff;color:#261a38;border:1px solid #e2d1f5;border-radius:17px;box-shadow:0 18px 80px #19072c33;outline:none}.invoice-dialog-wide{width:min(1080px,100%)}.invoice-dialog>header{position:sticky;top:0;z-index:3;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid #eee7f5;padding:17px 20px}.invoice-dialog>header h3{font-size:15px;font-weight:800}.invoice-dialog>header button{color:#8e7ba1;padding:5px;cursor:pointer;border-radius:7px}.invoice-dialog>header button:hover{background:#f7f1ff}.invoice-edit-form,.invoice-supplier-detail{padding:18px 20px}.invoice-edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:17px 0}.invoice-edit-grid label{font-size:11px;font-weight:600;color:#7b678e}.invoice-edit-grid label:first-child{grid-column:1 / -1}.invoice-edit-grid input{width:100%;margin-top:6px;padding:10px 11px;border:1px solid #e2d7ee;border-radius:9px;outline:none;font-size:12px;color:#31203f}.invoice-edit-grid input:focus{border-color:#ac64ee;box-shadow:0 0 0 3px #f3e9ff}.invoice-edit-form footer{display:flex;justify-content:flex-end;gap:9px;margin-top:20px;padding-top:15px;border-top:1px solid #eee6f4}.invoice-candidates{max-height:190px;overflow:auto;margin-top:12px;border:1px solid #e7ddf3;border-radius:9px}.invoice-candidates label{display:flex;align-items:center;gap:10px;padding:10px;border-bottom:1px solid #f1ebf7;cursor:pointer}.invoice-candidates input{accent-color:#8500f3}.invoice-candidates strong{display:block;font-size:11px}.invoice-candidates small{display:block;color:#9e8cad;font-size:10px;margin-top:2px}.invoice-candidates p{padding:12px;font-size:11px;color:#887295}.invoice-detail-summary{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:15px;border-radius:10px;padding:13px;background:#f8f4ff;margin-bottom:16px}.invoice-detail-summary strong{display:block;font-size:14px;font-weight:800;color:#602a93}.invoice-detail-summary small,.invoice-detail-summary p{display:block;margin:3px 0;font-size:10px;color:#987cae}.invoice-detail-scroll{max-height:55dvh;overflow:auto;scrollbar-width:thin}.invoice-detail-scroll table{min-width:820px}.invoice-detail-scroll td{font-size:11px}.invoice-detail-scroll td:first-child{max-width:260px;min-width:180px}.invoice-detail-missing td{color:#a491ad;background:#fdfbfe}@media(max-width:900px){.invoice-heading h2{font-size:19px}.invoice-counter{padding:11px;gap:8px}.invoice-counter strong{font-size:15px}.invoice-counter>span{width:34px;height:34px}.invoice-panel{padding:0 11px}}@media(max-width:600px){.invoice-heading{margin-bottom:13px}.invoice-heading h2{font-size:18px}.invoice-heading-actions{gap:6px;padding-top:0}.invoice-summary{gap:6px}.invoice-counter{padding:10px 7px;gap:6px}.invoice-counter>span{display:none}.invoice-counter small{font-size:9px}.invoice-counter strong,.invoice-panel-heading h3{font-size:13px}.invoice-table-scroll{max-height:286px}.invoice-table-footer .invoice-primary{width:100%;padding:12px 8px}.invoice-primary{font-size:11px}.invoice-upload-actions .invoice-primary{width:100%}.invoice-dialog-backdrop{padding:10px}.invoice-dialog{max-height:calc(100dvh - 20px)}.invoice-dialog>header{padding:13px}.invoice-dialog>header h3{font-size:13px}.invoice-edit-form,.invoice-supplier-detail{padding:13px}}
