/* Order Center: shared rhythm for list, selection and continuous parcel work.
   This final, scoped layer deliberately leaves scanner/outbound layouts intact. */
body:not(.tablet-mode) #appView .workspace[data-view="orders"], #skuPickerModal, #orderProcessingModal {
  --oc-ink:#202a3a; --oc-muted:#68758a; --oc-line:#e5e9ef;
  --oc-blue:#175de8; --oc-soft:#f4f6f9; --oc-radius:8px;
  font-variant-numeric:tabular-nums;
}
body:not(.tablet-mode) #appView .workspace[data-view="orders"] { background:#f3f5f8; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-list:has(> .order-virtual-spacer) { overflow-anchor:none; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-list:has(> .order-virtual-spacer) > .order-card { content-visibility:visible; contain-intrinsic-size:none; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] #stats:empty { display:none; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .topbar {
  align-items:center; gap:12px; min-height:56px; padding:10px 20px; border-bottom:1px solid var(--oc-line);
}
@media (min-width:721px) {
  body:not(.tablet-mode) #appView .workspace[data-view="orders"] > .topbar {
    display:grid; grid-template-columns:minmax(0,1fr) auto auto;
  }
  body:not(.tablet-mode) #appView .workspace[data-view="orders"] > .topbar #tabletTools {
    grid-column:2; grid-row:1; width:auto; margin:0;
  }
  body:not(.tablet-mode) #appView .workspace[data-view="orders"] > .topbar #pageHeaderActions {
    grid-column:3; grid-row:1; width:auto; margin:0; overflow:visible;
  }
}
body:not(.tablet-mode) #appView .workspace[data-view="orders"] #pageTitle { font-size:20px; font-weight:650; letter-spacing:-.5px; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] #pageDesc:empty { display:none; }
body #appView .workspace[data-view="orders"],
body.tablet-mode #appView .workspace[data-view="orders"] { padding-bottom:0; }
body #appView .workspace[data-view="orders"] #content { padding:12px 20px 0; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .page-header-actions { margin-left:auto; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-global-actions { align-items:center; gap:8px; }
.order-tools-menu, .order-batch-more { position:relative; font-size:12px; color:#526077; }
:is(.order-tools-menu,.order-batch-more) > summary { list-style:none; display:flex; align-items:center; gap:8px; min-height:34px; padding:6px 10px; border:1px solid #dce2eb; border-radius:5px; background:#fff; cursor:pointer; white-space:nowrap; }
:is(.order-tools-menu,.order-batch-more) > summary::-webkit-details-marker { display:none; }
:is(.order-tools-menu,.order-batch-more) > summary::after { content:""; width:5px; height:5px; border-right:1px solid currentColor; border-bottom:1px solid currentColor; transform:rotate(45deg); margin-top:-3px; }
:is(.order-tools-menu,.order-batch-more)[open] > summary { color:#175de8; border-color:#a5bcea; }
.order-tools-popover { position:absolute; right:0; top:calc(100% + 6px); z-index:30; min-width:180px; padding:6px; border:1px solid #dde3ec; border-radius:8px; background:#fff; box-shadow:0 8px 28px #172b4d16; display:grid; gap:3px; }
:is(.order-tools-menu,.order-batch-more):not([open]) > .order-tools-popover { display:none; }
:is(.order-tools-menu,.order-batch-more) > .order-tools-popover {
  max-height:var(--order-menu-available-height, none); overflow-y:auto;
  translate:var(--order-menu-offset, 0px);
}
:is(.order-tools-menu,.order-batch-more).opens-up > .order-tools-popover { top:auto; bottom:calc(100% + 6px); }
.order-tools-popover button { text-align:left; width:100%; min-height:34px; padding:6px 10px; background:transparent; border:0; font-size:12px; white-space:nowrap; }
.order-tools-popover button:hover:not(:disabled) { background:#f0f4fc; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-filter-primary :is(input,select) { height:38px; min-height:38px; background:#fff; border:1px solid #dfe4ec; border-radius:5px; font-size:13px; }
#appView .workspace[data-view="orders"] #orderFilterPanel {
  --order-filter-control-height:38px;
  container:order-query / inline-size; margin-bottom:10px; padding:9px 12px;
  border:1px solid #dfe5ed; border-radius:9px; background:#fff; box-shadow:none;
}
body.tablet-mode #appView .workspace[data-view="orders"] #orderFilterPanel { --order-filter-control-height:48px; }
#appView .workspace[data-view="orders"] #orderFilterPanel .order-filter-primary {
  display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:4px 8px; padding:0; background:#fff;
}
#appView .workspace[data-view="orders"] #orderFilterPanel .order-filter-search { display:contents; }
#appView .workspace[data-view="orders"] #orderFilterPanel :is(.order-filter-search label,.order-filter-options > label) {
  color:#4f5d72; font-size:12px; font-weight:600; line-height:16px;
}
#appView .workspace[data-view="orders"] #orderFilterPanel :is(#orderKeyword,#orderWarehouse,#orderSource,#orderCustomerSearch,#orderShippingFilter select,.order-filter-submit) {
  box-sizing:border-box; height:var(--order-filter-control-height); min-height:var(--order-filter-control-height); border-radius:6px;
}
#appView .workspace[data-view="orders"] #orderFilterPanel #orderCustomerSearch {
  min-width:0; border:1px solid #dce3ed; border-color:#dce3ed !important; box-shadow:none;
}
#appView .workspace[data-view="orders"] #orderFilterPanel #orderCustomerSearch:hover { border-color:#a9bbda !important; }
#appView .workspace[data-view="orders"] #orderFilterPanel #orderCarrierSwitch {
  box-sizing:border-box; min-height:var(--order-filter-control-height); padding:1px; border-radius:6px; background:#f4f6fa;
}
#appView .workspace[data-view="orders"] #orderFilterPanel #orderCarrierSwitch > button {
  box-sizing:border-box; min-height:calc(var(--order-filter-control-height) - 4px); padding-block:0; border-radius:4px;
}
#appView .workspace[data-view="orders"] #orderFilterPanel .order-filter-submit { box-shadow:none; }
#appView .workspace[data-view="orders"] #orderFilterPanel .order-search-control { grid-column:1/3; grid-row:2; }
#appView .workspace[data-view="orders"] #orderFilterPanel .order-filter-options { display:none; }
#appView .workspace[data-view="orders"] #orderFilterPanel.filters-expanded .order-filter-options {
  display:grid; grid-column:1/-1; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px 8px; align-items:end;
  padding-top:6px; border-top:1px solid #edf0f4;
}
#appView .workspace[data-view="orders"] #orderFilterPanel .order-filter-options > div { grid-column:1/-1; min-width:0; }
#appView .workspace[data-view="orders"] #orderFilterPanel .order-filter-options > .order-filter-carrier { align-self:end; }
#appView .workspace[data-view="orders"] #orderFilterPanel .order-filter-options > label { min-width:0; gap:4px; }
#appView .workspace[data-view="orders"] #orderFilterPanel .order-filter-buttons { display:contents; }
#appView .workspace[data-view="orders"] #orderFilterPanel .order-filter-buttons button { width:auto; white-space:nowrap; margin:0; }
#appView .workspace[data-view="orders"] #orderFilterPanel .order-filter-submit { grid-column:3; grid-row:2; }
#appView .workspace[data-view="orders"] #orderFilterPanel .order-filter-toggle,
#appView .workspace[data-view="orders"] #orderFilterPanel .order-filter-reset {
  grid-row:1; justify-self:end; min-width:0; min-height:28px; padding-inline:8px;
}
#appView .workspace[data-view="orders"] #orderFilterPanel .order-filter-toggle { display:inline-flex; grid-column:2; }
#appView .workspace[data-view="orders"] #orderFilterPanel .order-filter-reset { grid-column:3; }
@container order-query (min-width: 855px) {
  #appView .workspace[data-view="orders"] #orderFilterPanel .order-filter-primary {
    grid-template-columns:minmax(168px,1.9fr) auto auto auto repeat(3,minmax(83px,1fr)); align-items:end; gap:7px 8px;
  }
  #appView .workspace[data-view="orders"] #orderFilterPanel .order-filter-search { display:grid; grid-column:1; grid-row:1; min-width:0; gap:4px; }
  #appView .workspace[data-view="orders"] #orderFilterPanel .order-search-control { grid-column:auto; grid-row:auto; }
  #appView .workspace[data-view="orders"] #orderFilterPanel .order-filter-options,
  #appView .workspace[data-view="orders"] #orderFilterPanel.filters-expanded .order-filter-options { display:contents; }
  #appView .workspace[data-view="orders"] #orderFilterPanel .order-filter-options > div { grid-column:auto; }
  #appView .workspace[data-view="orders"] #orderFilterPanel .order-filter-toggle { display:none; }
  #appView .workspace[data-view="orders"] #orderFilterPanel .order-filter-submit { grid-column:2; grid-row:1; }
  #appView .workspace[data-view="orders"] #orderFilterPanel .order-filter-reset {
    grid-column:3; grid-row:1; height:var(--order-filter-control-height); min-height:var(--order-filter-control-height);
  }
}
@container order-query (min-width:855px) and (max-width:920px) {
  #appView .workspace[data-view="orders"] #orderFilterPanel .order-filter-primary:has(#orderShippingFilter select) {
    grid-template-columns:minmax(152px,1.9fr) auto auto auto repeat(2,minmax(75px,1fr)) minmax(104px,1fr);
  }
}
@media (max-width:660px) {
  body:not(.tablet-mode) #appView:has(.workspace[data-view="orders"]) .side-brand {
    display:flex; align-items:center; gap:8px; min-height:46px; padding:5px 12px;
  }
  body:not(.tablet-mode) #appView:has(.workspace[data-view="orders"]) .side-brand-meta {
    display:flex; align-items:center; justify-content:flex-end; flex:1 1 0; gap:8px;
  }
  body:not(.tablet-mode) #appView:has(.workspace[data-view="orders"]) .sidebar-userbar { padding-block:2px; }
}
@media (min-width:380px) and (max-width:660px) {
  body:not(.tablet-mode) #appView .workspace[data-view="orders"] > .topbar {
    grid-template-columns:auto auto minmax(0,1fr); align-items:center; gap:6px; padding:8px 12px; min-height:52px;
  }
  body:not(.tablet-mode) #appView .workspace[data-view="orders"] > .topbar #pageHeaderActions {
    grid-column:3; grid-row:1; justify-content:flex-end; margin:0; width:auto;
  }
  body:not(.tablet-mode) #appView .workspace[data-view="orders"] > .topbar .order-global-actions { gap:4px; justify-content:flex-end; }
  body:not(.tablet-mode) #appView .workspace[data-view="orders"] > .topbar #pageTitle { font-size:17px; }
}
@media (min-width:720px) {
  body.tablet-mode #appView .workspace[data-view="orders"] > .topbar {
    display:grid; grid-template-columns:auto minmax(0,1fr) auto; min-height:64px; gap:8px;
  }
  body.tablet-mode #appView .workspace[data-view="orders"] > .topbar :is(#tabletTools,#pageHeaderActions) {
    width:auto; margin:0; justify-content:flex-end;
  }
  body.tablet-mode #appView .workspace[data-view="orders"] > .topbar > div:first-child { width:auto; text-align:left; }
}
html:has(#appView .workspace[data-view="orders"]) {
  scroll-padding-top:calc(var(--oc-sticky-top, 0px) + 8px);
  scroll-padding-bottom:calc(var(--oc-sticky-bottom, 0px) + 8px);
}
#appView .workspace[data-view="orders"] #orderTable { container:order-workspace / inline-size; }
#appView .workspace[data-view="orders"] #orderTable .order-sticky-tools { display:contents; }
#appView .workspace[data-view="orders"] #orderTable .order-list-refinements {
  margin-bottom:10px; border:1px solid #dfe5ed; border-radius:8px; background:#fff;
}
#appView .workspace[data-view="orders"] #orderTable .order-status-refresh-row {
  display:flex; flex-wrap:wrap; align-items:center; gap:6px; min-width:0; margin:0; padding:8px 10px;
  border:0; border-radius:8px 8px 0 0; background:#fff;
}
#appView .workspace[data-view="orders"] #orderTable.pb-workspace .order-status-refresh-row {
  margin-bottom:10px; border:1px solid #dfe5ed; border-radius:8px;
}
#appView .workspace[data-view="orders"] #orderTable :is(.order-list-tabs,.order-status-select--other) { display:none; }
#appView .workspace[data-view="orders"] #orderTable .order-status-compact {
  display:flex; align-items:center; gap:8px; flex:1 1 auto; min-width:0; color:#536278; font-size:12px;
}
#appView .workspace[data-view="orders"] #orderTable .order-status-compact span { flex:0 0 auto; }
#appView .workspace[data-view="orders"] #orderTable .order-status-refresh-row :is(.order-status-select,.page-refresh-button) {
  min-height:32px; margin:0; border:1px solid; border-color:#dfe5ed !important; border-radius:5px; box-shadow:none;
  background-color:#fff; color:#435268; font-size:12px; font-weight:550; line-height:18px;
}
#appView .workspace[data-view="orders"] #orderTable .order-status-select {
  min-width:0; max-width:100%; padding:5px 24px 5px 8px; text-overflow:ellipsis;
}
#appView .workspace[data-view="orders"] #orderTable .order-status-compact .order-status-select { flex:1 1 auto; }
#appView .workspace[data-view="orders"] #orderTable .order-status-select:is(.is-active,.order-status-compact select:not(:has(option[value=""]:checked))) {
  color:#174da6; border-color:#bdcff0 !important;
}
#appView .workspace[data-view="orders"] #orderTable .order-status-refresh-row .page-refresh-button {
  flex:0 0 auto; min-width:44px; padding:4px 9px; justify-content:center;
}
#appView .workspace[data-view="orders"] #orderTable .order-status-refresh-row .page-refresh-button svg { width:14px; height:14px; }
#appView .workspace[data-view="orders"] #orderTable .order-status-refresh-row .page-refresh-button:hover:not(:disabled) {
  color:#174da6; border-color:#bdcff0 !important; background:#f5f8fe;
}
#appView .workspace[data-view="orders"] #orderTable .order-status-shortcuts {
  display:flex; flex-wrap:wrap; gap:4px; min-width:0;
}
#appView .workspace[data-view="orders"] #orderTable :is(.order-list-tabs,.order-status-shortcuts) button {
  display:inline-flex; position:relative; align-items:center; justify-content:center;
  flex:0 0 auto; min-height:44px; gap:5px; padding:5px 7px;
  border:0; border-radius:0; box-shadow:none; background:transparent;
  color:#425167; font-size:13px; font-weight:600; line-height:18px; white-space:nowrap;
}
#appView .workspace[data-view="orders"] #orderTable :is(.order-list-tabs,.order-status-shortcuts) button span {
  display:inline-flex; justify-content:center; min-width:17px; min-height:0; margin:0; padding:0 4px;
  border-radius:4px; color:#536278; background:#f0f3f7;
  font-size:11px; font-weight:600; line-height:17px; font-variant-numeric:tabular-nums;
}
#appView .workspace[data-view="orders"] #orderTable :is(.order-list-tabs,.order-status-shortcuts) button:hover { color:#174da6; background:#f7f9fc; }
#appView .workspace[data-view="orders"] #orderTable :is(.order-list-tabs button.active,.order-status-shortcuts button[aria-pressed="true"]) { color:#174da6; }
#appView .workspace[data-view="orders"] #orderTable :is(.order-list-tabs button.active,.order-status-shortcuts button[aria-pressed="true"]) span {
  color:inherit; background:#eaf1ff;
}
#appView .workspace[data-view="orders"] #orderTable .order-status-shortcuts button {
  min-height:32px; padding-inline:6px; border:1px solid; border-color:#dfe5ed !important; border-radius:5px; font-size:12px;
}
#appView .workspace[data-view="orders"] #orderTable .order-status-shortcuts button[aria-pressed="true"] {
  border-color:#bdcff0 !important; background:#f5f8fe;
}
@container order-workspace (max-width:640px) {
  #appView .workspace[data-view="orders"] #orderTable .order-status-shortcuts { flex:1 0 100%; }
  #appView .workspace[data-view="orders"] #orderTable .order-status-shortcuts button { flex:1 0 auto; }
}
@container order-workspace (min-width:1130px) {
  #appView .workspace[data-view="orders"] #orderTable .order-status-refresh-row { flex-wrap:nowrap; padding-block:0; }
  #appView .workspace[data-view="orders"] #orderTable .order-list-tabs {
    display:flex; flex:1 1 auto; flex-wrap:wrap; gap:0; width:auto; min-width:0; margin:0; padding:0;
    overflow:visible; border:0; background:transparent;
  }
  #appView .workspace[data-view="orders"] #orderTable .order-list-tabs button.active::after {
    content:""; position:absolute; inset:auto 7px 0; height:2px; border-radius:2px 2px 0 0;
    background:#175de8;
  }
  #appView .workspace[data-view="orders"] #orderTable .order-status-select--other { display:block; flex:0 0 auto; width:126px; }
  #appView .workspace[data-view="orders"] #orderTable :is(.order-status-compact,.order-status-shortcuts) { display:none; }
}
@container order-workspace (min-width:1130px) and (max-width:1220px) {
  #appView .workspace[data-view="orders"] #orderTable .order-list-tabs button {
    gap:3px; padding-inline:4px; font-size:12px;
  }
}
@container order-workspace (min-width:1221px) {
  #appView .workspace[data-view="orders"] #orderTable .order-list-tabs button[data-status="loaded"] { margin-inline-start:12px; }
  #appView .workspace[data-view="orders"] #orderTable .order-list-tabs button[data-status="loaded"]::before {
    content:""; position:absolute; inset-inline-start:-6px; top:calc(50% - 8px); width:1px; height:16px;
    background:#e0e6ee;
  }
}
body.tablet-mode #appView .workspace[data-view="orders"] #orderTable :is(.order-status-shortcuts button,.order-status-refresh-row .order-status-select,.order-status-refresh-row .page-refresh-button,.batch-filter-area > button) {
  min-height:44px;
}
#appView .workspace[data-view="orders"] #orderTable .batch-filter-area {
  display:flex; flex-wrap:wrap; align-items:center; gap:4px 6px; width:auto; margin:0; padding:6px 10px;
  border:0; border-top:1px solid #ebeff4; border-radius:0 0 7px 7px; background:#f7f9fc;
}
#appView .workspace[data-view="orders"] #orderTable .batch-filter-area > button {
  display:inline-flex; align-items:center; justify-content:center; gap:5px;
  min-height:30px; max-width:100%; padding:4px 8px; border:1px solid; border-color:#dfe5ed !important; border-radius:5px;
  background:#fff; color:#435268; font-size:12px; font-weight:550; line-height:18px;
  white-space:normal; overflow-wrap:anywhere;
}
#appView .workspace[data-view="orders"] #orderTable .batch-filter-area > button:is([data-order-focus="product-picker"],[data-order-focus="quantity-picker"])::after {
  content:""; flex:0 0 auto; width:5px; height:5px; margin:0 2px 3px 2px;
  border:solid currentColor; border-width:0 1px 1px 0; transform:rotate(45deg);
}
#appView .workspace[data-view="orders"] #orderTable .batch-filter-area > button:hover:not(:disabled) {
  border-color:#bdcff0 !important; color:#174da6; background:#f5f8fe;
}
#appView .workspace[data-view="orders"] #orderTable .batch-filter-area > button:is(.filter-active,[aria-pressed="true"]) {
  border-color:#bdcff0 !important;
}
@container order-workspace (max-width:340px) {
  #appView .workspace[data-view="orders"] #orderTable :is(.order-status-refresh-row,.batch-filter-area) { gap:4px; padding-inline:6px; }
  #appView .workspace[data-view="orders"] #orderTable :is(.order-status-shortcuts button,.batch-filter-area > button) { gap:3px; padding-inline:5px; }
}
@media (pointer:coarse) {
  #appView .workspace[data-view="orders"] #orderTable :is(.order-status-shortcuts button,.order-status-refresh-row .order-status-select,.order-status-refresh-row .page-refresh-button,.batch-filter-area > button) {
    min-height:44px;
  }
}
#appView .workspace[data-view="orders"] #orderTable :is(.order-status-refresh-row,.batch-filter-area) :is(button,select):focus-visible {
  outline:2px solid #175de8; outline-offset:-2px;
}
#appView .workspace[data-view="orders"] #orderTable .order-batch-enterprise {
  display:flex; flex-direction:row; align-items:center; flex-wrap:wrap; gap:6px 14px; overflow:visible;
  margin:0 0 14px; padding:5px 10px; border:1px solid #dfe5ed; border-radius:9px; background:#f7f9fc;
}
#appView .workspace[data-view="orders"] #orderTable .order-batch-enterprise:not(.order-batch-compact) .batch-work-area {
  flex:1 1 720px;
}
#appView .workspace[data-view="orders"] #orderTable .batch-selection-card {
  display:flex; flex-wrap:wrap; align-items:center; flex:0 1 auto; gap:2px 10px;
  width:auto; min-width:0; max-width:100%; min-height:36px; margin:0; padding:0; border:0; background:transparent;
}
#appView .workspace[data-view="orders"] #orderTable .batch-selection-card .checkline { flex:0 1 auto; min-height:36px; cursor:pointer; }
#appView .workspace[data-view="orders"] #orderTable .batch-selection-count {
  gap:4px; margin:0; padding:3px 7px; border-radius:5px; background:#eaf0f7; color:#49596f; white-space:nowrap;
}
#appView .workspace[data-view="orders"] #orderTable .has-selection .batch-selection-count { background:#e7efff; color:#124aa9; }
#appView .workspace[data-view="orders"] #orderTable .has-selection .batch-selection-count strong { color:inherit; }
#orderSelectedElsewhere:not([hidden]) { margin-left:4px; padding-left:6px; border-left:1px solid #dce4ee; color:#475467; }
#appView .workspace[data-view="orders"] #orderTable .batch-work-area {
  display:flex; align-items:center; flex:1 1 auto; flex-wrap:wrap; gap:6px 8px; width:auto; min-width:0;
}
#appView .workspace[data-view="orders"] #orderTable .batch-work-area > :is(button,details) { flex:0 0 auto; width:auto; }
#appView .workspace[data-view="orders"] #orderTable .batch-work-area > button { min-height:34px; padding:4px 10px; }
#appView .workspace[data-view="orders"] #orderTable .batch-work-area > button.primary:disabled {
  background:#edf0f5 !important; border-color:#edf0f5 !important; color:#647185 !important; opacity:1; box-shadow:none;
}
#appView .workspace[data-view="orders"] #orderTable .batch-work-area .batch-print-scope { margin:0; }
#appView .workspace[data-view="orders"] #orderTable .order-batch-more > summary {
  background:#fff; border:1px solid #dce2eb; padding-inline:9px;
}
#appView .workspace[data-view="orders"] #orderTable #oglBatchToolbar { flex:1 1 100%; }
#appView .workspace[data-view="orders"] #orderTable > #orderList { margin-top:0; }
@media (pointer:coarse) {
  #appView .workspace[data-view="orders"] #orderTable :is(.batch-filter-area > button,.batch-selection-card .checkline,.order-batch-more > summary,.batch-work-area > button) {
    min-height:44px;
  }
}
#appView .workspace[data-view="orders"] #orderTable .order-pagination {
  position:sticky; inset:auto; bottom:0; gap:6px 12px; flex-wrap:wrap;
  min-height:48px; margin:8px 0 0; padding:5px 10px max(5px,env(safe-area-inset-bottom));
  border:1px solid #dce4ee; border-radius:8px 8px 0 0; background:#fff;
  box-shadow:0 -3px 10px rgb(18 35 63 / 6%); backdrop-filter:none;
}
#appView .workspace[data-view="orders"] #orderTable .order-pagination-summary { display:block; min-width:0; }
#appView .workspace[data-view="orders"] #orderTable .order-pagination-pages { flex:0 0 auto; gap:4px; overflow:visible; order:0; }
#appView .workspace[data-view="orders"] #orderTable .order-pagination-pages strong { min-width:0; padding:0 4px; white-space:nowrap; }
#appView .workspace[data-view="orders"] #orderTable .order-pagination-pages button { padding-inline:8px; white-space:nowrap; }
#appView .workspace[data-view="orders"] #orderTable .order-page-size { flex:0 0 auto; }
#appView .workspace[data-view="orders"] #orderTable .order-page-size select { min-width:0; padding-inline:6px 20px; }
#appView .workspace[data-view="orders"] #orderTable .order-pagination--single .order-pagination-pages { display:none; }
#appView .workspace[data-view="orders"] .order-pagination-options { display:flex; align-items:center; gap:10px; }
#appView .workspace[data-view="orders"] .order-chat-slot:empty { display:none; }
#appView .workspace[data-view="orders"] .order-chat-slot .wchat-launcher--order {
  position:relative; inset:auto !important; z-index:auto; width:36px; height:36px; min-height:36px;
  border-radius:7px; box-shadow:none; cursor:pointer; touch-action:manipulation;
}
#appView .workspace[data-view="orders"] .order-chat-slot .wchat-launcher--order svg { width:20px; height:20px; }
#appView .workspace[data-view="orders"] .order-chat-slot .wchat-badge { top:-3px; right:-3px; min-width:14px; padding-inline:3px; line-height:14px; font-size:9px; }
@media (pointer:coarse) {
  #appView .workspace[data-view="orders"] .order-chat-slot .wchat-launcher--order { width:44px; height:44px; min-height:44px; }
}
@container order-workspace (max-width: 620px) {
  #appView .workspace[data-view="orders"] #orderTable .order-pagination { justify-content:space-between; gap:3px 8px; }
  #appView .workspace[data-view="orders"] #orderTable .order-pagination-pages { flex:1 1 100%; order:2; justify-content:space-between; }
  #appView .workspace[data-view="orders"] #orderTable .batch-work-area .batch-workflow { flex-wrap:wrap; }
  #appView .workspace[data-view="orders"] #orderTable .order-batch-compact:not(.has-selection) .batch-work-area { display:none; }
}
@media (min-width: 1050px) and (min-height: 600px) {
  @container order-workspace (min-width: 800px) {
    #appView .workspace[data-view="orders"] #orderTable .order-batch-compact { position:sticky; top:0; z-index:38; }
  }
}
@media (max-height: 525px) {
  #appView .workspace[data-view="orders"] #orderTable .order-pagination { position:static; }
}
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .qty-filter-inline { min-width:0; flex:1 1 210px; max-width:600px; display:flex; align-items:center; gap:5px; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .qty-quick-row { flex-wrap:nowrap; overflow:auto; min-width:0; scrollbar-width:thin; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .qty-quick-button { flex:0 0 auto; min-height:28px; border-radius:4px; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .batch-print-scope { font-size:11px; padding:0; background:transparent; border:0; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .batch-selection-copy { display:flex; align-items:baseline; gap:5px; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .batch-selection-copy small { font-size:11px; color:var(--oc-muted); }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .batch-selection-count { font-size:12px; gap:4px; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .batch-selection-count strong { font-size:16px; color:var(--oc-ink); }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .batch-work-area .batch-workflow { flex:1 1 490px; display:flex; gap:6px; max-width:none; width:auto; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .batch-flow-step { flex:1 1 0; min-width:100px; padding:5px 8px; border:1px solid var(--oc-line); border-radius:6px; background:#fff; min-height:50px; gap:6px; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .batch-flow-step.is-current { border-color:#afc6f5; background:#f5f8ff; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .batch-flow-step button { font-size:12px; line-height:1.5; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .batch-flow-step :is(.batch-step-sub,.checkline) { font-size:11px; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .batch-flow-step button:disabled { color:#8c96a6; opacity:1; }

/* Shared card typography and surfaces. */
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise { --order-surface:#fff; --order-head-surface:#fff; border-radius:8px; border:1px solid #e1e6ee; box-shadow:0 1px 3px #172b4d04; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-head { padding:9px 14px; border-bottom:1px solid var(--oc-line); gap:6px 10px; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-head-main { gap:4px 10px; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-head-main > :is(.order-wh,.order-head-service,.order-carrier-badge,.text-ok) { border:0; background:transparent; padding:0; font-size:11px; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-customer-balance { background:transparent; border:0; padding:0; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .domestic-tracking-line { justify-content:flex-start; align-items:baseline; flex-wrap:wrap; gap:4px 8px; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .domestic-tracking-number { flex:0 1 auto; white-space:normal; word-break:normal; overflow-wrap:anywhere; line-height:22px; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .ozon-order-number { white-space:normal; overflow:visible; text-overflow:clip; overflow-wrap:anywhere; word-break:normal; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .ozon-order-copy-row { align-items:flex-start; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .shipment-recipient { margin-top:4px; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .shipment-receive-action { align-self:flex-start; width:max-content; max-width:100%; min-height:28px; padding:3px 10px; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-proof-title { font-size:11px; margin:0; padding:0; border:0; color:var(--oc-muted); }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-proof-item { padding:0; margin:0; border:0; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-proof-time { display:block; overflow-wrap:anywhere; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-product-img { box-shadow:none; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .product-title-clamp { font-size:14px; line-height:1.65; font-weight:600; color:var(--oc-ink); }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .rootflow-product-details { margin-top:4px; gap:2px; }
.order-product-specs { color:#6a768a; font-size:11px; }
.order-product-specs summary { min-height:26px; cursor:pointer; width:max-content; }
.order-product-specs > div { display:grid; gap:4px; padding:4px 0; }
.order-product-specs > div > div { display:grid; grid-template-columns:30px minmax(0,1fr); gap:8px; }
.order-product-specs strong { font-size:12px; font-weight:400; overflow-wrap:anywhere; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-quantity-summary { margin-top:3px; gap:4px 14px; justify-content:flex-start; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .qty-value--pieces { font-size:25px; letter-spacing:-.7px; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-inventory-card { padding:8px; border-radius:6px; background:#f7f9fc; border:1px solid #ebeff5; box-shadow:none; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-inventory-card__item { grid-template-columns:48px minmax(0,1fr); gap:4px 8px; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-inventory-card__media { width:48px; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-inventory-card__media img { width:48px; height:64px; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-inventory-card__body { display:flex; flex-direction:column; gap:2px; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-inventory-card__shelf { order:1; font-size:15px; line-height:20px; min-height:22px; padding:1px 0; font-weight:650; color:var(--oc-ink); margin:0; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-inventory-card__name { order:0; min-height:20px; padding:0; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise :is(.order-inventory-card__identity,.order-inventory-card__packaging) { order:2; font-size:11px; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-inventory-card__stock strong { color:var(--oc-ink); font-size:20px; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-ozon-context { font-size:11px; padding-top:2px; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-actions .oa-primary-row { gap:4px; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-actions .oa-primary-row button { min-height:32px; border:1px solid #dce3ed; background:#fff; color:#46556b; border-radius:5px; box-shadow:none; }
:is(#appView .workspace[data-view="orders"],#orderProcessingModal) .oa-primary-row > span.oa-confirm-stock.is-complete { display:flex; align-items:center; gap:4px; grid-column:1/-1; padding:0; min-height:22px; font-size:11px; color:#397459; background:transparent; border:0; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .oa-notify-row button { color:#59677c; border:1px solid var(--oc-line); background:#fff; border-radius:5px; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-action-section-label { min-height:26px; padding:3px 0; gap:3px; font-size:11px; white-space:nowrap; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise:is(:hover,.is-selected) { transform:none; }

body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-stock-tools--inline { display:flex; flex-wrap:wrap; gap:4px; padding-top:3px; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .sign-cell .order-stock-tools--inline > button { width:auto; min-height:26px; padding:3px 6px; font-size:11px; line-height:18px; }
body #appView .workspace[data-view="orders"] .order-card .order-stock-tools--inventory { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
body #appView .workspace[data-view="orders"] .order-card .order-stock-tools--inventory > button { width:auto; max-width:100%; min-height:30px; padding:4px 8px; font-size:12px; line-height:20px; }
body #appView .workspace[data-view="orders"] .order-product-name-source { display:block; color:#667085; font-size:11px; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-product-line--single .order-product-line-body { padding:0; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-product-specs summary { min-height:22px; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-inventory-card-column { padding-bottom:0; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-inventory-card__footer { margin-top:4px; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-quantity-summary :is(.qty-pieces-row,.qty-row--ordered,.qty-row--rate) { flex:0 0 auto; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-proof-main { gap:4px; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-actions .oa-notify-row button { min-height:30px; padding:4px 3px; font-size:11px; white-space:nowrap; }

/* Selection is an explicit state. The footer alone reports selected totals. */
#skuPickerModal .sku-picker--enterprise { width:min(1460px,calc(100% - 40px)); height:min(980px,calc(100dvh - 40px)); max-height:calc(100dvh - 40px); border-radius:10px; box-shadow:0 18px 70px #15213d30; }
#skuPickerModal .modal-head { padding:16px 20px; border-bottom:1px solid var(--oc-line); gap:12px; }
#skuPickerModal .modal-head h3 { font-size:17px; letter-spacing:-.3px; }
#skuPickerModal .sku-picker-head-actions { flex-wrap:wrap; justify-content:flex-end; gap:6px; }
#skuPickerModal .sku-picker-head-actions > button { min-height:34px; padding:6px 10px; font-size:12px; }
#skuPickerModal .sku-confirm-action { background:#fff; color:#175de8; border:1px solid #b8cdf5; }
#skuPickerModal .sku-confirm-action:disabled { color:#8b96a8; border-color:#e4e8ef; }
#skuPickerModal .sku-reminder-tools .order-tools-popover { z-index:40; }
#skuPickerModal .sku-picker-tabbar { flex-wrap:wrap; gap:8px 16px; padding:8px 0; }
#skuPickerModal .sku-picker-controls:has(#skuPickerShelfGroupRow:not([hidden])) { grid-template-columns:minmax(0,1fr) auto auto; gap:10px 16px; }
#skuPickerModal #skuPickerShelfGroupRow { grid-column:1/-1; grid-row:1; width:100%; border:0; background:transparent; }
#skuPickerModal .sku-picker-controls:has(#skuPickerShelfGroupRow:not([hidden])) #skuPickerWarehouseRow { grid-column:1; grid-row:2; }
#skuPickerModal .sku-picker-controls:has(#skuPickerShelfGroupRow:not([hidden])) #skuPickerPrintFilter { grid-column:2; grid-row:2; }
#skuPickerModal .sku-picker-controls:has(#skuPickerShelfGroupRow:not([hidden])) #skuPickerInventorySort { grid-column:3; grid-row:2; }
#skuPickerModal #skuPickerShelfGroupRow .sku-picker-warehouse-options { flex-wrap:wrap; gap:8px; padding:2px; }
#skuPickerModal #skuPickerShelfGroupRow button { min-width:70px; min-height:44px; justify-content:center; gap:8px; padding:8px 14px; border:1px solid; border-color:#dce3ed !important; border-radius:6px; background:#fff; color:#344054; font-size:14px; font-weight:600; box-shadow:none; }
#skuPickerModal #skuPickerShelfGroupRow button small { font-size:12px; color:#667085; }
#skuPickerModal #skuPickerShelfGroupRow button:hover { border-color:#b8cdf5 !important; background:#f7faff; }
#skuPickerModal #skuPickerShelfGroupRow button.is-active { border-color:#175de8 !important; background:#edf4ff; color:#175de8; }
#skuPickerModal #skuPickerShelfGroupRow button.is-active small { color:#175de8; }
#skuPickerModal #skuPickerShelfGroupRow button:focus-visible { outline:2px solid #175de8; outline-offset:2px; }
#skuPickerModal .sku-picker-tools input { background:#fff; border:1px solid #dce3ed; border-radius:5px; }
#skuPickerModal .sku-picker-list { grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; padding:16px 20px; background:#f5f7fa; scrollbar-gutter:stable; }
#skuPickerModal .inventory-card-picker-card { box-shadow:none; border:1px solid #e2e7ef; border-radius:7px; padding:14px; gap:7px 10px; cursor:pointer; }
#skuPickerModal .inventory-card-picker-card:hover { border-color:#bfccdf; box-shadow:none; transform:none; }
#skuPickerModal .inventory-card-picker-card.is-selected { border-color:#175de8; box-shadow:inset 0 0 0 1px #175de8; background:#f7faff; }
#skuPickerModal .inventory-card-picker-card button { cursor:pointer; }
#skuPickerModal .inventory-card-picker-shelf { font-size:14px; color:var(--oc-ink); font-weight:650; line-height:1.5; }
#skuPickerModal .inventory-card-picker-orders { display:flex; align-items:baseline; gap:5px; padding-top:10px; }
#skuPickerModal .inventory-card-picker-orders strong:last-child { font-size:24px; letter-spacing:-.5px; margin-left:auto; }
#skuPickerModal .inventory-card-picker-stock { gap:5px 10px; }
#skuPickerModal .inventory-card-picker-stock button { font-size:11px; }
#skuPickerModal .inventory-card-picker-label-status { border-top:1px solid var(--oc-line); margin-top:5px; }
#skuPickerModal .inventory-card-picker-label-row { align-items:center; min-height:32px; background:transparent; padding:3px 0; border-bottom:1px solid #f0f2f6; }
#skuPickerModal .inventory-card-picker-group-print { background:#fff; border:1px solid #dce5f4; border-radius:4px; min-height:28px; }
#skuPickerModal .picker-print-details { width:100%; }
#skuPickerModal .picker-print-details > summary { min-height:30px; padding:6px 0; font-size:11px; color:#63738b; cursor:pointer; }
#skuPickerModal .wecom-picker-remind { min-height:30px; border:1px solid #e0e6ee; background:#fff; color:#5b6a80; }
#skuPickerModal .sku-picker-footer { padding:12px 20px; border-top:1px solid var(--oc-line); background:#fff; gap:8px; }
#skuPickerModal .sku-picker-selection-summary { color:var(--oc-ink); font-size:13px; font-weight:550; }
#skuPickerModal .sku-picker-footer .primary { min-width:126px; min-height:38px; border-radius:5px; }
#skuPickerModal .sku-picker-loading.is-error { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:12px; }
#skuPickerModal .sku-picker-loading.is-error > span { flex:1 1 100%; }
#skuPickerModal .sku-picker-pager { padding:8px 20px; }

/* Processing uses the same type hierarchy, with its work controls always in reach. */
#orderProcessingModal .order-processing-dialog { width:min(1360px,calc(100% - 40px)); height:auto; max-height:calc(100dvh - 40px); border-radius:10px; }
#orderProcessingModal .order-processing-head { padding:16px 20px; min-height:64px; }
#orderProcessingModal .order-processing-copy { margin-left:-6px; margin-right:auto; background:transparent; width:28px; min-height:28px; padding:0; color:#748096; }
#orderProcessingModal .sign-cell :is(.ozon-order-label,.ozon-order-copy-row) { display:none; }
#orderProcessingModal .order-processing-body { padding:0; background:#fff; scrollbar-gutter:stable; }
#orderProcessingModal .order-card { border:0; border-radius:0; box-shadow:none; }
#orderProcessingModal .order-processing-body .order-card.order-card--enterprise .order-card-grid { grid-template-columns:170px minmax(300px,1.3fr) minmax(230px,1fr) 220px; }
#orderProcessingModal .order-processing-body .order-card.order-card--enterprise .order-card-grid > div { padding:20px 16px; }
#orderProcessingModal .order-processing-body .order-card.order-card--enterprise .order-product-line { grid-template-columns:112px minmax(0,1fr); }
#orderProcessingModal .order-processing-body .order-card.order-card--enterprise :is(.order-product-line-img,.order-product-img) { width:112px; }
#orderProcessingModal .order-processing-body .order-card.order-card--enterprise .order-product-img { height:150px; object-fit:contain; }
#orderProcessingModal .order-processing-body .order-card.order-card--enterprise .order-inventory-card { background:#f7f9fc; box-shadow:none; border:1px solid #ebeff5; border-radius:6px; }
#orderProcessingModal .order-processing-body .order-card.order-card--enterprise .order-inventory-card__shelf { font-size:16px; color:var(--oc-ink); }
#orderProcessingModal .order-processing-body .order-card.order-card--enterprise .order-actions .oa-primary-row button { border:1px solid #dce3ed; background:#fff; color:#46556b; border-radius:5px; }
#orderProcessingModal .order-processing-body .order-card.order-card--enterprise .order-actions .oa-primary-row button.is-next { background:var(--oc-blue); color:#fff; border-color:var(--oc-blue); }
#orderProcessingModal .order-processing-body .order-card.order-card--enterprise .oa-notify-row button { border:1px solid var(--oc-line); background:#fff; color:#59677c; border-radius:5px; }
#orderProcessingModal .order-processing-body .order-card.order-card--enterprise .order-inventory-card__stock b { color:var(--oc-ink); font-size:20px; }
#orderProcessingModal .order-processing-body .order-card.order-card--enterprise .order-inventory-card__item:not(.scan-stock-card) { grid-template-columns:48px minmax(0,1fr); }
#orderProcessingModal .order-processing-body .order-card.order-card--enterprise .order-inventory-card__media { width:48px; }
#orderProcessingModal .order-processing-body .order-card.order-card--enterprise .order-inventory-card__media :is(img,button) { width:48px; height:64px; min-height:0; padding:0; }
#orderProcessingModal .order-processing-body .order-card.order-card--enterprise .order-proof-cell { background:#fafbfd; padding:10px 20px; border-top:1px solid var(--oc-line); }
#orderProcessingModal .order-processing-statusbar { background:#f6f8fc; border-color:#e6ebf3; }

/* The list itself carries unread information; no duplicate row of room chips. */
body.wchat-docked:has(.workspace[data-view="orders"]) { --wchat-dock-width:380px; }
body:has(.workspace[data-view="orders"]) .wchat:not(.has-room) .wchat-alerts { display:none; }
body:has(.workspace[data-view="orders"]) .wchat-head { border-bottom:1px solid #e6eaf1; }
body:has(.workspace[data-view="orders"]) .wchat-room { border-bottom:1px solid #eef1f5; border-radius:0; padding:15px 12px !important; }
body:has(.workspace[data-view="orders"]) .wchat-room strong { font-size:13px; color:#253247; padding-right:32px; }
body:has(.workspace[data-view="orders"]) .wchat-room small { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; white-space:normal; line-height:1.6; }

:is(#skuPickerModal,#orderProcessingModal,body:not(.tablet-mode) #appView .workspace[data-view="orders"]) :is(button,input,select,textarea,summary,a):focus-visible { outline:2px solid #3478ee; outline-offset:3px; }
:is(#skuPickerModal,#orderProcessingModal,body:not(.tablet-mode) #appView .workspace[data-view="orders"]) button[aria-busy="true"] { cursor:progress; }
@media(max-width:1300px) {
  body:not(.tablet-mode) #appView .workspace[data-view="orders"] .batch-work-area .batch-workflow { flex-wrap:wrap; }
  #skuPickerModal .sku-picker-list { grid-template-columns:repeat(3,minmax(0,1fr)); }
  #orderProcessingModal .order-processing-body .order-card.order-card--enterprise .order-card-grid { grid-template-columns:150px minmax(230px,1fr) 210px; }
  #orderProcessingModal .order-processing-body .order-card.order-card--enterprise .order-context-cell { grid-column:2; grid-row:2; }
  #orderProcessingModal .order-processing-body .order-card.order-card--enterprise .order-actions { grid-column:3; grid-row:1/3; }
  #orderProcessingModal .order-processing-body .order-card.order-card--enterprise .order-proof-cell { grid-row:3; }
}
@media(max-width:900px) {
  body:not(.tablet-mode) #appView .workspace[data-view="orders"] .topbar { padding:12px 14px; flex-wrap:wrap; }
  body #appView .workspace[data-view="orders"] #content { padding:10px 12px 0; }
  #skuPickerModal .sku-picker-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #skuPickerModal .sku-picker-controls { display:flex; flex-wrap:wrap; }
  #skuPickerModal #skuPickerShelfGroupRow { flex:1 1 100%; order:-1; }
  #skuPickerModal #skuPickerShelfGroupRow .sku-picker-warehouse-options { flex-wrap:nowrap; }
  #skuPickerModal .sku-picker-tools { flex:1 1 100%; flex-wrap:wrap; }
  #skuPickerModal .sku-picker-tools input { flex:1 1 100%; }
  #orderProcessingModal .order-processing-body .order-card.order-card--enterprise .order-card-grid { grid-template-columns:140px minmax(0,1fr); }
  #orderProcessingModal .order-processing-body .order-card.order-card--enterprise .order-actions { grid-column:1/-1; grid-row:3; }
  #orderProcessingModal .order-processing-body .order-card.order-card--enterprise .order-context-cell { grid-column:1/-1; grid-row:2; }
  #orderProcessingModal .order-processing-body .order-card.order-card--enterprise .order-proof-cell { grid-row:4; }
  body.wchat-docked:has(.workspace[data-view="orders"]) { --wchat-dock-width:320px; }
}
@media(max-width:600px) {
  #skuPickerModal .sku-picker--enterprise { width:calc(100% - 16px); height:calc(100dvh - 16px); max-height:calc(100dvh - 16px); }
  #skuPickerModal .modal-head { padding:12px; align-items:flex-start; }
  #skuPickerModal .sku-picker-head-actions { gap:4px; }
  #skuPickerModal .sku-picker-list { grid-template-columns:minmax(0,1fr); padding:12px; }
  #skuPickerModal .sku-picker-tabbar { margin:0 12px; }
  #skuPickerModal .sku-picker-footer { padding:10px 12px; }
  #skuPickerModal .sku-picker-selection-summary { flex:1 1 100%; }
  #orderProcessingModal .order-processing-dialog { width:calc(100% - 16px); max-height:calc(100dvh - 16px); }
  #orderProcessingModal .order-processing-body .order-card.order-card--enterprise .order-card-grid { display:flex; flex-direction:column; }
  #orderProcessingModal .order-processing-body .order-card.order-card--enterprise .order-card-grid > div { width:100%; padding:14px; }
  body:not(.tablet-mode) #appView .workspace[data-view="orders"] .batch-flow-step { flex:1 1 42%; }
}
@media(max-width:760px) { body.wchat-docked:has(.workspace[data-view="orders"]) { --wchat-dock-width:0px; } }
@media(prefers-reduced-motion:reduce) { :is(#skuPickerModal,#orderProcessingModal,body:not(.tablet-mode) #appView .workspace[data-view="orders"]) * { scroll-behavior:auto; animation:none !important; transition:none !important; } }
@media print { .order-tools-popover { display:none; } }

body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise:hover { border:1px solid #c9d5e6; box-shadow:0 1px 3px #172b4d08; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise.is-selected { border:1px solid #a3beef; box-shadow:inset 3px 0 #175de8; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-actions .oa-primary-row button.is-next { background:#175de8; border-color:#175de8; color:#fff; box-shadow:none; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-inventory-card__stock .stock-number { color:#253247; }
body:not(.tablet-mode):has(.workspace[data-view="orders"]) :is(.erp-dialog-card,.modal-card):not(.sku-picker):not(.order-processing-dialog) { border:1px solid #e3e8ef; border-radius:9px; box-shadow:0 18px 70px #15213d24; }
body:not(.tablet-mode):has(.workspace[data-view="orders"]) :is(.erp-dialog-head,.modal-head) h3 { font-size:17px; letter-spacing:-.3px; }
body:not(.tablet-mode):has(.workspace[data-view="orders"]) :is(.erp-dialog-form,.form-grid) { gap:14px 16px; }
body:not(.tablet-mode):has(.workspace[data-view="orders"]) :is(.erp-dialog-form,.form-grid) :is(input,select,textarea) { border:1px solid #dce3ed; border-radius:5px; background:#fff; font-size:13px; }

body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-actions .oa-primary-row > span.oa-confirm-stock.is-complete { border:0; background:transparent; box-shadow:none; color:#397459; padding:0; min-height:22px; font-weight:500; border-radius:0; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-inventory-card__media > :is(button,.order-inventory-card__empty) { width:48px; min-width:0; height:64px; min-height:0; padding:0; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-inventory-card__stock b { font-size:20px; color:#253247; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-proof-title { font-size:11px; color:#6a768b; margin:0; }

body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .oa-disclosures { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px 10px; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .oa-disclosures > details { border:0; padding:0; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .oa-disclosures > details[open] { grid-column:1/-1; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-proof-item { min-height:20px; }
#orderProcessingModal .oa-disclosures { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px 10px; }
#orderProcessingModal .oa-disclosures > details[open] { grid-column:1/-1; }
@media(max-width:760px) {
  body:not(.tablet-mode) #appView .workspace[data-view="orders"] .topbar { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; padding:12px 14px; }
  body:not(.tablet-mode) #appView .workspace[data-view="orders"] .topbar > div:first-child { text-align:left; width:auto; grid-column:1; grid-row:1; }
  body:not(.tablet-mode) #appView .workspace[data-view="orders"] #pageTitle { text-align:left; }
  body:not(.tablet-mode) #appView .workspace[data-view="orders"] #tabletTools { grid-column:2; grid-row:1; justify-content:flex-end; width:auto; margin:0; }
  body:not(.tablet-mode) #appView .workspace[data-view="orders"] #pageHeaderActions { grid-column:1/-1; grid-row:2; margin:0; justify-content:flex-start; }
  body:not(.tablet-mode) #appView .workspace[data-view="orders"] .batch-print-scope { display:none; }
  body:not(.tablet-mode) #appView .workspace[data-view="orders"] .qty-filter-inline { flex-basis:100%; }
}

#orderProcessingModal .order-processing-announcement { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
body:not(.tablet-mode):has(.workspace[data-view="orders"]) :is(.stock-card-settings-mask,.stock-card-transit-mask) .erp-dialog-kicker { display:none; }
body:not(.tablet-mode):has(.workspace[data-view="orders"]) .stock-card-transit-mask .erp-dialog-head > p { display:none; }
body:not(.tablet-mode):has(.workspace[data-view="orders"]) .stock-card-settings-quantities small { display:none; }
body:not(.tablet-mode):has(.workspace[data-view="orders"]) .erp-dialog-actions button.erp-dialog-button--primary:not(:disabled) { background:#175de8; border-color:#175de8; color:#fff; box-shadow:none; }
body:not(.tablet-mode):has(.workspace[data-view="orders"]) .erp-dialog-actions button:disabled { background:#f1f3f6; color:#8a95a6; border-color:#e5e9ef; }
body:not(.tablet-mode):has(.workspace[data-view="orders"]) .stock-card-settings-dialog .erp-dialog-head { padding:18px 22px 14px; }
body:not(.tablet-mode):has(.workspace[data-view="orders"]) .stock-card-settings-dialog .erp-dialog-head h2 { font-size:18px; }
body:not(.tablet-mode):has(.workspace[data-view="orders"]) .stock-card-settings-dialog .erp-dialog-form { gap:12px; }
body:not(.tablet-mode):has(.workspace[data-view="orders"]) .stock-card-settings-dialog .stock-card-code-readonly { padding:0 0 10px; background:transparent; border-bottom:1px solid #e6eaf1; border-radius:0; }
body:not(.tablet-mode):has(.workspace[data-view="orders"]) .stock-card-settings-quantities > :is(button,.inventory-reserved-metric) { display:flex; flex-direction:column; align-items:flex-start; gap:4px; padding:9px 12px; background:#f6f8fb; border:1px solid #e6ebf2; border-radius:5px; }
body:not(.tablet-mode):has(.workspace[data-view="orders"]) .stock-card-settings-quantities :is(span,strong) { color:#253247; }
body:not(.tablet-mode):has(.workspace[data-view="orders"]) .stock-card-settings-quantities span { font-size:12px; color:#67758a; }
body:not(.tablet-mode):has(.workspace[data-view="orders"]) .stock-card-settings-quantities strong { font-size:21px; font-weight:650; }
body:not(.tablet-mode):has(.workspace[data-view="orders"]) .stock-card-settings-dialog .stock-card-field-hint { margin-top:-6px; padding:0; background:transparent; }
body:not(.tablet-mode):has(.workspace[data-view="orders"]) .stock-card-settings-dialog [data-card-shelf-clear] { width:max-content; margin-left:auto; min-height:28px; padding:3px 6px; font-size:12px; background:transparent; }

/* Feature controls retain a visible boundary despite the earlier global reset. */
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-filter-primary :is(input,select),
body:not(.tablet-mode):has(.workspace[data-view="orders"]) .erp-dialog-field :is(input,select,textarea):not([type="checkbox"]),
#skuPickerModal .sku-picker-tools input { border-color:#dce3ed !important; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-actions :is(.oa-primary-row,.oa-notify-row) button,
#orderProcessingModal .order-processing-body .order-card.order-card--enterprise .order-actions :is(.oa-primary-row,.oa-notify-row) button { border-color:#e0e6ef !important; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-actions .oa-primary-row button:not(.is-next):not(.is-done),
#orderProcessingModal .order-processing-body .order-card.order-card--enterprise .order-actions .oa-primary-row button:not(.is-next):not(.is-done) { background:#f5f7fa; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-actions .oa-primary-row button.is-next,
#orderProcessingModal .order-processing-body .order-card.order-card--enterprise .order-actions .oa-primary-row button.is-next { border-color:#175de8 !important; }

/* Keep the shared last print receipt visible to every sorter. */
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .is-label-printed .order-proof-time { display:block; white-space:normal; font-size:12px; color:#526276; }

/* Pair a stock-sized print with the operator's existing full-print action. */
#skuPickerModal .inventory-card-picker-label-row:has(.picker-print-buttons) { display:grid; grid-template-columns:minmax(0,1fr); gap:4px; padding-block:6px; }
#skuPickerModal .inventory-card-picker-label-row > .picker-print-buttons { display:flex; flex:0 1 auto; justify-content:flex-end; flex-wrap:wrap; gap:6px; min-width:0; }
#skuPickerModal .picker-print-buttons button { min-height:32px; padding:5px 8px; font-size:11px; line-height:1.4; white-space:nowrap; }
#skuPickerModal .picker-print-buttons .picker-stock-print:not(:disabled) { background:#eaf5ef; border-color:#a5d4b9 !important; color:#216a44; font-weight:600; }
#skuPickerModal .picker-print-buttons .picker-stock-print:not(:disabled):hover { background:#daf0e4; border-color:#77ba94 !important; }
#skuPickerModal .picker-print-buttons .picker-stock-print:disabled { color:#8a94a4; background:#f5f6f8; border-color:#e4e8ee !important; cursor:not-allowed; }
.inventory-print-reserved { font-size:11px; font-style:normal; font-weight:500; color:#a15c00; font-variant-numeric:tabular-nums; }
#skuPickerModal .inventory-card-picker-stock .inventory-card-stock-adjust:has(.inventory-print-reserved) { display:flex; flex-wrap:wrap; align-items:baseline; gap:3px; }
body:has(#skuPickerModal) .wchat-launcher { z-index:2290; }

/* Restore is a frequent printed-order operation and needs its own clear color. */
body #appView .workspace[data-view="orders"] .order-card .order-actions button.oa-reset-state,
body #appView .workspace[data-view="scanDesk"] .order-card .order-actions button.oa-reset-state,
body #orderProcessingModal .order-card .order-actions button.oa-reset-state,
body.tablet-mode .tablet-order-common button.oa-reset-state { background:#fff0cf !important; color:#8a4b00 !important; border-color:#dfaa45 !important; font-weight:650; box-shadow:none; }
body #appView .workspace[data-view="orders"] .order-card .order-actions button.oa-reset-state:hover,
body #appView .workspace[data-view="scanDesk"] .order-card .order-actions button.oa-reset-state:hover,
body #orderProcessingModal .order-card .order-actions button.oa-reset-state:hover,
body.tablet-mode .tablet-order-common button.oa-reset-state:hover { background:#ffe4ab !important; color:#783c00 !important; border-color:#c28b23 !important; }
body .order-actions button.oa-reset-state:focus-visible { outline:2px solid #a86a0e; outline-offset:2px; }
body .order-actions button.oa-reset-state:disabled { opacity:.65; cursor:wait; }
@media (max-width:600px) {
  #skuPickerModal .picker-print-buttons button { min-height:40px; flex:1 1 auto; }
  body #appView .order-card .order-actions button.oa-reset-state { min-height:44px; }
}

/* Signed picking: separate identity, quantities and actions without changing selection. */
#skuPickerModal .inventory-card-picker-card { gap:10px 12px; padding:16px; border-color:#e5e9ef; border-radius:10px; box-shadow:0 3px 12px #26395708; }
#skuPickerModal .inventory-card-picker-name { font-size:15px; line-height:1.45; }
#skuPickerModal button.inventory-card-picker-shelf { width:fit-content; max-width:100%; padding:5px 8px; border-radius:5px; background:#edf3ff; color:#2453a0; font-size:13px; line-height:1.5; }
#skuPickerModal .inventory-card-picker-tags { display:flex; flex-wrap:wrap; gap:2px 10px; font-size:11px; color:#718096; }
#skuPickerModal .inventory-card-picker-skus { font-size:11px; color:#718096; overflow-wrap:anywhere; }
#skuPickerModal .inventory-card-picker-orders { display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:12px; margin:3px 0 0; border:0; border-radius:7px; background:#f5f7fa; }
#skuPickerModal .inventory-card-picker-orders > span { display:flex; align-items:baseline; gap:5px; flex-wrap:wrap; }
#skuPickerModal .inventory-card-picker-orders small { flex:1 0 100%; font-size:11px; color:#667085; }
#skuPickerModal .inventory-card-picker-orders strong:last-child,
#skuPickerModal .inventory-card-picker-orders strong { margin:0; font-size:25px; font-weight:650; line-height:1.15; letter-spacing:0; font-variant-numeric:tabular-nums; }
#skuPickerModal .inventory-card-picker-orders em { color:#667085; font-size:12px; font-weight:400; }
#skuPickerModal .inventory-card-picker-stock { display:grid; grid-template-columns:1fr 1fr; gap:8px 10px; padding:4px 0; }
#skuPickerModal .inventory-card-picker-stock > :first-child { grid-column:1 / -1; }
#skuPickerModal .inventory-card-picker-stock > * { min-width:0; text-align:left; font-size:12px; line-height:1.6; white-space:normal; }
#skuPickerModal .inventory-card-picker-stock > :first-child strong { font-size:20px; margin-left:4px; color:#202733; }
#skuPickerModal .inventory-card-picker-stock strong { font-size:14px; }
#skuPickerModal .inventory-card-picker-stock .inventory-print-reserved { font-size:11px; font-weight:400; }
#skuPickerModal .inventory-card-picker-label-status { padding-top:10px; border-top:1px solid #edf0f4; }
#skuPickerModal .inventory-card-picker-label-row { gap:8px; padding:6px 0; border-bottom:0; }
#skuPickerModal .picker-print-buttons { display:flex; flex-wrap:wrap; gap:6px; width:100%; }
#skuPickerModal .picker-print-action { flex:1; min-height:34px; padding:7px 8px; font-size:12px; background:#edf3ff; color:#2453a0; border:1px solid #dce6f8; box-shadow:none; }
#skuPickerModal .picker-stock-print:not(:disabled) { background:#edf7f1; border-color:#bedfc9; color:#247650; }
#skuPickerModal .picker-reminder-bar { grid-column:1 / -1; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:10px; align-items:center; padding-top:10px; border-top:1px solid #edf0f4; }
#skuPickerModal .picker-reminder-bar .reminder-mark-switch { grid-column:auto; padding:7px 0; gap:8px; color:#6b7280; font-size:12px; font-weight:600; }
#skuPickerModal .picker-reminder-bar .reminder-mark-switch.is-on { color:#247650; }
#skuPickerModal .picker-reminder-bar .wecom-picker-remind { grid-column:auto; margin:0; min-height:36px; background:#edf3ff; border:1px solid #cbdcf9; color:#175cd3; font-size:12px; font-weight:600; }
#skuPickerModal .picker-reminder-bar .wecom-picker-remind:hover { background:#dfeaff; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-inventory-card__shelf,
#appView .workspace[data-view="scanDesk"] .scan-stock-card__shelf { width:fit-content; max-width:100%; height:auto; padding:6px 9px; border-radius:5px; background:#eaf1fc; color:#2453a0; font-size:15px; line-height:1.45; white-space:normal; text-align:left; }
#appView .workspace[data-view="scanDesk"] .scan-stock-card { padding:14px; gap:12px 14px; background:#f7f9fc; border-radius:8px; }
#appView .workspace[data-view="scanDesk"] .scan-stock-card__facts { gap:9px; }
#appView .workspace[data-view="scanDesk"] .scan-stock-card__quantity { grid-template-columns:96px minmax(0,1fr); }
#appView .workspace[data-view="scanDesk"] .scan-stock-card__quantity:first-of-type > b { font-size:22px; font-variant-numeric:tabular-nums; }
#appView .workspace[data-view="scanDesk"] .scan-stock-card__quantity small { display:inline-block; font-size:11px; font-weight:400; }
#appView .workspace[data-view="scanDesk"] .scan-stock-card__actions { padding-top:12px; border-top:1px solid #e4e9f1; gap:8px; }
#appView .workspace[data-view="scanDesk"] .scan-stock-card__actions > button { min-height:40px; padding:9px 5px; border:1px solid #cedbf0; border-radius:6px; background:#fff; color:#295486; font-weight:600; font-size:12px; box-shadow:0 1px 2px #142b5010; }
#appView .workspace[data-view="scanDesk"] .scan-stock-card__actions > button:first-child { background:#145ef0; color:#fff; border-color:#145ef0; }
#appView .workspace[data-view="scanDesk"] .scan-stock-card__actions > button:hover { filter:brightness(.97); }
body :is(#appView .workspace[data-view],#orderProcessingModal) .order-card.order-card--enterprise .order-actions .oa-signed-quick { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; margin:10px 0; padding-top:10px; border-top:1px solid #e8edf4; }
body :is(#appView .workspace[data-view],#orderProcessingModal) .order-card.order-card--enterprise .order-actions .oa-signed-quick button { min-height:34px; height:auto; padding:7px 5px; border:1px solid #dce3ed; border-radius:5px; color:#45566d; background:#f8fafc; font-size:12px; white-space:normal; }
body :is(#appView .workspace[data-view],#orderProcessingModal) .order-card.order-card--enterprise .order-actions .oa-signed-quick .oa-loading-print { grid-column:1 / -1; color:#2453a0; background:#edf3ff; border-color:#d3e0f7; }
body :is(#appView .workspace[data-view],#orderProcessingModal) .order-card.order-card--enterprise .order-actions .oa-signed-quick .warn { grid-column:1 / -1; color:#986224; background:#fff7eb; border-color:#ebdbbd; }
body :is(#appView .workspace[data-view],#orderProcessingModal) .order-card.order-card--enterprise .order-actions .oa-signed-quick .oa-reset-state { color:#6c5b44; }
.addon-fee-dialog .erp-dialog-card { width:min(540px,calc(100vw - 32px)); border-radius:12px; }
.addon-fee-dialog .erp-dialog-head { padding:20px 24px 16px; }
.addon-fee-dialog .erp-dialog-body { padding:0 24px 22px; }
.addon-fee-dialog .erp-dialog-copy { padding:12px 14px; background:#f5f7fa; border-radius:6px; color:#667085; font-size:12px; line-height:1.7; }
.addon-fee-dialog .erp-dialog-form { gap:18px; }
body .erp-dialog-mask.addon-fee-dialog .erp-dialog-card .erp-dialog-form input[data-field="amount"] { font-size:24px; font-weight:600; color:#202733; min-height:52px; background:#f8faff; }
.addon-fee-dialog .erp-dialog-actions { padding:16px 24px; }
@media(max-width:600px) {
 #skuPickerModal .inventory-card-picker-card { padding:12px; }
 #skuPickerModal .picker-reminder-bar { grid-template-columns:1fr; gap:4px; }
 #appView .workspace[data-view="scanDesk"] .scan-stock-card__quantity { grid-template-columns:82px minmax(0,1fr); }
}

body .erp-dialog-mask.addon-fee-dialog .erp-dialog-actions button.erp-dialog-button--primary { background:#145ef0; color:#fff; border-color:#145ef0; }

/* Same compact three-part shelf editor on order cards and inbound reviews. */
body :is(#appView,#orderProcessingModal) .inline-shelf-editor { min-width:0; width:100%; margin:6px 0; text-align:left; }
body :is(#appView,#orderProcessingModal) .inline-shelf-controls { display:flex; flex-wrap:wrap; align-items:center; gap:5px; }
body :is(#appView,#orderProcessingModal) .inline-shelf-controls select { width:auto; min-width:58px; max-width:100%; flex:1 1 58px; height:34px; min-height:34px; padding:4px 20px 4px 7px; border:1px solid #d7e2f3; border-radius:5px; background-color:#eef4ff; color:#2453a0; font-size:12px; font-weight:600; }
body :is(#appView,#orderProcessingModal) .inline-shelf-controls select:first-child { flex:2 1 95px; }
body :is(#appView,#orderProcessingModal) .inline-shelf-controls select:disabled { color:#8993a2; background:#f4f6f9; }
body :is(#appView,#orderProcessingModal) .inline-shelf-controls button,
body :is(#appView,#orderProcessingModal) .inline-shelf-weight button { min-height:34px; padding:5px 9px; border-radius:5px; font-size:12px; white-space:nowrap; }
body :is(#appView,#orderProcessingModal) .inline-shelf-controls .inline-shelf-confirm,
body :is(#appView,#orderProcessingModal) .inline-shelf-weight button { color:#fff; background:#145ef0; border:1px solid #145ef0; }
body :is(#appView,#orderProcessingModal) .inline-shelf-controls .inline-shelf-view { color:#2453a0; background:#fff; border:1px solid #d7e2f3; }
body :is(#appView,#orderProcessingModal) .inline-shelf-editor [hidden] { display:none !important; }
body :is(#appView,#orderProcessingModal) .inline-shelf-weight { display:flex; flex-wrap:wrap; align-items:center; gap:7px; margin-top:9px; }
body :is(#appView,#orderProcessingModal) .inline-shelf-weight label { display:flex; align-items:center; gap:7px; color:#667085; font-size:12px; }
body :is(#appView,#orderProcessingModal) .inline-shelf-weight input { width:108px; min-height:36px; padding:5px 8px; border:1px solid #d7e2f3; border-radius:5px; background:#fff; color:#202733; font-size:16px; }
body :is(#appView,#orderProcessingModal) .inline-shelf-editor [data-inline-error] { display:block; margin-top:5px; color:#b54708; font-size:12px; white-space:normal; }
body #appView .inbound-review-shelf:has(.inline-shelf-editor) { display:block; }
body :is(#appView,#orderProcessingModal) .inline-shelf-editor { max-width:560px; }
body :is(#appView,#orderProcessingModal) .inline-shelf-controls select,
body :is(#appView,#orderProcessingModal) .inline-shelf-weight input { border-color:#d7e2f3 !important; background-color:#fff; }

/* Narrow scan request cards: full-width editor, never inside the image text column. */
body :is(#appView,#orderProcessingModal) .inline-shelf-controls { display:grid; grid-template-columns:minmax(70px,1.5fr) minmax(42px,1fr) minmax(46px,1fr) 38px; gap:5px; }
body :is(#appView,#orderProcessingModal) .inline-shelf-controls select { min-width:0; width:100%; padding-left:6px; padding-right:16px; font-size:12px; }
body :is(#appView,#orderProcessingModal) .inline-shelf-controls .inline-shelf-view { grid-column:4; grid-row:1; padding:5px 3px; }
body :is(#appView,#orderProcessingModal) .inline-shelf-controls .inline-shelf-confirm { grid-column:1 / -1; grid-row:2; justify-self:end; min-width:76px; }
body #appView .workspace[data-view="scanDesk"] #scanInboundRequests .scan-inbound-card > .inbound-review-shelf { margin:12px 0; padding:12px 0; background:transparent; border-top:1px solid #edf0f4; border-bottom:1px solid #edf0f4; border-radius:0; }
body #appView .workspace[data-view="scanDesk"] #scanInboundRequests .inline-shelf-weight { margin:12px 0 9px; }
body #appView .workspace[data-view="scanDesk"] #scanInboundRequests .inline-shelf-weight label { display:grid; grid-template-columns:60px minmax(0,1fr) 18px; width:100%; gap:6px; }
body #appView .workspace[data-view="scanDesk"] #scanInboundRequests .inline-shelf-weight input { width:100%; min-width:0; }
body #appView .workspace[data-view="scanDesk"] #scanInboundRequests .scan-card-tools { display:grid; grid-template-columns:1fr 1fr; gap:6px; margin-top:10px; }
body #appView .workspace[data-view="scanDesk"] #scanInboundRequests .scan-card-tools button { width:100%; min-height:34px; margin:0; }
body :is(#appView,#orderProcessingModal) .inline-shelf-controls { grid-template-columns:minmax(70px,1fr) 44px 54px 30px; gap:4px; }
body :is(#appView,#orderProcessingModal) .inline-shelf-controls select { appearance:none; padding:4px 13px 4px 5px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath d='m2 3 2 2 2-2' fill='none' stroke='%23718298' stroke-width='1.2'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 3px center; }

#skuPickerModal .inventory-card-picker-stock { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px 6px; }
#skuPickerModal .inventory-card-picker-stock > :not(:first-child) { font-size:11px; letter-spacing:-.2px; }
#skuPickerModal .inventory-card-picker-stock > :first-child strong.stock-positive { color:#247650; }
#skuPickerModal .inventory-card-picker-stock > :first-child strong.stock-empty { color:#c3323c; }
#skuPickerModal .picker-print-buttons .picker-stock-print:not(:disabled) { background:#287568; color:#fff; border:0; box-shadow:none; border-radius:5px; font-weight:600; }
#skuPickerModal .picker-print-buttons .picker-stock-print:not(:disabled):hover { background:#205f55; }
#skuPickerModal .picker-print-buttons .picker-stock-print:not(:disabled):active { background:#194e46; }
#skuPickerModal .picker-stock-print:focus-visible { outline:2px solid #287568; outline-offset:3px; }

/* Give the product list the viewport; advanced controls open over it. */
#skuPickerModal .modal-head { padding:9px 20px; min-height:48px; }
#skuPickerModal .sku-picker-tabbar { flex-wrap:nowrap; gap:12px; padding:6px 0; min-height:44px; }
#skuPickerModal .sku-picker-tabbar .sku-picker-tabs { flex-shrink:0; min-height:34px; }
#skuPickerModal .sku-picker-tabs button { min-height:34px; padding:6px 9px; }
#skuPickerModal .sku-picker-tabbar .sku-picker-tools { flex:1; min-width:0; flex-wrap:nowrap; margin:0; gap:6px; }
#skuPickerModal .sku-picker-tools input { height:34px; min-height:34px; }
#skuPickerModal .sku-picker-controls,
#skuPickerModal .sku-picker-controls:has(#skuPickerShelfGroupRow:not([hidden])) { display:flex; align-items:center; gap:14px; padding:6px 20px; }
#skuPickerModal #skuPickerShelfGroupRow { flex:1; width:auto; min-width:0; gap:8px; }
#skuPickerModal #skuPickerShelfGroupRow .sku-picker-warehouse-options { flex-wrap:nowrap; gap:5px; padding:0 0 2px; overflow-x:auto; scrollbar-width:thin; }
#skuPickerModal #skuPickerShelfGroupRow button { flex-shrink:0; min-width:0; min-height:30px; padding:4px 10px; font-size:12px; white-space:nowrap; border:0; box-shadow:none; }
#skuPickerModal #skuPickerPrintFilter { flex-shrink:0; }
#skuPickerModal .sku-picker-coverage { margin:0; padding:3px 20px; border-radius:0; min-height:26px; font-size:11px; }
#skuPickerModal .sku-picker-list { padding-top:12px; }
#skuPickerModal .sku-picker-footer { padding:8px 20px; }
#skuPickerModal .sku-picker-pager { padding:4px 20px; }
#skuPickerModal #skuColorQuickRow:empty { display:none; }
@media(max-width:900px) {
 #skuPickerModal .sku-picker-tabbar { flex-wrap:wrap; gap:5px 8px; }
 #skuPickerModal .sku-picker-tabbar .sku-picker-tools { order:3; flex-basis:100%; }
 #skuPickerModal .sku-picker-controls { flex-wrap:wrap; gap:5px; }
 #skuPickerModal #skuPickerShelfGroupRow { flex-basis:100%; }
}

/* Shelf location reads as three balanced, deliberate controls. */
body :is(#appView,#orderProcessingModal) .inline-shelf-editor { container-type:inline-size; }
body :is(#appView,#orderProcessingModal) .inline-shelf-controls { grid-template-columns:minmax(90px,1.6fr) minmax(64px,1fr) minmax(70px,1fr) 42px; gap:6px; }
body :is(#appView,#orderProcessingModal) .inline-shelf-controls select { height:38px; min-height:38px; font-size:14px; font-weight:550; line-height:1.4; padding:7px 24px 7px 10px; border-radius:6px; color:#33465e; border-color:#dce4ef !important; background-color:#fff; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23718398' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-size:14px 14px; background-position:right 7px center; }
body :is(#appView,#orderProcessingModal) .inline-shelf-controls select:hover:not(:disabled) { border-color:#9bafc9 !important; background-color:#fafcff; }
body :is(#appView,#orderProcessingModal) .inline-shelf-controls select:focus-visible { outline:2px solid #a9c7f7; outline-offset:1px; }
body :is(#appView,#orderProcessingModal) .inline-shelf-controls select:disabled { color:#98a2b3; background-color:#f2f4f7; }
body :is(#appView,#orderProcessingModal) .inline-shelf-controls .inline-shelf-view { height:38px; font-size:13px; border:0; background:transparent; color:#526b8b; }
@container(max-width:300px) {
 body :is(#appView,#orderProcessingModal) .inline-shelf-controls { grid-template-columns:minmax(64px,1fr) 47px 55px 28px; gap:4px; }
 body :is(#appView,#orderProcessingModal) .inline-shelf-controls select { font-size:12px; padding:7px 14px 7px 5px; background-size:11px; background-position:right 2px center; }
 body :is(#appView,#orderProcessingModal) .inline-shelf-controls .inline-shelf-view { font-size:12px; padding:4px 0; }
}
#skuPickerModal .sku-picker-list { max-height:none; }

/* All operational filters remain directly visible. */
#skuPickerModal .modal-head { flex-wrap:wrap; gap:8px 18px; }
#skuPickerModal .modal-head > div:first-child { flex-shrink:0; }
#skuPickerModal .modal-head #skuPickerWarehouseRow { flex:1; min-width:180px; min-height:30px; padding:0; border:0; background:transparent; }
#skuPickerModal #skuPickerWarehouseRow .sku-picker-warehouse-options { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:thin; }
#skuPickerModal #skuPickerWarehouseRow button { flex-shrink:0; white-space:nowrap; }
#skuPickerModal .sku-picker-head-actions { margin-left:auto; }
#skuPickerModal .sku-picker-tabbar .sku-picker-tools { justify-content:flex-end; }
#skuPickerModal .sku-picker-tabbar .sku-picker-tools input { flex:0 1 340px; width:340px; min-width:150px; margin-right:auto; }
#skuPickerModal .sku-picker-direct-filters { display:flex; align-items:center; flex-wrap:wrap; gap:6px 18px; padding:4px 20px 6px; }
#skuPickerModal .sku-picker-direct-filters > * { display:flex; align-items:center; flex-wrap:nowrap; gap:4px; }
#skuPickerModal .sku-picker-direct-filters > #skuPickerStockFilter { max-width:100%; flex-wrap:wrap; }
#skuPickerModal .sku-picker-direct-filters > * > span { margin-right:3px; font-size:12px; color:#7b8799; white-space:nowrap; }
#skuPickerModal .sku-picker-direct-filters button { min-height:28px; padding:4px 8px; font-size:12px; white-space:nowrap; }
#skuPickerModal .sku-picker-direct-filters #skuPickerInventorySort { margin-left:auto; }
#skuPickerModal .sku-picker-controls { padding-top:3px; }
@media(max-width:900px) {
 #skuPickerModal .modal-head #skuPickerWarehouseRow { order:3; flex-basis:100%; }
 #skuPickerModal .sku-picker-direct-filters { gap:6px 10px; padding-inline:12px; }
 #skuPickerModal .sku-picker-direct-filters #skuPickerInventorySort { margin-left:0; }
 #skuPickerModal .sku-picker-tabbar .sku-picker-tools input { width:auto; flex:1; }
}
#skuPickerModal .sku-picker-direct-filters > [hidden] { display:none !important; }
#skuPickerModal .modal-head #skuPickerWarehouseRow { flex-wrap:nowrap; align-items:center; gap:8px; }
#skuPickerModal .modal-head #skuPickerWarehouseRow button { width:auto; height:auto; min-height:28px; padding:4px 8px; display:inline-flex; align-items:center; gap:6px; }

/* Warehouse controls use filled surfaces, never outline-only status/buttons. */
body #appView .workspace:is([data-view="scanDesk"],[data-view="orders"]) .order-card.order-card--enterprise .order-actions :is(button,button:hover),
body #orderProcessingModal .order-card.order-card--enterprise .order-actions :is(button,button:hover) { border:0 !important; }
body #appView .workspace:is([data-view="scanDesk"],[data-view="orders"]) .order-card.order-card--enterprise .order-actions button.oa-reset-state { box-shadow:0 2px 4px #7b4c1210; }

/* Compact order inventory cards: bounded shelf controls and content-driven rows. */
body :is(#appView .workspace[data-view="orders"],#orderProcessingModal .order-processing-body) .order-card.order-card--enterprise .order-inventory-card .order-inventory-card__item.order-inventory-card__item--compact { display:grid; grid-template-columns:44px minmax(0,1fr); align-items:start; gap:6px 10px; min-width:0; width:100%; }
body :is(#appView .workspace[data-view="orders"],#orderProcessingModal .order-processing-body) .order-card.order-card--enterprise .order-inventory-card .order-inventory-card__item.order-inventory-card__item--compact > .inventory-card-heading { grid-column:2; grid-row:1; align-self:start; }
body :is(#appView .workspace[data-view="orders"],#orderProcessingModal .order-processing-body) .order-card.order-card--enterprise .order-inventory-card .order-inventory-card__item.order-inventory-card__item--compact > .order-inventory-card__media { display:block; grid-column:1; grid-row:1; width:44px; }
body :is(#appView .workspace[data-view="orders"],#orderProcessingModal .order-processing-body) .order-card.order-card--enterprise .order-inventory-card .order-inventory-card__item.order-inventory-card__item--compact > .order-inventory-card__media > :is(button,.order-inventory-card__empty) { display:block; width:44px; height:60px; min-height:0; padding:0; margin:0; }
body :is(#appView .workspace[data-view="orders"],#orderProcessingModal .order-processing-body) .order-card.order-card--enterprise .order-inventory-card .order-inventory-card__item.order-inventory-card__item--compact .order-inventory-card__media img { width:44px; height:60px; object-fit:contain; }
body :is(#appView .workspace[data-view="orders"],#orderProcessingModal .order-processing-body) .order-card.order-card--enterprise .order-inventory-card .order-inventory-card__item.order-inventory-card__item--compact > .order-inventory-card__body { grid-column:1 / -1; grid-row:2; display:flex; flex-direction:row; flex-wrap:wrap; align-items:center; gap:4px 12px; }
body :is(#appView .workspace[data-view="orders"],#orderProcessingModal .order-processing-body) .order-card.order-card--enterprise .order-inventory-card .order-inventory-card__item.order-inventory-card__item--compact .order-inventory-card__identity { order:2; display:flex; flex-wrap:wrap; align-items:baseline; gap:3px 8px; line-height:18px; }
body :is(#appView .workspace[data-view="orders"],#orderProcessingModal .order-processing-body) .order-card.order-card--enterprise .order-inventory-card .order-inventory-card__item.order-inventory-card__item--compact .order-inventory-card__identity :is(b,span) { display:inline; margin:0; font-size:11px; }
body :is(#appView .workspace[data-view="orders"],#orderProcessingModal .order-processing-body) .order-card.order-card--enterprise .order-inventory-card .order-inventory-card__item.order-inventory-card__item--compact .inline-shelf-editor { width:100%; max-width:316px; margin:0; }
body :is(#appView .workspace[data-view="orders"],#orderProcessingModal .order-processing-body) .order-card.order-card--enterprise .order-inventory-card .order-inventory-card__item.order-inventory-card__item--compact .inline-shelf-controls { grid-template-columns:minmax(72px,128px) 58px 64px 36px; gap:5px; justify-content:start; }
body :is(#appView .workspace[data-view="orders"],#orderProcessingModal .order-processing-body) .order-card.order-card--enterprise .order-inventory-card .order-inventory-card__item.order-inventory-card__item--compact .inline-shelf-controls select { height:32px; min-height:32px; padding:4px 20px 4px 8px; font-size:13px; background-size:12px; background-position:right 5px center; border:0; border-color:transparent !important; background-color:#fff; box-shadow:0 1px 3px #1d293914; }
body :is(#appView .workspace[data-view="orders"],#orderProcessingModal .order-processing-body) .order-card.order-card--enterprise .order-inventory-card .order-inventory-card__item.order-inventory-card__item--compact .inline-shelf-controls .inline-shelf-view { height:32px; min-height:32px; padding:4px 2px; font-size:12px; }
body :is(#appView .workspace[data-view="orders"],#orderProcessingModal .order-processing-body) .order-card.order-card--enterprise .order-inventory-card .order-inventory-card__item.order-inventory-card__item--compact > .order-inventory-card__footer { grid-column:1 / -1; display:flex; flex-wrap:wrap; align-items:center; gap:2px 12px; margin:0; padding:0; border:0; }
body :is(#appView .workspace[data-view="orders"],#orderProcessingModal .order-processing-body) .order-card.order-card--enterprise .order-inventory-card .order-inventory-card__item.order-inventory-card__item--compact .order-inventory-card__footer > .inventory-card-metrics { flex:0 1 auto; flex-wrap:wrap; overflow:visible; gap:2px 6px; padding:0; }
body :is(#appView .workspace[data-view="orders"],#orderProcessingModal .order-processing-body) .order-card.order-card--enterprise .order-inventory-card .order-inventory-card__item.order-inventory-card__item--compact .order-inventory-card__query { margin:0; min-height:26px; padding:2px 0; white-space:nowrap; }
@container(max-width:285px) {
 body :is(#appView .workspace[data-view="orders"],#orderProcessingModal .order-processing-body) .order-card.order-card--enterprise .order-inventory-card .order-inventory-card__item.order-inventory-card__item--compact .inline-shelf-controls { grid-template-columns:minmax(64px,1fr) 48px 54px 30px; gap:4px; }
 body :is(#appView .workspace[data-view="orders"],#orderProcessingModal .order-processing-body) .order-card.order-card--enterprise .order-inventory-card .order-inventory-card__item.order-inventory-card__item--compact .inline-shelf-controls select { font-size:12px; padding-inline:5px 16px; background-position:right 3px center; }
}
@media(pointer:coarse) {
 body :is(#appView .workspace[data-view="orders"],#orderProcessingModal .order-processing-body) .order-card.order-card--enterprise .order-inventory-card .order-inventory-card__item.order-inventory-card__item--compact .inline-shelf-controls :is(select,.inline-shelf-view) { min-height:44px; height:44px; }
}
body.tablet-mode :is(#appView .workspace[data-view="orders"],#orderProcessingModal .order-processing-body) .order-card.order-card--enterprise .order-inventory-card .order-inventory-card__item.order-inventory-card__item--compact .inline-shelf-controls :is(select,.inline-shelf-view) { min-height:44px; height:44px; }

body :is(#appView .workspace[data-view="orders"],#orderProcessingModal .order-processing-body) .order-card.order-card--enterprise .order-inventory-card .order-inventory-card__item.order-inventory-card__item--compact > .order-inventory-card__body > div:has(.inline-shelf-editor) { width:316px; max-width:100%; min-width:0; }

body :is(#appView .workspace[data-view="orders"],#orderProcessingModal .order-processing-body) .order-card.order-card--enterprise .order-inventory-card .order-inventory-card__item.order-inventory-card__item--compact .inline-shelf-feedback:not(:has(> :not([hidden]))) { display:none; }

body :is(#appView .workspace[data-view="orders"],#orderProcessingModal .order-processing-body) .order-card.order-card--enterprise .order-inventory-card:has(> .order-inventory-card__item--compact) { container:order-inventory / inline-size; }
@container order-inventory (min-width:420px) {
 body :is(#appView .workspace[data-view="orders"],#orderProcessingModal .order-processing-body) .order-card.order-card--enterprise .order-inventory-card .order-inventory-card__item.order-inventory-card__item--compact > .order-inventory-card__body { grid-column:2; }
 body :is(#appView .workspace[data-view="orders"],#orderProcessingModal .order-processing-body) .order-card.order-card--enterprise .order-inventory-card .order-inventory-card__item.order-inventory-card__item--compact > .order-inventory-card__media { grid-row:1 / 3; }
}

/* Scan desk service picker: catalog cards and editable amount. */
.addon-fee-dialog .erp-dialog-card { width: min(920px, calc(100vw - 32px)); max-width: 920px; }
.addon-fee-dialog .erp-dialog-form { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); gap: 24px; align-items: start; }
.addon-fee-dialog [hidden] { display: none !important; }
.addon-fee-dialog h3 { margin: 0 0 14px; font-size: 14px; color: var(--text, #182230); }
.addon-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.addon-service-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: 88px; padding: 14px 12px; text-align: left; white-space: normal; border: 1px solid #dce2e9; border-radius: 6px; background: #fff; }
.addon-service-card strong { font-size: 13px; overflow-wrap: anywhere; }
.addon-service-card span { color: #667085; font-size: 12px; }
.addon-service-card.is-selected { border-color: #2563eb; box-shadow: inset 0 0 0 1px #2563eb; background: #eff5ff; color: #1d4ed8; }
.addon-service-card:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.addon-amount-panel { min-width: 0; padding: 18px; background: #f7f9fc; border-radius: 6px; }
.addon-amount-panel [data-field="amount"] { font-size: 26px; min-height: 54px; }
.addon-amount-stepper { display: flex; gap: 8px; margin: 12px 0 22px; }
.addon-amount-stepper button { flex: 1; min-height: 38px; }
@media (max-width: 680px) {
  .addon-fee-dialog .erp-dialog-form { grid-template-columns: 1fr; gap: 18px; }
  .addon-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

body .erp-dialog-mask.addon-fee-dialog { padding: 16px; }
body .erp-dialog-mask.addon-fee-dialog .erp-dialog-card { width: min(920px, calc(100vw - 32px)); max-width: 920px; max-height: calc(100dvh - 32px); }
body .erp-dialog-mask.addon-fee-dialog .addon-service-card { border: 1px solid #dce2e9; border-color: #dce2e9 !important; background: #fff; }
body .erp-dialog-mask.addon-fee-dialog .addon-service-card.is-selected { border-color: #2563eb !important; background: #eff5ff; }
body .erp-dialog-mask.addon-fee-dialog .erp-dialog-body { min-height: 0; overflow: auto; }

@media (max-width: 640px) {
  .order-batch-more > .order-tools-popover { left: 0; right: auto; }
}

/* Tab weight shares the seal-filter row; no separate fee/selection summary. */
#appView .workspace[data-view="orders"] .order-tab-summary-row {
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap;
  gap:4px 16px; padding:0 10px; border-top:1px solid #ebeff4; background:#fff;
}
#appView .workspace[data-view="orders"] .order-tab-summary-row:empty { display:none; }
#appView .workspace[data-view="orders"] .order-tab-summary-row .ogl-loaded-seal-tabs {
  flex:1 1 auto; min-width:0; padding:0; border:0; background:transparent;
}
#appView .workspace[data-view="orders"] .order-tab-weight {
  display:inline-flex; flex:0 0 auto; align-items:baseline; gap:8px; margin-left:auto;
  padding:6px 0; color:#536479; font-size:12px; white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
#appView .workspace[data-view="orders"] .order-tab-weight strong { color:#175cd3; font-size:15px; font-weight:650; }
#appView .workspace[data-view="orders"] .batch-work-area:empty { display:none; }
#appView .workspace[data-view="orders"] .ogl-batch-toolbar { gap:8px 12px; }
#appView .workspace[data-view="orders"] .ogl-batch-workspace {
  margin:0 0 14px; padding:10px 12px; border-color:#dfe5ed; border-radius:9px; background:#fff;
}
#appView .workspace[data-view="orders"] .ogl-batch-workspace .ogl-batch-empty {
  padding:8px 10px; border-radius:5px; background:#f8fafc;
}
#appView .workspace[data-view="orders"] .ogl-batch-group-search input { background:#fff; border-color:#dce3ed !important; }
#appView .workspace[data-view="orders"] .ogl-batch-workspace .ogl-workspace-heading { padding-bottom:6px; }
#appView .workspace[data-view="orders"] .ogl-batch-workspace .ogl-batch-groups { margin:0; padding:10px 0 0; background:transparent; }
#appView .workspace[data-view="orders"] .ogl-batch-workspace-tabs { padding-bottom:0; gap:4px; }
#appView .workspace[data-view="orders"] .ogl-batch-workspace-tabs button { min-height:34px; padding:6px 12px; border-radius:4px 4px 0 0; }
#appView .workspace[data-view="orders"] .ogl-batch-groups-head { margin:0 0 8px; gap:8px 16px; }
#appView .workspace[data-view="orders"] .ogl-batch-group-list { grid-template-columns:minmax(0,1fr); min-width:0; }
#appView .workspace[data-view="orders"] .ogl-batch-group-card {
  grid-template-columns:minmax(260px,1fr) auto; gap:10px 20px;
  min-width:0; padding:12px; border-radius:6px; content-visibility:auto; contain-intrinsic-block-size:auto 180px;
}
#appView .workspace[data-view="orders"] .ogl-batch-group-main { grid-column:1; grid-row:1 / 3; min-width:0; }
#appView .workspace[data-view="orders"] .ogl-batch-group-main > small { overflow-wrap:anywhere; }
#appView .workspace[data-view="orders"] .ogl-batch-progress { grid-column:2; grid-row:1; min-width:260px; }
#appView .workspace[data-view="orders"] .ogl-batch-group-actions { grid-column:2; grid-row:2; flex-wrap:wrap; gap:6px; }
@media(max-width:1100px) {
  #appView .workspace[data-view="orders"] .ogl-batch-group-card { grid-template-columns:minmax(0,1fr); gap:10px; }
  #appView .workspace[data-view="orders"] .ogl-batch-group-main,
  #appView .workspace[data-view="orders"] .ogl-batch-progress,
  #appView .workspace[data-view="orders"] .ogl-batch-group-actions { grid-column:1; grid-row:auto; min-width:0; }
  #appView .workspace[data-view="orders"] .ogl-batch-group-actions { justify-content:flex-start; }
}
@container order-workspace (max-width:640px) {
  #appView .workspace[data-view="orders"] .order-tab-summary-row { gap:0 8px; padding:0 10px; }
  #appView .workspace[data-view="orders"] .order-tab-summary-row .ogl-loaded-seal-tabs { flex:1 0 auto; gap:6px; }
  #appView .workspace[data-view="orders"] .order-tab-summary-row .ogl-loaded-seal-tabs button { gap:4px; font-size:12px; white-space:nowrap; }
  #appView .workspace[data-view="orders"] .order-tab-summary-row .ogl-loaded-seal-tabs button b { min-width:18px; padding-inline:3px; }
  #appView .workspace[data-view="orders"] .order-tab-weight { gap:5px; font-size:11px; }
  #appView .workspace[data-view="orders"] .order-tab-weight strong { font-size:14px; }
  #appView .workspace[data-view="orders"] .ogl-shipping-type-tabs { gap:2px 6px; padding:3px 10px 0; overflow:visible; }
  #appView .workspace[data-view="orders"] .ogl-shipping-type-tabs button { padding-inline:2px; font-size:12px; }
}
@media(max-width:640px) {
  #appView .workspace[data-view="orders"] .ogl-batch-groups-head { align-items:stretch; }
  #appView .workspace[data-view="orders"] .ogl-batch-group-search { display:flex; min-width:0; }
  #appView .workspace[data-view="orders"] .ogl-batch-group-search input { flex:1; min-width:0; width:auto; }
}
#appView .workspace[data-view="orders"] .order-batch-enterprise #oglBatchToolbar:not(:empty) {
  margin:0; padding:6px 0 2px; border-top:1px solid #e5eaf2; background:transparent;
}
#appView .workspace[data-view="orders"] #oglBatchToolbar .ogl-batch-create-tools {
  display:flex; flex:0 1 auto; flex-direction:row; flex-wrap:wrap; width:auto; gap:8px;
}
#appView .workspace[data-view="orders"] #oglBatchToolbar .ogl-batch-create-tools > button { width:auto; }
.ogl-dispatch header .ogl-application-time { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Fulfillment priorities: full-width requirements, readable product/stock columns,
   and one compact proof row instead of a fifth competing information column. */
body :is(#appView,#orderProcessingModal) .order-card > .important-shipment-slot:empty { display:none; }
body :is(#appView,#orderProcessingModal) .order-card > .important-shipment-slot .important-shipment-notice {
  display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:start; gap:8px 16px;
  margin:0; padding:12px 16px; border-radius:0; border-left:3px solid #d92d20;
  border-bottom:1px solid #f5d9cf; background:#fff5ef;
}
body :is(#appView,#orderProcessingModal) .order-card > .important-shipment-slot .important-shipment-notice strong { margin:0; line-height:22px; }
body :is(#appView,#orderProcessingModal) .order-card > .important-shipment-slot .important-shipment-notice > div { font-size:13px; line-height:22px; max-height:220px; }
body :is(#appView,#orderProcessingModal) .order-card > .important-shipment-slot .important-shipment-notice button { margin:0; min-height:32px; white-space:nowrap; background:#fff; }
@media(max-width:760px) {
  body :is(#appView,#orderProcessingModal) .order-card > .important-shipment-slot .important-shipment-notice { grid-template-columns:minmax(0,1fr) auto; gap:6px 10px; padding:10px 12px; }
  body :is(#appView,#orderProcessingModal) .order-card > .important-shipment-slot .important-shipment-notice > div { grid-column:1/-1; grid-row:2; }
}

/* Order cards reflow at the available card width, including with chat docked. */
body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList { gap:12px; }

body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList > .order-card {
  --order-head-surface:#fafbfd;
  --order-card-divider:#e9edf3;
  --order-card-muted:#526178;
}

/* Keep the interactive row painted when focus moves between its controls. */
body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList > .order-card:is(:hover,:focus-within) { content-visibility:visible; }

body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList > .order-card.is-selected { --order-head-surface:#edf4ff; }

body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList > .order-card > .order-head {
  gap:4px 10px;
  min-height:42px;
  padding:7px 12px;
  box-shadow:none;
}

body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList .order-head-main { flex:1 1 20ch; line-height:1.45; }
#appView .workspace[data-view="orders"] #orderList .order-customer-balance.danger-text { color:#b42318; }
#appView .workspace[data-view="orders"] #orderList .order-head :is(.order-forecast-time,.order-shop-number em,.order-seq i) { color:#56657a; }
#appView .workspace[data-view="orders"] #orderList .order-head .text-warn { --accent:#985111; }

body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList .order-head-main > :is(strong,span),
body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList .order-head-meta > * {
  min-width:0;
  max-width:100%;
  white-space:normal;
  overflow-wrap:anywhere;
}

body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList .order-head-status {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:4px 8px;
}

body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList .order-head-details {
  color:var(--order-card-muted);
  font-size:12px;
  min-width:0;
}

body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList .order-head-details > summary {
  width:max-content;
  max-width:100%;
  min-height:30px;
  padding:5px 7px;
  border-radius:5px;
  line-height:20px;
  cursor:pointer;
}

body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList .order-head-details > summary:hover,
body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList .order-head-details[open] > summary { color:#174ea6; background:#edf3fc; }

body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList .order-head-details[open] { flex:1 0 100%; }

body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList .order-head-meta {
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:4px 14px;
  padding:7px 0 2px;
}

body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList .order-card-grid > div {
  width:auto; min-width:0; margin:0; padding:12px;
  border:0; box-shadow:none;
}

body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList .order-card-grid > .sign-cell {
  grid-area:tracking;
  gap:4px;
  border-right:1px solid var(--order-card-divider);
}

body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList .sign-cell .tracking-label {
  display:block;
  color:var(--order-card-muted);
  font-size:11px;
  font-weight:550;
  line-height:1.3;
}

body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList .sign-cell .ozon-order-label { margin-top:5px; }

body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList .sign-cell :is(.domestic-tracking-number,.ozon-order-number,.subline,.shipment-meta) {
  min-width:0; overflow-wrap:anywhere; word-break:normal;
}
body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList .sign-cell :is(.domestic-tracking-number,.ozon-order-number) { font-size:13px; line-height:1.45; }

body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList .sign-cell .shipment-receipt-warning {
  width:fit-content; max-width:100%;
  white-space:normal; overflow-wrap:anywhere;
}

body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList .order-card-grid > .order-products-cell {
  grid-area:goods;
  padding:12px !important; /* Legacy single-item rules remove the padding. */
  overflow:visible;
}

body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList .order-product-line {
  grid-template-columns:var(--order-product-thumb) minmax(0,1fr);
  align-items:start;
  gap:10px;
  min-height:0;
}

body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList .order-product-line-img {
  display:grid;
  width:var(--order-product-thumb);
  min-height:0;
  align-self:start;
  background:transparent;
}

body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList .order-product-line-img :is(.order-product-img,.order-product-image-repair,.order-product-image-unverified) {
  width:100%; height:auto; min-height:0; aspect-ratio:3 / 4; object-fit:contain;
  border:1px solid var(--order-card-divider); border-radius:6px;
}

body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList .order-product-main { overflow-wrap:anywhere; }

body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList .product-title-clamp {
  display:block; overflow:visible;
  line-height:1.45; white-space:normal;
}

body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList .order-quantity-summary { padding-top:4px; gap:2px 12px; }

body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList .order-card-grid > .order-context-cell {
  grid-area:inventory; gap:6px; padding-inline:6px 12px;
  overflow-wrap:anywhere;
}

body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList .order-inventory-card.is-unmapped .order-stock-tools { margin-top:2px; }

body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList .order-card-grid > .order-actions {
  grid-area:actions;
  gap:5px;
  border-left:1px solid var(--order-card-divider);
}

body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList .order-card-grid > .order-proof-cell {
  grid-area:proof;
  display:flex; flex-flow:row wrap; align-items:baseline;
  gap:3px 14px; padding:5px 12px;
  border-top:1px solid var(--order-card-divider);
  background:#f8fafc !important; /* Shared card surfaces otherwise paint each cell white. */
}

body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList .order-proof-item {
  display:flex; flex-wrap:wrap; align-items:baseline;
  gap:0 6px; min-width:0; max-width:100%;
}

body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList .order-proof-main {
  min-width:0;
  min-height:20px;
  gap:5px;
}

body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList .order-proof-time { margin:0; font-size:11px; }

body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList .order-proof-stage-list {
  flex:1 1 100%;
  flex-flow:row wrap;
  gap:4px;
  margin-top:3px;
}

body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList .order-proof-stage { gap:5px; min-width:0; }

@container order-inventory (min-width:280px) {
  body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList .order-inventory-card__item--compact > .order-inventory-card__body { grid-column:2; }

  body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList .order-inventory-card__item--compact > .order-inventory-card__media { grid-row:1 / 3; }
}

@container enterprise-order (max-width:500px) {
  body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList > .order-card > .order-head {
    display:grid;
    grid-template-columns:auto auto minmax(0,1fr) auto;
    align-items:center;
    gap:4px 7px;
    padding:7px 10px;
  }

  body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList .order-head-main,
  body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList .order-head > .order-source-name,
  body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList .order-head-details[open] { grid-column:1 / -1; }

  body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList .order-head-main { grid-row:2; }

  body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList .order-head-status {
    grid-column:3;
    grid-row:1;
    justify-content:flex-end;
  }

  body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList .order-head-details:not([open]) { grid-column:4; grid-row:1; }

  body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList .sign-cell:has(> .domestic-tracking-line) {
    display:grid;
    grid-template-columns:max-content minmax(0,1fr);
    align-items:baseline;
    gap:3px 8px;
  }

  body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList .sign-cell:has(> .domestic-tracking-line) > :not(.tracking-label,.domestic-tracking-line,.ozon-order-copy-row) { grid-column:1 / -1; }

  body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList .sign-cell .ozon-order-label { margin-top:0; }
}

@media (pointer:coarse) {
  body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList :is(.order-actions button,.order-actions summary,.order-head-details > summary) { min-height:44px; }
}

/* A card moved to processing needs room for its header at small dialog widths. */
@container parcel-processing (max-width:480px) {
  body:not(.tablet-mode) #orderProcessingModal .order-card[data-order-list-index] > .order-head {
    gap:5px 8px;
  }
  body:not(.tablet-mode) #orderProcessingModal .order-card[data-order-list-index] .order-head-main {
    flex:1 0 100%;
    order:1;
  }
  body:not(.tablet-mode) #orderProcessingModal .order-card[data-order-list-index] .order-head-main > :is(span,strong) {
    min-width:0; max-width:100%;
    white-space:normal; overflow-wrap:anywhere;
  }
  body:not(.tablet-mode) #orderProcessingModal .order-card[data-order-list-index] .order-head-details {
    flex:1 0 100%;
    order:2;
  }
  body:not(.tablet-mode) #orderProcessingModal .order-card[data-order-list-index] .order-head-meta {
    display:flex; flex-wrap:wrap; gap:4px 10px; overflow-wrap:anywhere;
  }
}

/* Desk cards separate identity, goods, inventory and stage-specific actions. */
#appView .workspace[data-view="orders"] #orderList > .order-card[data-order-list-index] {
  border-color:#dce4ef;
  border-radius:11px;
  box-shadow:0 2px 5px rgb(31 53 85 / 4%);
}
#appView .workspace[data-view="orders"] #orderList > .order-card[data-order-list-index].is-selected { border-color:#8eb3f6; }
#appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] > .order-head {
  padding:7px 13px;
  gap:4px 10px;
  border-color:#e5ebf3;
  background:var(--order-head-surface,#f8fafd);
}
#appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .order-head-status .badge {
  padding:3px 8px;
  border:1px solid currentColor;
  border-color:color-mix(in srgb, currentColor 24%, transparent);
  border-radius:99px;
  line-height:17px;
  white-space:nowrap;
}
#appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .order-head-main > strong { font-size:14px; }
#appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .order-head-meta { gap:5px 12px; }

#appView .workspace[data-view="orders"] #orderList > .order-card[data-order-list-index] > .order-card-grid {
  --order-card-columns:clamp(170px,16%,218px) minmax(0,1fr) clamp(220px,22%,300px) 252px;
  --order-card-areas:"tracking goods inventory actions" "proof proof proof proof";
  --order-card-rows:auto auto;
  --order-product-thumb:90px;
  display:grid;
  grid-template:var(--order-card-rows) / var(--order-card-columns);
  grid-template-areas:var(--order-card-areas);
  align-items:stretch;
  gap:0;
  padding:0;
  min-width:0;
}
#appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .order-card-grid > .sign-cell {
  grid-area:tracking;
  display:flex;
  flex-direction:column;
  gap:5px;
  padding:13px;
  border-right:1px solid #e9eef5;
}
#appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .sign-cell .tracking-label {
  display:block;
  color:#536681;
  font-size:11px;
  font-weight:650;
  line-height:1.4;
}
#appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .sign-cell .ozon-order-copy-row {
  align-items:center;
  justify-content:flex-start;
  gap:7px;
  padding-top:5px;
  border-top:1px solid #e9eef5;
}
#appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .sign-cell .ozon-order-number {
  flex:0 1 auto;
  width:auto;
  padding:0;
  border:0;
  color:#354762;
  font-size:12px;
}
#appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .sign-cell .order-shipping-summary {
  align-self:flex-start;
  max-width:100%;
  padding:2px 7px;
  border-radius:4px;
  background:#eef3f9;
  color:#425a78;
  overflow-wrap:anywhere;
}
#appView .workspace[data-view="orders"] #orderList .order-shipping-summary:empty { display:none; }
#appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .sign-cell .shipment-meta {
  display:flex;
  flex-wrap:wrap;
  gap:3px 7px;
  color:#526178;
  font-size:11px;
}
#appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .sign-cell .shipment-recipient { margin:0; }
#appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .sign-cell .domestic-tracking-number { word-break:normal; overflow-wrap:anywhere; }
#appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .sign-cell .order-card-express-track { min-width:0; padding-inline:7px; }
#appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .sign-cell .shipment-receive-action {
  width:max-content;
  min-height:29px;
  margin:2px 0 0;
  padding:3px 9px;
  border:1px solid #cad9ec;
  border-radius:6px;
  background:#fff;
  color:#304e76;
  box-shadow:none;
}

#appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .order-card-grid > .order-products-cell {
  grid-area:goods;
  padding:13px !important;
}
#appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .order-product-line {
  grid-template-columns:var(--order-product-thumb) minmax(0,1fr);
  gap:11px;
  min-height:0;
}
#appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .order-product-line-img { width:var(--order-product-thumb); min-height:0; }
#appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .order-product-line-img :is(.order-product-img,.order-product-image-repair,.order-product-image-unverified) {
  width:100%; height:auto; min-height:0; aspect-ratio:3/4;
  border-radius:7px;
}
#appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .product-title-clamp {
  color:#192b44;
  font-size:15px;
  font-weight:650;
  line-height:1.42;
}
#appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .order-quantity-summary {
  gap:4px 12px;
  margin:6px 0 0;
  padding-top:5px;
  border-top:1px solid #edf1f6;
}
#appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .qty-value--pieces { font-size:21px; }

#appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .order-card-grid > .order-context-cell {
  grid-area:inventory;
  gap:7px;
  padding:13px 10px 13px 5px;
  border:0;
}
#appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .order-inventory-card-column[data-order-inventory-layout="list"] {
  max-width:none;
  border:0;
  padding:0;
}
#appView .workspace[data-view="orders"] #orderList .order-inventory-card-column[data-order-inventory-layout="list"]:empty { display:none; }
#appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .order-inventory-card.order-inventory-card--list {
  padding:8px 10px;
  background:#f4f7fc;
  box-shadow:none;
}
#appView .workspace[data-view="orders"] #orderList .order-inventory-card--list .order-inventory-card__entry { container:order-inventory / inline-size; }
@container order-inventory (max-width:213px) {
  #appView .workspace[data-view="orders"] #orderList .order-inventory-card--list .order-inventory-card__item--compact .inline-shelf-controls {
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  }
}
#appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .order-ozon-context {
  padding:3px 1px 0;
  gap:4px;
}

#appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .order-card-grid > .order-actions {
  --order-action-height:34px;
  --order-action-gap:5px;
  grid-area:actions;
  gap:var(--order-action-gap);
  padding:11px;
  min-width:0;
  border-left:1px solid #e7edf5;
  box-shadow:none;
}

#appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .order-actions
:is(.oa-primary-row,.oa-notify-row,.oa-signed-quick,.oa-secondary-row,.oa-auxiliary-row,.oa-disclosures) {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:var(--order-action-gap);
  margin:0;
  min-width:0;
}
#appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .order-actions
:is(.oa-primary-row,.oa-notify-row,.oa-signed-quick,.oa-secondary-row,.oa-auxiliary-row) > button,
#appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .order-actions > button {
  grid-column:auto;
  width:100%;
  min-width:0;
  min-height:var(--order-action-height);
  height:auto;
  padding:4px 6px;
  border-radius:6px;
  box-shadow:none;
  font-size:12px;
  line-height:1.35;
  text-align:center;
  white-space:nowrap;
  overflow-wrap:normal;
}
#appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .order-actions
:is(.oa-primary-row,.oa-auxiliary-row,.oa-disclosures) > :is(:only-child,.oa-confirm-stock,.open-order-processing-link,details[open]) {
  grid-column:1/-1;
}
#appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .order-actions .oa-primary-row > button.oa-print-complete {
  gap:4px;
  border-color:#cfe7da;
  background:#eaf6ef !important; /* Override the shared high-emphasis reprint button on list cards. */
  color:#176b46 !important;
  font-size:12px !important;
  font-weight:650;
}
#appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .order-actions .oa-primary-row > button.oa-print-complete:hover {
  border-color:#a7d2ba;
  background:#dcefe4 !important;
}
#appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .oa-print-check { font-size:14px; }
#appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .order-actions .oa-signed-quick {
  padding-top:var(--order-action-gap);
}
#appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .oa-disclosures > details { padding:0; }
#appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .oa-disclosures > details > summary {
  justify-content:space-between;
  min-height:var(--order-action-height);
  margin:0;
  padding:4px 7px;
  border:1px solid #e0e6ef;
  border-radius:6px;
  background:#fff;
  color:#46556b;
  font-size:12px;
  white-space:nowrap;
}
#appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .oa-disclosures > details[open] > summary {
  margin-bottom:var(--order-action-gap);
  background:#eef3fa;
}
#appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .order-card-grid > .order-proof-cell {
  grid-area:proof;
  display:flex;
  flex-flow:row wrap;
  align-items:baseline;
  gap:2px 15px;
  padding:5px 13px;
  border:0;
  border-top:1px solid #e7edf5;
  background:#f8fafd !important;
}

@container enterprise-order (max-width:990px) {
  #appView .workspace[data-view="orders"] #orderList > .order-card[data-order-list-index] > .order-card-grid {
    --order-card-columns:clamp(165px,23%,190px) minmax(0,1fr) minmax(200px,28%);
    --order-card-areas:"tracking goods inventory" "tracking actions actions" "proof proof proof";
    --order-card-rows:auto auto auto;
    --order-product-thumb:74px;
  }
  #appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .order-card-grid > .order-actions {
    border-left:0;
    border-top:1px solid #e7edf5;
    padding-block:8px;
  }
}

@container enterprise-order (min-width:681px) and (max-width:990px) {
  #appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .order-actions:has(> .oa-primary-row):not(:has(.tablet-order-common)) {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-content:start;
    align-items:start;
    gap:5px 10px;
  }
  #appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .order-actions > :is(.order-action-heading,.oa-secondary-row) {
    grid-column:1/-1;
  }
  #appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .order-actions:has(> .oa-disclosures) > .oa-primary-row {
    grid-column:1;
    grid-row:span 3;
  }
  #appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .order-actions:has(> .oa-primary-row) >
  :is(.oa-notify-row,.oa-signed-quick,.oa-disclosures) {
    grid-column:2;
  }
}
@container enterprise-order (max-width:680px) {
  #appView .workspace[data-view="orders"] #orderList > .order-card[data-order-list-index] > .order-card-grid {
    --order-card-columns:minmax(143px,.8fr) minmax(0,1.2fr);
    --order-card-areas:"tracking goods" "inventory actions" "proof proof";
  }
  #appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .order-card-grid > .order-context-cell {
    padding:10px;
    border-top:1px solid #e7edf5;
  }
}
@container enterprise-order (max-width:475px) {
  #appView .workspace[data-view="orders"] #orderList > .order-card[data-order-list-index] > .order-card-grid {
    --order-card-columns:minmax(136px,.72fr) minmax(0,1.28fr);
    --order-card-areas:"tracking goods" "inventory inventory" "actions actions" "proof proof";
    --order-card-rows:auto auto auto auto;
    --order-product-thumb:55px;
  }
  #appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .order-card-grid > .sign-cell {
    padding:10px;
  }
  #appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .order-card-grid > .order-products-cell { padding:10px !important; }
  #appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .order-product-line { gap:7px; }
  #appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .product-title-clamp { font-size:13px; }
  #appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .order-quantity-summary { gap:3px 8px; }
}
@container enterprise-order (max-width:335px) {
  #appView .workspace[data-view="orders"] #orderList > .order-card[data-order-list-index] > .order-card-grid {
    --order-card-columns:minmax(0,1fr);
    --order-card-areas:"tracking" "goods" "inventory" "actions" "proof";
  }
  #appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .order-card-grid > .sign-cell {
    border-right:0;
    border-bottom:1px solid #e7edf5;
  }
}
@media (max-width:600px) {
  body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .order-head-main { gap:3px 7px; }
  body:not(.tablet-mode) #appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .order-head { padding:7px 10px; }
}
@media (pointer:coarse) {
  :is(#appView,#orderProcessingModal) .order-card[data-order-list-index] .order-inventory-card--list .create-inventory-card-link { min-height:44px; }
  #appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .sign-cell :is(.shipment-receive-action,.order-card-express-track,.order-copy-icon) { min-height:44px; }
  #appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .order-card-grid > .order-actions { --order-action-height:44px; }
}
body.tablet-mode #appView .workspace[data-view="orders"] #orderList .order-card[data-order-list-index] .order-card-grid > .order-actions { --order-action-height:44px; }
body.tablet-mode #appView .order-card[data-order-list-index] .order-inventory-card--list .create-inventory-card-link { min-height:44px; }
