/* Shared operational UI: one type scale, action hierarchy and surface vocabulary.
   Loaded last on admin/client. Layout and business-state ownership stay in feature files. */
:root {
  --font-cn: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-cn-medium: var(--font-cn);
  --font-cn-bold: var(--font-cn);
  --text: #202733;
  --muted: #626d7d;
  --weak: #8993a2;
  --bg: #eef1f5;
  --ui-canvas: var(--bg);
  --surface: #fff;
  --surface-soft: #f6f7f9;
  --surface-hover: #eef1f5;
  --primary: #145ef0;
  --primary-dark: #104dca;
  --primary-soft: #edf3ff;
  --primary-weak: #edf3ff;
  --primary-ring: rgb(20 94 240 / 18%);
  --success-text: #247650;
  --success: #2e9463;
  --warning-text: #94601c;
  --danger-text: #bf343a;
  --danger: #ce343b;
  --line: #eef0f3;
  --line-strong: #d9dee6;
  --radius-sm: 6px;
  --radius: 8px;
  --shadow-sm: 0 2px 4px rgb(26 39 61 / 5%), 0 6px 16px rgb(26 39 61 / 6%);
  --shadow: 0 2px 5px rgb(26 39 61 / 7%), 0 8px 24px rgb(26 39 61 / 8%);
  --ui-text: var(--text);
  --ui-muted: var(--muted);
  --ui-primary: var(--primary);
  --ui-surface: var(--surface);
}
body { font-family: var(--font-cn); font-size:13px; line-height:1.55; color:var(--text); }
/* The canvas must remain visible between white surfaces, including older workspace rules. */
body #appView .workspace[data-view],
body #appView .workspace[data-view] > #content,
body #clientApp :is(.client-workspace,.client-main) { background:var(--bg); box-shadow:none; }
body #appView .workspace[data-view="orders"] > #content { padding-top:14px; }
body :is(button,input,select,textarea,summary) { font-family:var(--font-cn); }
body :is(strong,b) { font-family:var(--font-cn); font-weight:600; }
body :is(h1,h2,h3,h4) { font-family:var(--font-cn); color:var(--text); font-weight:600; letter-spacing:0; }
body :is(.topbar h1,.client-topbar h1) { font-size:20px; line-height:1.4; }
body :is(.panel-head h2,.panel-head h3,.section-heading) { font-size:14px; line-height:1.5; }
body :is(.subline,.muted,.order-action-heading,.order-proof-heading) { color:var(--muted); }
body :is(button,.file-button span) {
  border-color:transparent !important;
  border-radius:6px;
  font-weight:500;
  box-shadow:none;
  text-shadow:none;
  transition:background-color .15s ease,color .15s ease,box-shadow .15s ease;
}
/* Only ordinary controls get the neutral fill; icon/link/navigation controls keep their shape. */
body :is(.toolbar,.userbar,.panel-head,.modal-actions,.erp-dialog-actions,.client-modal-actions,.wecom-head-actions,.wecom-row-actions,.settings-actions,.sku-picker-tools,.sku-picker-pager) > button,
body button.ghost,
body button.secondary { background:#f0f2f5; color:#3e4a5c; }
body button:not(:disabled):hover { transform:none; }
body :is(button.primary,button.order-action-primary,.oa-primary,.order-primary-action) {
  background:var(--primary) !important; color:#fff !important;
  box-shadow:0 2px 5px rgb(20 94 240 / 14%);
}
body :is(button.primary,button.order-action-primary,.oa-primary,.order-primary-action):not(:disabled):hover { background:var(--primary-dark) !important; }
body :is(button.danger,button.order-action-danger) { background:#fff0f1 !important; color:var(--danger-text) !important; }
body :is(button.danger,button.order-action-danger):not(:disabled):hover { background:#ffe5e7 !important; }
body button:disabled { cursor:not-allowed; box-shadow:none; }
body :is(button,a,summary,input,select,textarea):focus-visible { outline:2px solid var(--primary); outline-offset:3px; }
body :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]) {
  border-color:transparent; background:#f2f4f7; border-radius:6px; color:var(--text); font-size:13px;
}
body :is(input,select,textarea):not([type=checkbox]):not([type=radio]):focus { border-color:transparent; background:#fff; box-shadow:0 0 0 2px var(--primary-ring); }
body :is(input[type=checkbox],input[type=radio]) { accent-color:var(--primary); }
body :is(.sidebar,.client-sidebar) { border:0; box-shadow:3px 0 16px rgb(26 39 61 / 4%); }
body :is(.side-brand,.sidebar-userbar,.client-brand,.client-sidebar-footer) { border:0; background:#fff; }
body :is(.menu,.client-menu) button { font-size:13px; min-height:38px; font-weight:500; }
body :is(.menu,.client-menu) button.active { background:var(--primary-soft); color:var(--primary); }
body :is(.menu-group-title,.client-menu-group-title) { font-size:11px; letter-spacing:.04em; color:var(--muted); }
body :is(.panel,.client-panel,.scan-order-card,.rf-stock-card,.statement-panel,.settings-section) {
  border-color:transparent !important; box-shadow:var(--shadow-sm); border-radius:8px;
}
body #appView .panel:hover { border-color:transparent; box-shadow:var(--shadow-sm); }
body :is(.panel-head,.panel-foot,.filter-panel,.order-filter-content,.order-list-tabs,.order-pagination,.client-pagination) { border-color:transparent; }
body :is(.panel-head,.panel-foot,.order-pagination,.client-pagination) { box-shadow:0 2px 8px rgb(26 39 61 / 4%); }
body :is(.panel-head,.client-panel-head) { background:#fff; padding-block:14px; }
body :is(th,td) { font-size:13px; line-height:1.55; }
body th { color:var(--muted); font-weight:500; background:#f7f8fa; border:0; }
body td { border-bottom-color:#f1f3f6; }
/* Status is information, not a small outlined button. */
body :is(.badge,.need-action,.check-order-flag,.stock-tab-badge) {
  display:inline-flex; align-items:center; gap:6px; border:0 !important;
  border-radius:0; padding:2px 0; background:transparent !important; font-size:12px; font-weight:500; box-shadow:none; white-space:nowrap;
}
body .badge::before { content:""; width:5px; height:5px; flex:0 0 5px; border-radius:50%; background:currentColor; }
body .badge.blue { color:var(--primary); }
body .badge.green { color:var(--success-text); }
body .badge.amber { color:var(--warning-text); }
body .badge.red { color:var(--danger-text); }
body .badge.gray { color:var(--muted); }
body :is(.finance-truth-notice,.sku-picker-coverage,.weight-guard-alert,.batch-print-scope,.inventory-picker-hint) {
  border:0 !important; border-radius:6px; background:#f5f6f8; color:var(--muted); box-shadow:none; font-size:12px; line-height:1.55;
}
body :is(.sku-picker-coverage.has-warning,.batch-print-scope.is-warning) { background:transparent; color:var(--warning-text); }
body .batch-print-scope { padding:4px 0; white-space:normal; }
body .sku-picker.sku-picker--enterprise .sku-picker-coverage { background:#f7f8fa; padding:8px 12px; }
body .sku-picker-coverage button { border:0; background:transparent; color:var(--primary); font-weight:500; }
body :is(.modal-card,.erp-dialog-card,.client-modal-card) { border:0; border-radius:10px; box-shadow:0 18px 64px rgb(20 33 53 / 20%); }
body :is(.modal-head,.erp-dialog-head,.client-modal-head) { border:0; box-shadow:0 3px 12px rgb(26 39 61 / 5%); padding:18px 22px; }
body :is(.modal-head,.erp-dialog-head,.client-modal-head) :is(h2,h3) { font-size:17px; font-weight:600; }
body :is(.modal-actions,.erp-dialog-actions,.client-modal-actions,.sku-picker-footer) { border:0; box-shadow:0 -3px 12px rgb(26 39 61 / 5%); padding:14px 22px; gap:8px; }
body :is(.modal-close,.erp-dialog-close,.client-modal-close) { background:#f1f3f6; color:var(--muted); }
body :is(.toast,.center-toast,.erp-toast) { border:0; border-radius:8px; box-shadow:0 8px 30px rgb(26 39 61 / 16%); font-size:13px; }
/* Order hierarchy: a quiet header, stable identity column, content, then actions. */
body #appView .workspace[data-view="orders"] .order-card.order-card--enterprise,
body .order-processing-body .order-card.order-card--enterprise {
  --order-ink:var(--text); --order-muted:var(--muted); --order-head-surface:#f7f8fa;
  border:0; border-radius:9px; box-shadow:var(--shadow); background:#fff;
}
body #appView .workspace[data-view="orders"] .order-card.order-card--enterprise:hover { border:0; box-shadow:var(--shadow); background:#fafbfe; }
body #appView .workspace[data-view="orders"] .order-card.order-card--enterprise.is-selected { box-shadow:0 0 0 2px var(--primary-ring),var(--shadow); }
body #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-head,
body .order-processing-body .order-card.order-card--enterprise .order-head { border:0; padding:10px 16px; gap:8px 14px; }
body #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-head-main > :is(.text-ok,.text-warn,.text-danger,.order-wh,.order-head-service,.order-carrier-badge,.order-customer-balance) {
  border:0; background:transparent; border-radius:0; padding:0; font-size:12px; line-height:22px; font-weight:500;
}
body #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-head-main > .order-customer-balance { color:var(--text); font-weight:600; }
body #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-head-status .badge { padding:0; font-size:12px; font-weight:500; }
body #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-card-grid { grid-template-columns:204px minmax(290px,1.4fr) minmax(240px,1fr) 112px 224px; }
body #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-card-grid > div { padding:16px; border:0; }
body :is(#appView,.order-processing-body) .order-card.order-card--enterprise .sign-cell { gap:10px; }
body :is(#appView,.order-processing-body) .order-card.order-card--enterprise .sign-cell :is(.tracking-label,.subline) { font-size:12px; }
body #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .sign-cell .tracking-label { color:var(--text); font-weight:600; }
body #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .ozon-order-copy-row { align-items:center; gap:4px; }
body #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .ozon-order-number { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:13px; line-height:24px; letter-spacing:-.2px; }
body #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-copy-icon { background:transparent; color:var(--muted); width:22px; flex-basis:22px; }
body #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-product-line { gap:14px; }
body #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .product-title-clamp { font-size:14px; line-height:1.65; color:var(--text); }
body :is(#appView,.order-processing-body) .order-card.order-card--enterprise :is(.rootflow-product-details,.order-product-main,.order-proof-value,.order-ozon-context) { font-size:12px; line-height:1.65; }
body #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-quantity-summary { border:0; margin-top:12px; padding-top:0; gap:8px 20px; }
body #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-inventory-card { border:0; border-radius:8px; background:#f5f7fa; box-shadow:var(--shadow-sm); padding:14px; }
body #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-inventory-card__footer { border:0; margin-top:12px; padding-top:0; }
body #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-actions .oa-primary-row button,
body .order-processing-body .order-card.order-card--enterprise .order-actions .oa-primary-row button {
  border:0; background:#eef1f5; color:#3e4a5c; min-height:34px; border-radius:6px; box-shadow:none; font-size:12px; font-weight:500;
}
body #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-actions .oa-primary-row button.is-next { background:var(--primary); color:#fff; box-shadow:0 2px 5px rgb(20 94 240 / 14%); }
body #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-actions .oa-primary-row :is(button.is-done,button.is-complete,.oa-confirm-stock:disabled) {
  border:0; background:transparent !important; color:var(--success-text) !important; opacity:1; box-shadow:none; text-align:left; padding-inline:0;
}
body #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-actions .oa-wecom-alert { border:0; background:#f1f3f6; color:#4a5769; font-weight:500; }
body #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-action-section { border:0; padding-top:4px; }
body #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-action-section-label { color:var(--muted); font-size:12px; }
body #appView .workspace[data-view="orders"] .order-batch-enterprise .batch-filter-area { border:0; padding:12px 0; gap:8px 12px; }
body #appView .workspace[data-view="orders"] .order-batch-enterprise .batch-flow-step { border:0; border-radius:6px; background:#f5f6f8; padding:9px 10px; min-height:56px; }
body #appView .workspace[data-view="orders"] .order-batch-enterprise .batch-flow-step.is-current { background:var(--primary-soft); box-shadow:inset 3px 0 var(--primary); }
body #appView .workspace[data-view="orders"] .order-batch-enterprise .batch-flow-step.is-complete { background:#f4f8f5; }
body #appView .workspace[data-view="orders"] .order-batch-enterprise .batch-flow-content > button { font-size:12px; font-weight:500; }
body #appView .workspace[data-view="orders"] :is(.batch-bar,.order-toolbar) { border:0; }
body #appView .workspace[data-view="orders"] .order-filter-panel { background:#fff; box-shadow:var(--shadow-sm); margin-bottom:14px; }
body #appView .workspace[data-view="orders"] .order-sticky-tools { background:#fff; border:0; border-radius:9px; box-shadow:var(--shadow-sm); padding:4px 0 0; margin-bottom:0; }
body #appView .workspace[data-view="orders"] .order-status-refresh-row { background:transparent; padding:0 12px; }
body #appView .workspace[data-view="orders"] .order-sticky-tools :is(.order-list-tabs,.batch-bar) { margin-bottom:0; }
body #appView .workspace[data-view="orders"] .batch-bar { box-shadow:none; border-radius:0 0 9px 9px; }
body #appView .workspace[data-view="orders"] .order-list { margin-top:20px; gap:18px; }
/* Picker: compact filters, calm cards, clear selection and a real switch. */
body .sku-picker.sku-picker--enterprise :is(.sku-picker-controls,.sku-picker-tabbar) { border:0; }
body .sku-picker.sku-picker--enterprise .sku-picker-controls { padding:12px 22px; gap:8px 18px; }
body .sku-picker.sku-picker--enterprise .sku-picker-list { background:#f6f7f9; gap:14px; padding:16px 22px; }
body .sku-picker.sku-picker--enterprise :is(.inventory-card-picker-card,.sku-card) { border:0; border-radius:8px; box-shadow:var(--shadow-sm); padding:14px; gap:8px 10px; }
body .sku-picker.sku-picker--enterprise :is(.inventory-card-picker-card,.sku-card).is-selected { border:0; background:#fff; box-shadow:0 0 0 2px var(--primary),var(--shadow-sm); }
body .sku-picker.sku-picker--enterprise :is(.inventory-card-picker-name,.sku-card-name) { font-size:13px; line-height:1.55; font-weight:600; }
body .sku-picker.sku-picker--enterprise .inventory-card-picker-shelf { color:#4a5769; font-size:12px; }
body .sku-picker.sku-picker--enterprise :is(.inventory-card-picker-orders,.inventory-card-picker-label-status) { border:0; padding-top:6px; margin-top:0; font-size:12px; }
body .sku-picker.sku-picker--enterprise :is(.inventory-card-picker-tags,.inventory-card-picker-skus,.inventory-card-picker-stock,.inventory-card-picker-label-scope) { font-size:12px; line-height:1.5; }
body .sku-picker.sku-picker--enterprise .inventory-card-picker-stock strong { color:var(--text); font-size:13px; }
body .sku-picker.sku-picker--enterprise .inventory-card-picker-label-row { background:#f5f6f8; border-radius:5px; padding:4px 8px; align-items:center; }
body .sku-picker.sku-picker--enterprise :is(.inventory-card-picker-group-print,.inventory-card-picker-print,.wecom-picker-remind) { border:0; background:#edf1f7; color:#40546e; font-size:12px; font-weight:500; border-radius:5px; }
body .sku-picker.sku-picker--enterprise .inventory-card-picker-group-print { background:#fff; color:var(--primary); box-shadow:0 1px 4px rgb(26 39 61 / 6%); }
body .sku-picker.sku-picker--enterprise .wecom-picker-remind:not(:disabled):hover { background:var(--primary-soft); color:var(--primary); }
body .reminder-mark-switch,
body .reminder-mark-switch.is-on { border:0; background:transparent; box-shadow:none; padding:7px 0; border-radius:0; color:var(--muted); font-size:12px; font-weight:500; }
body .reminder-mark-switch.is-on { color:var(--success-text); }
body .reminder-mark-switch i { flex-basis:30px; width:30px; height:17px; background:#bdc5d1; }
body .reminder-mark-switch i::after { width:13px; height:13px; }
body .reminder-mark-switch.is-on i { background:var(--success); }
body .reminder-mark-switch:not(:disabled):hover { background:transparent; }
@container enterprise-order (max-width:1130px) {
  body #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-card-grid { grid-template-columns:204px minmax(230px,1fr) minmax(210px,.8fr) 224px; }
}
@container enterprise-order (max-width:900px) {
  body #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-card-grid { grid-template-columns:204px minmax(0,1fr); }
}
@container enterprise-order (max-width:460px) {
  body #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-card-grid { display:flex; }
}
@media(max-width:640px) {
  body .sku-picker.sku-picker--enterprise :is(.sku-picker-controls,.sku-picker-list) { padding:12px; gap:10px; }
  body :is(.modal-head,.erp-dialog-head,.client-modal-head,.modal-actions,.erp-dialog-actions,.client-modal-actions,.sku-picker-footer) { padding:12px 16px; }
  body #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-card-grid > div { padding:12px; }
}
@media(prefers-reduced-motion:reduce) { body :is(button,.file-button span) { transition:none; } }

/* Identity tools share the same 13px text baseline as the order number. */
body #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .domestic-tracking-line .copyable-number { color:var(--text); font-size:13px; font-weight:600; background:transparent; border:0; padding:0; }
body #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .stock-shipment-line { border:0; padding:0; gap:8px; }
body #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .stock-shipment-line strong { color:var(--muted); font-size:12px; font-weight:400; }
body #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .stock-shipment-line button { background:#f0f2f5; color:#3e4a5c; padding:3px 10px; min-height:28px; font-size:12px; }
body #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .open-order-processing-link { background:#edf1f7; color:#40546e; font-size:12px; }
body :is(.logistics-carrier-badge,.order-carrier-badge) { border:0; background:transparent; font-size:12px; font-weight:500; color:var(--muted); }
/* Keep status groups on one deliberate rail instead of a lonely wrapped archive tab. */
body #appView .workspace[data-view="orders"] .order-list-tabs { border:0; box-shadow:none; flex-wrap:nowrap; overflow-x:auto; gap:18px; padding-block:8px; scrollbar-width:thin; }
body #appView .workspace[data-view="orders"] .order-status-group { flex:0 0 auto; flex-wrap:nowrap; border:0; padding:0; gap:6px; }
body #appView .workspace[data-view="orders"] .order-list-tabs button { font-size:12px; font-weight:500; }
body #appView .workspace[data-view="orders"] .order-tabs-bar { border:0; box-shadow:0 2px 8px rgb(26 39 61 / 4%); }
body .sku-picker.sku-picker--enterprise :is(.sku-picker-warehouse-options,.sku-picker-shelf-group-row,.inventory-card-picker-orders,.inventory-card-picker-label-status,.inventory-card-picker-stock) { border:0; }
body .sku-picker.sku-picker--enterprise .sku-picker-warehouse-options { background:#f6f7f9; border-radius:5px; }
body .sku-picker.sku-picker--enterprise .sku-picker-warehouse-options button { background:transparent; font-size:12px; }
body .sku-picker.sku-picker--enterprise .sku-picker-warehouse-options button.is-active { background:#fff; color:var(--primary); box-shadow:0 1px 5px rgb(26 39 61 / 6%); }
body .sku-picker.sku-picker--enterprise .inventory-card-picker-label-status { gap:5px; }
body .sku-picker.sku-picker--enterprise .inventory-card-picker-label-row { min-height:30px; }
/* Shared list surfaces across inventory, finance and settings. */
body :is(.rf-stock-card,.stock-card,.inventory-card,.client-order-card,.client-stock-card,.shop-card,.finance-stat-card,.settings-card,.wecom-channel-card) { border:0; border-radius:8px; box-shadow:var(--shadow-sm); }
body :is(.rf-stock-card,.stock-card,.inventory-card,.client-order-card,.client-stock-card):hover { box-shadow:var(--shadow); transform:none; }
body :is(.order-stock-tools,.order-action-section,.stock-card-actions,.rf-stock-card__footer) { border-color:transparent; }
body :is(.stock-tabs,.finance-tabs,.check-tabs-bar,.settings-section-nav,.wecom-tabs) { border:0; }
body :is(.toolbar,.form-actions,.filter-actions) button { font-size:13px; }
body #appView .workspace[data-view="orders"] .order-status-refresh-row > .order-list-tabs { flex:1 1 0%; width:0; min-width:0; flex-wrap:nowrap; overflow-x:auto; overflow-y:hidden; white-space:nowrap; gap:18px; }
body #appView .workspace[data-view="orders"] .order-list-tabs .order-status-group { flex:0 0 auto; width:auto; min-width:max-content; flex-wrap:nowrap; }
body #appView .workspace[data-view="orders"] .order-list-tabs .order-status-group + .order-status-group { border:0; padding-left:0; }
body #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .stock-shipment-line { box-shadow:none; }
body #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .sign-cell > .tracking-label.ozon-order-label { border:0; padding-top:0; }
@container enterprise-order (max-width:1130px) {
  body #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-card-grid { grid-template-columns:190px minmax(300px,1.2fr) minmax(230px,1fr) 200px; }
  body #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-product-line { grid-template-columns:100px minmax(0,1fr); gap:12px; }
  body #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-product-line-img { width:100px; }
  body #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-product-img { width:100px; height:134px; }
}
@container enterprise-order (max-width:900px) {
  body #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .order-card-grid { grid-template-columns:190px minmax(0,1fr); }
}
body #appView .workspace[data-view="products"] :is(.stock-ledger-page,.stock-ledger-layout) { background:transparent; border:0; box-shadow:none; }
body #appView .workspace[data-view="products"] .rf-stock-grid { background:var(--bg); gap:16px; padding:18px 16px; }
body #appView .workspace[data-view="products"] .stock-ledger-sticky-head { border:0; box-shadow:var(--shadow-sm); }
body #appView .workspace[data-view="products"] .rf-stock-card { border:0; box-shadow:var(--shadow-sm); }
body #appView .workspace[data-view="products"] .rf-stock-card:hover { box-shadow:var(--shadow); }
body #appView .workspace[data-view="products"] .rf-stock-card.is-updating { box-shadow:0 0 0 2px var(--primary-ring),var(--shadow); }
body #appView .rf-stock-card :is(.rf-stock-card__locator,.rf-stock-card__metrics,.rf-stock-card__auto,.rf-stock-card__activity) { border:0; border-radius:6px; background:#f6f7f9; box-shadow:none; }
body #appView .rf-stock-card :is(.rf-stock-card__metrics > div,.rf-stock-card__activity > span) { border:0; }
body #appView .rf-stock-card .rf-stock-card__metrics { gap:10px; padding:10px; background:transparent; }
body #appView .rf-stock-card .rf-stock-card__metrics > div { padding:0; }
body #appView .rf-stock-card :is(.rf-stock-card__locator em,.rf-stock-card__auto em,.rf-stock-card__activity em) { color:var(--muted); font-size:11px; }
body #appView .rf-stock-card :is(.rf-stock-card__metrics span,.rf-stock-card__metrics small,.rf-stock-card__auto strong,.rf-stock-card__footer button) { font-size:12px; }
body #appView .rf-stock-card .rf-stock-card__name { font-size:14px; line-height:1.55; font-weight:600; }
body #appView table :is(th,td),body #clientApp table :is(th,td) { border:0; font-size:13px; }
body #appView tbody tr:nth-child(even) td,body #clientApp tbody tr:nth-child(even) td { background:#fafbfc; }
body #appView tbody tr:hover td,body #clientApp tbody tr:hover td { background:#f1f4f8; }
body :is(.settings-grid,.settings-item,.finance-enterprise-panel,.finance-center-panel,.stock-tabs-bar,.warehouse-tabs,.stock-warehouse-tabs,.rf-stock-ledger-toolbar) { border:0; }
body :is(.settings-item,.finance-stat-card) { padding:16px; }
body :is(.settings-label,.finance-stat-label) { font-size:12px; color:var(--muted); }
body :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]) { border-color:transparent !important; }
body button.oa-workflow-action:is(.is-complete,.is-done) { background:transparent !important; color:var(--success-text) !important; box-shadow:none; }
body :is(.account-identity-lines,.account-identity-lines > div,.quick-outbound-preview,.quick-outbound-camera) { border:0; }
body #appView .workspace[data-view="orders"] .order-card.order-card--enterprise .sign-cell .ozon-order-number { border:0; padding:0; }
body #appView .workspace[data-view="orders"] .order-batch-enterprise .batch-flow-step { box-shadow:none; }
body #appView .workspace[data-view="orders"] .order-batch-enterprise .batch-flow-step.is-current { box-shadow:inset 3px 0 var(--primary); }

/* Operation feedback stays above picker and nested dialogs, away from footers. */
body #centerToast.center-toast {
  top:max(20px, env(safe-area-inset-top)); bottom:auto;
  left:50%; right:auto; z-index:20000;
  min-width:0; width:max-content; max-width:min(520px, calc(100vw - 32px));
  text-align:center; transform:translate(-50%, -8px);
}
body #centerToast.center-toast.visible { transform:translate(-50%, 0); }
