:root{--ground:#edf3fc;--surface:#fff;--raised:#f5f8fd;--ink:#1b3047;--muted:#586b7d;--line:#dfe7f2;--control:#d2ddeb;--blue:#275dce;--blue-soft:#e7effd;--red:#ad303f;--radius:16px;--glass:#f9fbffed;--glass-shadow:0 8px 28px #3a61920a,inset 0 1px 0 #fff}
body{background:radial-gradient(ellipse at 3% 0,#dce9f9 0,transparent 44%),radial-gradient(ellipse at 100% 100%,#d9e7fa 0,transparent 48%),var(--ground);background-attachment:fixed}
.app-shell{padding:20px 24px 0;display:block;min-width:0}.sidebar{position:relative;inset:auto;transform:none;width:100%;height:auto;min-height:68px;padding:12px 22px;gap:22px;border:1px solid #fff;border-radius:18px;background:var(--glass);box-shadow:var(--glass-shadow);display:flex;flex-direction:row;align-items:center;z-index:30}.brand{min-width:160px;padding:0;gap:10px}.brand small{font-size:11px}.sidebar nav{display:flex;gap:4px;min-width:0}.sidebar nav a{gap:8px;padding:9px 12px;min-height:38px;font-size:13px;border-radius:11px}.sidebar nav a:hover{background:#eaf1fc;transform:none}.sidebar nav a.active{background:var(--blue-soft);color:var(--blue)}.sidebar nav a.active i{color:var(--blue)}.workspace-label,.local-workspace{display:none}.sidebar-bottom{display:flex;align-items:center;gap:12px;padding:0;margin:0 0 0 auto;border:0}.workspace-frame{padding:0;min-width:0}.topbar{height:30px;padding:0 4px;gap:12px}.breadcrumb,.topbar-right{font-size:11px}.mobile-menu{display:none}.sheet,.sheet:has(.queue-layout){padding:0;min-height:0;border:0;border-radius:0;background:transparent}.sheet:not(:has(.queue-layout)){padding:24px;border-radius:18px;background:var(--glass);box-shadow:var(--glass-shadow);min-height:calc(100dvh - 152px);border:1px solid #fff}.page-heading{margin:0 0 16px;gap:12px}.page-heading h1{font-size:24px}.page-heading p{font-size:12px;margin-top:3px}.page-heading>.actions{flex-wrap:wrap;justify-content:flex-end}.app-footer{padding:10px 2px;font-size:11px;gap:12px;flex-wrap:wrap}
button{border-radius:10px;box-shadow:0 1px 2px #29456605;transition:background-color .15s,border-color .15s,box-shadow .15s,transform .15s,opacity .15s}button:hover:not(:disabled){border-color:#abc3e5;background:#f1f6ff;box-shadow:0 3px 8px #2945660a;transform:translateY(-1px)}button:active:not(:disabled){transform:scale(.98);box-shadow:none}button.primary:hover:not(:disabled){background:#204eb2;border-color:#204eb2}button.quiet,button.text-link{box-shadow:none}button:disabled{opacity:.55}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--blue);outline-offset:2px}input,select,textarea{border-radius:9px;background:#fff;color:var(--ink)}input::placeholder,textarea::placeholder{color:#68798b}input:focus,select:focus,textarea:focus{box-shadow:0 0 0 3px #275dce14}.actions{min-width:0}.amount-value,.summary-total strong{color:var(--red)}
.queue-layout:not(.history-workbench){grid-template-columns:200px minmax(0,1fr);gap:16px;height:max(480px,calc(100dvh - 410px));align-items:stretch}.document-queue{padding:18px 14px;border:1px solid #fff;border-radius:18px;background:var(--glass);box-shadow:var(--glass-shadow);display:flex;flex-direction:column;min-height:0;min-width:0}.queue-heading{margin-bottom:14px;flex:none}.queue-heading h2{font-size:14px}.queue-heading-actions{gap:5px}.queue-heading-actions>span{font-size:11px}.queue-clear{padding:2px 6px}.queue-filters{flex:none}.queue-filters .tabs-row{flex-wrap:wrap;gap:6px}.queue-filters .tabs{width:100%;gap:3px}.queue-filters .tab{font-size:11px;padding:5px 7px;min-height:30px}.queue-supplier-filter{flex-basis:100%}.queue-supplier-filter>summary{padding:7px 9px;border-radius:9px;background:#ffffffc9}.queue-documents{flex:1;min-height:0;max-height:none;padding:3px;overflow:auto;scrollbar-gutter:stable;overscroll-behavior:contain}.queue-document{flex:none;min-width:0;margin-bottom:8px;border:2px solid transparent;border-radius:18px;background:#ffffff7a;box-shadow:none;transition:background .18s,border-color .18s,box-shadow .18s;transform:none}.queue-document:active{transform:none}.queue-document-main:hover:not(:disabled),.queue-document-main:active:not(:disabled){transform:none;background:transparent;box-shadow:none}.queue-document:hover{background:#f3f8ff;box-shadow:none}.queue-document.selected,.queue-document.selected:hover,.queue-document.selected:focus-within{background:linear-gradient(135deg,#f9fcff,#eaf3fc 65%,#f8faff);border-color:#fff;box-shadow:inset 0 1px 5px #c8e9f859,0 0 0 1px #e4eaf5,0 5px 12px #566c8b24}.queue-document:focus-within{outline:2px solid #8db7e7;outline-offset:-2px}.queue-document.selected .queue-doc-heading>strong{color:var(--blue)}.queue-document-main{padding:8px 9px;min-height:56px;gap:4px}.queue-doc-icon{display:none}.queue-doc-heading{padding-left:0;flex-wrap:nowrap;gap:5px}.queue-doc-heading>strong{flex:1 1 auto;font-size:12px}.queue-document small{font-size:11px;padding-right:12px}.queue-doc-status{flex:0 0 auto;max-width:65%;font-size:10px}.queue-delete{right:3px;bottom:3px}
.queue-main{display:flex;flex-direction:column;min-height:0;min-width:0;gap:10px}.queue-context{flex:none;min-width:0;max-height:25dvh;overflow:auto;overscroll-behavior:contain}.queue-context:empty{display:none}.queue-context>.error-box{margin:0}.queue-content{flex:1;display:grid;grid-template-columns:minmax(320px,.92fr) minmax(0,1.85fr);align-items:stretch;gap:16px;min-width:0;min-height:0;height:auto}.queue-source-stack{display:flex;flex-direction:column;gap:14px;min-width:0;min-height:0}.queue-source-stack>.editor-panel{order:0;flex:none;overflow:visible;border:1px solid #fff;border-radius:16px;background:var(--glass);box-shadow:var(--glass-shadow);position:relative;z-index:4}.queue-source-stack .queue-meta-heading{display:none}.queue-source-stack .metadata{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;padding:11px 14px}.queue-source-stack .metadata label{font-size:12px;min-width:0}.queue-source-stack .metadata :is(input,select){font-size:12px;min-height:34px}.queue-source-stack .label-line{flex-wrap:wrap;gap:2px}.queue-source-stack .label-line button{font-size:11px;min-height:22px;padding:0}.queue-source-stack [data-action=choose-supplier]{font-size:11px;min-height:24px}.queue-source-stack .weight-conversion-option{margin:0 14px 9px;font-size:11px;align-items:baseline;flex-wrap:wrap;gap:5px}.queue-source-stack .weight-conversion-option .field-note{flex:1 1 200px;font-size:11px;margin:0;line-height:1.6}.queue-source-stack>.preview-panel{order:1;flex:1;min-height:0;height:auto;border:1px solid #fff;border-radius:16px;background:var(--glass);box-shadow:var(--glass-shadow);overflow:hidden;display:flex;flex-direction:column}.queue-content .panel-heading{min-height:50px;height:auto;padding:10px 16px;gap:8px;border-bottom:1px solid var(--line)}.queue-content .panel-heading h2{font-size:14px}.queue-content .source-actions{gap:5px;flex-wrap:wrap}.source-actions button{font-size:11px;padding:4px 8px;min-height:29px}.source-actions [data-action=recognize]{min-width:78px;margin-left:0}.queue-content .image-viewport{flex:1;height:auto;min-height:0;background:#e9f0fa;overflow:auto;scrollbar-gutter:stable}.queue-content .dropzone{min-height:180px;margin:18px;width:calc(100% - 36px);padding:15px;background:#ffffffad}.dropzone p,.file-types{white-space:normal;overflow-wrap:anywhere}.queue-content .preview-footer{height:auto;min-height:40px;flex:none;padding:7px 12px;gap:6px;background:#ffffffd9}.queue-content .preview-footer>span{max-width:45%;font-size:11px}.queue-content>.details-panel{display:flex;flex-direction:column;height:100%;min-height:0;margin:0;border:1px solid #fff;border-radius:16px;background:var(--glass);box-shadow:var(--glass-shadow);overflow:hidden}.queue-content .detail-toolbar{flex:none;min-height:54px;padding:10px 16px;gap:8px;border-bottom:1px solid var(--line)}.queue-content .detail-toolbar h2{font-size:15px}.queue-content .detail-toolbar .actions{flex-wrap:wrap;justify-content:flex-end;gap:2px}.queue-content .detail-toolbar button{padding:4px 7px;font-size:11px;min-height:28px}.queue-content .queue-goods{flex:1;min-height:0;height:auto;border:0;overflow:auto;scrollbar-gutter:stable;overscroll-behavior:contain;padding:0;scroll-padding-block:8px}.queue-row{margin:0;border-bottom:1px solid var(--line);border-radius:0;animation:none;background:#fff;box-shadow:none}.queue-row:nth-of-type(odd),.queue-row:nth-of-type(odd)>summary{background:#eef3fc}.queue-row:nth-of-type(even),.queue-row:nth-of-type(even)>summary{background:#ffffffeb}.queue-row>summary{grid-template-columns:24px minmax(0,1.1fr) minmax(0,1fr) minmax(0,.85fr) 32px;gap:10px;min-height:64px;padding:10px 12px;border-radius:0;align-items:start}.queue-row summary:hover,.queue-row[open]>summary,.queue-row>summary:focus-visible,.queue-row:focus-within>summary{background:#e0ebfb}.queue-row .queue-index{align-self:center}.queue-row strong{font-size:12px}.queue-row small,.sku-description{font-size:11px}.queue-row .packaging-info{margin-top:3px;font-size:11px;gap:4px}.queue-row .packaging-info>strong{font-size:11px}.queue-row .queue-sku-code{font-size:12px}.queue-row .queue-warning{font-size:11px}.queue-row .quantity-price{white-space:normal;overflow-wrap:anywhere}.queue-row-body{padding:8px 14px 12px 46px;background:inherit}.queue-row-tools{align-self:stretch}.delete-goods{min-height:30px;padding:1px 4px}.delete-goods small{font-size:10px}.queue-row.price-increased{border-radius:10px;outline-offset:-1px}.queue-row .history-price-note{font-size:11px}.queue-row::details-content{transition:opacity .15s ease,content-visibility .15s allow-discrete;height:auto}.queue-row:not([open])::details-content{height:0}
.workflow-bottom{display:grid;grid-template-columns:minmax(200px,1fr) auto;align-items:center;gap:4px 14px;margin-top:10px;padding:8px 14px;border:1px solid #fff;border-radius:16px;background:var(--glass);box-shadow:var(--glass-shadow)}.workflow-bottom>.document-summary{grid-column:1;grid-row:1;margin:0;padding:0;border:0;background:transparent;gap:14px;flex-wrap:wrap;justify-content:flex-start}.workflow-bottom .summary-left{font-size:11px;gap:10px}.workflow-bottom .summary-total{order:-1;font-size:12px;display:flex;align-items:center;gap:8px;margin-right:14px}.workflow-bottom .summary-total strong{font-size:22px;margin:0}.workflow-bottom>p{grid-column:1;grid-row:2;min-width:0;font-size:11px;align-items:flex-start;overflow-wrap:anywhere}.workflow-bottom>.actions{grid-column:2;grid-row:1;flex-wrap:wrap;justify-content:flex-end;max-width:560px}.workflow-bottom>.actions button{min-height:34px;padding:6px 12px;font-size:12px}.workflow-bottom .erp-default-hint{flex-basis:auto;font-size:11px;text-align:right;margin:0}.workflow-bottom>.invoice-amount-summary{grid-column:1/-1;grid-row:3;border-top:1px solid var(--line);margin:0;padding:6px 0 0;display:flex;align-items:center;justify-content:space-between;gap:4px 12px;flex-wrap:wrap}.workflow-bottom .amount-summary-values{justify-content:flex-start;gap:20px}.workflow-bottom .amount-summary-values>span{display:flex;align-items:baseline;gap:7px}.workflow-bottom .amount-summary-status{margin:0;gap:12px}.workflow-bottom .amount-summary-values strong{color:var(--red)}#batch-queues{padding:0;margin-bottom:12px}.batch-summary{background:var(--glass);border-color:#fff;box-shadow:var(--glass-shadow)}
.archive-stats{padding:4px 0 18px;gap:24px}.archive-stats strong{font-size:26px;color:var(--ink)}.archive-toolbar{gap:12px;flex-wrap:wrap}.archive-filters{flex-wrap:wrap;min-width:0}.archive-filters>*{min-width:0;max-width:100%}.table-frame{border-color:var(--line);border-radius:13px;background:#fff;overflow:hidden}.archive-table-wrap,.logs-table{max-width:100%;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.data-table thead{background:#eef3fc}.data-table th{background:#eef3fc;color:var(--muted);font-weight:500}.data-table td{background:#fff}.data-table tbody tr:hover td{background:#f2f6fd}.data-table .quiet{border-radius:8px}.pagination{padding:13px 16px;background:#f8faff;flex-wrap:wrap}.empty-cell{padding:44px 18px!important;color:var(--muted)}.empty-cell strong{font-size:14px;color:var(--ink)}.settings-layout{gap:20px}.settings-section{grid-template-columns:minmax(200px,.7fr) minmax(0,1.3fr);gap:32px;padding:4px 0 22px}.settings-section:last-child{border:0;padding-bottom:0}.settings-section h2{font-size:16px}.settings-section>div:first-child p{font-size:12px;line-height:1.9}.settings-fields{border:1px solid var(--line);border-radius:14px;background:#f5f8fd;padding:20px;gap:16px}.settings-fields label{min-width:0}.settings-fields .actions{flex-wrap:wrap}.history-filters{padding:16px;background:#f1f6fd;border:1px solid var(--line);border-radius:13px;gap:12px}.history-record{padding:16px;border:1px solid var(--line);border-radius:13px;background:#fff;margin-top:10px;align-items:center}.history-record-action{flex-wrap:wrap;justify-content:flex-end}.history-workbench{gap:16px}.history-workbench .history-fields{padding:16px;border:1px solid #fff;border-radius:16px;background:var(--glass)}.history-workbench .queue-content{height:calc(100dvh - 410px);min-height:440px}.history-workbench .preview-panel{height:100%;display:flex;flex-direction:column;border:1px solid #fff;border-radius:16px;background:var(--glass)}.history-workbench .queue-documents{max-height:65dvh}.history-meta{padding:12px 0}.history-detail-footer{padding:14px 16px;margin-top:14px;border-radius:14px;background:var(--glass);border:1px solid #fff}
dialog:not(#source-image-dialog),dialog.shared-dialog{border-radius:18px;border-color:#dce5f2;background:var(--glass);color:var(--ink);box-shadow:0 22px 70px #27477326}dialog::backdrop,.shared-dialog::backdrop{background:#22385342}dialog .dialog-header,dialog .dialog-footer,.shared-dialog>header{background:#f9fbfffa;border-color:var(--line)}.dialog-body,.shared-content{background:#ffffffef;overflow-wrap:anywhere}.dialog-header h2{font-size:17px}.dialog-body{padding:22px 24px}.dialog-footer{flex-wrap:wrap;gap:8px}.dialog-footer button{border-radius:10px}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid label{min-width:0}.dialog-body :is(pre,.preview-grid,.comparison-grid,.match-candidates){max-width:100%}.preview-grid,.comparison-grid,.match-candidates{border-radius:11px}.raw-view,.rule-reference{background:#f4f7fc;border-radius:10px}.rules-filters{gap:10px}.rules-filter-panel,.rule-scope-panel,.warehouse-menu,.queue-supplier-menu,.queue-controls-menu{border-color:var(--control);border-radius:12px;background:#fff;box-shadow:0 10px 30px #2d4e781c}.shared-dialog .shared-tabs{background:#edf3fc;border-bottom:1px solid var(--line);gap:6px}.shared-dialog .shared-checks li,.shared-dialog .shared-records article{background:#f3f7fd;border:1px solid var(--line);border-radius:11px}.shared-dialog .shared-checks li[data-ok=false]{background:#fff8ed}.shared-dialog .shared-user-form{gap:12px}.shared-dialog.shared-login{background:#f9fbff}.shared-login form{padding:28px}.shared-login h1{font-size:23px}.shared-login p{margin:10px 0 22px}.shared-login label{margin-bottom:16px}#shared-tools{display:flex;align-items:center;gap:10px;padding:0;font-size:11px;min-width:0}#shared-tools>span{text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#shared-tools button{width:auto;font-size:12px;min-height:32px;padding:5px 10px}#rule-prompt{background:#fff;border-color:var(--control);border-radius:14px}.price-review-dialog .price-review-prices{background:#fff}.price-review-dialog .price-review-prices dd strong{color:#172338}.toast{left:50%;border-radius:11px}.toast.failure{background:#8e3030}
#doc-supplier[hidden],#doc-warehouse[hidden]{display:none}.supplier-picker{position:relative;min-width:0;margin-top:6px}.supplier-picker>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:34px;padding:7px 10px;border:1px solid var(--control);border-radius:9px;background:#fff;color:var(--ink);font-size:12px;cursor:pointer;list-style:none}.supplier-picker>summary::-webkit-details-marker{display:none}.supplier-picker>summary>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.supplier-picker>summary:hover{border-color:var(--blue)}.supplier-pick-menu{position:absolute;inset-inline:0;top:calc(100% + 5px);z-index:15;min-width:min(240px,calc(100vw - 50px));padding:8px;border:1px solid var(--control);border-radius:11px;background:#fff;box-shadow:0 8px 25px #2747731c}.supplier-pick-menu input{margin:0;min-height:32px!important;font-size:12px}.supplier-pick-options{max-height:min(240px,35dvh);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;margin-top:6px}.supplier-pick-option{display:flex;width:100%;justify-content:flex-start;text-align:left;white-space:normal;overflow-wrap:anywhere;padding:7px 8px;border:0;box-shadow:none;font-size:12px}.supplier-pick-option[aria-pressed=true]{background:var(--blue-soft);color:var(--blue)}.supplier-pick-option[hidden],.supplier-pick-empty[hidden]{display:none}.supplier-pick-empty{font-size:12px;padding:9px;color:var(--muted)}.queue-source-stack .metadata label>input,.queue-source-stack .metadata label>select{margin-top:4px}.queue-source-stack .warehouse-picker>summary{min-height:34px;padding:7px 10px}.weight-conversion-option>input{align-self:center;flex:none}
@supports(backdrop-filter:blur(20px)){:root{--glass:#f9fbffb8}.sidebar,.document-queue,.queue-source-stack>.editor-panel,.queue-source-stack>.preview-panel,.queue-content>.details-panel,.workflow-bottom,.sheet:not(:has(.queue-layout)),dialog:not(#source-image-dialog){backdrop-filter:blur(20px)}}
@media(min-width:1600px){.queue-layout:not(.history-workbench){grid-template-columns:210px minmax(0,1fr)}.queue-content{grid-template-columns:minmax(360px,.92fr) minmax(0,1.85fr)}}
@media(max-width:1250px){.app-shell{padding:14px 16px 0}.sidebar{gap:14px;padding:12px 16px}.brand{min-width:145px}.brand strong{font-size:17px}.sidebar nav a{padding:8px;font-size:12px}.sidebar-bottom{gap:6px}.sidebar-bottom nav a{font-size:11px}.queue-layout:not(.history-workbench){grid-template-columns:180px minmax(0,1fr);gap:12px}.document-queue{padding:15px 10px}.queue-content{grid-template-columns:minmax(290px,.95fr) minmax(0,1.55fr);gap:12px}.queue-source-stack .metadata{padding:11px 12px;gap:8px 10px}.queue-source-stack .label-line button{font-size:10px}.queue-content .detail-toolbar{padding:10px 12px}.queue-row>summary{gap:7px;padding:9px;min-height:64px}.queue-content .preview-panel>.panel-heading{padding:9px 12px}.source-actions [data-action=recognize]{min-width:70px}#shared-tools{flex-wrap:nowrap;gap:6px}#shared-tools>span{max-width:110px;overflow-wrap:anywhere}.workflow-bottom>.actions{max-width:430px}}
@media(max-width:1050px){.sidebar{flex-wrap:wrap;gap:10px}.sidebar>nav{order:3;width:100%;overflow:auto;flex-wrap:wrap}.sidebar-bottom{margin-left:auto}.sidebar nav a{font-size:12px}.queue-layout:not(.history-workbench){height:auto;grid-template-columns:170px minmax(0,1fr);gap:12px}.queue-content{display:flex;flex-direction:column;gap:14px;min-height:0;height:auto}.queue-source-stack{gap:14px;min-height:0;width:100%}.queue-source-stack>.preview-panel{flex:none;height:400px}.queue-content>.details-panel{height:640px;flex:none;width:100%}.queue-source-stack .metadata{gap:8px 14px;padding:12px}.queue-source-stack .label-line button{font-size:11px}.document-queue{max-height:calc(100dvh - 175px);position:sticky;top:12px}.queue-documents{display:block;overflow:auto;max-height:none}.workflow-bottom{grid-template-columns:minmax(0,1fr)}.workflow-bottom>.document-summary{grid-column:1;grid-row:auto}.workflow-bottom>p{grid-column:1;grid-row:auto}.workflow-bottom>.actions{grid-column:1;grid-row:auto;max-width:none}.workflow-bottom>.invoice-amount-summary{grid-column:1;grid-row:auto}.settings-section{gap:20px;grid-template-columns:minmax(160px,.65fr) minmax(0,1.35fr)}.history-workbench .queue-content{height:auto;min-height:0}.history-workbench .queue-content>.preview-panel{height:420px}.history-workbench .queue-content>.details-panel{height:580px}}
@media(max-width:700px){.app-shell{padding:10px 10px 0}.sidebar{padding:12px;border-radius:15px;gap:10px}.brand{min-width:130px}.brand strong{font-size:16px}.brand small{font-size:10px}.sidebar>nav{flex-wrap:nowrap;overflow:auto;gap:3px;scrollbar-width:thin}.sidebar nav a{font-size:11px;padding:7px 8px;flex:none;gap:5px}.sidebar-bottom nav a{font-size:11px;padding:5px}.sidebar-bottom nav a i{display:none}.sidebar-bottom{gap:4px;flex-wrap:wrap;justify-content:flex-end;max-width:52%}#shared-tools{justify-content:flex-end;gap:3px}#shared-tools>span{display:none}#shared-tools button{font-size:11px}.topbar{padding-inline:2px}.topbar-right #today,.topbar-divider,.topbar-right>i{display:none}.breadcrumb{font-size:10px}.sheet:not(:has(.queue-layout)){padding:16px;border-radius:15px}.page-heading{display:flex;align-items:flex-start;flex-wrap:wrap;margin-bottom:14px}.page-heading h1{font-size:22px}.page-heading p{font-size:12px;max-width:none}.page-heading>.actions{margin-top:0;justify-content:flex-start;gap:6px}.page-heading>.actions button{min-height:34px;font-size:12px;padding:6px 10px}.queue-layout:not(.history-workbench),.history-workbench{display:block;height:auto}.document-queue{position:relative;top:auto;max-height:none;margin-bottom:14px;padding:12px;border-radius:15px}.queue-heading{margin-bottom:9px}.queue-filters .tabs-row{flex-wrap:nowrap;margin-bottom:8px}.queue-filters .tabs{width:auto;flex:none}.queue-supplier-filter{flex-basis:auto}.queue-documents{display:flex;max-height:156px;overflow:auto;gap:8px;scrollbar-gutter:auto;padding:3px}.queue-document{width:175px;flex:0 0 175px;margin:0}.queue-document-main{min-height:56px}.queue-delete{opacity:1;pointer-events:auto}.queue-source-stack>.preview-panel{height:360px}.queue-content>.details-panel{height:620px;border-radius:15px}.queue-source-stack .metadata{padding:12px;gap:8px 12px}.queue-source-stack .metadata :is(input,select){font-size:12px;min-height:38px}.queue-source-stack .weight-conversion-option{margin-inline:14px}.queue-row>summary{grid-template-columns:22px minmax(0,1.1fr) minmax(0,1fr) 30px;grid-template-areas:"index product product expand" ". sku amount .";gap:7px 8px;min-height:64px;padding:10px}.queue-row-tools{grid-area:1/4/3/5}.queue-row-tools .queue-expand{grid-area:auto}.queue-row-body{padding:8px 12px 12px 40px}.queue-sku .inline-sku-input{font-size:13px}.queue-content .detail-toolbar{padding:10px 12px;gap:6px}.queue-content .detail-toolbar .actions{gap:0}.queue-content .detail-toolbar button{font-size:11px;padding:5px}.workflow-bottom{padding:10px 12px;margin-top:10px;gap:6px}.workflow-bottom>.document-summary{justify-content:space-between;gap:8px}.workflow-bottom .summary-total strong{font-size:23px}.workflow-bottom>.actions{display:flex;width:100%;gap:7px}.workflow-bottom>.actions button{flex:1;min-height:40px;white-space:normal;font-size:12px;padding:7px 9px}.workflow-bottom .erp-default-hint{text-align:left}.workflow-bottom .amount-summary-status{align-items:flex-start;flex-direction:column;gap:5px}.workflow-bottom .amount-summary-values{gap:8px 14px;flex-wrap:wrap}.archive-toolbar,.archive-filters{align-items:stretch}.archive-toolbar>.actions{flex-wrap:wrap}.archive-filters>input{width:auto;flex:1 1 110px}.archive-filters .import-order{flex:1 0 100%}.searchbox{min-width:0;max-width:100%;flex-basis:100%}.settings-section{display:block;padding:0 0 20px}.settings-section>div:first-child{margin-bottom:14px}.settings-section>div:first-child p{max-width:none}.settings-fields{padding:16px}.history-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:10px}.history-record{display:block;padding:14px}.history-record-action{justify-content:flex-start;margin-top:12px}.history-record-action>span{flex-basis:100%}.history-workbench .document-queue{border:1px solid #fff;padding:12px}.history-workbench .queue-documents{max-height:156px}.history-workbench .queue-content>.preview-panel{height:360px}.history-detail-footer{flex-wrap:wrap;gap:8px}.history-detail-footer>span{max-width:100%}.form-grid{grid-template-columns:minmax(0,1fr);gap:14px}.form-grid .full,.form-section-title{grid-column:1}.dialog-header,.dialog-footer{padding:14px 16px}.dialog-body{padding:16px}.dialog-footer p{flex-basis:100%;margin:0}dialog:not(#source-image-dialog){max-width:calc(100vw - 20px);max-height:calc(100dvh - 24px)}.shared-dialog .shared-tabs{padding:10px;gap:5px}.shared-dialog .shared-tabs button{font-size:12px;min-height:32px}.shared-dialog .actions{flex-wrap:wrap}.pagination,.history-pagination{gap:10px}.archive-note{align-items:flex-start}.app-footer{font-size:10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}button:hover:not(:disabled),button:active:not(:disabled){transform:none}}

.queue-goods-with-head{--goods-columns:24px minmax(0,1.15fr) minmax(0,1.1fr) minmax(0,.95fr) minmax(60px,.6fr) 32px}.queue-goods-head,.queue-goods-with-head .queue-row>summary{display:grid;grid-template-columns:var(--goods-columns);gap:10px;padding-inline:12px}.queue-goods-head{position:sticky;top:0;z-index:3;align-items:center;min-height:34px;padding-block:8px;background:#e6eefb;border-bottom:1px solid #d7e2f1;color:var(--muted);font-size:11px;line-height:1.5}.queue-goods-head>span{min-width:0;overflow-wrap:anywhere}.queue-goods-head>span:last-child{text-align:right}.queue-goods-with-head .queue-quantity{min-width:0;text-align:right}.queue-goods-with-head .queue-quantity>.quantity-price{display:block;margin-top:0}.queue-goods-with-head .queue-quantity .packaging-info{justify-content:flex-end}.queue-goods-with-head .queue-amount{white-space:normal;min-width:0}.queue-goods-with-head .amount-value{display:block;white-space:nowrap;font-variant-numeric:tabular-nums}.queue-goods-head .goods-head-product{grid-column:2}.queue-goods-head .goods-head-sku{grid-column:3}.queue-goods-head .goods-head-quantity{grid-column:4;text-align:right}.queue-goods-head .goods-head-amount{grid-column:5;text-align:right}@media(max-width:1250px){.queue-goods-with-head{--goods-columns:20px minmax(0,1.15fr) minmax(0,1fr) minmax(0,.9fr) minmax(53px,.65fr) 26px}.queue-goods-head,.queue-goods-with-head .queue-row>summary{gap:7px;padding-inline:9px}.queue-goods-with-head .amount-value{font-size:11px}}@media(max-width:700px){.queue-goods-with-head{--goods-columns:18px minmax(0,1fr) minmax(0,.9fr) minmax(0,.8fr) 26px}.queue-goods-head,.queue-goods-with-head .queue-row>summary{grid-template-columns:var(--goods-columns);grid-template-areas:"index product product product expand" ". sku quantity amount expand";gap:6px;padding-inline:9px}.queue-goods-head>span:first-child{grid-area:index}.queue-goods-head .goods-head-product{grid-area:product}.queue-goods-head .goods-head-sku{grid-area:sku}.queue-goods-head .goods-head-quantity{grid-area:quantity}.queue-goods-head .goods-head-amount{grid-area:amount}.queue-goods-with-head .queue-row .queue-index{grid-area:index}.queue-goods-with-head .queue-product{grid-area:product}.queue-goods-with-head .queue-sku{grid-area:sku}.queue-goods-with-head .queue-quantity{grid-area:quantity}.queue-goods-with-head .queue-amount{grid-area:amount}.queue-goods-with-head .queue-row-tools{grid-area:expand}.queue-goods-with-head .queue-quantity .packaging-info{flex-wrap:wrap}.queue-goods-with-head .amount-value{font-size:11px}.queue-goods-head{font-size:10px}}

.sheet>.page-heading:has(+.queue-context:not(:empty)){margin-bottom:4px}.sheet>.queue-context{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;margin:0 0 8px;max-height:25dvh}.sheet>.queue-context:empty{display:none}.sheet>.queue-context .rule-rematch-feedback{margin:0;padding:0 2px;font-size:12px;line-height:1.6}.sheet>.queue-context .matching-progress{padding:5px 10px;border-top:0;border-radius:9px}.sheet>.queue-context>.error-box,.sheet>.queue-context .history-notice{flex-basis:100%;margin:0}

.workflow-bottom>p{display:none}.workflow-bottom.has-unsaved>p,.workflow-bottom:has([data-action=save-doc].dirty)>p{display:flex}.workflow-bottom:not(.has-unsaved):not(:has([data-action=save-doc].dirty))>.invoice-amount-summary{grid-row:2}
