*{box-sizing:border-box}body{margin:0;background:#f4f1ea;color:#302d28;font:14px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}header{display:flex;gap:18px;align-items:center;min-height:48px;padding:8px 18px;background:#6b5b4c;color:white;flex-wrap:wrap}header a{color:#efe8df;text-decoration:none}header strong{font-size:16px}#user{margin-left:auto;font-size:12px}main{padding:16px;max-width:1800px;margin:auto}h1{font-size:24px}h2{font-size:19px;margin:0}h3{font-size:15px;margin:16px 0 8px}button,input,select,textarea{font:inherit;border:1px solid #d4cdbf;border-radius:5px;padding:7px 10px;background:#fff;color:inherit}button{cursor:pointer;white-space:nowrap}button:hover{background:#eee9de}button:disabled{opacity:.5;cursor:wait}button.primary{background:#326f7a;color:white;border-color:#326f7a}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #397f8d;outline-offset:2px}.muted{color:#766e64;font-size:12px;line-height:1.6}.notice{padding:10px 18px;background:#fff1c8;color:#735314}.kpis{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}.kpis div{background:#fff;border:1px solid #ddd6ca;min-width:135px;padding:10px 14px}.kpis strong{display:block;font-size:23px;margin-top:4px}.kpis span{font-size:12px;color:#756b5e}nav{display:flex;gap:4px;overflow:auto;border-bottom:1px solid #d4cdbf;padding-bottom:8px}nav button{border:none;background:transparent}nav button.active{background:#6b5b4c;color:white}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:12px 0}#actions{display:flex;gap:7px;flex-wrap:wrap;flex:1}.toolbar input{min-width:260px}.table-wrap{overflow:auto;background:#fff;border:1px solid #ddd6ca;max-height:68vh}table{border-collapse:collapse;width:100%;font-size:13px}th{text-align:left;font-size:11px;text-transform:uppercase;color:#7e7261;background:#fbf9f4;position:sticky;top:0;z-index:1}td,th{padding:10px 12px;border-bottom:1px solid #ece6da;vertical-align:top}tr:hover td{background:#faf8f3}td .sub{display:block;font-size:11px;color:#857966;margin-top:4px}td .row-actions{display:flex;gap:5px;flex-wrap:wrap;min-width:180px}td button{font-size:12px;padding:4px 7px}.badge{display:inline-block;font-size:11px;padding:3px 6px;border-radius:4px;background:#efebe3;white-space:nowrap}.badge.good{background:#e1efdf;color:#326638}.badge.bad{background:#fbe4dc;color:#9c4030}.badge.warn{background:#fff0cf;color:#885f18}.empty{padding:40px;text-align:center;color:#8a7b68}.mono{font-family:ui-monospace,monospace;font-size:12px}#message{position:fixed;right:16px;bottom:16px;z-index:100;display:none;align-items:flex-start;gap:12px;width:min(520px,calc(100vw - 32px));padding:12px 14px;border:1px solid #b8d9c0;border-radius:8px;background:#e5efea;color:#285b34;box-shadow:0 8px 24px #302d2830}#message span{flex:1;line-height:1.45}#message button{border:0;background:transparent;padding:0 3px;font-size:18px;line-height:1;color:inherit}#message.error{border-color:#e5aaa1;background:#fae1d9;color:#913d2c}#login{max-width:520px;background:white;padding:28px;margin:40px auto;border:1px solid #ddd6ca}#login form{display:flex;gap:10px;align-items:end;margin:24px 0}#login label{flex:1}label{display:flex;gap:5px;flex-direction:column;font-size:12px;color:#6c6152}dialog{border:1px solid #d4cdbf;border-radius:8px;width:min(900px,94vw);max-height:90vh;padding:20px;color:inherit;background:#fbfaf6}dialog::backdrop{background:#25231f77}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.dialog-head button{font-size:20px;border:none;background:transparent}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}#fields{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:15px}#fields label.full{grid-column:1/-1}#fields textarea{width:100%;min-height:80px;font-family:ui-monospace,monospace}#fields input,#fields select{width:100%}#form-error{color:#a63d2d;white-space:pre-wrap}.section-actions{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}.scan-grid{display:grid;grid-template-columns:1fr 2fr auto;gap:8px;background:#e6f0ed;padding:14px;margin-top:15px}.scan-grid label{min-width:0}.line-item{display:flex;gap:6px;margin:6px 0}.line-item select{flex:1;min-width:0}.line-item input{max-width:90px}.metadata{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:12px;background:#eee9df;margin-top:12px}.metadata span{font-size:12px}.metadata b{display:block;margin-top:3px}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}.capabilities{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}.capabilities article{background:white;border:1px solid #ddd6ca;padding:14px}.photo{width:38px;height:48px;object-fit:cover;float:left;margin-right:9px;border-radius:4px}@media(max-width:760px){main{padding:10px}.toolbar input{min-width:0;width:100%}#fields{grid-template-columns:1fr}#fields label.full{grid-column:auto}.scan-grid{grid-template-columns:1fr}header{gap:10px}#login form{flex-direction:column;align-items:stretch}.kpis div{min-width:100px;flex:1}.metadata{grid-template-columns:1fr}td,th{padding:8px}}

.sku-product{display:flex;gap:10px;min-width:300px}.sku-product .photo{width:52px;height:68px;object-fit:cover;float:none;margin:0;flex:0 0 auto;border-radius:6px;background:#eee9df}.source-note{color:#397f8d}.candidate-gtin{color:#885f18}.sku-detail-head{display:flex;gap:14px;align-items:flex-start;padding:12px;background:#eee9df;margin-top:12px}.sku-detail-head .photo{width:86px;height:112px;object-fit:cover;float:none;margin:0;border-radius:6px}.sku-detail-head p{margin:5px 0}@media(max-width:760px){.sku-product{min-width:240px}}
.environment-badge{font-size:11px;padding:3px 7px;border-radius:999px;background:#dff0e4;color:#245d32;border:1px solid #b8d9c0}.remember-row{display:flex!important;flex-direction:row!important;align-items:center;gap:7px!important;white-space:nowrap}.remember-row input{width:auto!important}.catalog-errors{display:flex;flex-direction:column;gap:5px;padding:10px 12px;margin:10px 0;background:#fff0cf;color:#75510f;border:1px solid #ead09a}.catalog-errors span{font-size:12px}button[title],label[title],th[title],.kpis div[title],.capabilities article[title]{cursor:help}button[title]{cursor:pointer}@media(max-width:760px){.environment-badge{order:3}#login form{gap:14px}.remember-row{white-space:normal}}
details.catalog-errors{display:block}details.catalog-errors summary{cursor:pointer;font-weight:600}details.catalog-errors ul{margin:8px 0 0;padding-left:20px}details.catalog-errors li{margin:4px 0}
details.manual-correction{margin-top:16px;padding:10px 12px;border-top:1px solid #e2dcd2;color:#665e54;font-size:12px}details.manual-correction summary{cursor:pointer}details.manual-correction p{margin:8px 0}
.help-strip{margin:0 0 12px;padding:10px 14px;border:1px solid #cbdcf6;border-radius:10px;background:#f4f8ff;color:#294e7a;font-size:14px}
.workspace-intro{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 8px;padding:12px 14px;border:1px solid #cbdcf6;border-radius:8px;background:#f4f8ff;color:#294e7a}.workspace-intro div{display:flex;flex-direction:column;gap:4px}.workspace-intro span{font-size:12px;color:#526f91}.workflow-status{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:0 0 12px;padding:9px 12px;border:1px solid #e3d5ad;background:#fff8e3;color:#6e5320;font-size:12px}.workflow-status button{padding:3px 7px;font-size:12px}.pager,.list-count{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:9px 2px;color:#746a5e;font-size:12px}.pager button{padding:4px 8px}.pager button:disabled{cursor:default}.guide-current{margin:12px 0;padding:12px;border:1px solid #ddd6ca;background:#f8f6f1}.guide-current h3{margin-top:0}.guide-warning,.guide-ok{padding:10px 12px;margin:8px 0}.guide-warning{background:#fff0cf;color:#75510f}.guide-ok{background:#e1efdf;color:#326638}.guide-warning ul{margin:7px 0 0;padding-left:20px}.guide-steps{display:grid;gap:9px;padding-left:28px}.guide-steps li{padding:10px 12px;background:white;border:1px solid #e1dace}.guide-steps li>strong,.guide-steps li>span{display:block}.guide-steps li>span{margin-top:4px;color:#665e54;font-size:12px;line-height:1.55}.guide-state{display:block;margin-top:7px;padding:8px 10px;border-radius:4px}.guide-state.good{background:#e1efdf;color:#326638}.guide-state.warn{background:#fff0cf;color:#75510f}.manual-path{margin-top:8px;padding:9px 10px;background:#f4f1ea;color:#51483e;font-size:12px;line-height:1.55}.guide-links{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.guide-links a{display:inline-block;padding:7px 10px;border:1px solid #b9cbe2;border-radius:5px;background:#f4f8ff;color:#285b7d;text-decoration:none}.guide-links a:hover{text-decoration:underline}
@media(max-width:760px){.workspace-intro{align-items:stretch;flex-direction:column}.workspace-intro button{width:100%}.pager{justify-content:center;flex-wrap:wrap}}
.intro-actions{display:flex!important;flex-direction:row!important;gap:8px}.connection-list{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}.connection-card{padding:14px;border:1px solid #ddd6ca;background:#fff}.connection-title{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.connection-title strong,.connection-title span{display:block}.connection-title span{margin-top:4px;color:#766e64;font-size:12px}.connection-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.connection-fields .full{grid-column:1/-1}.connection-fields input,.connection-fields select{width:100%}.connection-state{min-height:38px;padding:8px 10px;background:#f4f1ea;color:#665e54;font-size:12px;line-height:1.5}.security-note{display:flex;flex-direction:column;gap:4px;padding:11px 13px;background:#e6f0ed;color:#285c52}.security-note span{font-size:12px;line-height:1.5}.market-connections{display:grid;grid-template-columns:1fr 1fr;gap:10px}.market-connections article{display:grid;grid-template-columns:1fr auto;gap:7px;padding:12px;background:#fff;border:1px solid #ddd6ca}.market-connections article>span:last-child{grid-column:1/-1;color:#766e64;font-size:12px}.connection-help{margin-top:14px;padding:12px 14px;background:#f4f8ff;border:1px solid #cbdcf6}.connection-help li,.connection-help p{font-size:12px;line-height:1.55}.signature-step{margin-top:16px;padding:14px;border:2px solid #397f8d;background:#fff}.signature-step textarea{width:100%;min-height:75px;font-family:ui-monospace,monospace;font-size:11px}.signature-step label+label{margin-top:10px}@media(max-width:760px){.intro-actions{flex-direction:column!important}.connection-list,.connection-fields,.market-connections{grid-template-columns:1fr}.connection-fields .full{grid-column:auto}}
.confirm-cost{display:flex;flex-direction:row;align-items:flex-start;gap:8px;margin:12px 0;padding:10px;background:#fff0cf;color:#75510f}.confirm-cost input{margin-top:2px}#suz-canonical,#suz-order-signature{width:100%;min-height:100px;margin:6px 0 12px;font-family:ui-monospace,monospace;font-size:11px}
.signature-step select,#suz-crypto-cert{display:block;width:100%;max-width:100%;margin:6px 0 12px}.signature-step details,#detail-body details{margin-top:14px;padding:10px;border:1px solid #ddd6ca;border-radius:5px;background:#faf8f3}.signature-step summary,#detail-body summary{cursor:pointer;color:#326f7a}.signature-step details label,#detail-body details label{display:block;margin:8px 0}
.marketplace-card>label{margin-top:14px}.marketplace-card .connection-fields{margin-bottom:0}.connection-doc{display:inline-block;margin-top:2px;color:#285b7d;font-size:12px}.connection-doc:hover{text-decoration:none}
header select{min-width:120px;background:#fff;color:#302d28}

.canonical-status{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 12px;padding:11px 14px;border:1px solid #b8d9c0;border-radius:7px;background:#eef8f0;color:#285b34}.canonical-status>div{display:flex;flex-direction:column;gap:4px}.canonical-status span{font-size:12px}.canonical-status.has-conflicts{border-color:#ead09a;background:#fff8e3;color:#75510f}.canonical-conflicts{font-weight:600;white-space:nowrap}@media(max-width:760px){.canonical-status{align-items:flex-start;flex-direction:column}.canonical-conflicts{white-space:normal}}

.inventory-ledger-status{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 12px;padding:11px 14px;border:1px solid #b8d9c0;border-radius:7px;background:#eef8f0;color:#285b34}.inventory-ledger-status>div{display:flex;flex-direction:column;gap:4px}.inventory-ledger-status span{font-size:12px}.inventory-ledger-status.disabled{border-color:#ddd6ca;background:#f8f6f1;color:#665e54}.ledger-note{max-width:520px;text-align:right}@media(max-width:760px){.inventory-ledger-status{align-items:flex-start;flex-direction:column}.ledger-note{text-align:left}}

.fbs-inbox-status{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 12px;padding:11px 14px;border:1px solid #b8d9c0;border-radius:7px;background:#eef8f0;color:#285b34}.fbs-inbox-status>div{display:flex;flex-direction:column;gap:4px}.fbs-inbox-status span{font-size:12px}.fbs-inbox-status.has-problems{border-color:#ead09a;background:#fff8e3;color:#75510f}.fbs-sync-meta{text-align:right;line-height:1.55}.fbs-sync-meta.stale{color:#9a6514;font-weight:700}@media(max-width:760px){.fbs-inbox-status{align-items:flex-start;flex-direction:column}.fbs-sync-meta{text-align:left}}
.supply-head{display:grid;grid-template-columns:160px 1fr 1fr;gap:10px;margin:14px 0}.supply-head input,.supply-head select{width:100%}.supply-line{display:grid;grid-template-columns:1fr 100px 38px;gap:7px;margin:7px 0}.supply-line select,.supply-line input{width:100%;min-width:0}#supply-error{color:#a63d2d;white-space:pre-wrap}@media(max-width:760px){.supply-head{grid-template-columns:1fr}.supply-line{grid-template-columns:1fr 90px 38px}}
.stock-compare-summary{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:8px;margin:12px 0}.stock-compare-summary div{padding:10px 12px;border:1px solid #ddd6ca;background:#fff}.stock-compare-summary span,.stock-compare-summary strong{display:block}.stock-compare-summary span{font-size:11px;color:#766e64}.stock-compare-summary strong{font-size:20px;margin-top:4px}.stock-source-warning{padding:10px 12px;border:1px solid #ead09a;background:#fff8e3;color:#75510f;font-size:12px;line-height:1.5}@media(max-width:760px){.stock-compare-summary{grid-template-columns:1fr 1fr}}
.gtin-intro{margin:0 0 12px;padding:12px 14px;border:1px solid #ead09a;background:#fff8e3;color:#5f491c;line-height:1.5}.gtin-product{display:flex;align-items:center;gap:12px;margin:12px 0;padding:12px;border:1px solid #ddd6ca;background:#fff}.gtin-product .photo{width:52px;height:68px}.gtin-product strong,.gtin-product span{display:block}.gtin-code{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0;padding:13px 14px;border:1px solid #b8d9c0;background:#eef8f0}.gtin-code span{font-size:12px;color:#516157}.gtin-code strong{display:block;margin-top:3px;font:700 22px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.04em}.gtin-steps{margin:12px 0;padding-left:22px}.gtin-steps li{margin:8px 0;line-height:1.45}.gtin-actions{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.gtin-actions a{display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border:1px solid #8f8578;border-radius:5px;background:#fff;color:#3e3933;text-decoration:none}.gtin-actions .primary-link{border-color:#356f75;background:#356f75;color:#fff}.gtin-edit{margin-top:14px;padding-top:12px;border-top:1px solid #ddd6ca}.gtin-edit form{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:end}.gtin-edit label{display:grid;gap:5px}.gtin-edit input{width:100%}.gtin-result{padding:10px 12px;border:1px solid #b8d9c0;background:#eef8f0;color:#285b34}.gtin-result.bad{border-color:#e5aaa1;background:#fff0ed;color:#8f2f22}@media(max-width:620px){.gtin-code{align-items:flex-start;flex-direction:column}.gtin-edit form{grid-template-columns:1fr}.gtin-actions>*{width:100%}}
.field-hint{display:block;font-size:12px;line-height:1.35;color:#766e64;font-weight:400}
.field-error{display:block;font-size:12px;line-height:1.35;color:#9f3f2d;font-weight:700}
.connection-auth-error{margin:8px 0;padding:8px 10px;border:1px solid #ead09a;border-radius:5px;background:#fff8e3;color:#75510f;font-size:12px;line-height:1.45}
/* A single tactile response for every native button, including buttons rendered later. */
button{transform:translateY(0) scale(1);transform-origin:center;transition:transform .08s ease,box-shadow .08s ease,filter .08s ease,background-color .12s ease,border-color .12s ease}
button:not(:disabled):active{transform:translateY(1px) scale(.97);box-shadow:inset 0 2px 5px #302d2838;filter:brightness(.94)}
button.button-clicked:not(:disabled){animation:button-click-feedback .18s ease-out}
@keyframes button-click-feedback{0%{transform:translateY(1px) scale(.97);box-shadow:inset 0 2px 5px #302d2838;filter:brightness(.94)}55%{transform:translateY(1px) scale(.985);filter:brightness(.97)}100%{transform:translateY(0) scale(1);box-shadow:none;filter:none}}
@media(prefers-reduced-motion:reduce){button{transition:none}button.button-clicked:not(:disabled){animation:none}button:not(:disabled):active{transform:none;filter:brightness(.94)}}
/* FBS work queue: WB-like information hierarchy, MISAVAPRO visual language. */
.fbs-filter-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 10px}.fbs-filter-row .fbs-market-filter{margin:0}.fbs-filter-row label{display:flex;align-items:center;flex-direction:row;gap:7px;color:#665e54}.fbs-filter-row select{padding:5px 9px}.fbs-secondary-filters{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.fbs-readiness{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px;padding:10px 12px;border:1px solid #b8d9c0;border-radius:8px;background:#eef8f0;color:#285b34}.fbs-readiness.has-problems{border-color:#ead09a;background:#fff8e3;color:#75510f}.fbs-readiness>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.fbs-readiness span{padding:4px 8px;border-radius:999px;background:#ffffffb8;font-size:12px}.fbs-readiness .bad{color:#923c2c;background:#fff0ed}.fbs-readiness .good{color:#285b34;background:#e1efdf}
.fbs-variant{display:grid;gap:3px;min-width:230px}.fbs-variant strong{font-size:14px;color:#302d28}.fbs-variant span{font-size:12px;color:#665e54}.fbs-order-age{display:block;margin-top:5px;color:#766e64;font-size:11px}
.bulk-gtin-input{width:100%;min-width:190px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}#bulk-gtin-error,#wb-supply-error{color:#a63d2d;white-space:pre-wrap}.wb-supply-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0}.wb-supply-fields select,.wb-supply-fields input{width:100%}.fbs-selection{top:auto!important;bottom:8px!important;margin:10px 0 0!important;z-index:4}
@media(max-width:760px){.fbs-readiness{align-items:stretch;flex-direction:column}.fbs-readiness button{width:100%}.fbs-filter-row{align-items:stretch;flex-direction:column}.fbs-filter-row label{justify-content:space-between}.bulk-gtin-input{min-width:150px}.wb-supply-fields{grid-template-columns:1fr}}
.fbs-kiz-context{display:flex;justify-content:space-between;gap:16px;align-items:center;margin:0 0 14px;padding:12px 14px;border:1px solid #99c8cf;border-radius:10px;background:#eef9fa;color:#234b50}.fbs-kiz-context span{color:#49686c}.fbs-line-actions{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:3px 0}.fbs-line-actions button{white-space:nowrap}
.fbs-stage-filter{display:flex;gap:2px;margin:0 0 10px;border-bottom:1px solid #d4cdbf;overflow:auto}.fbs-stage-filter button{border:0;border-radius:5px 5px 0 0;background:transparent}.fbs-stage-filter button.active{background:#6b5b4c;color:#fff}.fbs-stage-filter b{display:inline-block;min-width:20px;margin-left:4px;padding:1px 5px;border-radius:999px;background:#eee9df;color:#51483e;font-size:11px}.fbs-stage-filter button.active b{background:#fff;color:#51483e}.fbs-market-filter{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 10px}.fbs-market-filter button.active{border-color:#6b5b4c;background:#6b5b4c;color:#fff}.fbs-selection{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 10px;padding:11px 14px;border:1px solid #d4cdbf;border-radius:8px;background:#fbf9f4;box-shadow:0 4px 12px #302d2812}.fbs-selection.active{border-color:#86b6be;background:#eef9fa}.fbs-selection>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.fbs-selection>div:first-child{align-items:flex-start;flex-direction:column;gap:2px}.fbs-selection span{font-size:12px;color:#6b6258}.fbs-selection .fbs-kiz-scope{display:flex;align-items:center;flex-direction:row;gap:6px;padding-left:6px;border-left:1px solid #d4cdbf}.fbs-selection .fbs-kiz-scope select{padding:5px 8px}.fbs-checkbox{width:18px;height:18px;margin:1px 0;accent-color:#326f7a}.fbs-order-select{display:flex;align-items:center;flex-direction:row;gap:5px;margin:0 0 6px;color:#326f7a;font-size:11px;font-weight:700}.fbs-order-select input{width:16px;height:16px;padding:0;accent-color:#326f7a}.bulk-kiz-summary{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:8px;margin:14px 0}.bulk-kiz-summary span{padding:10px 12px;border:1px solid #ddd6ca;background:#fff;color:#766e64;font-size:11px}.bulk-kiz-summary b{display:block;margin-top:3px;color:#302d28;font-size:20px}.bulk-kiz-origin{display:grid;grid-template-columns:minmax(220px,360px) 1fr;align-items:center;gap:7px 12px;margin:12px 0;padding:11px 14px;border:1px solid #b8d9c0;background:#eef8f0;color:#285b34}.bulk-kiz-origin select{grid-row:2;min-width:0}.bulk-kiz-origin span{grid-column:2;grid-row:1/3;color:#5b6e60;font-size:12px;line-height:1.45}.bulk-kiz-blockers{margin:12px 0;padding:11px 14px;border:1px solid #ead09a;background:#fff8e3;color:#75510f}.bulk-kiz-blockers ul{margin:7px 0 0;padding-left:20px}.bulk-kiz-blockers li{margin:4px 0}.bulk-kiz-operation{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0;padding:12px 14px;border:1px solid #ddd6ca;background:#fff}.bulk-kiz-operation span{font-weight:700}@media(max-width:760px){.fbs-stage-filter button{flex:0 0 auto}.fbs-selection{position:static;align-items:stretch;flex-direction:column}.fbs-selection>div:last-child button{flex:1}.fbs-selection .fbs-kiz-scope{width:100%;justify-content:space-between;padding:8px 0 0;border-left:0;border-top:1px solid #d4cdbf}.bulk-kiz-summary{grid-template-columns:1fr 1fr}.bulk-kiz-origin{grid-template-columns:1fr}.bulk-kiz-origin select,.bulk-kiz-origin span{grid-column:1;grid-row:auto}.bulk-kiz-operation{align-items:stretch;flex-direction:column}}

.fbs-print-selected{border-color:#326f7a;color:#285e67;font-weight:700}.fbs-print-selected:hover:not(:disabled){background:#dff0f2}
.kiz-stock-cell{display:grid;gap:3px;min-width:145px}.kiz-stock-cell span{color:#766e64;font-size:11px}.kiz-stock-cell strong{color:#285b34;font-size:13px}.kiz-stock-summary{display:grid;grid-template-columns:repeat(6,minmax(100px,1fr));gap:8px;margin:0 0 10px}.kiz-stock-summary span{padding:10px 12px;border:1px solid #ddd6ca;background:#fff;color:#766e64;font-size:11px}.kiz-stock-summary b{display:block;margin-top:3px;color:#302d28;font-size:20px}.kiz-stock-summary span:nth-child(2){border-color:#b8d9c0;background:#eef8f0}.kiz-stock-summary span:nth-child(2) b{color:#285b34}@media(max-width:760px){.kiz-stock-summary{grid-template-columns:1fr 1fr}}
.kiz-stock-filter{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px 0 8px}.kiz-stock-filter h3{margin:0}.kiz-stock-filter label{display:flex;align-items:center;gap:7px;color:#665e54;font-size:12px}.kiz-stock-filter select{min-width:160px}.kiz-stock-guide{padding:8px 10px;border:1px solid #b8d9c0;background:#eef8f0;color:#285b34;font-size:13px}@media(max-width:760px){.kiz-stock-filter{align-items:stretch;flex-direction:column}.kiz-stock-filter label{justify-content:space-between}}

/* Keyboard-first scanner embedded into the accepted FBS work queue. */
.fbs-scanner{margin:0 0 14px;padding:14px;border:2px solid #6b5b4c;border-radius:12px;background:#fff;box-shadow:0 6px 18px #302d2810}.fbs-scanner.disabled{border-color:#d4cdbf;background:#f8f6f1;color:#665e54}.scanner-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.scanner-head>div{display:flex;flex-direction:column;gap:3px}.scanner-head>div>strong{font-size:18px}.scanner-head>div>span{font-size:12px;color:#6b6258}.scanner-qz{padding:4px 8px;border-radius:999px;background:#fff0cf;color:#885f18;font-size:11px;font-weight:700;white-space:nowrap}.scanner-qz.ready{background:#e1efdf;color:#285b34}.scanner-work-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,340px);gap:8px;align-items:start;margin:12px 0}.fbs-scanner form{display:grid;grid-template-columns:1fr auto;gap:8px;margin:0}.fbs-scanner form input{min-width:0;padding:13px 14px;border:2px solid #8f8578;border-radius:8px;font:700 18px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace}.fbs-scanner form input:focus{border-color:#326f7a;outline:3px solid #99c8cf66}.fbs-scanner form button{min-width:130px}.scanner-print-menu{position:relative;margin:0!important;padding:0!important;border:1px solid #d4cdbf!important;border-radius:8px!important;background:#fbf9f4!important}.scanner-print-menu summary{min-height:49px;padding:14px 38px 12px 12px;cursor:pointer;font-weight:700;color:#51483e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.scanner-print-menu>div{position:absolute;right:0;z-index:6;display:grid;gap:9px;width:100%;min-width:300px;padding:12px;border:1px solid #d4cdbf;border-radius:8px;background:#fff;box-shadow:0 10px 24px #302d2830}.scanner-print-menu label{display:flex;align-items:center;flex-direction:row;gap:8px;color:#302d28;font-size:13px}.scanner-print-menu input{width:17px;height:17px;padding:0;accent-color:#326f7a}.scanner-print-menu small{color:#766e64;line-height:1.4}.scanner-idle,.scanner-processing,.scanner-success,.scanner-warning,.scanner-error{display:flex;flex-direction:column;gap:5px;padding:13px 15px;border-radius:8px}.scanner-idle{background:#f4f1ea;color:#51483e;text-align:center}.scanner-idle strong{font-size:21px}.scanner-processing{background:#eef9fa;color:#234b50}.scanner-success{background:#e1efdf;color:#285b34}.scanner-warning{background:#fff8e3;color:#75510f}.scanner-error{background:#fff0ed;color:#923c2c}.scanner-success>strong,.scanner-warning>strong,.scanner-error>strong,.scanner-processing>strong{font-size:17px}.fbs-scanner ul{display:grid;gap:5px;margin:6px 0;padding:0;list-style:none}.fbs-scanner li{display:flex;gap:4px;flex-direction:column;padding:7px 9px;background:#ffffffa8;border:1px solid currentColor;border-radius:5px}.fbs-scanner li span{font-size:12px}.scanner-choice{display:flex;gap:7px;flex-wrap:wrap;margin-top:6px}.scanner-settings{margin-top:10px;padding:9px 11px!important}.scanner-settings summary{font-weight:700}.scanner-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}.scanner-settings select{width:100%}.scanner-settings a{display:inline-flex;align-items:center;padding:7px 10px;border:1px solid #8f8578;border-radius:5px;background:#fff;color:#3e3933;text-decoration:none}.scanner-settings p{color:#766e64;font-size:11px;line-height:1.45}.fbs-scanner.processing form input{opacity:.6}.fbs-scanner.processing form button{cursor:wait}
@media(max-width:760px){.scanner-head{flex-direction:column}.scanner-work-row{grid-template-columns:1fr}.fbs-scanner form{grid-template-columns:1fr}.fbs-scanner form button{width:100%}.scanner-settings-grid{grid-template-columns:1fr}.scanner-print-menu>div{position:static;min-width:0}}

/* Explicit FBS print selection: one checkbox and copy count per label type. */
.scanner-work-row{grid-template-columns:minmax(300px,1fr) minmax(0,1.5fr)}
.scanner-print-controls{display:flex;align-items:center;gap:9px;flex-wrap:wrap;min-width:0;padding:7px 10px;border:1px solid #d4cdbf;border-radius:8px;background:#fbf9f4}
.scanner-print-options{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.fbs-tape-help{flex-basis:100%;font-size:10px;color:#6c6256;line-height:1.3}
.scanner-print-option{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;color:#302d28;font-size:12px}
.scanner-print-option label{display:inline-flex;align-items:center;gap:4px;cursor:pointer}
.scanner-print-option input[type=checkbox]{width:16px;height:16px;margin:0;accent-color:#326f7a}
.scanner-print-option input[type=number]{width:47px;min-height:30px;padding:3px 2px;text-align:center;border:1px solid #bcb3a6;border-radius:5px;background:#fff;color:#302d28;font-size:12px}
.scanner-print-option input[type=number]:disabled{background:#eeeae3;color:#888079}
.scanner-print-button{min-height:37px;padding:7px 12px;white-space:nowrap}
.scanner-print-controls small{flex-basis:100%;color:#766e64;font-size:11px;line-height:1.3}
@media(max-width:1100px){.scanner-work-row{grid-template-columns:1fr}}
@media(max-width:760px){.scanner-print-options{width:100%;align-items:flex-start;flex-direction:column}.scanner-print-button{width:100%}}

/* WB keeps orders in "New" and groups them by supply in "On assembly". */
/* KIZ readiness is backed by codes assigned to this exact FBS line. */
tr.fbs-kiz-with td{background:#eef8ef!important}
tr.fbs-kiz-with td:first-child{box-shadow:inset 4px 0 #3b8550}
tr.fbs-kiz-waiting td{background:#fff8e3!important}
tr.fbs-kiz-waiting td:first-child{box-shadow:inset 4px 0 #b48a31}
tr.fbs-kiz-error td{background:#fff0ed!important}
tr.fbs-kiz-error td:first-child{box-shadow:inset 4px 0 #b04f3d}
.fbs-kiz-select{display:inline-flex!important;align-items:center;flex-direction:row!important;gap:5px;white-space:nowrap;font-size:12px}
.fbs-kiz-select input{width:16px;height:16px;margin:0;accent-color:#326f7a}
.fbs-kiz-progress{flex-basis:100%;display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:12px;line-height:1.5;color:#51483e}
.fbs-kiz-progress:empty{display:none}
.fbs-kiz-progress label{min-width:220px;max-width:100%;display:flex;gap:5px;flex-direction:column}
.fbs-kiz-progress select{max-width:520px;width:100%}
.wb-supplies-status{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 10px;padding:12px 14px;border:1px solid #d9d6e3;border-radius:10px;background:#f7f6fa}.wb-supplies-status>div{display:flex;flex-direction:column;gap:4px}.wb-supplies-status>div:last-child{align-items:flex-end}.wb-supplies-status span{color:#6b6477;font-size:12px}.wb-supplies-status button{margin-top:3px}.wb-supplies-message{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 10px;padding:14px;border:1px solid #d9d6e3;border-radius:10px;background:#f7f6fa;color:#514b5e}.wb-supplies-message span{color:#6b6477;font-size:12px}.wb-supplies-message.error,.wb-supplies-warning{border-color:#e5aaa1;background:#fff0ed;color:#923c2c}.wb-supplies-warning{margin:0 0 10px;padding:10px 12px;border:1px solid #e5aaa1;border-radius:8px;font-size:12px}.wb-supply-detail{margin:0 0 12px;padding:12px 14px;border:1px solid #d9d6e3;background:#f7f6fa}.wb-supply-detail p{margin:4px 0}
@media(max-width:760px){.wb-supplies-status{align-items:stretch;flex-direction:column}.wb-supplies-status>div:last-child{align-items:stretch}.wb-supplies-status button{width:100%}.wb-supplies-message{align-items:stretch;flex-direction:column}.wb-supplies-message button{width:100%}}

/* FBS workbench: product-first, one action bar, no floating footer. */
body[data-workspace="order"]{overflow-anchor:none}
body[data-workspace="order"] main{padding-top:10px}
body[data-workspace="order"] .workspace-intro{padding:7px 10px;margin-bottom:6px;border-color:#d4cdbf;border-radius:5px;background:#fbf9f4;color:#51483e;gap:10px}
body[data-workspace="order"] .workspace-intro>div:first-child{gap:2px}
body[data-workspace="order"] .workspace-intro strong{font-size:12px}
body[data-workspace="order"] .workspace-intro>div:first-child>strong{display:none}
body[data-workspace="order"] .workspace-intro span{color:#665e54;font-size:11px}
body[data-workspace="order"] .intro-actions{gap:5px}
body[data-workspace="order"] .intro-actions button{min-height:30px;padding:5px 8px;font-size:12px}
body[data-workspace="order"] #workflow-status{display:none}
body[data-workspace="order"] #kpis{display:none}
body[data-workspace="order"] .kpis{gap:0;margin-bottom:7px;border:1px solid #ddd6ca;border-radius:5px;background:#fbf9f4}
body[data-workspace="order"] .kpis div{display:flex;align-items:center;gap:6px;min-width:0;flex:1;padding:6px 10px;border:0;border-right:1px solid #e6dfd3;background:transparent}
body[data-workspace="order"] .kpis div:last-child{border-right:0}
body[data-workspace="order"] .kpis span{font-size:11px;line-height:1.3;color:#665e54}
body[data-workspace="order"] .kpis strong{margin:0;font-size:15px;line-height:1.2;white-space:nowrap}
body[data-workspace="order"] .toolbar{gap:7px;padding:8px 0}
body[data-workspace="order"] .toolbar input{height:32px;padding:5px 9px;font-size:12px;min-width:250px}
body[data-workspace="order"] .toolbar button{min-height:30px;padding:5px 8px;font-size:12px}
body[data-workspace="order"] #actions{gap:5px;align-items:center}
body[data-workspace="order"] button:active:not(:disabled){transform:none}
body[data-workspace="order"] button.button-clicked:not(:disabled){animation:none}
body[data-workspace="order"] #actions .fbs-more{position:relative;flex:0 0 auto;margin:0;padding:0;border:0;background:transparent;font-size:12px;color:#51483e}
body[data-workspace="order"] #actions .fbs-more>summary{min-height:30px;padding:5px 8px;border:1px solid #d4cdbf;border-radius:4px;background:#fff;cursor:pointer;white-space:nowrap}
body[data-workspace="order"] #actions .fbs-more>div{position:absolute;top:calc(100% + 4px);right:0;z-index:8;display:flex;flex-direction:column;align-items:stretch;gap:5px;min-width:190px;max-width:min(280px,calc(100vw - 38px));padding:8px;border:1px solid #d4cdbf;border-radius:5px;background:#fff;box-shadow:0 4px 14px #302d2820}
body[data-workspace="order"] #actions .fbs-more>div button{text-align:left;min-height:30px}
.fbs-workspace{min-width:0;isolation:isolate}
.fbs-workspace button,.fbs-workspace select{min-height:30px;padding:5px 8px;font-size:12px}
.fbs-workspace button:disabled{cursor:default}
.fbs-steps{display:flex;align-items:center;flex-wrap:wrap;gap:0;margin:0 0 7px;padding:6px 0;border-bottom:1px solid #ddd6ca;color:#665e54;font-size:12px;line-height:1.4}
.fbs-steps>span,.fbs-steps>div{display:flex;align-items:center;gap:6px;min-width:0}
.fbs-steps>span+span,.fbs-steps>div+div{margin-left:18px}
.fbs-steps b{display:inline-flex;align-items:center;justify-content:center;flex:0 0 21px;height:21px;border-radius:50%;background:#ebe4d9;color:#51483e;font-size:11px}
.fbs-steps strong{color:#51483e;font-size:12px;font-weight:600}
.fbs-steps .active b{background:#326f7a;color:#fff}
.fbs-steps>.fbs-sync-meta{display:block;flex:0 1 auto;max-width:350px;margin-left:auto!important;padding-left:12px;text-align:right;color:#665e54;font-size:10px;line-height:1.4}
.fbs-steps>.fbs-sync-meta.stale{color:#885f18;font-weight:600}
.fbs-workspace .fbs-inbox-status{align-items:center;gap:10px;margin:0 0 7px;padding:6px 9px;border:0;border-left:3px solid #88af90;border-radius:0;background:#eef8f0;font-size:12px;line-height:1.35}
.fbs-workspace .fbs-inbox-status{display:none}
.fbs-workspace .fbs-inbox-status>div{display:flex;flex-direction:row;align-items:center;gap:9px;min-width:0;flex-wrap:wrap}
.fbs-workspace .fbs-inbox-status>div>strong{font-size:12px}
.fbs-workspace .fbs-inbox-status>strong{font-size:12px}
.fbs-workspace .fbs-inbox-status span{font-size:11px}
.fbs-workspace .fbs-inbox-status.has-problems{border-left-color:#b48a31;background:#fff8e3}
.fbs-workspace .fbs-sync-meta{font-size:11px;line-height:1.35;flex:0 0 auto}
.fbs-workspace .fbs-readiness{display:flex;align-items:center;justify-content:space-between;flex-direction:row;gap:8px;padding:5px 9px;margin:0 0 7px;border:0;border-radius:0;background:#f7f4ed;font-size:11px}
.fbs-workspace .fbs-readiness>div{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.fbs-workspace .fbs-readiness>div>span{padding:3px 6px;font-size:11px;line-height:1.3}
.fbs-workspace .fbs-readiness.has-problems{border-left:3px solid #b48a31;background:#fff8e3}
.fbs-workspace .fbs-readiness:not(.has-problems){display:none}
.fbs-workspace .fbs-readiness button{min-height:28px;padding:4px 7px;font-size:11px;flex:0 0 auto}
.fbs-workspace .fbs-stage-filter{gap:3px;margin:0 0 7px;padding:0 0 5px;border-color:#ddd6ca;overscroll-behavior-x:contain}
.fbs-workspace .fbs-stage-filter button{flex:0 0 auto;padding:5px 9px;min-height:30px;border-radius:4px}
.fbs-workspace .fbs-stage-filter b{margin-left:3px;padding:1px 4px;font-size:10px}
.fbs-workspace .fbs-filter-row{display:flex;align-items:center;justify-content:space-between;flex-direction:row;gap:8px;margin:0 0 8px;flex-wrap:wrap}
.fbs-workspace .fbs-market-filter{display:flex;gap:4px;margin:0;flex-wrap:wrap}
.fbs-workspace .fbs-secondary-filters{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.fbs-workspace .fbs-secondary-filters label{display:flex;flex-direction:row;align-items:center;gap:5px;min-width:0;color:#665e54;font-size:11px}
.fbs-workspace .fbs-secondary-filters select{min-width:0;max-width:210px;min-height:30px;font-size:11px}

/* Scanning remains available but does not take a whole screen while idle. */
.fbs-workspace .fbs-scanner{margin:0 0 8px;padding:7px 9px;border:1px solid #d4cdbf;border-radius:5px;box-shadow:none;background:#fbf9f4}
.fbs-scan-toggle>summary{display:none}
.fbs-workspace .fbs-sync-problem{display:flex;align-items:center;flex-wrap:wrap;gap:3px 10px;margin:0 0 7px;padding:5px 8px;border-left:3px solid #b48a31;background:#fff8e3;color:#75510f;font-size:11px;line-height:1.4}
.fbs-sync-problem details{padding:0;border:0;background:transparent}
.fbs-sync-problem summary{cursor:pointer}
.fbs-sync-problem p{margin:5px 0;max-width:100%;overflow-wrap:anywhere}
body[data-workspace="order"] #message{max-height:160px;overflow:auto;font-size:12px;line-height:1.4}
.fbs-workspace .fbs-scanner.disabled{display:flex;align-items:center;gap:8px;padding:6px 9px;font-size:11px}
.fbs-workspace .scanner-head{align-items:center;gap:8px;margin:0 0 5px}
.fbs-workspace .scanner-head>div{flex-direction:row;align-items:center;gap:8px}
.fbs-workspace .scanner-head>div>strong{font-size:12px}
.fbs-workspace .scanner-head>div>span{font-size:11px}
.fbs-workspace .scanner-qz{padding:3px 6px;font-size:10px;line-height:1.3}
.fbs-workspace .fbs-scan-bar{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}
.fbs-workspace .fbs-scan-bar form{display:flex;align-items:center;gap:5px;flex:1;min-width:280px;margin:0}
.fbs-workspace .fbs-scanner form input{flex:1;min-width:0;height:33px;padding:6px 9px;border-width:1px;border-radius:4px;font:500 13px/1.3 ui-monospace,SFMono-Regular,Menlo,monospace}
.fbs-workspace .fbs-scanner form button{min-width:0;min-height:33px;padding:6px 10px}
.fbs-workspace .fbs-scanner form input:focus{border-color:#326f7a;outline:2px solid #99c8cf66;outline-offset:1px}
.fbs-workspace .scanner-work-row{grid-template-columns:minmax(0,1fr) auto;gap:6px;margin:6px 0}
.fbs-workspace .scanner-idle{display:block;padding:4px 0;background:transparent;text-align:left;color:#665e54;font-size:11px;line-height:1.35}
.fbs-workspace .scanner-idle strong{font-size:11px;font-weight:500;margin-right:5px}
.fbs-workspace .scanner-idle span{font-size:11px}
.fbs-workspace .scanner-processing,.fbs-workspace .scanner-success,.fbs-workspace .scanner-warning,.fbs-workspace .scanner-error{gap:3px;padding:7px 9px;margin-top:6px;border-radius:4px;font-size:12px;line-height:1.4}
.fbs-workspace .scanner-processing>strong,.fbs-workspace .scanner-success>strong,.fbs-workspace .scanner-warning>strong,.fbs-workspace .scanner-error>strong{font-size:13px}
.fbs-workspace .fbs-scan-settings{flex:0 0 auto;position:relative;margin:0;padding:0;border:0;background:transparent;font-size:11px}
.fbs-workspace .fbs-scan-settings>summary{display:list-item;min-height:30px;padding:6px 8px;border:1px solid #d4cdbf;border-radius:4px;background:#fff;cursor:pointer;color:#51483e;white-space:nowrap}
.fbs-workspace .fbs-scan-settings[open]{flex-basis:100%}
.fbs-workspace .fbs-scan-settings[open]>summary{display:list-item;width:fit-content;margin-bottom:7px}
.fbs-workspace .fbs-scan-settings .section-actions{gap:5px;margin:7px 0}
.fbs-workspace .fbs-scan-settings .section-actions a{display:inline-flex;align-items:center;min-height:30px;padding:5px 8px;border:1px solid #d4cdbf;border-radius:4px;background:#fff;color:#285e67;font-size:11px;text-decoration:none;line-height:1.4}
.fbs-workspace .fbs-scan-settings .section-actions a:hover{background:#eee9de}
.fbs-workspace .fbs-scan-settings>.muted{margin:5px 0;font-size:11px;line-height:1.4}
.fbs-workspace .scanner-print-controls{align-items:center;gap:6px;padding:7px 0;border:0;border-bottom:1px solid #e6dfd3;border-radius:0;background:transparent}
.fbs-workspace .scanner-print-options{gap:7px;align-items:center;flex-wrap:wrap;flex-direction:row}
.fbs-workspace .scanner-print-option{gap:3px;font-size:11px}
.fbs-workspace .scanner-print-option label{min-height:28px;gap:4px;font-size:11px}
.fbs-workspace .scanner-print-option input[type=number]{width:43px;min-height:28px;font-size:11px}
.fbs-workspace .scanner-print-controls small{font-size:11px;line-height:1.4}
.fbs-workspace .scanner-settings{margin:7px 0 0;padding:0!important;border:0!important;background:transparent!important}
.fbs-workspace .scanner-settings summary{min-height:28px;font-size:11px}
.fbs-workspace .scanner-settings-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:7px}
.fbs-workspace .scanner-settings label{font-size:11px}
.fbs-workspace .scanner-settings select{min-height:30px;padding:5px 7px;font-size:11px}
.fbs-workspace .scanner-settings .section-actions{margin:7px 0;gap:5px}
.fbs-workspace .scanner-settings p{margin:5px 0;font-size:11px;line-height:1.4}

/* One compact selection bar above the goods, never over their last rows. */
.fbs-workspace .fbs-selection{position:sticky;top:6px!important;bottom:auto!important;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:0 0 8px!important;padding:7px 9px;border:1px solid #d4cdbf;border-radius:5px;background:#fbf9f4;box-shadow:0 2px 5px #302d2810}
.fbs-workspace .fbs-selection.active{border-color:#86b6be;background:#eef9fa}
.fbs-workspace .fbs-selection-count{flex:0 0 auto;min-width:82px;gap:2px!important}
.fbs-workspace .fbs-selection-count strong{font-size:12px;line-height:1.35}
.fbs-workspace .fbs-selection-count span{max-width:220px;font-size:11px;line-height:1.35}
.fbs-workspace .fbs-selection-controls{flex:1;justify-content:flex-end;align-items:center!important;flex-direction:row!important;gap:5px!important;min-width:0}
.fbs-workspace .fbs-selection-controls button{min-height:30px;padding:5px 8px;font-size:11px}
.fbs-workspace .fbs-selection-controls button.primary{font-size:12px;font-weight:600}
.fbs-workspace .fbs-kiz-select{min-height:28px;padding:3px 4px;gap:4px;font-size:11px;color:#51483e}
.fbs-workspace .fbs-kiz-select input{width:16px;height:16px;flex:0 0 16px}
.fbs-workspace .fbs-more{position:relative;flex:0 0 auto;margin:0;padding:0;border:0;background:transparent;color:#51483e;font-size:11px}
.fbs-workspace .fbs-more>summary{min-height:30px;padding:6px 9px;border:1px solid #d4cdbf;border-radius:4px;background:#fff;cursor:pointer;white-space:nowrap}
.fbs-workspace .fbs-more>div{position:absolute;top:calc(100% + 4px);right:0;z-index:7;display:flex;flex-direction:column;align-items:stretch;gap:5px;min-width:185px;max-width:min(280px,calc(100vw - 38px));padding:8px;border:1px solid #d4cdbf;border-radius:5px;background:#fff;box-shadow:0 4px 14px #302d2820}
.fbs-workspace .fbs-more>div button{text-align:left;min-height:30px}
.fbs-workspace .fbs-kiz-progress{gap:6px 10px;padding-top:5px;border-top:1px solid #cddfe1;font-size:11px;line-height:1.4}
.fbs-workspace .fbs-kiz-progress label{min-width:0;font-size:11px}
.fbs-workspace .fbs-kiz-progress select{max-width:460px;min-height:30px;font-size:11px}
.fbs-workspace .fbs-kiz-progress .error{color:#923c2c}

/* A stable six-column grid: photo and variant get the remaining width. */
.fbs-workspace>.table-wrap{max-height:none;overflow-x:auto;overflow-y:visible;border-radius:5px;overscroll-behavior-x:contain}
.fbs-workspace>.table-wrap table{table-layout:fixed;min-width:1010px;font-size:12px}
.fbs-workspace>.table-wrap th,.fbs-workspace>.table-wrap td{padding:8px 9px;vertical-align:top;overflow-wrap:anywhere;line-height:1.35}
.fbs-workspace>.table-wrap th{font-size:10px;letter-spacing:.025em;color:#665e54;position:static}
.fbs-workspace>.table-wrap th:nth-child(1){width:36px}
.fbs-workspace>.table-wrap th:nth-child(2){width:174px}
.fbs-workspace>.table-wrap th:nth-child(4){width:145px}
.fbs-workspace>.table-wrap th:nth-child(5){width:182px}
.fbs-workspace>.table-wrap th:nth-child(6){width:133px}
.fbs-workspace>.table-wrap td:first-child{padding-right:4px;text-align:center}
.fbs-workspace>.table-wrap td .sub{margin-top:3px;font-size:11px;color:#665e54;line-height:1.35}
.fbs-workspace .sku-product{gap:9px;min-width:0}
.fbs-workspace .sku-product>.photo{width:60px;height:80px;flex:0 0 60px;border-radius:5px}
.fbs-workspace .sku-product>div{min-width:0}
.fbs-workspace .sku-product strong{font-size:13px;line-height:1.35}
.fbs-workspace .sku-product>div>strong{font-size:14px;line-height:1.35;color:#302d28}
.fbs-workspace .fbs-quantity{font-size:12px;white-space:nowrap;color:#51483e}
.fbs-workspace .sku-product .mono{font-size:11px}
.fbs-workspace .fbs-variant{display:block;min-width:0;margin-top:3px;font-size:12px;line-height:1.4;color:#51483e}
.fbs-workspace .fbs-variant b{font-size:13px;color:#302d28}
.fbs-workspace .fbs-product-extra{margin:4px 0 0;color:#665e54;font-size:11px}
.fbs-workspace .fbs-product-extra>summary{min-height:24px;padding:4px 0;cursor:pointer;line-height:1.35}
.fbs-workspace .fbs-product-extra[open]{padding-bottom:3px}
.fbs-workspace .fbs-stock-empty{color:#923c2c;font-weight:700}
.fbs-workspace .fbs-checkbox{width:18px;height:18px;margin:2px 0;accent-color:#326f7a;cursor:pointer}
.fbs-workspace .fbs-order-select{min-height:24px;gap:4px;margin:0 0 4px;font-size:10px;line-height:1.3}
.fbs-workspace .fbs-order-select input{width:16px;height:16px;flex:0 0 16px}
.fbs-workspace .fbs-order-age{margin-top:4px;font-size:10px;color:#665e54;line-height:1.35}
.fbs-workspace .fbs-line-actions{gap:4px;margin:5px 0 0}
.fbs-workspace .badge{padding:3px 5px;font-size:10px;white-space:normal;line-height:1.3}
.fbs-workspace td .row-actions{min-width:0;gap:4px}
.fbs-workspace td button{min-height:30px;padding:5px 7px;font-size:11px;white-space:normal;line-height:1.3;text-align:center}
.fbs-workspace tr.fbs-kiz-with td{background:#f0f8f0!important}
.fbs-workspace tr.fbs-kiz-waiting td{background:#fff9e8!important}
.fbs-workspace tr.fbs-kiz-error td{background:#fff1ed!important}
.fbs-workspace .empty{padding:26px 12px;font-size:12px;line-height:1.5}
.fbs-workspace .fbs-internal-tasks{margin:12px 0 0;padding:0;border:0;color:#665e54;font-size:12px}
.fbs-workspace .fbs-internal-tasks>summary{min-height:30px;padding:6px 0;cursor:pointer;font-size:12px}
.fbs-workspace .fbs-internal-tasks[open]>.table-wrap{margin-top:7px}
.fbs-workspace .wb-supplies-status,.fbs-workspace .wb-supplies-message{gap:8px;margin-bottom:8px;padding:7px 9px;border-radius:5px}
.fbs-workspace .wb-supplies-status span,.fbs-workspace .wb-supplies-message span{font-size:11px;line-height:1.4}
.fbs-workspace .wb-supplies-warning{margin-bottom:8px;padding:7px 9px;font-size:11px;line-height:1.4}

/* Assembly is a compact side card. The queue remains visible behind it. */
dialog.fbs-assembly-panel{inset:12px 12px auto auto;margin:0;width:min(540px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:15px;border-radius:8px;background:#fbfaf6;overflow:auto;box-shadow:0 12px 36px #302d2830}
dialog.fbs-assembly-panel::backdrop{background:#25231f36}
dialog.fbs-assembly-panel .dialog-head{gap:8px;align-items:flex-start;padding-bottom:10px;border-bottom:1px solid #ddd6ca}
dialog.fbs-assembly-panel .dialog-head h2{font-size:16px;line-height:1.35}
dialog.fbs-assembly-panel .dialog-head button{min-width:30px;min-height:30px;padding:3px;font-size:20px;line-height:1}
dialog.fbs-assembly-panel .fbs-task-progress{display:flex;gap:5px;align-items:center;flex-wrap:wrap;margin:10px 0;padding:8px 9px;border-radius:5px;background:#eee9df;font-size:11px;color:#51483e;line-height:1.4}
dialog.fbs-assembly-panel .fbs-task-progress>span{display:flex;align-items:center;gap:4px}
dialog.fbs-assembly-panel .fbs-task-progress .current{color:#285e67;font-weight:700}
dialog.fbs-assembly-panel .fbs-task-products{display:grid;gap:8px;margin:10px 0}
dialog.fbs-assembly-panel .fbs-task-products>article,dialog.fbs-assembly-panel .fbs-task-products>.sku-product{padding:8px 0;border-bottom:1px solid #e6dfd3}
dialog.fbs-assembly-panel .sku-product{gap:10px;min-width:0}
dialog.fbs-assembly-panel .sku-product .photo{width:60px;height:80px;flex:0 0 60px;border-radius:5px}
dialog.fbs-assembly-panel .sku-product>div{min-width:0}
dialog.fbs-assembly-panel .sku-product strong{font-size:14px;line-height:1.35}
dialog.fbs-assembly-panel .sub{display:block;margin-top:4px;color:#665e54;font-size:11px;line-height:1.4}
dialog.fbs-assembly-panel .fbs-task-actions{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}
dialog.fbs-assembly-panel .fbs-task-actions button{min-height:32px;padding:6px 10px;font-size:12px;line-height:1.4;white-space:normal}
dialog.fbs-assembly-panel .scan-grid{grid-template-columns:1fr auto;gap:6px;padding:9px;margin-top:10px;background:#e6f0ed;border-radius:5px}
dialog.fbs-assembly-panel .scan-grid input,dialog.fbs-assembly-panel .scan-grid select{min-width:0;width:100%;min-height:33px;padding:6px 8px;font-size:12px}
dialog.fbs-assembly-panel .scan-grid label{font-size:11px}
dialog.fbs-assembly-panel .scan-grid label:first-child{grid-column:1/-1}
dialog.fbs-assembly-panel .scan-grid button{align-self:end;min-height:33px;padding:6px 9px;font-size:12px}
dialog.fbs-assembly-panel .metadata{gap:7px;margin-top:10px;padding:8px;font-size:11px}
dialog.fbs-assembly-panel #detail-body details{margin-top:10px;padding:7px 9px;border-radius:4px;background:#f7f4ed}
dialog.fbs-assembly-panel #detail-body details summary{min-height:24px;font-size:11px;line-height:1.4}
dialog.fbs-assembly-panel #detail-body .table-wrap{margin-top:8px;max-height:30vh;font-size:11px}
dialog.fbs-assembly-panel #detail-body td,dialog.fbs-assembly-panel #detail-body th{padding:6px;font-size:11px}
dialog.fbs-assembly-panel #detail-body .muted{margin:7px 0;font-size:11px;line-height:1.45}

@media(max-width:1100px){
 body[data-workspace="order"] .kpis div{padding:6px 8px;flex-wrap:wrap;gap:3px}
 .fbs-workspace .fbs-selection-controls{flex-wrap:wrap}
 .fbs-workspace .fbs-selection-count span{max-width:170px}
 .fbs-workspace .scanner-work-row{grid-template-columns:1fr}
}
@media(max-width:760px){
 body[data-workspace="order"] main{padding:8px}
 body[data-workspace="order"] .workspace-intro{flex-direction:row;align-items:center;flex-wrap:wrap;gap:6px}
 body[data-workspace="order"] .workspace-intro>div:first-child{flex:1;min-width:160px}
 body[data-workspace="order"] .intro-actions{flex-direction:row!important;gap:4px}
 body[data-workspace="order"] .intro-actions button{width:auto;min-height:32px}
 body[data-workspace="order"] .kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
 body[data-workspace="order"] .kpis div{min-width:0;justify-content:space-between;flex-wrap:nowrap;padding:5px 7px;border-right:1px solid #e6dfd3;border-bottom:1px solid #e6dfd3}
 body[data-workspace="order"] .kpis div:nth-child(3n){border-right:0}
 body[data-workspace="order"] .kpis div:nth-child(n+4){border-bottom:0}
 body[data-workspace="order"] .kpis span{font-size:10px}
 body[data-workspace="order"] .kpis strong{font-size:14px}
 body[data-workspace="order"] .toolbar{align-items:center;gap:5px;padding:6px 0}
 body[data-workspace="order"] .toolbar input{min-width:0;width:100%;height:34px}
 body[data-workspace="order"] .toolbar #actions{flex:1}
 body[data-workspace="order"] #actions .fbs-more>div{right:auto;left:0}
 .fbs-steps{gap:7px;align-items:flex-start;margin-bottom:7px;padding:5px 0;font-size:11px}
 .fbs-steps>span,.fbs-steps>div{flex:1;gap:4px;align-items:flex-start}
 .fbs-steps>span+span,.fbs-steps>div+div{margin-left:0}
 .fbs-steps strong{font-size:11px}
 .fbs-steps>.fbs-sync-meta{flex:0 0 100%;max-width:none;padding:2px 0 0;text-align:left;font-size:10px}
 .fbs-workspace .fbs-inbox-status{align-items:flex-start;gap:5px;padding:6px 8px;flex-direction:column}
 .fbs-workspace .fbs-inbox-status>div{gap:5px}
 .fbs-workspace .fbs-sync-meta{text-align:left;font-size:10px}
 .fbs-workspace .fbs-readiness{align-items:center;flex-wrap:wrap;padding:5px 7px}
 .fbs-workspace .fbs-readiness>div{gap:4px}
 .fbs-workspace .fbs-readiness button{width:auto}
 .fbs-workspace .fbs-filter-row{flex-direction:row;align-items:center;gap:7px}
 .fbs-workspace .fbs-market-filter{width:100%;gap:4px}
 .fbs-workspace .fbs-market-filter button{flex:1;min-height:32px}
 .fbs-workspace .fbs-secondary-filters{gap:6px;width:100%;justify-content:space-between}
 .fbs-workspace .fbs-secondary-filters label{flex:1;justify-content:space-between;gap:4px;max-width:100%}
 .fbs-workspace .fbs-secondary-filters select{max-width:150px;min-height:32px;flex:1}
 .fbs-workspace .fbs-secondary-filters label:first-child:last-child{flex:0 1 auto}
 .fbs-workspace .scanner-head{align-items:center;flex-direction:row;flex-wrap:wrap;gap:5px}
 .fbs-workspace .scanner-head>div{flex-direction:column;align-items:flex-start;gap:2px;flex:1;min-width:0}
 .fbs-workspace .fbs-scan-bar{gap:5px}
 .fbs-scan-toggle>summary{display:list-item;min-height:30px;padding:5px 0;color:#51483e;font-size:12px;cursor:pointer}
 .fbs-scan-toggle[open]>summary{margin-bottom:5px}
 .fbs-workspace .fbs-scan-bar form{min-width:0;flex-basis:100%;gap:4px}
 .fbs-workspace .fbs-scanner form{flex-direction:row;grid-template-columns:1fr auto}
 .fbs-workspace .fbs-scanner form button{width:auto;min-height:34px}
 .fbs-workspace .fbs-scanner form input{height:34px;font-size:12px}
 .fbs-workspace .fbs-scan-settings{flex:0 1 auto;max-width:100%}
 .fbs-workspace .fbs-scan-settings>summary{font-size:11px;white-space:normal}
 .fbs-workspace .scanner-settings-grid{grid-template-columns:1fr}
 .fbs-workspace .scanner-print-options{gap:4px 8px;width:100%;flex-direction:row;align-items:center}
 .fbs-workspace .scanner-print-option{flex-wrap:nowrap}
 .fbs-workspace .fbs-selection{position:static;align-items:center;gap:6px;padding:7px 8px}
 .fbs-workspace .fbs-selection-count{width:100%;flex-direction:row!important;align-items:center!important;justify-content:space-between;gap:8px!important}
 .fbs-workspace .fbs-selection-count span{max-width:220px;text-align:right}
 .fbs-workspace .fbs-selection-controls{width:100%;justify-content:flex-start;gap:5px!important}
 .fbs-workspace .fbs-selection-controls button{flex:0 1 auto;min-height:32px}
 .fbs-workspace .fbs-selection-controls button.primary{flex:1 1 140px}
 .fbs-workspace .fbs-kiz-select{min-height:30px;padding:3px 2px}
 .fbs-workspace .fbs-more>div{right:auto;left:0;min-width:170px}
 .fbs-workspace .fbs-kiz-progress{width:100%}
 .fbs-workspace .fbs-kiz-progress select{max-width:100%}
 .fbs-workspace>.table-wrap{overflow:visible;border:0;background:transparent}
 .fbs-workspace>.table-wrap table{display:block;min-width:0;table-layout:auto}
 .fbs-workspace>.table-wrap thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .fbs-workspace>.table-wrap tbody{display:grid;gap:7px}
 .fbs-workspace>.table-wrap tr{display:grid;grid-template-columns:26px minmax(0,1fr);gap:0 4px;padding:8px 7px;border:1px solid #ddd6ca;border-radius:5px;background:#fff}
 .fbs-workspace>.table-wrap td{display:block;grid-column:2;padding:3px 0;border:0;min-width:0;line-height:1.4}
 .fbs-workspace>.table-wrap td:first-child{grid-column:1;grid-row:1/span 5;text-align:left;padding:3px 0;box-shadow:none}
 .fbs-workspace>.table-wrap td:nth-child(2){font-size:11px}
 .fbs-workspace>.table-wrap td:nth-child(2)>strong{display:inline-block;margin-right:5px;font-size:12px}
 .fbs-workspace>.table-wrap td:nth-child(2)>.sub{display:inline;font-size:10px}
 .fbs-workspace>.table-wrap td:nth-child(2)>.fbs-order-age{font-size:10px}
 .fbs-workspace>.table-wrap td:nth-child(4){border-top:1px solid #e6dfd3;padding-top:6px;margin-top:3px}
 .fbs-workspace>.table-wrap td:nth-child(4)::before{content:"На складе: ";color:#665e54;font-size:11px}
 .fbs-workspace>.table-wrap td:nth-child(4)>.sub{display:inline;margin-left:5px;font-size:10px}
 .fbs-workspace>.table-wrap td:nth-child(5){padding-top:5px}
 .fbs-workspace>.table-wrap td:nth-child(5)>.sub{display:inline;margin-left:5px;font-size:10px}
 .fbs-workspace>.table-wrap td:nth-child(6){padding-top:7px}
 .fbs-workspace>.table-wrap td:nth-child(6)>button{min-height:34px;padding:6px 10px}
 .fbs-workspace .sku-product>.photo{width:52px;height:68px;flex-basis:52px}
 .fbs-workspace .sku-product strong{font-size:13px}
 .fbs-workspace .sku-product .sub{font-size:10px}
 .fbs-workspace .fbs-variant{font-size:11px}
 .fbs-workspace .fbs-order-select{min-height:26px;float:right;margin-left:5px;font-size:10px}
 .fbs-workspace tr.fbs-kiz-with{border-left:3px solid #3b8550;background:#f0f8f0}
 .fbs-workspace tr.fbs-kiz-waiting{border-left:3px solid #b48a31;background:#fff9e8}
 .fbs-workspace tr.fbs-kiz-error{border-left:3px solid #b04f3d;background:#fff1ed}
 .fbs-workspace tr.fbs-kiz-with td,.fbs-workspace tr.fbs-kiz-waiting td,.fbs-workspace tr.fbs-kiz-error td{background:transparent!important}
 dialog.fbs-assembly-panel{inset:8px 8px auto auto;width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:12px;border-radius:6px}
 dialog.fbs-assembly-panel .sku-product .photo{width:54px;height:72px;flex-basis:54px}
 dialog.fbs-assembly-panel .fbs-task-actions button{min-height:35px}
 dialog.fbs-assembly-panel .scan-grid{grid-template-columns:1fr}
 dialog.fbs-assembly-panel .scan-grid label:first-child{grid-column:auto}
 dialog.fbs-assembly-panel .scan-grid button{min-height:35px}
}

/* Visible print choices and truthful next steps after code receipt. */
.fbs-workspace .fbs-selection-controls .fbs-print-picker{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex:0 1 auto;min-width:0;max-width:100%;flex-wrap:wrap;padding:3px 0 3px 7px;border-left:1px solid #d4cdbf}
.fbs-workspace .fbs-print-picker .scanner-print-options{display:flex;align-items:center;flex-direction:row;gap:4px 7px;flex-wrap:wrap;min-width:0;max-width:100%}
.fbs-workspace .fbs-print-picker .scanner-print-option{display:inline-flex;align-items:center;flex:0 0 auto;gap:3px;max-width:100%;white-space:nowrap;font-size:11px;color:#51483e}
.fbs-workspace .fbs-print-picker .scanner-print-option label{display:inline-flex;align-items:center;flex-direction:row;gap:4px;min-height:28px;font-size:11px;color:#51483e;cursor:pointer}
.fbs-workspace .fbs-print-picker .scanner-print-option input[type=checkbox]{width:16px;height:16px;flex:0 0 16px;margin:0;padding:0;accent-color:#326f7a}
.fbs-workspace .fbs-print-picker .scanner-print-option input[type=number]{width:38px;min-width:0;min-height:28px;padding:3px 1px;font-size:11px;text-align:center}
.fbs-workspace .fbs-print-picker>button{flex:0 0 auto;min-height:30px;white-space:nowrap}
.fbs-workspace .fbs-flow-help{flex:1 1 100%;width:100%;min-width:0;max-width:100%;margin:0;padding:0;border:0;background:transparent;font-size:11px;color:#665e54}
.fbs-workspace .fbs-flow-help>summary{width:fit-content;min-height:24px;padding:4px 0;color:#285e67;cursor:pointer;line-height:1.4}
.fbs-workspace .fbs-flow-help[open]>summary{margin-bottom:3px}
.fbs-workspace .fbs-flow-help>ol{display:grid;gap:4px;margin:0 0 4px;padding:0 0 0 20px;font-size:11px;line-height:1.45}
.fbs-workspace .fbs-flow-help>ol>li{padding:0 0 0 2px;overflow-wrap:anywhere}
.fbs-workspace .fbs-flow-help>p{margin:5px 0;font-size:11px;line-height:1.45;overflow-wrap:anywhere}
.fbs-workspace .fbs-next-step{display:block;max-width:100%;margin:4px 0 0;color:#665e54;font-size:11px;line-height:1.4;overflow-wrap:anywhere}
dialog.fbs-assembly-panel .fbs-next-step{display:block;margin:5px 0 0;color:#665e54;font-size:11px;line-height:1.4;overflow-wrap:anywhere}
dialog.fbs-assembly-panel .fbs-kiz-preparation{min-width:0;margin:10px 0;padding:0;border:0;background:transparent;color:#51483e;font-size:12px;line-height:1.45}
dialog.fbs-assembly-panel .fbs-kiz-preparation h3{margin:8px 0 6px;font-size:14px;line-height:1.4}
dialog.fbs-assembly-panel .fbs-kiz-preparation>p{margin:6px 0;font-size:11px;line-height:1.45;overflow-wrap:anywhere}
dialog.fbs-assembly-panel .fbs-kiz-preparation ol{display:grid;gap:5px;margin:8px 0;padding:0;list-style:none;counter-reset:kiz-preparation}
dialog.fbs-assembly-panel .fbs-kiz-preparation ol>li{counter-increment:kiz-preparation;display:grid;grid-template-columns:21px minmax(0,1fr);gap:2px 7px;min-width:0;padding:6px 8px;border-left:2px solid #ddd6ca;border-radius:0 4px 4px 0;background:#f4f1ea;color:#665e54;font-size:11px;line-height:1.4;overflow-wrap:anywhere}
dialog.fbs-assembly-panel .fbs-kiz-preparation ol>li::before{content:counter(kiz-preparation);display:inline-flex;align-items:center;justify-content:center;grid-column:1;grid-row:1/span 3;width:21px;height:21px;border-radius:50%;background:#e8e0d4;color:#51483e;font-size:10px;font-weight:700}
dialog.fbs-assembly-panel .fbs-kiz-preparation ol>li>*{grid-column:2;min-width:0}
dialog.fbs-assembly-panel .fbs-kiz-preparation ol>li>strong{font-size:12px;color:#51483e;line-height:1.4}
dialog.fbs-assembly-panel .fbs-kiz-preparation ol>li.done{border-left-color:#88af90;background:#eef8f0;color:#285b34}
dialog.fbs-assembly-panel .fbs-kiz-preparation ol>li.done::before{content:"✓";background:#dcebdd;color:#285b34}
dialog.fbs-assembly-panel .fbs-kiz-preparation ol>li.done>strong{color:#285b34}
dialog.fbs-assembly-panel .fbs-kiz-preparation ol>li.current{border-left-color:#326f7a;background:#eef9fa;color:#285e67}
dialog.fbs-assembly-panel .fbs-kiz-preparation ol>li.current::before{background:#326f7a;color:#fff}
dialog.fbs-assembly-panel .fbs-kiz-preparation ol>li.current>strong{color:#285e67}
dialog.fbs-assembly-panel .fbs-kiz-preparation .sku-product{gap:9px;min-width:0;margin:6px 0}
dialog.fbs-assembly-panel .fbs-kiz-preparation .sku-product .photo{width:52px;height:68px;flex:0 0 52px}
dialog.fbs-assembly-panel .fbs-kiz-preparation .section-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:8px 0}
dialog.fbs-assembly-panel .fbs-kiz-preparation .section-actions button{min-height:32px;max-width:100%;padding:6px 9px;font-size:11px;line-height:1.4;white-space:normal}
@media(max-width:1000px){
 .fbs-workspace .fbs-selection-controls .fbs-print-picker{flex:1 1 100%;justify-content:flex-start;padding:5px 0 0;border-left:0;border-top:1px solid #d4cdbf}
 .fbs-workspace .fbs-print-picker .scanner-print-options{flex:0 1 auto}
}
@media(min-width:761px) and (max-width:1100px){
 .fbs-workspace>.table-wrap table{min-width:760px}
 .fbs-workspace>.table-wrap th:nth-child(1){width:28px}
 .fbs-workspace>.table-wrap th:nth-child(2){width:142px}
 .fbs-workspace>.table-wrap th:nth-child(4){width:78px}
 .fbs-workspace>.table-wrap th:nth-child(5){width:146px}
 .fbs-workspace>.table-wrap th:nth-child(6){width:112px}
 .fbs-workspace>.table-wrap th,.fbs-workspace>.table-wrap td{padding:7px 6px;font-size:11px}
 .fbs-workspace>.table-wrap td>button{max-width:100%;white-space:normal}
}
@media(max-width:760px){
 .fbs-workspace .fbs-print-picker .scanner-print-options{width:auto;flex:1 1 100%;gap:4px 8px}
 .fbs-workspace .fbs-print-picker .scanner-print-option{flex:0 0 auto}
 .fbs-workspace .fbs-print-picker>button{min-height:32px;flex:0 1 auto}
 .fbs-workspace .fbs-flow-help>summary{min-height:28px;padding:5px 0}
 dialog.fbs-assembly-panel .fbs-kiz-preparation ol>li{padding:6px 7px;gap:2px 6px}
 dialog.fbs-assembly-panel .fbs-kiz-preparation .section-actions button{min-height:35px}
}

/* One real marketplace order, with its complete set of separate items. */
.fbs-workspace .fbs-order-group{min-width:0;max-width:100%;margin:0 0 10px;border:1px solid #d4cdbf;border-radius:5px;background:#fff}
.fbs-workspace .fbs-order-group-head{display:grid;grid-template-columns:auto minmax(180px,1fr) minmax(160px,auto) auto;align-items:center;gap:9px 14px;min-width:0;padding:9px 11px;border-bottom:1px solid #ddd6ca;background:#f7f4ed;color:#51483e;border-radius:4px 4px 0 0}
.fbs-workspace .fbs-order-group-head>.fbs-order-select{display:flex;align-items:center;flex-direction:row;gap:5px;min-height:28px;max-width:100%;margin:0;float:none;color:#285e67;font-size:11px;line-height:1.4;white-space:nowrap;cursor:pointer}
.fbs-workspace .fbs-order-group-head>.fbs-order-select input{width:18px;height:18px;flex:0 0 18px;margin:0;padding:0;accent-color:#326f7a}
.fbs-workspace .fbs-order-identity{min-width:0;line-height:1.4;overflow-wrap:anywhere}
.fbs-workspace .fbs-order-identity>strong{display:block;color:#302d28;font-size:14px;line-height:1.35}
.fbs-workspace .fbs-order-identity>.sub,.fbs-workspace .fbs-order-identity>span{display:block;margin-top:3px;color:#665e54;font-size:11px;line-height:1.35}
.fbs-workspace .fbs-order-identity .fbs-order-age{margin-top:3px;font-size:10px;line-height:1.35}
.fbs-workspace .fbs-order-summary{display:flex;align-items:center;gap:5px 9px;flex-wrap:wrap;min-width:0;max-width:100%;color:#51483e;font-size:11px;line-height:1.4;overflow-wrap:anywhere}
.fbs-workspace .fbs-order-summary strong,.fbs-workspace .fbs-order-summary b{font-size:12px;color:#302d28}
.fbs-workspace .fbs-order-summary .badge{max-width:100%;font-size:10px;line-height:1.35;white-space:normal}
.fbs-workspace .fbs-order-group-head>button{min-height:32px;max-width:170px;padding:6px 10px;font-size:12px;line-height:1.35;white-space:normal}
.fbs-workspace .fbs-order-items{min-width:0;margin:0;padding:0}
.fbs-workspace .fbs-group-item{display:grid;grid-template-columns:26px minmax(240px,1fr) 56px 90px minmax(160px,190px) 138px;align-items:start;gap:8px;min-width:0;max-width:100%;padding:10px 11px;border-bottom:1px solid #ece6da;border-left:3px solid transparent;background:#fff;font-size:12px;line-height:1.4}
.fbs-workspace .fbs-group-item:last-child{border-bottom:0;border-radius:0 0 4px 4px}
.fbs-workspace .fbs-group-item>div{min-width:0;max-width:100%;overflow-wrap:anywhere}
.fbs-workspace .fbs-item-select{display:flex;align-items:flex-start;justify-content:center;min-height:28px;padding-top:2px}
.fbs-workspace .fbs-item-select input[type=checkbox]{width:18px;height:18px;flex:0 0 18px;margin:0;padding:0;accent-color:#326f7a;cursor:pointer}
.fbs-workspace .fbs-item-select input:disabled{cursor:default}
.fbs-workspace .fbs-item-product .sku-product{gap:9px;min-width:0;margin:0}
.fbs-workspace .fbs-item-product .sku-product>.photo{width:60px;height:80px;flex:0 0 60px;margin:0;border-radius:5px}
.fbs-workspace .fbs-item-product .sku-product>div{min-width:0}
.fbs-workspace .fbs-item-product .sku-product>div>strong{font-size:14px;line-height:1.4;color:#302d28}
.fbs-workspace .fbs-item-product .sub{display:block;margin-top:3px;color:#665e54;font-size:11px;line-height:1.35}
.fbs-workspace .fbs-item-product .fbs-variant{margin-top:3px;font-size:12px;line-height:1.4}
.fbs-workspace .fbs-item-product .fbs-variant b{font-size:13px}
.fbs-workspace .fbs-item-quantity{text-align:center;color:#302d28;font-size:18px;font-weight:700;line-height:1.3}
.fbs-workspace .fbs-item-quantity>strong,.fbs-workspace .fbs-item-quantity>b{font-size:21px;line-height:1.2}
.fbs-workspace .fbs-item-quantity>.sub,.fbs-workspace .fbs-item-quantity>span{display:block;margin-top:3px;color:#665e54;font-size:10px;font-weight:400;line-height:1.3}
.fbs-workspace .fbs-item-stock{color:#51483e;font-size:12px;line-height:1.4}
.fbs-workspace .fbs-item-stock .sub{display:block;margin-top:3px;color:#665e54;font-size:11px;line-height:1.35}
.fbs-workspace .fbs-item-stock .fbs-stock-empty{color:#923c2c}
.fbs-workspace .fbs-item-kiz{font-size:11px;line-height:1.4}
.fbs-workspace .fbs-item-kiz .mono{font-size:11px;white-space:normal;overflow-wrap:anywhere}
.fbs-workspace .fbs-item-kiz .sub{display:block;margin-top:3px;color:#665e54;font-size:11px;line-height:1.35}
.fbs-workspace .fbs-item-kiz .badge{max-width:100%;padding:3px 5px;font-size:10px;line-height:1.35;white-space:normal;overflow-wrap:anywhere}
.fbs-workspace .fbs-item-kiz .fbs-line-actions{display:flex;align-items:center;gap:4px;flex-wrap:wrap;margin:4px 0 0;min-width:0}
.fbs-workspace .fbs-item-kiz .fbs-line-actions>.fbs-next-step{flex:1 1 100%;margin-top:2px}
.fbs-workspace .fbs-item-kiz .row-actions{display:flex;gap:4px;flex-wrap:wrap;min-width:0;margin-top:4px}
.fbs-workspace .fbs-item-action{display:flex;align-items:flex-start;gap:5px;flex-wrap:wrap;min-width:0}
.fbs-workspace .fbs-item-kiz button,.fbs-workspace .fbs-item-action button{min-height:30px;max-width:100%;padding:5px 7px;font-size:11px;line-height:1.35;white-space:normal;overflow-wrap:anywhere}
.fbs-workspace .fbs-group-item.fbs-kiz-with{border-left-color:#3b8550;background:#f0f8f0}
.fbs-workspace .fbs-group-item.fbs-kiz-waiting{border-left-color:#b48a31;background:#fff9e8}
.fbs-workspace .fbs-group-item.fbs-kiz-error{border-left-color:#b04f3d;background:#fff1ed}
.fbs-workspace .fbs-group-item.is-context{border-left-color:#c8c1b5;background:#fbfaf6}
.fbs-workspace .fbs-group-item.is-context .fbs-item-product .sku-product>div>strong{color:#665e54}
.fbs-workspace .fbs-group-item.is-context .fbs-item-select{color:#766e64}
@media(min-width:761px) and (max-width:1100px){
 .fbs-workspace .fbs-order-group-head{grid-template-columns:auto minmax(150px,1fr) minmax(125px,auto) auto;gap:7px 9px;padding:8px 9px}
 .fbs-workspace .fbs-order-summary{gap:4px 7px;font-size:10px}
 .fbs-workspace .fbs-order-group-head>button{max-width:130px;padding:5px 8px;font-size:11px}
 .fbs-workspace .fbs-group-item{grid-template-columns:24px minmax(210px,1fr) 42px 72px minmax(135px,165px) 112px;gap:6px;padding:9px 8px;font-size:11px}
 .fbs-workspace .fbs-item-product .sku-product>div>strong{font-size:13px}
 .fbs-workspace .fbs-item-stock,.fbs-workspace .fbs-item-kiz{font-size:11px}
 .fbs-workspace .fbs-item-quantity>strong,.fbs-workspace .fbs-item-quantity>b{font-size:20px}
}
@media(max-width:760px){
 .fbs-workspace .fbs-order-group{margin-bottom:9px}
 .fbs-workspace .fbs-order-group-head{display:flex;align-items:center;gap:6px 8px;flex-wrap:wrap;padding:8px}
 .fbs-workspace .fbs-order-group-head>.fbs-order-select{flex:0 0 auto;min-height:28px;float:none;margin:0;font-size:11px}
 .fbs-workspace .fbs-order-identity{flex:1 1 175px;min-width:0}
 .fbs-workspace .fbs-order-identity>strong{font-size:13px}
 .fbs-workspace .fbs-order-identity>.sub,.fbs-workspace .fbs-order-identity>span{font-size:10px}
 .fbs-workspace .fbs-order-summary{flex:1 1 180px;gap:4px 7px;font-size:10px}
 .fbs-workspace .fbs-order-summary strong,.fbs-workspace .fbs-order-summary b{font-size:11px}
 .fbs-workspace .fbs-order-group-head>button{flex:0 1 auto;min-height:32px;max-width:150px;padding:5px 8px;font-size:11px}
 .fbs-workspace .fbs-group-item{grid-template-columns:24px minmax(0,1fr) 58px;gap:6px;padding:9px 7px;border-left-width:3px;font-size:11px}
 .fbs-workspace .fbs-item-select{grid-column:1;grid-row:1/span 4;padding-top:2px}
 .fbs-workspace .fbs-item-product{grid-column:2/4;grid-row:1}
 .fbs-workspace .fbs-item-quantity{grid-column:3;grid-row:2;align-self:start;text-align:right;font-size:19px}
 .fbs-workspace .fbs-item-stock{grid-column:2;grid-row:2;align-self:center;font-size:11px}
 .fbs-workspace .fbs-item-kiz{grid-column:2/4;grid-row:3;padding-top:5px;border-top:1px solid #e6dfd3}
 .fbs-workspace .fbs-item-action{grid-column:2/4;grid-row:4;align-items:center}
 .fbs-workspace .fbs-item-product .sku-product>.photo{width:60px;height:80px;flex-basis:60px}
 .fbs-workspace .fbs-item-product .sku-product>div>strong{font-size:13px}
 .fbs-workspace .fbs-item-product .sub{font-size:10px}
 .fbs-workspace .fbs-item-product .fbs-variant{font-size:11px}
 .fbs-workspace .fbs-item-product .fbs-variant b{font-size:12px}
 .fbs-workspace .fbs-item-kiz .fbs-line-actions{align-items:center;gap:4px 6px}
 .fbs-workspace .fbs-item-kiz .fbs-line-actions>.fbs-next-step{flex-basis:100%}
 .fbs-workspace .fbs-item-action button{min-height:34px;padding:6px 9px}
}
