.invoice-no{display:inline-block;color:#b31526;border:1px solid #b31526;padding:3px 6px;font-size:12px;line-height:1.4;white-space:normal;background:#fff0f1;max-width:100%}
.invoice-document{border-top:1px solid #ccd5d0;margin-top:18px;padding:14px 0}
.invoice-document h3{font-size:16px;line-height:1.6;margin:0 0 12px}
.invoice-list{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.invoice-file{display:flex;align-items:flex-start;gap:4px;max-width:100%}.invoice-file>[data-import]{min-width:0;flex:1}.invoice-file>[data-delete-import]{flex:none}
.invoice-list button{max-width:100%;overflow-wrap:anywhere;text-align:left}
.invoice-list [aria-current=true]{border-color:#245b44;background:#e7f1eb}
.invoice-source{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:12px 0}
.invoice-source strong{overflow-wrap:anywhere}
.invoice-lines{min-width:1080px;table-layout:fixed;width:100%}
.invoice-lines th,.invoice-lines td{vertical-align:top;white-space:normal;overflow-wrap:anywhere}
.invoice-lines th:nth-child(1){width:50px}.invoice-lines th:nth-child(2){width:86px}
.invoice-lines th:nth-child(3){width:265px}.invoice-lines th:nth-child(4){width:105px}
.invoice-lines th:nth-child(5){width:95px}.invoice-lines th:nth-child(6){width:112px}
.invoice-lines th:nth-child(7){width:75px}.invoice-lines th:nth-child(8){width:130px}
.invoice-lines th:nth-child(9){width:40px}
.invoice-lines input,.invoice-lines select{width:100%;min-width:0;box-sizing:border-box;margin:0 0 5px}
.invoice-lines details{font-size:11px}.invoice-lines small{display:block}
.invoice-lines .invoice-invalid{border:2px solid #b12c3d;background:#fff4f4}.invoice-field-error{color:#a22636;font-weight:600}
dialog:has(.article-catalogue){width:min(760px,calc(100% - 30px));max-height:calc(100dvh - 30px);overflow:auto}
.article-catalogue{max-height:55dvh;overflow:auto}
.tablewrap.article-catalogue table:not(.receipt-table){width:100%;min-width:0;table-layout:fixed}.article-catalogue th,.article-catalogue td{white-space:normal;overflow-wrap:anywhere}
.article-catalogue th:first-child{width:75px}.article-catalogue small{display:block}
.invoice-reviewed{margin:16px 0;align-items:flex-start}
#invoice-import{margin-bottom:18px;border-bottom:1px solid #ccd5d0;padding-bottom:12px}
#invoice-import input[type=file]{max-width:100%;box-sizing:border-box}
.invoice-progress{max-width:640px;margin:14px 0;display:grid;gap:8px}.invoice-progress progress{width:100%;height:12px;accent-color:#245b44}.invoice-progress-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px 18px;font-size:12px}.invoice-checks{border-block:1px solid #ccd5d0;padding:12px 0;margin:12px 0;font-size:13px}.invoice-checks p{margin:5px 0}.invoice-ai-settings{margin:12px 0}.invoice-ai-settings form{padding:12px 0}.invoice-ai-settings .toolbar{justify-content:flex-start;gap:12px}.invoice-ai-settings label{max-width:100%;min-width:0}.invoice-ai-settings input:not([type=checkbox]){width:260px;max-width:100%;box-sizing:border-box}.invoice-ai-settings .check,.invoice-unresolved{margin:10px 0;align-items:flex-start}.invoice-ai-settings [role=status]{margin-left:10px}.invoice-file small{display:block;font-size:11px;margin-top:4px}
@media(max-width:600px){.invoice-ai-settings .toolbar{display:grid;grid-template-columns:minmax(0,1fr)}.invoice-ai-settings input:not([type=checkbox]){width:100%}}
@media(max-width:600px){.invoice-document .toolbar{display:grid;grid-template-columns:minmax(0,1fr)}.invoice-document .toolbar label{width:100%;min-width:0}.invoice-document .toolbar input,.invoice-document .toolbar select{max-width:100%;box-sizing:border-box}.invoice-document .actions{flex-wrap:wrap}}
