:root {
  --bg: #f5f5f7; --card: #fff; --txt: #1d1d1f; --dim: #64646b;
  --acc: #0071e3; --sel: #e8f1fc; --line: #e5e5e9; --line2: #d2d2d7;
  --edge: #8b8b92; --row: #f5f5f7; --dark: #1d1d1f; --placeholder: #707077;
  --ok: #247446; --okbg: #edf6ef; --bad: #b4232c; --badbg: #fceef0;
  --warn: #8c5700; --warnbg: #fff5e5; --sidebar-width: 222px;
  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f1: 12px; --f2: 14px; --f3: 15px; --f4: 19px; --f5: 24px; --f6: 28px;
  --h: 42px; --r1: 9px; --r2: 14px; --lh: 1.45;
  --sh-modal: 0 20px 70px rgb(0 0 0 / 18%); --ring: 0 0 0 3px rgb(0 113 227 / 18%);
}
body.workspace { background: var(--card); font-family: var(--ui); color: var(--txt); font-size: 14px; }
.fbs-page { max-width: 1160px; margin: 0 auto; }
.fbs-controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 8px 0 28px; }
.fbs-view-switch { display: inline-flex; padding: 4px; border-radius: 10px; background: var(--bg); flex-shrink: 0; }
.fbs-view-switch button { border: 0; border-radius: 7px; padding: 9px 17px; background: transparent; color: var(--dim); font-size: 13px; }
.fbs-view-switch button[aria-pressed="true"] { background: white; color: var(--txt); box-shadow: 0 1px 4px rgb(0 0 0 / 9%); font-weight: 600; }
.fbs-search { display: flex; align-items: center; gap: 9px; min-width: 0; width: 320px; border-bottom: 1px solid var(--line2); padding: 8px 2px; }
.fbs-search svg { width: 17px; height: 17px; color: var(--dim); }
.fbs-search input { width: 100%; min-width: 0; border: 0; background: transparent; padding: 3px; border-radius: 3px; }
.fbs-search input::placeholder { color: var(--placeholder); }
.fbs-list-actions { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; gap: 18px; color: var(--dim); font-size: 12px; }
.fbs-text-button { border: 0; background: transparent; color: var(--acc); padding: 8px 0 8px 12px; font-size: 13px; }
.fbs-cabinet-labels,.fbs-cabinet-row { display: grid; grid-template-columns: 48px minmax(170px,1fr) 90px 115px 80px 36px 44px; gap: 14px; align-items: center; padding: 18px 16px; }
.fbs-cabinet-labels { color: var(--dim); font-size: 11px; padding-top: 0; padding-bottom: 10px; }
.fbs-cabinet-labels>span:first-child { grid-column: 1 / 3; }
.fbs-cabinet-labels>span:not(:first-child) { text-align: center; }
.fbs-cabinet { border-top: 1px solid var(--line); }
.fbs-cabinet:last-child { border-bottom: 1px solid var(--line); }
.fbs-cabinet.has-selection>.fbs-cabinet-row,.fbs-order.has-selection>.fbs-order-row { background: #f3f7fc; }
.fbs-market-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; font-size: 16px; font-weight: 700; letter-spacing: -.5px; flex-shrink: 0; }
.fbs-market-mark.wb { color: white; background: #8124bb; }
.fbs-market-mark.ozon { color: white; background: #005bff; font-size: 12px; letter-spacing: -.4px; }
.fbs-cabinet-name { border: 0; background: transparent; text-align: left; padding: 10px 0; min-width: 0; }
.fbs-cabinet-name strong { display: block; font-size: 16px; line-height: 1.4; font-weight: 600; }
.fbs-cabinet-name span { display: block; color: var(--dim); font-size: 12px; margin-top: 5px; }
.fbs-cabinet-stat { text-align: center; }
.fbs-cabinet-stat b { font-size: 22px; font-weight: 550; font-variant-numeric: tabular-nums; }
.fbs-cabinet-stat span { display: none; }
.fbs-expand { display: grid; place-items: center; width: 36px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--dim); }
.fbs-expand svg { width: 18px; height: 18px; transition: transform 160ms ease-out; }
.fbs-expand.open svg { transform: rotate(180deg); }
.fbs-pick-control { position: relative; display: grid; place-items: center; width: 44px; height: 44px; margin: 0; cursor: pointer; }
.workspace .fbs-pick-control input { position: absolute; inset: 0; width: 44px; height: 44px; margin: 0; opacity: 0; cursor: pointer; }
.fbs-check-shape { width: 22px; height: 22px; border: 1.5px solid var(--edge); border-radius: 6px; pointer-events: none; position: relative; background: white; }
.fbs-pick-control input:checked+.fbs-check-shape,.fbs-pick-control input:indeterminate+.fbs-check-shape { background: var(--acc); border-color: var(--acc); }
.fbs-pick-control input:checked+.fbs-check-shape::after { content: ''; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.fbs-pick-control input:indeterminate+.fbs-check-shape::after { content: ''; position: absolute; left: 4px; top: 9px; width: 12px; height: 2px; background: white; }
.fbs-pick-control input:focus-visible+.fbs-check-shape { outline: 3px solid var(--acc); outline-offset: 4px; }
.fbs-pick-control input:disabled+.fbs-check-shape { background: var(--bg); border-color: var(--line2); }
.fbs-cabinet-details { padding: 4px 76px 20px 78px; }
.fbs-detail-labels,.fbs-warehouse-detail { display: grid; grid-template-columns: minmax(0,1fr) 80px 80px; gap: 16px; padding: 11px 0; font-size: 13px; }
.fbs-detail-labels { color: var(--dim); font-size: 11px; }
.fbs-warehouse-detail { border-top: 1px solid var(--line); }
.fbs-detail-labels>span:not(:first-child),.fbs-warehouse-detail>b { text-align: right; font-variant-numeric: tabular-nums; }
.fbs-warehouse-detail>b { font-weight: 500; }
.fbs-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 16px; margin-top: 22px; border-radius: 10px; background: var(--bg); }
.fbs-bottom.is-selected { position: sticky; bottom: 12px; background: #edf4fd; z-index: 4; }
.fbs-bottom strong { display: block; font-size: 14px; font-weight: 550; }
.fbs-bottom span { display: block; color: var(--dim); font-size: 12px; margin-top: 5px; }
.fbs-bottom .ws-button { flex-shrink: 0; }
.fbs-source-note { font-size: 11px; color: var(--dim); margin: 15px 2px 0; line-height: 1.6; }
.fbs-order-labels,.fbs-order-row { display: grid; grid-template-columns: 130px minmax(190px,1fr) minmax(170px,.7fr) 50px 44px; align-items: center; gap: 18px; padding: 15px 12px; }
.fbs-order-labels { font-size: 11px; color: var(--dim); padding-top: 0; }
.fbs-order { border-top: 1px solid var(--line); }
.fbs-order time { color: var(--dim); font-size: 12px; }
.fbs-order-name { display: block; text-align: left; border: 0; background: transparent; padding: 6px 0; min-width: 0; }
.fbs-order-name strong { display: block; font-size: 13px; font-weight: 550; overflow-wrap: anywhere; }
.fbs-order-name span { display: block; color: var(--dim); font-size: 12px; margin-top: 5px; }
.fbs-order-company { display: flex; align-items: center; gap: 9px; font-size: 12px; }
.fbs-order-company .fbs-market-mark { width: 29px; height: 29px; border-radius: 7px; font-size: 10px; }
.fbs-order-units { text-align: center; font-weight: 550; font-variant-numeric: tabular-nums; }
.fbs-order-units span { display: none; }
.fbs-order-details { padding: 0 76px 18px 160px; }
.fbs-order-details>p { color: var(--dim); font-size: 12px; margin: 0 0 12px; }
.fbs-order-product { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; }
.fbs-order-product>span>span { display: block; color: var(--dim); margin-top: 4px; }
.fbs-order-product>b { flex-shrink: 0; font-weight: 500; }
.fbs-pagination { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: 22px 0; color: var(--dim); font-size: 12px; }
.fbs-pagination>div { display: flex; align-items: center; gap: 12px; }
.fbs-empty { text-align: center; padding: 36px 0; color: var(--dim); }
.fbs-empty h2 { color: var(--txt); font-size: 17px; }
@media(max-width:1100px) {
  .fbs-cabinet-labels,.fbs-order-labels { display: none; }
  .fbs-cabinet-row { grid-template-columns: repeat(12,minmax(0,1fr)); gap: 12px 8px; padding: 18px 10px; }
  .fbs-cabinet-row>.fbs-market-mark { grid-column: 1 / 3; grid-row: 1; }
  .fbs-cabinet-name { grid-column: 3 / 9; grid-row: 1; padding: 0; }
  .fbs-expand { grid-column: 9 / 11; grid-row: 1; justify-self: end; }
  .fbs-cabinet-row>.fbs-pick-control { grid-column: 11 / 13; grid-row: 1; justify-self: end; }
  .fbs-order-count { grid-column: 1 / 5; grid-row: 2; }
  .fbs-unit-count { grid-column: 5 / 9; grid-row: 2; }
  .fbs-warehouse-count { grid-column: 9 / 13; grid-row: 2; }
  .fbs-cabinet-stat { text-align: left; padding-top: 8px; }
  .fbs-cabinet-stat span { display: block; color: var(--dim); font-size: 11px; margin-bottom: 5px; }
  .fbs-cabinet-stat b { font-size: 20px; }
  .fbs-order-row { grid-template-columns: minmax(0,1fr) 54px 44px; gap: 7px 12px; }
  .fbs-order time { grid-column: 1 / 4; }
  .fbs-order-name { grid-column: 1; }
  .fbs-order-company { grid-column: 1 / 4; grid-row: 3; }
  .fbs-order-units { grid-column: 2; grid-row: 2; }
  .fbs-order-row>.fbs-pick-control { grid-column: 3; grid-row: 2; }
  .fbs-order-units span { display: inline; font-size: 11px; color: var(--dim); }
  .fbs-order-details { padding: 10px 12px 18px; }
}
@media(max-width:640px) {
  .fbs-page .ws-page-heading { align-items: center; }
  .fbs-controls { flex-direction: column; align-items: stretch; gap: 17px; margin-bottom: 15px; }
  .fbs-view-switch { align-self: flex-start; }
  .fbs-view-switch button { padding: 9px 16px; }
  .fbs-search { width: 100%; }
  .fbs-search input { font-size: 16px; }
  .fbs-cabinet-name strong { font-size: 14px; }
  .fbs-cabinet-name span { font-size: 11px; }
  .fbs-market-mark { width: 40px; height: 40px; border-radius: 10px; }
  .fbs-cabinet-details { padding: 3px 10px 18px; }
  .fbs-detail-labels,.fbs-warehouse-detail { grid-template-columns: minmax(0,1fr) 44px 40px; gap: 10px; font-size: 12px; }
  .fbs-detail-labels { font-size: 10px; }
  .fbs-bottom { padding: 16px 12px; gap: 12px; flex-wrap: wrap; }
  .fbs-bottom.is-selected { bottom: 77px; }
  .fbs-bottom>.ws-button { width: 100%; justify-content: center; }
  .fbs-pagination { align-items: flex-start; flex-direction: column; }
}
@media(prefers-reduced-motion:reduce) { .fbs-expand svg { transition: none; } }
.workspace .sr { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; }
.workspace input.ws-check::before, .workspace input.ws-check::after { content: none; }
.workspace input.ws-check { display: inline-block; flex: none; }
.workspace th.col-check, .workspace td.col-check { text-align: left; }
.workspace .ws-legacy > h1 { margin-top: 0; }
.workspace .ws-sheet-table { overflow-x: auto; }
.workspace .ws-sheet-table table { min-width: 600px; }
.workspace ::selection { background: #cce4ff; color: #153b64; }
.workspace input, .workspace textarea { caret-color: var(--acc); }
.workspace :focus-visible { outline: 3px solid #0071e3; outline-offset: 3px; }
.workspace button, .workspace input, .workspace select { font: inherit; }
.workspace button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.workspace button:disabled { cursor: default; opacity: .45; }
.workspace a { text-underline-offset: 3px; }
.workspace [hidden] { display: none !important; }
.workspace svg { width: 20px; height: 20px; display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.workspace-shell { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100dvh; }
.workspace-sidebar { background: var(--bg); border-right: 1px solid var(--line); height: 100dvh; position: sticky; top: 0; display: flex; flex-direction: column; padding: 30px 14px 18px; }
.workspace-brand { display: flex; align-items: center; gap: 10px; color: var(--txt); text-decoration: none; padding: 0 13px 32px; font-size: 14px; font-weight: 650; letter-spacing: .7px; }
.brand-mark { width: 32px; height: 32px; border-radius: 10px; background: var(--txt); color: white; display: grid; place-items: center; font-size: 20px; font-weight: 450; }
.brand-description { display: block; font-size: 12px; color: var(--dim); letter-spacing: 0; font-weight: 400; margin-top: 1px; }
.workspace-nav { display: flex; flex-direction: column; gap: 5px; overflow-y: auto; }
.workspace-nav button, .nav-more { width: 100%; min-height: 43px; display: flex; align-items: center; gap: 11px; padding: 9px 12px; border: 0; background: none; color: #434349; border-radius: 9px; text-align: left; }
.workspace-nav button:hover, .nav-more:hover { background: #eaeaec; }
.workspace-nav .nav-primary { font-size: 15px; font-weight: 550; }
.workspace-nav .nav-primary.active { color: var(--txt); }
.workspace-nav .nav-primary > svg { color: #5f6269; }
.workspace-nav .nav-primary.active > svg { color: var(--acc); }
.nav-children { margin: 1px 0 13px; display: grid; gap: 2px; }
.ws-soon { display: block; font-size: 11px; font-weight: 400; margin-top: 2px; }
.workspace-nav button:disabled { opacity: 1; color: var(--dim); }
.ws-stage-options { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.ws-future-flow { max-width: 650px; line-height: 1.7; }
.ws-future-flow ol { padding-left: 24px; }
.ws-future-flow li { padding: 7px 0; }
.ws-incoming-search { display: block; max-width: 500px; margin: 24px 0; color: var(--dim); font-size: 12px; }
.ws-incoming-input { display: block; width: 100%; padding: 11px 12px; border: 1px solid var(--line2); border-radius: var(--r1); margin-top: 7px; color: var(--txt); }
.workspace-nav .nav-child { min-height: 35px; font-size: 13px; padding: 7px 10px 7px 43px; gap: 6px; }
.workspace-nav .nav-child[aria-current="page"] { background: #e0e9f5; color: #075db7; font-weight: 600; }
.nav-count { margin-left: auto; font-size: 11px; font-weight: 500; color: var(--dim); }
.nav-children-separator { height: 1px; margin: 6px 12px 6px 43px; background: var(--line); }
.sidebar-bottom { margin-top: auto; padding-top: 24px; }
.nav-more { font-size: 14px; }
.sidebar-user { display: flex; gap: 9px; padding: 20px 10px 0; margin-top: 12px; border-top: 1px solid var(--line); align-items: center; }
.user-avatar { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: #e3e4e9; color: #515563; font-size: 12px; font-weight: 600; flex-shrink: 0; }
.sidebar-user b { font-size: 12px; font-weight: 550; display: block; max-width: 139px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user #roleLabel { display: block; color: var(--dim); font-size: 11px; margin-top: 1px; }
.workspace-body { min-width: 0; }
.workspace-topbar { min-height: 65px; display: flex; align-items: center; justify-content: space-between; padding: 0 36px; gap: 20px; border-bottom: 1px solid var(--line); background: var(--card); }
.copy-label { font-size: 11px; color: var(--dim); display: flex; align-items: center; gap: 10px; }
.copy-label > span:first-child { background: var(--bg); border: 1px solid var(--line); padding: 3px 7px; border-radius: 5px; white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: 19px; }
.topbar-button, .connection-button { display: flex; align-items: center; gap: 7px; min-height: 36px; background: none; border: none; color: var(--dim); font-size: 12px !important; padding: 4px 0; white-space: nowrap; }
.topbar-button:hover { color: var(--txt); }
.topbar-button svg { width: 16px; height: 16px; }
.connection-button .dot { width: 6px; height: 6px; background: var(--ok); border-radius: 50%; display: inline-block; }
.workspace-topbar.off .connection-button { color: var(--bad); }
.workspace-topbar.off .dot { background: var(--bad); }
.mobile-brand, .mobile-nav { display: none; }
.workspace-main.page { padding: 34px 36px 44px; min-width: 0; overflow: visible; flex: initial; background: var(--card); }
.workspace-main > .screen.on { display: block; height: auto; min-height: 0; padding: 0; }
.workspace-main .screen:not(.on) { display: none; }
.workspace-alert:empty { display: none; }
.workspace-alert { padding: 10px 36px; font-size: 13px; background: var(--warnbg); color: var(--warn); }
.ws-page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 27px; }
.ws-page-heading h1 { font-size: 27px; line-height: 1.2; letter-spacing: -.6px; font-weight: 650; margin: 0; }
.ws-page-heading p { color: var(--dim); font-size: 13px; margin: 8px 0 0; }
.ws-heading-actions { display: flex; gap: 8px; flex-shrink: 0; }
.ws-button { min-height: 38px; border: 1px solid var(--line2); border-radius: 8px; background: var(--card); color: var(--txt); display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 13px; font-size: 13px !important; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.ws-button:hover { background: var(--bg); }
.ws-button.primary { border-color: var(--acc); background: var(--acc); color: white; }
.ws-button.primary:hover { background: #0066ce; }
.ws-button.subtle { background: transparent; border-color: transparent; color: var(--acc); }
.ws-button.subtle:hover { background: var(--sel); }
.ws-button.small { min-height: 31px; padding: 5px 9px; font-size: 12px !important; }
.ws-button svg { width: 16px; height: 16px; }
.ws-icon-button { display: inline-flex; align-items: center; justify-content: center; min-width: 37px; min-height: 37px; padding: 7px; border: 1px solid transparent; background: transparent; color: var(--dim); border-radius: 8px; }
.ws-icon-button:hover { background: var(--bg); color: var(--txt); }
.ws-segments { display: inline-flex; align-items: center; padding: 3px; border-radius: 9px; background: var(--bg); gap: 2px; }
.ws-segments button { min-height: 31px; font-size: 12px; color: var(--dim); padding: 5px 13px; border: 0; border-radius: 7px; background: transparent; white-space: nowrap; }
.ws-segments button.active { color: var(--txt); background: var(--card); box-shadow: 0 1px 3px rgb(0 0 0 / 11%); font-weight: 550; }
.ws-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 17px; }
.ws-search { flex: 1 1 240px; min-width: 190px; max-width: 400px; position: relative; display: flex; align-items: center; }
.ws-search > svg { position: absolute; left: 12px; width: 17px; height: 17px; color: var(--dim); pointer-events: none; }
.ws-search input { width: 100%; height: 39px; padding: 8px 35px 8px 37px; border: 1px solid var(--line2); border-radius: 9px; background: var(--card); color: var(--txt); font-size: 13px; outline: none; box-shadow: none; }
.ws-search input:focus { border-color: var(--acc); box-shadow: var(--ring); }
.ws-search input::placeholder { color: var(--placeholder); opacity: 1; }
.ws-search input::-webkit-search-cancel-button { display: none; }
.ws-clear-search { position: absolute; right: 5px; width: 28px; height: 28px; border: 0; background: none; color: var(--dim); display: grid; place-items: center; border-radius: 5px; }
.ws-clear-search svg { width: 14px; height: 14px; }
.ws-toolbar-spacer { flex: 1; }
.ws-sort { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.ws-sort select { min-height: 37px; border: 0; color: var(--dim); background: transparent; font-size: 12px; padding: 7px 20px 7px 5px; width: auto; max-width: 195px; box-shadow: none; }
.ws-sort > svg { color: var(--dim); width: 15px; height: 15px; }
.ws-filter-button { color: var(--dim); }
.ws-filter-button.active { background: var(--sel); border-color: #b3d3f7; color: #075db7; }
.ws-filters { display: flex; flex-wrap: wrap; gap: 12px; background: var(--bg); border-radius: 10px; padding: 16px; margin: -4px 0 16px; align-items: end; }
.ws-filters label { display: grid; gap: 6px; font-size: 12px; color: var(--dim); min-width: 150px; flex: 1; }
.ws-filters select { font-size: 13px; min-height: 38px; color: var(--txt); background: white; border: 1px solid var(--line2); border-radius: 7px; padding: 7px 28px 7px 10px; width: 100%; box-shadow: none; }
.ws-active-filters { display: flex; flex-wrap: wrap; gap: 7px; margin: -4px 0 16px; }
.ws-filter-chip { display: inline-flex; align-items: center; gap: 5px; border: 0; border-radius: 6px; background: var(--bg); color: var(--dim); padding: 5px 7px 5px 9px; font-size: 11px !important; }
.ws-filter-chip svg { width: 12px; height: 12px; }
.ws-list-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--dim); padding: 0 2px 12px; }
.ws-list-meta b { color: var(--txt); font-weight: 550; }
.ws-table-container { border: 1px solid var(--line); border-radius: 12px; overflow: clip; }
.ws-table { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.ws-table th { color: var(--dim); font-size: 11px; font-weight: 500; background: #fafafa; text-transform: none; padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; letter-spacing: 0; position: static; }
.ws-table th button { background: none; border: 0; color: inherit; padding: 0; display: inline-flex; align-items: center; gap: 5px; font: inherit; min-height: 24px; }
.ws-table th svg { width: 12px; height: 12px; }
.ws-table td { border-bottom: 1px solid #eeeeF0; padding: 12px; vertical-align: middle; color: var(--txt); }
.ws-table tr:last-child td { border-bottom: 0; }
.ws-table tr.ws-data-row:hover > td { background: #fafbfc; }
.ws-table tr.ws-data-row.selected > td { background: #f2f7fe; }
.ws-table .col-check { width: 42px; padding-left: 16px; padding-right: 8px; }
.ws-table .col-product { width: auto; }
.ws-table .col-channel { width: 145px; }
.ws-table .col-qty { width: 84px; text-align: right; }
.ws-table th.col-qty button { justify-content: flex-end; width: 100%; }
.ws-table .col-cell { width: 113px; }
.ws-table .col-destination { width: 148px; }
.ws-table .col-arrow { width: 34px; padding-right: 13px; padding-left: 0; }
.ws-table .col-stock { width: 105px; text-align: right; }
.ws-table .col-kind { width: 114px; }
.ws-table .wh-name { width: auto; }
.ws-table .wh-channels { width: 205px; }
.ws-table .wh-orders, .ws-table .wh-qty { width: 105px; text-align: right; }
.ws-warehouse-name { display: block; padding: 0; border: 0; background: transparent; color: var(--txt); text-align: left; font-size: 14px; font-weight: 550; line-height: 1.5; }
.ws-warehouse-name:hover { color: var(--acc); }
.wh-channels .ws-market { display: flex; margin: 5px 0; }
.ws-warehouse-row:hover td { background: #fafbfc; }
.wh-mobile-label { display: none; }
.ws-warehouse-breakdown { max-width: 600px; }
.ws-warehouse-breakdown > div { display: grid; grid-template-columns: 1fr 90px 105px; padding: 8px 0; gap: 16px; font-size: 12px; border-bottom: 1px solid var(--line); }
.ws-warehouse-breakdown > div:last-child { border-bottom: 0; }
.ws-warehouse-breakdown-head { color: var(--dim); }
.ws-warehouse-breakdown > div > :not(:first-child) { text-align: right; }
.ws-warehouse-breakdown b { font-weight: 550; }
.workspace input.ws-check { appearance: auto; width: 16px; height: 16px; min-height: 16px; min-width: 16px; margin: 0; accent-color: var(--acc); box-shadow: none; cursor: pointer; }
.ws-product { display: flex; gap: 12px; align-items: center; min-width: 0; background: transparent; border: 0; padding: 0; color: var(--txt); width: 100%; text-align: left; }
.ws-thumb { width: 44px; height: 48px; border-radius: 7px; background: #f3f3f5; display: grid; place-items: center; overflow: hidden; flex-shrink: 0; }
.ws-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ws-thumb svg { width: 23px; height: 23px; stroke-width: 1.2; color: #96969e; }
.ws-product-copy { display: block; min-width: 0; flex: 1; }
.ws-product-article { display: block; font-size: 13px; line-height: 1.25; font-weight: 580; letter-spacing: .05px; }
.ws-product-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; font-size: 12px; line-height: 1.4; color: var(--dim); margin-top: 4px; }
.ws-product-size { font-size: 11px; color: var(--dim); font-weight: 400; margin-left: 6px; }
.ws-qty { font-weight: 600; font-size: 15px; }
.ws-subtext { display: block; font-size: 11px; color: var(--dim); margin-top: 3px; }
.ws-market { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 500; }
.ws-market-dot { height: 6px; width: 6px; border-radius: 50%; background: #a347ab; }
.ws-market.ozon .ws-market-dot { background: #3274bf; }
.ws-cell { display: inline-block; background: var(--bg); border-radius: 5px; color: #4d5059; padding: 3px 7px; font-size: 12px; white-space: nowrap; }
.ws-cell-missing { color: var(--warn); font-size: 11px; }
.ws-destination { font-size: 12px; color: #54545b; line-height: 1.4; overflow-wrap: anywhere; }
.ws-row-chevron { color: #92929a; }
.ws-row-chevron svg { width: 15px; height: 15px; transition: transform 180ms ease-out; }
.ws-row-chevron.open svg { transform: rotate(90deg); }
.ws-tag { display: inline-flex; align-items: center; min-height: 24px; font-size: 11px; color: #61616a; background: var(--bg); border-radius: 5px; padding: 3px 7px; white-space: nowrap; }
.ws-tag.warning { background: var(--warnbg); color: var(--warn); }
.ws-tag.blue { background: var(--sel); color: #075db7; }
.ws-details-row td { background: #fafbfc; padding: 19px 24px 22px 70px; }
.ws-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.ws-detail-grid h3 { font-size: 12px; font-weight: 600; color: var(--txt); margin: 0 0 9px; }
.ws-detail-grid p { font-size: 12px; color: var(--dim); margin: 0; }
.ws-detail-line { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; font-size: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.ws-detail-line:last-child { border-bottom: 0; }
.ws-detail-line > span { min-width: 0; overflow-wrap: anywhere; }
.ws-detail-line b { font-weight: 500; }
.ws-detail-line small { font-size: 11px; color: var(--dim); }
.ws-detail-actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.ws-pagination { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; gap: 15px; font-size: 11px; color: var(--dim); }
.ws-pagination-controls { display: flex; align-items: center; gap: 9px; }
.ws-pagination .ws-icon-button { min-width: 30px; min-height: 30px; padding: 5px; }
.ws-selection { position: sticky; bottom: 18px; margin: 9px auto 0; background: #fff; border: 1px solid var(--line2); border-radius: 12px; box-shadow: 0 6px 26px rgb(0 0 0 / 10%); min-height: 62px; padding: 11px 14px 11px 20px; display: flex; align-items: center; gap: 15px; max-width: 560px; z-index: 7; }
.ws-selection-text { flex: 1; font-size: 12px; }
.ws-selection-text b { font-weight: 600; }
.ws-empty { padding: 70px 20px; text-align: center; }
.ws-empty > svg { margin: 0 auto 14px; width: 32px; height: 32px; color: #81818a; stroke-width: 1.3; }
.ws-empty h2 { margin: 0; font-size: 18px; font-weight: 600; }
.ws-empty p { color: var(--dim); font-size: 13px; max-width: 390px; margin: 9px auto 20px; }
.workspace-loading { padding-top: 30px; display: grid; gap: 18px; }
.workspace-loading > div { height: 56px; background: var(--bg); border-radius: 9px; }
.workspace-loading > div:first-child { width: 40%; height: 30px; margin-bottom: 20px; }
.workspace-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 100; border: 1px solid var(--line2); background: var(--card); box-shadow: 0 5px 20px rgb(0 0 0 / 12%); border-radius: 10px; padding: 12px 18px; font-size: 13px; max-width: calc(100vw - 36px); }
.ws-legacy-back { margin-bottom: 17px; }
.ws-legacy { min-width: 0; }
.workspace .ws-legacy h1 { font-size: 25px; line-height: 1.25; letter-spacing: -.4px; }
.workspace .ws-legacy h2 { font-size: 18px; line-height: 1.3; }
.workspace .ws-legacy .sub { font-size: 13px; color: var(--dim); }
.workspace .ws-legacy .card { border-color: var(--line); border-radius: 12px; box-shadow: none; }
.workspace .ws-legacy .btn { border-radius: 8px; font-size: 13px; min-height: 39px; font-weight: 550; }
.workspace .ws-legacy .tag, .workspace .ws-legacy .chip { font-size: 12px; }
.workspace .ws-legacy .screen { padding: 0; }
.workspace .ws-legacy .sticky { position: static; background: var(--card); }
.workspace .ws-legacy .foot { background: var(--card); }
.workspace .ws-legacy table { font-size: 13px; }
.workspace .ws-legacy th { font-size: 11px; text-transform: none; background: #f8f8fa; }
.workspace .ws-legacy td { font-size: 13px; }
.workspace .ws-legacy .note { font-size: 13px; }
.workspace .ws-legacy .pick-purpose, .workspace .ws-legacy .pick-help { font-size: 13px; }
.workspace #s-pack .pack-meter { display: none; }
.workspace #s-new .nz-kpis, .workspace #s-new .nz-nazhmi, .workspace #s-new .nz-srok { display: none; }
.workspace .ws-legacy #packLists > .card:has([data-vscan]) { display: none; }
.workspace .ws-legacy #pickOzon { margin-top: 28px; }
.workspace .ws-legacy #pickOzon:empty { display: none; }
.workspace .ws-legacy .ozon-table-wrap { max-height: none; }
.workspace .ws-legacy #s-new.on { display: block; height: auto; }
.workspace .ws-legacy .nz-work { height: auto; overflow: visible; }
.workspace .ws-legacy .nz-list { min-height: 340px; }
.workspace .ws-legacy .ozon-kpi, .workspace .ws-legacy .ship-kpi { display: none; }
.workspace .ws-legacy .title .hint { max-width: 65ch; }
.ws-more-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 44px; max-width: 940px; }
.ws-more-section h2 { font-size: 15px; margin: 0 0 13px; font-weight: 600; }
.ws-more-links { border-top: 1px solid var(--line); }
.ws-more-link { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 56px; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 11px 2px; text-align: left; color: var(--txt); }
.ws-more-link:hover { color: var(--acc); }
.ws-more-link span { flex: 1; }
.ws-more-link b { font-size: 13px; font-weight: 500; display: block; }
.ws-more-link small { display: block; color: var(--dim); font-size: 11px; margin-top: 3px; }
.ws-more-link > svg:last-child { width: 14px; height: 14px; color: #8e8e96; }
.ws-inline-notice { display: flex; gap: 9px; align-items: flex-start; padding: 13px 15px; margin: 16px 0; color: var(--dim); background: var(--bg); border-radius: 8px; font-size: 12px; }
.ws-inline-notice svg { width: 17px; height: 17px; margin-top: 1px; }
.ws-inline-notice p { margin: 0; }
.ws-sheet-summary { display: flex; gap: 24px; padding: 3px 0 23px; color: var(--dim); font-size: 13px; }
.ws-sheet-summary b { color: var(--txt); font-weight: 600; }
.ws-station-list { display: grid; gap: 8px; }
.ws-station-option { border: 1px solid var(--line); border-radius: 8px; background: white; min-height: 46px; text-align: left; padding: 10px 13px; }
.ws-station-option:hover { background: var(--sel); }
.workspace .modal .box { border-radius: 16px; box-shadow: var(--sh-modal); }
.workspace .modal .mhead h2 { font-size: 21px; }
.workspace .modal .mhead, .workspace .modal .mfoot { background: var(--card); }
.workspace .modal .mbody { font-size: 14px; }
.workspace .navlock { display: none; padding: 12px; margin: 14px 0; font-size: 12px; background: var(--warnbg); border: 0; color: var(--warn); border-radius: 8px; }
.workspace .navlock.on { display: grid; gap: 5px; }
@media (min-width: 1600px) {
  .workspace-main.page { padding-left: 48px; padding-right: 48px; }
  .workspace-topbar { padding-left: 48px; padding-right: 48px; }
  .ws-table .col-channel { width: 160px; }
  .ws-table .col-destination { width: 180px; }
}
@media (max-width: 1200px) and (min-width: 801px) {
  :root { --sidebar-width: 192px; }
  .workspace-main.page { padding: 28px 24px 40px; }
  .workspace-topbar { padding: 0 24px; }
  .copy-detail { display: none; }
  .ws-table .col-destination { display: none; }
  .ws-table .col-channel { width: 120px; }
  .ws-table .col-cell { width: 90px; }
  .ws-table .col-qty { width: 65px; }
  .ws-table td { padding: 11px 9px; }
}
@media (max-width: 800px) {
  .workspace .ws-warehouses .ws-warehouse-row { display: grid; grid-template-columns: 1fr 1fr 32px; gap: 12px 16px; padding: 19px 0; border-bottom: 1px solid var(--line); }
  .workspace .ws-warehouses .ws-warehouse-row > td { display: block; padding: 0; border: 0; width: auto; background: transparent; text-align: left; }
  .workspace .ws-warehouses .wh-name { grid-column: 1 / 3; grid-row: 1; }
  .workspace .ws-warehouses .wh-channels { grid-column: 1 / -1; grid-row: 2; display: flex !important; flex-wrap: wrap; gap: 6px 16px; }
  .workspace .ws-warehouses .wh-orders { grid-column: 1; grid-row: 3; }
  .workspace .ws-warehouses .wh-qty { grid-column: 2; grid-row: 3; }
  .workspace .ws-warehouses .col-arrow { grid-column: 3; grid-row: 1; display: block; }
  .wh-mobile-label { display: block; font-size: 11px; color: var(--dim); margin-bottom: 4px; }
  .ws-warehouse-name { font-size: 14px; }
  .ws-warehouse-breakdown > div { grid-template-columns: 1fr 58px 78px; gap: 8px; }
  .workspace #pickOzon .tw { overflow: visible; max-height: none; }
  .workspace #pickOzon table, .workspace #pickOzon tbody { display: block; width: 100%; }
  .workspace #pickOzon thead { display: none; }
  .workspace #pickOzon tr { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .workspace #pickOzon td { display: block; padding: 0; border: 0; width: auto; text-align: left; overflow-wrap: anywhere; }
  .workspace #pickOzon td:nth-child(1), .workspace #pickOzon td:nth-child(2), .workspace #pickOzon td:nth-child(5) { grid-column: 1 / -1; }
  .workspace #pickOzon td:nth-child(5) { display: flex; flex-wrap: wrap; gap: 9px; }
  .workspace #pickOzon td:nth-child(5) .btn { width: auto; margin: 0; }
  .workspace-shell { display: block; }
  .workspace-sidebar { display: none; }
  .workspace-topbar { min-height: 58px; padding: 8px 18px; gap: 9px; position: sticky; top: 0; z-index: 10; }
  .mobile-brand { display: block; border: 0; background: none; font-size: 12px !important; font-weight: 700; letter-spacing: 1px; padding: 9px 0; color: var(--txt); }
  .copy-label { margin-right: auto; }
  .copy-label > span:first-child { font-size: 10px; padding: 3px 6px; }
  .copy-detail { display: none; }
  .topbar-actions { gap: 11px; }
  #placeLabel, .connection-button > span:not(.dot) { display: none; }
  .topbar-button { min-width: 30px; justify-content: center; }
  .connection-button { min-width: 19px; }
  .workspace-main.page { padding: 25px 18px 108px; }
  .ws-page-heading { align-items: flex-start; gap: 12px; margin-bottom: 23px; }
  .ws-page-heading h1 { font-size: 25px; letter-spacing: -.4px; }
  .ws-page-heading p { font-size: 12px; margin-top: 7px; max-width: 220px; }
  .ws-page-heading .ws-heading-actions .ws-button { padding: 8px 10px; }
  .ws-page-heading .ws-heading-actions .ws-button .button-full-label { display: none; }
  .ws-page-heading:has(.ws-button.primary) { flex-wrap: wrap; }
  .ws-page-heading:has(.ws-button.primary) .ws-heading-actions { width: 100%; justify-content: space-between; }
  .ws-heading-actions { gap: 0; }
  .ws-toolbar { gap: 9px; margin-bottom: 13px; }
  .ws-search { max-width: none; flex-basis: calc(100% - 100px); min-width: 150px; }
  .ws-search input { font-size: 16px; height: 43px; }
  .ws-toolbar .ws-filter-button { min-height: 43px; }
  .ws-sort { margin-left: auto; }
  .ws-toolbar-spacer { display: none; }
  .ws-sort select { font-size: 12px; }
  .ws-segments { max-width: 100%; }
  .ws-segments button { padding: 5px 10px; min-height: 32px; }
  .ws-list-meta { font-size: 11px; align-items: flex-start; padding-bottom: 10px; }
  .ws-list-meta .ws-list-meta-secondary { display: none; }
  .ws-filters { display: grid; grid-template-columns: 1fr; }
  .ws-filters select { font-size: 16px; height: 43px; }
  .ws-filters label { min-width: 0; }
  .ws-table-container { border-left: 0; border-right: 0; border-radius: 0; }
  .ws-table, .ws-table tbody { display: block; width: 100%; }
  .ws-table thead { display: none; }
  .ws-table .ws-data-row { display: grid; grid-template-columns: 27px minmax(0, 1fr) 51px; padding: 14px 0; gap: 7px 4px; border-bottom: 1px solid var(--line); }
  .ws-table .ws-data-row > td { border: 0; padding: 0; width: auto; background: transparent !important; }
  .ws-table .ws-data-row.selected { background: #f2f7fe; }
  .ws-table .col-check { grid-column: 1; grid-row: 1; align-self: center; }
  .workspace input.ws-check { width: 19px; height: 19px; min-width: 19px; min-height: 19px; }
  .ws-table .col-product { grid-column: 2; grid-row: 1; }
  .ws-table .col-qty, .ws-table .col-stock { grid-column: 3; grid-row: 1; align-self: center; padding-right: 2px !important; }
  .ws-table .col-channel { grid-column: 2; grid-row: 2; padding-left: 52px !important; }
  .ws-table .col-cell { grid-column: 3; grid-row: 2; justify-self: end; text-align: right; font-size: 10px; }
  .ws-table .col-cell .ws-subtext { display: none; }
  .ws-table .col-destination, .ws-table .col-arrow { display: none; }
  .ws-table .col-kind { grid-column: 2; grid-row: 2; padding-left: 52px !important; }
  .ws-table.catalog-table .ws-data-row { grid-template-columns: minmax(0, 1fr) 65px; }
  .ws-table.catalog-table .col-product { grid-column: 1; }
  .ws-table.catalog-table .col-stock { grid-column: 2; }
  .ws-table.catalog-table .col-kind { grid-column: 1; padding-left: 52px !important; }
  .ws-table.catalog-table .col-cell { grid-column: 2; }
  .ws-thumb { width: 42px; height: 44px; }
  .ws-product { gap: 10px; }
  .ws-product-article { font-size: 12px; overflow-wrap: anywhere; }
  .ws-product-name { font-size: 11px; -webkit-line-clamp: 2; margin-top: 3px; }
  .ws-qty { font-size: 16px; }
  .ws-market { font-size: 10px; }
  .ws-cell { font-size: 10px; padding: 2px 5px; }
  .ws-tag { min-height: 20px; font-size: 10px; padding: 2px 5px; }
  .ws-details-row { display: block; }
  .ws-details-row td { display: block; padding: 15px 12px; }
  .ws-detail-grid { grid-template-columns: 1fr; gap: 19px; }
  .ws-selection { bottom: 76px; margin: 14px -3px 0; min-height: 58px; padding: 9px 10px; gap: 8px; }
  .ws-selection-text { font-size: 11px; }
  .ws-selection .ws-button { font-size: 12px !important; padding: 8px 10px; }
  .ws-pagination { font-size: 10px; }
  .mobile-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0; min-height: 66px; padding: 5px 8px max(7px, env(safe-area-inset-bottom)); background: white; border-top: 1px solid var(--line); z-index: 12; }
  .mobile-nav button { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; min-height: 49px; border: 0; background: transparent; color: #6a6a73; font-size: 10px; border-radius: 8px; }
  .mobile-nav button.active { color: var(--acc); }
  .mobile-nav svg { width: 21px; height: 21px; }
  .ws-more-layout { grid-template-columns: 1fr; gap: 27px; }
  .workspace-toast { bottom: 85px; }
  .ws-sheet-summary { gap: 18px; font-size: 12px; }
  .workspace .ws-legacy .card { padding: 14px; }
  .workspace .ws-legacy h1 { font-size: 23px; }
  .workspace .ws-legacy .row { gap: 8px; }
  .workspace .ws-legacy .btn { min-height: 44px; }
  .workspace .ws-legacy .foot { bottom: 66px; }
}
@media (prefers-reduced-motion: reduce) { .workspace *, .workspace *::before, .workspace *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
@media print {
  .workspace-sidebar, .workspace-topbar, .mobile-nav, .ws-toolbar, .ws-heading-actions, .ws-pagination, .ws-selection, .ws-legacy-back, .workspace-toast { display: none !important; }
  .workspace-shell { display: block; }
  .workspace-main.page { padding: 0; }
  .ws-table-container { overflow: visible; }
  .ws-table th { position: static; }
  .ws-table tr { break-inside: avoid; }
}
/* Приоритеты ФБС и привязка складов используют общие поля и выбранное состояние. */
.fbs-priority { margin:0 0 24px; padding:18px 20px; background:#f5f5f7; border-radius:12px; }
.fbs-priority-heading { display:flex; align-items:baseline; gap:16px; margin-bottom:14px; }
.fbs-priority-heading span,.fbs-batch>span,.fbs-muted { color:#64646b; font-size:13px; }
.fbs-priority-fields { display:grid; grid-template-columns:1.2fr 1.6fr .65fr .65fr; gap:14px; }
.fbs-priority label,.fbs-batch label { display:flex; flex-direction:column; gap:6px; font-size:12px; color:#64646b; min-width:0; }
.fbs-priority select,.fbs-priority input,.fbs-link-search { height:40px; border:1px solid #d2d2d7; border-radius:8px; background:white; color:#1d1d1f; font:inherit; font-size:14px; padding:8px 10px; min-width:0; width:100%; }
.fbs-batch { display:flex; flex-wrap:wrap; align-items:end; gap:12px; margin-top:16px; }
.fbs-batch label { width:90px; }
.fbs-batch>span { align-self:center; padding-top:20px; }
.fbs-confirm { width:min(500px,calc(100% - 32px)); box-sizing:border-box; padding:28px; border:1px solid #e5e5e9; border-radius:16px; color:#1d1d1f; box-shadow:0 18px 60px #0003; }
.fbs-confirm::backdrop { background:#0005; }
.fbs-confirm h2 { font-size:22px; line-height:1.25; margin:0 0 20px; }
.fbs-confirm p { line-height:1.55; }
.fbs-confirm-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:24px; }
.fbs-link-intro { color:#64646b; max-width:70ch; margin:0 0 24px; }
.fbs-link-cabinets { display:flex; flex-wrap:wrap; gap:0; border:1px solid #e5e5e9; border-radius:12px; overflow:hidden; }
.fbs-link-cabinet { flex:1 1 210px; min-width:0; display:grid; grid-template-columns:40px 1fr; grid-template-rows:1fr auto; gap:6px 12px; padding:18px; border:0; border-right:1px solid #e5e5e9; background:#fff; text-align:left; font:inherit; cursor:pointer; }
.fbs-link-cabinet:hover { background:#f5f5f7; }
.fbs-link-cabinet[aria-pressed=true] { background:#e8f1fc; }
.fbs-link-cabinet .fbs-market-mark { grid-row:1 / 3; align-self:start; }
.fbs-link-cabinet strong { font-size:14px; line-height:1.35; overflow-wrap:anywhere; }
.fbs-link-cabinet>span:last-child { grid-column:2; font-size:12px; color:#64646b; }
.fbs-link-cabinet[aria-pressed=true]>span:last-child { color:#32587e; }
.fbs-link-destination { display:flex; gap:12px; align-items:baseline; margin:26px 0; font-size:14px; color:#64646b; }
.fbs-link-destination strong { font-size:20px; color:#1d1d1f; }
.fbs-link-toolbar { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:14px; }
.fbs-link-toolbar h2 { font-size:18px; margin:0; }
.fbs-link-search { width:260px; }
.fbs-link-warehouses { border-top:1px solid #e5e5e9; }
#screen .fbs-link-warehouse { display:flex; justify-content:space-between; gap:24px; align-items:center; padding:16px 14px; margin:0; border-bottom:1px solid #e5e5e9; cursor:pointer; color:#1d1d1f; }
.fbs-link-warehouse:hover { background:#f5f5f7; }
.fbs-link-warehouse.connected { background:#f4f8fe; }
.fbs-link-warehouse>span { display:flex; flex-direction:column; gap:4px; min-width:0; }
.fbs-link-warehouse strong { font-size:14px; font-weight:550; overflow-wrap:anywhere; }
.fbs-link-warehouse span span { font-size:12px; color:#64646b; }
.fbs-link-warehouse input { flex:none; width:22px; height:22px; accent-color:#0071e3; }
.fbs-links .fbs-bottom { margin-top:20px; }
.fbs-detail-labels>span:first-child { line-height:1.4; }
@media(max-width:800px) {
 .fbs-page>.ws-page-heading { flex-wrap:wrap; gap:16px; }
 .fbs-priority { padding:16px; }
 .fbs-priority-heading { flex-direction:column; gap:5px; }
 .fbs-priority-fields { grid-template-columns:1fr 1fr; }
 .fbs-priority-fields label:nth-child(1),.fbs-priority-fields label:nth-child(2) { grid-column:1 / -1; }
 .fbs-priority select,.fbs-priority input,.fbs-link-search { font-size:16px; }
 .fbs-batch>button { flex:1; min-height:42px; height:auto; white-space:normal; line-height:1.4; }
 .fbs-batch>span { padding-top:0; }
 .fbs-confirm-actions { flex-direction:column-reverse; }
 .fbs-confirm-actions button { height:auto; min-height:42px; white-space:normal; }
 .fbs-link-cabinet { flex-basis:100%; border-right:0; border-bottom:1px solid #e5e5e9; padding:14px; }
 .fbs-link-toolbar { flex-direction:column; align-items:stretch; gap:12px; }
 .fbs-link-search { width:100%; }
 .fbs-links .fbs-bottom { align-items:stretch; }
}
.fbs-priority-fields { grid-template-columns:minmax(190px,1fr) minmax(240px,1.3fr) minmax(250px,1fr); align-items:start; gap:18px; }
#screen .fbs-priority-fields>label,.fbs-warehouse-field { margin:0; display:grid; gap:7px; min-width:0; font-size:12px; color:#64646b; font-weight:400; }
.fbs-priority-fields select,.fbs-priority-fields input,.fbs-warehouse-trigger { box-sizing:border-box; margin:0; height:42px; }
.fbs-warehouse-trigger { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:8px 12px; width:100%; border:1px solid #d2d2d7; border-radius:8px; background:#fff; color:#1d1d1f; font:inherit; font-size:14px; cursor:pointer; }
.fbs-warehouse-trigger:hover { border-color:#8b8b92; }
.fbs-warehouse-trigger svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.6; flex:none; }
.fbs-age-range { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:0; padding:0; border:0; min-width:0; }
.fbs-age-range legend { padding:0; margin-bottom:7px; color:#64646b; font-size:12px; }
#screen .fbs-age-range label { display:flex; flex-direction:row; grid-column:auto; align-items:center; gap:8px; margin:0; padding:0 10px; border:1px solid #d2d2d7; border-radius:8px; background:#fff; height:42px; min-width:0; box-sizing:border-box; color:#64646b; }
.fbs-age-range input { border:0; background:transparent; padding:0; height:38px; width:100%; min-width:0; }
.fbs-age-range label:focus-within { outline:2px solid #0071e3; outline-offset:2px; }
.fbs-age-range input:focus { outline:0; box-shadow:none; }
.fbs-batch { align-items:flex-end; gap:14px; }
.fbs-batch>label { margin:0; }
.fbs-batch>button { height:42px; }
.fbs-batch>span { align-self:flex-end; padding:0; display:flex; align-items:center; gap:5px; min-height:42px; }
.fbs-warehouse-panel { margin-top:18px; padding:0 18px; border:1px solid #d2d2d7; border-radius:10px; background:white; }
.fbs-warehouse-panel-head,.fbs-warehouse-panel-foot { display:flex; justify-content:space-between; align-items:center; gap:18px; padding:14px 0; }
.fbs-warehouse-panel-head>div { display:flex; gap:20px; }
.fbs-warehouse-panel-foot>span { color:#64646b; font-size:12px; }
.fbs-filter-cabinet { border-top:1px solid #e5e5e9; }
.fbs-filter-cabinet-head { display:flex; align-items:center; gap:16px; }
#screen .fbs-filter-cabinet-head>label { display:flex; flex-direction:row; flex:1; min-width:0; align-items:center; gap:12px; margin:0; padding:12px 0; color:#1d1d1f; cursor:pointer; }
.fbs-filter-cabinet-head>label>span { display:flex; align-items:center; gap:10px; min-width:0; }
.fbs-filter-cabinet-head strong { font-size:14px; overflow-wrap:anywhere; }
.fbs-filter-cabinet-head>span { font-size:12px; color:#64646b; white-space:nowrap; }
#screen .fbs-warehouse-panel input[type=checkbox] { width:20px; height:20px; min-width:20px; min-height:20px; padding:0; margin:0; flex:none; accent-color:#0071e3; }
#screen .fbs-warehouse-panel input[type=checkbox]::before { width:18px; height:18px; }
#screen .fbs-warehouse-panel input[type=checkbox]:indeterminate::before { background:#0071e3; border-color:#0071e3; }
#screen .fbs-warehouse-panel input[type=checkbox]:indeterminate::after { content:""; grid-area:1/1; place-self:center; width:10px; height:2px; border:0; background:white; transform:none; }
.fbs-warehouse-panel .fbs-market-mark { width:28px; height:28px; font-size:9px; }
.fbs-filter-warehouses { padding:0 0 10px 32px; }
#screen .fbs-filter-warehouses>label { display:flex; flex-direction:row; align-items:center; gap:12px; margin:0; padding:9px 0; color:#1d1d1f; font-weight:400; cursor:pointer; }
.fbs-filter-warehouses>label>span { overflow-wrap:anywhere; }
.fbs-age { display:flex; flex-direction:column; align-items:flex-start; gap:4px; font-variant-numeric:tabular-nums; }
.fbs-order-row .fbs-age strong { padding:4px 7px; border-radius:5px; font-size:13px; font-weight:600; }
.fbs-age>span { font-size:10px; line-height:1.3; }
.fbs-age.normal,.fbs-age-legend .normal { color:#286141; }
.fbs-age.normal strong { background:#edf7f0; }
.fbs-age.soon,.fbs-age-legend .soon { color:#855300; }
.fbs-age.soon strong { background:#fff4da; }
.fbs-age.late,.fbs-age-legend .late { color:#ad2631; }
.fbs-age.late strong { background:#ffedf0; }
.fbs-age.unknown { color:#64646b; }
.fbs-age-legend { display:flex; align-items:baseline; flex-wrap:wrap; gap:8px 18px; font-size:12px; margin:-9px 0 22px; }
.fbs-age-legend>span { font-weight:550; }
.fbs-age-legend details { color:#64646b; }
.fbs-age-legend details[open] { flex-basis:100%; }
.fbs-age-legend p { max-width:75ch; line-height:1.5; }
.fbs-age-legend summary { cursor:pointer; }
@media(max-width:1050px) {
 .fbs-priority-fields { grid-template-columns:1fr 1fr; }
 .fbs-age-range { grid-column:1 / -1; max-width:360px; }
}
@media(max-width:800px) {
 .fbs-priority-fields { grid-template-columns:1fr; gap:14px; }
 .fbs-priority-fields>label,.fbs-warehouse-field,.fbs-age-range { grid-column:1; }
 .fbs-age-range { width:100%; max-width:none; }
 .fbs-warehouse-trigger { font-size:16px; }
 .fbs-warehouse-panel { padding:0 12px; }
 .fbs-warehouse-panel-head { flex-wrap:wrap; gap:8px; }
 .fbs-filter-cabinet-head { gap:6px; }
 .fbs-filter-cabinet-head>label>span { gap:7px; }
 .fbs-filter-cabinet-head strong { font-size:12px; }
 .fbs-warehouse-panel .fbs-market-mark { width:24px; height:24px; }
 .fbs-warehouse-panel-foot { align-items:flex-start; }
 .fbs-filter-warehouses { padding-left:0; }
 .fbs-batch>span { width:100%; min-height:0; }
 .fbs-view-switch button { padding:10px 12px; }
}
.fp-list-summary { display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin:0 0 22px; color:var(--dim); font-size:12px; }
.fp-labels,.fp-position-row { display:grid; grid-template-columns:90px minmax(250px,1fr) 70px minmax(170px,.6fr) 36px; gap:18px; align-items:center; padding:17px 12px; }
.fp-labels { font-size:11px; color:var(--dim); padding-top:0; padding-bottom:12px; }
.fp-position { border-top:1px solid var(--line); }
.fp-position:last-child { border-bottom:1px solid var(--line); }
.fp-cell { display:flex; flex-direction:column; gap:4px; min-width:0; font-variant-numeric:tabular-nums; }
.fp-cell>strong { font-size:20px; font-weight:600; overflow-wrap:anywhere; }
.fp-cell>span { font-size:11px; color:var(--dim); }
.fp-product { display:flex; gap:14px; align-items:center; min-width:0; }
.fp-product>div:last-child { display:flex; flex-direction:column; gap:5px; min-width:0; }
.fp-product-name { padding:0; border:0; background:none; text-align:left; font:inherit; font-size:14px; font-weight:600; color:var(--txt); overflow-wrap:anywhere; cursor:pointer; }
.fp-product-name:hover { color:var(--acc); }
.fp-product>div>span,.fp-kit-name>span { color:var(--dim); font-size:12px; overflow-wrap:anywhere; line-height:1.4; }
.fp-product small,.fp-kit-name small { font-size:11px; color:var(--dim); overflow-wrap:anywhere; }
.fp-photo { display:flex; align-items:center; justify-content:center; width:46px; height:52px; flex:none; background:var(--bg); border-radius:6px; overflow:hidden; }
.fp-photo img { width:100%; height:100%; object-fit:contain; }
.fp-photo svg { width:22px; height:22px; fill:none; stroke:var(--dim); stroke-width:1.4; }
.fp-quantity { display:flex; align-items:baseline; gap:5px; font-variant-numeric:tabular-nums; }
.fp-quantity strong { font-size:18px; font-weight:550; }
.fp-quantity>span { display:none; font-size:11px; color:var(--dim); }
.fp-channel { display:flex; align-items:center; gap:9px; min-width:0; }
.fp-channel>.fbs-market-mark { width:30px; height:30px; font-size:10px; border-radius:7px; }
.fp-channel>span:last-child { font-size:12px; line-height:1.45; overflow-wrap:anywhere; }
.fp-details { display:grid; grid-template-columns:minmax(180px,.7fr) 1.5fr; gap:24px; padding:4px 66px 20px 120px; }
.fp-details>div { display:flex; flex-direction:column; gap:6px; font-size:12px; }
.fp-details span { color:var(--dim); }
.fp-details strong { font-weight:500; line-height:1.5; overflow-wrap:anywhere; }
.fp-warning { color:var(--warn)!important; }
.fp-kit { border-top:1px solid var(--line); padding:18px 12px; }
.fp-kit:last-child { border-bottom:1px solid var(--line); }
.fp-kit-head { display:grid; grid-template-columns:46px minmax(200px,1fr) minmax(170px,.6fr); gap:16px; align-items:center; }
.fp-kit-name { display:flex; flex-direction:column; gap:5px; min-width:0; }
.fp-kit-path { display:flex; flex-wrap:wrap; gap:8px 18px; align-items:baseline; padding:16px 0 0 62px; font-size:12px; }
.fp-kit-path>span { color:var(--dim); }
.fp-kit-path strong { font-weight:550; word-spacing:5px; }
.fp-components { margin:16px 0 0 62px; padding:0 16px; background:#f7f8fa; border-radius:8px; }
.fp-component { display:grid; grid-template-columns:80px 1fr 90px; gap:18px; padding:16px 0; align-items:center; border-top:1px solid var(--line); }
.fp-component:first-child { border-top:0; }
.fp-component>div:nth-child(2) { display:flex; flex-direction:column; gap:5px; min-width:0; }
.fp-component>div:nth-child(2)>strong { font-size:13px; overflow-wrap:anywhere; }
.fp-component>div:nth-child(2)>span,.fp-component small { font-size:11px; color:var(--dim); overflow-wrap:anywhere; line-height:1.5; }
.fp-component .fp-quantity>span { display:block; }
@media(max-width:800px) {
 .fp-labels { display:none; }
 .fp-list-summary { align-items:flex-start; font-size:11px; }
 .fp-list-summary>span:last-child { text-align:right; }
 .fp-position-row { grid-template-columns:58px minmax(0,1fr) 40px; gap:12px; padding:18px 4px; align-items:start; }
 .fp-position-row>.fp-cell { grid-column:1; grid-row:1; }
 .fp-position-row>.fp-product { grid-column:2; grid-row:1; }
 .fp-position-row>.fp-quantity { grid-column:3; grid-row:1; justify-content:flex-end; }
 .fp-position-row>.fp-assignment { grid-column:2; grid-row:2; }
 .fp-position-row>.fbs-expand { grid-column:3; grid-row:2; height:30px; }
 .fp-product .fp-photo { display:none; }
 .fp-cell>strong { font-size:18px; }
 .fp-cell>span { font-size:10px; }
 .fp-product-name { font-size:13px; }
 .fp-quantity strong { font-size:16px; }
 .fp-quantity>span { display:block; }
 .fp-channel>span:last-child { font-size:11px; }
 .fp-details { display:flex; flex-direction:column; gap:12px; padding:0 12px 18px 74px; }
 .fp-kit { padding:18px 4px; }
 .fp-kit-head { grid-template-columns:40px 1fr; gap:10px; }
 .fp-kit-head>.fp-photo { width:40px; height:46px; grid-column:1; grid-row:1; }
 .fp-kit-name { grid-column:2; grid-row:1; }
 .fp-kit-head>.fp-assignment { grid-column:2; grid-row:2; }
 .fp-kit-path { padding-left:0; gap:6px 12px; }
 .fp-components { margin-left:0; padding:0 12px; }
 .fp-component { grid-template-columns:46px minmax(0,1fr) 35px; gap:10px; }
 .fp-component .fp-quantity { flex-wrap:wrap; gap:2px; justify-content:flex-end; }
}

.fp-demo-summary { margin:0 0 24px; padding:12px 0; border-block:1px solid var(--line); color:var(--txt); font-size:13px; line-height:1.7; }

.fp-kit-article { font-size:14px; font-weight:600; overflow-wrap:anywhere; }
@media(min-width:1100px) {
 .fp-kit { display:grid; grid-template-columns:minmax(0,1fr) 260px; gap:14px 28px; padding:24px 12px; }
 .fp-kit-head { grid-column:2; grid-row:1 / 3; grid-template-columns:46px minmax(0,1fr); gap:12px; align-items:start; }
 .fp-kit-head>.fp-photo { grid-column:1; grid-row:1; }
 .fp-kit-head>.fp-kit-name { grid-column:2; grid-row:1; }
 .fp-kit-head>.fp-assignment { grid-column:2; grid-row:2; }
 .fp-kit-path { grid-column:1; grid-row:1; padding:0; }
 .fp-components { grid-column:1; grid-row:2; margin:0; }
}
.fp-component .fp-quantity>span:first-child { width:100%; }
.fp-component .fp-quantity { flex-wrap:wrap; gap:3px 5px; }

.fp-filters { display:flex; align-items:flex-end; gap:16px; margin:0 0 24px; }
.fp-filters>label { display:flex; flex-direction:column; gap:7px; min-width:0; }
.fp-filters>label:first-child { flex:0 1 430px; }
.fp-filters>label:nth-child(2) { flex:0 0 160px; }
.fp-filters>label>span { font-size:12px; color:var(--dim); }
.fp-filters select { width:100%; min-height:40px; color:var(--txt); background:var(--card); border:1px solid var(--line); border-radius:8px; padding:8px 28px 8px 12px; font:inherit; }
@media(max-width:800px) {
 .fp-filters { display:grid; grid-template-columns:minmax(0,1fr) 100px; gap:12px; }
 .fp-filters select { font-size:16px; }
 .fp-filters>.ws-button { grid-column:1 / -1; justify-self:start; }
}

.fp-assignment { display:flex; flex-direction:column; gap:7px; min-width:0; }
.fp-picker { color:var(--txt); font-size:15px; font-weight:650; padding-left:39px; line-height:1.4; }
.fp-filters>label:nth-child(3) { flex:0 0 170px; }
.fbs-picker-count { display:flex; align-items:center; gap:16px; margin:22px 0; }
.fbs-picker-count input { width:90px; padding:9px 12px; font:inherit; color:var(--txt); background:var(--card); border:1px solid var(--line); border-radius:8px; }
@media(max-width:800px) {
 .fp-filters { grid-template-columns:1fr 1fr; }
 .fp-filters>label:first-child { grid-column:1 / -1; }
 .fp-filters>label:nth-child(2),.fp-filters>label:nth-child(3) { grid-column:auto; }
 .fbs-picker-count { align-items:flex-start; flex-direction:column; gap:9px; }
}

.fp-channel-divider { padding:16px 12px; margin:24px 0 0; background:var(--bg); border-top:1px solid var(--line); }
.fp-channel-divider:first-child { margin-top:0; }
.fp-channel-divider>div { display:flex; flex-wrap:wrap; gap:8px 18px; align-items:baseline; }
.fp-channel-divider strong { font-size:14px; font-weight:600; }
.fp-channel-divider span { font-size:13px; }
.fp-channel-divider p { margin:7px 0 0; font-size:12px; color:var(--dim); line-height:1.5; }
.fp-channel-next { background:#eef5fc; }
.fp-channel-next p { color:#225480; font-weight:550; }

/* Поток — рабочее представление того же задания; финальная доводка отложена. */
.wsf-row-actions,.wsf-actions,.wsf-picker-options { display:flex; flex-wrap:wrap; gap:12px; padding:12px; }
.fp-component>.wsf-row-actions { grid-column:1 / -1; padding:0; }
.wsf-danger { color:#b42318!important; border-color:#b42318!important; }
.wsf-dialog.modal { z-index:1000; }
.wsf-fullscreen.modal { padding:0; background:var(--card,#fff); }
.workspace .wsf-fullscreen.modal>.box { width:100%; max-width:none; height:100%; max-height:none; border-radius:0; box-shadow:none; }
.wsf-running .mobile-nav { display:none; }
.wsp-page select { min-height:40px; max-width:100%; border:1px solid var(--line); border-radius:8px; padding:7px 10px; color:var(--text); background:white; }
.wsp-dialog [data-pack-step] { font-size:clamp(24px,3vw,34px); line-height:1.2; margin:22px 0 16px; }
.wsp-dialog [data-pack-status] { min-height:24px; font-size:17px; font-weight:600; }
.wsp-labels { display:flex; flex-wrap:wrap; gap:20px; margin:24px 0; }
.wsp-label { padding:18px; border:1px solid var(--line); border-radius:10px; max-width:100%; background:white; }
.wsp-label.is-current { border:2px solid #0071e3; background:#e8f1fc; }
.wsp-label.is-verified { opacity:.65; }
.wsp-label svg { display:block; max-width:100%; height:auto; margin-top:12px; }
.wsp-label p { margin:8px 0; }
.wsp-label small { color:#45454e; }
.wsp-parts>div { display:flex; justify-content:space-between; gap:24px; padding:14px 0; border-bottom:1px solid var(--line); }
.wsp-position { padding:18px 20px; }
.wsp-position-main { display:grid; grid-template-columns:minmax(0,1fr) minmax(240px,.6fr); gap:28px; align-items:start; }
.wsp-product { display:flex; align-items:center; gap:16px; padding:8px 0; min-width:0; }
.wsp-product>.fp-photo { width:64px; height:72px; flex:0 0 64px; }
.wsp-product>div:not(.fp-photo) { min-width:0; flex:1; }
.wsp-product strong,.wsp-product span,.wsp-product small { display:block; overflow-wrap:anywhere; }
.wsp-product strong { font-size:17px; }
.wsp-product span,.wsp-product small { color:#64646b; margin-top:4px; }
.wsp-product>b { white-space:nowrap; font-size:18px; }
.wsp-destination { display:flex; flex-direction:column; gap:8px; padding-top:8px; }
.wsp-destination>.fp-channel { margin-bottom:4px; font-size:15px; }
.wsp-destination>span,.wsp-destination>small { color:#64646b; }
.fbs-missing-badge { display:block; color:#a32121; font-weight:600; margin-top:5px; }
.fbs-order[data-unavailable="true"] { background:#fff4f3; }
.fbs-missing-filter { margin:0 0 18px; color:#a32121; }
.fbs-missing-filter[aria-pressed="true"] { background:#fff0ed; border-color:#bd3f32; }
@media(max-width:800px) {
  .wsp-page .ws-page-heading { align-items:stretch; flex-direction:column; }
  .wsp-page .ws-heading-actions,.wsp-page .ws-heading-actions button { width:100%; }
  .wsp-page .fbs-controls>label { width:100%; }
  .wsp-label { width:100%; }
  .wsp-position-main { grid-template-columns:1fr; gap:10px; }
  .wsp-position { padding:16px; }
  .wsp-destination { padding-left:80px; }
}
.wsf-dialog .mbody { background:var(--card,#fff); }
.wsf-fullscreen .mbody { max-height:none!important; overflow-y:auto; }
.wsf-assignment { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:16px; }
.wsf-cell,.wsf-count { display:flex; justify-content:space-between; align-items:baseline; gap:16px; margin:12px 0; }
.wsf-cell>strong,.wsf-count>strong { font-size:56px; line-height:1.05; font-weight:700; overflow-wrap:anywhere; }
.wsf-product { display:flex; flex-direction:column; gap:6px; overflow-wrap:anywhere; }
.wsf-product>strong { font-size:24px; }
.wsf-product-with-photo { display:grid; grid-template-columns:72px minmax(0,1fr); gap:4px 12px; }
.wsf-product-with-photo>strong,.wsf-product-with-photo>span { grid-column:2; }
.wsf-photo { grid-column:1; grid-row:1 / span 2; width:72px; height:88px; padding:0; border:1px solid var(--line); border-radius:8px; overflow:hidden; background:var(--card); }
.wsf-photo img { width:100%; height:100%; object-fit:contain; }
.wsf-photo-large { display:block; width:100%; height:60dvh; object-fit:contain; margin-top:12px; }
.wsf-actions>[hidden] { display:none; }
.wsf-channel-prompt { padding:12px 0; }
.wsf-actions { padding:12px 0; }
.wsf-actions .ws-button,.wsf-picker-options .ws-button { min-height:48px; font-size:16px; flex:1; }
.wsf-dialog .camera-kadr { height:150px; overflow:hidden; isolation:isolate; border-radius:8px; }
.wsf-dialog .camera-kadr video { width:100%; height:100%; max-height:none; aspect-ratio:auto; object-fit:cover; }
.wsf-dialog .camera-capture { display:block; }
.wsf-dialog .camera-pricel,.wsf-dialog .camera-kadr.vzyat .camera-pricel { box-shadow:none; }
.wsf-fullscreen [data-flow-status] { min-height:24px; }
.wsf-picker-options { display:flex; flex-direction:column; gap:12px; align-items:stretch; }
.wsf-picker-options .ws-button { width:100%; flex:none; text-align:left; }
.wsf-scan-step { margin:16px 0 8px; font-size:20px; font-weight:650; color:var(--text,#1d1d1f); }
.wsf-report { margin:24px 0; }
.wsf-report>summary { cursor:pointer; padding:16px 0; font-size:18px; font-weight:650; }
.wsf-report-row { padding:14px 0; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.wsf-report-row p { margin:5px 0; }
.wsf-report-events { padding-left:24px; }
.wsf-report-events li { margin:8px 0; }
.wsf-stages { display:grid; gap:12px; }
.wsf-stage { padding:16px; border:2px solid #e5e5e9; border-radius:12px; background:#f5f5f7; min-height:150px; }
.wsf-stage-active { background:#e8f1fc; border-color:#0071e3; }
.wsf-stage-done { background:#f5f5f7; }
.wsf-stage-heading { display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.wsf-stage-heading h3 { font-size:18px; line-height:1.3; margin:0; font-weight:650; }
.wsf-stage-number { display:flex; align-items:center; justify-content:center; flex:none; width:28px; height:28px; border-radius:50%; background:#dedee3; color:#333338; font-size:16px; font-weight:650; }
.wsf-stage-active .wsf-stage-number { background:#0071e3; color:white; }
.wsf-stage-done .wsf-stage-number { background:#d8eadf; color:#205633; }
.wsf-stage .wsf-cell { flex-direction:row; margin:0; gap:12px; }
.wsf-stage .wsf-cell strong { font-size:56px; }
.wsf-stage .wsf-cell span { max-width:150px; text-align:right; font-size:14px; }
.wsf-stage .wsf-product>strong { font-size:20px; }
.wsf-stage .wsf-count { margin:14px 0; }
.wsf-stage .wsf-count strong { font-size:32px; white-space:nowrap; }
.wsf-stage .wsf-count span { font-size:14px; }
.wsf-stage [data-flow-missing] { width:100%; min-height:44px; }
.wsf-stage .wsf-missing-active { background:#b42318; border-color:#b42318; color:#fff!important; }
.wsf-stage [data-flow-missing]:disabled { color:#737379!important; border-color:#c9c9cf!important; background:transparent; opacity:1; }
.wsf-kit-progress { font-size:14px; margin:12px 0; }
.wsf-product .wsf-barcode { grid-column:2; font-size:13px; overflow-wrap:anywhere; }
.wsf-barcode strong { font-weight:600; }
.wsf-channel-name { font-size:20px; font-weight:650; }
@media(max-width:800px) {
  .fp-page .ws-page-heading,.wsf-history-page .ws-page-heading { display:block; }
  .fp-page .ws-heading-actions,.wsf-history-page .ws-heading-actions { display:flex; flex-wrap:wrap; gap:8px; width:100%; min-width:0; margin-top:16px; justify-content:flex-start!important; }
  .fp-page .ws-heading-actions .ws-button,.wsf-history-page .ws-heading-actions .ws-button { flex:1 1 145px; min-width:0; max-width:100%; white-space:normal; overflow-wrap:anywhere; min-height:44px; text-align:center; }
  .fp-page .ws-heading-actions .primary { flex-basis:100%; }
}
.wsf-packing-row { display:flex; flex-wrap:wrap; align-items:center; gap:12px 24px; padding:18px 12px; }

.fbs-cabinet-title { border:0; background:transparent; padding:0; text-align:left; color:inherit; width:100%; }
.fbs-cabinet-missing { display:block; border:0; background:transparent; padding:8px 0 0; color:var(--dim); font-size:12px; text-align:left; }
.fbs-cabinet-missing:disabled { opacity:1; cursor:default; }
.fbs-cabinet-missing.has-missing { color:#a32121; font-weight:600; text-decoration:underline; text-underline-offset:3px; }
.fbs-cabinet-issues { padding:8px 16px 20px; }
.fbs-cabinet-issues>p { color:#a32121; margin:8px 0 20px; }
.fbs-controls .fbs-missing-filter { margin:0; }
.wsp-summary { border-block:1px solid var(--line); padding:16px 0; margin:0 0 24px; }
.wsp-summary>p { color:var(--dim); font-size:12px; margin:0 0 14px; }
.wsp-summary dl { display:flex; flex-wrap:wrap; gap:20px 44px; margin:0; }
.wsp-summary dl>div { display:flex; align-items:baseline; gap:10px; }
.wsp-summary dt { font-size:14px; color:var(--dim); }
.wsp-summary dd { margin:0; font-size:20px; font-weight:600; font-variant-numeric:tabular-nums; }
.wsp-summary .wsp-summary-status { margin:14px 0 0; line-height:1.7; }
.wsp-summary-status b { font-weight:600; color:var(--fg); }
@media(max-width:600px) { .wsp-summary dl { display:grid; grid-template-columns:1fr 1fr; gap:14px 20px; } .wsp-summary dl>div { justify-content:space-between; } .fbs-cabinet-issues { padding-inline:0; } }

.ws-problems-filter { display:flex; align-items:center; gap:9px; margin:14px 0; font-size:14px; }
.ws-problems-filter input { width:18px; height:18px; accent-color:var(--acc); }
.ws-problems-filter b { font-variant-numeric:tabular-nums; margin-inline-start:6px; }
.ws-problem-row { background:#fff7f5; }
.ws-problem-label { display:block; color:#a32121; font-size:12px; padding:6px 0 0 66px; }
.ws-problem-detail { margin-bottom:20px; }
.ws-problem-detail h3 { color:#a32121; }
.ws-problem-detail>div { padding:12px 0; border-bottom:1px solid var(--line); }
.ws-problem-detail p { line-height:1.6; overflow-wrap:anywhere; }

.ws-shipping-select { display:grid; gap:8px; max-width:480px; font-size:13px; color:var(--dim); margin:24px 0; }
.ws-shipping select { min-height:44px; width:100%; border:1px solid var(--line); border-radius:8px; padding:8px 12px; background:#fff; color:var(--txt); font:inherit; }
.ws-shipping select:focus-visible,.ws-shipping input:focus-visible { outline:2px solid var(--acc); outline-offset:3px; }
.ws-shipping-context { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:28px 0 8px; }
.ws-shipping-context h2 { font-size:23px; margin:0; }
.ws-shipping-flow { color:var(--dim); line-height:1.6; max-width:75ch; margin:0 0 8px; }
.ws-shipping .ship-title { margin:20px 0; }
.ws-shipping-documents { margin-top:28px; }
.ws-shipping-documents>summary { cursor:pointer; padding:12px 0; font-weight:500; }
.workspace #s-ship .ship-mesta-compact { display:flex; flex-wrap:wrap; gap:18px; padding:18px 0 0; margin-top:14px; border-top:1px solid var(--line); }
.ship-place-field { display:grid; align-content:start; gap:8px; flex:0 1 200px; min-width:140px; color:var(--dim); font-size:13px; }
.workspace .ship-place-field input.qty { width:100%; min-height:44px; text-align:left; padding:8px 12px; }
.workspace .ship-place-field input[hidden] { display:none; }
@media(max-width:600px) { .ws-shipping select,.ws-shipping input { font-size:16px; } .ship-place-field { flex:1 1 120px; min-width:0; } .ws-shipping-context h2 { font-size:21px; } }
.workspace #s-ship .ship-steps { gap:8px; }
.workspace #s-ship .ship-step { border-radius:8px; font-weight:500; font-size:13px; box-shadow:none; }
.workspace #s-ship .ship-step i { font-family:inherit; font-weight:600; }
.workspace #s-ship .ship-title h1 { font-size:27px; font-weight:650; letter-spacing:-.6px; }

/* Инвентаризация продолжает списки и поток сканирования общего склада. */
.wi-start { max-width:850px; display:grid; gap:20px; margin:24px 0; }
.wi-all,.wi-diff-filter { display:flex; align-items:center; gap:10px; min-height:44px; }
.wi-all input,.wi-diff-filter input,.wi-cell-options input { width:18px; height:18px; accent-color:#0071e3; }
.wi-workers,.wi-search { display:grid; gap:8px; max-width:340px; font-weight:500; }
.wi-workers input,.wi-search input { min-height:44px; border:1px solid var(--line); border-radius:8px; padding:8px 12px; font:inherit; font-size:16px; background:#fff; color:#1d1d1f; }
.wi-workers input { max-width:140px; }
.wi-cell-options { max-height:360px; overflow:auto; margin-top:16px; border-block:1px solid var(--line); }
.wi-cell-options label { display:grid; grid-template-columns:20px 80px 1fr; align-items:center; gap:12px; padding:12px 4px; border-bottom:1px solid var(--line); }
.wi-cell-options label[hidden] { display:none; }
.wi-cell-options span,.wi-progress span,.wi-worker span,.wi-result span { color:var(--dim); }
.wi-progress,.wi-result { display:flex; flex-wrap:wrap; justify-content:space-between; gap:16px; padding:22px 0; border-bottom:1px solid var(--line); }
.wi-worker { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:24px; padding:20px 0; border-bottom:1px solid var(--line); }
.wi-worker>div { display:grid; gap:8px; }
.wi-worker>div>span { overflow-wrap:anywhere; }
.wi-result strong { font-size:18px; }
.wi-table { overflow:auto; margin:12px 0 24px; border:1px solid var(--line); border-radius:12px; }
.wi-table table { width:100%; border-collapse:collapse; font-variant-numeric:tabular-nums; }
.wi-table th,.wi-table td { padding:14px; text-align:left; border-bottom:1px solid var(--line); }
.wi-table th { background:#f5f5f7; font-size:12px; font-weight:500; }
.wi-table td:nth-child(n+3) { text-align:right; }
.wi-table td span,.wi-table td small { display:block; color:var(--dim); margin-top:4px; }
.wi-table td:nth-child(2) { min-width:200px; overflow-wrap:anywhere; }
.wi-short { color:#aa2c20; }.wi-extra { color:#27633e; }
.wi-documents { margin-top:28px; }.wi-documents h2 { font-size:20px; }
.wi-documents>div { display:flex; flex-wrap:wrap; gap:16px; align-items:center; padding:16px 0; border-bottom:1px solid var(--line); }
.wi-counted>div { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 0; border-bottom:1px solid var(--line); }
.wi-counted small { display:block; margin-top:4px; color:var(--dim); }
.wi-last { margin-top:20px; }
.wi-scope { font-size:16px; line-height:1.6; }
.ws-listing-badges { display:flex; flex-wrap:wrap; gap:6px; padding:8px 0 0 66px; }
.ws-listing-badges .ws-market { max-width:100%; white-space:normal; overflow-wrap:anywhere; line-height:1.4; font-size:11px; }
.ws-listing-details { margin-bottom:24px; }
.ws-listing-details p { color:var(--dim); line-height:1.5; }
.ws-listing-details small { display:block; margin-top:4px; }
.ws-stock-available { display:block; margin-top:7px; color:var(--dim); font-size:11px; line-height:1.6; white-space:nowrap; }
.wi-history { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin:20px 0; }
.wi-history select { min-height:44px; max-width:100%; padding:8px; border:1px solid var(--line); border-radius:8px; background:#fff; color:var(--fg); font:inherit; }
.wi-recount { margin:20px 0; }
.wi-recount summary { cursor:pointer; padding:12px 0; }
.wi-recount>div { display:flex; flex-wrap:wrap; gap:8px; }
@media(max-width:600px){
 .wi-worker { grid-template-columns:minmax(0,1fr) auto; gap:12px; }
 .wi-worker>button { grid-column:1/-1; width:100%; }
 .wi-progress,.wi-result { flex-direction:column; gap:10px; }
 .wi-table th,.wi-table td { padding:10px; font-size:13px; }
 .wi-table table,.wi-table tbody { display:block; }
 .wi-table thead { display:none; }
 .wi-table tr { display:grid; grid-template-columns:1fr 1fr 1fr; padding:12px; border-bottom:1px solid var(--line); }
 .wi-table td { border:0; padding:8px 0; }
 .wi-table td:first-child,.wi-table td:nth-child(2) { grid-column:1/-1; min-width:0; }
 .wi-table td:nth-child(n+3) { text-align:left; }
 .wi-table td[data-label]::before { content:attr(data-label); display:block; color:var(--dim); font-size:11px; margin-bottom:5px; }
 .wi-start>.ws-button { width:100%; }
}
.workspace .ws-arrival{border-bottom:1px solid var(--ws-line,#e5e5e9);padding:24px 0}
.workspace .ws-arrival[hidden]{display:none}
.workspace .ws-arrival header{display:flex;justify-content:space-between;align-items:baseline;gap:16px}
.workspace .ws-arrival h2{font-size:20px;margin:0;font-weight:650}
.workspace .ws-arrival header p{margin:4px 0 0;color:#64646b}
.workspace .ws-arrival-part{padding:18px 0 4px}
.workspace .ws-arrival-part+.ws-arrival-part{border-top:1px solid #e5e5e9;margin-top:14px}
.workspace .ws-arrival-waybill{display:flex;justify-content:space-between;gap:12px}
.workspace .ws-arrival-waybill span{color:#64646b}
.workspace .ws-arrival dl{display:grid;grid-template-columns:repeat(3,minmax(90px,1fr)) repeat(2,minmax(140px,1.5fr));gap:18px;margin:18px 0}
.workspace .ws-arrival dt{font-size:12px;color:#64646b;margin-bottom:4px}
.workspace .ws-arrival dd{margin:0;font-size:16px;font-weight:550;font-variant-numeric:tabular-nums}
.workspace .ws-arrival-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.workspace .ws-arrival-actions label{display:grid;gap:5px;max-width:100%}
.workspace .ws-arrival-actions input{max-width:100%;font:inherit}
.workspace .ws-arrival-add{color:#b42318}
.workspace .ws-arrival-add svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}
.workspace .ws-arrival-error{color:#b42318;font-size:14px}
.workspace .ws-arrival-upload{background:#f5f5f7;padding:16px;border-radius:10px}
.workspace .ws-arrival-upload[hidden]{display:none}
.workspace .ws-arrival-upload p{margin:0 0 14px}
.workspace .ws-arrival [data-result]:empty{display:none}
@media(max-width:800px){.workspace .ws-arrival header,.workspace .ws-arrival-waybill{flex-direction:column;gap:8px}.workspace .ws-arrival dl{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 10px}.workspace .ws-arrival dl div:nth-child(n+4){grid-column:1/-1;display:flex;justify-content:space-between;gap:10px}.workspace .ws-arrival dl div:nth-child(n+4) dd{text-align:right}.workspace .ws-arrival-actions{align-items:stretch}.workspace .ws-arrival-actions>span{overflow-wrap:anywhere}.workspace .ws-arrival header h2,.workspace .ws-arrival-waybill strong{overflow-wrap:anywhere}.workspace .ws-arrival dl dd{font-size:15px}.workspace .ws-arrival-upload{padding:12px}}
.ws-ms-documents { margin-top:32px; border-top:1px solid var(--line); padding-top:24px; }
.ws-ms-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.ws-ms-heading h2 { margin:0; font-size:19px; }
.ws-ms-row { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; border-bottom:1px solid var(--line); padding:18px 0; }
.ws-ms-row>div { min-width:0; overflow-wrap:anywhere; }
.ws-ms-row p { margin:6px 0; }
.ws-ms-row details { margin-top:8px; }
.ws-ms-row summary { cursor:pointer; }
.ws-ms-row ul { padding-left:20px; font-variant-numeric:tabular-nums; }
@media(max-width:600px) { .ws-ms-row { flex-direction:column; } }

.ws-fbo-dialog{width:min(780px,calc(100% - 32px));max-height:85dvh;padding:24px;border:1px solid #e5e5e9;border-radius:12px;background:#fff;color:#1d1d1f;overflow:auto}.ws-fbo-dialog::backdrop{background:rgb(0 0 0 / .3)}.ws-fbo-dialog header{display:flex;justify-content:space-between;align-items:center;gap:16px}.ws-fbo-dialog h2{margin:0;font-size:23px}.ws-fbo-dialog label,.ws-fbo-filters label{display:flex;flex-direction:column;gap:6px}.ws-fbo-dialog label{margin:16px 0}.ws-fbo-dialog input,.ws-fbo-dialog select,.ws-fbo-filters input,.ws-fbo-filters select{padding:10px;border:1px solid #b9b9c0;border-radius:8px;min-width:0;font:inherit;max-width:100%}.ws-fbo-dialog input[type=file]{padding:8px;box-sizing:border-box;width:100%}.ws-fbo-dialog [data-result]{color:#8a3f08}.ws-fbo-upload{margin:20px 0}.ws-fbo-import-rows{max-height:40vh;overflow:auto;margin:20px 0}.ws-fbo-import-rows table{width:100%;border-collapse:collapse}.ws-fbo-import-rows td,.ws-fbo-import-rows th{padding:10px;text-align:left;border-bottom:1px solid #e5e5e9;overflow-wrap:anywhere}.ws-fbo-import-rows td:nth-child(2){font-variant-numeric:tabular-nums}.ws-fbo-filters{display:flex;gap:16px;flex-wrap:wrap;margin:16px 0}.ws-fbo-filters label:first-child{flex:1;min-width:180px}.ws-fbo-dialog button{margin:4px 0}@media(max-width:600px){.ws-fbo-dialog{padding:16px}.ws-fbo-dialog input,.ws-fbo-dialog select{font-size:16px}.ws-fbo-dialog header{align-items:flex-start}.ws-fbo-import-rows th,.ws-fbo-import-rows td{padding:8px 4px}}
.ws-return-sources summary{cursor:pointer;padding:10px 0;line-height:1.5}
.ws-return-sources>details{border-top:1px solid var(--line,#dce2e8)}
.ws-return-scroll{overflow:auto;max-height:420px}
.ws-return-scroll table{width:100%;min-width:650px;border-collapse:collapse}
.ws-return-scroll th,.ws-return-scroll td{padding:10px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line,#dce2e8);white-space:normal}
.ws-fbo-import-rows th:nth-child(2),.ws-fbo-import-rows td:nth-child(2){width:55px;white-space:nowrap}
@media(max-width:600px){.ws-fbo-import-rows td:first-child{max-width:145px}.ws-fbo-import-rows td:nth-child(3){min-width:85px;overflow-wrap:normal}.ws-fbo-import-rows th{overflow-wrap:normal}}
.mon-toolbar{display:flex;justify-content:flex-end;margin:4px 0 24px}
.mon-row{display:grid;grid-template-columns:minmax(0,.95fr) repeat(2,minmax(0,1fr));gap:36px;padding:28px;background:#f7f7f9;border-radius:14px;margin-bottom:28px}
.mon-cell{min-width:0}
.mon-account h2{font-size:21px;line-height:1.3;letter-spacing:-.35px;font-weight:650;overflow-wrap:anywhere;margin:10px 0 24px;text-wrap:balance}
.mon-market{display:inline-block;border-radius:5px;padding:3px 7px;font-size:11px;font-weight:600}.mon-market.wb{color:#7621a9;background:#f0e3fa}.mon-market.ozon{color:#004caf;background:#e3edfc}
.mon-account-facts,.mon-fbo-facts{margin:0}.mon-fbo-facts>div{display:flex;justify-content:space-between;gap:12px;margin:9px 0;font-size:12px;line-height:1.5}
.mon-fbo-facts dt{color:var(--dim)}.mon-fbo-facts dd{margin:0;white-space:nowrap;font-weight:550;font-variant-numeric:tabular-nums}
.mon-account-facts details{font-size:12px;line-height:1.5;margin:12px 0}.mon-account-facts summary{display:flex;align-items:baseline;justify-content:space-between;gap:12px;cursor:pointer;list-style:none;color:var(--dim)}.mon-account-facts summary::-webkit-details-marker{display:none}.mon-account-facts summary>span{text-decoration:underline dotted #a2a2aa;text-underline-offset:4px}.mon-account-facts summary>b{white-space:nowrap;font-weight:550;color:var(--txt);font-variant-numeric:tabular-nums}.mon-account-facts details p{font-size:12px;color:var(--dim);margin:10px 0}.mon-warehouse-list{padding-left:18px;max-height:220px;overflow:auto}.mon-warehouse-list li{padding:3px 0}
.mon-panel-title{font-size:15px;line-height:1.4;margin:0 0 24px;font-weight:650}
.mon-fbo-label{margin:0;color:var(--dim);font-size:12px}.mon-fbo-progress{margin:5px 0 14px;font-variant-numeric:tabular-nums}.mon-fbo-progress>b{font-size:25px;font-weight:600}.mon-fbo-progress span{font-size:14px}.mon-fbo-progress span b{font-weight:500}
.mon-fbo progress{display:block;appearance:none;width:100%;height:5px;border:0;border-radius:3px;background:#e2e2e7;accent-color:var(--acc)}.mon-fbo progress::-webkit-progress-bar{background:#e2e2e7;border-radius:3px}.mon-fbo progress::-webkit-progress-value{background:var(--acc);border-radius:3px}.mon-fbo progress::-moz-progress-bar{background:var(--acc);border-radius:3px}
.mon-remaining{font-size:12px;line-height:1.5;margin:12px 0 20px}.mon-remaining b{font-weight:550;white-space:nowrap}
.mon-stages{display:grid;gap:10px;font-variant-numeric:tabular-nums}.mon-stage-heading{display:flex;justify-content:space-between;gap:8px;align-items:baseline;font-size:13px}.mon-stage-heading>span:last-child{white-space:nowrap;color:var(--dim);font-size:11px}.mon-stage b{font-size:19px;font-weight:600;color:var(--txt);margin-right:3px}.mon-stage p{font-size:12px;color:var(--dim);margin:3px 0 0;text-align:right;line-height:1.5}.mon-stage .mon-type-note{color:#8a3f08}
.mon-fbo,.mon-fbs{display:flex;flex-direction:column}.mon-shipping{margin-top:auto;padding-top:28px;min-height:120px}.mon-shipping>p{font-size:12px;color:var(--dim);margin:0 0 6px}.mon-shipping>strong{display:block;font-size:22px;line-height:1.3;font-weight:600;font-variant-numeric:tabular-nums}.mon-shipping details{margin-top:10px;font-size:12px;color:var(--dim);line-height:1.5}.mon-shipping summary{cursor:pointer;width:fit-content}.mon-shipping details p{margin:10px 0}.mon-recent{list-style:none;padding:0;margin:0}.mon-recent li{display:flex;justify-content:space-between;gap:12px;margin-top:10px;overflow-wrap:anywhere}.mon-recent li>span{min-width:0}.mon-recent b{white-space:nowrap;font-weight:500;color:var(--txt)}.mon-recent small{display:block;font-size:11px;margin-top:3px}.ws-monitor summary:focus-visible{outline:2px solid var(--acc);outline-offset:4px;border-radius:3px}
.ws-monitor .mon-note,.mon-empty{color:var(--dim);font-size:12px;line-height:1.5;margin:16px 0 0}.mon-missing{color:var(--bad);font-size:12px;line-height:1.5;margin:18px 0 0;font-weight:500}
.mon-stock-status{margin-top:28px;font-size:12px;line-height:1.5}.mon-stock-status p{margin:0 0 6px;color:var(--dim)}.mon-stock-status strong{display:block;font-weight:550}.mon-stock-status strong:before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:#797982;margin-right:7px;vertical-align:middle}.mon-stock-status [data-stock-state=fresh]{color:#17663f}.mon-stock-status [data-stock-state=fresh]:before{background:#17663f}.mon-stock-status [data-stock-state=stale],.mon-stock-status [data-stock-state=unavailable]{color:#8a3f08}.mon-stock-status [data-stock-state=stale]:before,.mon-stock-status [data-stock-state=unavailable]:before{background:#8a3f08}.mon-stock-status small{display:block;font-size:11px;color:var(--dim);margin:5px 0 0 13px}
@media(max-width:1100px){.mon-row{grid-template-columns:1fr 1fr;gap:28px}.mon-account{grid-column:1/-1}.mon-account-facts{max-width:420px}.mon-stock-status{margin-top:20px}}
@media(max-width:640px){.mon-toolbar{margin:0 0 20px}.mon-row{grid-template-columns:1fr;gap:30px;padding:22px 18px;margin-bottom:24px}.mon-account{grid-column:auto}.mon-account h2{font-size:21px}.mon-account-facts details,.mon-fbo-facts>div{font-size:13px}.mon-panel-title{margin-bottom:18px}.mon-stage-heading{font-size:14px}.mon-stage b{font-size:20px}.mon-shipping{padding-top:24px}}
