/* Odafim Planner 34.120.249 optical-precision stylesheet.
   Shared application primitives and release surface tokens are maintained here. */
:root{
  color-scheme:light;
  --font-ui:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  --font-hebrew:"Noto Sans Hebrew",Arial,sans-serif;
  --font-arabic:Vazirmatn,"Noto Sans Arabic",Tahoma,Arial,sans-serif;
  --font-sans:var(--font-ui);
  --font-mono:"SFMono-Regular",Consolas,"Liberation Mono",monospace;
  /* 34.120.130 — canonical reusable UI foundation. Page CSS should consume these values rather than invent geometry. */
  --ui-control-height:30px;
  --ui-control-height-compact:26px;
  --ui-control-height-comfortable:36px;
  --ui-toolbar-control-height:36px;
  --ui-toolbar-row-height:38px;
  --ui-toolbar-height:50px;
  --ui-touch-target:44px;
  --ui-control-pad-x:8px;
  --ui-radius-control:6px;
  --ui-radius-search:8px;
  --ui-radius-panel:10px;
  --ui-gap-tight:6px;
  --ui-gap:8px;
  --ui-gap-loose:12px;
  --ui-toolbar-pad-y:6px;
  --ui-toolbar-pad-x:8px;
  --ui-type-micro:9px;
  --ui-type-caption:10px;
  --ui-type-label:11px;
  --ui-type-control:12px;
  --ui-type-body:13px;
  --ui-type-section-title:14px;
  --ui-type-page-title:20px;
  --ui-type-dialog-title:18px;
  --ui-control-icon-size:16px;
  --ui-control-icon-size-small:14px;
  --ui-tab-icon-size:14px;
  --ui-search-icon-size:16px;
  --ui-search-icon-inset:11px;
  --ui-search-text-inset:36px;
  /* 34.120.131 — application-form primitives. */
  --ui-form-gap:10px;
  --ui-form-section-pad:10px;
  --ui-form-section-radius:8px;
  --ui-field-gap:4px;
  --ui-field-bg:var(--ux-field);
  --ui-field-bg-focus:var(--ux-field-focus);
  --ui-field-label-size:10px;
  --ui-choice-min-height:34px;
  --ui-choice-card-min-height:40px;
  --ui-setting-control-min:180px;
  --ui-action-control-min:154px;
  /* 34.120.134 — reusable application-section chrome. */
  --ui-section-head-min-height:48px;
  --ui-section-head-pad-y:8px;
  --ui-section-head-pad-x:10px;
  --ui-section-title-size:12px;
  --ui-section-help-size:9.5px;
  --ui-section-detail-title-size:13px;
  --ui-section-detail-help-size:10.5px;
  /* 34.120.135 — flatter application surfaces: hierarchy through spacing before decoration. */
  --ui-divider:var(--line-soft);
  --ui-flat-row-pad-y:9px;
  --ui-flat-section-gap:12px;
  /* 34.120.136 — canonical ordinary tab geometry. */
  --ui-tab-height:42px;
  --ui-tab-height-compact:34px;
  --ui-tab-pad-x:9px;
  --ui-tab-font-size:10.5px;
  --ui-tab-font-weight:720;
  /* 34.120.137 — canonical segmented selection geometry. */
  --ui-segment-height:32px;
  --ui-segment-height-compact:30px;
  --ui-segment-pad-x:10px;
  --ui-segment-font-size:11px;
  --ui-segment-font-weight:650;
  --ui-segment-radius:6px;
  /* 34.120.138 — canonical ordinary data-table header/action geometry. */
  --ui-table-head-height:34px;
  --ui-table-head-pad-x:8px;
  --ui-table-head-font-size:9.5px;
  --ui-table-head-font-weight:650;
  --ui-table-action-gap:6px;
  --space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-6:24px;--space-8:32px;
  --radius-sm:6px;--radius-md:8px;--radius-lg:9px;--radius-xl:12px;
  /* Legacy color names remain compatibility aliases; --ux-* is the single appearance authority. */
  --ink-strong:var(--ux-ink-strong);--ink:var(--ux-compat-ink);--ink-soft:var(--ux-compat-ink-soft);--ink-faint:var(--ux-compat-ink-faint);
  --canvas:var(--ux-compat-canvas);--surface:var(--ux-surface);--surface-subtle:var(--ux-surface-subtle);--surface-selected:var(--ux-compat-surface-selected);
  --line:var(--ux-compat-border);--line-strong:var(--ux-compat-border-strong);--line-soft:var(--ux-border-subtle);
  --navy-950:#0b1725;--navy-900:#10243a;--navy-850:#17304a;--navy-800:#1c3a58;
  --blue-700:#285d94;--blue-600:#3474b6;--blue-500:#4f89c5;--blue-100:#e9f2fb;
  --teal-700:#0f6b70;--teal-100:#e4f4f3;
  --green-700:#177245;--green-100:#e8f7ee;
  --amber-800:#8a4b09;--amber-100:#fff3dc;
  --red-700:#a52b27;--red-100:#fdeceb;
  --shadow-menu:0 16px 48px rgba(11,23,37,.22);
  --shadow-sticky:0 -8px 26px rgba(11,23,37,.08);
  /* Authoritative shell + responsive geometry. Route CSS may compose these tokens but should not redefine them. */
  --sidebar-width:184px;--sidebar-collapsed:72px;--sidebar-collapsed-width:56px;--topbar-height:44px;
  --shell-feedback-height:0px;--mobile-bottom-nav:0px;
  --mobile-page-padding:8px;--mobile-panel-gap:6px;--mobile-context-height:44px;--mobile-surface-gap:8px;
  --mobile-safe-bottom:env(safe-area-inset-bottom,0px);--mobile-page-bottom-space:max(20px,var(--mobile-safe-bottom));
  --mobile-type-caption:9.5px;--mobile-type-secondary:10.5px;--mobile-type-body:12px;--mobile-type-identity:14px;--mobile-search-font-size:16px;
  --z-sidebar:40;--z-topbar:35;--z-sticky:30;--z-modal:100;--z-toast:120;--touch-target-min:var(--ui-touch-target);
}
@media(min-width:761px) and (max-width:1280px){:root{--sidebar-width:56px}}
@media(max-width:760px){:root{--topbar-height:52px;--ui-control-height:var(--ui-touch-target);--ui-control-icon-size:18px;--ui-search-icon-size:18px;--ui-search-icon-inset:12px;--ui-search-text-inset:40px}}


*{box-sizing:border-box}html,body,#app{min-height:100%;margin:0}html{background:var(--canvas)}body{background:var(--canvas);color:var(--ink);font-family:var(--font-sans);font-size:14px;line-height:1.45;text-rendering:optimizeLegibility}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}a{color:inherit;text-decoration:none}img{max-width:100%}h1,h2,h3,p{margin-block-start:0}.app-icon{width:20px;height:20px;display:block;flex:0 0 auto}.object-code,.numeric,.metric-card strong,.workspace-meta{font-variant-numeric:tabular-nums lining-nums}.object-code,bdi{unicode-bidi:isolate;direction:ltr}

.startup,.login-shell{min-height:100vh;display:grid;place-items:center;padding:var(--space-6)}.startup{align-content:center;gap:var(--space-4);text-align:center}.startup img{width:68px;height:68px;object-fit:contain}.startup p{color:var(--ink-soft)}.spinner,.status-spinner{border:3px solid var(--line);border-top-color:var(--blue-600);border-radius:50%;animation:spin .85s linear infinite}.spinner{width:34px;height:34px}.status-spinner{width:18px;height:18px;border-width:2px}@keyframes spin{to{transform:rotate(360deg)}}
.login-shell{background:radial-gradient(circle at 12% 8%,color-mix(in srgb,var(--ux-info) 20%,transparent),transparent 32%),linear-gradient(145deg,var(--ux-surface-well),var(--ux-app-bg))}.login-card{width:min(430px,100%);background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-xl);padding:var(--space-8);box-shadow:0 24px 70px rgba(11,23,37,.14);position:relative}.login-card>img{display:block;width:min(250px,72%);height:auto;max-height:150px;object-fit:contain;object-position:center;margin-inline:auto}.login-card h1{margin:var(--space-4) 0 var(--space-1);font-size:28px;line-height:1.15;color:var(--ink-strong)}.login-card>p{margin:0 0 var(--space-6);color:var(--ink-soft)}.login-card small{display:block;margin-top:var(--space-6);color:var(--ink-faint);font-family:var(--font-mono);font-size:11px}

label{display:grid;gap:6px;font-weight:650;color:var(--ink);margin-bottom:var(--space-4)}input::placeholder{color:var(--ux-placeholder)}input:hover,select:hover{border-color:var(--ux-border-hover-subtle)}input:disabled{background:var(--surface-subtle);color:var(--ink-soft)}
.button:active:not(:disabled){transform:translateY(1px)}.button .app-icon{width:var(--ui-control-icon-size);height:var(--ui-control-icon-size)}.button.small .app-icon{width:var(--ui-control-icon-size-small);height:var(--ui-control-icon-size-small)}.icon-button{border:1px solid transparent;background:transparent;display:grid;place-items:center;color:var(--ink-soft);padding:0}.icon-button:hover:not(:disabled){background:var(--surface-subtle);color:var(--ink-strong)}

.app-shell{min-height:100vh;padding-inline-start:var(--sidebar-width)}.shell-main{min-width:0;min-height:100vh}.sidebar{position:fixed;z-index:var(--z-sidebar);inset-block:0;inset-inline-start:0;width:var(--sidebar-width);background:linear-gradient(180deg,var(--navy-950),var(--navy-900));color:#dce7f1;display:flex;flex-direction:column;border-inline-end:1px solid rgba(255,255,255,.05)}.sidebar-brand{height:var(--topbar-height);display:flex;align-items:center;gap:10px;padding-inline:15px;border-bottom:1px solid rgba(255,255,255,.08)}.sidebar-brand img{width:34px;height:34px;object-fit:contain;background:rgba(255,255,255,.94);border-radius:7px;padding:2px}.sidebar-brand-copy{display:grid;min-width:0}.sidebar-brand-copy strong{font-size:14px;line-height:1.15;color:#fff;white-space:nowrap}.sidebar-brand-copy span{font-size:9px;color:#8fa2b5;font-family:var(--font-mono);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-nav{padding:var(--space-4) var(--space-3);display:grid;gap:var(--space-1);overflow:auto}.nav-item{position:relative;min-height:42px;border:1px solid transparent;border-radius:var(--radius-sm);background:transparent;color:#aebdcb;display:grid;grid-template-columns:22px minmax(0,1fr);align-items:center;gap:var(--space-3);padding:0 11px;text-align:start;font-weight:620}.nav-item .app-icon{width:19px;height:19px}.nav-item:hover{background:rgba(255,255,255,.055);color:#f5f8fb}.nav-item.active{background:linear-gradient(90deg,rgba(79,137,197,.3),rgba(52,116,182,.13));border-color:rgba(133,181,227,.14);color:#fff}.nav-item.active::before{content:"";position:absolute;inset-inline-start:-12px;width:3px;height:22px;background:#78a8dc;border-radius:0 999px 999px 0}.nav-item.active .app-icon{color:#9fc9f4}.sidebar-footer{margin-top:auto;padding:var(--space-3);border-top:1px solid rgba(255,255,255,.08)}.topbar{height:var(--topbar-height);position:sticky;z-index:var(--z-topbar);top:0;background:var(--ux-topbar-bg);backdrop-filter:blur(14px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);padding:0 var(--space-4)}.topbar-start,.topbar-end{display:flex;align-items:center;gap:var(--space-3)}.topbar .menu-button{display:none}.main-content{padding:var(--space-4);max-width:1680px;margin:0 auto}.mobile-bottom-nav{display:none}

.workspace-header{min-height:72px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);padding:8px var(--space-6);display:flex;align-items:center;justify-content:space-between;gap:var(--space-6);margin-bottom:var(--space-4)}.workspace-heading{min-width:0}.workspace-eyebrow{margin:0;font-size:10px;line-height:1.2;font-weight:780;letter-spacing:.06em;text-transform:uppercase;color:var(--blue-700)}.workspace-title-row{display:flex;align-items:center;gap:var(--space-3);min-width:0}.workspace-title-row h1{margin:0;color:var(--ink-strong);font-size:22px;line-height:1.2;font-weight:720}.workspace-meta{font-size:var(--ui-type-control);font-weight:700;color:var(--ink-soft);background:var(--surface-subtle);border:1px solid var(--line);border-radius:999px;padding:4px 8px;white-space:nowrap}.workspace-description{margin:2px 0 0;color:var(--ink-soft);font-size:var(--ui-type-control);line-height:1.3}.workspace-actions{display:flex;align-items:center;gap:var(--space-2);flex:0 0 auto}.task-toolbar{min-height:52px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);padding:var(--space-2);display:flex;align-items:center;gap:var(--space-2);margin-bottom:var(--space-4)}.toolbar-search{position:relative;min-width:280px;flex:1}.toolbar-search .app-icon{position:absolute;inset-inline-start:12px;top:50%;transform:translateY(-50%);width:17px;height:17px;color:var(--ink-faint);pointer-events:none}.toolbar-search input{padding-inline-start:38px}

.panel,.work-surface{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg)}.panel{padding:var(--space-6);margin-bottom:var(--space-4)}.panel h2{font-size:17px;color:var(--ink-strong);margin:0 0 var(--space-2)}.panel p{color:var(--ink-soft);line-height:1.55}.work-surface{overflow:hidden;min-height:320px}

.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--space-3);margin-bottom:var(--space-4)}.metric-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);padding:var(--space-4);display:grid;grid-template-columns:40px minmax(0,1fr);align-items:center;gap:var(--space-3);min-height:88px}.metric-icon{width:40px;height:40px;border-radius:var(--radius-sm);display:grid;place-items:center;background:var(--blue-100);color:var(--blue-700)}.metric-icon .app-icon{width:21px;height:21px}.metric-card>div:last-child{display:grid;gap:1px}.metric-card span{font-size:12px;color:var(--ink-soft);font-weight:650}.metric-card strong{font-size:24px;color:var(--ink-strong);line-height:1.1}.metric-card small{font-size:11px;color:var(--ink-faint)}.metric-card[data-tone="green"] .metric-icon{background:var(--green-100);color:var(--green-700)}.metric-card[data-tone="teal"] .metric-icon{background:var(--teal-100);color:var(--teal-700)}.metric-card[data-tone="amber"] .metric-icon{background:var(--amber-100);color:var(--amber-800)}

/* Canonical semantic status chip. .status-badge remains the compatibility name used by established routes. */
:is(.ui-status-chip,.status-badge){display:inline-flex;align-items:center;gap:6px;min-height:26px;padding:3px 8px;border-radius:999px;font-size:var(--ui-type-label);font-weight:700;border:1px solid var(--line);color:var(--ink-soft);background:var(--surface-subtle);white-space:nowrap}
:is(.ui-status-chip,.status-badge) .app-icon{width:14px;height:14px}
:is(.ui-status-chip,.status-badge).is-compact{min-height:20px;padding:1px 6px;gap:4px;font-size:var(--ui-type-caption);font-weight:650}
:is(.ui-status-chip,.status-badge).is-compact .app-icon{width:11px;height:11px}
:is(.ui-status-chip,.status-badge)[data-tone="success"]{background:var(--green-100);border-color:var(--ux-success-border);color:var(--green-700)}
:is(.ui-status-chip,.status-badge)[data-tone="warning"]{background:var(--amber-100);border-color:#efd09c;color:var(--amber-800)}
:is(.ui-status-chip,.status-badge)[data-tone="info"]{background:var(--blue-100);border-color:var(--ux-info-border);color:var(--blue-700)}
:is(.ui-status-chip,.status-badge)[data-tone="completed"]{background:var(--ux-neutral-soft);border-color:var(--ux-neutral-border);color:var(--ux-neutral-ink)}
:is(.ui-status-chip,.status-badge)[data-tone="error"]{background:var(--ux-danger-soft);border-color:var(--ux-danger-border);color:var(--ux-danger)}
:is(.ui-status-chip,.status-badge)[data-tone="excess"]{background:var(--ux-excess-soft);border-color:var(--ux-excess-border);color:var(--ux-excess)}

/* Canonical filter-value pill. page-facet-pill remains a compatibility alias until every route migrates. */
:is(.ui-filter-pill,.page-facet-pill){display:inline-flex;align-items:center;justify-content:center;min-height:var(--ui-control-height-comfortable);padding:0 11px;border:1px solid transparent;border-radius:999px;background:var(--ux-surface-muted);color:var(--ux-ink);font:inherit;font-size:10.5px;font-weight:680;line-height:1.15;cursor:pointer;white-space:nowrap}
:is(.ui-filter-pill,.page-facet-pill):hover:not(:disabled){border-color:var(--ux-border-strong,var(--ux-border));background:var(--ux-surface-hover)}
:is(.ui-filter-pill,.page-facet-pill).selected,:is(.ui-filter-pill,.page-facet-pill)[aria-pressed="true"]{border-color:color-mix(in srgb,var(--blue-500,var(--ux-accent)) 38%,var(--ux-border));background:var(--blue-100);color:var(--blue-700);font-weight:760}
:is(.ui-filter-pill,.page-facet-pill):focus-visible{outline:2px solid var(--ux-accent);outline-offset:1px}
@media(max-width:760px){:is(.ui-filter-pill,.page-facet-pill){min-height:var(--ui-touch-target);padding-inline:12px}}

/* Canonical metadata chip: compact neutral/warning labels that describe attributes rather than workflow state. */
.ui-meta-chip{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:18px;padding:1px 5px;border:1px solid transparent;border-radius:999px;background:var(--ux-surface-muted);color:var(--ux-ink-muted);font-size:var(--ui-type-caption);font-weight:700;line-height:1.15;white-space:nowrap}
.ui-meta-chip[data-tone="warning"]{background:var(--ux-warning-soft);color:var(--ux-warning)}
.ui-meta-chip[data-tone="info"]{background:var(--ux-info-soft,var(--blue-100));color:var(--ux-info,var(--blue-700))}
.ui-meta-chip[data-tone="success"]{background:var(--ux-success-soft);color:var(--ux-success)}
.muted{color:var(--ink-soft)}

/* Canonical empty-state contract. Compact is for drawers, filtered lists and bounded panels. */
:is(.ui-empty-state,.empty-state){min-height:320px;padding:56px var(--space-6);text-align:center;display:grid;justify-items:center;align-content:center}
:is(.ui-empty-state,.empty-state) .empty-state-icon{width:54px;height:54px;border-radius:var(--radius-lg);display:grid;place-items:center;background:var(--surface-subtle);color:var(--blue-700);margin-bottom:var(--space-4)}
:is(.ui-empty-state,.empty-state) .empty-state-icon .app-icon{width:26px;height:26px}
:is(.ui-empty-state,.empty-state) h2{margin:0;color:var(--ink-strong);font-size:18px}
:is(.ui-empty-state,.empty-state) p{max-width:480px;margin:var(--space-2) 0 0;color:var(--ink-soft)}
:is(.ui-empty-state,.empty-state) .empty-state-action{margin-top:var(--space-4)}
:is(.ui-empty-state.is-compact,.empty-state.compact){min-height:96px;padding:var(--space-4)}
:is(.ui-empty-state.is-compact,.empty-state.compact) .empty-state-icon{width:36px;height:36px;margin-bottom:var(--space-2);border-radius:var(--ui-radius-control)}
:is(.ui-empty-state.is-compact,.empty-state.compact) .empty-state-icon .app-icon{width:18px;height:18px}
:is(.ui-empty-state.is-compact,.empty-state.compact) :is(h2,strong){margin:0;font-size:var(--ui-type-control);line-height:1.3;color:var(--ux-ink);font-weight:650}
:is(.ui-empty-state.is-compact,.empty-state.compact) p{margin-top:var(--space-1);font-size:var(--ui-type-caption)}
:is(.ui-empty-state.is-compact,.empty-state.compact) .empty-state-action{margin-top:var(--space-2)}

/* Canonical callout contract. Tone and density are semantic modifiers, not route styles. */
:is(.ui-callout,.callout){border-radius:var(--ui-radius-search);padding:var(--space-3) var(--space-4);display:grid;grid-template-columns:22px minmax(0,1fr);gap:var(--space-3);align-items:start;margin-bottom:var(--space-4);font-size:var(--ui-type-body);line-height:1.4}
:is(.ui-callout,.callout)>.app-icon{width:20px;height:20px}
:is(.ui-callout,.callout)>:only-child{grid-column:1/-1}
:is(.ui-callout,.callout)>div{display:grid;gap:2px;min-width:0}
:is(.ui-callout,.callout) :is(strong,p,span){margin:0}
:is(.ui-callout,.callout).warning{background:var(--ux-warning-soft);border:1px solid var(--ux-warning-border);color:var(--ux-warning-ink)}
:is(.ui-callout,.callout).info{background:var(--ux-info-soft);border:1px solid var(--ux-info-border);color:var(--ux-info)}
:is(.ui-callout,.callout):is(.error,.danger){background:var(--ux-danger-soft);border:1px solid var(--ux-danger-border);color:var(--ux-danger)}
:is(.ui-callout,.callout).success{background:var(--ux-success-soft);border:1px solid var(--ux-success-border);color:var(--ux-success)}
:is(.ui-callout.is-compact,.callout.compact){grid-template-columns:18px minmax(0,1fr);gap:var(--space-2);padding:var(--space-2) var(--space-3);margin-bottom:var(--space-2);font-size:var(--ui-type-label)}
:is(.ui-callout.is-compact,.callout.compact)>.app-icon{width:18px;height:18px}
/* 34.120.92 — retired the legacy Setup screen; file-button remains shared by M3 Excel upload. */
/* 34.120.157 — retired the remaining unreachable generic Setup validation/loading/placeholder presentation; live Order Import validation-errors is separate. */
.file-button{position:relative}.file-button input{position:absolute;opacity:0;width:1px;height:1px}

.modal-backdrop{position:fixed;z-index:var(--z-modal);inset:0;background:rgba(7,17,29,.56);display:grid;place-items:center;padding:var(--space-4);backdrop-filter:blur(2px)}.modal{position:relative;background:var(--ux-surface);border:1px solid rgba(120,136,154,.22);border-radius:12px;width:min(540px,100%);max-height:calc(100vh - 32px);overflow:auto;box-shadow:0 20px 56px rgba(10,22,38,.22)}.modal-body{padding:20px}.modal-close{position:absolute;z-index:2;inset-block-start:10px;inset-inline-end:10px;width:28px;height:28px;border:0;background:transparent;border-radius:6px;display:grid;place-items:center;color:var(--ux-ink-faint);padding:0}.modal-close:hover{background:var(--ux-surface-muted);color:var(--ux-ink)}.modal-close .app-icon{width:15px;height:15px}.modal-heading{display:grid;gap:3px;padding-inline-end:36px;margin:0 0 16px}.modal-heading>p,.modal-heading>h2,.modal-heading>span{margin:0}.modal-heading>p{font-size:9.5px;line-height:1.2;font-weight:650;color:var(--ux-ink-muted)}.modal-heading>h2{font-size:var(--ui-type-dialog-title);line-height:1.25;font-weight:700;letter-spacing:-.01em;color:var(--ux-ink)}.modal-heading>span{font-size:10.5px;line-height:1.4;color:var(--ux-ink-muted)}
/* 34.120.125 — reusable global UI primitives. Prefer these before route/element-specific geometry. */
.ui-title-row{display:flex;align-items:center;gap:var(--space-1);min-width:0}.ui-title-row>:is(h1,h2,h3){margin:0}.ui-info-hint{display:inline-grid;place-items:center;flex:0 0 auto;width:13px;height:13px;padding:0;border:0;background:transparent;color:var(--ink-faint);opacity:.58;cursor:help;outline:none}.ui-info-hint:hover,.ui-info-hint:focus-visible{color:var(--ink-soft);opacity:1}.ui-info-hint .app-icon{width:10px;height:10px}
/* 34.120.136 — canonical ordinary tabs. Containers own placement/overflow; tabs own interaction geometry and active state. */
.ui-tabs{--ui-tabs-control-height:var(--ui-tab-height);--ui-tabs-pad-x:var(--ui-tab-pad-x);--ui-tabs-font-size:var(--ui-tab-font-size);--ui-tabs-font-weight:var(--ui-tab-font-weight);--ui-tabs-active:var(--blue-700);--ui-tabs-indicator:var(--blue-500,var(--ux-accent));display:flex;align-items:center;min-width:0;border-bottom:1px solid var(--ux-border);background:transparent}
.ui-tabs.is-compact{--ui-tabs-control-height:var(--ui-tab-height-compact);--ui-tabs-pad-x:10px;--ui-tabs-font-size:10px;--ui-tabs-font-weight:600;--ui-tabs-active:var(--ux-accent);--ui-tabs-indicator:var(--ux-accent)}
.ui-tab{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:5px;height:var(--ui-tabs-control-height);min-height:var(--ui-tabs-control-height);padding:0 var(--ui-tabs-pad-x);border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--ux-ink-muted);font:inherit;font-size:var(--ui-tabs-font-size);font-weight:var(--ui-tabs-font-weight);cursor:pointer;white-space:nowrap}
.ui-tab:hover{background:transparent;color:var(--ux-ink)}
.ui-tab:focus-visible{outline:2px solid var(--ux-accent);outline-offset:-2px}
.ui-tab.active,.ui-tab[aria-selected="true"]{background:transparent;color:var(--ui-tabs-active)}
.ui-tab.active::after,.ui-tab[aria-selected="true"]::after{content:"";position:absolute;inset-inline:8px;bottom:0;height:2px;border-radius:2px 2px 0 0;background:var(--ui-tabs-indicator)}
.ui-tab small{font-size:9px;font-weight:800;color:inherit;opacity:.7}
@media(max-width:760px){.ui-tabs,.ui-tabs.is-compact{--ui-tabs-control-height:var(--ui-touch-target)}}
/* 34.120.137 — canonical segmented controls. Context containers own placement/layout; the primitive owns button geometry and state. */
.ui-segments{--ui-segments-control-height:var(--ui-segment-height);--ui-segments-pad-x:var(--ui-segment-pad-x);--ui-segments-font-size:var(--ui-segment-font-size);--ui-segments-font-weight:var(--ui-segment-font-weight);--ui-segments-active-bg:var(--ux-surface-selected-strong);--ui-segments-active-color:var(--ux-accent-hover);--ui-segments-active-shadow:inset 0 0 0 1px #8dafe0;display:inline-flex;align-items:center;min-width:0;padding:2px;border:1px solid var(--ux-border-strong);border-radius:var(--ui-radius-search);background:var(--ux-surface-muted)}
.ui-segments.is-compact{--ui-segments-control-height:var(--ui-segment-height-compact);--ui-segments-pad-x:8px;--ui-segments-font-size:10.5px}
.ui-segments.is-strong{--ui-segments-active-bg:var(--navy-850);--ui-segments-active-color:#fff;--ui-segments-active-shadow:0 1px 2px rgba(11,23,37,.14)}
.ui-segment{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:0;height:var(--ui-segments-control-height);min-height:var(--ui-segments-control-height);padding:0 var(--ui-segments-pad-x);border:0;border-radius:var(--ui-segment-radius);background:transparent;box-shadow:none;color:var(--ux-ink-muted);font:inherit;font-size:var(--ui-segments-font-size);font-weight:var(--ui-segments-font-weight);line-height:1.15;white-space:nowrap;cursor:pointer;transition:background .12s ease,color .12s ease,box-shadow .12s ease}
.ui-segment:hover:not(:disabled){background:var(--ux-surface);color:var(--ux-ink)}
.ui-segment:focus-visible{outline:2px solid var(--ux-accent);outline-offset:-2px}
.ui-segment.active,.ui-segment[aria-pressed="true"],.ui-segment[aria-selected="true"]{background:var(--ui-segments-active-bg);color:var(--ui-segments-active-color);box-shadow:var(--ui-segments-active-shadow)}
.ui-segments.is-equal>.ui-segment{flex:1 1 0}
@media(max-width:760px){.ui-segments,.ui-segments.is-compact{--ui-segments-control-height:var(--ui-touch-target)}}
/* 34.120.138 — canonical ordinary data-table chrome. Tables retain their page-owned column widths and mobile/card transformations. */
.ui-data-table{width:100%;border-collapse:separate;border-spacing:0}
.ui-data-table>thead>tr>th{height:var(--ui-table-head-height);padding:0 var(--ui-table-head-pad-x);border-bottom:1px solid var(--ux-border,var(--line));background:var(--ux-surface-muted,var(--surface-subtle));color:var(--ux-ink-muted,var(--ink-soft));font-size:var(--ui-table-head-font-size);font-weight:var(--ui-table-head-font-weight);letter-spacing:0;text-transform:none;font-synthesis:none;text-align:start;vertical-align:middle}
.ui-data-table>thead>tr>th.numeric{text-align:end}
.ui-table-sort{display:inline-flex;align-items:center;justify-content:flex-start;gap:4px;min-width:0;min-height:var(--ui-control-height-compact);padding:0;border:0;background:transparent;color:inherit;font:inherit;font-size:inherit;font-weight:inherit;line-height:1.15;text-align:inherit;white-space:nowrap;cursor:pointer}
.ui-data-table>thead>tr>th.numeric>.ui-table-sort{justify-content:flex-end;width:100%}
.ui-table-sort:hover,.ui-table-sort:focus-visible,.ui-table-sort.active,.ui-data-table>thead>tr>th[aria-sort]:not([aria-sort="none"])>.ui-table-sort{color:var(--ux-accent,var(--blue-700))}
.ui-table-sort:focus-visible{outline:2px solid var(--ux-accent,var(--blue-600));outline-offset:2px;border-radius:3px}
.ui-data-actions{text-align:end}
.ui-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:var(--ui-table-action-gap);min-width:0}
.ui-row-action{white-space:nowrap}
.ui-week-metric{display:grid;grid-template-columns:minmax(150px,.9fr) minmax(0,3fr) auto;gap:6px;align-items:stretch;margin:5px 12px 8px;padding:7px;border:1px solid var(--ux-border);border-radius:var(--radius-md);background:color-mix(in srgb,var(--ux-surface-muted) 58%,var(--ux-surface))}.ui-week-metric-heading{display:flex;align-items:center;gap:8px;min-width:0;padding:3px 5px}.ui-week-metric-icon{display:grid;place-items:center;flex:0 0 auto;width:26px;height:26px;border:1px solid var(--ux-border);border-radius:var(--radius-sm);background:var(--ux-surface);color:var(--ux-ink-muted)}.ui-week-metric-icon svg{width:15px;height:15px}.ui-week-metric-heading>div{display:grid;gap:1px;min-width:0}.ui-week-metric-heading strong{font-size:var(--ui-type-caption);line-height:1.15;color:var(--ux-ink)}.ui-week-metric-heading small{font-size:var(--ui-type-micro);line-height:1.3;color:var(--ux-ink-muted)}.ui-week-metric-days{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;min-width:0}.ui-week-metric-day{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;align-items:center;gap:0 6px;min-width:0;padding:4px 6px;border:1px solid var(--ux-border);border-radius:var(--radius-sm);background:var(--ux-surface);color:var(--ux-ink);font:inherit;text-align:start;cursor:pointer;transition:border-color .12s ease,background .12s ease,transform .12s ease}.ui-week-metric-day:hover,.ui-week-metric-day:focus-visible{border-color:var(--ux-border-strong);background:color-mix(in srgb,var(--ux-accent) 3%,var(--ux-surface));transform:translateY(-1px)}.ui-week-metric-day>span{display:grid;grid-row:1/-1;gap:0;align-self:center}.ui-week-metric-day>span b{font-size:var(--ui-type-micro);line-height:1.15;color:var(--ux-ink-muted)}.ui-week-metric-day>span small{font-size:var(--ui-type-micro);line-height:1.15;color:var(--ux-ink-faint)}.ui-week-metric-day>strong{overflow:hidden;font-size:var(--ui-type-control);line-height:1.05;text-overflow:ellipsis;white-space:nowrap;font-variant-numeric:tabular-nums}.ui-week-metric-day>em{overflow:hidden;font-size:var(--ui-type-micro);line-height:1.15;font-style:normal;color:var(--ux-ink-faint);text-overflow:ellipsis;white-space:nowrap}.ui-week-metric-day.is-actual{border-color:color-mix(in srgb,var(--ux-accent) 24%,var(--ux-border))}.ui-week-metric-day.is-today{background:color-mix(in srgb,var(--ux-accent) 4%,var(--ux-surface))}.ui-week-metric-day.is-static{cursor:default}.ui-week-metric-day.is-static:hover{transform:none}.ui-week-metric-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px;white-space:nowrap}.ui-week-metric-skeleton{display:block;min-height:42px;border-radius:var(--radius-sm);background:var(--ux-surface);animation:dashboard-skeleton-pulse 1.15s ease-in-out infinite alternate}.ui-week-metric.is-error{grid-template-columns:minmax(0,1fr) auto}.ui-week-metric.is-error .ui-week-metric-actions{align-self:center}@media(max-width:760px){.ui-week-metric{grid-template-columns:1fr;gap:5px;margin:4px 7px 7px;padding:6px}.ui-week-metric-days{grid-template-columns:repeat(5,minmax(54px,1fr));overflow-x:auto;padding-bottom:1px}.ui-week-metric-day{min-height:44px;padding:5px}.ui-week-metric-actions{justify-content:stretch}.ui-week-metric-actions .button{flex:1;justify-content:center;min-height:var(--touch-target-min)}.ui-week-metric.is-error{grid-template-columns:1fr}.ui-week-metric.is-error .ui-week-metric-actions{display:grid;grid-template-columns:1fr 1fr}}
.button.quiet-danger{border-color:transparent;background:transparent;color:var(--ux-danger);padding-inline:4px;font-weight:600}.button.quiet-danger:hover{background:var(--ux-danger-soft);border-color:transparent;color:var(--ux-danger)}
input[type="checkbox"],input[type="radio"]{width:16px;height:16px;min-width:16px;min-height:16px;max-width:16px;max-height:16px;margin:0;padding:0;accent-color:var(--ux-accent);box-shadow:none}

/* 34.120.139 — retired obsolete .form-standard/.form-grid/.form-field/.form-actions/.modal-actions compatibility geometry after final live consumers moved to canonical ui-* primitives. */
/* 34.120.143 — retired unreachable legacy generic section-heading CSS; ordinary section headers use canonical ui-section-head. */
/* 34.120.144 — retired unreachable historical shell identity/environment presentation CSS. */
/* 34.120.131 — canonical application-style form system.
   New ordinary forms should consume these primitives instead of defining route-specific control geometry. */
.ui-form{display:grid;gap:var(--ui-form-gap);min-width:0}
.ui-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--ui-form-gap);align-items:start;min-width:0}
.ui-form-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.ui-form-grid>.ui-field-wide,.ui-field-wide{grid-column:1/-1}
.ui-field{display:grid;gap:var(--ui-field-gap);min-width:0;margin:0;align-content:start;color:var(--ux-ink)}
.ui-field>span{min-height:12px;font-size:var(--ui-field-label-size);line-height:1.2;font-weight:620;color:var(--ux-ink-muted);letter-spacing:0;text-transform:none}
.ui-field>small{font-size:9px;line-height:1.3;font-weight:500;color:var(--ux-ink-faint);letter-spacing:0;text-transform:none}
.ui-field>small:empty{display:none}
.ui-field-error{display:block;min-height:12px;font-size:9px;line-height:1.3;font-weight:650;color:var(--ux-danger);letter-spacing:0;text-transform:none}
.ui-field-error[hidden],.ui-field-error:empty{display:none}
.ui-control,.ui-field>:is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]),select:not([multiple]),textarea){width:100%;min-width:0;margin:0;border-color:var(--ux-border-strong);border-radius:var(--ui-radius-control);background:var(--ui-field-bg);box-shadow:inset 0 1px 0 rgba(19,32,51,.02);color:var(--ux-ink);transition:border-color .12s ease,background .12s ease,box-shadow .12s ease}
.ui-control:hover:not(:disabled),.ui-field>:is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]),select:not([multiple]),textarea):hover:not(:disabled){border-color:var(--ux-border-hover-strong);background:var(--ui-field-bg-focus)}
.ui-control:focus,.ui-field>:is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]),select:not([multiple]),textarea):focus{border-color:var(--ux-accent);background:var(--ui-field-bg-focus);box-shadow:var(--ux-focus-ring);outline:none}
.ui-control[aria-invalid="true"],.ui-field>:is(input,select,textarea)[aria-invalid="true"]{border-color:var(--ux-danger);background:color-mix(in srgb,var(--ux-danger-soft) 24%,var(--ui-field-bg-focus));box-shadow:0 0 0 2px color-mix(in srgb,var(--ux-danger) 10%,transparent)}
.ui-control:disabled,.ui-field>:is(input,select,textarea):disabled{background:var(--ux-control-disabled);color:var(--ux-ink-faint);border-color:var(--ux-border);opacity:1}
.ui-form textarea,.ui-field textarea{min-height:66px;padding:6px var(--ui-control-pad-x);font-size:var(--ui-type-control);line-height:1.35;resize:vertical}
.ui-form-section{display:grid;gap:var(--ui-form-gap);min-width:0;padding:0;background:transparent;border:0;border-radius:0}
.ui-form-section>header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;min-width:0}
.ui-form-section>header :is(h3,p){margin:0}.ui-form-section>header h3{font-size:12px;line-height:1.3}.ui-form-section>header p{margin-top:2px;font-size:9.5px;line-height:1.35;color:var(--ux-ink-muted)}
.ui-fieldset{min-width:0;margin:0;padding:8px 0 0;border:0;border-top:1px solid var(--ui-divider);border-radius:0;background:transparent;display:grid;gap:8px}
.ui-fieldset>legend{padding-inline:0 7px;font-size:var(--ui-type-caption);line-height:1.2;font-weight:650;color:var(--ux-ink-muted)}
.ui-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.ui-choice{display:grid;grid-template-columns:16px minmax(0,1fr);align-items:center;gap:var(--ui-gap);min-height:var(--ui-choice-min-height);margin:0;padding:5px 2px;border:0;border-radius:var(--ui-radius-control);background:transparent;color:var(--ux-ink);cursor:pointer;font-size:10.5px;font-weight:550}
.ui-choice:hover{background:color-mix(in srgb,var(--ux-surface-hover) 72%,transparent)}
.ui-choice:has(input:checked){background:transparent}
.ui-choice>input{align-self:center}.ui-choice>span{min-width:0;line-height:1.3}
.ui-form-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;padding:9px 10px;border:1px solid var(--ux-border);border-radius:var(--ui-form-section-radius);background:var(--ux-surface-muted)}
.ui-form-summary>span{font-size:10px;color:var(--ux-ink-muted)}.ui-form-summary>strong{font-size:20px;line-height:1.05;color:var(--ux-ink);font-variant-numeric:tabular-nums}.ui-form-summary>small{font-size:9px;color:var(--ux-ink-faint)}
.ui-form-actions{display:flex;align-items:center;justify-content:flex-end;gap:var(--ui-gap-tight);min-height:38px;margin-top:2px;padding:8px 0 0;border:0;border-top:1px solid var(--ui-divider);border-radius:0;background:transparent}
.ui-form-actions>.action-leading{margin-inline-end:auto}
.ui-form-message{margin:0;font-size:var(--ui-type-caption);line-height:1.35;font-weight:600;color:var(--ux-ink-muted)}.ui-form-message:empty{display:none}.ui-form-message.error{color:var(--ux-danger)}
/* 34.120.132 — reusable application settings rows and continued form migration. */
.ui-form-actions.is-flush{margin-top:0;padding-inline:0;border-inline:0;border-bottom:0;border-radius:0;background:transparent}
.ui-setting-list{display:grid;gap:0;min-width:0}
.ui-setting-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(var(--ui-setting-control-min),.72fr);gap:12px;align-items:center;min-width:0;margin:0;padding:var(--ui-flat-row-pad-y) 0;border:0;border-bottom:1px solid var(--ui-divider);border-radius:0;background:transparent}
.ui-setting-row.is-stacked{grid-template-columns:1fr;gap:7px}.ui-setting-row:last-child{border-bottom:0}
.ui-setting-copy{display:grid;gap:2px;min-width:0}
.ui-setting-copy>strong,.ui-setting-title>strong{font-size:12px;line-height:1.3;font-weight:650;color:var(--ux-ink)}
.ui-setting-copy>small{margin:0;font-size:9px;line-height:1.35;font-weight:500;color:var(--ux-ink-muted)}
.ui-setting-title{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}
.ui-setting-badge{display:inline-flex;align-items:center;min-height:18px;padding:2px 6px;border:1px solid color-mix(in srgb,var(--ux-accent) 22%,var(--ux-border));border-radius:999px;background:var(--ux-accent-soft);color:var(--ux-accent);font-size:8px;line-height:1;font-style:normal;font-weight:750;white-space:nowrap}
.ui-setting-control{display:grid;gap:3px;min-width:0}
.ui-setting-control>.ui-control{width:100%}
/* 34.120.133 — reusable choice variants and application action rows. */
.ui-choice.is-card{min-height:var(--ui-choice-card-min-height);padding:8px 10px;border:1px solid var(--ux-border);background:var(--ux-surface)}
.ui-choice.is-card:hover{border-color:var(--ux-border-strong);background:var(--ux-surface-hover)}.ui-choice.is-card:has(input:checked){border-color:color-mix(in srgb,var(--ux-accent) 35%,var(--ux-border));background:color-mix(in srgb,var(--ux-accent-soft) 55%,var(--ux-surface));box-shadow:inset 3px 0 0 var(--ux-accent)}
[dir="rtl"] .ui-choice.is-card:has(input:checked){box-shadow:inset -3px 0 0 var(--ux-accent)}
.ui-choice.is-inline{display:inline-grid;grid-template-columns:16px auto;min-height:30px;padding:4px 6px;border-color:transparent;background:transparent;font-size:10px;font-weight:600;white-space:nowrap}
.ui-choice.is-inline:hover{border-color:transparent;background:var(--ux-surface-hover)}
.ui-choice.is-inline:has(input:checked){border-color:transparent;background:var(--ux-accent-soft)}
.ui-choice-copy{display:grid;gap:2px;min-width:0}
.ui-choice-copy>strong{font-size:10.5px;line-height:1.3;font-weight:600;color:var(--ux-ink-strong)}
.ui-choice-copy>small{font-size:9px;line-height:1.3;font-weight:500;color:var(--ux-ink-muted)}
.ui-action-list{display:grid;min-width:0}
.ui-action-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--ui-gap-loose);align-items:center;min-width:0;padding:11px 0;border-bottom:1px solid var(--ux-border)}
.ui-action-row:last-child{border-bottom:0}
.ui-action-copy{display:grid;gap:2px;min-width:0}
.ui-action-copy>strong{font-size:11.5px;line-height:1.3;font-weight:650;color:var(--ux-ink)}
.ui-action-copy>small,.ui-action-copy>p,.ui-action-copy>span{margin:0;font-size:9.5px;line-height:1.4;font-weight:500;color:var(--ux-ink-muted)}
.ui-action-row>.button{min-width:var(--ui-action-control-min)}
.ui-action-row.is-danger .ui-action-copy>strong{color:var(--ux-danger)}
/* 34.120.134 — shared section shells/headers/actions. */
.ui-section{min-width:0;border:0;border-radius:0;background:transparent;overflow:visible}.ui-section+.ui-section{border-top:1px solid var(--ui-divider)}.ui-section.is-surface{border:1px solid var(--ux-border);border-radius:var(--ui-radius-panel);background:var(--ux-surface);overflow:hidden}
.ui-section-head{min-height:var(--ui-section-head-min-height);padding:var(--ui-section-head-pad-y) var(--ui-section-head-pad-x);border:0;background:transparent;display:flex;align-items:center;justify-content:space-between;gap:var(--ui-gap-loose);min-width:0}
.ui-section-head>div{min-width:0}.ui-section-head :is(h2,h3,p){margin:0}.ui-section-head :is(h2,h3){font-size:var(--ui-section-title-size);line-height:1.3;font-weight:650;color:var(--ux-ink)}.ui-section-head p{margin-top:2px;font-size:var(--ui-section-help-size);line-height:1.35;font-weight:500;color:var(--ux-ink-muted)}
.ui-section-head.is-detail :is(h2,h3){font-size:var(--ui-section-detail-title-size)}.ui-section-head.is-detail p{font-size:var(--ui-section-detail-help-size);line-height:1.4;font-weight:400}
.ui-section-head.is-prominent{min-height:0;padding:14px 16px 10px;align-items:flex-start;background:transparent;gap:16px}.ui-section-head.is-prominent :is(h2,h3){font-size:var(--ui-type-section-title);line-height:1.25}.ui-section-head.is-prominent p{margin-top:4px;font-size:var(--ui-type-caption);line-height:1.45}
.ui-section-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;padding:8px var(--ui-section-head-pad-x) 0;flex-wrap:wrap}
/* 34.120.212 — reusable reference/documentation content primitives.
   Use these for static informational cards and technical reference content before creating page-specific card geometry. */
.ui-card-grid{display:grid;gap:var(--ui-gap-loose);min-width:0}
.ui-card-grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.ui-card-grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.ui-reference-card{display:flex;align-items:flex-start;gap:var(--ui-gap-loose);min-width:0;padding:12px 13px;border:1px solid var(--ux-border-subtle,var(--ux-border));border-radius:var(--ui-form-section-radius);background:var(--ux-surface)}
.ui-reference-card.is-muted{background:var(--ux-surface-subtle)}
.ui-reference-card>.app-icon{width:18px;height:18px;flex:0 0 auto;margin-top:1px;color:var(--ux-ink-faint)}
.ui-reference-copy{display:grid;gap:3px;min-width:0}
.ui-reference-copy>:is(h3,p,small,strong){margin:0}
.ui-reference-copy h3{font-size:var(--ui-type-control);line-height:1.3;font-weight:700;color:var(--ux-ink-strong)}
.ui-reference-copy p{font-size:var(--ui-type-control);line-height:1.5;color:var(--ux-ink-muted)}
.ui-reference-copy small{font-size:var(--ui-type-caption);line-height:1.2;text-transform:uppercase;letter-spacing:.045em;color:var(--ux-ink-faint)}
.ui-reference-copy strong{font-size:var(--ui-type-body);line-height:1.35;font-weight:650;color:var(--ux-ink-strong);overflow-wrap:anywhere}
.ui-formula-card{min-width:0;padding:12px 13px;border:1px solid var(--ux-border-subtle,var(--ux-border));border-radius:var(--ui-form-section-radius);background:var(--ux-surface)}
.ui-formula-card>:is(h3,p){margin:0}
.ui-formula-card h3{margin-bottom:7px;font-size:var(--ui-type-control);line-height:1.3;font-weight:700;color:var(--ux-ink-strong)}
.ui-formula-card p{font-size:11.5px;line-height:1.5;color:var(--ux-ink-muted)}
.ui-code-block{display:block;margin:0 0 7px;padding:7px 8px;border:1px solid var(--ux-border-subtle,var(--ux-border));border-radius:var(--ui-radius-control);background:var(--ux-surface-subtle);font:600 10.5px/1.45 var(--font-mono,ui-monospace,SFMono-Regular,Menlo,monospace);color:var(--ux-ink);overflow-wrap:anywhere;direction:ltr;text-align:left}
@media(max-width:1050px){.ui-card-grid.cols-3{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.ui-card-grid.cols-2,.ui-card-grid.cols-3{grid-template-columns:1fr}.ui-reference-card,.ui-formula-card{padding:11px 12px}}
@media(max-width:760px){.ui-form-grid,.ui-form-grid-3,.ui-choice-grid{grid-template-columns:1fr}.ui-form-section{padding:0}.ui-control:not(textarea),.ui-field>:is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]),select:not([multiple])){height:var(--ui-touch-target);min-height:var(--ui-touch-target);font-size:16px}.ui-form textarea,.ui-field textarea,.ui-control:is(textarea){min-height:82px;font-size:16px}.ui-choice{min-height:var(--ui-touch-target);padding:8px}.ui-choice.is-inline{min-height:var(--ui-touch-target);padding:8px}.ui-form-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:7px 0 0}.ui-form-actions>.button{width:100%;min-height:var(--ui-touch-target)}.ui-form-actions>.action-leading{grid-column:1/-1;margin-inline-end:0}.ui-setting-row{grid-template-columns:1fr;gap:7px;padding:8px 0}.ui-setting-control{width:100%}.ui-action-row{grid-template-columns:1fr;gap:var(--ui-gap);padding:10px 0}.ui-action-row>.button{width:100%;min-width:0;min-height:var(--ui-touch-target)}.ui-section-head{min-height:44px;padding:6px 8px;align-items:flex-start}.ui-section-head.is-prominent{display:grid;gap:9px;padding:11px 12px 9px}.ui-section-actions{display:grid;grid-template-columns:1fr;padding:7px 8px 0}.ui-section-actions>.button{min-height:var(--ui-touch-target)}}

.toast-host{position:fixed;z-index:var(--z-toast);inset-block-start:calc(var(--topbar-height) + 12px);inset-inline-end:var(--space-4);display:grid;gap:var(--space-2);width:min(380px,calc(100vw - 32px))}.toast{background:var(--ux-surface);border:1px solid var(--line);box-shadow:var(--shadow-menu);padding:var(--space-3) var(--space-4);border-radius:var(--radius-lg);font-weight:650;display:grid;grid-template-columns:20px minmax(0,1fr);gap:var(--space-2);align-items:center}.toast .app-icon{width:18px;height:18px}.toast-success{border-inline-start:4px solid var(--green-700)}.toast-success .app-icon{color:var(--green-700)}.toast-error{border-inline-start:4px solid var(--red-700)}.toast-error .app-icon{color:var(--red-700)}#global-status{position:fixed;z-index:90;bottom:var(--space-4);inset-inline-start:calc(var(--sidebar-width) + var(--space-4));display:grid;grid-template-columns:20px minmax(0,1fr);align-items:center;gap:var(--space-2);min-width:260px;max-width:min(520px,calc(100vw - var(--sidebar-width) - 32px));background:var(--navy-950);color:#fff;border-radius:var(--radius-lg);padding:10px 14px;box-shadow:var(--shadow-menu)}#global-status .app-icon{width:18px;height:18px}.global-status-copy{display:grid}.global-status-copy strong{font-size:12px}.global-status-copy small{font-size:10px;color:#aebdcb}.error-screen p{max-width:620px}.error-screen h1{margin-bottom:0}
@media(max-width:1120px){.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-description{max-width:680px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden;clip:rect(0,0,0,0)!important;white-space:nowrap;border:0!important}

#global-status[hidden],#modal-host[hidden]{display:none!important}

/* Exact-slot Inventory + compact desktop shell */
@media(min-width:761px){
  body{font-size:13px;line-height:1.35}
  .sidebar-brand{padding-inline:11px}.sidebar-brand img{width:29px;height:29px}.sidebar-brand-copy strong{font-size:13px}
  .sidebar-nav{padding:8px}.nav-item{min-height:36px;padding:0 9px;grid-template-columns:19px minmax(0,1fr);gap:9px;font-size:12.5px}.nav-item .app-icon{width:17px;height:17px}.nav-item.active::before{inset-inline-start:-8px;height:18px}
  .sidebar-footer{padding:8px}
  .topbar{padding:0 12px}.topbar #sign-out{min-height:30px;padding:4px 9px}
  .main-content{padding:10px 12px;max-width:none}
  .workspace-header{min-height:56px;padding:6px 12px;margin-bottom:8px;border-radius:7px}.workspace-title-row h1{font-size:18px}.workspace-description{font-size:11px}.workspace-meta{font-size:var(--ui-type-caption);padding:3px 7px}.workspace-eyebrow{font-size:9px}
  .task-toolbar{min-height:42px;padding:4px 6px;margin-bottom:8px;border-radius:7px}.toolbar-search{min-width:240px}.toolbar-search input,.task-toolbar select{min-height:32px;height:32px;padding-block:5px}
  .button{min-height:34px;padding:6px 10px;font-size:12px}.button.compact{min-height:29px;padding:4px 8px;font-size:11.5px}.icon-button{width:34px;height:34px}
  .work-surface,.panel{border-radius:7px}
  .modal{width:min(720px,100%)}.modal-body{padding:18px}
}
.expander-col{width:32px;padding-inline:5px!important}.row-expander{border:0;background:transparent;color:var(--ink-faint);width:26px;height:26px;display:grid;place-items:center;border-radius:5px;padding:0}.row-expander:hover{background:var(--surface-subtle);color:var(--ink-strong)}.row-expander .app-icon{width:15px;height:15px}.inventory-summary-row.expanded td{background:var(--ux-surface-subtle)}.slot-metric{font-variant-numeric:tabular-nums;font-weight:650;color:var(--ink)}
.slot-detail-row td{padding:0!important;background:var(--ux-surface-subtle);border-bottom:1px solid var(--line)!important}.slot-detail-panel{padding:10px 12px 12px;border-inline-start:3px solid var(--blue-500)}.slot-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:8px}.slot-detail-head>div{display:grid}.slot-detail-head strong{font-size:12px;color:var(--ink-strong)}.slot-detail-head span{font-size:10.5px;color:var(--ink-soft)}.slot-summary-note{white-space:nowrap}.slot-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(108px,1fr));gap:6px}.slot-card{min-height:66px;border:1px solid var(--line);border-radius:6px;background:var(--ux-surface);padding:7px;display:grid;align-content:start;gap:2px}.slot-card-head{display:flex;align-items:center;justify-content:space-between;gap:5px}.slot-card bdi{font-family:var(--font-mono);font-size:11px;font-weight:750;color:var(--ink-strong)}.slot-card strong{font-size:12px}.slot-card span,.slot-card small{font-size:9.5px;color:var(--ink-soft);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.slot-card.own{border-color:var(--ux-info-border);background:var(--ux-info-soft)}.slot-card.other{background:var(--ux-neutral-soft)}.slot-card.mixed{border-color:var(--ux-warning-border);background:var(--ux-warning-soft)}.slot-card.empty{opacity:.8}.slot-card .status-badge{font-size:8px;padding:2px 4px}
.quick-edit-callout{display:grid;grid-template-columns:24px minmax(0,1fr);gap:9px;align-items:start;padding:9px 10px;margin-bottom:10px;border:1px solid var(--ux-info-border);border-radius:7px;background:var(--ux-info-soft);color:var(--ux-info)}.quick-edit-callout .app-icon{width:19px;height:19px}.quick-edit-callout div{display:grid}.quick-edit-callout strong{font-size:12px}.quick-edit-callout span{font-size:10.5px}.allocation-toggle{grid-template-columns:18px minmax(0,1fr);gap:2px 8px;align-items:center;margin:12px 0 0;padding:9px 10px;border:1px solid var(--line);border-radius:7px;background:var(--surface-subtle);cursor:pointer}.allocation-toggle input{width:16px;height:16px;min-height:0;padding:0;grid-row:1/3}.allocation-toggle span{font-size:12px;color:var(--ink-strong)}.allocation-toggle small{font-size:10px;color:var(--ink-soft);font-weight:400}.manual-allocation{margin-top:10px;border:1px solid var(--line);border-radius:7px;background:var(--ux-surface)}.manual-allocation[hidden]{display:none}.manual-allocation-head{display:flex;justify-content:space-between;padding:8px 10px;border-bottom:1px solid var(--line-soft);font-size:11px}.slot-editor-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(132px,1fr));gap:6px;padding:8px}.slot-editor{margin:0;border:1px solid var(--line);border-radius:6px;padding:7px;background:var(--ux-surface);min-height:48px}.slot-editor.ab{grid-template-columns:16px minmax(0,1fr);align-items:center}.slot-editor.ab input{width:15px;height:15px;min-height:0;padding:0}.slot-editor span{display:grid;min-width:0}.slot-editor bdi{font-family:var(--font-mono);font-size:11px;font-weight:750}.slot-editor small{font-size:9px;color:var(--ink-soft);font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.slot-editor.selected{border-color:var(--ux-info-border);background:var(--ux-info-soft)}.slot-editor.occupied{background:var(--ux-surface-disabled);color:var(--ink-soft)}.slot-editor.g{grid-template-columns:minmax(0,1fr) 64px;align-items:center}.slot-editor.g input{min-height:30px;height:30px;padding:4px 6px;text-align:end}.slot-editor.g.mixed{border-color:var(--ux-warning-border);background:var(--ux-warning-soft)}
@media (min-width:761px){
  .workspace-header{height:58px;min-height:58px;box-sizing:border-box;padding:4px 12px}
  .workspace-heading{display:grid;align-content:center;min-height:0}
  .workspace-description{line-height:1.15}
}

.zone-selector{border:1px solid var(--border-subtle);border-radius:var(--radius-md);padding:var(--space-3);display:flex;gap:var(--space-2);flex-wrap:wrap}.zone-selector legend{font-weight:700;padding:0 var(--space-1)}.zone-selector label{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-2) var(--space-3);border:1px solid var(--border-subtle);border-radius:var(--radius-sm);background:var(--surface-1)}.zone-selector label span{display:grid}.zone-selector small{color:var(--text-muted)}.slot-zone-list{display:grid;gap:var(--space-3)}.slot-zone-section{display:grid;gap:var(--space-2)}.slot-zone-section>header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border-subtle);padding-bottom:var(--space-1)}.slot-editor.zone-disabled{opacity:.45}.slot-editor.zone-disabled input{pointer-events:none}

/* Clean relational Orders */.order-matrix-wrap{overflow:auto}.order-matrix{width:100%;border-collapse:separate;border-spacing:0;font-size:12px}.order-matrix th,.order-matrix td{padding:7px 9px;border-bottom:1px solid var(--line-soft);text-align:start;vertical-align:middle}.order-matrix thead th{position:sticky;top:0;background:var(--surface-2);z-index:2;font-size:10px;text-transform:uppercase;letter-spacing:.04em;color:var(--ink-soft)}.cell-subtext{display:block;color:var(--ink-faint);max-width:180px;overflow:hidden;text-overflow:ellipsis}.order-composer{display:grid;grid-template-rows:auto auto minmax(360px,1fr) auto;min-height:calc(100vh - 145px);overflow:hidden}.order-stepper{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid var(--line);background:var(--surface-2)}.order-step{height:46px;border:0;border-bottom:3px solid transparent;background:transparent;display:flex;align-items:center;justify-content:center;gap:8px;color:var(--ink-soft);font-weight:700}.order-step span{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:var(--surface-3);font-size:11px}.order-step.active{color:var(--blue-700);border-color:var(--blue-600);background:var(--ux-surface)}.order-step.active span{background:var(--blue-600);color:#fff}.order-meta-bar{display:grid;grid-template-columns:180px minmax(260px,1fr) auto;gap:12px;align-items:end;padding:10px 12px;border-bottom:1px solid var(--line);background:var(--ux-surface)}.order-meta-bar label{display:grid;gap:4px;font-size:10px;font-weight:750;color:var(--ink-soft);text-transform:uppercase;letter-spacing:.03em}.order-meta-bar input{height:34px}.order-live-metrics{display:flex;gap:12px;align-items:center;white-space:nowrap;font-size:11px;color:var(--ink-soft)}.order-live-metrics strong{color:var(--ink);font-size:13px}.order-step-panel{overflow:auto;padding:14px}.order-step-copy{margin-bottom:12px}.order-step-copy h2,.matrix-toolbar h2{margin:0 0 3px;font-size:16px}.order-step-copy p,.matrix-toolbar p{margin:0;color:var(--ink-soft);font-size:12px}.store-selection-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px}.selection-card{min-height:58px;border:1px solid var(--line);border-radius:8px;padding:8px 10px;display:grid;grid-template-columns:18px 42px minmax(0,1fr) 18px;gap:8px;align-items:center;background:var(--ux-surface);cursor:pointer}.selection-card>svg{opacity:0}.selection-card.selected{border-color:var(--blue-500);background:var(--blue-50);box-shadow:inset 3px 0 var(--blue-600)}[dir="rtl"] .selection-card.selected{box-shadow:inset -3px 0 var(--blue-600)}.selection-card.selected>svg{opacity:1;color:var(--blue-700)}.selection-card small{display:block;color:var(--ink-soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.store-code{font-weight:800;font-variant-numeric:tabular-nums}.matrix-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:10px}.category-adder{display:flex;gap:7px}.category-adder select{min-width:300px}.order-matrix{min-width:max-content}.order-matrix thead th:not(.matrix-category-head){min-width:88px;text-align:center}.order-matrix thead th:not(.matrix-category-head) strong,.order-matrix thead th:not(.matrix-category-head) small{display:block}.order-matrix thead th:not(.matrix-category-head) small{margin-top:2px;font-size:9px;font-weight:500;letter-spacing:0;text-transform:none;color:var(--ink-faint)}.order-matrix .matrix-category-head,.order-matrix tbody th{position:sticky;inset-inline-start:0;background:var(--ux-surface);z-index:1;min-width:250px;max-width:250px}.order-matrix thead .matrix-category-head{z-index:3;background:var(--surface-2)}.order-matrix tbody th{text-align:start}.order-matrix tbody th strong,.order-matrix tbody th small{display:block}.order-matrix tbody th small{font-weight:400;color:var(--ink-soft);white-space:normal}.matrix-quantity{width:70px;height:32px;text-align:center;padding:4px}.matrix-total{text-align:center!important;font-weight:800;background:var(--surface-2)}.matrix-fill{display:flex;gap:5px;margin-top:5px}.matrix-fill input{width:58px;height:26px}.button.tiny{height:26px;min-height:26px;padding:0 7px;font-size:10px}.order-action-bar{min-height:54px;border-top:1px solid var(--line);background:var(--ux-surface);padding:8px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px}.order-action-end{display:flex;gap:8px}.review-summary{display:grid;grid-template-columns:repeat(4,minmax(100px,1fr));gap:8px;margin-bottom:12px}.review-summary article{border:1px solid var(--line);border-radius:7px;padding:9px 11px;background:var(--ux-surface)}.review-summary span{display:block;font-size:10px;color:var(--ink-soft);text-transform:uppercase}.review-summary strong{font-size:19px}.order-review-list{display:grid;gap:7px}.order-review-store{border:1px solid var(--line);border-radius:7px;background:var(--ux-surface);overflow:hidden}.order-review-store summary{padding:9px 11px;display:flex;justify-content:space-between;align-items:center;cursor:pointer;background:var(--surface-2)}.order-review-store summary small{display:block;color:var(--ink-soft)}.review-line{display:grid;grid-template-columns:56px minmax(0,1fr) 80px;gap:8px;padding:7px 11px;border-top:1px solid var(--line-soft);align-items:center}.review-line>strong{text-align:end}.object-code{font-weight:800;font-variant-numeric:tabular-nums}.submitted-note{margin-top:12px;display:flex;align-items:center;gap:10px}.order-import-modal{display:grid;gap:14px}.order-import-modal h2,.order-import-modal p{margin:0}.file-drop{border:1px dashed var(--blue-400);border-radius:9px;padding:18px;background:var(--blue-50);cursor:pointer}.file-drop input{position:absolute;opacity:0;pointer-events:none}.file-drop>span{display:grid;justify-items:center;gap:5px}.file-drop svg{width:28px;height:28px;color:var(--blue-700)}.file-drop small{color:var(--ink-soft)}.validation-errors{color:var(--red-700);margin:0;padding-inline-start:20px}.page-loading{padding:30px;color:var(--ink-soft)}

/* v125.0.0-clean-staging.6 — dense Approval & Dispatch workspace */.positive-delta{color:#18794e}.negative-delta{color:var(--red-700)}
.approval-workspace{display:grid;grid-template-columns:250px minmax(0,1fr);min-height:560px;overflow:hidden}.dispatch-editor{display:grid;grid-template-columns:auto auto minmax(170px,280px);align-items:center;gap:8px}.dispatch-editor>span{font-size:10px;font-weight:750;color:var(--ink-faint);text-transform:uppercase}.dispatch-editor input{min-height:34px;height:34px;padding:6px 9px}.dispatch-choice{display:flex;border:1px solid var(--line-strong);border-radius:7px;overflow:hidden}.dispatch-choice button{border:0;border-inline-end:1px solid var(--line);background:var(--ux-surface);min-height:32px;padding:0 13px;font-weight:700}.dispatch-choice button:last-child{border-inline-end:0}.dispatch-choice button.active{background:var(--navy-850);color:#fff}.requested-value{color:var(--ink-soft)}.quantity-stepper{display:grid;grid-template-columns:30px 64px 30px;justify-content:start}.quantity-stepper button{border:1px solid var(--line-strong);background:var(--ux-surface);height:32px;font-weight:800}.quantity-stepper button:first-child{border-radius:7px 0 0 7px}.quantity-stepper button:last-child{border-radius:0 7px 7px 0}.quantity-stepper input{min-height:32px;height:32px;border-radius:0;border-inline-width:0;text-align:center;padding:4px;font-variant-numeric:tabular-nums}.event-dot{width:7px;height:7px;border-radius:50%;background:var(--blue-600)}

/* Clean fulfillment and collection workspace */
progress.progress-line{display:block;width:100%;height:6px;border:0;border-radius:999px;overflow:hidden;background:var(--color-surface-muted);appearance:none}progress.progress-line::-webkit-progress-bar{background:var(--color-surface-muted);border-radius:999px}progress.progress-line::-webkit-progress-value{background:var(--color-accent);border-radius:999px;transition:width .18s ease}progress.progress-line::-moz-progress-bar{background:var(--color-accent);border-radius:999px}.collection-order-surface{padding:0}.collection-order-list{display:grid;gap:1px;background:var(--color-border)}.collection-order-card{border:0;background:var(--color-surface);padding:14px 16px;text-align:start;display:grid;gap:10px;cursor:pointer}.collection-order-card:hover{background:var(--color-surface-hover)}.collection-order-card-head,.collection-order-metrics{display:flex;align-items:center;justify-content:space-between;gap:12px}.collection-order-card-head span{display:grid;gap:2px}.collection-order-card-head small,.collection-order-metrics{color:var(--color-text-muted);font-size:12px}.collection-status-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:10px}.collection-status-strip article{background:var(--color-surface);border:1px solid var(--color-border);border-radius:8px;padding:10px 12px;display:grid;grid-template-columns:1fr auto;gap:6px 10px;align-items:center}.collection-status-strip article .progress-line{grid-column:1/-1}.collection-status-strip small{color:var(--color-text-muted)}.collection-workspace{display:grid;grid-template-columns:280px minmax(0,1fr);min-height:520px;border:1px solid var(--color-border);border-radius:8px;overflow:hidden;background:var(--color-surface)}.collection-store-rail{background:var(--color-surface-subtle);border-inline-end:1px solid var(--color-border);overflow:auto}.collection-store{width:100%;border:0;border-bottom:1px solid var(--color-border);background:transparent;padding:11px 12px;text-align:start;display:grid;gap:7px;cursor:pointer}.collection-store.selected{background:var(--ux-surface-selected);box-shadow:inset 4px 0 0 var(--ux-accent)}.collection-store>div{display:flex;justify-content:space-between;gap:8px}.collection-store>div>span{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}.collection-store small{color:var(--color-text-muted)}.collection-line-panel{min-width:0}.collection-store-header{padding:14px 16px;border-bottom:1px solid var(--color-border);display:flex;justify-content:space-between;gap:16px;align-items:center}.collection-store-header h2{margin:4px 0;font-size:18px}.collection-store-header p{margin:0;color:var(--color-text-muted)}.store-progress-large{text-align:end;display:grid;gap:2px}.store-progress-large strong{font-size:25px}.store-progress-large span{font-size:12px;color:var(--color-text-muted)}.dispatch-mini{display:inline-flex;padding:2px 7px;border-radius:999px;font-size:11px;font-weight:700;background:var(--ux-neutral-soft)}.dispatch-mini.katz{background:var(--ux-success-soft);color:var(--ux-success)}.dispatch-mini.driver{background:var(--ux-warning-soft);color:var(--ux-warning-ink)}.collection-lines{display:grid}.collection-line{display:grid;grid-template-columns:minmax(220px,1fr) minmax(130px,220px) auto;gap:14px;align-items:center;padding:10px 14px;border-bottom:1px solid var(--color-border)}.collection-line.complete{background:var(--ux-success-soft)}.collection-line.pending{box-shadow:inset 3px 0 0 #d18b18}.collection-line-copy{display:flex;gap:10px;align-items:center;min-width:0}.collection-line-copy>div{display:grid;min-width:0}.collection-line-copy strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.collection-line-copy small{color:var(--color-text-muted)}.collection-line-progress{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;font-variant-numeric:tabular-nums}.collection-controls{display:flex;align-items:center;gap:5px}.collection-control{width:36px;height:34px;border:1px solid var(--color-border-strong);background:var(--ux-surface);border-radius:6px;font-size:20px;line-height:1;cursor:pointer}.collection-controls input{width:54px;height:34px;text-align:center;border:1px solid var(--color-border-strong);border-radius:var(--ui-radius-control);font-weight:700}.collection-banner{display:flex;align-items:center;gap:10px;border-radius:7px;padding:9px 12px;margin-bottom:10px;border:1px solid}.collection-banner>span{display:grid;flex:1}.collection-banner small{opacity:.78}.collection-banner.info{background:var(--ux-info-soft);border-color:var(--ux-info-border)}.collection-banner.warning{background:var(--ux-warning-soft);border-color:var(--ux-warning-border)}.collection-banner.error{background:var(--ux-danger-soft);border-color:var(--ux-danger-border)}

/* v125.0.0-clean-staging.7.1 Collection interaction refinements */
.collection-sync-summary{min-width:0}.collection-sync-summary small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.collection-sync-summary[data-sync-state="progress"]{border-color:var(--ux-info-border);background:var(--ux-info-soft)}.collection-sync-summary[data-sync-state="warning"]{border-color:var(--ux-warning-border);background:var(--ux-warning-soft)}.collection-sync-summary[data-sync-state="error"]{border-color:var(--ux-danger-border);background:var(--ux-danger-soft)}.collection-control:disabled,.collection-all:disabled{cursor:not-allowed;opacity:.38;filter:saturate(.35);box-shadow:none}.collection-control:disabled{background:var(--color-surface-muted);border-color:var(--color-border);color:var(--color-text-muted)}.collection-all:disabled{background:var(--color-surface-muted);border-color:var(--color-border);color:var(--color-text-muted)}.collection-operation-panel{position:fixed;z-index:89;inset-inline-end:var(--space-4);bottom:var(--space-4);width:min(390px,calc(100vw - var(--sidebar-width) - 32px));display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 12px;border:1px solid;border-radius:var(--radius-lg);box-shadow:var(--shadow-menu);background:var(--ux-surface)}.collection-operation-panel[hidden]{display:none!important}.collection-operation-panel>span:not(.status-spinner){display:grid;min-width:0}.collection-operation-panel strong{font-size:12px}.collection-operation-panel small{font-size:10px;opacity:.78;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.collection-operation-panel .app-icon{width:18px;height:18px}.collection-operation-panel.info{background:var(--ux-info-soft);border-color:var(--ux-info-border);color:var(--ux-info)}.collection-operation-panel.warning{background:var(--ux-warning-soft);border-color:var(--ux-warning-border);color:var(--ux-warning-ink)}.collection-operation-panel.error{background:var(--ux-danger-soft);border-color:var(--ux-danger-border);color:var(--ux-danger)}


/* v125.0.0-clean-staging.11.1 — session resilience */
.auth-notice{display:flex;gap:10px;align-items:flex-start;margin:0 0 var(--space-4);padding:11px 12px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface-subtle)}.auth-notice .app-icon{width:20px;height:20px;flex:0 0 auto;margin-top:1px}.auth-notice span{display:grid;gap:2px}.auth-notice strong{font-size:13px}.auth-notice small{margin:0;font-family:inherit;font-size:12px;color:var(--ink-soft)}.auth-notice.info{border-color:var(--ux-info-border);background:var(--ux-info-soft);color:var(--ux-info)}.auth-notice.warning{border-color:var(--ux-warning-border);background:var(--ux-warning-soft);color:var(--ux-warning-ink)}.auth-notice.error{border-color:var(--ux-danger-border);background:var(--ux-danger-soft);color:var(--ux-danger)}.auth-discard{width:100%;margin-top:10px}.auth-choice-actions{display:grid;gap:10px;margin-top:var(--space-5)}.auth-choice-actions .button{width:100%}

/* v125.0.0-clean-staging.11.1 — authoritative refresh and session revocation */
.topbar-refresh-group{display:flex;align-items:center;gap:7px;min-width:0}.topbar-refresh{min-width:104px}.topbar-refresh[aria-busy="true"]{cursor:wait}.topbar-refresh .status-spinner{width:15px;height:15px}.topbar-refresh-feedback{min-width:88px;max-width:132px;color:var(--ink-faint);font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar-refresh:disabled{opacity:.72}

.operations-progress-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:10px}.operations-progress-strip article{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:10px 12px}.operations-progress-card progress,.operations-progress-card small{grid-column:1/-1}.operations-dispatch-context{display:grid;grid-template-columns:1fr auto;gap:6px}.operations-dispatch-context small{grid-column:1/-1}.selected-store-status{display:flex;gap:6px;align-items:center}

/* v125.0.0-clean-staging.17.2 — in-site confirmations */
.site-confirm-host{position:fixed;z-index:calc(var(--z-toast) + 10);inset:0}.site-confirm-backdrop{position:absolute;inset:0;background:var(--ux-scrim);backdrop-filter:blur(3px);display:grid;place-items:center;padding:20px}.site-confirm{width:min(460px,100%);background:var(--ux-surface);border:1px solid var(--line);border-radius:14px;box-shadow:0 24px 80px rgba(7,17,29,.32);padding:20px;display:grid;grid-template-columns:42px minmax(0,1fr);gap:14px}.site-confirm-icon{width:42px;height:42px;border-radius:10px;display:grid;place-items:center;background:var(--amber-100);color:var(--amber-800)}.site-confirm-icon[data-tone="danger"]{background:var(--red-100);color:var(--red-700)}.site-confirm-icon .app-icon{width:22px;height:22px}.site-confirm-copy h2{margin:0 0 6px;font-size:18px;color:var(--ink-strong)}.site-confirm-copy p{margin:0;color:var(--ink-soft);line-height:1.45}.site-confirm-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:var(--ui-gap);margin-top:4px}
@media(max-width:760px){.site-confirm-backdrop{align-items:end;padding:0}.site-confirm{width:100%;border-radius:18px 18px 0 0;padding:20px 16px calc(18px + var(--mobile-safe-bottom))}.site-confirm-actions .button{flex:1}}



:root{
  /* Semantic appearance contract. Theme work changes values here, not route selectors. */
  --ux-canvas:#f3f5f8;
  --ux-app-bg:#f4f7fa;
  --ux-surface:#ffffff;
  --ux-surface-muted:#f7f8fa;
  --ux-surface-subtle:#f7f9fb;
  --ux-surface-hover:#f4f7fb;
  --ux-surface-selected:#eaf2ff;
  --ux-surface-selected-strong:#dceafe;
  --ux-field:#f8fafc;
  --ux-field-focus:#ffffff;
  --ux-surface-inset:#f8fafc;
  --ux-surface-header:#f5f7fa;
  --ux-surface-well:#f2f5f8;
  --ux-surface-disabled:#eef2f6;
  --ux-surface-sunken:#edf1f5;
  /* Phase 2B — route-local neutral families promoted into the theme contract. */
  --ux-surface-raised:#fbfcfe;
  --ux-neutral-surface:#e9edf2;
  --ux-neutral-soft:#eef1f4;
  --ux-progress-track:#e6ebf1;
  --ux-skeleton-sheen:rgba(255,255,255,.7);
  --ux-ink-secondary:#657383;
  --ux-ink-secondary-soft:#687385;
  --ux-ink-secondary-strong:#5d6b79;
  --ux-neutral-ink:#52606d;
  --ux-border-muted:#dbe2ea;
  --ux-border-card:#d7e0e9;
  --ux-border-panel:#e1e7ee;
  --ux-neutral-border:#d6dce3;
  /* Physical Warehouse map state language: preserve meaning while allowing theme-specific contrast. */
  --ux-location-free-bg:#f2faf4;
  --ux-location-free-border:#79a984;
  --ux-location-current-bg:#e5f0fd;
  --ux-location-current-border:#5d8fc8;
  --ux-location-partial-bg:#fff7e5;
  --ux-location-partial-border:#bd8b3e;
  --ux-location-reserved-bg:#faf7ef;
  --ux-location-reserved-border:#8c7a55;
  --ux-location-full-bg:#667488;
  --ux-location-full-border:#667488;
  --ux-location-full-ink:#ffffff;
  --ux-location-full-muted:#eef2f6;
  --ux-location-occupied-bg:#e9edf1;
  --ux-location-occupied-border:#a7b0ba;
  --ux-location-blocked-a:#f0f2f4;
  --ux-location-blocked-b:#e2e5e9;
  --ux-location-blocked-border:#9aa5b1;
  --ux-location-blocked-opacity:.55;
  --ux-location-selected-bg:#d9e9f9;
  --ux-location-selected-border:#0b4f87;
  --ux-location-selected-muted:#315675;
  --ux-location-selected-ring:rgba(11,79,135,.34);
  --ux-location-selected-inner:rgba(255,255,255,.96);
  --ux-location-draft:#aa7300;
  /* Directional structural edges. These are subtle in Light and rebalanced in Dark. */
  --ux-surface-edge-top:rgba(255,255,255,.96);
  --ux-surface-edge-right:rgba(91,108,129,.055);
  --ux-surface-edge-bottom:rgba(78,96,118,.145);
  --ux-surface-edge-left:rgba(255,255,255,.58);
  --ux-surface-edge-shadow:inset 0 1px 0 rgba(255,255,255,.72),inset 1px 0 0 rgba(255,255,255,.30),inset 0 -1px 0 rgba(78,96,118,.045),0 1px 2px rgba(19,32,51,.035);
  --ux-surface-divider:color-mix(in srgb,var(--ux-border) 58%,transparent);
  --ux-ink-strong:#132235;
  --ux-ink:#172033;
  --ux-ink-muted:#58677a;
  --ux-ink-faint:#7b8797;
  --ux-border:#dbe1e8;
  --ux-border-subtle:#e9eef3;
  --ux-border-strong:#bcc7d4;
  --ux-border-hover:#b2bdc9;
  --ux-border-hover-subtle:#98a9b9;
  --ux-border-hover-strong:#9cabb9;
  --ux-placeholder:#8a98a8;
  --ux-control-disabled:#eef2f5;
  --ux-topbar-bg:rgba(255,255,255,.95);
  --ux-scrim:rgba(7,17,29,.58);
  --ux-focus-outline:rgba(36,99,212,.48);
  /* Transitional compatibility values preserve the audited light UI while legacy consumers migrate in Phase 2. */
  --ux-compat-canvas:#eef2f6;
  --ux-compat-surface-selected:#eef5ff;
  --ux-compat-ink:#26384d;
  --ux-compat-ink-soft:#53657a;
  --ux-compat-ink-faint:#748397;
  --ux-compat-border:#d8e0e8;
  --ux-compat-border-strong:#b9c5d1;
  --ux-accent:#2463d4;
  --ux-accent-hover:#1d53b8;
  --ux-accent-soft:#eaf2ff;
  --ux-teal:#0b7a75;
  --ux-teal-soft:#e5f5f3;
  --ux-success:#197447;
  --ux-success-soft:#e8f6ee;
  --ux-success-border:#b9e5ca;
  --ux-info:#285d94;
  --ux-info-soft:#e9f2fb;
  --ux-info-border:#c8dff2;
  --ux-warning:#9a5c0a;
  --ux-warning-soft:#fff4df;
  --ux-warning-border:#d6a84b;
  --ux-warning-ink:#76520a;
  --ux-danger:#b1322f;
  --ux-error:var(--ux-danger);
  --ux-error-soft:var(--ux-danger-soft);
  --ux-danger-hover:#922825;
  --ux-danger-soft:#fdeceb;
  --ux-danger-border:#e3aaa7;
  --ux-excess:#62379a;
  --ux-excess-soft:#f5efff;
  --ux-excess-border:#d8c4f4;
  --ux-brand-stage-center:#f6f2e7;
  --ux-brand-stage-mid:#e5e0d5;
  --ux-brand-stage-edge:#bbb8b2;
  --ux-brand-wordmark-light-opacity:1;
  --ux-brand-wordmark-dark-opacity:0;
  --ux-nav:#172237;
  --ux-nav-deep:#111a2a;
  --ux-nav-text:#b8c4d3;
  --ux-nav-selected:#263b5d;
  --ux-radius:7px;
  --ux-radius-md:var(--radius-md);
  --ux-radius-lg:9px;
  --ux-control-height:var(--ui-control-height);
  --ux-control-pad-x:var(--ui-control-pad-x);
  --ux-control-radius:var(--ui-radius-control);
  --ux-focus-ring:0 0 0 2px rgba(36,99,212,.11);
  --ux-shadow-float:0 12px 34px rgba(19,32,51,.16);

  /* aliases used by established workflow CSS */
  --surface-1:var(--ux-surface);
  --surface-2:var(--ux-surface-muted);
  --surface-3:var(--ux-surface-sunken);
  --blue-50:var(--ux-accent-soft);
  --blue-400:#6e9ce4;
  --border-subtle:var(--ux-border);
  --text-muted:var(--ux-ink-muted);
  --color-surface:var(--ux-surface);
  --color-surface-muted:var(--ux-neutral-surface);
  --color-surface-subtle:var(--ux-surface-muted);
  --color-surface-hover:var(--ux-surface-hover);
  --color-border:var(--ux-border);
  --color-border-strong:var(--ux-border-strong);
  --color-text-muted:var(--ux-ink-muted);
  --color-accent:var(--ux-accent);
}

/* Theme palette only: components keep consuming semantic tokens. */
:root[data-ui-theme="dark"]{
  color-scheme:dark;
  --ux-canvas:#0f141b;
  --ux-app-bg:#121821;
  --ux-surface:#18202a;
  --ux-surface-muted:#1d2631;
  --ux-surface-subtle:#202a36;
  --ux-surface-hover:#253242;
  --ux-surface-selected:#183a63;
  --ux-surface-selected-strong:#204a7a;
  --ux-field:#141b24;
  --ux-field-focus:#1b2531;
  --ux-surface-inset:#151d27;
  --ux-surface-header:#1b2530;
  --ux-surface-well:#151c25;
  --ux-surface-disabled:#202833;
  --ux-surface-sunken:#10161e;
  --ux-surface-raised:#202a35;
  --ux-neutral-surface:#2a3542;
  --ux-neutral-soft:#232e3a;
  --ux-progress-track:#303b48;
  --ux-skeleton-sheen:rgba(255,255,255,.08);
  --ux-ink-secondary:#a9b6c4;
  --ux-ink-secondary-soft:#9daaba;
  --ux-ink-secondary-strong:#b7c3ce;
  --ux-neutral-ink:#c0cad5;
  --ux-border-muted:#354251;
  --ux-border-card:#364452;
  --ux-border-panel:#2d3946;
  --ux-neutral-border:#3c4856;
  --ux-location-free-bg:#173226;
  --ux-location-free-border:#4f8f66;
  --ux-location-current-bg:#183651;
  --ux-location-current-border:#4f84bb;
  --ux-location-partial-bg:#372b16;
  --ux-location-partial-border:#9a7437;
  --ux-location-reserved-bg:#332b1d;
  --ux-location-reserved-border:#a6854b;
  --ux-location-full-bg:#58687a;
  --ux-location-full-border:#728398;
  --ux-location-full-ink:#f4f7fa;
  --ux-location-full-muted:#dbe5ef;
  --ux-location-occupied-bg:#2d3946;
  --ux-location-occupied-border:#596a7d;
  --ux-location-blocked-a:#27313c;
  --ux-location-blocked-b:#323d49;
  --ux-location-blocked-border:#596a7d;
  --ux-location-blocked-opacity:.78;
  --ux-location-selected-bg:#244b73;
  --ux-location-selected-border:#79afe6;
  --ux-location-selected-muted:#c7d8e9;
  --ux-location-selected-ring:rgba(121,175,230,.30);
  --ux-location-selected-inner:rgba(255,255,255,.07);
  --ux-location-draft:#d6a84b;
  --ux-surface-edge-top:color-mix(in srgb,var(--ux-border-strong) 62%,transparent);
  --ux-surface-edge-right:color-mix(in srgb,var(--ux-border) 42%,transparent);
  --ux-surface-edge-bottom:color-mix(in srgb,var(--ux-border) 72%,transparent);
  --ux-surface-edge-left:color-mix(in srgb,var(--ux-border-strong) 50%,transparent);
  --ux-surface-edge-shadow:inset 0 1px 0 rgba(255,255,255,.028),inset 1px 0 0 rgba(255,255,255,.014),0 1px 2px rgba(0,0,0,.16);
  --ux-ink-strong:#edf3f9;
  --ux-ink:#dbe5ef;
  --ux-ink-muted:#a8b5c4;
  --ux-ink-faint:#8493a4;
  --ux-border:#33404e;
  --ux-border-subtle:#283440;
  --ux-border-strong:#4a5a6b;
  --ux-border-hover:#607184;
  --ux-border-hover-subtle:#6c7f92;
  --ux-border-hover-strong:#718396;
  --ux-placeholder:#7f8fa1;
  --ux-control-disabled:#222b35;
  --ux-topbar-bg:rgba(15,20,27,.95);
  --ux-scrim:rgba(0,0,0,.7);
  --ux-focus-outline:rgba(99,155,246,.68);
  --ux-compat-canvas:#111821;
  --ux-compat-surface-selected:#193b65;
  --ux-compat-ink:#d7e2ec;
  --ux-compat-ink-soft:#a8b6c6;
  --ux-compat-ink-faint:#8392a4;
  --ux-compat-border:#354352;
  --ux-compat-border-strong:#4b5b6c;
  --ux-accent:#4f8fe9;
  --ux-accent-hover:#649ff0;
  --ux-accent-soft:#172f4e;
  --ux-teal:#5bc1ba;
  --ux-teal-soft:#143a39;
  --ux-success:#5fc48a;
  --ux-success-soft:#173a2a;
  --ux-success-border:#2f6d4a;
  --ux-info:#79afe6;
  --ux-info-soft:#18324d;
  --ux-info-border:#315d86;
  --ux-warning:#e0aa4b;
  --ux-warning-soft:#3a2c12;
  --ux-warning-border:#745720;
  --ux-warning-ink:#f0c76f;
  --ux-danger:#ef7b76;
  --ux-danger-hover:#f08d88;
  --ux-danger-soft:#421f22;
  --ux-danger-border:#7d3b3e;
  --ux-excess:#c9a0f4;
  --ux-excess-soft:#30233f;
  --ux-excess-border:#61467d;
  --ux-nav:#0c121a;
  --ux-nav-deep:#080d13;
  --ux-nav-text:#a9b7c7;
  --ux-nav-selected:#203750;
  --ux-focus-ring:0 0 0 2px rgba(79,143,233,.22);
  --ux-shadow-float:0 12px 34px rgba(0,0,0,.38);
  --ux-brand-stage-center:#25241f;
  --ux-brand-stage-mid:#1a1b1b;
  --ux-brand-stage-edge:#0e1115;
  --ux-brand-wordmark-light-opacity:0;
  --ux-brand-wordmark-dark-opacity:1;
  --navy-950:#080e15;--navy-900:#0d1621;--navy-850:#15283b;--navy-800:#1c354d;
  --blue-700:#78ace5;--blue-600:#5d97dc;--blue-500:#4f89c5;--blue-100:#18324f;
  --teal-700:#64c5c0;--teal-100:#153b39;
  --green-700:#63c58b;--green-100:#173b2b;
  --amber-800:#e1ad53;--amber-100:#3b2d14;
  --red-700:#ef7d78;--red-100:#431f22;
  --shadow-menu:0 16px 48px rgba(0,0,0,.5);
  --shadow-sticky:0 -8px 26px rgba(0,0,0,.24);
}

html,body,#app{background:var(--ux-canvas)}
body{color:var(--ux-ink);font-size:13px;line-height:1.38;letter-spacing:-.003em}
button,input,select,textarea{font-size:13px}
button:focus-visible,summary:focus-visible{outline:2px solid var(--ux-focus-outline);outline-offset:2px}

/* Canonical site-wide native form geometry. Specialized operational widgets may override this component contract. */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]),select:not([multiple]){width:100%;min-height:var(--ux-control-height);height:var(--ux-control-height);border:1px solid var(--ux-border);border-radius:var(--ux-control-radius);background:var(--ux-surface);color:var(--ink-strong);padding:3px var(--ux-control-pad-x);outline:none;box-shadow:none;transition:border-color .15s,box-shadow .15s,background .15s}
textarea{width:100%;border:1px solid var(--ux-border);border-radius:var(--ux-control-radius);background:var(--ux-surface);color:var(--ink-strong);outline:none;box-shadow:none;transition:border-color .15s,box-shadow .15s,background .15s}
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]):hover,select:not([multiple]):hover,textarea:hover{border-color:var(--ux-border-hover)}
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]):focus,select:not([multiple]):focus,textarea:focus{border-color:var(--ux-accent);box-shadow:var(--ux-focus-ring)}
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]):focus-visible,select:not([multiple]):focus-visible,textarea:focus-visible{outline:none}
input[type="date"]::-webkit-calendar-picker-indicator{width:14px;height:14px;margin:0;padding:0;opacity:.58;cursor:pointer}
label{gap:4px;margin-bottom:10px;font-size:12px}


/* One semantic button family. Geometry is defined once in the canonical button contract below. */
.button.primary{background:var(--ux-accent);border-color:var(--ux-accent);color:#fff}
.button.primary:hover:not(:disabled){background:var(--ux-accent-hover);border-color:var(--ux-accent-hover)}
.button.success,.button.success:disabled{background:var(--ux-success);border-color:var(--ux-success);color:#fff;opacity:1}.button.success .app-icon,.button.success span{color:#fff}
.button.secondary{background:var(--ux-surface);border-color:var(--ux-border-strong);color:var(--ux-ink)}
.button.secondary:hover:not(:disabled){background:var(--ux-surface-hover);border-color:#9eadbd}
.button.tertiary{color:var(--ux-accent);background:transparent;border-color:transparent}
.button.tertiary:hover:not(:disabled){background:var(--blue-100)}
.button.ghost{color:var(--ink-strong);background:transparent;border-color:transparent}
.button.ghost:hover:not(:disabled){background:var(--ux-surface-hover)}
.button.danger{background:var(--ux-danger);border-color:var(--ux-danger);color:#fff}
.button.danger:hover:not(:disabled){background:var(--ux-danger-hover);border-color:var(--ux-danger-hover)}
.button.danger-outline,.button.danger.subtle{border-color:#e4aaa7;color:var(--ux-danger);background:var(--ux-surface)}
.button.danger-outline:hover:not(:disabled),.button.danger.subtle:hover:not(:disabled){background:var(--ux-danger-soft)}
.button:disabled,.collection-control:disabled{opacity:.42;filter:saturate(.45);box-shadow:none}

/* Application shell */
.app-shell{padding-inline-start:var(--sidebar-width)}
.sidebar{width:var(--sidebar-width);background:linear-gradient(180deg,var(--ux-nav),var(--ux-nav-deep));border-inline-end:1px solid rgba(255,255,255,.055)}
.sidebar-brand{height:var(--topbar-height);padding-inline:11px;gap:8px;background:rgba(5,12,23,.16)}
.sidebar-brand img{width:27px;height:27px;padding:1.5px}
.sidebar-brand-copy strong{font-size:12.5px;font-weight:720}
.sidebar-brand-copy span{font-size:8.5px;color:#8f9db0}
.sidebar-nav{padding:10px 7px;gap:2px}
.nav-item{min-height:35px;grid-template-columns:19px minmax(0,1fr);gap:9px;border-radius:6px;padding:0 9px;color:var(--ux-nav-text);font-size:12.5px;font-weight:610}
.nav-item .app-icon{width:17px;height:17px}
.nav-item:hover{background:rgba(255,255,255,.055)}
.nav-item.active{background:var(--ux-nav-selected);border-color:rgba(124,169,231,.2);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.025)}
.nav-item.active::before{inset-inline-start:-7px;width:3px;height:19px;background:#72a7f0}
.sidebar-footer{padding:7px}

.topbar{height:var(--topbar-height);padding:0 12px;background:var(--ux-topbar-bg);border-bottom-color:var(--ux-border);backdrop-filter:blur(10px)}
.topbar-start,.topbar-end{gap:9px}
.main-content{max-width:none;margin:0;padding:10px 12px 18px}

/* Workspace identity is a compact application header, not a card/hero. */
.workspace-header{min-height:52px;margin:0 0 8px;padding:4px 2px;background:transparent;border:0;border-radius:0;gap:14px}
.workspace-eyebrow{font-size:9px;color:var(--ux-accent);letter-spacing:.055em}
.workspace-title-row{gap:8px}
.workspace-title-row h1{font-size:var(--ui-type-page-title);line-height:1.12;font-weight:735;color:var(--ux-ink)}
.workspace-meta{padding:2px 7px;font-size:10.5px;border-radius:5px;background:var(--ux-neutral-surface);border-color:var(--ux-neutral-border);color:var(--ux-neutral-ink)}
.workspace-description{margin:1px 0 0;font-size:11.5px;color:var(--ux-ink-muted)}
.workspace-actions{gap:6px}

/* Shared work surfaces */
.task-toolbar{min-height:42px;margin-bottom:7px;padding:4px 5px;border-radius:var(--ux-radius);border-color:var(--ux-border);gap:5px;box-shadow:0 1px 1px rgba(19,32,51,.02)}
.toolbar-search{min-width:230px}.toolbar-search input{height:32px;min-height:32px}
.toolbar-search .app-icon{inset-inline-start:10px;width:15px;height:15px}
.toolbar-search input{padding-inline-start:32px}



.panel,.work-surface{border-color:var(--ux-border);border-radius:var(--ux-radius-lg);box-shadow:none}
.panel{padding:14px;margin-bottom:8px}
.panel h2{font-size:14.5px;font-weight:720}
.panel p{font-size:11.5px;line-height:1.45}
.work-surface{min-height:300px}


/* Dashboard: one compact KPI rail, one operational list, quiet shortcuts. */
.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin-bottom:8px;background:var(--ux-surface);border:1px solid var(--ux-border);border-radius:var(--ux-radius-lg);overflow:hidden}
.metric-card{min-height:64px;border:0;border-inline-end:1px solid var(--ux-border);border-radius:0;padding:9px 12px;grid-template-columns:31px minmax(0,1fr);gap:9px;background:transparent}
.metric-card:last-child{border-inline-end:0}
.metric-icon{width:31px;height:31px;border-radius:6px}.metric-icon .app-icon{width:17px;height:17px}
.metric-card span{font-size:10.5px}.metric-card strong{font-size:19px}.metric-card small{font-size:9.5px}
.metric-grid.is-three{grid-template-columns:repeat(3,minmax(0,1fr))}

/* Status and feedback */
:is(.ui-status-chip,.status-badge){min-height:22px;padding:2px 7px;border-radius:999px;font-size:var(--ui-type-caption);gap:4px}
:is(.ui-status-chip,.status-badge) .app-icon{width:12px;height:12px}
.toast-host{inset-block-start:52px;inset-inline-end:12px;width:min(340px,calc(100vw - 24px));gap:6px}
.toast{min-height:38px;padding:8px 10px;border-radius:7px;box-shadow:var(--ux-shadow-float);font-size:12px}
#global-status{bottom:12px;inset-inline-end:12px;min-width:260px;max-width:390px;border-radius:8px;padding:9px 11px;box-shadow:var(--ux-shadow-float)}

/* Dense operational tables */
.inventory-summary-row.expanded td{background:var(--ux-surface-selected)}
.row-expander{width:27px;height:27px}
.slot-detail-panel{background:var(--ux-surface-subtle);border-color:var(--ux-border-card);border-inline-start:3px solid var(--ux-accent);padding:9px}
.slot-grid{gap:5px}.slot-card{border-radius:6px;padding:7px}.slot-card-head{font-size:10.5px}

/* Orders */
.order-matrix{font-size:11px}
.order-matrix th,.order-matrix td{padding:5px 7px}
.order-composer{min-height:calc(100vh - 115px);grid-template-rows:auto auto minmax(360px,1fr) auto;border-radius:var(--ux-radius-lg)}
.order-stepper{background:var(--ux-surface-muted)}.order-step{height:38px;font-size:11.5px;border-bottom-width:2px}.order-step span{width:19px;height:19px;font-size:9.5px}
.order-meta-bar{grid-template-columns:160px minmax(240px,1fr) auto;padding:7px 9px;gap:9px}.order-meta-bar input{height:30px;min-height:30px}.order-live-metrics{font-size:10px;gap:9px}.order-live-metrics strong{font-size:11.5px}
.order-step-panel{padding:10px}.order-step-copy{margin-bottom:8px}.order-step-copy h2,.matrix-toolbar h2{font-size:14px}.order-step-copy p,.matrix-toolbar p{font-size:10.5px}
.store-selection-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:5px}.selection-card{min-height:50px;border-radius:6px;padding:6px 8px;grid-template-columns:16px 38px minmax(0,1fr) 16px;gap:6px}.selection-card.selected{background:var(--ux-surface-selected);border-color:#8eb2e6;box-shadow:inset 3px 0 var(--ux-accent)}
.matrix-toolbar{margin-bottom:7px}.category-adder select{min-width:260px}
.order-matrix thead th{height:32px}.order-matrix .matrix-category-head,.order-matrix tbody th{min-width:220px;max-width:220px}.matrix-quantity{width:62px;height:29px;min-height:29px}.matrix-fill input{height:24px;min-height:24px}
.order-action-bar{min-height:46px;padding:6px 9px}.review-summary{gap:5px;margin-bottom:8px}.review-summary article{padding:7px 9px;border-radius:6px}.review-summary strong{font-size:16px}
.order-review-list{gap:4px}.order-review-store{border-radius:6px}.order-review-store summary{padding:7px 9px}.review-line{padding:5px 9px}

/* Approval and dispatch */
.approval-workspace{grid-template-columns:230px minmax(0,1fr);min-height:540px}.dispatch-editor{gap:5px}.dispatch-choice button{min-height:29px;padding:0 10px;font-size:11px}.dispatch-editor input{height:30px;min-height:30px}.quantity-stepper{grid-template-columns:27px 57px 27px}.quantity-stepper button,.quantity-stepper input{height:29px;min-height:29px}

/* Progress hierarchy: one dominant order bar, quieter subordinate bars. */
progress.progress-line{height:3px;background:var(--ux-progress-track)}
progress.progress-line::-webkit-progress-bar{background:var(--ux-progress-track)}
progress.progress-line::-webkit-progress-value,progress.progress-line::-moz-progress-bar{background:#7f9fc8}
progress.progress-primary{height:8px}
progress.progress-primary::-webkit-progress-value,progress.progress-primary::-moz-progress-bar{background:var(--ux-accent)}
progress.progress-secondary{height:5px}
progress.progress-secondary::-webkit-progress-value,progress.progress-secondary::-moz-progress-bar{background:var(--ux-teal)}
progress.progress-compact{height:3px}
progress.progress-compact::-webkit-progress-value,progress.progress-compact::-moz-progress-bar{background:#8ba5c7}
progress.progress-micro{height:3px}
progress.progress-micro::-webkit-progress-value,progress.progress-micro::-moz-progress-bar{background:#6d92c3}
.collection-line.complete progress.progress-micro::-webkit-progress-value,.collection-line.complete progress.progress-micro::-moz-progress-bar{background:var(--ux-success)}

/* Collection */
.collection-order-list{gap:0}.collection-order-card{padding:10px 12px;gap:7px}.collection-order-card:hover{background:var(--ux-surface-selected)}
.collection-status-strip{grid-template-columns:minmax(0,1.45fr) minmax(0,1fr) minmax(180px,.7fr);gap:6px;margin-bottom:7px}
.collection-status-strip article{min-height:58px;border-radius:var(--ux-radius);padding:7px 10px;gap:4px 8px}
.collection-status-strip article:first-child{border-color:var(--ux-info-border);background:var(--ux-info-soft)}.collection-status-strip article:nth-child(2){background:var(--ux-success-soft)}
.collection-status-strip span{font-size:10.5px;color:var(--ux-ink-muted)}.collection-status-strip strong{font-size:17px}.collection-status-strip small{font-size:9.5px}
.collection-sync-summary{align-content:center}.collection-sync-summary strong{font-size:16px}
.collection-workspace{grid-template-columns:244px minmax(0,1fr);min-height:540px;border-radius:var(--ux-radius-lg)}
.collection-store-rail{background:var(--ux-surface-muted)}.collection-store{padding:8px 9px;gap:5px;min-height:61px}.collection-store.selected{background:var(--ux-surface-selected-strong);box-shadow:inset 4px 0 var(--ux-accent)}
.collection-store>div{gap:5px}.collection-store>div>strong{font-size:11.5px}.collection-store small{font-size:9.5px}.collection-store .status-badge{padding:1px 5px}
.collection-store-header{min-height:65px;padding:8px 12px}.collection-store-header h2{margin:2px 0;font-size:16px}.collection-store-header p{font-size:10.5px}.store-progress-large strong{font-size:21px}.store-progress-large span{font-size:10.5px}
.collection-line{grid-template-columns:minmax(210px,1fr) minmax(110px,190px) auto;gap:10px;padding:7px 11px;min-height:49px}.collection-line.complete{background:var(--ux-success-soft)}.collection-line.pending{box-shadow:inset 3px 0 var(--ux-warning)}
.collection-line-copy{gap:7px}.collection-line-copy strong{font-size:11.5px}.collection-line-copy small{font-size:9.5px}.collection-line-progress{font-size:10.5px;gap:6px}
.collection-controls{gap:4px}.collection-control{width:31px;height:30px;border-radius:5px;font-size:17px}.collection-controls input{width:49px;height:30px;min-height:30px;border-radius:5px;font-size:12px}
.collection-operation-panel{border-radius:8px;box-shadow:var(--ux-shadow-float)}

/* Account: controlled configuration screen, not a promotional card. */

/* Dialogs */
.modal-backdrop{background:rgba(17,26,42,.42);backdrop-filter:blur(2px)}
.modal{border-radius:var(--ui-radius-panel);box-shadow:0 22px 70px rgba(17,26,42,.24)}
.modal-body{padding:18px}.modal-close{width:31px;height:31px}

/* RTL selected markers */
[dir="rtl"] .nav-item.active::before{border-radius:999px 0 0 999px}
[dir="rtl"] .selection-card.selected,[dir="rtl"] .collection-store.selected{box-shadow:inset -4px 0 var(--ux-accent)}

@media(max-width:1120px){
  .collection-workspace{grid-template-columns:220px minmax(0,1fr)}
  .approval-workspace{grid-template-columns:215px minmax(0,1fr)}
}

@media(max-width:760px){
  .app-shell{padding-inline-start:0;padding-bottom:var(--mobile-bottom-nav)}
  .topbar{height:var(--topbar-height);padding:0 8px}
  .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0}.metric-card{min-height:61px;border-bottom:1px solid var(--ux-border)}.metric-card:nth-child(2n){border-inline-end:0}.metric-card:nth-last-child(-n+2){border-bottom:0}
  .metric-grid.is-three{grid-template-columns:repeat(3,minmax(0,1fr))}.metric-grid.is-three .metric-card{grid-template-columns:1fr;min-height:61px;padding-inline:10px;border-bottom:0}.metric-grid.is-three .metric-card:nth-child(2n){border-inline-end:1px solid var(--ux-border)}.metric-grid.is-three .metric-card:last-child{border-inline-end:0}.metric-grid.is-three .metric-icon{display:none}
  .panel{padding:11px;margin-bottom:7px}.work-surface{border-radius:7px}
  .order-composer{min-height:calc(100vh - 135px)}.order-step{height:39px}.order-meta-bar{padding:7px}.order-step-panel{padding:8px}.store-selection-grid{gap:5px}.selection-card{min-height:50px}.order-action-bar{min-height:48px}
  .collection-status-strip{grid-template-columns:1fr 1fr;gap:5px}.collection-status-strip article{min-height:55px}.collection-sync-summary{grid-column:1/-1;min-height:45px!important;grid-template-columns:1fr auto!important}.collection-sync-summary small{grid-column:1/-1}
  .collection-workspace{display:block;min-height:0;overflow:visible}.collection-store-rail{display:flex;gap:5px;padding:6px;border:0;border-bottom:1px solid var(--ux-border);overflow:auto}.collection-store{min-width:184px;width:184px;border:1px solid var(--ux-border);border-radius:7px;padding:7px}.collection-store.selected{border-color:#8fb3e6}.collection-store-header{padding:9px;align-items:flex-start}.collection-line{grid-template-columns:1fr;gap:7px;padding:9px}.collection-line-progress{grid-template-columns:1fr auto}.collection-controls{display:grid;grid-template-columns:34px minmax(50px,1fr) 34px minmax(54px,.9fr);gap:5px}.collection-control,.collection-controls input,.collection-all{width:100%!important;height:var(--ui-control-height-comfortable)!important;min-height:var(--ui-control-height-comfortable)!important}
  .mobile-bottom-nav{height:calc(var(--mobile-bottom-nav) + var(--mobile-safe-bottom));padding:5px 6px var(--mobile-safe-bottom)}.mobile-nav-item{border-radius:6px}.mobile-nav-item.active{background:var(--ux-surface-selected-strong);color:var(--ux-accent)}
  #global-status{bottom:calc(var(--mobile-bottom-nav) + 8px);inset-inline:8px;max-width:none}.toast-host{inset-block-start:60px;inset-inline:8px;width:auto}
}

@media(max-width:380px){
  .metric-grid{grid-template-columns:1fr}.metric-card{border-inline-end:0;border-bottom:1px solid var(--ux-border)!important}.metric-card:last-child{border-bottom:0!important}
  .metric-grid.is-three{grid-template-columns:1fr}.metric-grid.is-three .metric-card{grid-template-columns:1fr;border-inline-end:0!important;border-bottom:1px solid var(--ux-border)!important}.metric-grid.is-three .metric-card:last-child{border-bottom:0!important}
  .collection-status-strip{grid-template-columns:1fr}.collection-sync-summary{grid-column:auto}
}
/* Toolbar controls share one compact optical line. */
@media(min-width:761px){
  .task-toolbar{padding:3px 4px;min-height:38px}
  .task-toolbar input,.task-toolbar select,.task-toolbar .button{height:30px;min-height:30px}
}
@media(min-width:761px){
  .task-toolbar{padding:2px 4px}
  
  
}
.collection-status-strip bdi,.collection-store bdi,.store-progress-large bdi,.collection-line-progress bdi{direction:ltr;unicode-bidi:isolate;font-variant-numeric:tabular-nums}

/* v125.0.0-clean-staging.10 — operational outputs and deliberate incomplete closure. */
.fulfilled-value{color:var(--accent-strong);font-weight:850}
.order-print-modal{display:grid;gap:14px;min-width:min(520px,86vw)}
.order-print-modal>h2,.close-incomplete-modal>h2{margin:0}
.order-print-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.order-print-options label,.close-incomplete-modal label{display:grid;gap:6px;font-weight:800}
.order-print-options select,.close-incomplete-modal textarea{width:100%;border:1px solid var(--line-strong);border-radius:8px;background:var(--control-bg);color:var(--text);padding:9px 10px}


.close-incomplete-modal{display:grid;gap:var(--ui-gap-loose);min-width:min(500px,86vw)}
.close-incomplete-modal p{margin:0;color:var(--text-muted)}
.close-incomplete-modal textarea{min-height:110px;resize:vertical}
.collection-store.closed-incomplete{border-color:color-mix(in srgb,var(--warning) 58%,var(--line));background:color-mix(in srgb,var(--warning) 7%,var(--surface))}
.collection-store-header.closed-incomplete{border-bottom-color:color-mix(in srgb,var(--warning) 55%,var(--line))}
.incomplete-note{margin-top:7px!important;padding:7px 9px;border:1px solid color-mix(in srgb,var(--warning) 48%,var(--line));border-radius:7px;background:color-mix(in srgb,var(--warning) 8%,var(--surface));color:#8a4b08!important}
.collection-store-actions{display:flex;align-items:center;gap:var(--ui-gap);min-height:38px;padding:7px 12px;border-bottom:1px solid var(--line);background:var(--surface-subtle)}
.collection-store-actions small{color:var(--text-muted)}
.collection-line.locked{opacity:.78;background:var(--surface-subtle)}
.collection-line.locked .collection-controls{filter:grayscale(.45)}
@media(max-width:760px){.order-print-options{grid-template-columns:1fr}.collection-store-actions{align-items:stretch;flex-direction:column}.collection-store-actions .button{width:100%}}

/* v125.0.0-clean-staging.10 — print controls and interaction-stability contract. */
.order-print-options .full{grid-column:1/-1}.order-print-options input{width:100%;min-height:36px;border:1px solid var(--line-strong);border-radius:8px;background:var(--control-bg);color:var(--text);padding:8px 10px}.order-print-options small{min-height:16px;color:var(--text-muted);font-weight:500}.collection-line-copy small,.collection-store-action-note{display:block;min-height:14px}.collection-controls{min-width:176px}.collection-controls>*{flex:0 0 auto}.collection-all{min-width:54px}.collection-operation-panel{min-height:46px}.collection-store-actions{min-height:45px}.inventory-summary-row,.selection-card{contain:layout style}.button[disabled],.collection-control[disabled]{cursor:not-allowed;opacity:.55}.status-spinner{flex:0 0 auto}
@media(max-width:760px){.order-print-options .full{grid-column:auto}.collection-controls{min-width:0}.collection-store-actions{min-height:82px}.collection-store-action-note{min-height:14px}}

/* v125.0.0-clean-staging.10.1 — print refinement: portrait pallet labels and larger readable output. */


/* v125.0.0-clean-staging.12 — Operations Center consistency */
.operations-progress-strip{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(220px,.8fr);gap:7px;margin-bottom:7px}.operations-progress-strip article{min-height:64px;background:var(--ux-surface);border:1px solid var(--ux-border);border-radius:var(--ux-radius-md);padding:8px 10px}.operations-progress-card{display:grid;grid-template-columns:1fr auto;gap:6px 10px;align-items:center}.operations-progress-card header{display:contents}.operations-progress-card span,.operations-dispatch-context>span{font-size:9px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--ux-ink-muted)}.operations-progress-card strong{font-size:18px;font-variant-numeric:tabular-nums}.operations-progress-card progress{grid-column:1/-1}.operations-progress-card small,.operations-dispatch-context small{font-size:10px;color:var(--ux-ink-muted)}.operations-dispatch-context{display:grid;grid-template-columns:1fr auto;gap:6px 10px;align-items:center}.operations-dispatch-context small{grid-column:1/-1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.operations-dispatch-context .dispatch-mini{justify-self:end}
.selected-store-status{grid-column:2;display:flex;align-items:center;gap:6px;margin-top:4px}.selected-store-status .status-badge{font-size:9px}
@media(max-width:760px){.operations-progress-strip{grid-template-columns:1fr 1fr}.operations-dispatch-context{grid-column:1/-1}}
/* v12: keep the expanded Operations Center inside the viewport so long approval
   lists scroll within their own panel instead of moving the browser page. */
@media(min-width:761px){
  .approval-workspace{height:clamp(500px,calc(100vh - 255px),720px);min-height:0}
}
@media(min-width:761px){
  .approval-workspace{height:clamp(460px,calc(100vh - 315px),660px)}
}

/* v125.0.0-clean-staging.13 — normalized Warehouse Reference authority view. */
@media(max-width:980px){}
@media(max-width:760px){}

/* Guarded Category -> Location Group administration (.14). */
@media(max-width:760px){}


/* v125.0.0-clean-staging.15 guarded location lifecycle */
.warehouse-lifecycle-modal{display:grid;gap:16px;min-width:min(680px,calc(100vw - 32px))}
.warehouse-lifecycle-modal .modal-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.warehouse-lifecycle-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.warehouse-lifecycle-metrics>div{display:grid;gap:4px;padding:12px;border:1px solid var(--border-subtle);border-radius:10px;background:var(--surface-muted)}
.warehouse-lifecycle-metrics span{font-size:12px;color:var(--text-muted)}
.warehouse-lifecycle-metrics strong{font-size:18px}
.warehouse-lifecycle-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.inventory-location-status{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.blocked-inventory-callout{margin-top:0}
@media(max-width:760px){.warehouse-lifecycle-modal{min-width:0}.warehouse-lifecycle-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.warehouse-lifecycle-actions{display:grid;grid-template-columns:1fr}.warehouse-lifecycle-actions .button{width:100%}}

/* v17 guarded category administration */
.warehouse-category-modal{display:grid;gap:14px;min-width:min(720px,calc(100vw - 32px))}.warehouse-category-modal .modal-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.warehouse-category-modal .warehouse-lifecycle-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:760px){.warehouse-category-modal{min-width:0;width:min(94vw,620px)}.warehouse-category-modal .warehouse-lifecycle-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v17.1 Category Manager stabilization */
.warehouse-category-modal[aria-busy="true"]{opacity:.76;pointer-events:none}
@media(max-width:760px){}

/* v125.0.0-clean-staging.17.2 — category management refinement */
.warehouse-category-modal{display:grid;gap:14px;min-width:min(920px,88vw)}.warehouse-category-modal .modal-heading{padding-inline-end:38px}.warehouse-category-modal .modal-heading h2{font-size:20px}
@media(max-width:920px){.warehouse-category-modal{min-width:min(700px,90vw)}}
@media(max-width:760px){.warehouse-category-modal{min-width:0}}

/* v17.2 integrated Category Manager owns the dialog width; content must never overflow its modal. */
.modal.modal-wide{width:min(1080px,calc(100vw - 40px))}
.modal.modal-wide .modal-body{overflow:hidden}
.modal.modal-wide .warehouse-category-modal{min-width:0;width:100%;max-width:100%}
@media(max-width:920px){.modal.modal-wide{width:min(720px,calc(100vw - 28px))}.modal.modal-wide .modal-body{overflow:auto}}
@media(max-width:520px){.modal.modal-wide{width:calc(100vw - 16px)}.modal.modal-wide .modal-body{padding:14px}}


/* v125.0.0-clean-staging.18 — UI architecture and interaction foundation */
.sidebar-nav{display:block;padding-block:8px}.nav-section{display:grid;gap:2px;margin-bottom:10px}.nav-section:last-child{margin-bottom:0}.nav-section-label{margin:0;padding:4px 9px 3px;color:#74869b;font-size:8.5px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}.nav-section .nav-item{width:100%}.sidebar-brand-copy span{font-family:var(--font-sans);text-transform:none;letter-spacing:0}
.shell-feedback{position:static;z-index:auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,420px);align-items:center;gap:8px;height:var(--shell-feedback-height);min-height:var(--shell-feedback-height);max-height:var(--shell-feedback-height);padding:5px 12px;background:var(--ux-canvas);border-bottom:1px solid transparent;overflow:clip;contain:layout paint}.shell-feedback[data-active="true"]{border-bottom-color:var(--ux-border);background:linear-gradient(var(--ux-canvas),rgba(243,245,248,.98))}.shell-feedback[data-active="false"]{pointer-events:none}
#global-status,.toast-host{position:static;inset:auto;min-width:0;max-width:none;width:auto;height:40px;max-height:40px;box-shadow:none;align-self:center}
.shell-feedback[data-has-status="true"][data-has-toast="false"] #global-status{grid-column:1/-1}.shell-feedback[data-has-status="false"][data-has-toast="true"] .toast-host{grid-column:1/-1;justify-self:end;width:min(420px,100%)}
#global-status{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:center;gap:8px;min-height:40px;padding:7px 10px;border:1px solid var(--ux-info-border);border-radius:7px;background:var(--ux-info-soft);color:var(--ux-info)}
#global-status[data-type="success"]{background:var(--ux-success-soft);border-color:#b8dfc8;color:#155b39}#global-status[data-type="error"]{background:var(--ux-danger-soft);border-color:#e4b2b0;color:#852724}#global-status[data-type="progress"]{background:var(--ux-info-soft);border-color:var(--ux-info-border);color:var(--ux-info)}
#global-status .global-status-copy{min-width:0}#global-status .global-status-copy strong,#global-status .global-status-copy small,.toast span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#global-status .global-status-copy small{color:inherit;opacity:.72}.toast-host{display:grid}.toast-host:empty{display:none}.toast{height:40px;min-height:40px;margin:0;border-radius:7px;box-shadow:none;background:var(--ux-surface);font-weight:650}.toast-info{border-inline-start:4px solid var(--ux-accent)}
.main-content{display:grid;align-content:start;gap:0;min-width:0}.main-content>*{min-width:0}.workspace-header{align-items:flex-start}.workspace-heading{max-width:min(920px,100%)}.workspace-actions{max-width:48%;flex-wrap:wrap;justify-content:flex-end}.workspace-actions .button span{max-width:220px;overflow:hidden;text-overflow:ellipsis}.task-toolbar{flex-wrap:wrap}.toolbar-search{min-width:min(260px,100%)}
.collection-operation-panel{position:sticky!important;inset:auto!important;bottom:0!important;width:auto!important;margin:8px 0 0;z-index:4;box-shadow:var(--shadow-sticky)!important}
body[data-route="setup"] .main-content{max-width:1180px;margin-inline:auto;width:100%}
@media(max-width:1120px){.workspace-actions{max-width:55%}}
@media(max-width:760px){.nav-section-label{padding-inline:10px}.shell-feedback{position:static;grid-template-columns:1fr;height:var(--shell-feedback-height);min-height:var(--shell-feedback-height);max-height:var(--shell-feedback-height);padding:5px 8px}.shell-feedback #global-status,.shell-feedback .toast-host{grid-area:1/1;width:100%;justify-self:stretch}.shell-feedback[data-has-toast="true"] #global-status{visibility:hidden}.collection-operation-panel{bottom:calc(var(--mobile-bottom-nav) + 2px)!important;margin-bottom:4px}}

/* v125.0.0-clean-staging.19 — approved shared shell and Orders List */
.app-shell,.sidebar{transition:padding-inline-start .16s ease,width .16s ease}
.app-shell.sidebar-collapsed{padding-inline-start:var(--sidebar-collapsed-width)}
.app-shell.sidebar-collapsed .sidebar{width:var(--sidebar-collapsed-width)}
.app-shell.sidebar-collapsed .sidebar-brand{justify-content:center;padding-inline:0}
.app-shell.sidebar-collapsed .sidebar-brand-copy,.app-shell.sidebar-collapsed .nav-section-label,.app-shell.sidebar-collapsed .nav-item span{display:none}
.app-shell.sidebar-collapsed .nav-item{grid-template-columns:1fr;justify-items:center;padding:0}
.app-shell.sidebar-collapsed .nav-item.active::before{inset-inline-start:-7px}
.app-shell.sidebar-collapsed .sidebar-footer{padding-inline:7px}
.shell-toggle{display:grid!important;flex:0 0 auto}
.sidebar-backdrop{display:none}
.account-entry{position:relative;display:grid;place-items:center}
.topbar-avatar{width:32px;height:32px;border:1px solid #b7c4d2;border-radius:50%;background:#203a5c;color:#fff;font-size:12px;font-weight:760;display:grid;place-items:center;padding:0}
.topbar-avatar:hover,.topbar-avatar[aria-expanded="true"]{background:#152b47;border-color:#8097b2}
.account-menu{position:absolute;z-index:calc(var(--z-topbar) + 8);inset-block-start:calc(100% + 7px);inset-inline-end:0;width:190px;padding:5px;background:var(--ux-surface);border:1px solid var(--ux-border);border-radius:8px;box-shadow:var(--ux-shadow-float)}
.account-menu[hidden]{display:none}.account-menu button{width:100%;min-height:36px;border:0;border-radius:5px;background:transparent;color:var(--ux-ink);display:flex;align-items:center;gap:9px;padding:7px 9px;text-align:start;font-weight:650}.account-menu button:hover{background:var(--ux-surface-hover)}.account-menu button.danger{color:var(--ux-danger)}.account-menu .app-icon{width:16px;height:16px}

#page.orders-list-page{height:calc(100dvh - var(--topbar-height) - var(--shell-feedback-height));padding:8px 10px 0;overflow:hidden;display:grid;grid-template-rows:auto auto minmax(0,1fr) 54px;align-content:stretch}
.orders-list-page .workspace-header{margin-bottom:6px;min-height:48px}
.orders-list-page .task-toolbar{margin-bottom:6px}
.orders-list-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) auto minmax(112px,132px) minmax(106px,126px) auto;align-items:end;gap:6px}
.orders-list-toolbar label{margin:0}.orders-list-toolbar .toolbar-search{min-width:0;align-self:center}.orders-list-toolbar .toolbar-search input{height:32px;min-height:32px}
.orders-list-workspace{--orders-list-width:68%;min-height:0;height:100%;display:grid;grid-template-columns:minmax(470px,var(--orders-list-width)) 10px minmax(250px,1fr);gap:0;overflow:hidden}
.orders-list-panel,.orders-detail-panel{min-width:0;min-height:0;background:var(--ux-surface);border:1px solid var(--ux-border);border-radius:8px;overflow:hidden}
.orders-list-panel{display:grid;grid-template-rows:42px minmax(0,1fr)}
.orders-list-panel>header{height:42px;display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:7px;padding:0 10px;border-bottom:1px solid var(--ux-border)}
.orders-list-panel>header strong{font-size:12px}.orders-list-panel>header span,.orders-list-panel>header small{font-size:10px;color:var(--ux-ink-muted)}.orders-list-panel>header small{text-align:end}
.orders-list-scroll{min-height:0;overflow:auto;scrollbar-gutter:stable}
.orders-list-table{min-width:790px}
.orders-list-table-head,.orders-list-row{display:grid;grid-template-columns:92px 58px 100px 54px 64px 94px 104px minmax(116px,1fr) 78px;align-items:center}
.orders-list-table-head{height:36px;position:sticky;z-index:3;top:0;background:var(--ux-surface-muted);border-bottom:1px solid var(--ux-border);color:var(--ux-ink-muted);font-size:9.5px;font-weight:720}
.orders-list-table-head>div{padding:0 7px;min-width:0}.orders-list-table-head button{width:100%;height:36px;border:0;background:transparent;color:inherit;padding:0;text-align:start;font:inherit;font-weight:inherit}
.orders-list-row{min-height:52px;border-bottom:1px solid var(--ux-border-subtle);background:var(--ux-surface);cursor:pointer;font-size:10.5px}
.orders-list-row:hover{background:var(--ux-surface-inset)}.orders-list-row.selected{background:var(--ux-accent-soft);box-shadow:inset 3px 0 0 var(--ux-accent)}[dir="rtl"] .orders-list-row.selected{box-shadow:inset -3px 0 0 var(--ux-accent)}
.orders-list-row>div{min-width:0;padding:5px 7px}.orders-order-identity{display:flex;align-items:center;gap:3px;min-width:0}.orders-order-code{font-size:9.5px;font-weight:650;color:var(--ux-ink-muted);white-space:nowrap}.orders-revision{display:inline-flex;margin-inline-start:4px;padding:1px 5px;border-radius:999px;background:var(--ux-neutral-soft);color:var(--ux-ink-secondary);font-size:8.5px}.orders-requester{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.orders-number{text-align:center;font-variant-numeric:tabular-nums}.orders-cartons strong{font-size:12px}.orders-date{font-size:12px;color:var(--ux-ink);font-weight:760;font-variant-numeric:tabular-nums;white-space:nowrap}.orders-date strong{font:inherit}.orders-updated{font-size:9.5px;color:var(--ux-ink-muted)}
.orders-dispatch{display:flex;gap:3px;flex-wrap:wrap}
.orders-progress{display:grid;grid-template-columns:minmax(58px,1fr) 28px;gap:5px;align-items:center}.orders-progress span{font-size:9px;text-align:end;color:var(--ux-ink-muted)}.progress-compact{height:7px}
.orders-list-splitter{position:relative;min-width:10px;display:grid;place-items:center;cursor:col-resize;touch-action:none;user-select:none}
.orders-list-splitter::before{content:"";width:2px;height:46px;border-radius:2px;background:var(--ux-border-strong);transition:height .12s,background .12s}.orders-list-splitter::after{content:"⋮";position:absolute;color:#7c899a;font-size:13px}
.orders-list-splitter:hover::before,.orders-list-splitter:focus-visible::before,.orders-list-splitter.dragging::before{height:68px;background:var(--ux-accent)}
.orders-detail-panel{display:grid;grid-template-rows:58px minmax(0,1fr)}
.orders-detail-head{min-height:58px;border-bottom:1px solid var(--ux-border);display:flex;align-items:center;padding:0 12px}.orders-detail-head>div{display:grid;gap:4px}.orders-detail-head h2{margin:0;font-size:16px;line-height:1.1;font-variant-numeric:tabular-nums}.orders-detail-head>div>div{display:flex;gap:5px}.orders-detail-identity{min-width:0}.orders-detail-identity-meta{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.orders-detail-order-code{font-size:9.5px;font-weight:650;color:var(--ux-ink-muted)}
.orders-detail-scroll{min-height:0;overflow:auto;padding:10px 12px}
.orders-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.orders-summary-grid article{border:1px solid var(--ux-border);border-radius:7px;padding:8px 9px;background:var(--ux-surface-muted);display:grid;gap:2px}.orders-summary-grid span{font-size:9.5px;color:var(--ux-ink-muted);font-weight:650}.orders-summary-grid strong{font-size:13px}.orders-summary-grid small{font-size:var(--ui-type-micro);color:var(--ux-ink-muted)}
.orders-detail-section{margin-top:10px}.orders-detail-section h3{margin:0 0 6px;font-size:11px}.orders-dispatch-groups{border:1px solid var(--ux-border);border-radius:7px;overflow:hidden}.orders-dispatch-groups article{min-height:42px;display:grid;grid-template-columns:82px minmax(0,1fr) auto;align-items:center;gap:7px;padding:6px 8px;border-bottom:1px solid var(--ux-border)}.orders-dispatch-groups article:last-child{border-bottom:0}.orders-dispatch-groups strong{font-size:10.5px}.orders-dispatch-groups span{font-size:9.5px;color:var(--ux-ink-muted)}.orders-dispatch-groups b{text-align:end;font-size:10.5px}.orders-dispatch-groups b small{display:block;font-size:8px;color:var(--ux-ink-muted);font-weight:500}
.orders-detail-progress{border:1px solid var(--ux-border);border-radius:7px;padding:9px}.orders-detail-progress>div{display:flex;justify-content:space-between;gap:8px;font-size:10.5px}.orders-detail-progress progress{margin-top:8px;width:100%}
.orders-category-totals-table{border:1px solid var(--ux-border);border-radius:var(--radius-sm);overflow:hidden;background:var(--ux-surface)}.orders-category-totals-head,.orders-category-totals-row{display:grid;grid-template-columns:minmax(54px,1fr) repeat(3,minmax(42px,.58fr));align-items:center}.orders-category-totals-head{min-height:28px;background:var(--ux-surface-muted);color:var(--ux-ink-muted);font-size:8.5px;font-weight:650}.orders-category-totals-row{min-height:30px;border-top:1px solid var(--ux-border);font-size:10px}.orders-category-totals-head>*,.orders-category-totals-row>*{min-width:0;padding:5px 6px;text-align:end;font-variant-numeric:tabular-nums}.orders-category-totals-head>*:first-child,.orders-category-totals-row>*:first-child{text-align:start}.orders-category-totals-row>strong{display:flex;align-items:center;gap:var(--space-1);font-size:10.5px}.orders-category-totals-row>strong small{font-size:7.5px;font-weight:600;color:var(--ux-accent);white-space:nowrap}.orders-category-totals-row>b{font-weight:650}
.orders-amendment-callout{margin-top:10px;border:1px solid #e4bcbc;background:var(--ux-danger-soft);border-radius:7px;padding:9px 10px;color:#7f3333}.orders-amendment-callout strong{font-size:10.5px}.orders-amendment-callout p{margin:4px 0 0;font-size:9.5px}.orders-readonly-note{margin:10px 0 0;padding:9px 10px;border:1px solid var(--ux-info-border);background:var(--ux-info-soft);border-radius:7px;color:var(--ux-info);font-size:9.5px}
.orders-detail-state{height:100%;display:grid;place-items:center;padding:15px}.orders-list-empty{height:100%;display:grid;place-items:center}.orders-mobile-list,.orders-mobile-detail{display:none}
.orders-list-actionbar{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:var(--ui-gap-loose);padding:7px 2px 7px;border-top:1px solid transparent}.orders-list-actionbar>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ux-ink-muted);font-size:10.5px}.orders-list-actionbar>div{display:flex;gap:6px}

@media(max-width:1280px) and (min-width:761px){
  .app-shell{padding-inline-start:var(--sidebar-width)}.sidebar{width:var(--sidebar-width)}.sidebar-brand{justify-content:center;padding-inline:0}.sidebar-brand-copy,.nav-section-label,.nav-item span{display:none}.nav-item{grid-template-columns:1fr;justify-items:center;padding:0}.sidebar-footer{padding-inline:7px}
  .orders-list-toolbar{grid-template-columns:minmax(190px,1fr) auto minmax(105px,120px) auto}
  .orders-list-workspace{--orders-list-width:66%;grid-template-columns:minmax(500px,var(--orders-list-width)) 10px minmax(250px,1fr)}.orders-list-table{min-width:700px}.orders-list-table-head,.orders-list-row{grid-template-columns:92px 60px 56px 66px 92px 104px minmax(120px,1fr) 78px}.orders-list-table-head>*:nth-child(3),.orders-list-row>div:nth-child(3){display:none}
}
@media(max-width:1000px) and (min-width:761px){
  .orders-list-toolbar{grid-template-columns:minmax(160px,1fr) auto minmax(102px,115px)}
  .orders-list-workspace{--orders-list-width:64%;grid-template-columns:minmax(450px,var(--orders-list-width)) 10px minmax(240px,1fr)}.orders-list-table{min-width:540px}.orders-list-table-head,.orders-list-row{grid-template-columns:90px 56px 64px 88px 100px minmax(118px,1fr)}.orders-list-table-head>*:nth-child(4),.orders-list-row>div:nth-child(4),.orders-list-table-head>*:nth-child(9),.orders-list-row>div:nth-child(9){display:none}.orders-summary-grid{grid-template-columns:1fr}.orders-dispatch-groups article{grid-template-columns:68px minmax(0,1fr)}
}

@media(max-width:760px){
  .sidebar-backdrop{position:fixed;z-index:calc(var(--z-sidebar) - 1);inset:0;background:rgba(7,17,29,.42);opacity:0;pointer-events:none;display:block;transition:opacity .15s}.sidebar-backdrop.visible{opacity:1;pointer-events:auto}
  .sidebar{width:var(--sidebar-width);transform:translateX(calc(-1 * var(--sidebar-width)));transition:transform .18s ease}[dir="rtl"] .sidebar{transform:translateX(var(--sidebar-width))}.sidebar.open{transform:translateX(0)}
  .shell-toggle{display:grid!important}.account-menu{position:fixed;inset-block-start:50px;inset-inline-end:8px}.topbar-avatar{width:32px;height:32px}
  #page.orders-list-page{height:calc(100dvh - var(--topbar-height) - var(--shell-feedback-height) - var(--mobile-bottom-nav));padding:6px 0 0;grid-template-rows:auto auto minmax(0,1fr) 58px}
  .orders-list-page .workspace-header{padding:7px 9px;margin:0 8px 6px;grid-template-columns:minmax(0,1fr) auto}.orders-list-page .workspace-description{font-size:var(--ui-type-caption);line-height:1.3}.orders-list-page .workspace-meta{display:none}.orders-list-page .workspace-actions{grid-column:2;grid-row:1}.orders-list-page .workspace-actions .button{width:auto;min-width:var(--ui-touch-target);padding-inline:10px}.orders-list-page .workspace-actions .button span{display:inline;max-width:120px}
  .orders-list-toolbar{display:flex;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;margin:0 8px 6px;padding:6px;align-items:center}.orders-list-toolbar::-webkit-scrollbar{display:none}.orders-list-toolbar .toolbar-search{flex:0 0 210px}
  .orders-list-workspace{display:block;height:100%;min-height:0;position:relative}.orders-list-panel{height:100%;border-radius:0;border-inline:0;grid-template-rows:38px minmax(0,1fr)}.orders-list-panel>header{height:38px;padding-inline:9px}.orders-list-panel>header small{display:none}.orders-list-table,.orders-list-splitter,.orders-detail-panel{display:none}.orders-list-scroll{overflow:hidden}.orders-mobile-list{display:block;height:100%;overflow:auto;padding:7px 8px 12px}
  .orders-mobile-card{width:100%;min-height:104px;border:1px solid var(--ux-border);border-radius:8px;background:var(--ux-surface);margin:0 0 7px;padding:9px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;color:var(--ux-ink);text-align:start}.orders-mobile-card.selected{border-color:#7da7df;background:var(--ux-accent-soft);box-shadow:inset 3px 0 0 var(--ux-accent)}[dir="rtl"] .orders-mobile-card.selected{box-shadow:inset -3px 0 0 var(--ux-accent)}.orders-mobile-card-head{display:contents}.orders-mobile-date{font-size:14px;font-weight:780;color:var(--ux-ink);font-variant-numeric:tabular-nums}.orders-mobile-order-code{font-size:10px;font-weight:650;color:var(--ux-ink-muted);text-align:end;align-self:center}.orders-mobile-card-head bdi{font:inherit;color:inherit}.orders-mobile-status{display:flex;gap:4px;align-items:center}.orders-mobile-totals{text-align:end;font-size:10px;color:var(--ux-ink-muted)}.orders-mobile-dispatch{grid-column:1/-1;display:flex;gap:4px}.orders-mobile-progress{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:center}.orders-mobile-progress strong{font-size:10px}
  .orders-mobile-detail{display:none;position:absolute;inset:0;background:var(--ux-surface);z-index:8;grid-template-rows:58px minmax(0,1fr);overflow:hidden}.orders-mobile-detail.open{display:grid}.orders-mobile-detail .orders-detail-head{display:grid;grid-template-columns:42px minmax(0,1fr);padding-inline:8px}.orders-mobile-detail .orders-detail-head>div{min-width:0}.orders-mobile-back{display:grid;width:38px;height:38px}.orders-mobile-detail .orders-detail-scroll{padding:9px 9px 18px}.orders-mobile-detail .orders-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.orders-mobile-detail .orders-dispatch-groups article{grid-template-columns:72px minmax(0,1fr) auto}
  .orders-list-actionbar{padding:7px 8px calc(7px + var(--mobile-safe-bottom));background:var(--ux-surface);border-top:1px solid var(--ux-border)}.orders-list-actionbar>span,.orders-list-actionbar [data-print-selected]{display:none}.orders-list-actionbar>div{margin-inline-start:auto}.orders-list-actionbar .button{min-height:42px}
}

/* v125.0.0-clean-staging.20 — accepted Approval Gate 03 R2 */
#page[data-page="approval"]{height:calc(100vh - var(--topbar-height) - var(--shell-feedback-height) - 28px);overflow:hidden;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:0;padding-bottom:0}
#page[data-page="approval"]>.workspace-header{min-height:68px;margin:0;padding:7px 4px 8px}
.approval-gate-header-summary{display:grid;grid-template-columns:repeat(4,minmax(70px,1fr));align-self:stretch;border-inline-start:1px solid var(--ux-border)}
.approval-gate-header-summary>span{min-width:72px;padding:3px 10px;display:grid;align-content:center;border-inline-end:1px solid var(--ux-border);color:var(--ux-ink-muted);font-size:9px;line-height:1.2}
.approval-gate-header-summary>span:last-child{border-inline-end:0}.approval-gate-header-summary strong{color:var(--ux-ink);font-size:15px;font-variant-numeric:tabular-nums}.approval-gate-header-summary small{font-size:8.5px}
.approval-gate-surface{min-height:0;margin:10px 0;border:1px solid var(--ux-border);border-radius:var(--ux-radius-lg);background:var(--ux-surface);overflow:hidden}
.approval-gate-workspace{--approval-store-width:19%;height:100%;min-height:0;display:grid;grid-template-columns:var(--approval-store-width) 10px minmax(0,1fr)}
.approval-gate-store-panel{min-width:0;min-height:0;display:grid;grid-template-rows:48px minmax(0,1fr);background:var(--ux-surface-subtle);border-inline-end:1px solid var(--ux-border)}
.approval-gate-store-panel>header{padding:7px 10px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--ux-border);background:var(--ux-surface)}.approval-gate-store-panel>header>div{display:grid}.approval-gate-store-panel>header strong{font-size:12px}.approval-gate-store-panel>header small{font-size:9.5px;color:var(--ux-ink-muted)}
.approval-gate-store-list{min-height:0;overflow:auto;scrollbar-gutter:stable}.approval-gate-store-group{display:grid}.approval-gate-store-group>header{height:30px;padding:0 9px;display:flex;align-items:center;justify-content:space-between;background:var(--ux-surface-muted);border-bottom:1px solid var(--ux-border);color:var(--ux-ink-muted);font-size:9.5px}.approval-gate-store-group>header strong{font-size:9.5px;text-transform:none}.approval-gate-store-group>header span{font-variant-numeric:tabular-nums}
.approval-gate-store{width:100%;min-height:50px;padding:6px 8px;display:grid;grid-template-columns:36px minmax(0,1fr) 24px;gap:7px;align-items:center;border:0;border-bottom:1px solid var(--ux-border);background:transparent;color:var(--ux-ink);text-align:start}.approval-gate-store:hover{background:var(--ux-surface)}.approval-gate-store.selected{background:var(--ux-surface-selected);box-shadow:inset 4px 0 0 var(--ux-accent)}[dir="rtl"] .approval-gate-store.selected{box-shadow:inset -4px 0 0 var(--ux-accent)}
.approval-gate-store-code{font-family:var(--font-mono);font-size:11px;font-weight:760}.approval-gate-store-copy{min-width:0;display:grid}.approval-gate-store-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.approval-gate-store-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ux-ink-muted);font-size:8.5px}.approval-gate-store-state{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:var(--ux-neutral-soft);color:var(--ux-neutral-ink);font-size:11px;font-weight:800}.approval-gate-store-state .app-icon{width:12px;height:12px}.approval-gate-store.selected .approval-gate-store-state{background:var(--ux-accent-soft);color:var(--ux-accent)}
.approval-gate-splitter{position:relative;cursor:col-resize;background:var(--ux-surface-sunken);border-inline:1px solid var(--ux-border);touch-action:none}.approval-gate-splitter::after{content:"";position:absolute;inset-block:calc(50% - 23px);inset-inline:3px;border-inline:2px dotted var(--ux-border-hover-subtle)}.approval-gate-splitter:hover,.approval-gate-splitter.dragging,.approval-gate-splitter:focus-visible{background:var(--ux-accent-soft)}.approval-gate-splitter:focus-visible{outline:2px solid var(--ux-accent);outline-offset:-2px}
.approval-gate-editor{min-width:0;min-height:0;display:grid;grid-template-rows:auto auto auto minmax(0,1fr);background:var(--ux-surface)}.approval-gate-editor-head{min-height:52px;padding:7px 10px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--ux-border)}.approval-gate-editor-head>div:first-child{min-width:0}.approval-gate-editor-head>div:first-child>div{display:flex;align-items:center;gap:8px}.approval-gate-editor-head h2{margin:0;font-size:15px}.approval-gate-editor-head small{display:block;margin-top:2px;color:var(--ux-ink-muted);font-size:9.5px}.approval-gate-editor-actions label{margin:0}.approval-gate-editor-actions select{min-width:122px;height:32px;min-height:32px}
.approval-gate-state-strip{min-height:43px;padding:5px 10px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--ux-border);background:var(--ux-surface-inset)}.approval-gate-state-strip>div{display:flex;align-items:center;gap:15px;flex-wrap:wrap}.approval-gate-state-strip span{color:var(--ux-ink-muted);font-size:9.5px}.approval-gate-state-strip strong{margin-inline-start:3px;color:var(--ux-ink);font-size:11px;font-variant-numeric:tabular-nums}.approval-gate-state-strip p{margin:0;color:#7b4f94;font-size:9px;text-align:end}
.approval-dispatch-note{min-height:42px;margin:0;padding:5px 10px;display:grid;grid-template-columns:auto minmax(180px,360px);align-items:center;justify-content:end;gap:8px;border-bottom:1px solid var(--ux-border);background:var(--ux-surface)}.approval-dispatch-note>span{color:var(--ux-ink-muted);font-size:9.5px}.approval-dispatch-note input{height:30px;min-height:30px}.approval-dispatch-note.readonly strong{font-size:10.5px;font-weight:500}
.approval-gate-table-wrap{min-height:0;overflow:auto;scrollbar-gutter:stable}.approval-gate-table{min-width:760px}.approval-gate-table thead th{position:sticky;top:0;z-index:2}.approval-gate-table thead th:nth-child(n+2):nth-child(-n+5){text-align:end}.approval-gate-table td{height:46px;padding:5px 8px;border-bottom:1px solid var(--ux-border);vertical-align:middle;font-size:10.5px}.approval-gate-table tbody tr:hover{background:var(--ux-surface-hover)}.approval-gate-table td.numeric{text-align:end;font-variant-numeric:tabular-nums}.approval-category-cell{display:grid;grid-template-columns:36px minmax(0,1fr);gap:7px;align-items:center}.approval-category-cell>span:last-child{min-width:0;display:grid}.approval-category-cell strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.approval-category-cell small{color:var(--ux-accent);font-size:8.5px}.approval-gate-table .quantity-stepper{grid-template-columns:34px 62px 34px}.approval-gate-table .quantity-stepper button,.approval-gate-table .quantity-stepper input{height:34px;min-height:34px}.approval-row-action{text-align:end}.approval-only-line{background:var(--ux-surface-subtle)}.approval-new-line{animation:approval-new-highlight 4s ease-out}.approval-invalid-line{background:var(--ux-danger-soft)}@keyframes approval-new-highlight{0%,35%{background:var(--ux-warning-soft)}100%{background:var(--ux-surface-subtle)}}

.approval-gate-actionbar{min-height:58px;margin-inline:-12px;padding:7px 13px;display:flex;align-items:center;justify-content:space-between;gap:var(--ui-gap-loose);border-top:1px solid var(--ux-border);background:var(--ux-surface)}.approval-gate-actionbar>div:first-child{min-width:0;color:var(--ux-ink-muted);font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.approval-gate-actionbar strong{color:var(--ux-ink)}.approval-dirty{margin-inline-start:8px}.approval-gate-actions{display:flex;align-items:center;gap:7px;flex:0 0 auto}
.side-drawer-backdrop{position:fixed;z-index:70;inset:0;background:rgba(10,21,36,.38);opacity:0;transition:opacity .18s ease}.side-drawer-backdrop.open{opacity:1}.side-drawer{position:fixed;z-index:71;inset-block:calc(var(--topbar-height) + var(--shell-feedback-height)) 0;inset-inline-end:0;width:min(440px,calc(100vw - 32px));display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;background:var(--ux-surface);border-inline-start:1px solid var(--ux-border);box-shadow:-18px 0 46px rgba(16,30,49,.18);transform:translateX(102%);transition:transform .18s ease}[dir="rtl"] .side-drawer{inset-inline-end:auto;inset-inline-start:0;border-inline-start:0;border-inline-end:1px solid var(--ux-border);box-shadow:18px 0 46px rgba(16,30,49,.18);transform:translateX(-102%)}.side-drawer.open{transform:translateX(0)}.side-drawer-header{min-height:70px;padding:12px 14px;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border-bottom:1px solid var(--ux-border)}.side-drawer-header h2{margin:0;font-size:17px}.side-drawer-header p{margin:3px 0 0;color:var(--ux-ink-muted);font-size:10.5px}.side-drawer-footer{min-height:58px;padding:9px 14px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--ux-border);background:var(--ux-surface)}.side-drawer-footer span{color:var(--ux-ink-muted);font-size:10.5px}
.approval-drawer-tools{position:relative;padding:10px 12px;border-bottom:1px solid var(--ux-border);display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}.approval-drawer-tools label{margin:0}.approval-drawer-search{display:grid;gap:6px}.approval-drawer-search>span:first-child{font-size:var(--ui-type-caption);font-weight:650;color:var(--ux-ink-muted)}.approval-drawer-search>.ui-search{height:38px;min-height:38px}.approval-target-panel{position:absolute;z-index:3;inset-block-start:calc(100% - 6px);inset-inline-end:12px;width:min(330px,calc(100% - 24px));max-height:260px;overflow:auto;padding:8px;background:var(--ux-surface);border:1px solid var(--ux-border);border-radius:7px;box-shadow:var(--ux-shadow-float)}.approval-target-panel .form-check{margin:0;padding:7px 5px;border-bottom:1px solid var(--ux-border)}.approval-target-panel .form-check:last-child{border-bottom:0}.approval-category-catalog{min-height:0;overflow:auto;padding:5px 12px}.approval-catalog-item{min-height:54px;margin:0;padding:7px 5px;display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:8px;align-items:center;border-bottom:1px solid var(--ux-border)}.approval-catalog-item>span:nth-child(2){min-width:0;display:grid}.approval-catalog-item strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10.5px}.approval-catalog-item small{color:var(--ux-ink-muted);font-size:9px}.approval-catalog-item.disabled{opacity:.58}.approval-catalog-empty{padding:24px;text-align:center;color:var(--ux-ink-muted)}
@media(max-width:1120px) and (min-width:761px){.approval-gate-header-summary>span{padding-inline:6px}.approval-gate-workspace{grid-template-columns:var(--approval-store-width) 8px minmax(0,1fr)}.approval-gate-state-strip p{display:none}.approval-dispatch-note{grid-template-columns:auto minmax(150px,250px)}.approval-gate-table{min-width:700px}.approval-gate-table td,.approval-gate-table th{padding-inline:6px}}

/* v125.0.0-clean-staging.20 — Approval responsive layer must follow desktop component rules. */
@media(max-width:760px){
  #page[data-page="approval"]{height:auto;overflow:visible;display:block;padding-bottom:calc(var(--mobile-bottom-nav) + 64px)}
  #page[data-page="approval"]>.workspace-header{padding:8px 2px 10px}
  .approval-gate-header-summary{width:100%;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid var(--ux-border);border-radius:8px;overflow:hidden}
  .approval-gate-header-summary>span{min-height:42px;padding:5px 8px;border-bottom:1px solid var(--ux-border)}
  .approval-gate-header-summary>span:nth-child(2n){border-inline-end:0}.approval-gate-header-summary>span:nth-last-child(-n+2){border-bottom:0}
  .approval-gate-surface{margin:9px 0;overflow:visible;border:0;background:transparent}.approval-gate-workspace{height:auto;display:block}.approval-gate-splitter{display:none}
  .approval-gate-store-panel{display:block;border:1px solid var(--ux-border);border-radius:10px;background:var(--ux-surface);overflow:hidden}.approval-gate-store-panel>header{min-height:46px}
  .approval-gate-store-list{display:flex;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}.approval-gate-store-group{display:contents}.approval-gate-store-group>header{display:none}
  .approval-gate-store{min-width:182px;max-width:210px;min-height:58px;border-bottom:0;border-inline-end:1px solid var(--ux-border)}.approval-gate-store.selected{box-shadow:inset 0 -4px 0 var(--ux-accent)}[dir="rtl"] .approval-gate-store.selected{box-shadow:inset 0 -4px 0 var(--ux-accent)}
  .approval-gate-editor{margin-top:9px;border:1px solid var(--ux-border);border-radius:10px;overflow:hidden;display:block}.approval-gate-editor-head{min-height:0;padding:10px;align-items:flex-start}.approval-gate-editor-head>div:first-child>div{flex-wrap:wrap}
  .approval-gate-editor-actions{display:grid;grid-template-columns:1fr 1fr}.approval-gate-editor-actions .button,.approval-gate-editor-actions label,.approval-gate-editor-actions select{width:100%;min-width:0}
  .approval-gate-state-strip{padding:8px 10px;display:block}.approval-gate-state-strip>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.approval-gate-state-strip p{margin-top:7px;text-align:start}
  .approval-dispatch-note{padding:8px 10px;grid-template-columns:1fr}.approval-dispatch-note input{width:100%}
  .approval-gate-table-wrap{overflow:visible}.approval-gate-table{min-width:0;display:block}.approval-gate-table thead{display:none}.approval-gate-table tbody{display:grid;gap:var(--ui-gap);padding:8px;background:var(--ux-surface-header)}
  .approval-gate-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:11px;background:var(--ux-surface);border:1px solid var(--ux-border);border-radius:9px}.approval-gate-table td{height:auto;padding:0;border:0;display:grid;gap:4px;min-width:0}
  .approval-gate-table td::before{content:attr(data-label);color:var(--ux-ink-muted);font-size:8.5px;font-weight:650}.approval-gate-table td:first-child{grid-column:1/-1}.approval-gate-table td:nth-child(3){grid-column:1/-1}.approval-gate-table td:nth-child(6){align-content:end}.approval-gate-table td:last-child{grid-column:1/-1}
  .approval-category-cell{grid-template-columns:40px minmax(0,1fr)}.approval-category-cell strong{white-space:normal}.approval-gate-table .quantity-stepper{width:100%;grid-template-columns:44px minmax(0,1fr) 44px}.approval-gate-table .quantity-stepper button,.approval-gate-table .quantity-stepper input{height:var(--ui-touch-target);min-height:44px}.approval-row-action .icon-button{width:var(--ui-touch-target);height:var(--ui-touch-target);margin-inline-start:auto}
  .approval-gate-actionbar{position:sticky;z-index:20;bottom:calc(var(--mobile-bottom-nav) + var(--mobile-safe-bottom));margin:0 -12px;padding:8px 12px;display:grid;gap:7px;box-shadow:0 -6px 18px rgba(16,30,49,.08)}.approval-gate-actionbar>div:first-child{white-space:normal}.approval-gate-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.approval-gate-actions .button{width:100%;min-height:44px}.approval-gate-actions .button.primary:last-child:nth-child(3){grid-column:1/-1}
  .side-drawer{inset-block:calc(var(--topbar-height) + var(--shell-feedback-height)) calc(var(--mobile-bottom-nav) + var(--mobile-safe-bottom));width:100%;border:0}.approval-target-panel{inset-inline:12px;width:auto}.approval-catalog-item{min-height:62px}.side-drawer-footer .button{min-height:44px}
}


/* v125.0.0-clean-staging.20.2 — typography and selected-control contrast correction.
 * Approved Gate typography uses Inter, Noto Sans Hebrew and Vazirmatn. The hosted
 * font stylesheet is optional at runtime; system fallbacks preserve operation if
 * the font service is unavailable.
 */
html[dir="rtl"] body,html[dir="rtl"] button,html[dir="rtl"] input,html[dir="rtl"] select,html[dir="rtl"] textarea{font-family:var(--font-hebrew)}
html[lang="ar"] body,html[lang="ar"] button,html[lang="ar"] input,html[lang="ar"] select,html[lang="ar"] textarea{font-family:var(--font-arabic)}
body{font-size:12px;line-height:1.4;letter-spacing:0;font-variant-numeric:tabular-nums}
button,input,select,textarea{font-size:var(--ui-type-control);letter-spacing:0}


.nav-item{font-size:var(--ui-type-control);font-weight:500}
.sidebar-brand-copy strong{font-size:12px;font-weight:600}
.workspace-title-row h1{font-size:var(--ui-type-page-title);font-weight:700}
.workspace-meta{font-size:var(--ui-type-caption);font-weight:600}
.workspace-description{font-size:11px}
.panel h2{font-size:14px;font-weight:700}


.nav-item.active,.nav-item.active span,.nav-item.active .app-icon{color:#fff}
.button.primary,.button.primary span,.button.primary .app-icon,.button.primary[aria-pressed="true"]{color:#fff}

/* v125.0.0-clean-staging.20.2 — Gate 03 Add categories drawer typography correction.
   Keep interface copy on the active UI stack, while Hebrew operational names use
   the approved Noto Sans Hebrew family even when the surrounding UI is English. */
.approval-category-drawer,
.approval-category-drawer button,
.approval-category-drawer input,
.approval-category-drawer select,
.approval-category-drawer textarea{font-family:var(--font-ui);font-synthesis:none}
html[dir="rtl"] .approval-category-drawer,
html[dir="rtl"] .approval-category-drawer button,
html[dir="rtl"] .approval-category-drawer input,
html[dir="rtl"] .approval-category-drawer select,
html[dir="rtl"] .approval-category-drawer textarea{font-family:var(--font-hebrew)}
.approval-category-drawer .side-drawer-header h2{font-size:14px;font-weight:700;line-height:1.25;letter-spacing:0}
.approval-category-drawer .side-drawer-header p{font-size:10px;font-weight:400;line-height:1.35}
.approval-category-drawer .approval-drawer-tools>label{font-size:10px;font-weight:600;line-height:1.25}
.approval-category-drawer [data-approval-category-search]{font-size:11.5px;font-weight:400}
.approval-category-drawer [data-approval-target-toggle]{font-size:10px;font-weight:600}
.approval-target-store-label{display:flex;align-items:center;gap:5px;min-width:0;font-size:10.5px;font-weight:500}
.approval-target-store-code,.approval-catalog-code{font-family:var(--font-mono);font-weight:700;direction:ltr;unicode-bidi:isolate}
.approval-category-drawer .approval-data-name{min-width:0;font-family:var(--font-hebrew);font-weight:600;letter-spacing:0;text-transform:none}
.approval-category-drawer .approval-catalog-item strong{display:flex;align-items:baseline;gap:5px;font-size:11px;font-weight:600;line-height:1.3}
.approval-category-drawer .approval-catalog-item small{font-family:var(--font-ui);font-size:9px;font-weight:400;line-height:1.35}
html[dir="rtl"] .approval-category-drawer .approval-catalog-item small{font-family:var(--font-hebrew)}
.approval-category-drawer .approval-target-panel .form-check-label{font-size:10.5px;font-weight:500}
.approval-category-drawer .side-drawer-footer>span{font-size:10px;font-weight:400}
.approval-category-drawer .side-drawer-footer .button{font-size:var(--ui-type-label);font-weight:600}


/* v125.0.0-clean-staging.21.1 — approved Gate 04 Mobile Collection workspace. */
#page[data-page="collection"]{height:calc(100dvh - var(--topbar-height) - var(--shell-feedback-height));overflow:hidden;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:0;padding-bottom:0}
#page[data-page="collection"]>.workspace-header{min-height:68px;margin:0;padding:7px 4px 8px}
.collection-header-summary{display:flex;align-items:stretch;gap:0;min-width:250px}
.collection-header-summary article{min-width:76px;padding:3px 10px;border-inline-start:1px solid var(--ux-border);display:grid;align-content:center;gap:2px}
.collection-header-summary article:first-child{border-inline-start:0}.collection-header-summary span{font-size:9.5px;color:var(--ux-ink-muted);font-weight:600}.collection-header-summary strong{font-size:13px;color:var(--ux-ink);font-variant-numeric:tabular-nums}.collection-header-summary small{font-size:9px;color:var(--ux-ink-muted);font-weight:500}
.collection-context-toolbar{min-height:48px;margin-inline:-12px;padding:5px 12px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;border-block:1px solid var(--ux-border);background:var(--ux-surface-subtle)}
.collection-order-context{min-width:0;display:flex;align-items:center;gap:9px;color:var(--ux-ink-muted);font-size:10px;white-space:nowrap;overflow:hidden}.collection-order-context strong{font-size:12.5px;color:var(--ux-ink)}.collection-order-context span{overflow:hidden;text-overflow:ellipsis}
.collection-sync-chip{min-width:164px;height:30px;border:1px solid var(--ux-border);border-radius:999px;padding:0 9px;display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:center;gap:5px;background:var(--ux-surface);color:var(--ux-success)}
.collection-sync-chip>span{width:16px;height:16px;display:grid;place-items:center}.collection-sync-chip .app-icon{width:14px;height:14px}.collection-sync-chip strong{font-size:9.5px}.collection-sync-chip small{font-size:8.5px;color:inherit;opacity:.78;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.collection-sync-chip.saving{background:var(--ux-info-soft);border-color:#a9c8ea;color:var(--ux-info)}.collection-sync-chip.warning{background:var(--ux-warning-soft);border-color:#e1c17d;color:var(--ux-warning)}.collection-sync-chip.error{background:var(--ux-danger-soft);border-color:#dea1a1;color:var(--ux-danger)}
.collection-gate-surface{min-height:0;margin:9px 0;padding:0;overflow:hidden}
.collection-gate-workspace{--collection-store-width:20%;height:100%;min-height:0;display:grid;grid-template-columns:minmax(180px,var(--collection-store-width)) 10px minmax(520px,1fr);background:transparent}
.collection-gate-store-panel,.collection-gate-editor{min-width:0;min-height:0;border:1px solid var(--ux-border);border-radius:8px;background:var(--ux-surface);overflow:hidden}
.collection-gate-store-panel{display:grid;grid-template-rows:52px minmax(0,1fr)}.collection-gate-store-panel>header{padding:0 10px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--ux-border)}.collection-gate-store-panel>header div{display:grid;gap:3px}.collection-gate-store-panel>header strong{font-size:11.5px}.collection-gate-store-panel>header small{font-size:9px;color:var(--ux-ink-muted)}.collection-gate-store-panel>header>bdi{font-size:10px;color:var(--ux-ink-muted)}
.collection-gate-store-list{min-height:0;overflow:auto;scrollbar-gutter:stable;background:var(--ux-surface)}.collection-dispatch-group>header{height:28px;padding:0 9px;display:flex;align-items:center;justify-content:space-between;background:var(--ux-surface-muted);border-bottom:1px solid var(--ux-border-subtle);color:var(--ux-ink-muted);font-size:9.5px;font-weight:600}
.collection-gate-store{width:100%;min-height:58px;border:0;border-bottom:1px solid #e6eaf0;background:var(--ux-surface);color:var(--ux-ink);padding:7px 9px;text-align:start;display:grid;gap:6px}.collection-gate-store:hover{background:var(--ux-surface-inset)}.collection-gate-store.selected{background:var(--ux-accent-soft);box-shadow:inset 3px 0 var(--ux-accent)}[dir="rtl"] .collection-gate-store.selected{box-shadow:inset -3px 0 var(--ux-accent)}.collection-gate-store.completed{opacity:.74}.collection-gate-store.closed-incomplete{background:color-mix(in srgb,var(--ux-warning-soft) 55%,var(--ux-surface))}
.collection-gate-store-name{min-width:0;display:flex;align-items:center;gap:7px}.collection-gate-store-name>.object-code{min-width:28px;font-size:11px}.collection-gate-store-name>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--font-hebrew);font-size:10.5px;font-weight:600}.collection-gate-store-name>small{margin-inline-start:auto;color:var(--ux-warning);font-size:8px;white-space:nowrap}
.collection-gate-store-progress{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px}.collection-gate-store-progress small{font-size:8.5px;color:var(--ux-ink-muted)}
span.progress-line{display:block;width:100%;height:6px;border-radius:999px;overflow:hidden;background:var(--ux-progress-track)}span.progress-line>i{display:block;height:100%;border-radius:inherit;background:var(--ux-accent);transition:width .18s ease}.collection-selected-progress span.progress-line{height:8px}
.collection-gate-splitter{position:relative;cursor:col-resize;display:grid;place-items:center;touch-action:none}.collection-gate-splitter::before{content:"";width:2px;height:42px;border-radius:999px;background:#c9d2dd}.collection-gate-splitter:hover::before,.collection-gate-splitter.dragging::before,.collection-gate-splitter:focus-visible::before{width:4px;background:var(--ux-accent)}
.collection-gate-editor{display:grid;grid-template-rows:62px 38px minmax(0,1fr);overflow:hidden}.collection-gate-editor-head{padding:7px 12px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid var(--ux-border);background:var(--ux-surface)}.collection-selected-store{min-width:0;display:flex;align-items:center;gap:7px}.collection-selected-store>.object-code{font-size:14px}.collection-selected-store>span:not(.collection-dispatch-badge){font-family:var(--font-hebrew);font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.collection-gate-editor-head small{display:block;margin-top:4px;color:var(--ux-ink-muted);font-size:9px}.collection-gate-editor-head p{margin:3px 0 0;color:var(--ux-ink-muted);font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.collection-gate-editor-head.closed-incomplete{background:color-mix(in srgb,var(--ux-warning-soft) 45%,var(--ux-surface))}
.collection-dispatch-badge{height:20px;padding:0 7px;border-radius:999px;display:inline-flex;align-items:center;font-size:9px;font-weight:600;white-space:nowrap}.collection-dispatch-badge.katz{background:var(--ux-neutral-soft);color:var(--ux-neutral-ink)}.collection-dispatch-badge.driver{background:var(--ux-info-soft);color:var(--ux-info)}.collection-dispatch-badge.unassigned{background:var(--ux-warning-soft);color:var(--ux-warning)}
.collection-selected-progress{min-width:190px;display:grid;grid-template-columns:minmax(80px,1fr) auto;align-items:center;gap:10px}.collection-selected-progress strong{font-size:11px;white-space:nowrap}
.collection-category-head{position:sticky;top:0;z-index:3;height:38px;padding:0 12px;display:grid;grid-template-columns:minmax(220px,1.35fr) 80px 80px 80px minmax(230px,1fr);gap:8px;align-items:center;background:var(--ux-surface-muted);border-bottom:1px solid var(--ux-border);color:var(--ux-ink-muted);font-size:8.5px;font-weight:600}
.collection-category-list{min-height:0;overflow:auto}.collection-category-row{min-height:58px;padding:7px 12px;display:grid;grid-template-columns:minmax(220px,1.35fr) 80px 80px 80px minmax(230px,1fr);gap:8px;align-items:center;border-bottom:1px solid var(--ux-border-subtle);background:var(--ux-surface)}.collection-category-row.complete{background:color-mix(in srgb,var(--ux-success-soft) 70%,var(--ux-surface))}.collection-category-row.pending{box-shadow:inset 3px 0 var(--ux-warning)}[dir="rtl"] .collection-category-row.pending{box-shadow:inset -3px 0 var(--ux-warning)}.collection-category-row.locked{opacity:.75;background:var(--ux-surface-subtle)}
.collection-category-copy{min-width:0}.collection-category-copy>div{display:flex;align-items:baseline;gap:7px;min-width:0}.collection-category-copy .object-code{font-size:10.5px}.collection-category-copy span{min-width:0;font-family:var(--font-hebrew);font-size:10.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.collection-category-copy small{display:block;margin-top:4px;color:var(--ux-ink-muted);font-size:8.5px}
.collection-metric{display:grid;gap:2px}.collection-metric strong{font-size:11px}.collection-metric small{font-size:8px;color:var(--ux-ink-muted)}.collection-metric.remaining.zero strong{color:var(--ux-success)}
.collection-controls{min-width:0;display:flex;align-items:center;justify-content:flex-end;gap:6px}.collection-quantity-button{width:36px;height:36px;border:1px solid var(--ux-border-strong);border-radius:7px;background:var(--ux-surface);color:var(--ux-ink);font-size:16px;font-weight:600}.collection-quantity-value{width:42px;height:36px;min-height:36px;border:0;background:transparent;padding:0;text-align:center;color:var(--ux-ink);font-size:13px;font-weight:700;font-variant-numeric:tabular-nums}.collection-quantity-value:focus{border:1px solid var(--ux-accent);border-radius:7px}.collection-all-button{height:36px;min-width:var(--ui-touch-target);border:1px solid var(--ux-border-strong);border-radius:7px;background:var(--ux-surface);color:var(--ux-ink);font-size:9.5px;font-weight:700}.collection-clear-button{height:30px;border:0;background:transparent;color:var(--ux-danger);font-size:9px;font-weight:600;padding:0 3px;white-space:normal;line-height:1.1}.collection-collected-state{display:none;align-items:center;justify-content:flex-end;gap:7px;color:var(--ux-success);font-size:10px}.collection-collected-state>span{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:var(--ux-success-soft)}.collection-collected-state .app-icon{width:14px;height:14px}.collection-category-row.complete .collection-controls{display:flex}.collection-category-row.complete .collection-collected-state{display:none}
.collection-gate-actionbar{min-height:62px;margin-inline:-12px;padding:7px 13px;display:flex;align-items:center;justify-content:space-between;gap:var(--ui-gap-loose);border-top:1px solid var(--ux-border);background:var(--ux-surface)}.collection-gate-actionbar>div:first-child{min-width:0;display:grid;gap:3px}.collection-gate-actionbar>div:first-child strong{font-size:10.5px}.collection-gate-actionbar>div:first-child span{font-size:9.5px;color:var(--ux-ink-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.collection-gate-actionbar>div:last-child{display:flex;align-items:center;gap:7px}.collection-gate-actionbar .button.primary{min-width:150px}
.collection-no-selection{min-height:420px;display:grid;place-items:center}.collection-complete-modal{display:grid;gap:12px}.collection-complete-modal h2{margin:0;font-size:16px}.collection-complete-modal>p{margin:0;color:var(--ux-ink-muted);font-size:11px}.collection-complete-fields{display:grid;grid-template-columns:1fr;gap:10px}.collection-complete-fields label{display:grid;gap:5px;font-size:10px;font-weight:600}.collection-complete-fields select,.collection-complete-fields textarea{width:100%;border:1px solid var(--ux-border-strong);border-radius:7px;background:var(--ux-surface);color:var(--ux-ink);padding:8px 9px;font-size:11px}.collection-complete-fields textarea{min-height:78px;resize:vertical}.collection-complete-modal>.button{justify-self:end}

@media(max-width:1100px){.collection-category-head,.collection-category-row{grid-template-columns:minmax(190px,1.2fr) 65px 65px 65px minmax(210px,1fr)}.collection-header-summary{min-width:220px}.collection-header-summary article{min-width:68px;padding-inline:7px}.collection-gate-workspace{grid-template-columns:minmax(170px,var(--collection-store-width)) 10px minmax(450px,1fr)}}
@media(max-width:760px){
  #page[data-page="collection"]{grid-template-rows:auto auto minmax(0,1fr) auto;height:calc(100dvh - var(--topbar-height) - var(--shell-feedback-height));padding:6px 8px 0}
  #page[data-page="collection"]>.workspace-header{min-height:64px;padding:5px 2px 7px;grid-template-columns:minmax(0,1fr)}.collection-header-summary{display:none}
  .collection-context-toolbar{min-height:var(--ui-touch-target);margin-inline:-8px;padding:4px 7px;grid-template-columns:auto minmax(0,1fr) auto;gap:5px}.collection-context-toolbar>.button{width:34px;min-width:34px;padding:0}.collection-context-toolbar>.button span{display:none}.collection-order-context{font-size:9px;gap:5px}.collection-order-context strong{font-size:10px}.collection-order-context span:nth-of-type(n+2){display:none}.collection-sync-chip{min-width:92px;height:26px;grid-template-columns:auto auto;padding-inline:7px}.collection-sync-chip small{display:none}.collection-sync-chip strong{font-size:8.5px}
  .collection-gate-surface{margin:6px 0;overflow:hidden}.collection-gate-workspace{height:100%;display:grid;grid-template-columns:1fr;grid-template-rows:82px minmax(0,1fr);gap:6px}.collection-gate-splitter{display:none}.collection-gate-store-panel{display:grid;grid-template-rows:30px 52px;border-radius:7px}.collection-gate-store-panel>header{height:30px;padding-inline:8px}.collection-gate-store-panel>header small{display:none}.collection-gate-store-list{display:flex;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}.collection-gate-store-list::-webkit-scrollbar{display:none}.collection-dispatch-group{display:contents}.collection-dispatch-group>header{display:none}.collection-gate-store{min-width:84px;width:84px;height:52px;min-height:52px;border-bottom:0;border-inline-end:1px solid #e5eaf0;padding:5px 6px;align-content:center}.collection-gate-store.selected{box-shadow:inset 0 -3px var(--ux-accent)}.collection-gate-store-name>span,.collection-gate-store-name>small{display:none}.collection-gate-store-name>.object-code{min-width:0;font-size:10.5px}.collection-gate-store-progress{display:block}.collection-gate-store-progress small{display:block;margin-top:3px;font-size:7.5px}.collection-gate-store-progress .progress-line{height:5px}
  .collection-gate-editor{grid-template-rows:60px minmax(0,1fr);border-radius:7px}.collection-gate-editor-head{padding:7px 9px}.collection-selected-store>.object-code{font-size:13px}.collection-selected-store>span:not(.collection-dispatch-badge){font-size:11px}.collection-gate-editor-head small{font-size:8px}.collection-gate-editor-head p{display:none}.collection-selected-progress{min-width:96px;grid-template-columns:1fr;gap:3px}.collection-selected-progress strong{text-align:end;font-size:9px}.collection-category-head{display:none}.collection-category-list{padding:5px;background:var(--ux-canvas)}
  .collection-category-row{min-height:126px;border:1px solid var(--ux-border);border-radius:8px;padding:9px;margin-bottom:6px;background:var(--ux-surface);display:grid;grid-template-columns:1fr auto auto auto;grid-template-rows:auto auto;gap:8px}.collection-category-copy{grid-column:1/-1}.collection-category-copy span{font-size:11px}.collection-category-copy small{font-size:8.5px}.collection-metric strong{font-size:12px}.collection-controls,.collection-collected-state{grid-column:1/-1;justify-content:stretch}.collection-quantity-button{width:var(--ui-touch-target);height:44px}.collection-quantity-value{height:44px;flex:1;width:auto;border:1px solid var(--ux-border-strong);border-radius:7px}.collection-all-button{height:var(--ui-touch-target);min-width:58px}.collection-clear-button{height:var(--ui-touch-target);min-width:54px}.collection-collected-state{height:44px;justify-content:center;background:var(--ux-success-soft);border-radius:7px}.collection-category-row.complete .collection-controls{display:flex}
  .collection-gate-actionbar{min-height:66px;margin-inline:-8px;padding:7px 8px calc(7px + var(--mobile-safe-bottom))}.collection-gate-actionbar>div:first-child{max-width:42%}.collection-gate-actionbar>div:last-child{margin-inline-start:auto}.collection-gate-actionbar .button.ghost{display:none}.collection-gate-actionbar .button.primary{height:48px;min-width:150px;max-width:210px;padding-inline:10px}.collection-gate-actionbar .button.primary span{font-size:10px}.collection-operation-panel{bottom:calc(var(--mobile-bottom-nav) + 2px)!important}
  .collection-complete-modal>.button{width:100%;height:48px}.collection-complete-fields select,.collection-complete-fields textarea{font-size:16px}
}


/* v125.0.0-clean-staging.22 — approved Inventory workspace */
#page[data-page="inventory"]{height:calc(100dvh - var(--topbar-height) - var(--shell-feedback-height));overflow:hidden;padding:0}
.inventory-v22-page{height:100%;min-height:0;display:grid;grid-template-rows:auto auto auto minmax(0,1fr) 48px;background:var(--ux-canvas);color:var(--ux-ink);overflow:hidden}
.inventory-v22-header{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding:14px 18px 10px;background:var(--ux-surface);border-bottom:1px solid var(--ux-border)}
.inventory-title-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.inventory-title-line h1{margin:0;font-size:19px;font-weight:700}
.inventory-v22-header p{margin:4px 0 0;font-size:11px;color:var(--ux-ink-muted)}
.inventory-header-metrics{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.inventory-header-metrics>div{min-width:74px;padding:5px 8px;border-inline-start:1px solid var(--ux-border)}.inventory-header-metrics span{display:block;font-size:9px;color:var(--ux-ink-muted);text-transform:uppercase;letter-spacing:.03em}.inventory-header-metrics strong{font-size:16px}
.inventory-v22-toolbar{display:flex;align-items:center;gap:var(--ui-gap);min-height:var(--ui-touch-target);padding:6px 12px;background:var(--ux-surface);border-bottom:1px solid var(--ux-border)}.inventory-filter-summary{font-size:var(--ui-type-caption);color:var(--ux-ink-muted);white-space:nowrap}.inventory-search{flex:1;max-width:440px;margin-inline-start:auto}
.inventory-v22-filters{display:none;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--ui-gap-loose);padding:10px 14px;background:var(--ux-surface-muted);border-bottom:1px solid var(--ux-border)}.inventory-v22-filters.open{display:grid}.inventory-filter-panel-head{display:none}.inventory-filter-group{min-width:0}.inventory-filter-group h3{margin:0 0 5px;font-size:10px;text-transform:uppercase;letter-spacing:.04em;color:var(--ux-ink-muted)}.inventory-filter-options{display:flex;gap:5px;flex-wrap:wrap}.inventory-filter-select select{width:100%;min-height:30px;border:1px solid var(--ux-border);border-radius:5px;background:var(--ux-surface);padding:4px 7px;font:inherit;font-size:10px}.inventory-location-order{display:grid;gap:5px;font-size:10px;color:var(--ux-ink-muted)}.inventory-filter-actions{display:flex;align-items:flex-end;justify-content:flex-end;gap:6px}.inventory-filter-close{display:none}
.inventory-v22-workspace{--inventory-list-width:68%;position:relative;display:grid;grid-template-columns:minmax(0,var(--inventory-list-width)) 6px minmax(280px,1fr);min-height:0;overflow:hidden;background:var(--ux-canvas)}.inventory-v22-list-panel,.inventory-v22-detail{min-width:0;min-height:0;background:var(--ux-surface)}.inventory-v22-list-panel{overflow:hidden}.inventory-v22-list{height:100%;overflow:auto}.inventory-v22-table{font-size:10.5px}.inventory-v22-table thead{position:sticky;top:0;z-index:2}.inventory-v22-table th{white-space:nowrap}.inventory-sort.active{color:var(--ux-accent)}.inventory-v22-table td{padding:6px 7px;border-bottom:1px solid var(--ux-border-subtle);vertical-align:middle}.inventory-v22-table tr{cursor:pointer}.inventory-v22-table tbody tr:hover{background:var(--ux-surface-hover)}.inventory-v22-table tbody tr.selected{background:var(--ux-surface-selected);box-shadow:inset 3px 0 0 var(--ux-accent)}[dir=rtl] .inventory-v22-table tbody tr.selected{box-shadow:inset -3px 0 0 var(--ux-accent)}.inventory-v22-table .numeric{text-align:end}.inventory-v22-table td.numeric strong{font-size:11px}.inventory-v22-table td.numeric small{font-size:8px;color:var(--ux-ink-muted);margin-inline-start:2px}.inventory-category-cell{display:grid;gap:2px}.inventory-category-cell .object-code{font-weight:700}.inventory-category-cell span{font-size:9px;color:var(--ux-ink-muted);max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.inventory-season-tag{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;font-size:9px}.inventory-season-tag i{width:6px;height:6px;border-radius:50%;background:var(--ux-border-strong)}.inventory-season-tag[data-season=winter] i{background:#3976c9}.inventory-season-tag[data-season=summer] i{background:#c85b4d}.inventory-season-tag[data-season=all_seasons] i{background:#22815b}.inventory-season-tag[data-season=transition] i{background:#a47719}.inventory-location-chips{display:flex;align-items:center;gap:3px;flex-wrap:wrap}.inventory-location-groups{gap:5px}.inventory-location-group{display:inline-flex;align-items:center;gap:3px;min-width:0}.inventory-location-group-label{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:18px;padding:0 4px;border-radius:4px;background:var(--ux-surface-muted);color:var(--ux-ink-muted);font-size:7.5px;font-weight:800;line-height:1}.inventory-location-group-g .inventory-location-group-label{background:var(--ux-warning-soft);color:var(--ux-warning)}.inventory-location-group-out .inventory-location-group-label{background:var(--ux-accent-soft);color:var(--ux-accent)}.inventory-location-group-chips{display:inline-flex;align-items:center;gap:3px;flex-wrap:wrap}.inventory-location-link{border:1px solid var(--ux-border-strong);background:var(--ux-surface-subtle);color:var(--ux-ink-secondary-strong);border-radius:4px;padding:2px 5px;font:inherit;font-size:9px;cursor:pointer}.inventory-location-link:hover,.inventory-location-link:focus-visible{border-color:var(--ux-accent);color:var(--ux-ink-strong);outline:none}.inventory-no-location{font-size:9px;color:var(--ux-ink-faint)}
.inventory-splitter{grid-column:2;cursor:col-resize;background:var(--ux-border);position:relative}.inventory-splitter:after{content:'';position:absolute;inset:0 -3px}.inventory-splitter:focus-visible{outline:2px solid var(--ux-accent);outline-offset:-2px}.inventory-v22-detail{grid-column:3;display:grid;grid-template-rows:auto auto minmax(0,1fr);border-inline-start:1px solid var(--ux-border)}.inventory-detail-head{display:flex;align-items:flex-start;gap:9px;padding:10px 12px;border-bottom:1px solid var(--ux-border)}.inventory-detail-identity{min-width:0;flex:1}.inventory-detail-identity>div{display:flex;align-items:baseline;gap:8px}.inventory-detail-code{font-size:16px;font-weight:700}.inventory-detail-identity strong{font-size:12px}.inventory-detail-identity small{display:block;margin-top:3px;font-size:9px;color:var(--ux-ink-muted)}.inventory-mobile-back{display:none}.inventory-detail-tabs{padding-inline:10px;background:var(--ux-surface)}.inventory-detail-scroll{min-height:0;overflow:auto;padding-bottom:18px}.inventory-detail-section{padding:12px;border-bottom:1px solid var(--ux-border)}.inventory-detail-section h3{margin:0 0 8px;font-size:11px}.inventory-stock-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.inventory-stock-summary>div,.inventory-info-grid>div{padding:8px;border:1px solid var(--ux-border);border-radius:6px;background:var(--ux-surface-muted)}.inventory-stock-summary span,.inventory-info-grid span{display:block;font-size:8.5px;color:var(--ux-ink-muted)}.inventory-stock-summary strong{font-size:18px}.inventory-stock-summary small{display:block;font-size:8px;color:var(--ux-ink-faint)}.inventory-edit-block{border:1px solid var(--ux-border);border-radius:7px;overflow:hidden}.inventory-edit-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 9px}.inventory-edit-row+ .inventory-edit-row{border-top:1px solid var(--ux-border)}.inventory-edit-row strong{display:block;font-size:10px}.inventory-edit-row small{display:block;font-size:8.5px;color:var(--ux-ink-muted);margin-top:2px}.inventory-stepper{justify-self:end}.inventory-quick-note,.inventory-history-note{font-size:8.5px;color:var(--ux-ink-muted);margin:7px 0 0}.inventory-readonly-note{padding:9px;border:1px solid var(--ux-border);background:var(--ux-surface-muted);border-radius:6px;font-size:9px;color:var(--ux-ink-muted)}
.inventory-placement-decision{margin-top:8px;border:1px solid var(--ux-info-border);border-radius:7px;background:var(--ux-info-soft);padding:8px}.inventory-placement-decision.warning{border-color:#e5bd75;background:var(--ux-warning-soft)}.inventory-placement-decision-head{display:flex;justify-content:space-between;gap:8px;margin-bottom:6px}.inventory-placement-decision-head strong{font-size:10px}.inventory-placement-decision-head span{font-size:8.5px;color:var(--ux-ink-muted)}.inventory-placement-decision>div:nth-child(2) b{display:block;font-size:10px}.inventory-placement-decision>div:nth-child(2) small{display:block;margin-top:2px;font-size:8.5px;color:var(--ux-ink-muted)}.inventory-placement-actions{display:flex;gap:5px;margin-top:7px}.inventory-placement-options{display:grid;gap:4px;margin-top:7px}.inventory-placement-option{display:grid;text-align:start;gap:2px;border:1px solid var(--ux-border);border-radius:5px;background:var(--ux-surface);padding:6px 8px;font:inherit}.inventory-placement-option.selected{border-color:var(--ux-accent);background:var(--ux-accent-soft)}.inventory-placement-option strong{font-size:9.5px}.inventory-placement-option span{font-size:8px;color:var(--ux-ink-muted)}.inventory-placement-decision>p{margin:7px 0 0;font-size:8px;color:var(--ux-ink-muted)}.inventory-section-title-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.inventory-placement-list{display:grid;gap:6px}.inventory-placement-row{display:grid;grid-template-columns:1fr auto;gap:3px 8px;padding:7px;border:1px solid var(--ux-border);border-radius:6px}.inventory-placement-row>div:first-child{display:flex;justify-content:space-between;gap:8px}.inventory-placement-row strong{font-size:9.5px}.inventory-placement-row span,.inventory-placement-row small{font-size:8.5px;color:var(--ux-ink-muted)}.inventory-placement-row .inventory-location-chips{grid-column:1/-1}.inventory-mini-chart{height:105px;display:flex;align-items:end;gap:6px;padding:8px 4px 0;border-bottom:1px solid var(--ux-border)}.inventory-mini-chart>div{height:100%;flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:3px}.inventory-chart-bar{display:block;width:min(20px,80%);height:var(--bar,0);min-height:2px;background:var(--ux-accent);border-radius:3px 3px 0 0}.inventory-mini-chart small{font-size:7.5px;color:var(--ux-ink-muted)}.inventory-history-table{display:grid;gap:3px;margin-top:8px}.inventory-history-table>div{display:grid;grid-template-columns:1.4fr repeat(4,1fr);gap:4px;font-size:8px;padding:3px 0;border-bottom:1px dotted var(--ux-border)}.inventory-info-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:6px}.inventory-info-grid strong{font-size:10px}.inventory-related{display:flex;justify-content:space-between;align-items:center;margin-top:10px;font-size:9px}.inventory-empty-tab,.inventory-loading{padding:28px;text-align:center;color:var(--ux-ink-muted)}
.inventory-v22-actionbar{display:flex;align-items:center;justify-content:space-between;gap:var(--ui-gap-loose);padding:6px 12px;background:var(--ux-surface);border-top:1px solid var(--ux-border);min-width:0}.inventory-v22-actionbar>span{font-size:9px;color:var(--ux-ink-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.inventory-v22-actionbar>div{display:flex;gap:6px}.inventory-save-overlay{position:absolute;inset:0;z-index:8;display:grid;place-items:center;background:rgba(247,249,252,.78);backdrop-filter:blur(1px)}.inventory-save-overlay[hidden]{display:none}.inventory-save-overlay>div{width:min(320px,80%);padding:16px;border:1px solid var(--ux-border);border-radius:8px;background:var(--ux-surface);box-shadow:0 10px 28px rgba(20,35,55,.12);text-align:center}.inventory-save-overlay strong{display:block;font-size:12px}.inventory-save-overlay span{display:block;margin:4px 0 10px;font-size:9px;color:var(--ux-ink-muted)}.inventory-save-overlay>div>div{display:flex;gap:5px;justify-content:center}.inventory-save-overlay i{width:7px;height:7px;border-radius:50%;background:var(--ux-accent);animation:inventoryPulse 1s infinite alternate}.inventory-save-overlay i:nth-child(2){animation-delay:.2s}.inventory-save-overlay i:nth-child(3){animation-delay:.4s}@keyframes inventoryPulse{to{opacity:.25;transform:translateY(-3px)}}

/* v125.0.0-clean-staging.22 Inventory mobile touch target final overrides.
   ux-system.css loads after mobile.css, so controls that have desktop dimensions
   in this file must restate the approved phone geometry here. */
/* v125.0.0-clean-staging.22.1 — Inventory control consistency and editor ergonomics */
.inventory-v22-page{grid-template-rows:auto auto auto minmax(0,1fr)}
.inventory-v22-detail{grid-template-rows:auto auto minmax(0,1fr) auto}
.inventory-edit-block{display:grid;gap:8px;border:0;overflow:visible;background:transparent}
.inventory-balance-editor{display:grid;gap:7px;padding:9px;border:1px solid var(--ux-border);border-radius:7px;background:var(--ux-surface)}
.inventory-balance-editor>header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.inventory-balance-editor>header>div{min-width:0}
.inventory-balance-editor>header strong{display:block;font-size:10.5px}
.inventory-balance-editor>header small{display:block;margin-top:2px;font-size:8.5px;color:var(--ux-ink-muted)}
.inventory-current-balance{display:flex;align-items:baseline;gap:5px;white-space:nowrap;color:var(--ux-ink-muted)}
.inventory-current-balance small{margin:0!important;font-size:8.5px!important}
.inventory-current-balance b{font-size:13px;color:var(--ux-ink)}
.inventory-balance-control{display:grid;grid-template-columns:52px minmax(92px,1fr) 52px;gap:6px;align-items:end}
.inventory-balance-control>button{height:38px;min-height:38px;border:1px solid var(--ux-border-strong);border-radius:var(--ui-radius-control);background:var(--ux-surface-muted);color:var(--ux-accent);font-size:var(--ui-type-control);font-weight:700;cursor:pointer}
.inventory-balance-control>button:hover{border-color:var(--ux-accent);background:var(--ux-accent-soft)}
.inventory-balance-control>label{display:grid;gap:3px;margin:0;font-weight:500;color:var(--ux-ink-muted)}
.inventory-balance-control>label>span{font-size:8.5px;text-align:center}
.inventory-balance-control .inventory-balance-input{width:100%;height:38px;min-height:38px;padding:5px 8px;border:1px solid var(--ux-border-strong);border-radius:6px;background:var(--ux-surface);text-align:center;font-size:var(--ui-type-section-title);font-weight:700;color:var(--ux-ink)}
.inventory-balance-change{display:flex;align-items:center;justify-content:flex-end;gap:5px;min-height:18px;font-size:8.5px;color:var(--ux-ink-muted)}
.inventory-balance-change strong{min-width:28px;text-align:end;font-size:10px;color:var(--ux-ink-muted)}
.inventory-balance-change.changed strong{color:var(--ux-accent)}
.inventory-detail-actionbar{min-height:52px;padding:7px 10px;border-top:1px solid var(--ux-border);background:var(--ux-surface);display:flex;align-items:center;justify-content:space-between;gap:8px}
.inventory-detail-actionbar>span{min-width:0;white-space:normal;line-height:1.25}
.inventory-detail-actionbar>.button{min-width:118px;flex:0 0 auto}
@media(max-width:760px){
  .inventory-v22-page{grid-template-rows:auto auto minmax(0,1fr)}
  .inventory-balance-control{grid-template-columns:58px minmax(100px,1fr) 58px}
  .inventory-balance-control>button,.inventory-balance-control .inventory-balance-input{height:var(--ui-touch-target);min-height:44px}
  .inventory-detail-actionbar{min-height:58px;padding:6px 8px calc(6px + var(--mobile-safe-bottom))}
  .inventory-detail-actionbar>span{display:none}
  .inventory-detail-actionbar>.button{width:100%;min-height:44px}
}
@media(max-width:760px){.inventory-filter-close{display:inline-flex}}
@media(max-width:760px){.inventory-filter-panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px}}

/* v125.0.0-clean-staging.22.1 — phone Inventory must not retain desktop splitter tracks. */
@media(max-width:760px){
  .inventory-v22-workspace{display:block!important;grid-template-columns:none!important;width:100%!important}
  .inventory-v22-list-panel,.inventory-v22-detail{width:100%!important;min-width:0!important;max-width:none!important}
}

/* v125.0.0-clean-staging.23 — Gate 06 R6 Warehouse Reference */
body[data-route="warehouse-reference"] .main-content{height:calc(100dvh - var(--topbar-height) - var(--shell-feedback-height));padding:0;overflow:hidden;align-content:stretch}
body[data-route="warehouse-reference"] .warehouse-r6{height:calc(100dvh - var(--topbar-height) - var(--shell-feedback-height))}
.warehouse-r6{height:100%;min-height:0;display:grid;grid-template-rows:auto 46px minmax(0,1fr) 58px;background:var(--ux-canvas);color:var(--ux-ink)}
.wr6-header{min-height:66px;background:var(--ux-surface);border-bottom:1px solid var(--ux-border);padding:8px 16px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.wr6-title{min-width:0}.wr6-title-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.wr6-title h1{margin:0;font-size:20px;line-height:1.15}.wr6-title p{margin:5px 0 0;color:var(--ux-ink-muted);font-size:11px;line-height:1.3}
.wr6-summary{display:flex;align-items:stretch}.wr6-summary>div{min-width:92px;padding:3px 10px;border-inline-start:1px solid var(--ux-border);display:grid;align-content:center}.wr6-summary>div:first-child{border-inline-start:0}.wr6-summary span{font-size:9px;color:var(--ux-ink-muted);font-weight:650}.wr6-summary strong{font-size:14px;margin-top:2px}.wr6-summary .warning{color:#98651d}
.wr6-toolbar{min-width:0;background:var(--ux-surface-subtle);border-bottom:1px solid var(--ux-border);display:grid;grid-template-columns:auto minmax(220px,330px) minmax(0,1fr) auto;align-items:center;gap:9px;padding:6px 12px}.wr6-panel{background:var(--ux-surface);border:1px solid var(--ux-border);border-radius:8px;min-width:0;min-height:0;overflow:hidden}.wr6-panel>header{height:51px;border-bottom:1px solid var(--ux-border);background:var(--ux-surface-raised);padding:0 11px;display:flex;align-items:center;justify-content:space-between;gap:8px}.wr6-panel>header>div{min-width:0;display:grid}.wr6-panel>header strong{font-size:12px}.wr6-panel>header small{font-size:9px;color:var(--ux-ink-muted);margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wr6-map{height:100%;min-height:0;display:grid;grid-template-columns:220px minmax(0,1fr) 310px;gap:10px}
.wr6-map-panel{display:grid}
.wr6-detail{display:grid;grid-template-rows:51px minmax(0,1fr)}.wr6-detail-scroll{overflow:auto;padding:11px}.wr6-detail-title{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding-bottom:10px;border-bottom:1px solid var(--ux-border)}.wr6-detail-title h2{font-size:19px;margin:0}.wr6-detail-title p{font-size:9px;color:var(--ux-ink-muted);margin:4px 0 0}.wr6-detail-section{padding:11px 0;border-bottom:1px solid var(--ux-border)}.wr6-detail-section:last-child{border-bottom:0}.wr6-detail-section h3{font-size:10px;margin:0 0 8px}.wr6-detail-section dl{display:grid;grid-template-columns:minmax(90px,1fr) auto;gap:6px 10px;margin:0}.wr6-detail-section dt{font-size:9px;color:var(--ux-ink-muted)}.wr6-detail-section dd{font-size:10px;font-weight:650;margin:0;text-align:end}.wr6-detail-actions{display:flex;flex-wrap:wrap;gap:var(--ui-gap-tight);margin-top:10px}.wr6-full{width:100%;min-height:38px}.wr6-callout{padding:8px 9px;border-radius:7px;background:var(--ux-info-soft);color:var(--ux-info);font-size:9px;margin-bottom:8px}.wr6-detail .field{display:grid;gap:5px;margin-bottom:8px}.wr6-detail .field span{font-size:9px;font-weight:650}.wr6-detail .field select{height:36px;border:1px solid var(--ux-border-strong);border-radius:7px;padding:0 8px;background:var(--ux-surface);width:100%;font-size:10px}
.wr6-actionbar{height:58px;border-top:1px solid var(--ux-border);background:var(--ux-surface);display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 12px}.wr6-actionbar>div:first-child{min-width:0;display:grid}.wr6-actionbar span{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wr6-actionbar small{font-size:8.5px;color:var(--ux-ink-muted);margin-top:2px}.wr6-actionbar>div:last-child{display:flex;gap:7px}.wr6-empty{height:100%;min-height:140px;display:grid;place-items:center;padding:20px;text-align:center;color:var(--ux-ink-muted);font-size:11px}.wr6-mobile-back{display:none!important}.warehouse-r6 bdi{direction:ltr;unicode-bidi:isolate;font-variant-numeric:tabular-nums}
@media(max-width:1050px){.wr6-summary>div{min-width:72px;padding-inline:7px}.wr6-map{grid-template-columns:190px minmax(0,1fr) 270px}}
@media(max-width:900px){.wr6-title p{max-width:520px}.wr6-summary>div:first-child{display:none}.wr6-map{grid-template-columns:176px minmax(0,1fr) 250px}.wr6-toolbar{grid-template-columns:auto minmax(180px,1fr) auto auto}}
@media(max-width:760px){
 body[data-route="warehouse-reference"] .main-content{height:calc(100dvh - var(--topbar-height) - var(--shell-feedback-height) - var(--mobile-bottom-nav));padding:0;align-content:stretch}body[data-route="warehouse-reference"] .warehouse-r6{height:calc(100dvh - var(--topbar-height) - var(--shell-feedback-height) - var(--mobile-bottom-nav))}.warehouse-r6{grid-template-rows:auto auto minmax(0,1fr) 64px}.wr6-header{min-height:58px;padding:8px 10px}.wr6-title h1{font-size:17px}.wr6-title p{display:none}.wr6-summary{display:none}.wr6-toolbar{grid-template-columns:1fr auto;padding:6px 8px;gap:6px}.wr6-toolbar>.button{width:var(--ui-touch-target);height:42px;padding:0}.wr6-toolbar>.button span{display:none}.wr6-map{grid-template-columns:1fr;height:100%;gap:0}.wr6-map>.wr6-map-panel,.wr6-map>.wr6-detail{display:none}.wr6-map.mobile-detail>.wr6-detail{display:grid;width:100%;height:100%}.wr6-panel>header{height:48px}.wr6-mobile-back{display:inline-flex;min-width:var(--ui-touch-target);min-height:40px}.wr6-detail-scroll{padding:12px}.wr6-detail-title h2{font-size:24px}.wr6-detail-title p,.wr6-detail-section h3,.wr6-detail-section dt,.wr6-detail-section dd{font-size:12px}.wr6-detail-actions{display:grid;grid-template-columns:1fr}.wr6-detail-actions .button{min-height:var(--ui-touch-target);width:100%}.wr6-actionbar{height:64px;padding:8px}.wr6-actionbar>div:first-child{max-width:45%}.wr6-actionbar>div:last-child{flex:1;justify-content:flex-end}.wr6-actionbar .button{min-height:44px}.wr6-actionbar #wr6-open-inventory span{display:none}.wr6-actionbar #wr6-open-inventory{width:var(--ui-touch-target);padding:0}.wr6-actionbar #wr6-save{flex:1;max-width:190px}
}
@media(max-width:760px){.wr6-detail{grid-template-rows:48px auto minmax(0,1fr)}}
@media(max-width:760px){}
@media(max-width:760px){.wr6-mobile-back.button.compact{height:var(--ui-touch-target);min-height:var(--ui-touch-target);min-width:44px}}

/* Gate 06 R6 completion: searchable map, five-column category browser, persisted splitter, restricted state. */
.wr6-restricted{height:100%;display:grid;place-items:center;background:var(--ux-canvas);padding:20px}.wr6-restricted>div{max-width:460px;text-align:center;border:1px solid var(--ux-border);border-radius:10px;background:var(--ux-surface);padding:28px}.wr6-restricted .app-icon{width:28px;height:28px;color:var(--ux-ink-muted)}.wr6-restricted h1{font-size:20px;margin:10px 0 6px}.wr6-restricted p{font-size:11px;line-height:1.5;color:var(--ux-ink-muted);margin:0}
@media(max-width:900px){}
@media(max-width:760px){}
@media(max-width:900px){}
@media(max-width:760px){}


/* v125.0.0-clean-staging.23 UI hotfix 1 — workflow clarity and measurable viewport corrections. */
#global-status,.toast-host{height:28px;max-height:28px}
#global-status{min-height:28px;padding:3px 8px}
.toast{height:28px;min-height:28px;padding-block:3px}
.inventory-saved-placement{margin:0 12px 10px;padding:9px;border:1px solid #b8dfc8;border-radius:7px;background:var(--ux-success-soft);display:grid;gap:8px}
.inventory-saved-placement>div:first-child{display:flex;align-items:flex-start;gap:8px}.inventory-saved-placement>div:first-child>.app-icon{width:16px;height:16px;flex:0 0 auto;margin-top:1px;color:var(--ux-success)}
.inventory-saved-placement strong,.inventory-saved-placement small{display:block}.inventory-saved-placement strong{font-size:10.5px}.inventory-saved-placement small{margin-top:2px;font-size:9px;color:var(--ux-ink-muted)}
.wr6-field-help{margin:0 0 8px;font-size:9px;line-height:1.4;color:var(--ux-ink-muted)}
.wr6-empty-assignment{padding:10px;border:1px solid var(--ux-border);border-radius:7px;background:var(--ux-surface-muted);display:grid;gap:7px}.wr6-empty-assignment strong{font-size:10.5px}.wr6-empty-assignment p{margin:0;font-size:9px;line-height:1.45;color:var(--ux-ink-muted)}
@media(max-width:760px){
  html,body,#app{height:100%;min-height:100%;overflow:hidden}
  .app-shell{height:100dvh;min-height:100dvh;padding-bottom:0;overflow:hidden}
  body[data-route="warehouse-reference"] .shell-main{height:calc(100dvh - var(--mobile-bottom-nav));min-height:0;display:grid;grid-template-rows:var(--topbar-height) auto minmax(0,1fr);overflow:hidden}
  body[data-route="warehouse-reference"] .topbar{position:relative;inset:auto}
  body[data-route="warehouse-reference"] .shell-feedback{height:var(--shell-feedback-height);min-height:var(--shell-feedback-height);max-height:var(--shell-feedback-height);padding:3px 8px;transition:height .12s ease,min-height .12s ease,max-height .12s ease,padding .12s ease}
  body[data-route="warehouse-reference"] .shell-feedback[data-active="false"]{height:0;min-height:0;max-height:0;padding-block:0;border:0}
  body[data-route="warehouse-reference"] .wr6-header{display:none}
  body[data-route="warehouse-reference"] .wr6-toolbar{grid-template-columns:1fr auto;padding:5px 7px;gap:5px}
  body[data-route="warehouse-reference"] .wr6-toolbar>.button{height:var(--touch-target-min);min-height:var(--touch-target-min)}
  body[data-route="warehouse-reference"] .wr6-actionbar{height:56px;padding:6px 8px}
  body[data-route="warehouse-reference"] .topbar .icon-button,body[data-route="warehouse-reference"] .topbar .button,body[data-route="warehouse-reference"] .topbar-avatar{width:var(--touch-target-min);min-width:var(--touch-target-min);height:var(--touch-target-min);min-height:var(--touch-target-min);padding:0}
  body[data-route="warehouse-reference"] .wr6-mobile-back,body[data-route="warehouse-reference"] .wr6-detail-section .button,body[data-route="warehouse-reference"] .wr6-detail .field select{min-height:var(--touch-target-min)}
  body[data-route="warehouse-reference"] .inventory-location-link{min-height:var(--touch-target-min)}
  .inventory-saved-placement{margin-inline:8px}.inventory-saved-placement .inventory-location-link,.inventory-saved-placement>.button{min-height:var(--touch-target-min)}
}
@media(max-width:760px){}

/* v125.0.0-clean-staging.23 UI hotfix 2 — stable Inventory context and direct placement task. */
.inventory-v22-table tbody tr.selected{background:var(--ux-accent-soft);box-shadow:inset 4px 0 0 var(--ux-accent),inset 0 0 0 1px color-mix(in srgb,var(--ux-accent) 24%,transparent)}
[dir=rtl] .inventory-v22-table tbody tr.selected{box-shadow:inset -4px 0 0 var(--ux-accent),inset 0 0 0 1px color-mix(in srgb,var(--ux-accent) 24%,transparent)}
.inventory-v22-table tbody tr.selected .inventory-category-cell .object-code{color:var(--ux-accent)}
.inventory-placement-select,.inventory-placement-only{display:grid;gap:5px;margin-top:8px;padding:8px;border:1px solid var(--ux-border);border-radius:6px;background:var(--ux-surface)}
.inventory-placement-select>span,.inventory-placement-only>span{font-size:9px;font-weight:700;color:var(--ux-ink-muted)}
.inventory-placement-select select{width:100%;min-height:38px;border:1px solid var(--ux-border-strong);border-radius:var(--ui-radius-control);background:var(--ux-surface);padding:6px 8px;font:inherit;font-size:var(--ui-type-caption);color:var(--ux-ink)}
.inventory-placement-select small,.inventory-placement-only small{font-size:8.5px;line-height:1.4;color:var(--ux-ink-muted)}
.inventory-placement-only strong{font-size:11px;color:var(--ux-accent)}
@media(max-width:760px){
  .inventory-placement-select select{min-height:var(--touch-target-min);font-size:13px}
  .inventory-placement-actions .button{min-height:var(--touch-target-min);width:100%}
}
@media(max-width:760px){
  body[data-route="inventory"] .topbar .icon-button,body[data-route="inventory"] .topbar .button,body[data-route="inventory"] .topbar-avatar{width:var(--touch-target-min);min-width:var(--touch-target-min);height:var(--touch-target-min);min-height:var(--touch-target-min);padding:0}
  
}

/* v125.0.0-clean-staging.23 UI hotfix 3 — unified Inventory and placement workspace. */
.placement-category-rail,.placement-map-component{min-width:0;min-height:0;border:1px solid var(--ux-border);border-radius:8px;background:var(--ux-surface);overflow:hidden}
.placement-category-rail{display:grid;grid-template-rows:52px 40px minmax(0,1fr)}
.placement-category-rail>header,.placement-map-header{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 9px;border-bottom:1px solid var(--ux-border);background:var(--ux-surface)}
.placement-category-rail>header>div,.placement-map-header>div{min-width:0;display:grid;gap:2px}
.placement-category-rail>header strong,.placement-map-header strong{font-size:11px;line-height:1.2}
.placement-category-rail>header small,.placement-map-header small{min-width:0;color:var(--ux-ink-muted);font-size:8.5px;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.placement-category-rail>header>span,.placement-map-header>span{flex:0 0 auto;border:1px solid var(--ux-border);border-radius:999px;background:var(--ux-surface-muted);padding:2px 6px;font-size:8.5px;font-variant-numeric:tabular-nums}
.placement-category-sort{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:6px;padding:5px 8px;border-bottom:1px solid var(--ux-border);background:var(--ux-canvas)}
.placement-category-sort>span{font-size:8px;font-weight:700;color:var(--ux-ink-muted)}
.placement-category-sort select,.placement-map-zone select{min-width:0;width:100%;height:28px;border:1px solid var(--ux-border-strong);border-radius:5px;background:var(--ux-surface);padding:0 6px;font:inherit;font-size:9px;color:var(--ux-ink)}
.placement-category-list{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.placement-category-item{width:100%;min-height:48px;border:0;border-bottom:1px solid var(--ux-border);background:var(--ux-surface);padding:6px 8px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:center;text-align:start;color:var(--ux-ink);cursor:pointer}
.placement-category-item:hover{background:var(--ux-surface-subtle)}.placement-category-item:focus-visible{position:relative;z-index:1;outline:2px solid var(--ux-accent);outline-offset:-2px}
.placement-category-item.active{background:var(--ux-accent-soft);box-shadow:inset 4px 0 0 var(--ux-accent)}
[dir=rtl] .placement-category-item.active{box-shadow:inset -4px 0 0 var(--ux-accent)}
.placement-category-item.needs-placement:not(.active) .placement-category-stats .warning{color:#9a5a00}
.placement-category-identity{min-width:0;display:grid;gap:2px}.placement-category-identity bdi{font-size:12px;font-weight:800}.placement-category-identity small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:8.5px;color:var(--ux-ink-muted)}
.placement-category-stats{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(25px,auto);gap:3px}.placement-category-stats b{min-width:25px;border:1px solid var(--ux-border);border-radius:4px;background:var(--ux-surface);padding:3px 4px;text-align:center;font-size:8.5px;font-variant-numeric:tabular-nums}.placement-category-item.active .placement-category-stats b{background:var(--ux-surface-raised)}
.placement-empty{height:100%;min-height:86px;display:grid;place-items:center;padding:16px;color:var(--ux-ink-muted);font-size:10px;text-align:center}

.placement-map-component{height:100%;display:grid;grid-template-rows:52px auto auto minmax(0,1fr)}.placement-map-component.without-controls{grid-template-rows:52px auto minmax(0,1fr)}
.storage-location-map{min-height:360px}.storage-location-map>.placement-map-component{height:360px}@media(max-width:760px){.storage-location-map,.storage-location-map>.placement-map-component{height:clamp(560px,76svh,760px);min-height:560px}}
.placement-map-toolbar{display:grid;grid-template-columns:minmax(150px,1fr) auto minmax(112px,150px);gap:6px;align-items:center;padding:6px 8px;border-bottom:1px solid var(--ux-border);background:var(--ux-canvas)}
.placement-map-search{min-width:0;height:32px;display:flex;align-items:center;gap:5px;border:1px solid var(--ux-border-strong);border-radius:6px;background:var(--ux-surface);padding:0 7px}.placement-map-search .app-icon{width:13px;height:13px;color:var(--ux-ink-muted)}.placement-map-search input{min-width:0;width:100%;height:30px;border:0;outline:0;background:transparent;font:inherit;font-size:9.5px;color:var(--ux-ink)}
.placement-map-filters{display:flex;align-items:center;gap:3px}.placement-map-filters button{height:32px;min-width:42px;border:1px solid var(--ux-border);border-radius:5px;background:var(--ux-surface);padding:0 7px;font:inherit;font-size:8.5px;font-weight:700;color:var(--ux-ink-muted);cursor:pointer}.placement-map-filters button:hover{border-color:var(--ux-border-strong)}.placement-map-filters button.active{border-color:var(--ux-accent);background:var(--ux-accent-soft);color:var(--ux-accent)}
.placement-map-zone{min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:4px}.placement-map-zone>span{font-size:8px;font-weight:700;color:var(--ux-ink-muted)}.placement-map-zone select{height:32px}
.placement-map-legend{min-height:27px;display:flex;align-items:center;gap:8px;overflow-x:auto;padding:4px 8px;border-bottom:1px solid var(--ux-border);background:var(--ux-surface);scrollbar-width:none}.placement-map-legend::-webkit-scrollbar{display:none}.placement-map-legend span{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;font-size:7.5px;color:var(--ux-ink-muted)}.placement-map-legend span::before{content:"";width:8px;height:8px;border:1px solid var(--ux-border-strong);border-radius:2px;background:var(--ux-surface)}
.placement-map-legend .current::before{border-color:var(--ux-location-current-border);background:var(--ux-location-current-bg)}.placement-map-legend .selected::before{border:2px solid var(--ux-location-selected-border);background:var(--ux-location-selected-bg)}.placement-map-legend .free::before{border-color:var(--ux-location-free-border);background:var(--ux-location-free-bg)}.placement-map-legend .partial::before{border-color:var(--ux-location-partial-border);background:var(--ux-location-partial-bg)}.placement-map-legend .full::before{border-color:var(--ux-location-full-border);background:var(--ux-location-full-bg)}.placement-map-legend .occupied::before{border-color:var(--ux-location-occupied-border);background:var(--ux-location-occupied-bg)}
.placement-map-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:8px;background:var(--ux-surface-subtle)}
.placement-rack-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(176px,1fr));gap:8px;align-items:start}
.placement-rack{min-width:0;border:1px solid var(--ux-border);border-radius:7px;background:var(--ux-surface);overflow:hidden}.placement-rack>header{min-height:32px;display:flex;align-items:center;justify-content:space-between;gap:6px;padding:5px 7px;border-bottom:1px solid var(--ux-border);background:var(--ux-canvas)}.placement-rack>header strong{font-size:9.5px}.placement-rack>header span{font-size:8px;color:var(--ux-ink-muted);font-variant-numeric:tabular-nums}
.placement-rack>div{display:grid;gap:5px;padding:6px}.placement-rack section{min-width:0;display:grid;grid-template-columns:19px minmax(0,1fr);gap:4px;align-items:start}.placement-rack section>b{padding-top:15px;text-align:center;font-size:8px;color:var(--ux-ink-muted)}.placement-rack section>div{min-width:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px}
.placement-location{min-width:0;border:1px solid var(--ux-border-strong);border-radius:5px;background:var(--ux-surface);color:var(--ux-ink);cursor:pointer;text-align:center;position:relative}.placement-location:hover{z-index:1;border-color:var(--ux-accent)}.placement-location:focus-visible{z-index:2;outline:2px solid var(--ux-accent);outline-offset:1px}
.placement-location.exact,.placement-location.shared{height:47px;min-height:47px;padding:3px 1px;display:grid;grid-template-rows:auto 1fr auto;align-items:center;gap:0;text-align:center}.placement-location.exact small,.placement-location.shared small{font-size:7px;color:var(--ux-ink-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.placement-location.exact strong,.placement-location.shared strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:8.5px}.placement-location.exact em,.placement-location.shared em{font-style:normal;font-size:6.5px;line-height:1;color:var(--ux-ink-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.placement-location.free{border-color:var(--ux-location-free-border);background:var(--ux-location-free-bg)}.placement-location.current{border-color:var(--ux-location-current-border);background:var(--ux-location-current-bg)}.placement-location.partial{border-color:var(--ux-location-partial-border);background:var(--ux-location-partial-bg)}.placement-location.full{border-color:var(--ux-location-full-border);background:var(--ux-location-full-bg);color:var(--ux-location-full-ink)}.placement-location.full small,.placement-location.full em{color:var(--ux-location-full-muted)}.placement-location.occupied{border-color:var(--ux-location-occupied-border);background:var(--ux-location-occupied-bg)}.placement-location.blocked{opacity:var(--ux-location-blocked-opacity);border-color:var(--ux-location-blocked-border);background:repeating-linear-gradient(135deg,var(--ux-location-blocked-a),var(--ux-location-blocked-a) 5px,var(--ux-location-blocked-b) 5px,var(--ux-location-blocked-b) 10px)}.placement-location.draft::after{content:"";position:absolute;inset:2px;border:1px dashed var(--ux-location-draft);border-radius:3px;pointer-events:none}.placement-location.selected{z-index:1;border:2px solid var(--ux-location-selected-border);box-shadow:0 0 0 2px var(--ux-location-selected-ring)}

.inventory-v22-page.inventory-v23-desktop{grid-template-rows:auto auto auto minmax(0,1fr);overflow:hidden}
.inventory-selected-location{margin:0 0 8px;border:1px solid var(--ux-border);border-radius:7px;background:var(--ux-surface-muted);padding:7px 8px;display:grid;gap:5px}.inventory-selected-location>header{display:flex;align-items:center;justify-content:space-between;gap:7px}.inventory-selected-location>header strong{font-size:10px}.inventory-selected-location>header bdi{font-size:10px;font-weight:800;color:var(--ux-accent)}.inventory-selected-location p{margin:0;font-size:8.5px;line-height:1.4;color:var(--ux-ink-muted)}.inventory-selected-location>div{display:flex;align-items:center;justify-content:space-between;gap:7px;font-size:8.5px}.inventory-selected-location>div b{font-size:9px}
.inventory-map-focus-note{display:grid;gap:2px;padding:7px 8px;border:1px solid var(--ux-info-border);border-radius:6px;background:var(--ux-info-soft)}.inventory-map-focus-note strong{font-size:9.5px}.inventory-map-focus-note small{font-size:8px;line-height:1.35;color:var(--ux-ink-muted)}

@media(max-width:1100px) and (min-width:761px){
  .placement-rack-grid{grid-template-columns:repeat(auto-fill,minmax(165px,1fr))}.placement-map-toolbar{grid-template-columns:minmax(130px,1fr) auto 104px}.placement-map-filters button{min-width:36px;padding-inline:5px}.placement-map-zone>span{display:none}
}
@media(max-width:930px) and (min-width:761px){
  .placement-category-rail>header small,.placement-map-header small{display:none}.placement-map-toolbar{grid-template-columns:minmax(112px,1fr) auto 92px}.placement-map-filters button{min-width:32px;font-size:7.5px;padding-inline:3px}.placement-rack-grid{grid-template-columns:repeat(auto-fill,minmax(155px,1fr))}
  .placement-category-item{padding-inline:6px}.placement-category-stats{gap:2px}.placement-category-stats b{min-width:22px;padding-inline:3px}
}
@media(max-width:760px){
  .placement-map-component{grid-template-rows:50px auto auto minmax(0,1fr)}.placement-map-component.without-controls{grid-template-rows:50px auto minmax(0,1fr)}.placement-map-toolbar{grid-template-columns:minmax(0,1fr);gap:5px}.placement-map-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.placement-map-filters button,.placement-map-zone select,.placement-map-search{height:var(--touch-target-min,44px);min-height:var(--touch-target-min,44px)}.placement-map-search input{height:42px}.placement-map-zone{grid-template-columns:48px minmax(0,1fr)}.placement-map-zone>span{display:block}.placement-map-legend{min-height:32px}.placement-rack-grid{grid-template-columns:1fr}.placement-location.exact{height:var(--touch-target-min,44px);min-height:var(--touch-target-min,44px)}.placement-location.shared{min-height:var(--touch-target-min,44px)}
  .wr6-map:not(.unified-placement-workspace)>.wr6-map-panel{padding:0}.wr6-map:not(.unified-placement-workspace)>.wr6-map-panel>.placement-map-component{height:100%}
}
.placement-map-legend .blocked::before{border-color:var(--ux-location-blocked-border);background:repeating-linear-gradient(135deg,var(--ux-location-blocked-a),var(--ux-location-blocked-a) 3px,var(--ux-location-blocked-b) 3px,var(--ux-location-blocked-b) 6px)}
@media(max-width:930px) and (min-width:761px){
  .placement-category-rail{grid-template-rows:44px 36px minmax(0,1fr)}
  .placement-category-rail>header{padding:5px}.placement-category-rail>header>div{display:block}.placement-category-rail>header strong{font-size:9px}.placement-category-rail>header>span{padding-inline:4px}.placement-category-sort{grid-template-columns:1fr;padding:4px}.placement-category-sort>span{display:none}.placement-category-sort select{height:27px;padding-inline:3px;font-size:7.5px}
  .placement-category-item{min-height:43px;grid-template-columns:minmax(0,1fr) auto;padding:5px 4px;gap:2px}.placement-category-identity bdi{font-size:10px}.placement-category-identity small{display:none}.placement-category-stats{display:block}.placement-category-stats b{display:none}.placement-category-stats b:nth-child(3){display:block;min-width:22px;padding:2px;font-size:7.5px}
  .placement-map-toolbar{grid-template-columns:minmax(100px,1fr) auto;gap:4px;padding:4px}.placement-map-zone{grid-column:1/-1;grid-template-columns:38px minmax(0,1fr)}.placement-map-zone>span{display:block}.placement-map-zone select{height:28px}.placement-map-search{height:28px}.placement-map-search input{height:26px}.placement-map-filters button{height:28px;min-width:29px;font-size:7px;padding-inline:2px}.placement-map-legend{gap:5px;padding-inline:5px}.placement-map-legend span{font-size:6.5px}.placement-rack-grid{grid-template-columns:repeat(auto-fill,minmax(142px,1fr));gap:5px}.placement-map-scroll{padding:5px}.placement-rack section>div{gap:2px}.placement-location.exact,.placement-location.shared{height:43px;min-height:43px}
}
.wr6-admin-overflow{margin-top:9px;padding-top:7px;border-top:1px solid var(--ux-border);position:relative}.wr6-admin-overflow>summary{width:32px;height:30px;display:grid;place-items:center;border:1px solid var(--ux-border);border-radius:5px;background:var(--ux-surface);color:var(--ux-ink-muted);font-size:16px;font-weight:800;cursor:pointer;list-style:none}.wr6-admin-overflow>summary::-webkit-details-marker{display:none}.wr6-admin-overflow[open]>summary{border-color:var(--ux-accent);color:var(--ux-accent)}.wr6-admin-overflow>button{margin-top:6px;width:100%}


/* v125.0.0-clean-staging.23-ui-hotfix-4 — compact shell feedback, deterministic placement and inventory health */
.topbar{position:relative}
.topbar-start{min-width:40px}
.shell-feedback{position:absolute;z-index:80;inset-block-start:50%;inset-inline-start:50%;transform:translate(-50%,-50%);display:none;grid-template-columns:minmax(0,1fr);width:min(460px,calc(100% - 420px));height:auto;min-height:0;max-height:none;padding:0;border:0;background:transparent;overflow:visible;contain:none;pointer-events:none}
[dir=rtl] .shell-feedback{transform:translate(50%,-50%)}
.shell-feedback[data-active="true"]{display:grid;background:transparent;border:0;pointer-events:auto}
.shell-feedback #global-status,.shell-feedback .toast-host{grid-area:1/1;width:100%;height:auto;min-height:0;max-height:none}
.shell-feedback[data-has-toast="true"] #global-status{visibility:hidden}
#global-status,.toast{min-height:32px;height:32px;max-height:32px;border-radius:999px;padding:5px 11px;background:rgba(234,242,255,.98);box-shadow:0 7px 22px rgba(23,36,51,.18);backdrop-filter:blur(12px)}
#global-status{grid-template-columns:16px minmax(0,1fr);gap:6px}.toast{display:flex;align-items:center;gap:7px}
#global-status .global-status-copy strong,#global-status .global-status-copy small,.toast span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.global-status-copy small{display:none!important}
.inventory-v22-toolbar{justify-content:flex-start}.inventory-search{order:-2;flex:1 1 260px;max-width:440px;margin-inline-start:0}.inventory-filter-summary{margin-inline-end:auto}
.inventory-health-wrap{display:inline-grid;justify-items:start;gap:2px}.inventory-health-wrap>small{font-size:8px;color:var(--ux-ink-muted)}
.placement-category-identity>span{display:flex;align-items:center;gap:5px;min-width:0}.placement-health-dot{width:8px;height:8px;flex:0 0 auto;border-radius:50%;background:#98a4b2;box-shadow:0 0 0 2px rgba(152,164,178,.14)}.placement-health-dot.zero{background:#c8423a}.placement-health-dot.low{background:#c8423a}.placement-health-dot.watch{background:#d28a16}.placement-health-dot.healthy{background:#2f8a59}.placement-health-dot.excess{background:#8b5fc4}.placement-health-dot.neutral{background:#718096}
.placement-category-rail:not(:has(.placement-category-sort)){grid-template-rows:44px minmax(0,1fr)}
.placement-category-rail>header>div,.placement-map-header>div{min-width:0}.placement-category-rail>header small,.placement-map-header small{white-space:normal;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.2}
.inventory-selected-location.invalid{border-color:#e4b2b0;background:var(--ux-danger-soft)}
.wr6-title-row h1{margin-inline-end:4px}
@media(max-width:1050px){.shell-feedback{width:min(400px,calc(100% - 330px))}}
@media(max-width:760px){.shell-feedback{position:fixed;inset-block-start:8px;inset-inline:8px;transform:none;width:auto}.shell-feedback[data-active="true"]{display:grid}.topbar-refresh-feedback{display:none}.placement-category-rail>header small,.placement-map-header small{-webkit-line-clamp:1}}
/* Hotfix 4 mobile shell island: preserve access to menu, Refresh and account controls. */
@media(max-width:760px){
  .topbar-refresh{width:44px;min-width:44px;height:44px;padding:0;justify-content:center}
  .topbar-refresh>span:not(.status-spinner){display:none}
  .topbar-refresh-group{min-width:44px}
  .shell-feedback{inset-block-start:6px;inset-inline-start:52px;inset-inline-end:96px;width:auto;max-width:none}
  .shell-feedback #global-status,.shell-feedback .toast-host{min-width:0}
  #global-status,.toast{padding-inline:9px}
}

/* v125.0.0-clean-staging.23 UI hotfix 5 — explicit Order-context workflow navigation */
.order-context-switcher{min-width:240px;max-width:360px;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:7px;color:var(--ux-ink-muted);font-size:9px;font-weight:700}
.order-context-switcher>span{white-space:nowrap}.order-context-switcher select{width:100%;height:34px;min-height:34px;border:1px solid var(--ux-border-strong);border-radius:7px;background:var(--ux-surface);color:var(--ux-ink);padding:0 28px 0 8px;font-size:var(--ui-type-caption);font-weight:650}
.order-context-selection-surface{min-height:0;overflow:auto;padding:14px 16px 24px;display:grid;align-content:start;gap:12px}
.order-context-selection-surface>.button{justify-self:start}
.order-context-picker{border:1px solid var(--ux-border);border-radius:10px;background:var(--ux-surface);overflow:hidden}
.order-context-picker>header{min-height:62px;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid var(--ux-border);background:var(--ux-surface-subtle)}
.order-context-picker>header h2{margin:0;font-size:15px}.order-context-picker>header p{margin:3px 0 0;color:var(--ux-ink-muted);font-size:10px}.order-context-picker>header>span{flex:0 0 auto;font-size:9.5px;color:var(--ux-ink-muted)}
.order-context-resume{margin:10px 10px 0;padding:10px 11px;border:1px solid #d5a543;border-radius:8px;background:var(--ux-warning-soft);display:flex;align-items:center;justify-content:space-between;gap:12px}.order-context-resume strong{font-size:11px}.order-context-resume p{margin:3px 0 0;font-size:9.5px;color:var(--ux-ink-muted)}
.order-context-card-list{padding:10px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.order-context-card{min-width:0;min-height:88px;border:1px solid var(--ux-border);border-radius:8px;background:var(--ux-surface);padding:9px 10px;display:grid;align-content:space-between;gap:7px;text-align:start;color:var(--ux-ink)}.order-context-card:hover,.order-context-card:focus-visible{border-color:var(--ux-accent);background:var(--ux-accent-soft)}.order-context-card.pending{border-color:#d5a543;background:var(--ux-warning-soft)}
.order-context-card>span{display:flex;align-items:center;justify-content:space-between;gap:7px}.order-context-card>span.order-context-card-head{justify-content:flex-start}.order-context-date{font-size:13px;font-weight:780;font-variant-numeric:tabular-nums;color:var(--ux-ink)}.order-context-card-code{font-size:9.5px;font-weight:650;color:var(--ux-ink-muted)}.order-context-card-head .status-badge{margin-inline-start:auto}.order-context-card small{font-size:9.5px;color:var(--ux-ink-muted)}.order-context-card em{font-style:normal;font-size:10px;font-weight:750;color:var(--ux-accent)}
.order-context-empty{min-height:170px;display:grid;place-content:center;text-align:center;padding:20px}.order-context-empty strong{font-size:13px}.order-context-empty p{max-width:430px;margin:5px auto 0;color:var(--ux-ink-muted);font-size:10px}
.collection-context-toolbar{grid-template-columns:auto minmax(240px,360px) minmax(0,1fr) auto}
@media(max-width:1100px) and (min-width:761px){.order-context-card-list{grid-template-columns:repeat(2,minmax(0,1fr))}.order-context-switcher{min-width:210px}.collection-context-toolbar{grid-template-columns:auto minmax(210px,300px) minmax(0,1fr) auto}}
@media(max-width:760px){
  .order-context-selection-surface{padding:8px 8px calc(72px + var(--mobile-safe-bottom));overflow:auto}.order-context-picker>header{align-items:flex-start}.order-context-picker>header p{font-size:9.5px}.order-context-card-list{grid-template-columns:1fr;padding:8px}.order-context-card{min-height:84px}.order-context-resume{margin:8px 8px 0;display:grid}.order-context-resume .button{min-height:var(--ui-touch-target);width:100%}
  .collection-context-toolbar{min-height:52px;margin-inline:-8px;padding:4px 7px;grid-template-columns:44px minmax(0,1fr) auto;gap:6px}.collection-context-toolbar>.button{width:var(--ui-touch-target);min-width:var(--ui-touch-target);height:44px}.collection-context-toolbar .order-context-switcher{min-width:0;max-width:none;grid-template-columns:1fr}.collection-context-toolbar .order-context-switcher>span,.collection-order-context{display:none}.collection-context-toolbar .order-context-switcher select{height:var(--ui-touch-target);min-height:var(--ui-touch-target);font-size:11px}.collection-sync-chip{min-width:82px}
}

/* Hotfix 5 acceptance geometry: explicit Order selection is the primary workspace. */
#page[data-page="approval"]:has(>.order-context-selection-surface),
#page[data-page="collection"]:has(>.order-context-selection-surface){
  grid-template-rows:auto minmax(0,1fr);
  align-content:stretch;
}
#page[data-page="approval"]>.order-context-selection-surface,
#page[data-page="collection"]>.order-context-selection-surface{height:100%;align-self:stretch}

@media(max-width:760px){
  #page[data-page="approval"]:has(>.order-context-selection-surface),
  #page[data-page="collection"]:has(>.order-context-selection-surface){
    height:calc(100dvh - var(--topbar-height) - var(--shell-feedback-height) - var(--mobile-bottom-nav));
    min-height:0;
    overflow:hidden;
    display:grid;
    grid-template-rows:auto minmax(0,1fr);
    padding:6px 8px 0;
  }
  #page[data-page="approval"]:has(>.order-context-selection-surface)>.workspace-header,
  #page[data-page="collection"]:has(>.order-context-selection-surface)>.workspace-header{min-height:58px;margin:0;padding:5px 2px 7px}
  .order-context-selection-surface{padding:8px 0 10px;overflow:auto}
  .order-context-selection-surface>.button,.order-context-switcher select{min-height:var(--ui-touch-target);height:44px}
  .topbar button,.topbar .icon-button,.topbar-avatar{width:var(--ui-touch-target);min-width:var(--ui-touch-target);height:var(--ui-touch-target);min-height:44px}
}
@media(max-width:760px){
  /* Reserve the full Refresh + account control cluster; the island may truncate, never overlap controls. */
  .shell-feedback{inset-inline-end:112px}
}
@media(max-width:760px){.shell-feedback{inset-inline-start:56px}}

/* v125.0.0-clean-staging.23-ui-hotfix-6 — phone-first operational density and in-context Inventory placement. */
@media(max-width:760px){
  .mobile-bottom-nav{height:calc(var(--mobile-bottom-nav) + var(--mobile-safe-bottom));padding:4px 6px var(--mobile-safe-bottom);gap:3px}
  .mobile-nav-item{min-height:48px;gap:1px;font-size:9px}
  .mobile-nav-item .app-icon{width:18px;height:18px}
  .mobile-nav-item span{max-width:72px}
  /* Shared phone placement map: one compact controls row instead of stacked search/filter/zone rows. */
  .placement-map-component{grid-template-rows:44px 44px 27px minmax(0,1fr)}
  .placement-map-header{height:44px;min-height:44px;padding:5px 7px}
  .placement-map-header strong{font-size:11px}.placement-map-header small{font-size:8px;-webkit-line-clamp:1}
  .placement-map-toolbar{min-width:0;display:flex;align-items:center;gap:4px;overflow-x:auto;overflow-y:hidden;padding:0 5px;scrollbar-width:none;overscroll-behavior-inline:contain}
  .placement-map-toolbar::-webkit-scrollbar{display:none}
  .placement-map-search{flex:0 0 136px;width:136px;height:44px;min-height:44px}
  .placement-map-search input{height:42px;min-height:42px;font-size:12px}
  .placement-map-filters{display:flex;grid-template-columns:none;flex:0 0 auto;gap:3px}
  .placement-map-filters button{height:44px;min-height:44px;min-width:52px;padding-inline:7px;font-size:8px}
  .placement-map-zone{flex:0 0 112px;width:112px;display:block}
  .placement-map-zone>span{display:none}
  .placement-map-zone select{width:112px;height:44px;min-height:44px;font-size:10px}
  .placement-map-legend{min-height:27px;height:27px;padding:3px 6px;gap:6px}
  .placement-map-legend span{font-size:7px}.placement-map-legend span::before{width:7px;height:7px}
  .placement-map-scroll{padding:5px}
  .placement-rack-grid{gap:5px}.placement-rack{border-radius:7px}.placement-rack>header{height:34px}
  .placement-location.exact,.placement-location.shared{min-height:44px;height:44px}

  /* Inventory list/detail/map use the viewport below the shell, never the document. */
  #page[data-page="inventory"]{height:calc(100dvh - var(--topbar-height) - var(--mobile-bottom-nav));min-height:0;overflow:hidden;padding:0}
  .inventory-v22-page{height:100%;min-height:0;grid-template-rows:auto auto minmax(0,1fr);overflow:hidden}
  .inventory-v22-header{min-height:68px;padding:6px 8px;display:grid;grid-template-columns:1fr;gap:4px}
  .inventory-title-line{gap:5px}.inventory-title-line h1{font-size:18px}.inventory-title-line>span{display:none}
  .inventory-v22-header p{display:none}
  .inventory-header-metrics{width:100%;margin:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;justify-content:stretch;border:1px solid var(--ux-border);border-radius:7px;overflow:hidden}
  .inventory-header-metrics>div{min-width:0;min-height:38px;padding:4px 5px;border:0;border-inline-end:1px solid var(--ux-border);display:grid;align-content:center}
  .inventory-header-metrics>div:last-child{border-inline-end:0}.inventory-header-metrics span{font-size:7.5px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.inventory-header-metrics strong{font-size:14px;line-height:1.1}
  .inventory-v22-toolbar{height:50px;min-height:50px;padding:3px 6px;gap:5px}
  .inventory-search{height:44px}.inventory-search input{height:var(--ui-touch-target);min-height:var(--ui-touch-target);font-size:12px}.inventory-v22-toolbar [data-filter-toggle]{width:var(--ui-touch-target);min-width:var(--ui-touch-target);height:var(--ui-touch-target);min-height:var(--ui-touch-target);padding:0}.inventory-v22-toolbar [data-filter-toggle] span{display:none}
  .inventory-v22-workspace{height:100%;min-height:0;overflow:hidden}
  .inventory-v22-list-panel,.inventory-v22-detail,.inventory-mobile-map-shell{height:100%;min-height:0}
  .inventory-v22-list{height:100%;padding:5px 6px 10px;overflow:auto;overscroll-behavior:contain}
  .inventory-v22-table tbody{display:grid;gap:5px}
  .inventory-v22-table tr{min-height:84px;margin:0;padding:7px 8px;display:grid;grid-template-columns:minmax(0,1fr) 54px 54px 54px;grid-template-areas:"category health health health" "location pallets loose unplaced";gap:5px 7px;align-items:center;border-radius:8px}
  .inventory-v22-table td{min-width:0;padding:0!important;border:0!important;display:block!important}
  .inventory-v22-table td::before{display:none!important}
  .inventory-v22-table td[data-column="category"]{grid-area:category;margin:0;padding:0!important;border:0!important}
  .inventory-v22-table td[data-column="location"]{grid-area:location;overflow:hidden}.inventory-v22-table td[data-column="loose"]{grid-area:loose}
  .inventory-category-cell{display:grid;grid-template-columns:auto minmax(0,1fr);gap:7px;align-items:center}.inventory-category-cell .object-code{font-size:16px}.inventory-category-cell span{max-width:none;font-size:10px}
  .inventory-health-wrap{justify-items:end;max-width:130px}.inventory-health-wrap .status-badge{min-height:22px;padding:2px 7px;font-size:8px}.inventory-health-wrap>small{font-size:7.5px;white-space:nowrap}
  .inventory-location-chips{min-width:0;display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:3px;overflow:hidden}.inventory-location-link{min-height:28px;padding:3px 6px;font-size:9px}.inventory-location-chips .inventory-location-link:nth-of-type(n+3){display:none}.inventory-location-chips>span:not(.inventory-unplaced-chip){display:none}.inventory-unplaced-chip{white-space:nowrap}
  .inventory-v22-table td[data-column="pallets"],.inventory-v22-table td[data-column="loose"],.inventory-v22-table td[data-column="unplaced"]{height:36px;border:1px solid var(--ux-border)!important;border-radius:6px!important;background:var(--ux-surface-muted);display:grid!important;place-content:center;text-align:center!important;position:relative}
  .inventory-v22-table td[data-column="pallets"]::after,.inventory-v22-table td[data-column="loose"]::after,.inventory-v22-table td[data-column="unplaced"]::after{content:attr(data-label);display:block;font-size:7px;color:var(--ux-ink-muted);font-weight:600}.inventory-v22-table td[data-column="pallets"] strong,.inventory-v22-table td[data-column="loose"] strong,.inventory-v22-table td[data-column="unplaced"] strong{font-size:13px}

  .inventory-v22-page.mobile-detail,.inventory-v22-page.mobile-map{grid-template-rows:minmax(0,1fr)}
  .inventory-v22-page.mobile-detail>.inventory-v22-header,.inventory-v22-page.mobile-detail>.inventory-v22-toolbar,.inventory-v22-page.mobile-detail>.inventory-v22-filters,
  .inventory-v22-page.mobile-map>.inventory-v22-header,.inventory-v22-page.mobile-map>.inventory-v22-toolbar,.inventory-v22-page.mobile-map>.inventory-v22-filters{display:none!important}
  .inventory-v22-page.mobile-detail .inventory-v22-list-panel,.inventory-v22-page.mobile-detail .inventory-mobile-map-shell{display:none}
  .inventory-v22-page.mobile-detail .inventory-v22-detail{display:grid;height:100%;grid-template-rows:54px 44px minmax(0,1fr) 56px;border:0}
  .inventory-detail-head{height:54px;min-height:54px;padding:5px 7px;align-items:center}.inventory-mobile-back{width:var(--ui-touch-target);min-width:var(--ui-touch-target);height:var(--ui-touch-target);min-height:var(--ui-touch-target);padding:0}.inventory-mobile-back span{display:none}.inventory-detail-code{font-size:18px}.inventory-detail-identity strong{font-size:11px}.inventory-detail-identity small{margin-top:1px;font-size:8px}.inventory-detail-head>.inventory-season-tag{display:none}
  .inventory-detail-tabs{padding-inline:4px}
  .inventory-detail-scroll{padding-bottom:6px;overscroll-behavior:contain}
  .inventory-detail-section{padding:8px}.inventory-detail-section h3{margin-bottom:6px;font-size:10px}
  .inventory-stock-summary{gap:4px}.inventory-stock-summary>div{min-height:54px;padding:5px}.inventory-stock-summary span{font-size:7.5px}.inventory-stock-summary strong{font-size:15px}.inventory-stock-summary small{display:none}
  .inventory-selected-location{min-height:48px;padding:6px 8px;margin-bottom:6px}.inventory-selected-location strong{font-size:9.5px}.inventory-selected-location small{font-size:8px}.inventory-selected-location bdi{font-size:12px}
  .inventory-balance-editor{padding:7px;gap:5px}.inventory-balance-editor>header strong{font-size:10px}.inventory-balance-editor>header small{font-size:8px}.inventory-balance-control{grid-template-columns:52px minmax(86px,1fr) 52px;gap:5px}.inventory-balance-change{min-height:15px}
  .inventory-placement-decision{padding:7px;margin-top:6px}.inventory-placement-decision-head{margin-bottom:5px}.inventory-placement-decision>p,.inventory-map-inline-help{font-size:8px!important;margin-top:5px!important}
  .inventory-section-title-row .button{min-width:var(--ui-touch-target);width:var(--ui-touch-target);height:var(--ui-touch-target);padding:0}.inventory-section-title-row .button span{display:none}
  .inventory-detail-actionbar{height:56px;min-height:56px;padding:6px 8px calc(6px + var(--mobile-safe-bottom))}.inventory-detail-actionbar>.button{height:var(--ui-touch-target);min-height:44px}

  .inventory-mobile-map-shell{display:none;background:var(--ux-canvas);grid-template-rows:50px minmax(0,1fr) 56px;overflow:hidden}
  .inventory-v22-page.mobile-map .inventory-v22-list-panel,.inventory-v22-page.mobile-map .inventory-v22-detail{display:none!important}
  .inventory-v22-page.mobile-map .inventory-mobile-map-shell{display:grid}
  .inventory-mobile-map-head{height:50px;min-height:50px;padding:3px 6px;display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:7px;border-bottom:1px solid var(--ux-border);background:var(--ux-surface)}.inventory-mobile-map-head>.button{width:var(--ui-touch-target);height:var(--ui-touch-target);min-width:var(--ui-touch-target);padding:0}.inventory-mobile-map-head>.button span{display:none}.inventory-mobile-map-head>div{min-width:0;display:grid}.inventory-mobile-map-head strong{font-size:12px}.inventory-mobile-map-head small{font-size:9px;color:var(--ux-ink-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .inventory-mobile-map-shell>.placement-map-component{height:100%;min-height:0;border:0;border-radius:0}
  .inventory-mobile-map-actionbar{height:56px;min-height:56px;padding:6px 8px calc(6px + var(--mobile-safe-bottom));display:grid;grid-template-columns:minmax(0,1fr) minmax(112px,150px);align-items:center;gap:var(--ui-gap);border-top:1px solid var(--ux-border);background:var(--ux-surface)}.inventory-mobile-map-actionbar>div{min-width:0;display:grid}.inventory-mobile-map-actionbar span{font-size:8px;color:var(--ux-ink-muted)}.inventory-mobile-map-actionbar strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.inventory-mobile-map-actionbar .button{height:var(--ui-touch-target);min-height:var(--ui-touch-target);width:100%}

  /* Warehouse phone entry is a single control row; opening a detail gives the whole viewport to the task. */
  body[data-route="warehouse-reference"] .shell-main{height:calc(100dvh - var(--mobile-bottom-nav));grid-template-rows:var(--topbar-height) minmax(0,1fr)}
  body[data-route="warehouse-reference"] .main-content,body[data-route="warehouse-reference"] .warehouse-r6{height:100%;min-height:0}
  body[data-route="warehouse-reference"] .warehouse-r6{grid-template-rows:auto minmax(0,1fr) 56px}
  body[data-route="warehouse-reference"] .wr6-toolbar{height:50px;min-height:50px;display:grid;grid-template-columns:112px minmax(0,1fr) 44px;align-items:center;gap:5px;padding:3px 6px}
  
  
  
  body[data-route="warehouse-reference"] .warehouse-r6:has(.wr6-map.mobile-detail) .wr6-toolbar{display:none}
  .wr6-panel>header{height:46px;min-height:46px;padding:4px 6px}.wr6-panel>header strong{font-size:11px}.wr6-panel>header small{font-size:8px}
  .wr6-detail-scroll{padding:8px}.wr6-detail-title h2{font-size:20px}.wr6-detail-title p{font-size:9px}.wr6-detail-section{padding:8px 0}.wr6-detail-section h3{font-size:10px}.wr6-detail-section dl{gap:5px 8px}.wr6-detail-section dt,.wr6-detail-section dd{font-size:10px}
  .wr6-actionbar{height:56px;min-height:56px;padding:6px 7px calc(6px + var(--mobile-safe-bottom))}.wr6-actionbar>div:first-child{max-width:38%}.wr6-actionbar span{font-size:8.5px}.wr6-actionbar small{font-size:7.5px}.wr6-actionbar .button{height:var(--ui-touch-target);min-height:44px}

  /* Orders: reduce chrome while keeping list/detail and exact contextual actions unchanged. */
  #page.orders-list-page{padding-top:4px;grid-template-rows:auto auto minmax(0,1fr) 54px}
  .orders-list-page .workspace-header{min-height:46px;padding:5px 8px;margin:0 6px 4px}.orders-list-page .workspace-description{display:none}.orders-list-page .workspace-title-row h1{font-size:18px}.orders-list-page .workspace-actions .button{height:var(--ui-touch-target);min-height:44px}
  .orders-list-toolbar{height:50px;min-height:50px;margin:0 6px 4px;padding:3px 4px}.orders-list-toolbar .toolbar-search{flex-basis:176px}.orders-list-toolbar .toolbar-search input{height:var(--ui-touch-target);min-height:44px}
  .orders-list-panel{grid-template-rows:34px minmax(0,1fr)}.orders-list-panel>header{height:34px}.orders-mobile-list{padding:5px 6px 8px}.orders-mobile-card{min-height:88px;margin-bottom:5px;padding:7px 8px}.orders-mobile-date{font-size:13px}.orders-mobile-dispatch{overflow:hidden;white-space:nowrap}.orders-mobile-detail{grid-template-rows:50px minmax(0,1fr)}.orders-mobile-detail .orders-detail-head{height:50px;min-height:50px}.orders-mobile-back{width:var(--ui-touch-target);height:44px}.orders-mobile-detail .orders-detail-scroll{padding:7px 7px 12px}
  .orders-list-actionbar{height:54px;min-height:54px;padding:5px 7px calc(5px + var(--mobile-safe-bottom))}.orders-list-actionbar .button{height:var(--ui-touch-target);min-height:44px}

  /* Approval: fixed viewport, internal scrolling and compact order/store context. */
  #page[data-page="approval"]:has(.approval-gate-workspace){height:calc(100dvh - var(--topbar-height) - var(--mobile-bottom-nav));min-height:0;overflow:hidden;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;padding:0 6px;gap:0}
  #page[data-page="approval"]:has(.approval-gate-workspace)>.workspace-header{min-height:50px;height:50px;padding:4px 2px;margin:0;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center}
  #page[data-page="approval"]:has(.approval-gate-workspace)>.workspace-header .workspace-description,#page[data-page="approval"]:has(.approval-gate-workspace)>.workspace-header .workspace-meta{display:none}
  #page[data-page="approval"]:has(.approval-gate-workspace) .approval-gate-header-summary{width:auto;display:flex;border:0;border-radius:0;gap:3px;background:transparent;overflow:visible}
  #page[data-page="approval"]:has(.approval-gate-workspace) .approval-gate-header-summary>span{min-width:44px;min-height:38px;padding:3px 5px;border:1px solid var(--ux-border)!important;border-radius:6px;background:var(--ux-surface-muted)}
  #page[data-page="approval"]:has(.approval-gate-workspace) .approval-gate-header-summary>span:nth-child(n+3){display:none}.approval-gate-header-summary strong{font-size:13px}.approval-gate-header-summary small{display:none}
  .approval-gate-surface{height:100%;min-height:0;margin:5px 0;border:0;overflow:hidden}.approval-gate-workspace{height:100%;min-height:0;display:grid;grid-template-rows:58px minmax(0,1fr)}
  .approval-gate-store-panel{height:58px;min-height:58px;display:grid;grid-template-columns:44px minmax(0,1fr);grid-template-rows:58px;border:1px solid var(--ux-border);border-radius:8px}.approval-gate-store-panel>header{height:58px;min-height:58px;padding:5px;display:grid;place-items:center}.approval-gate-store-panel>header>div{display:none}.approval-gate-store-panel>header .icon-button{width:var(--ui-touch-target);height:44px}
  .approval-gate-store-list{height:56px;display:flex;overflow-x:auto;overflow-y:hidden}.approval-gate-store{min-width:158px;max-width:180px;min-height:56px;height:56px;padding:5px 7px;grid-template-columns:34px minmax(0,1fr) 22px}.approval-gate-store-copy strong{font-size:10px}.approval-gate-store-copy small{font-size:8px}
  .approval-gate-editor{height:100%;min-height:0;margin-top:5px;display:grid;grid-template-rows:auto auto auto minmax(0,1fr);border:1px solid var(--ux-border);border-radius:8px}.approval-gate-editor-head{min-height:50px;padding:5px 7px}.approval-gate-editor-head h2{font-size:13px}.approval-gate-editor-actions{grid-template-columns:auto minmax(100px,1fr);gap:5px}.approval-gate-editor-actions .button{width:var(--ui-touch-target);height:var(--ui-touch-target);padding:0}.approval-gate-editor-actions .button span{display:none}.approval-gate-editor-actions select{height:var(--ui-touch-target);min-height:var(--ui-touch-target);font-size:10px}
  .approval-gate-state-strip{min-height:38px;padding:4px 7px}.approval-gate-state-strip>div{display:flex;flex-wrap:nowrap;gap:8px;overflow-x:auto}.approval-gate-state-strip span{white-space:nowrap;font-size:8.5px}.approval-gate-state-strip p{display:none}
  .approval-dispatch-note{min-height:42px;padding:4px 7px;grid-template-columns:auto minmax(0,1fr);gap:5px}.approval-dispatch-note>span{font-size:8px}.approval-dispatch-note input{height:36px;min-height:36px;font-size:12px}
  .approval-gate-table-wrap{min-height:0;overflow:auto}.approval-gate-table tbody{gap:var(--ui-gap-tight);padding:6px}.approval-gate-table tr{padding:8px;gap:7px}.approval-gate-actionbar{position:relative;bottom:auto;min-height:58px;margin:0 -6px;padding:6px;display:flex;gap:var(--ui-gap-tight);box-shadow:none}.approval-gate-actionbar>div:first-child{display:none}.approval-gate-actions{display:flex;gap:5px;width:100%}.approval-gate-actions .button{height:var(--ui-touch-target);min-height:var(--ui-touch-target);min-width:0;flex:1;padding-inline:7px}.approval-gate-actions .button span{font-size:9px}

  /* Collection: preserve fixed workflow but reduce non-working chrome. */
  #page[data-page="collection"]{height:calc(100dvh - var(--topbar-height) - var(--mobile-bottom-nav));padding:4px 6px 0}
  #page[data-page="collection"]>.workspace-header{min-height:48px;height:48px;padding:4px 2px;margin:0}.collection-context-toolbar{height:50px;min-height:50px;margin:0 -6px;padding:3px 6px}.collection-sync-chip{min-width:68px;font-size:8px}
  .collection-gate-store-rail{min-height:78px}.collection-store-tab{min-width:74px}.collection-gate-store-summary{padding:5px 7px}.collection-category-list{padding:5px 5px 10px}.collection-category-row{min-height:112px;padding:7px;margin-bottom:5px;gap:6px}.collection-category-copy span{font-size:10px}.collection-category-copy small{font-size:8px}.collection-gate-actionbar{min-height:58px;height:58px;margin-inline:-6px;padding:5px 6px calc(5px + var(--mobile-safe-bottom))}.collection-gate-actionbar>div:first-child{display:none}.collection-gate-actionbar>div:last-child{width:100%;display:flex}.collection-gate-actionbar .button.primary{height:46px;max-width:none;width:100%}
}
/* Hotfix 6 final mobile chrome budget: fixed compact headers around 44 px controls. */
@media(max-width:760px){
  .inventory-v22-header{height:66px;min-height:66px;max-height:66px;box-sizing:border-box;padding:5px 7px;grid-template-rows:18px 34px;gap:3px;overflow:hidden}
  .inventory-title-line{height:18px;min-height:18px;line-height:18px}.inventory-title-line h1{font-size:16px;line-height:18px}
  .inventory-header-metrics{height:34px;min-height:34px}.inventory-header-metrics>div{height:34px;min-height:34px;padding:3px 4px}.inventory-header-metrics strong{font-size:13px}
  .orders-list-page .workspace-header{height:48px;min-height:48px;max-height:48px;box-sizing:border-box;padding:2px 8px}
}
/* Preserve Approval's immutable-request rule as a compact, always-visible operational cue. */
@media(max-width:760px){
  .approval-gate-state-strip{min-height:48px;padding:3px 7px;display:grid;align-content:center;gap:1px}
  .approval-gate-state-strip p{display:block;margin:0;font-size:7.5px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ux-ink-muted)}
}
/* Mobile account actions must scroll fully above the fixed navigation bar. */
@media(max-width:760px){
  #page[data-page="account"]{padding-bottom:calc(var(--mobile-bottom-nav) + 20px + var(--mobile-safe-bottom));scroll-padding-bottom:calc(var(--mobile-bottom-nav) + 20px + var(--mobile-safe-bottom));overflow:auto}
}
/* Mobile Approval must stack the store rail above the editor; never retain desktop columns. */
@media(max-width:760px){
  .approval-gate-workspace{grid-template-columns:minmax(0,1fr);grid-template-rows:58px minmax(0,1fr)}
  .approval-gate-store-panel{grid-column:1;grid-row:1;width:100%;min-width:0}
  .approval-gate-store-list{width:100%;min-width:0}
  .approval-gate-splitter{display:none!important}
  .approval-gate-editor{grid-column:1;grid-row:2;width:100%;min-width:0}
}


/* v125.0.0-clean-staging.23-ui-hotfix-8 — Account and personal preferences */
#page[data-page="account"]{height:calc(100dvh - var(--topbar-height));min-height:0;overflow:hidden;display:grid;grid-template-rows:auto minmax(0,1fr);gap:var(--ui-gap);padding:8px 12px 10px}
#page[data-page="account"]>.workspace-header{margin:0;min-height:56px}
@media(max-width:760px){
  #page[data-page="account"]{height:calc(100dvh - var(--topbar-height) - var(--mobile-bottom-nav));padding:5px 6px 0;overflow:hidden;display:grid;grid-template-rows:50px minmax(0,1fr);gap:4px}
  #page[data-page="account"]>.workspace-header{height:50px;min-height:50px;max-height:50px;margin:0;padding:3px 6px;overflow:hidden}
}
@media(min-width:761px){body[data-route="account"] .app-shell{padding-bottom:0}}

/* v125.0.0-clean-staging.23 UI hotfix 9 — Order operational history. */
.orders-detail-tabs{position:sticky;top:-10px;z-index:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin:-10px -12px 10px;padding:8px 10px;background:var(--ux-topbar-bg);backdrop-filter:blur(8px)}
.orders-detail-tabs .ui-tab{min-width:0}
.orders-detail-tabs .app-icon{width:15px;height:15px}.orders-detail-tabs b{min-width:20px;height:20px;border-radius:10px;display:grid;place-items:center;background:var(--ux-surface);border:1px solid var(--ux-border);font-size:9px}
.orders-activity{display:grid;gap:10px}.orders-activity-summary{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.orders-activity-summary h3{margin:0;font-size:12px}.orders-activity-summary p{margin:3px 0 0;color:var(--ux-ink-muted);font-size:9.5px;line-height:1.35}.orders-activity-summary>span{flex:0 0 auto;max-width:120px;text-align:end;color:var(--ux-ink-muted);font-size:9px;line-height:1.3}
.orders-activity-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}
.orders-activity-timeline{display:grid;gap:0;border:1px solid var(--ux-border);border-radius:8px;overflow:hidden;background:var(--ux-surface)}.orders-activity-event{display:grid;grid-template-columns:32px minmax(0,1fr);gap:8px;padding:9px;border-bottom:1px solid var(--ux-border);min-width:0}.orders-activity-event:last-child{border-bottom:0}.orders-activity-icon{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;background:var(--ux-surface-subtle);color:var(--ux-ink-muted)}.orders-activity-event[data-event-group="approval"] .orders-activity-icon{background:var(--ux-success-soft);color:var(--ux-success)}.orders-activity-event[data-event-group="collection"] .orders-activity-icon{background:var(--ux-info-soft);color:var(--ux-info)}.orders-activity-icon .app-icon{width:16px;height:16px}
.orders-activity-copy{min-width:0;display:grid;gap:3px}.orders-activity-copy>div{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.orders-activity-copy strong{font-size:10.5px;line-height:1.25}.orders-activity-copy>div span{flex:0 0 auto;color:var(--ux-ink-muted);font-size:8.5px}.orders-activity-copy p{margin:0;color:var(--ux-ink);font-size:9px;line-height:1.35;overflow-wrap:anywhere}.orders-activity-copy small{color:var(--ux-ink-muted);font-size:8.5px;line-height:1.3}
.orders-activity-empty{min-height:180px;display:grid;place-items:center;align-content:center;gap:7px;padding:20px;text-align:center;color:var(--ux-ink-muted)}.orders-activity-empty .app-icon{width:28px;height:28px}.orders-activity-empty strong{color:var(--ux-ink);font-size:11px}.orders-activity-empty p{margin:0;font-size:9px}
@media(max-width:700px){
  .orders-mobile-detail .orders-detail-tabs{top:-7px;margin:-7px -7px 8px;padding:6px 7px}.orders-activity-filters{display:flex;overflow-x:auto;scrollbar-width:none;overscroll-behavior-inline:contain}.orders-activity-filters::-webkit-scrollbar{display:none}.orders-activity-filters>.ui-segment{flex:0 0 auto;min-width:88px}.orders-activity-summary{align-items:center}.orders-activity-summary>span{max-width:105px}.orders-activity-event{grid-template-columns:36px minmax(0,1fr);padding:10px 8px}.orders-activity-icon{width:34px;height:34px}.orders-activity-copy strong{font-size:11.5px}.orders-activity-copy p,.orders-activity-copy small{font-size:9.5px}
}

/* v125.0.0-clean-staging.23 UI hotfix 10 — New Order setup and local Excel review. */
.order-step-copy-actions{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.store-selection-controls{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.store-selection-controls>strong{font-size:11px;color:var(--ux-ink-muted);white-space:nowrap}.order-source-chip{display:flex;align-items:center;gap:5px;min-width:0;max-width:300px;padding:3px 7px;border:1px solid var(--ux-info-border);border-radius:999px;background:var(--ux-info-soft);color:var(--ux-info);text-transform:none;letter-spacing:0}.order-source-chip svg{width:13px;height:13px;flex:0 0 auto}.order-source-chip b{font-size:9px}.order-source-chip>span{min-width:0;overflow:hidden;text-overflow:ellipsis}.order-source-chip em{font-style:normal;font-weight:750;color:var(--ux-warning);white-space:nowrap}.matrix-toolbar>.button{flex:0 0 auto}

.order-category-picker,.order-import-modal{display:grid;gap:var(--ui-gap-loose);min-width:0;width:100%;max-height:calc(100vh - 76px);overflow:hidden}.order-category-picker .modal-heading,.order-import-modal .modal-heading{padding-inline-end:40px}.order-category-picker .modal-heading p,.order-category-picker .modal-heading h2,.order-category-picker .modal-heading span,.order-import-modal .modal-heading p,.order-import-modal .modal-heading h2,.order-import-modal .modal-heading span{margin:0}.order-category-picker .modal-heading p,.order-import-modal .modal-heading p{font-size:9px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--ux-ink-muted)}.order-category-picker .modal-heading h2,.order-import-modal .modal-heading h2{margin-top:3px;font-size:19px}.order-category-picker .modal-heading span,.order-import-modal .modal-heading span{display:block;margin-top:3px;color:var(--ux-ink-muted);font-size:11px;line-height:1.4}
.order-category-picker-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) auto;gap:10px;align-items:center}.order-category-picker-toolbar label:not(.ui-search){height:38px;display:flex;align-items:center;gap:7px;padding:0 10px;border:1px solid var(--ux-border-strong);border-radius:var(--ui-radius-search);background:var(--ux-surface)}.order-category-picker-toolbar .order-category-picker-search{height:38px;min-height:38px}.order-category-picker-toolbar label:not(.ui-search) svg{width:16px;height:16px;color:var(--ux-ink-muted)}.order-category-picker-toolbar>strong{font-size:11px;color:var(--ux-ink-muted)}.order-category-picker-list{min-height:280px;max-height:52vh;overflow:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:var(--ui-gap-tight);padding:1px}.order-category-choice{min-width:0;min-height:48px;display:grid;grid-template-columns:18px 48px minmax(0,1fr);gap:var(--ui-gap);align-items:center;padding:7px 9px;border:1px solid var(--ux-border);border-radius:7px;background:var(--ux-surface);cursor:pointer}.order-category-choice:has(input:checked:not(:disabled)){border-color:#8eb2e6;background:var(--ux-surface-selected)}.order-category-choice.already-selected{background:var(--ux-surface-muted);color:var(--ux-ink-muted);cursor:default}.order-category-choice span:last-child{min-width:0}.order-category-choice strong,.order-category-choice small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.order-category-choice strong{font-size:11px}.order-category-choice small{margin-top:2px;font-size:9.5px;color:var(--ux-ink-muted)}.order-category-picker-actions{display:flex;justify-content:flex-end;align-items:center;gap:var(--ui-gap);padding-top:10px;border-top:1px solid var(--ux-border)}

.order-import-start{display:grid;grid-template-columns:auto minmax(300px,1fr);gap:10px;align-items:stretch}.order-import-start>.button{align-self:center}.order-import-modal .file-drop{min-height:62px;padding:9px 14px;display:grid;place-items:center}.order-import-modal .file-drop>span{grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;justify-items:start;column-gap:9px}.order-import-modal .file-drop svg{grid-row:1/3;width:24px;height:24px}.order-import-modal .file-drop small{font-size:9.5px}.order-import-validating{min-height:180px;display:grid;place-items:center;align-content:center;gap:6px;color:var(--ux-ink-muted)}.order-import-validating svg{width:24px;height:24px;animation:spin 1s linear infinite}.order-import-fatal{display:flex;align-items:center;gap:8px;padding:12px;border:1px solid #e4aaa7;border-radius:8px;background:var(--red-100)}
.order-import-review{display:grid;grid-template-rows:auto auto minmax(220px,1fr) auto auto;gap:10px;min-height:0;max-height:calc(100vh - 230px)}.order-import-review>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 11px;border:1px solid var(--ux-border);border-radius:8px;background:var(--ux-surface-muted)}.order-import-review>header>div{min-width:0;display:grid}.order-import-review>header span:first-child{font-size:9px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--ux-ink-muted)}.order-import-review>header strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.order-import-review>header small{color:var(--ux-ink-muted);font-size:9.5px}.order-import-metrics{display:grid;grid-template-columns:repeat(5,minmax(82px,1fr));gap:6px}.order-import-metrics article{padding:7px 9px;border:1px solid var(--ux-border);border-radius:7px;background:var(--ux-surface)}.order-import-metrics span,.order-import-metrics strong{display:block}.order-import-metrics span{font-size:9px;font-weight:750;text-transform:uppercase;color:var(--ux-ink-muted)}.order-import-metrics strong{margin-top:2px;font-size:15px}.order-import-review-grid{min-height:0;display:grid;grid-template-columns:minmax(300px,.9fr) minmax(380px,1.2fr);gap:10px}.order-import-issues,.order-import-lines{min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);border:1px solid var(--ux-border);border-radius:8px;background:var(--ux-surface);overflow:hidden}.order-import-issues>header,.order-import-lines>header{display:flex;justify-content:space-between;gap:10px;padding:8px 10px;border-bottom:1px solid var(--ux-border);background:var(--ux-surface-muted)}.order-import-issues>header strong,.order-import-lines>header strong{font-size:11px}.order-import-issues>header span,.order-import-lines>header span{font-size:9.5px;color:var(--ux-ink-muted)}.order-import-issues>div,.order-import-lines>div{overflow:auto}.order-import-issues p{display:grid;grid-template-columns:16px minmax(0,1fr);gap:7px;margin:0;padding:7px 9px;border-bottom:1px solid var(--line-soft);font-size:10.5px;line-height:1.35}.order-import-issues p svg{width:15px;height:15px}.order-import-issues p[data-severity="error"]{color:var(--ux-danger);background:var(--ux-danger-soft)}.order-import-issues p[data-severity="warning"]{color:var(--ux-warning-ink);background:var(--ux-warning-soft)}.order-import-issues p[data-severity="success"]{color:var(--ux-success);background:var(--ux-success-soft)}.order-import-line{display:grid;grid-template-columns:minmax(110px,.8fr) minmax(180px,1.4fr) 70px;gap:8px;align-items:center;padding:6px 9px;border-bottom:1px solid var(--line-soft);font-size:10.5px}.order-import-line span{min-width:0}.order-import-line small{display:block;color:var(--ux-ink-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.order-import-line>strong{text-align:end}.order-import-fields{display:grid;grid-template-columns:180px minmax(260px,1fr);gap:10px}.order-import-fields label{display:grid;gap:4px;font-size:9px;font-weight:800;text-transform:uppercase;color:var(--ux-ink-muted)}.order-import-fields input{width:100%}.order-import-review>footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:9px;border-top:1px solid var(--ux-border)}.order-import-review>footer>span{font-size:10.5px;color:var(--ux-ink-muted)}

@media(max-width:920px){.order-category-picker-list{grid-template-columns:1fr}.order-import-review-grid{grid-template-columns:minmax(240px,.8fr) minmax(340px,1.2fr)}.order-import-line{grid-template-columns:88px minmax(150px,1fr) 52px}}
@media(max-width:760px){.order-step-copy-actions{display:grid;gap:8px}.store-selection-controls{justify-content:flex-start}.store-selection-controls .button{min-height:44px}.order-source-chip{max-width:100%}.order-live-metrics{align-items:center}.order-category-picker,.order-import-modal{max-height:calc(100dvh - 28px)}.order-category-picker-toolbar label:not(.ui-search){height:44px}.order-category-picker-toolbar .order-category-picker-search{height:var(--ui-touch-target);min-height:var(--ui-touch-target)}.order-category-picker-list{min-height:0;max-height:none;overflow:auto}.order-category-choice{min-height:52px;grid-template-columns:20px 46px minmax(0,1fr)}.order-category-picker-actions{display:grid;grid-template-columns:1fr 1fr}.order-category-picker-actions .button{min-height:44px}.order-category-picker-actions .button:last-child{grid-column:1/-1}.order-import-start{grid-template-columns:1fr}.order-import-start>.button{min-height:44px}.order-import-modal .file-drop{min-height:70px}.order-import-review{grid-template-rows:auto auto minmax(0,1fr) auto auto;max-height:calc(100dvh - 204px)}.order-import-review>header{align-items:flex-start}.order-import-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.order-import-review-grid{grid-template-columns:1fr;overflow:auto}.order-import-issues,.order-import-lines{min-height:190px}.order-import-fields{grid-template-columns:1fr}.order-import-review>footer{display:grid}}

/* Hotfix 10 viewport containment: New Order is a bounded workspace, not a document-length form. */
body[data-route="orders"] #page:not(.orders-list-page){
  height:calc(100dvh - var(--topbar-height));
  min-height:0;
  padding:10px 12px 0;
  overflow:hidden;
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  align-content:stretch;
}
body[data-route="orders"] #page:not(.orders-list-page)>.workspace-header{margin-bottom:7px}
body[data-route="orders"] #page:not(.orders-list-page)>.order-composer{
  height:100%;
  min-height:0;
  max-height:none;
}
body[data-route="orders"] #page:not(.orders-list-page) .order-step-panel{min-height:0}
body[data-route="orders"] #page:not(.orders-list-page) .order-step-panel:has(.order-matrix-wrap){
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  overflow:hidden;
}
body[data-route="orders"] #page:not(.orders-list-page) .order-matrix-wrap{
  min-height:0;
  height:100%;
  overflow:auto;
  overscroll-behavior:contain;
}
@media(max-width:760px){
  body[data-route="orders"] #page:not(.orders-list-page){
    height:calc(100dvh - var(--topbar-height) - var(--mobile-bottom-nav));
    padding:6px 0 0;
  }
  body[data-route="orders"] #page:not(.orders-list-page)>.workspace-header{margin:0 8px 5px}
  body[data-route="orders"] #page:not(.orders-list-page)>.order-composer{border-radius:0}
}
@media(max-width:760px){
  .order-category-picker~*{} /* keep release block parseable for static auditing */
  .modal:has(.order-category-picker) .modal-close,
  .modal:has(.order-import-modal) .modal-close{
    width:var(--ui-touch-target);
    min-width:var(--ui-touch-target);
    height:var(--ui-touch-target);
    min-height:var(--ui-touch-target);
    inset-block-start:8px;
    inset-inline-end:8px;
  }
  .order-category-picker-toolbar label:not(.ui-search){height:46px;min-height:46px}
  .order-category-picker-toolbar .order-category-picker-search{height:var(--ui-touch-target);min-height:var(--ui-touch-target)}
}
@media(max-width:760px){
  .modal:has(.order-category-picker){
    height:calc(100dvh - 16px);
    max-height:calc(100dvh - 16px);
  }
  .modal:has(.order-category-picker) .modal-body{
    height:100%;
    min-height:0;
    box-sizing:border-box;
    display:grid;
  }
  .order-category-picker{
    height:100%;
    min-height:0;
    max-height:none;
    grid-template-rows:auto auto minmax(0,1fr) auto;
  }
  .order-category-picker-list{min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain}
  .order-category-picker-actions{background:var(--ux-surface);position:relative;z-index:1}
}
@media(max-width:760px){
  body[data-route="orders"] #page:not(.orders-list-page)>.workspace-header{
    height:50px;
    min-height:50px;
    max-height:50px;
    box-sizing:border-box;
    align-items:center;
  }
  body[data-route="orders"] #page:not(.orders-list-page)>.workspace-header .workspace-eyebrow,
  body[data-route="orders"] #page:not(.orders-list-page)>.workspace-header .workspace-description{display:none}
  body[data-route="orders"] #page:not(.orders-list-page)>.workspace-header .workspace-title-row h1{font-size:18px}
  body[data-route="orders"] #page:not(.orders-list-page) .order-action-bar{
    height:54px;
    min-height:54px;
    max-height:54px;
    box-sizing:border-box;
    padding:5px 8px calc(5px + var(--mobile-safe-bottom));
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-action-end{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:var(--ui-gap-tight);
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-action-end .button:last-child:nth-child(3){grid-column:auto}
  body[data-route="orders"] #page:not(.orders-list-page) .order-action-end .button{min-width:0;padding-inline:6px}
}
@media(max-width:760px){
  body[data-route="orders"] #page:not(.orders-list-page)>.order-composer,
  body[data-route="orders"] #page:not(.orders-list-page) .order-stepper,
  body[data-route="orders"] #page:not(.orders-list-page) .order-meta-bar,
  body[data-route="orders"] #page:not(.orders-list-page) .order-step-panel,
  body[data-route="orders"] #page:not(.orders-list-page) .order-action-bar{
    width:100%;
    min-width:0;
    max-width:100%;
    box-sizing:border-box;
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-meta-bar{
    grid-template-columns:130px minmax(0,1fr);
    gap:7px;
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-meta-bar>label{min-width:0}
  body[data-route="orders"] #page:not(.orders-list-page) .order-meta-bar input{width:100%;min-width:0}
  body[data-route="orders"] #page:not(.orders-list-page) .order-live-metrics{display:none;min-width:0}
  body[data-route="orders"] #page:not(.orders-list-page) .order-live-metrics:has(.order-source-chip){
    display:flex;
    grid-column:1/-1;
    overflow:hidden;
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-live-metrics:has(.order-source-chip)>span:not(.order-source-chip),
  body[data-route="orders"] #page:not(.orders-list-page) .order-live-metrics:has(.order-source-chip)>strong{display:none}
}
@media(max-width:760px){
  body[data-route="orders"] #page:not(.orders-list-page) .order-action-end .button{
    height:var(--ui-touch-target);
    min-height:var(--ui-touch-target);
  }
}

/* v125.0.0-clean-staging.23 UI hotfix 10.2 — Order planning and amendment controls. */
.order-category-picker-toolbar{grid-template-columns:minmax(220px,1fr) minmax(150px,210px) auto}.order-category-picker-sort{display:grid!important;grid-template-columns:auto minmax(0,1fr);height:38px!important}.order-category-picker-sort select{min-width:0;height:34px;border:0;background:transparent}.order-category-choice{grid-template-columns:18px 48px minmax(120px,1fr) minmax(180px,.9fr);min-height:66px}.order-category-choice-inventory{min-width:0;display:grid;gap:2px;padding-inline-start:8px;border-inline-start:1px solid var(--ux-border)}.order-category-choice-inventory b{font-size:10px}.order-category-choice-inventory small{white-space:normal;line-height:1.3}.order-category-choice-inventory em{font-style:normal;font-size:9px;color:var(--ux-warning)}.order-category-choice[data-health="zero"]{border-inline-start:4px solid #c74343}.order-category-choice[data-health="low"]{border-inline-start:4px solid #d56b35}.order-category-choice[data-health="watch"]{border-inline-start:4px solid #c49a2e}.order-category-inventory-state{grid-column:1/-1;min-height:180px;display:flex;align-items:center;justify-content:center;gap:9px;color:var(--ux-ink-muted)}.approval-drawer-tools{grid-template-columns:minmax(0,1fr) 130px;align-items:end}.approval-add-quantity input{width:100%;height:38px}.approval-target-actions{grid-column:1/-1;display:flex;gap:var(--ui-gap-tight);flex-wrap:wrap}.approval-target-actions .button{min-height:36px}.approval-drawer-tools>[data-approval-target-toggle]{grid-column:1/-1;justify-self:start}
.orders-list-actionbar>div{flex-wrap:wrap;justify-content:flex-end}
@media(max-width:1100px) and (min-width:761px){.order-category-choice{grid-template-columns:18px 44px minmax(110px,1fr)}.order-category-choice-inventory{grid-column:2/-1;margin-inline-start:52px;padding-inline-start:0;border-inline-start:0;border-top:1px solid var(--ux-border);padding-top:5px}}
@media(max-width:760px){.order-category-picker-toolbar{grid-template-columns:1fr}.order-category-picker-sort{height:44px!important}.order-category-picker-sort select{height:40px}.order-category-choice{grid-template-columns:20px 46px minmax(0,1fr);min-height:88px}.order-category-choice-inventory{grid-column:2/-1;padding-inline-start:0;border-inline-start:0;border-top:1px solid var(--ux-border);padding-top:5px}.approval-drawer-tools{grid-template-columns:1fr}.approval-drawer-search>.ui-search{height:var(--ui-touch-target);min-height:var(--ui-touch-target)}.approval-target-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.approval-target-actions .button,.approval-add-quantity input{min-height:44px}.orders-list-actionbar [data-amend-selected]{display:none}}
@media(max-width:760px){.order-category-picker-sort select{height:44px!important;min-height:44px!important}}

/* Hotfix 11 — dedicated Category Master workspace */
body[data-route="category-master"] .main-content{height:calc(100dvh - var(--topbar-height) - var(--shell-feedback-height));padding:10px;overflow:hidden;display:grid;grid-template-rows:auto auto minmax(0,1fr);align-content:stretch}
.category-master-shell{min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);border:1px solid var(--ux-border);border-radius:10px;background:var(--ux-canvas);overflow:hidden}
.category-master-result-count{align-self:center;white-space:nowrap;font-size:var(--ui-type-caption);font-weight:750;color:var(--ux-ink-muted)}
.category-master-list{min-height:0;overflow:auto;padding:5px;display:grid;align-content:start;gap:4px}
.category-master-row{position:relative;width:100%;min-height:62px;padding:7px 8px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--ux-ink);display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;text-align:start;cursor:pointer}
.category-master-row:hover{background:var(--ux-surface-hover)}.category-master-row.selected{background:var(--ux-surface-selected);border-color:#9fbde6;box-shadow:inset 3px 0 0 var(--ux-accent)}[dir=rtl] .category-master-row.selected{box-shadow:inset -3px 0 0 var(--ux-accent)}
.category-master-form{padding:10px;grid-template-columns:1fr 1fr}.category-master-form .ui-form-message{grid-column:1/-1}.category-master-form .ui-form-message:not(:empty){padding:8px 9px;border-radius:7px;background:var(--ux-surface-muted)}.category-master-form .ui-form-message.error{background:var(--ux-error-soft);color:var(--ux-error)}.category-master-lifecycle>.callout{margin:9px 10px 0}.category-master-loading{min-height:360px;display:grid;place-content:center;justify-items:center;gap:10px}
@media(max-width:1180px){.category-master-result-count{display:none}}
@media(max-width:920px) and (min-width:761px){.category-master-row{min-height:56px}.category-master-form{grid-template-columns:1fr;gap:7px}}
@media(max-width:760px){
  body[data-route="category-master"] .main-content{height:100%;min-height:0;padding:0;display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden}
  body[data-route="category-master"] .workspace-title-row{min-height:50px;padding:5px 8px}
  .category-master-shell{border:0;border-radius:0;grid-template-rows:50px minmax(0,1fr)}.category-master-result-count{display:none}.category-master-list{padding:5px}.category-master-row{min-height:64px;padding:7px 8px}.category-master-section>.ui-section-head .button{width:var(--ui-touch-target);min-width:var(--ui-touch-target);height:var(--ui-touch-target);min-height:var(--ui-touch-target);padding:0}.category-master-section>.ui-section-head .button span{display:none}.category-master-form{grid-template-columns:1fr;padding:7px;gap:6px}.category-master-section .callout{margin:6px 7px 0}
}

/* Hotfix 23.11 Category Master eligibility editor */
@media(max-width:1300px) and (min-width:921px){body[data-route="category-master"] .main-content{padding:6px 8px}}

/* v125.0.0-clean-staging.23 UI hotfix 11.1 — editable Category Master details. */
.category-master-editor{display:grid;gap:9px;min-width:0}
.category-master-details-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.category-master-classification-grid{grid-template-columns:minmax(150px,.65fr) minmax(220px,1fr) minmax(260px,1.2fr);align-items:start}
.category-master-form label{min-width:0;margin:0;align-content:start}
.category-master-form label>span{min-height:13px}
.category-master-form input,.category-master-form select{min-width:0}
.category-master-primary-description input,[data-hebrew-field]{font-family:var(--font-hebrew);font-synthesis:none;letter-spacing:0}
.category-master-primary-description input,[data-hebrew-field]{text-align:start}
.category-master-editor-actions{min-height:54px;display:flex;align-items:center;justify-content:space-between;gap:var(--ui-gap-loose);box-shadow:0 -3px 12px rgba(19,32,51,.05)}
.category-master-editor-actions>div{display:flex;gap:7px;margin-inline-start:auto}.category-master-editor-actions .ui-form-message{margin:0;min-width:0;font-size:10px}
.category-master-delete .callout{margin:9px 10px 0}
.site-confirm-text{grid-template-columns:auto minmax(0,1fr);max-width:470px}.site-confirm-text .site-confirm-actions{grid-column:1/-1}.site-confirm-text-field{display:grid;gap:5px;margin-top:12px;font-size:11px;font-weight:700;color:var(--ux-ink-muted)}.site-confirm-text-field input{height:44px;min-height:44px;font-family:var(--font-mono);direction:ltr;text-align:start}
@media(max-width:1180px) and (min-width:921px){.category-master-classification-grid{grid-template-columns:minmax(130px,.55fr) minmax(180px,1fr) minmax(210px,1.15fr)}}
@media(max-width:920px) and (min-width:761px){.category-master-details-grid,.category-master-classification-grid{grid-template-columns:1fr 1fr}.category-master-primary-description,.category-master-english-description{grid-column:auto}.category-master-classification-grid label:last-child{grid-column:1/-1}.category-master-editor-actions{min-height:50px;padding:5px 7px}}
@media(max-width:760px){.category-master-details-grid,.category-master-classification-grid{grid-template-columns:1fr}.category-master-details-grid>*{grid-column:1!important}.category-master-editor{gap:6px}.category-master-editor-actions{min-height:auto;padding:6px;display:grid;grid-template-columns:1fr}.category-master-editor-actions>div{width:100%;display:grid;grid-template-columns:1fr 1fr}.category-master-editor-actions .button{min-height:44px}.category-master-row{min-height:72px}}
/* Hotfix 23.11.1 corrective containment: operational sections must retain intrinsic height inside the scroll grid. */
/* Hotfix 23.11.2 — bounded Category Master mutation feedback. */
@media(min-width:761px){
  .category-master-editor-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;justify-content:initial}
  .category-master-editor-actions .ui-form-message{max-width:100%;overflow-wrap:anywhere;line-height:1.35}
}
/* Shared compact feedback containment: long operational errors must not expand the shell. */
.shell-feedback .toast-host,.shell-feedback .toast{min-width:0;max-width:100%}
.shell-feedback .toast{width:100%}
.toast span{min-width:0}

/* Hotfix 11.2: reserve the compact-desktop topbar action zones for real controls. */
@media (min-width:761px) and (max-width:1050px){
  .shell-feedback{width:min(300px,calc(100% - 480px))}
}
@media (max-width:760px){
  .shell-feedback{inset-inline-start:72px;inset-inline-end:120px}
}
@media (max-width:760px){
  [dir="rtl"] .shell-feedback{transform:none}
}
/* v125.0.0-clean-staging.24 — multilingual Category Master and controlled classification labels. */
.category-master-arabic-description input,[data-arabic-field]{font-family:var(--font-arabic);font-synthesis:none;letter-spacing:0;text-align:start}
.category-master-russian-description input,.category-master-english-description input{font-family:var(--font-ui)}
.category-master-details-grid>.category-master-primary-description,.category-master-details-grid>.category-master-english-description,.category-master-details-grid>.category-master-russian-description,.category-master-details-grid>.category-master-arabic-description{min-height:82px}
@media(max-width:920px) and (min-width:761px){.category-master-details-grid>.category-master-primary-description,.category-master-details-grid>.category-master-english-description,.category-master-details-grid>.category-master-russian-description,.category-master-details-grid>.category-master-arabic-description{min-height:88px}}
@media(max-width:760px){.category-master-details-grid>.category-master-primary-description,.category-master-details-grid>.category-master-english-description,.category-master-details-grid>.category-master-russian-description,.category-master-details-grid>.category-master-arabic-description{min-height:auto}}

/* v125.0.0-clean-staging.25 — Inventory Request + provisional Use/week */
/* UI hotfix 1: selected request rows use an explicit high-contrast checkmark. */
body[data-route="inventory-request"] .main-content{overflow:hidden}
#page[data-page="inventory-request"]{height:calc(100dvh - var(--topbar-height));min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);gap:6px;overflow:hidden}
#page[data-page="inventory-request"]>.workspace-header{margin:0;min-height:62px}
.inventory-request-workspace{min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:var(--ui-gap-tight);overflow:hidden}
.inventory-request-toolbar{display:grid;grid-template-columns:minmax(230px,1fr) minmax(145px,190px) minmax(145px,190px) auto auto;align-items:end;gap:7px;padding:8px;border:1px solid var(--ux-border);border-radius:var(--radius-lg);background:var(--ux-surface)}
.inventory-request-toolbar label:not(.inventory-request-search){display:grid;gap:3px}.inventory-request-toolbar label>span{font-size:9px;font-weight:700;color:var(--ux-ink-muted);text-transform:uppercase;letter-spacing:.04em}.inventory-request-toolbar select{height:38px;min-width:0;border:1px solid var(--ux-border);border-radius:var(--radius-md);padding-inline:9px;background:var(--ux-surface);color:var(--ux-ink)}
.inventory-request-search{height:38px;display:flex;align-items:center;gap:7px;padding:0 10px;border:1px solid var(--ux-border);border-radius:var(--radius-md);background:var(--ux-surface)}.inventory-request-search .app-icon{width:16px;height:16px;color:var(--ux-ink-muted)}.inventory-request-search input{min-width:0;width:100%;height:34px;border:0;outline:0;background:transparent}
.inventory-request-results{align-self:center;white-space:nowrap;font-size:11px;color:var(--ux-ink-muted)}
.inventory-request-list-shell{min-height:0;overflow:hidden;border:1px solid var(--ux-border);border-radius:var(--radius-lg);background:var(--ux-surface)}
.inventory-request-table-scroll{height:100%;min-height:0;overflow:auto;overscroll-behavior:contain}
.inventory-request-table{table-layout:fixed;font-size:11px}.inventory-request-table thead{position:sticky;top:0;z-index:3}.inventory-request-table td{height:56px;padding:5px 8px;border-bottom:1px solid var(--ux-border);vertical-align:middle}.inventory-request-table tbody tr:last-child td{border-bottom:0}.inventory-request-table tbody tr:hover{background:var(--ux-surface-hover)}.inventory-request-table tbody tr.selected{background:var(--ux-surface-selected)}.inventory-request-table th:nth-child(1),.inventory-request-table td:nth-child(1){width:38px}.inventory-request-table th:nth-child(2),.inventory-request-table td:nth-child(2){width:74px}.inventory-request-table th:nth-child(3),.inventory-request-table td:nth-child(3){width:18%}.inventory-request-table th:nth-child(4),.inventory-request-table td:nth-child(4){width:95px}.inventory-request-table th:nth-child(5),.inventory-request-table td:nth-child(5){width:120px}.inventory-request-table th:nth-child(6),.inventory-request-table td:nth-child(6){width:100px}.inventory-request-table th:nth-child(7),.inventory-request-table td:nth-child(7){width:140px}.inventory-request-table th:nth-child(8),.inventory-request-table td:nth-child(8){width:150px}.inventory-request-table th:nth-child(9),.inventory-request-table td:nth-child(9){width:142px}.inventory-request-table td.numeric,.inventory-request-table th.numeric{text-align:end}.inventory-request-table td.numeric>small{display:block;font-size:8px;color:var(--ux-ink-muted)}
.request-row-check{position:relative;display:inline-grid;place-items:center;width:28px;height:28px;cursor:pointer}.request-row-check input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;pointer-events:none}.request-row-check span{position:relative;display:grid;place-items:center;width:16px;height:16px;border:1.5px solid var(--ux-border-strong);border-radius:4px;background:var(--ux-surface)}.request-row-check span::after{content:"✓";color:#fff;font-size:13px;font-weight:900;line-height:1;opacity:0;transform:scale(.72);transition:opacity .1s ease,transform .1s ease}.request-row-check input:checked+span{background:var(--ux-accent);border-color:var(--ux-accent);box-shadow:none}.request-row-check input:checked+span::after{opacity:1;transform:scale(1)}.request-row-check input:focus-visible+span{outline:3px solid var(--ux-accent);outline-offset:2px}
.request-usage{display:grid;justify-items:end;gap:1px}.request-usage>strong{font-size:14px}.request-usage>span{font-size:8px;font-weight:700;border-radius:999px;padding:1px 6px;background:var(--ux-neutral-soft);color:var(--ux-ink-muted)}.request-usage>span[data-source="manual"]{background:var(--ux-warning-soft);color:var(--ux-warning-ink)}.request-usage>span[data-source="calculated"]{background:var(--ux-success-soft);color:var(--ux-success)}.request-usage>small{max-width:132px;font-size:8px;line-height:1.15;color:var(--ux-ink-muted)}
.request-quantity{justify-self:end}
.inventory-request-mobile-list{display:none}
.inventory-request-export{min-height:62px;display:grid;grid-template-columns:minmax(220px,1fr) auto auto;align-items:center;gap:14px;padding:7px 9px;border:1px solid var(--ux-border);border-radius:var(--radius-lg);background:var(--ux-surface)}.inventory-request-export-summary{display:grid;gap:2px}.inventory-request-export-summary strong{font-size:13px}.inventory-request-export-summary small{font-size:9px;color:var(--ux-ink-muted)}.inventory-request-export-options{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.usage-baseline-form h2,.usage-baseline-form p{margin:0}.usage-baseline-form>p{color:var(--ux-ink-muted)}.usage-baseline-current{display:grid;grid-template-columns:1fr auto;gap:2px 12px;padding:10px;border:1px solid var(--ux-border);border-radius:var(--radius-md);background:var(--ux-surface-muted)}.usage-baseline-current span{font-size:10px;color:var(--ux-ink-muted)}.usage-baseline-current strong{grid-row:1/3;grid-column:2;font-size:22px}.usage-baseline-current small{font-size:9px;color:var(--ux-ink-muted)}.usage-baseline-help{font-size:10px;line-height:1.45}

@media(max-width:1100px){.inventory-request-toolbar{grid-template-columns:minmax(180px,1fr) 140px 140px auto}.inventory-request-results{display:none}.inventory-request-table th:nth-child(4),.inventory-request-table td:nth-child(4),.inventory-request-table th:nth-child(5),.inventory-request-table td:nth-child(5){display:none}.inventory-request-table th:nth-child(3),.inventory-request-table td:nth-child(3){width:24%}.inventory-request-export{grid-template-columns:minmax(180px,1fr) auto}.inventory-request-export-options{grid-row:2;grid-column:1/-1}.inventory-request-export .button{grid-row:1;grid-column:2}}
@media(max-width:760px){
  body[data-route="inventory-request"] .shell-main{height:calc(100dvh - var(--mobile-bottom-nav));grid-template-rows:var(--topbar-height) minmax(0,1fr)}
  body[data-route="inventory-request"] .main-content{height:calc(100dvh - var(--topbar-height) - var(--mobile-bottom-nav));padding:0;overflow:hidden}
  #page[data-page="inventory-request"]{height:100%;padding:4px 6px 0;grid-template-rows:50px minmax(0,1fr)}#page[data-page="inventory-request"]>.workspace-header{height:50px;min-height:50px;max-height:50px;margin:0;padding:3px 5px;overflow:hidden}#page[data-page="inventory-request"]>.workspace-header .workspace-description{display:none}#page[data-page="inventory-request"]>.workspace-header .workspace-title-row h1{font-size:17px}#page[data-page="inventory-request"]>.workspace-header .workspace-meta{font-size:8px}
  .inventory-request-workspace{gap:4px;grid-template-rows:auto minmax(0,1fr) auto}.inventory-request-toolbar{grid-template-columns:minmax(0,1fr) 44px;gap:4px;padding:4px;border-radius:var(--radius-md)}.inventory-request-search{height:44px}.inventory-request-search input{height:44px}.inventory-request-toolbar>label:not(.inventory-request-search),.inventory-request-results{display:none}.inventory-request-toolbar [data-clear-request]{width:var(--ui-touch-target);height:var(--ui-touch-target);padding:0}.inventory-request-toolbar [data-clear-request] span{display:none}
  .inventory-request-list-shell{border-radius:var(--radius-md)}.inventory-request-table-scroll{display:none}.inventory-request-mobile-list{height:100%;display:grid;gap:6px;padding:6px;overflow:auto;overscroll-behavior:contain;background:var(--ux-surface-muted)}.inventory-request-card{display:grid;gap:7px;padding:8px;border:1px solid var(--ux-border);border-radius:var(--radius-lg);background:var(--ux-surface)}.inventory-request-card.selected{border-color:var(--ux-accent);box-shadow:0 0 0 1px var(--ux-accent)}.inventory-request-card>header{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:5px}.inventory-request-card>header>div{min-width:0;display:grid;gap:2px}.inventory-request-card>header strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.inventory-request-card>header small{font-size:8px;color:var(--ux-ink-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.inventory-request-card .request-row-check{width:44px;height:44px}.inventory-request-card .icon-button{width:var(--ui-touch-target);height:44px}.inventory-request-card-metrics{display:grid;grid-template-columns:1fr 1.35fr;gap:6px}.inventory-request-card-metrics>span{min-height:54px;display:grid;align-content:center;padding:6px;border-radius:var(--radius-md);background:var(--ux-surface-muted)}.inventory-request-card-metrics>span>small{font-size:8px;color:var(--ux-ink-muted)}.inventory-request-card-metrics>span>strong{font-size:16px}.inventory-request-card .request-usage{justify-items:start}.inventory-request-card .request-usage>small{max-width:none}.inventory-request-card>footer{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:7px;padding-top:6px;border-top:1px solid var(--ux-border)}.inventory-request-card>footer>span{font-size:9px;font-weight:700}
  .inventory-request-export{min-height:58px;grid-template-columns:minmax(0,1fr) 140px;gap:6px;padding:5px 6px;border-radius:var(--radius-md)}.inventory-request-export-summary strong{font-size:11px}.inventory-request-export-summary small,.inventory-request-export-options{display:none}.inventory-request-export .button{grid-row:auto;grid-column:auto;height:var(--ui-touch-target);padding-inline:7px}.inventory-request-export .button span{font-size:10px}
}


/* v125.0.0-clean-staging.26 — Inventory export and operational filters */
.inventory-v22-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.inventory-visibility-filters .inventory-filter-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.inventory-visibility-filters label{min-height:30px;background:var(--ux-surface);border:1px solid var(--ux-border)}
/* 34.120.155 — retired obsolete pre-section Inventory Export form/scope/fieldset presentation after the export modal moved to overview + ui-choice sections. */
@media(max-width:1000px){.inventory-v22-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.inventory-v22-table{font-size:9.5px}.inventory-v22-table th,.inventory-v22-table td{padding-inline:5px}.inventory-category-cell span{max-width:115px}}
@media(max-width:760px){.inventory-v22-toolbar{flex-wrap:wrap;padding:7px 8px}.inventory-v22-toolbar .inventory-search{order:1;flex-basis:100%;max-width:none;margin:0}.inventory-v22-toolbar [data-filter-toggle],.inventory-v22-toolbar [data-inventory-export]{order:2;min-height:44px}.inventory-v22-toolbar .inventory-filter-summary{order:3;flex:1;white-space:normal}.inventory-v22-filters{grid-template-columns:1fr}.inventory-visibility-filters .inventory-filter-options{grid-template-columns:1fr}}
@media(max-width:760px){
  .inventory-v22-toolbar{height:50px;min-height:50px;flex-wrap:nowrap;padding:3px 6px;gap:5px}
  .inventory-v22-toolbar .inventory-search{order:-2;flex:1 1 auto;flex-basis:auto;min-width:0;max-width:none;margin:0;height:44px}
  .inventory-v22-toolbar [data-filter-toggle],.inventory-v22-toolbar [data-inventory-export]{order:0;flex:0 0 44px;width:var(--ui-touch-target);min-width:var(--ui-touch-target);height:var(--ui-touch-target);min-height:var(--ui-touch-target);padding:0}
  .inventory-v22-toolbar [data-filter-toggle] span,.inventory-v22-toolbar [data-inventory-export] span{display:none}
}


/* v125.0.0-clean-staging.28 — one-pallet G geometry, desktop pallet drag/move, and mobile operational readability */
/* A/B/G share one physical-slot component and geometry under schema .22. */

/* Desktop drag and move states. Authority is still committed only by Save placements. */
.placement-location.draggable{cursor:grab;touch-action:auto}
.placement-location.draggable:active{cursor:grabbing}
.warehouse-r6.drag-active .placement-location.drop-target{border-color:var(--ux-success);background:var(--ux-success-soft)}
.warehouse-r6.drag-active .placement-location.drop-blocked{opacity:.28;filter:grayscale(.35)}
.warehouse-r6.drag-active .placement-location.drag-source{opacity:.62;border:2px dashed var(--ux-accent);background:var(--ux-accent-soft)}
.warehouse-r6.drag-active .placement-location.drop-hover{z-index:3;border:2px solid #2f8a59;box-shadow:0 0 0 3px rgba(47,138,89,.2);transform:translateY(-1px)}
.wr6-move-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}

@media(max-width:760px){
  /* Reusable mobile card/list typography. */
  .metric-card span,.metric-card small,.inventory-v22-table td:before,.inventory-request-card>header small,.inventory-request-card-metrics>span>small,.orders-mobile-totals{font-size:var(--mobile-type-caption)}
  .inventory-category-cell span,
  .inventory-request-card>header small{font-size:var(--mobile-type-secondary);line-height:1.3}
  .inventory-category-cell bdi,
  .inventory-request-card>header strong,
  .orders-mobile-card-head strong{font-size:var(--mobile-type-identity)}

  /* Dashboard: primary list owns the viewport; labels remain readable. */

  /* Inventory: compact but no micro-text. */
  .inventory-v22-header{padding:8px 10px}
  .inventory-v22-header h1{font-size:20px}
  .inventory-header-metrics>div span{font-size:8.5px}
  .inventory-header-metrics>div strong{font-size:14px}
  .inventory-v22-list{padding:7px}
  .inventory-v22-table tr{padding:9px 10px 8px;margin-bottom:7px;border-radius:9px}
  .inventory-v22-table td{padding:2px 0;line-height:1.3}
  .inventory-v22-table td:before{font-size:9px}
  .inventory-location-chips bdi{font-size:9.5px}
  .inventory-detail-identity strong{font-size:13px}
  .inventory-detail-identity span{font-size:10px}
  .inventory-detail-section{padding:11px}
  .inventory-edit-row>div:first-child strong{font-size:12px}
  .inventory-edit-row>div:first-child small{font-size:9.5px;line-height:1.35}
  .inventory-v22-actionbar{min-height:60px;padding:7px 8px}

  /* Inventory Request: one card is a complete operational row. */
  .inventory-request-mobile-list{gap:8px;padding:8px}
  .inventory-request-card{gap:9px;padding:10px;border-radius:10px}
  .inventory-request-card>header{gap:7px}
  .inventory-request-card>header strong{font-size:13px}
  .inventory-request-card>header small{font-size:9.5px}
  .inventory-request-card-metrics{gap:8px}
  .inventory-request-card-metrics>span{min-height:60px;padding:8px}
  .inventory-request-card-metrics>span>small{font-size:9px}
  .inventory-request-card>footer>span{font-size:10px}
  .inventory-request-export{min-height:60px;padding:7px 8px}

  /* Category Master list: identity and state take priority over redundant micro-metrics. */
  .category-master-list{padding:7px;gap:6px}
  .category-master-row{min-height:70px;padding:9px 10px;gap:6px 9px}

  /* Warehouse: context cards and detail actions remain readable without reducing work height. */
  .wr6-panel>header strong{font-size:12px}
  .wr6-panel>header small{font-size:9px}
  .wr6-detail-title p{font-size:10px}
  .wr6-detail-section h3{font-size:11px}
  .wr6-detail-section dt,.wr6-detail-section dd{font-size:11px}
  .wr6-move-actions{grid-template-columns:1fr}
  .wr6-actionbar{min-height:60px;height:60px}
  .wr6-actionbar span{font-size:9.5px}
  .wr6-actionbar small{font-size:8.5px}

  /* Account readable form/card scale. */

  /* Orders list and empty state. */
  .orders-mobile-card{min-height:112px;padding:10px;gap:7px}
  .orders-mobile-date{font-size:15px}
  .orders-mobile-card-head bdi,.orders-mobile-progress strong{font-size:10.5px}
  .orders-list-actionbar .button{min-height:44px}
}

/* Explicit Inventory grid placement prevents the hidden mobile filter drawer from stealing the workspace track. */
.inventory-v22-page>.inventory-v22-header{grid-row:1}
.inventory-v22-page>.inventory-v22-toolbar{grid-row:2}
.inventory-v22-page>.inventory-v22-filters{grid-row:3}
.inventory-v22-page>.inventory-v22-workspace{grid-row:4}
@media(max-width:760px){
  .inventory-v22-page:not(.mobile-detail):not(.mobile-map){grid-template-rows:auto auto 0 minmax(0,1fr)}
  .inventory-v22-page.mobile-detail>.inventory-v22-workspace,.inventory-v22-page.mobile-map>.inventory-v22-workspace{grid-row:1}
}
@media(max-width:760px){
  .file-button input[type=file]{height:100%;min-height:100%}
}

/* v125.0.0-clean-staging.28 responsibility separation R2 */.inventory-quantity-workspace{--inventory-list-width:64%}.inventory-location-summary .inventory-section-title-row>div{min-width:0}.inventory-location-summary .inventory-section-title-row p{font-size:9px;color:var(--ux-ink-muted);margin:3px 0 0}.inventory-unplaced-result{border-color:var(--ux-warning);background:var(--ux-warning-soft)}.inventory-next-step{display:block;margin-top:8px;font-size:10px;font-weight:700;color:var(--ux-warning)}
.warehouse-purpose-page{grid-template-rows:auto 50px minmax(0,1fr) 58px}.warehouse-placement-toolbar{grid-template-columns:minmax(220px,360px) minmax(0,1fr) auto}.warehouse-placement-workspace{min-height:0;padding:10px 12px;overflow:hidden;display:grid;grid-template-columns:minmax(190px,230px) minmax(360px,1fr) minmax(260px,310px);gap:10px}.warehouse-pallet-tray{background:var(--ux-surface);border:1px solid var(--ux-border);border-radius:8px;min-width:0;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden}.warehouse-pallet-tray>header{min-height:52px;padding:8px 10px;border-bottom:1px solid var(--ux-border);display:flex;align-items:center;justify-content:space-between;gap:8px}.warehouse-pallet-tray>header>div{display:grid;min-width:0}.warehouse-pallet-tray>header strong{font-size:12px}.warehouse-pallet-tray>header small{font-size:9px;color:var(--ux-ink-muted);margin-top:2px}.warehouse-pallet-tray-scroll{overflow:auto;padding:7px;display:grid;align-content:start;gap:6px}.warehouse-pallet-token{min-height:62px;border:1px solid #cbd5df;border-radius:7px;background:var(--ux-surface);padding:7px;display:grid;grid-template-columns:28px minmax(0,1fr);grid-template-rows:auto auto auto;gap:1px 7px;text-align:start;cursor:grab}.warehouse-pallet-token:hover,.warehouse-pallet-token.selected{border-color:var(--ux-accent);background:var(--ux-accent-soft);box-shadow:inset 3px 0 0 var(--ux-accent)}[dir=rtl] .warehouse-pallet-token.selected{box-shadow:inset -3px 0 0 var(--ux-accent)}.warehouse-pallet-token>span{grid-row:1/4;align-self:center;display:grid;place-items:center;width:28px;height:28px;border-radius:6px;background:var(--ux-warning-soft);color:var(--ux-warning)}.warehouse-pallet-token>strong{font-size:13px}.warehouse-pallet-token>small{font-size:9px;color:var(--ux-ink-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.warehouse-pallet-token>em{font-size:8px;color:var(--ux-warning);font-style:normal}.warehouse-tray-empty{min-height:180px;display:grid;place-content:center;justify-items:center;text-align:center;gap:7px;color:var(--ux-success)}.warehouse-tray-empty small{max-width:180px;color:var(--ux-ink-muted)}.warehouse-placement-workspace>.wr6-map-panel{display:block;padding:0;border:0;background:transparent}.warehouse-placement-workspace>.wr6-map-panel>.placement-map-component{height:100%}.warehouse-placement-workspace>.wr6-detail{height:100%;display:grid;grid-template-rows:51px minmax(0,1fr)}.warehouse-selected-category{display:grid;gap:3px;padding:9px;border:1px solid var(--ux-accent);background:var(--ux-accent-soft);border-radius:7px;margin-bottom:9px}.warehouse-selected-category span{font-size:11px}.warehouse-selected-category strong{font-size:9px;color:var(--ux-warning)}.warehouse-placement-actionbar>div:last-child{display:flex;gap:8px}.warehouse-purpose-page.drag-active .placement-location.drop-target{border-color:var(--ux-success);background:var(--ux-success-soft)}.warehouse-purpose-page.drag-active .placement-location.drop-blocked{opacity:.28;filter:grayscale(.35)}.warehouse-purpose-page.drag-active .placement-location.drag-source{opacity:.62;border:2px dashed var(--ux-accent);background:var(--ux-accent-soft)}.warehouse-purpose-page.drag-active .placement-location.drop-hover{z-index:3;border:2px solid var(--ux-success);box-shadow:0 0 0 3px color-mix(in srgb,var(--ux-success) 20%,transparent);transform:translateY(-1px)}
@media(max-width:1050px){.warehouse-placement-workspace{grid-template-columns:180px minmax(320px,1fr) 260px;gap:7px;padding:7px}}
@media(max-width:900px) and (min-width:761px){.warehouse-placement-workspace{grid-template-columns:150px minmax(300px,1fr) 235px;gap:5px;padding:5px}.warehouse-pallet-token{grid-template-columns:1fr;min-height:56px}.warehouse-pallet-token>span{display:none}.warehouse-placement-toolbar{grid-template-columns:220px minmax(0,1fr) auto}}
@media(max-width:760px){.warehouse-purpose-page{grid-template-rows:auto auto minmax(0,1fr) 64px}.warehouse-placement-toolbar{grid-template-columns:minmax(0,1fr) auto;padding:6px 8px}.warehouse-placement-toolbar>.button{width:var(--ui-touch-target);height:42px;padding:0}.warehouse-placement-toolbar>.button span{display:none}.warehouse-placement-workspace{padding:6px;grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);gap:var(--ui-gap-tight);overflow:hidden}.warehouse-pallet-tray{max-height:154px}.warehouse-pallet-tray>header{min-height:44px;padding:6px 8px}.warehouse-pallet-tray-scroll{display:flex;overflow-x:auto;overflow-y:hidden;padding:5px;gap:6px}.warehouse-pallet-token{flex:0 0 132px;min-height:96px;grid-template-columns:1fr;padding:7px}.warehouse-pallet-token>span{display:none}.warehouse-pallet-token>small{white-space:normal;line-height:1.15;max-height:24px}.warehouse-placement-workspace>.wr6-map-panel{min-height:0;display:block}.warehouse-placement-workspace>.wr6-detail{display:none}.warehouse-placement-workspace.mobile-detail>.warehouse-pallet-tray,.warehouse-placement-workspace.mobile-detail>.wr6-map-panel{display:none}.warehouse-placement-workspace.mobile-detail>.wr6-detail{display:grid;height:100%;border-inline:0;border-radius:0}.warehouse-placement-actionbar .button{min-height:44px}.warehouse-placement-actionbar [data-wr-cancel-draft]{width:var(--ui-touch-target);padding:0}.warehouse-placement-actionbar [data-wr-cancel-draft] span{display:none}}


@media (max-width:760px){
  .warehouse-placement-toolbar input,
  .warehouse-placement-toolbar select{min-height:var(--ui-touch-target);}
}

/* v125.0.0-clean-staging.29 — guarded Warehouse Layout Administration */
.warehouse-toolbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;min-width:max-content}
.modal.modal-layout{height:min(700px,calc(100dvh - 32px));overflow:hidden}.modal.modal-layout .modal-body{height:100%;min-height:0;overflow:hidden;box-sizing:border-box}.warehouse-layout-modal{display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:var(--ui-gap-loose);height:100%;min-height:0;max-height:100%}
.warehouse-layout-search{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 2px}.warehouse-layout-search>.ui-search{width:min(360px,100%)}.warehouse-layout-search>span{font-size:10px;color:var(--ux-ink-muted);white-space:nowrap}
.warehouse-layout-list{min-height:0;overflow:auto;display:grid;align-content:start;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:1px 3px 3px}
.warehouse-layout-base{border:1px solid var(--ux-border);border-radius:9px;background:var(--ux-surface);padding:10px;display:grid;gap:10px;min-width:0}.warehouse-layout-base>header{display:flex;align-items:center;justify-content:space-between;gap:8px}.warehouse-layout-base>header>div{display:grid;gap:2px}.warehouse-layout-base>header strong{font-size:15px}.warehouse-layout-base>header small{font-size:9px;color:var(--ux-ink-muted)}
.warehouse-layout-zone-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}.warehouse-layout-zone{border:1px solid var(--ux-border);border-radius:7px;background:var(--ux-surface-muted);padding:8px;display:grid;gap:7px;min-width:0}.warehouse-layout-zone>span{display:flex;align-items:baseline;justify-content:space-between;gap:5px}.warehouse-layout-zone>span>bdi{font-size:14px;font-weight:800}.warehouse-layout-zone>span>small,.warehouse-layout-zone>em{font-size:8px;color:var(--ux-ink-muted);font-style:normal;white-space:nowrap}
.warehouse-layout-stepper{width:100%}
.warehouse-layout-preview{min-height:37px;font-size:9px}.warehouse-layout-preview>.muted{color:var(--ux-ink-muted)}.warehouse-layout-change-summary{display:grid;gap:4px;padding:7px 8px;border-radius:7px;background:var(--ux-surface-muted)}.warehouse-layout-change-summary span{overflow-wrap:anywhere}.warehouse-layout-change-summary .success{color:var(--ux-success)}.warehouse-layout-change-summary .warning{color:var(--ux-warning)}
.warehouse-layout-base>footer{display:flex;justify-content:flex-end;gap:7px}.warehouse-layout-base>footer .button{min-height:40px}
@media(max-width:900px){.warehouse-layout-list{grid-template-columns:1fr}.warehouse-layout-modal{min-height:min(660px,80vh)}}
@media(max-width:760px){.modal.modal-layout{height:calc(100dvh - 16px);width:calc(100vw - 16px)}.modal.modal-layout .modal-body{padding:14px}.warehouse-toolbar-actions{min-width:0}.warehouse-toolbar-actions .button{width:var(--ui-touch-target);height:var(--ui-touch-target);padding:0}.warehouse-toolbar-actions .button span{display:none}.warehouse-layout-modal{min-height:0;height:100%;gap:8px}.warehouse-layout-search{align-items:stretch;flex-direction:column}.warehouse-layout-search>.ui-search{width:100%}.warehouse-layout-search>span{align-self:flex-end}.warehouse-layout-list{grid-template-columns:1fr;gap:8px}.warehouse-layout-base{padding:8px}.warehouse-layout-zone-grid{grid-template-columns:1fr}.warehouse-layout-zone{grid-template-columns:minmax(70px,1fr) minmax(150px,1.4fr);align-items:center}.warehouse-layout-zone>em{grid-column:1/-1}.warehouse-layout-base>footer .button{min-height:var(--ui-touch-target);flex:1}.warehouse-layout-preview{min-height:30px}}

/* v125.0.0-clean-staging.29.1 — G-only to paired A/B topology expansion */
.warehouse-layout-topology-action{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);padding:var(--space-3);border:1px dashed var(--color-border-strong);border-radius:var(--radius-md);background:var(--color-surface-subtle)}
.warehouse-layout-topology-action>div{display:grid;gap:2px}.warehouse-layout-topology-action span{color:var(--color-text-muted);font-size:var(--font-size-sm)}
.warehouse-layout-zone-missing{border-style:dashed;background:var(--color-surface-subtle)}
.warehouse-layout-zone[hidden]{display:none!important}
@media(max-width:760px){.warehouse-layout-topology-action{align-items:stretch;flex-direction:column}.warehouse-layout-topology-action .button{width:100%}}


/* v125.0.0-clean-staging.30 — Inventory inspection and request handoff */
.inventory-request-handoff{margin:0 10px 10px;padding:9px 10px;border:1px solid var(--ux-border);border-radius:8px;background:var(--ux-surface-muted);display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px}.inventory-request-handoff.included{border-color:var(--ux-info-border);background:var(--ux-info-soft)}.inventory-request-handoff-copy{min-width:0;display:grid;gap:2px}.inventory-request-handoff-copy strong{font-size:10.5px}.inventory-request-handoff-copy span{font-size:8.5px;color:var(--ux-ink-muted)}.inventory-request-handoff-actions{display:flex;align-items:center;gap:6px}.inventory-request-inline-quantity{justify-self:end}.inventory-placement-unified .inventory-location-link{display:inline-flex;align-items:center;gap:3px}.inventory-placement-unified .inventory-location-link em{font-style:normal;font-size:7px;color:var(--ux-ink-muted)}
.placement-rack>div>section+section{border-top:1px solid color-mix(in srgb,var(--ux-border-strong) 62%,transparent);padding-top:5px;margin-top:1px}.placement-rack>div>.placement-zone-g{border-top-color:color-mix(in srgb,var(--ux-accent) 42%,var(--ux-border));}
.inventory-v22-table td[data-column="stockCartons"] strong,.inventory-v22-table td[data-column="coverDays"] strong{font-variant-numeric:tabular-nums}.inventory-v22-table td[data-column="coverDays"] small{white-space:nowrap}
@media(max-width:760px){
  .inventory-v22-table tr{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-areas:"category category health health" "location location location location" "pallets stockCartons coverDays unplaced";min-height:116px}.inventory-v22-table td[data-column="health"]{grid-area:health}.inventory-v22-table td[data-column="unplaced"]{grid-area:unplaced}
  .inventory-v22-table td[data-column="pallets"],.inventory-v22-table td[data-column="stockCartons"],.inventory-v22-table td[data-column="coverDays"],.inventory-v22-table td[data-column="unplaced"]{height:40px;border:1px solid var(--ux-border)!important;border-radius:6px!important;background:var(--ux-surface-muted);display:grid!important;place-content:center;text-align:center!important;position:relative}
  .inventory-v22-table td[data-column="pallets"]::after,.inventory-v22-table td[data-column="stockCartons"]::after,.inventory-v22-table td[data-column="coverDays"]::after,.inventory-v22-table td[data-column="unplaced"]::after{content:attr(data-label);display:block;font-size:7px;color:var(--ux-ink-muted);font-weight:600;max-width:70px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .inventory-v22-table td[data-column="pallets"] strong,.inventory-v22-table td[data-column="stockCartons"] strong,.inventory-v22-table td[data-column="coverDays"] strong,.inventory-v22-table td[data-column="unplaced"] strong{font-size:12px}
  .inventory-request-handoff{margin:0 8px 8px;grid-template-columns:1fr;gap:8px}.inventory-request-handoff-actions{display:grid;grid-template-columns:minmax(0,1fr) auto}.inventory-request-handoff-actions>.button{min-height:44px}.inventory-request-handoff-actions>.button:last-child span{display:none}
  .placement-rack>div>section+section{padding-top:7px;margin-top:2px}
}

/* v30 mobile touch targets: interactive navigation and physical-location chips */
@media (max-width: 700px) {
  .sidebar .nav-item {
    min-height: var(--touch-target-min, 44px);
  }
  body[data-route="inventory"] .inventory-location-link {
    min-height: var(--touch-target-min, 44px);
    padding-block: 8px;
    align-items: center;
  }
}

/* v125.0.0-clean-staging.31 — read-first Category Catalog.
   Authority remains in the existing Category Master RPCs; this block only defines
   the catalog information hierarchy and shared side-drawer presentation. */
body[data-route="category-master"] .main-content{
  height:calc(100dvh - var(--topbar-height) - var(--shell-feedback-height));
  padding:8px 10px 10px;overflow:hidden;display:grid;grid-template-rows:auto minmax(0,1fr);align-content:stretch
}
body[data-route="category-master"] .workspace-header{margin-bottom:7px}
.category-catalog-shell{min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);border:1px solid var(--ux-border);border-radius:10px;background:var(--ux-canvas);overflow:hidden}
.category-catalog-toolbar{min-height:58px;padding:7px 9px;border-bottom:1px solid var(--ux-border);background:var(--ux-surface);display:grid;grid-template-columns:minmax(220px,1.45fr) 126px 126px 150px 130px auto auto;gap:7px;align-items:end}
.category-catalog-toolbar label{min-width:0;display:grid;gap:3px;font-size:9px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--ux-ink-muted)}
.category-catalog-toolbar input,.category-catalog-toolbar select{width:100%;height:42px;min-height:42px}
.category-catalog-toolbar .category-master-search>span{display:block}
.category-catalog-toolbar .category-master-result-count{align-self:center;white-space:nowrap;font-size:var(--ui-type-caption);font-weight:750;color:var(--ux-ink-muted)}
.category-catalog-panel{min-width:0;min-height:0;overflow:hidden;display:grid;grid-template-rows:34px minmax(0,1fr);border:0;border-radius:0;background:var(--ux-surface)}
.category-catalog-head,.category-catalog-row{display:grid;grid-template-columns:minmax(210px,2fr) minmax(92px,.8fr) minmax(112px,.95fr) minmax(132px,1.08fr) 108px 92px;gap:8px;align-items:center}
.category-catalog-head{padding:0 10px;border-bottom:1px solid var(--ux-border);background:var(--ux-surface-subtle);font-size:8.5px;font-weight:850;letter-spacing:.045em;text-transform:uppercase;color:var(--ux-ink-muted)}
.category-catalog-list{min-height:0;overflow:auto;padding:5px 7px 8px;display:grid;align-content:start;gap:4px;scrollbar-gutter:stable}
.category-master-row.category-catalog-row{position:relative;width:100%;min-height:68px;padding:7px 9px;border:1px solid var(--ux-border);border-radius:8px;background:var(--ux-surface);color:var(--ux-ink);text-align:start}
.category-master-row.category-catalog-row:hover{background:var(--ux-surface-hover);border-color:#b8c9df}
.category-catalog-cell{min-width:0;display:flex;align-items:center;gap:5px}
.category-catalog-identity{display:grid;gap:2px}.category-catalog-identity strong{font-size:14px;font-weight:850}.category-catalog-identity>span{font-size:10.5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.category-catalog-chipset{min-width:0;display:flex;gap:4px;align-items:center;flex-wrap:wrap}
.catalog-chip{max-width:100%;min-height:24px;padding:3px 7px;border:1px solid var(--ux-border);border-radius:999px;background:var(--ux-surface-subtle);color:var(--ux-ink);display:inline-flex;align-items:center;gap:4px;font-size:9px;font-weight:750;line-height:1.15;white-space:nowrap}
button.catalog-chip{cursor:pointer}.catalog-chip.primary{border-color:#9fbde6;background:var(--ux-surface-selected)}.catalog-chip.unavailable{opacity:.58}.catalog-chip.more{color:var(--ux-ink-muted)}.catalog-chip.group{border-radius:7px;white-space:normal}.catalog-chip.relation{background:var(--ux-surface)}.catalog-chip.relation.incoming{border-style:dashed}.catalog-chip.season[data-season="not_classified"]{color:var(--ux-ink-muted)}
.category-catalog-empty{font-size:9.5px;color:var(--ux-ink-faint)}
.category-catalog-status{position:relative;display:flex;gap:5px;flex-wrap:wrap}.category-catalog-status .status-badge{max-width:100%}
.category-catalog-action{justify-content:flex-end}.category-catalog-action .button{min-width:82px}
.category-master-drawer{width:min(760px,calc(100vw - 32px));grid-template-rows:auto minmax(0,1fr)}
.category-master-drawer-header{align-items:center}.category-master-drawer-header>div{min-width:0;display:grid;gap:3px}.category-master-drawer-header p{margin:0;font-size:9px;font-weight:800;letter-spacing:.045em;text-transform:uppercase;color:var(--ux-ink-muted)}.category-master-drawer-header h2{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.category-master-drawer-header>div>span{display:block;margin-top:2px}
.category-master-drawer-scroll{min-height:0;overflow:auto;padding:10px 12px 18px;display:grid;align-content:start;gap:9px;background:var(--ux-canvas)}
.category-master-drawer .category-master-section{flex:none}.category-master-drawer .category-master-editor{display:grid;gap:9px}.category-master-drawer .category-master-editor-actions{position:sticky;bottom:-18px;z-index:2;background:var(--ux-surface)}

@media(max-width:1180px){
  .category-catalog-toolbar{grid-template-columns:minmax(190px,1.4fr) 112px 112px 132px 112px 44px}.category-catalog-toolbar .category-master-result-count{display:none}.category-catalog-toolbar>.button{width:var(--ui-touch-target);padding:0}.category-catalog-toolbar>.button span{display:none}
  .category-catalog-head,.category-catalog-row{grid-template-columns:minmax(190px,2fr) 90px minmax(105px,1fr) minmax(120px,1.15fr) 102px 82px}
  .category-master-drawer{width:min(680px,calc(100vw - 24px))}
}
@media(max-width:920px) and (min-width:761px){
  body[data-route="category-master"] .main-content{padding:6px 7px 8px}
  .category-catalog-toolbar{min-height:54px;padding:5px;grid-template-columns:minmax(175px,1.3fr) 105px 105px 118px 44px}.category-catalog-toolbar label:nth-of-type(5){display:none}
  .category-catalog-head,.category-catalog-row{grid-template-columns:minmax(180px,2fr) 82px minmax(95px,1fr) minmax(112px,1.1fr) 96px 78px;gap:5px}.category-master-row.category-catalog-row{min-height:64px;padding:6px 7px}.category-catalog-identity strong{font-size:13px}.catalog-chip{padding:3px 5px}
  .category-master-drawer{width:min(640px,calc(100vw - 12px))}
}
@media(max-width:760px){
  body[data-route="category-master"] .shell-main{height:calc(100dvh - var(--mobile-bottom-nav));min-height:0;display:grid;grid-template-rows:var(--topbar-height) minmax(0,1fr);overflow:hidden}
  body[data-route="category-master"] .main-content{height:100%;min-height:0;padding:0;grid-template-rows:auto minmax(0,1fr);overflow:hidden}
  body[data-route="category-master"] .workspace-header{min-height:54px;margin:0;padding:6px 8px;border-radius:0}.category-catalog-shell{border:0;border-radius:0}
  .category-catalog-toolbar{min-height:94px;padding:5px 6px;grid-template-columns:minmax(0,1fr) 44px;grid-template-rows:44px 40px;gap:5px;align-items:center}.category-catalog-toolbar .category-master-search{grid-column:1}.category-catalog-toolbar .category-master-search>span{display:none}.category-catalog-toolbar .category-master-search input{height:var(--ui-touch-target);min-height:44px}.category-catalog-toolbar>.button{grid-column:2;grid-row:1;width:var(--ui-touch-target);height:var(--ui-touch-target);min-height:var(--ui-touch-target);padding:0}.category-catalog-toolbar>.button span{display:none}.category-catalog-toolbar label:not(.category-master-search){display:block}.category-catalog-toolbar label:not(.category-master-search)>span{display:none}.category-catalog-toolbar label:nth-of-type(2),.category-catalog-toolbar label:nth-of-type(3),.category-catalog-toolbar label:nth-of-type(4){grid-row:2}.category-catalog-toolbar label:nth-of-type(2){grid-column:1}.category-catalog-toolbar label:nth-of-type(3){grid-column:1;margin-inline-start:34%}.category-catalog-toolbar label:nth-of-type(4){grid-column:1;margin-inline-start:68%}.category-catalog-toolbar label:nth-of-type(5),.category-catalog-toolbar .category-master-result-count{display:none}.category-catalog-toolbar select{height:40px;min-height:40px;padding-inline:5px;font-size:var(--ui-type-control);width:32%}
  .category-catalog-panel{grid-template-rows:minmax(0,1fr)}.category-catalog-head{display:none}.category-catalog-list{padding:6px;gap:6px}
  .category-master-row.category-catalog-row{min-height:0;padding:9px 10px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 10px;align-items:start;border-radius:9px}.category-catalog-cell{display:grid;gap:4px}.category-catalog-cell::before{content:attr(data-label);font-size:8px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--ux-ink-faint)}.category-catalog-identity{grid-column:1;grid-row:1}.category-catalog-identity::before{display:none}.category-catalog-identity strong{font-size:15px}.category-catalog-identity>span{font-size:11px;white-space:normal;line-height:1.25}.category-catalog-status{grid-column:2;grid-row:1;justify-items:end}.category-catalog-status::before{display:none}.category-catalog-season,.category-catalog-group,.category-catalog-relations{grid-column:1/-1;display:grid;grid-template-columns:78px minmax(0,1fr);align-items:center}.category-catalog-season::before,.category-catalog-group::before,.category-catalog-relations::before{align-self:center}.category-catalog-action{grid-column:1/-1;justify-content:stretch}.category-catalog-action::before{display:none}.category-catalog-action .button{width:100%;min-height:44px}.catalog-chip{min-height:26px;font-size:9.5px}.category-catalog-empty{font-size:10px}
  .category-master-drawer{inset-block:calc(var(--topbar-height) + var(--shell-feedback-height)) calc(var(--mobile-bottom-nav) + var(--mobile-safe-bottom));width:100%;border:0}.category-master-drawer-header{min-height:62px;padding:8px 10px}.category-master-drawer-header .icon-button{width:var(--ui-touch-target);height:var(--ui-touch-target);min-height:44px}.category-master-drawer-scroll{padding:7px 7px 18px;gap:7px}.category-master-drawer .category-master-form{grid-template-columns:1fr;padding:7px;gap:6px}.category-master-drawer .category-master-details-grid,.category-master-drawer .category-master-classification-grid{grid-template-columns:1fr}.category-master-drawer .category-master-details-grid>*{grid-column:1!important}.category-master-drawer .category-master-editor-actions{bottom:-18px;min-height:auto;padding:6px;grid-template-columns:1fr}.category-master-drawer .category-master-editor-actions>div{width:100%;display:grid;grid-template-columns:1fr 1fr}.category-master-drawer .category-master-editor-actions .button{min-height:44px}
}
/* v31 measured mobile correction: the fixed-height catalog viewport must scroll full-height cards, not shrink grid tracks. */
.category-catalog-list{display:flex;flex-direction:column;align-items:stretch}
@media(max-width:760px){
  .category-catalog-toolbar{grid-template-columns:repeat(3,minmax(0,1fr)) 44px;grid-template-rows:44px 44px;min-height:98px}
  .category-catalog-toolbar .category-master-search{grid-column:1/4;grid-row:1}.category-catalog-toolbar>.button{grid-column:4;grid-row:1}
  .category-catalog-toolbar label:nth-of-type(2){grid-column:1;grid-row:2;margin:0}.category-catalog-toolbar label:nth-of-type(3){grid-column:2;grid-row:2;margin:0}.category-catalog-toolbar label:nth-of-type(4){grid-column:3;grid-row:2;margin:0}
  .category-catalog-toolbar label:not(.category-master-search) select{width:100%;height:var(--ui-touch-target);min-height:var(--ui-touch-target);padding-inline:6px}
}
.category-catalog-list>.category-catalog-row{flex:0 0 auto}
@media (max-width:760px){
  body[data-route="category-master"] button.catalog-chip.relation{min-width:var(--ui-touch-target);min-height:var(--ui-touch-target);padding:6px 10px;justify-content:center}
}
@media (max-width:760px){
  body[data-route="category-master"] .category-catalog-toolbar{grid-template-rows:44px 56px;min-height:110px}
  body[data-route="category-master"] .category-catalog-toolbar label:not(.category-master-search){display:grid;grid-template-rows:10px 44px;gap:2px;align-self:stretch}
  body[data-route="category-master"] .category-catalog-toolbar label:not(.category-master-search)>span{display:block;font-size:7.5px;line-height:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
@media (max-width:760px){
  body[data-route="category-master"] .category-catalog-toolbar label:nth-of-type(5){display:none!important}
}
/* v31 drawer regression correction: administrative sections must remain reachable in the scroll track. */
.category-master-drawer-scroll{grid-auto-rows:max-content}
.category-master-drawer-scroll>*{min-height:max-content}

/* v125.0.0-clean-staging.32 — Store Management */
.store-catalog-workspace{display:grid;gap:18px;min-height:0;max-height:calc(100dvh - 252px);overflow:auto;padding:0 4px 24px 0;scrollbar-gutter:stable}
.store-region-section{display:grid;gap:8px}.store-region-section>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 4px}.store-region-section>header>div{display:flex;align-items:baseline;gap:10px}.store-region-section h2{font-size:15px;margin:0}.store-region-section>header span{font-size:12px;color:var(--text-muted)}
.store-region-list{display:grid;gap:7px}.store-catalog-row{display:grid;grid-template-columns:minmax(240px,1.5fr) minmax(190px,1fr) minmax(150px,.75fr) auto;gap:14px;align-items:center;padding:12px 14px;border:1px solid var(--ux-border-muted);border-radius:12px;background:var(--surface);min-height:76px}.store-catalog-row.inactive{background:var(--surface-muted)}
.store-catalog-identity{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:start;min-width:0}.store-catalog-identity .object-code{font-weight:800;font-size:16px}.store-catalog-identity strong{display:block;overflow-wrap:anywhere}.store-catalog-identity p{margin:3px 0 0;font-size:12px;color:var(--text-muted);line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.store-catalog-location,.store-catalog-usage{display:grid;gap:4px;min-width:0}.store-catalog-location strong,.store-catalog-usage strong{font-size:12px}.store-catalog-location span,.store-catalog-usage span,.store-catalog-usage small{font-size:11px;color:var(--text-muted);overflow-wrap:anywhere}.store-catalog-state{display:grid;gap:8px;justify-items:end}.warning-text{color:var(--warning-strong,#9a5b00)!important}.muted{color:var(--text-muted)!important}
.store-management-drawer{width:min(820px,calc(100vw - 32px));max-width:820px}.store-editor-scroll{min-height:0;overflow:auto;padding:14px 16px 20px}.store-editor-section{min-width:0}.store-editor-section h3{margin:0;font-size:12px}.store-form-grid{grid-template-columns:1fr 140px 180px}.store-language-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.store-field-wide{grid-column:1/-1}.store-lifecycle-section>div{display:flex;align-items:center;justify-content:space-between;gap:16px}.store-lifecycle-section p{margin:4px 0 0;font-size:11px;color:var(--text-muted)}.store-editor-actions{position:sticky;bottom:-20px;z-index:1}
@media(max-width:1100px){.store-management-toolbar{grid-template-columns:minmax(220px,1fr) auto auto}.store-results{grid-column:1/-1;padding:0}.store-catalog-row{grid-template-columns:minmax(220px,1.35fr) minmax(180px,1fr) auto}.store-catalog-usage{display:none}}
@media(max-width:760px){.store-management-toolbar{grid-template-columns:1fr 1fr;margin-bottom:10px;padding:10px}.store-management-toolbar .toolbar-search{grid-column:1/-1}.store-management-toolbar select,.store-management-toolbar input{min-height:44px}.store-results{grid-column:1/-1;padding:0}.store-catalog-workspace{max-height:none;overflow:visible;padding:0 0 96px}.store-region-section>header{position:sticky;top:0;z-index:2;background:var(--ux-app-bg);padding:7px 2px}.store-catalog-row{grid-template-columns:1fr auto;gap:10px;padding:12px;min-height:0}.store-catalog-identity{grid-column:1}.store-catalog-state{grid-column:2;grid-row:1;align-self:start}.store-catalog-state .button{min-height:44px}.store-catalog-location{grid-column:1/-1}.store-catalog-usage{display:grid;grid-column:1/-1;grid-template-columns:repeat(3,auto);justify-content:start;gap:8px 14px}.store-management-drawer{width:100vw;max-width:none}.store-editor-scroll{padding:10px 10px 20px}.store-form-grid,.store-language-grid{grid-template-columns:1fr}.store-lifecycle-section>div{align-items:stretch;flex-direction:column}.store-editor-actions .button{min-height:44px}.store-editor-actions{bottom:-20px}}

.store-management-drawer[hidden],.side-drawer-backdrop[data-store-drawer-backdrop][hidden]{display:none!important}

/* v125.0.0-clean-staging.33 — production-readiness interaction geometry */
@media(max-width:760px){
  .dashboard-panel-head>.button{
    min-height:var(--touch-target-min);
    height:var(--touch-target-min);
  }
  .warehouse-placement-toolbar>.button,
  .warehouse-placement-toolbar .ui-search,
  .warehouse-placement-toolbar .ui-search>input{
    min-height:var(--touch-target-min);
    height:var(--touch-target-min);
  }
}

/* 900 px / compact desktop is still desktop, but the placement map is the dominant task.
   The location inspector is progressive disclosure instead of a permanently competing third pane. */
@media(max-width:1000px) and (min-width:761px){
  .warehouse-placement-workspace{
    grid-template-columns:minmax(155px,190px) minmax(0,1fr);
    grid-template-rows:minmax(0,1fr);
    gap:7px;
    padding:7px;
  }
  .warehouse-placement-workspace>.wr6-detail{display:none}
  .warehouse-placement-workspace.mobile-detail{
    grid-template-columns:minmax(0,1fr);
  }
  .warehouse-placement-workspace.mobile-detail>.warehouse-pallet-tray,
  .warehouse-placement-workspace.mobile-detail>.wr6-map-panel{display:none}
  .warehouse-placement-workspace.mobile-detail>.wr6-detail{
    display:grid;
    grid-column:1/-1;
    height:100%;
  }
  .warehouse-placement-workspace.mobile-detail .wr6-mobile-back{
    display:inline-flex;
    min-width:34px;
    min-height:34px;
  }
}
@media(max-width:760px){
  .inventory-mobile-back{
    width:var(--touch-target-min);
    min-width:var(--touch-target-min);
    height:var(--touch-target-min);
    min-height:var(--touch-target-min);
    padding:0;
  }
}
@media(max-width:760px){
  .inventory-request-handoff-actions>.button:last-child{
    width:var(--touch-target-min);
    min-width:var(--touch-target-min);
    padding:0;
  }
}
/* v125.0.0-clean-staging.33 — New Order mobile viewport budget. */
@media(max-width:760px){
  body[data-route="orders"] #page:not(.orders-list-page)>.workspace-header{
    height:44px;
    min-height:44px;
    max-height:44px;
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-meta-bar{
    padding:4px 7px;
  }
}

/* v125.0.0-clean-staging.34-ui-hotfix-1 — mobile shell and Warehouse density.
   Runtime/server identity stays .34; this block changes presentation only. */
.topbar-page-actions[hidden]{display:none!important}
@media(max-width:760px){
  .app-shell{padding-bottom:0}
  .mobile-bottom-nav{display:none!important}

  .topbar{gap:5px;padding-inline:8px}
  .topbar-page-actions{display:flex;align-items:center;margin-inline-start:auto;min-width:0}
  .topbar-page-actions .warehouse-toolbar-actions{display:flex;align-items:center;gap:5px}
  .topbar-page-actions .warehouse-toolbar-actions .button{width:var(--ui-touch-target);min-width:var(--ui-touch-target);height:var(--ui-touch-target);min-height:var(--ui-touch-target);padding:0}
  .topbar-page-actions .warehouse-toolbar-actions .button span{display:none}
  .topbar-end{gap:5px}
  body:has(.shell-feedback[data-active="true"]) .topbar-page-actions{visibility:hidden}

  .warehouse-placement-toolbar{height:52px;min-height:52px;grid-template-columns:minmax(0,1fr);padding:4px 8px}
  body[data-route="warehouse-reference"] .warehouse-placement-toolbar>.ui-search{grid-column:1/-1;width:100%;justify-self:stretch}
  .warehouse-placement-toolbar .ui-search,.warehouse-placement-toolbar .ui-search>input{height:var(--ui-touch-target);min-height:44px}

  .warehouse-pallet-tray{max-height:122px}
  .warehouse-pallet-tray>header{min-height:42px;height:42px;padding:4px 7px}
  .warehouse-pallet-tray>header small{max-width:230px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .warehouse-pallet-tray-scroll{padding:4px 5px;gap:5px}
  .warehouse-pallet-token{flex:0 0 108px;height:68px;min-height:68px;padding:5px 6px;gap:0;grid-template-columns:1fr;grid-template-rows:auto auto auto}
  .warehouse-pallet-token>strong{font-size:14px;line-height:1.1}
  .warehouse-pallet-token>small{font-size:9px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-height:none}
  .warehouse-pallet-token>em{font-size:8px;line-height:1.15;white-space:nowrap}
}

/* v125.0.0-clean-staging.34-ui-hotfix-2 — global shell search, one local
   search per page and one-row responsive page actions. Runtime contracts stay .34. */
.topbar-start{display:flex;align-items:center;gap:5px}
.global-search-button{display:grid;place-items:center;flex:0 0 auto}
.responsive-page-actions,.inventory-toolbar-actions,.category-toolbar-actions,.store-page-actions{display:flex;align-items:center;gap:6px}
.mobile-page-filter{display:none}
.workspace-actions:empty{display:none}
.placement-map-toolbar.without-search{grid-template-columns:auto minmax(112px,150px);justify-content:space-between}
.inventory-toolbar-actions{flex:0 0 auto}
.category-toolbar-actions{justify-content:flex-end}

.global-search-dialog{display:grid;gap:var(--ui-gap-loose);min-height:420px}
.global-search-dialog>header{padding-inline-end:36px}.global-search-dialog h2{margin:0;font-size:20px}.global-search-dialog>header p{margin:4px 0 0;color:var(--ux-ink-muted);font-size:11px;line-height:1.45}
.global-search-field{position:relative;display:flex;align-items:center}.global-search-field>.app-icon{position:absolute;inset-inline-start:13px;width:19px;height:19px;color:var(--ux-ink-muted);pointer-events:none}.global-search-field input{width:100%;height:48px;padding-inline:42px 14px;border:1px solid var(--ux-border-strong);border-radius:9px;font:inherit;font-size:15px;background:var(--ux-surface);color:var(--ux-ink)}
.global-search-results{min-height:280px;max-height:min(55vh,520px);overflow:auto;display:grid;align-content:start;gap:10px;padding:2px;scrollbar-gutter:stable}
.global-search-group{display:grid;gap:4px}.global-search-group h3{margin:0;padding:4px 7px;font-size:9px;font-weight:850;letter-spacing:.05em;text-transform:uppercase;color:var(--ux-ink-muted)}
.global-search-result{width:100%;min-height:50px;display:grid;grid-template-columns:34px minmax(0,1fr) 18px;align-items:center;gap:var(--ui-gap);padding:6px 9px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--ux-ink);text-align:start;cursor:pointer}.global-search-result:hover,.global-search-result:focus-visible{border-color:var(--ux-border-strong);background:var(--ux-surface-selected);outline:none}.global-search-result>span:first-child{width:32px;height:32px;display:grid;place-items:center;border-radius:7px;background:var(--ux-surface-subtle);color:var(--ux-accent)}.global-search-result>span:first-child .app-icon{width:17px;height:17px}.global-search-result>span:nth-child(2){min-width:0;display:grid;gap:2px}.global-search-result strong,.global-search-result small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.global-search-result strong{font-size:12px}.global-search-result small{font-size:var(--ui-type-caption);color:var(--ux-ink-muted)}.global-search-result>.app-icon{width:15px;height:15px;color:var(--ux-ink-faint)}[dir=rtl] .global-search-result>.app-icon{transform:scaleX(-1)}
.global-search-empty{min-height:240px;display:grid;place-items:center;align-content:center;gap:7px;text-align:center;color:var(--ux-ink-muted)}.global-search-empty>.app-icon{width:34px;height:34px;color:var(--ux-accent)}.global-search-empty strong{font-size:13px;color:var(--ux-ink)}.global-search-empty span{max-width:360px;font-size:11px;line-height:1.45}

@media(max-width:1180px) and (min-width:761px){
  .category-toolbar-actions .button{width:var(--ui-touch-target);min-width:var(--ui-touch-target);padding:0}.category-toolbar-actions .button span{display:none}
}

@media(max-width:760px){
  .global-search-button{width:var(--ui-touch-target);min-width:var(--ui-touch-target);height:var(--ui-touch-target);min-height:44px}
  .topbar-start{gap:5px;min-width:0}
  .topbar-page-actions{flex:0 0 auto}
  .topbar-page-actions .responsive-page-actions,.topbar-page-actions>.workspace-actions{display:flex;align-items:center;gap:5px;margin:0;max-width:none;flex-wrap:nowrap}
  .topbar-page-actions .responsive-page-actions .button,.topbar-page-actions>.workspace-actions .button{width:var(--ui-touch-target);min-width:var(--ui-touch-target);height:var(--ui-touch-target);min-height:var(--ui-touch-target);padding:0;display:inline-flex;justify-content:center}
  .topbar-page-actions .responsive-page-actions .button span,.topbar-page-actions>.workspace-actions .button span{display:none}
  .mobile-page-filter{display:inline-flex}
  /* Reserve the two leading and two trailing shell controls while compact
     feedback is visible, with logical insets so RTL follows the same rule. */
  .shell-feedback{inset-inline-start:108px;inset-inline-end:108px}

  .inventory-v22-toolbar{height:50px;min-height:50px;flex-wrap:nowrap;padding:3px 6px}.inventory-v22-toolbar .inventory-search{order:0;flex:1 1 auto;max-width:none;margin:0}.inventory-v22-toolbar>.inventory-toolbar-actions{display:none}
  .orders-list-toolbar{flex-wrap:nowrap!important}.orders-list-toolbar .toolbar-search{flex:0 0 180px}

  body[data-route="category-master"] .workspace-description,body[data-route="store-management"] .workspace-description{display:none}
  body[data-route="category-master"] .workspace-header,body[data-route="store-management"] .workspace-header{min-height:50px;padding-block:5px;margin-bottom:5px}

  body[data-route="category-master"] .category-catalog-toolbar{min-height:54px;height:54px;padding:5px 6px;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:44px;gap:5px}
  body[data-route="category-master"] .category-catalog-toolbar .category-master-search{grid-column:1;grid-row:1}
  body[data-route="category-master"] .category-catalog-toolbar .category-master-result-count,body[data-route="category-master"] .category-catalog-toolbar>.category-toolbar-actions{display:none!important}
  body[data-route="category-master"] .category-catalog-toolbar.filters-open{height:174px;min-height:174px;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:44px 55px 55px}
  body[data-route="category-master"] .category-catalog-toolbar.filters-open .category-master-search{grid-column:1/-1;grid-row:1}

  body[data-route="store-management"] .store-management-toolbar{min-height:54px;margin-bottom:7px;padding:5px 6px;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:44px;gap:5px}
  body[data-route="store-management"] .store-management-toolbar .toolbar-search{grid-column:1;grid-row:1}
  body[data-route="store-management"] .store-management-toolbar .store-results{display:none!important}
  body[data-route="store-management"] .store-management-toolbar.filters-open{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:44px 56px;min-height:115px}
  body[data-route="store-management"] .store-management-toolbar.filters-open .toolbar-search{grid-column:1/-1;grid-row:1}

  .placement-map-toolbar.without-search{display:flex;align-items:center;justify-content:flex-start;gap:4px;overflow-x:auto}.placement-map-toolbar.without-search .placement-map-filters{flex:0 0 auto}.placement-map-toolbar.without-search .placement-map-zone{flex:0 0 112px}
  .global-search-dialog{min-height:0;gap:10px}.global-search-dialog>header p{font-size:10px}.global-search-field input{height:48px;min-height:48px;font-size:14px}.global-search-results{max-height:58vh}.global-search-result{min-height:52px}.global-search-empty{min-height:210px}
}

/* Production build 34.7 — administrator performance diagnostics. */

/* Production build 34.8 — Arabic RTL typography overrides. */
html[lang="ar"] .approval-category-drawer,
html[lang="ar"] .approval-category-drawer button,
html[lang="ar"] .approval-category-drawer input,
html[lang="ar"] .approval-category-drawer select,
html[lang="ar"] .approval-category-drawer textarea,
html[lang="ar"] .approval-category-drawer .approval-catalog-item small{font-family:var(--font-arabic)}
/* Hebrew category/store source names remain explicitly Hebrew where their data field is Hebrew. */
html[lang="ar"] .approval-category-drawer .approval-data-name{font-family:var(--font-hebrew)}

/* 34.12 localized order date input: explicit DMY for HE/RU/AR while retaining ISO/native picker authority. */
.localized-date-input{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 32px;gap:4px;align-items:center;direction:ltr}
.localized-date-display{direction:ltr;text-align:center;font-variant-numeric:tabular-nums;letter-spacing:.02em}
.localized-date-display.invalid,.localized-date-display[aria-invalid="true"]{border-color:var(--red-500,#d44);box-shadow:0 0 0 1px color-mix(in srgb,var(--red-500,#d44) 20%,transparent)}
.localized-date-picker{width:32px;min-width:32px;height:30px;min-height:30px;padding:0}
.localized-date-picker .app-icon{width:15px;height:15px}
.localized-date-native{position:absolute!important;inset-inline-end:0;bottom:0;width:1px!important;min-width:1px!important;height:1px!important;min-height:1px!important;opacity:0;pointer-events:none;padding:0!important;border:0!important}
@media(max-width:760px){.localized-date-input{grid-template-columns:minmax(0,1fr) 44px}.localized-date-picker{width:var(--ui-touch-target);min-width:var(--ui-touch-target);height:var(--ui-touch-target);min-height:44px}.localized-date-display{min-height:44px!important;font-size:16px!important}}

/* Production build 34.21 — unified control system and workflow reset.
   One component contract owns desktop field/button geometry and every − / value / + control.
   Workflow-specific pages may set width, never borders/heights/radii independently. */
:root{
  --ux-quantity-button-width:30px;
  --ux-quantity-value-width:56px;
  --ux-quantity-action-width:52px;
  --ux-connected-radius:7px;
}

/* Shell utility geometry. */
.topbar-refresh-group{gap:0;min-width:0}
.topbar-refresh{padding:0;border:1px solid transparent;background:transparent;color:var(--ux-ink-muted)}
.topbar-refresh:hover{background:var(--ux-surface-hover);color:var(--ux-ink);border-color:var(--ux-border)}
.topbar-refresh .app-icon{width:16px;height:16px}
.topbar-refresh .status-spinner{width:14px;height:14px}
.topbar-refresh-feedback{display:none}
.topbar-end{gap:4px}

@media(min-width:761px){
  :where(#page) :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"])),
  :where(#page) :where(select:not([multiple])){
    height:var(--ux-control-height);
    min-height:var(--ux-control-height);
    padding-block:3px;
    padding-inline-start:var(--ux-control-pad-x);
    border-radius:var(--ux-control-radius);
    font-size:var(--ui-type-control);
    line-height:1.15;
  }
  :where(#page) :where(select:not([multiple])){padding-inline-end:26px}
  :where(#page) :where(textarea){padding:5px var(--ux-control-pad-x);border-radius:var(--ux-control-radius)}
  :where(#page) :where(.button:not(.tiny)){height:var(--ux-control-height);min-height:var(--ux-control-height);padding:3px var(--ux-control-pad-x);border-radius:var(--ux-control-radius);font-size:var(--ui-type-control);line-height:1.15}
  :where(#page) :where(.icon-button){width:var(--ux-control-height);min-width:var(--ux-control-height);height:var(--ux-control-height);min-height:var(--ux-control-height);padding:0;border-radius:var(--ux-control-radius)}
  
  .topbar .icon-button,.topbar-avatar,.topbar-refresh{width:var(--ux-control-height);min-width:var(--ux-control-height);height:var(--ux-control-height);min-height:var(--ux-control-height)}
  .workspace-actions,.category-adder,.matrix-toolbar,.order-live-metrics,.orders-list-toolbar,.collection-dispatch-control,.approval-gate-editor-actions,.inventory-filter-actions,.user-management-toolbar{align-items:center}
  .selection-card,.review-line,.inventory-category-cell,.store-catalog-identity{align-items:center}
  .object-code,.store-code{line-height:1.15}
}

/* One − | value | + component everywhere. The shell owns the only outer border.
   Children have no borders except a single separator on each internal seam. */
.quantity-control.quantity-control{
  display:inline-grid;
  grid-template-columns:var(--ux-quantity-button-width) var(--ux-quantity-value-width) var(--ux-quantity-button-width);
  align-items:stretch;
  justify-content:start;
  gap:1px;
  direction:ltr;
  box-sizing:border-box;
  width:max-content;
  max-width:100%;
  height:var(--ux-control-height);
  min-height:var(--ux-control-height);
  border:1px solid var(--ux-border-strong);
  border-radius:var(--ux-connected-radius);
  overflow:hidden;
  background:var(--ux-border-strong);
}
.quantity-control.quantity-control.quantity-control-four{
  grid-template-columns:var(--ux-quantity-button-width) var(--ux-quantity-value-width) var(--ux-quantity-button-width) var(--ux-quantity-action-width);
}
.quantity-control.quantity-control>button,
.quantity-control.quantity-control>input,
.quantity-control.quantity-control>strong{
  width:100%;
  min-width:0;
  max-width:none;
  height:100%;
  min-height:0;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  outline:0;
  box-shadow:none;
  background:var(--ux-surface);
  color:var(--ux-ink);
  font:inherit;
  line-height:1;
  text-align:center;
  font-variant-numeric:tabular-nums;
}
.quantity-control.quantity-control>button,
.quantity-control.quantity-control>strong{display:grid;place-items:center;font-weight:750}
.quantity-control.quantity-control>button{cursor:pointer;font-size:16px}
.quantity-control.quantity-control>.quantity-control-action{font-size:10.5px;padding-inline:7px;white-space:nowrap}
.quantity-control.quantity-control>input{-moz-appearance:textfield;padding-inline:4px;font-weight:700}
.quantity-control.quantity-control>input::-webkit-inner-spin-button,
.quantity-control.quantity-control>input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.quantity-control.quantity-control>button:hover:not(:disabled){background:var(--ux-surface-hover);color:var(--ux-accent)}
.quantity-control.quantity-control>button:disabled{opacity:.35;cursor:not-allowed}
.quantity-control.quantity-control:focus-within{border-color:var(--ux-accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--ux-accent) 14%,transparent)}
.quantity-control.quantity-control>input:focus{border:0;outline:0;box-shadow:none}
.quantity-control.quantity-control .clear{color:var(--ux-danger)}

/* Workflow wrappers only choose placement/width. They do not redefine control geometry. */
.request-quantity,
.inventory-request-inline-quantity,
.inventory-stepper,
.warehouse-layout-stepper,
.approval-quantity-control{justify-self:end}
.inventory-balance-control,.inventory-request-inline-quantity,.warehouse-layout-stepper{width:auto}
#page .collection-controls{display:flex;align-items:center;justify-content:flex-end;min-width:0}
#page .collection-category-row.complete .collection-controls{display:flex}
#page .collection-category-row.complete .collection-collected-state{display:none}

/* Matrix fill remains a two-part connected action but follows the same shell contract. */
#page .joined-control{display:inline-flex;align-items:stretch;gap:0;height:var(--ux-control-height);box-sizing:border-box;border:1px solid var(--ux-border-strong);border-radius:var(--ux-connected-radius);overflow:hidden;background:var(--ux-surface)}
#page .joined-control>button,#page .joined-control>input{box-sizing:border-box;height:100%;min-height:0;margin:0;border:0;border-radius:0;background:var(--ux-surface);box-shadow:none}
#page .joined-control>:not(:first-child){border-inline-start:1px solid var(--ux-border-strong)}
#page .joined-control>input{padding-inline:7px}
#page .joined-control>.button{height:100%;min-height:0;border:0;background:var(--ux-surface);padding-block:0}
#page .matrix-fill.joined-control{gap:0}

/* New Order Store selection is selection only. Dispatch is an operational Approval/
   Collection decision and therefore is not shown as empty columns to a Requester. */
.store-selection-grid-simple{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:var(--ui-gap);align-content:start}
.store-selection-grid-simple .selection-card{min-height:58px}

/* Collection end-of-list operational card. Desktop keeps the existing footer; mobile
   uses this card so completion can never obscure the category list. */
.collection-store-endcard{display:none}
.collection-order-static{min-width:0;display:flex;align-items:center;overflow:hidden}
.collection-order-static>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:750;color:var(--ux-ink-strong);font-variant-numeric:tabular-nums}
.collection-mobile-back,.collection-mobile-sync,.collection-store-dispatch-tag,.collection-selected-dispatch-tag{display:none}
.collection-store-panel-tools{display:flex;align-items:center;gap:8px}
.collection-category-copy small{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.collection-category-location{display:inline-flex;align-items:center;min-height:18px;padding:1px 6px;border:1px solid var(--ux-border);border-radius:999px;background:var(--ux-surface-header);color:var(--ux-ink-muted);font:700 9px/1 var(--font-mono);white-space:nowrap}

/* Collection geometry: explicit rows/columns, no nested duplicate shell border. */
.collection-gate-workspace.collection-workspace{border:0;border-radius:0;overflow:visible;background:transparent}
.collection-gate-store-name{position:relative;display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;column-gap:7px}
.collection-gate-store-name>.object-code,.collection-gate-store-name>span{display:flex;align-items:center;min-height:18px;margin:0;line-height:1.15}
.collection-gate-store-name>.object-code{min-width:32px}
.collection-gate-store-name>.collection-other-operator-indicator{position:absolute;inset-block-start:-3px;inset-inline-start:27px;z-index:2;width:13px;height:13px;min-width:13px;min-height:13px;display:grid;place-items:center;margin:0;border:1px solid color-mix(in srgb,var(--ux-info) 35%,transparent);border-radius:50%;background:var(--ux-info-soft);color:var(--ux-info);pointer-events:none;overflow:visible}
.collection-other-operator-indicator .app-icon{width:9px;height:9px;stroke-width:2}
.collection-category-copy>div{align-items:center}
.collection-category-copy .object-code,.collection-category-copy span{line-height:1.2}
.collection-gate-editor-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,230px);align-items:center;gap:14px}
.collection-gate-editor-head>div:first-child{min-width:0}
.collection-selected-store{width:100%;min-width:0;min-height:var(--ux-control-height);display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:7px}
.collection-selected-store>.object-code,.collection-selected-store>span:not(.collection-dispatch-badge){min-width:0;min-height:18px;display:flex;align-items:center;margin:0;line-height:1.15;font-family:inherit}
.collection-selected-store>.object-code{min-width:34px}
.collection-dispatch-control{min-width:0;margin:0;display:inline-flex;align-items:center;justify-self:end;gap:6px;white-space:nowrap;line-height:1}
.collection-dispatch-control>span{display:inline-flex;align-items:center;margin:0;font-size:9px;font-weight:650;line-height:1;color:var(--ux-ink-muted)}
.collection-dispatch-control select{width:auto;min-width:112px;height:var(--ux-control-height);min-height:var(--ux-control-height);margin:0}
.collection-selected-progress{align-self:center}
.collection-operation-panel{position:fixed;inset-inline-start:auto;inset-inline-end:14px;bottom:76px;width:min(390px,calc(100vw - var(--sidebar-width) - 32px));margin:0;z-index:89}

/* Category actions must contain translated labels instead of clipping them inside a
   fixed 92px column. */
.category-catalog-head,.category-catalog-row{grid-template-columns:minmax(210px,2fr) minmax(92px,.8fr) minmax(112px,.95fr) minmax(132px,1.08fr) 108px minmax(160px,176px)}
.category-catalog-action .button{min-width:0;max-width:100%;padding-inline:var(--ui-control-pad-x);font-size:var(--ui-type-label);white-space:nowrap}

@media(max-width:1180px) and (min-width:761px){
  .category-catalog-head,.category-catalog-row{grid-template-columns:minmax(190px,2fr) 90px minmax(105px,1fr) minmax(120px,1.15fr) 102px minmax(144px,160px)}
}
@media(max-width:1100px) and (min-width:761px){
  .collection-dispatch-control>span{display:none}
  .collection-dispatch-control select{min-width:94px}
}
@media(max-width:1000px) and (min-width:761px){
  .category-catalog-head,.category-catalog-row{grid-template-columns:minmax(180px,2fr) 82px minmax(95px,1fr) minmax(112px,1.1fr) 96px minmax(138px,154px);gap:5px}
}
@media(max-width:760px){
  :root{
    --ux-quantity-button-width:44px;
    --ux-quantity-value-width:58px;
    --ux-quantity-action-width:58px;
  }
  .quantity-control.quantity-control{height:var(--ui-touch-target);min-height:var(--ui-touch-target);grid-template-columns:44px 58px 44px}
  .quantity-control.quantity-control.quantity-control-four{grid-template-columns:44px 58px 44px 58px}
  .collection-quantity-control{width:204px;max-width:100%;grid-template-columns:44px 58px 44px 58px}
  #page .joined-control{width:100%;height:44px}
  #page .joined-control>input{min-width:0;flex:1}
  .store-selection-grid-simple{grid-template-columns:1fr}
  .collection-gate-editor-head{display:flex;align-items:center;gap:7px}
  .collection-selected-store{grid-template-columns:34px minmax(0,1fr) auto;gap:5px}
  .collection-selected-store>span:not(.collection-dispatch-badge){white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .collection-dispatch-control{min-width:0}
  .collection-dispatch-control select{width:92px;min-width:92px;max-width:92px}
  #page .collection-controls{justify-content:stretch}
  .collection-operation-panel{inset-inline:8px;bottom:66px;width:auto}
}


html,body,#app,button,input,select,textarea{font-family:var(--font-ui);font-synthesis:none}
html[lang="he"] body,html[lang="he"] button,html[lang="he"] input,html[lang="he"] select,html[lang="he"] textarea{font-family:var(--font-hebrew)}
html[lang="ar"] body,html[lang="ar"] button,html[lang="ar"] input,html[lang="ar"] select,html[lang="ar"] textarea,[data-arabic-field]{font-family:var(--font-arabic)!important}
body{font-size:var(--ui-type-body);line-height:1.42;letter-spacing:0}
.object-code,.approval-gate-store-code,.approval-target-store-code,.approval-catalog-code{font-family:inherit;font-variant-numeric:tabular-nums lining-nums;font-feature-settings:"tnum" 1,"lnum" 1}

/* One typographic ladder across every route. */
.workspace-title-row h1,.inventory-title-line h1,.wr6-title-row h1{font-size:var(--ui-type-page-title);line-height:1.2;font-weight:700;letter-spacing:-.012em}
.workspace-description,.inventory-v22-header p,.wr6-title p{font-size:var(--ui-type-label);line-height:1.42;font-weight:400}
.workspace-meta,.ui-status-chip,.status-badge{font-size:var(--ui-type-caption);font-weight:650}
.panel h2,.work-surface h2,.orders-list-panel>header strong,.placement-map-header strong,.store-region-section h2{font-size:var(--ui-type-section-title);line-height:1.3;font-weight:700}
.panel h3,.work-surface h3{font-size:var(--ui-type-control);line-height:1.35;font-weight:700}
#page small{font-size:var(--ui-type-caption);line-height:1.35}
.workspace-eyebrow,.eyebrow,.nav-section-label,.category-catalog-head{font-size:var(--ui-type-caption);line-height:1.2;font-weight:700;letter-spacing:.035em}
html[lang="he"] :is(.workspace-title-row h1,.inventory-title-line h1,.wr6-title-row h1,.workspace-eyebrow,.eyebrow,.nav-section-label,.category-catalog-head),html[lang="ar"] :is(.workspace-title-row h1,.inventory-title-line h1,.wr6-title-row h1,.workspace-eyebrow,.eyebrow,.nav-section-label,.category-catalog-head){letter-spacing:0}
.category-catalog-cell::before,.inventory-v22-table td::before,.approval-gate-table td::before{font-size:var(--ui-type-caption)}
.warehouse-pallet-token>em,.warehouse-pallet-token>small,.category-master-drawer-header p{font-size:var(--ui-type-caption);line-height:1.25}

/* Native control typography supplement. Geometry is owned by the canonical root input/select rule above;
   native checks/radios/ranges/files/colors remain intentionally outside this typography supplement. */
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"])),:where(select){font-weight:500;line-height:1.25}
/* Shared UX tokens own control height; no page-scoped height override. */
textarea{padding:9px 10px;border:1px solid var(--ux-border-strong);border-radius:var(--ui-radius-search);font-size:var(--ui-type-body);line-height:1.4}
/* v34.120.55 — one canonical global button contract; values preserve the approved 34.120.54 effective cascade. */
.button{border:1px solid transparent;border-radius:var(--ux-control-radius,var(--ui-radius-search));padding:3px 8px;font-weight:650;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:var(--ui-control-height);font-size:var(--ui-type-control);line-height:1.15;color:var(--ink-strong);background:transparent;white-space:nowrap;transition:background .15s,border-color .15s,color .15s,transform .08s}
.button.compact{min-height:var(--ui-control-height);padding:3px 8px;font-size:11.5px;font-weight:600}
.button.small{min-height:var(--ui-control-height-compact);padding:2px 7px;font-size:10.5px;font-weight:600;gap:4px;border-radius:var(--ui-radius-control)}
.icon-button{width:var(--ui-control-height);min-width:var(--ui-control-height);height:var(--ui-control-height);min-height:var(--ui-control-height);border-radius:var(--ui-radius-control)}
.icon-button .app-icon{width:var(--ui-control-icon-size);height:var(--ui-control-icon-size)}
.ui-tab .app-icon{width:var(--ui-tab-icon-size);height:var(--ui-tab-icon-size)}



/* Shared panel and spacing rhythm. */
.panel,.work-surface,.ui-toolbar{border-radius:var(--ui-radius-panel)}
.workspace-header{margin-bottom:8px;gap:12px}
.workspace-actions,.responsive-page-actions,.inventory-toolbar-actions,.category-toolbar-actions,.store-page-actions,.inventory-request-page-actions{gap:var(--ui-gap)}
.task-toolbar label,.inventory-request-toolbar label,.warehouse-placement-toolbar label,.category-catalog-toolbar label,.store-management-toolbar label{margin:0}

/* All searchable desktop routes use one bordered toolbar panel. */
.ui-toolbar{
  min-height:58px;
  margin-bottom:var(--ui-gap);
  padding:7px var(--ui-toolbar-pad-x);
  gap:var(--ui-gap);
  border:1px solid var(--ux-border);
  background:var(--ux-surface);
  box-shadow:0 1px 2px rgba(19,32,51,.025);
}
.orders-list-toolbar{display:flex!important;flex-wrap:nowrap!important;align-items:center;height:58px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
.orders-list-toolbar .toolbar-search{flex:1 1 220px;min-width:170px;align-self:center}
.inventory-request-toolbar label>span,.warehouse-placement-toolbar label>span,.category-catalog-toolbar label>span,.store-management-toolbar label>span{font-size:var(--ui-type-caption);line-height:12px;font-weight:650;letter-spacing:0;text-transform:none;color:var(--ux-ink-muted)}
/* Canonical toolbar descendants inherit one geometry contract. Route CSS owns only layout/visibility. */
.ui-toolbar :is(input:not([type="file"]):not([type="checkbox"]):not([type="radio"]),select,.button,.ui-search){height:var(--ui-control-height);min-height:var(--ui-control-height)}

.inventory-v22-toolbar{height:58px;align-items:center}
.inventory-v22-toolbar .button{height:var(--ui-control-height)}
.inventory-filter-search{display:none}

.inventory-request-toolbar{height:58px;grid-template-columns:minmax(220px,1fr) minmax(130px,170px) minmax(130px,170px) auto auto;align-items:center}
.inventory-request-search{height:var(--ui-control-height);border-radius:var(--ui-radius-search)}

.warehouse-purpose-page{grid-template-rows:auto 58px minmax(0,1fr) 58px}
.warehouse-placement-toolbar{display:grid;grid-template-columns:minmax(210px,1fr) minmax(112px,145px) auto;align-items:center;min-width:0}
.warehouse-placement-toolbar .ui-search{height:var(--ui-control-height);align-self:center}
.warehouse-toolbar-status,.warehouse-toolbar-zone{display:grid;gap:0;min-width:0}
.warehouse-toolbar-actions{align-self:center;white-space:nowrap}

.category-catalog-toolbar{min-height:58px;height:58px;grid-template-columns:minmax(210px,1.4fr) minmax(100px,120px) minmax(100px,120px) minmax(118px,150px) minmax(105px,125px) auto auto;align-items:center}
.category-toolbar-actions{align-self:center}

.store-management-toolbar{height:58px;grid-template-columns:minmax(220px,1fr) repeat(3,minmax(108px,145px)) auto;align-items:center;margin-bottom:8px}
.store-management-toolbar>label:not(.toolbar-search){min-width:0;gap:0}
.store-results{padding:0;align-self:center;font-size:11px}

/* Captions remain available to assistive technology but do not create a
   second visual row inside the shared desktop toolbar. */
@media(min-width:761px){
  .inventory-request-toolbar label>span,
  .warehouse-placement-toolbar label>span,
  .category-catalog-toolbar label>span,
  .store-management-toolbar label>span{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    padding:0!important;
    margin:-1px!important;
    overflow:hidden;
    clip:rect(0,0,0,0)!important;
    white-space:nowrap;
    border:0!important;
  }
}

/* Shared page filter/sort dialog used by all compact routes. */
.page-filter-dialog{width:min(620px,78vw);display:grid;gap:14px}
.page-filter-dialog-header{padding-inline-end:38px}
.page-filter-dialog-header h2{margin:0;font-size:19px;line-height:1.25;font-weight:700}
.page-filter-dialog-header p{margin:5px 0 0;color:var(--ux-ink-muted);font-size:var(--ui-type-label);line-height:1.45}
.page-filter-dialog-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.page-filter-field{position:relative;display:grid;gap:5px;margin:0;min-width:0;color:var(--ux-ink-muted);font-size:11px;font-weight:650}
.page-filter-field>span{line-height:1.25}
.page-filter-field input,.page-filter-field select{width:100%}
.page-filter-search{grid-column:1/-1}
.page-filter-search>.app-icon{position:absolute;z-index:1;inset-inline-start:12px;bottom:11px;width:18px;height:18px;pointer-events:none;color:var(--ux-ink-muted)}
.page-filter-search input{padding-inline-start:39px}
.page-filter-dialog-actions{display:grid;grid-template-columns:auto 1fr auto auto;gap:var(--ui-gap);align-items:center;padding-top:12px;border-top:1px solid var(--ux-border)}

/* Readability corrections found in pass one. */
.request-usage>span,.request-usage>small,.inventory-request-card>header small,.inventory-request-card-metrics>span>small{font-size:10px;line-height:1.3}
.category-catalog-head{min-height:38px}
.category-catalog-empty,.catalog-chip{font-size:10px}
.approval-category-drawer [data-approval-target-toggle]{min-height:var(--ui-control-height);font-size:11px}
.approval-category-drawer .side-drawer-header .icon-button{width:var(--ui-control-height);min-width:var(--ui-control-height)}

@media(max-width:1180px) and (min-width:761px){
  .category-catalog-toolbar{grid-template-columns:minmax(180px,1.35fr) repeat(4,minmax(92px,1fr)) auto}
  .category-catalog-toolbar .category-master-result-count{display:none}
  .store-management-toolbar{grid-template-columns:minmax(180px,1fr) repeat(3,minmax(96px,1fr))}
  .store-management-toolbar .store-results{display:none}
}

@media(max-width:920px) and (min-width:761px){
  .category-catalog-toolbar{grid-template-columns:minmax(165px,1.35fr) repeat(4,minmax(82px,1fr)) auto}
  .warehouse-placement-toolbar{grid-template-columns:minmax(175px,1fr) 105px auto}
  .warehouse-toolbar-actions .button{width:40px;min-width:40px;padding:0}
  .warehouse-toolbar-actions .button span{display:none}
  .orders-list-toolbar .toolbar-search{flex-basis:180px}
  
}

@media(min-width:1001px){
}

@media(max-width:760px){
  /* Local page search, filter and sort live behind one top-bar Filter action. */
  .orders-list-toolbar,.inventory-v22-toolbar,.inventory-request-toolbar,.warehouse-placement-toolbar,body[data-route="category-master"] .category-catalog-toolbar,body[data-route="store-management"] .store-management-toolbar{display:none!important}

  /* Orders: header, scrollable list and action bar use the entire viewport. */
  #page.orders-list-page{height:calc(100dvh - var(--topbar-height) - var(--shell-feedback-height));padding-top:4px;grid-template-rows:auto minmax(0,1fr) 58px}
  .orders-list-page .workspace-header{margin:0 6px 5px;padding:5px 8px}
  .orders-list-panel{grid-template-rows:42px minmax(0,1fr)}
  .orders-list-panel>header{height:42px}

  /* Inventory uses its existing full-height filter surface, now with search inside it. */
  .inventory-v22-page{grid-template-rows:auto minmax(0,1fr) 58px}
  .inventory-filter-search{display:grid;grid-column:1/-1}
  .inventory-v22-filters{inset:var(--topbar-height) 0 0;padding:14px 14px calc(16px + var(--mobile-safe-bottom));gap:10px;background:var(--ux-surface)}
  .inventory-filter-panel-head{position:sticky;top:-14px;z-index:2;min-height:52px;margin:-14px -14px 0;padding:8px 14px;border-bottom:1px solid var(--ux-border);background:var(--ux-surface)}
  .inventory-filter-actions{bottom:-16px;margin:0 -14px -16px;padding:10px 14px calc(12px + var(--mobile-safe-bottom));border-top:1px solid var(--ux-border);display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .inventory-filter-actions .button{width:100%}

  /* Inventory Request keeps export in view while filters move to the sheet. */
  #page[data-page="inventory-request"]{grid-template-rows:54px minmax(0,1fr)}
  #page[data-page="inventory-request"]>.workspace-header{height:54px;min-height:54px;max-height:54px;padding:5px 7px}
  #page[data-page="inventory-request"]>.workspace-header .workspace-title-row h1{font-size:18px}
  #page[data-page="inventory-request"]>.workspace-header .workspace-meta{font-size:10px}
  .inventory-request-workspace{grid-template-rows:minmax(0,1fr) auto}

  /* Warehouse top bar has exactly Filter, Edit Layout and Open Inventory. */
  .warehouse-purpose-page{grid-template-rows:auto minmax(0,1fr) 64px}
  .warehouse-placement-workspace{min-height:0}

  /* Category catalogue: no stacked inline filters; list owns the remaining track. */
  body[data-route="category-master"] .main-content{height:100%;min-height:0;overflow:hidden}
  body[data-route="category-master"] #page{height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden}
  body[data-route="category-master"] .category-catalog-shell{grid-template-rows:minmax(0,1fr)}
  .category-catalog-list{overscroll-behavior:contain}

  /* Stores: repair the clipped document by making the catalogue the scroll root. */
  body[data-route="store-management"] .shell-main{height:100dvh;min-height:0;display:grid;grid-template-rows:var(--topbar-height) minmax(0,1fr);overflow:hidden}
  body[data-route="store-management"] .main-content{height:100%;min-height:0;padding:0;overflow:hidden}
  body[data-route="store-management"] #page{height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);padding:4px 6px 0;overflow:hidden}
  body[data-route="store-management"] .workspace-header{height:54px;min-height:54px;margin:0;padding:5px 7px}
  body[data-route="store-management"] .store-catalog-workspace{height:100%;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:0 0 20px;scrollbar-gutter:auto}
  body[data-route="store-management"] .store-region-section>header{top:0}

  /* Bottom-sheet geometry and stable action row for every route-specific filter. */
  .page-filter-dialog{width:100%;min-width:0;max-height:calc(90dvh - var(--mobile-safe-bottom));gap:var(--ui-gap-loose);overflow:hidden}
  .page-filter-dialog-header{padding-inline-end:34px}
  .page-filter-dialog-header h2{font-size:18px}
  .page-filter-dialog-fields{grid-template-columns:1fr;gap:10px;overflow:auto;padding:2px 2px 8px}
  .page-filter-search{grid-column:1}
  .page-filter-dialog-actions{position:sticky;bottom:0;grid-template-columns:1fr 1fr;gap:var(--ui-gap);padding-top:10px;background:var(--ux-surface)}
  .page-filter-dialog-actions>span{display:none}
  .page-filter-dialog-actions .button{width:100%}
  .page-filter-dialog-actions [data-filter-dialog-clear]{grid-column:1}
  .page-filter-dialog-actions [data-filter-dialog-cancel]{grid-column:2}
  .page-filter-dialog-actions button[type="submit"]{grid-column:1/-1}

  /* Pass-one touch-target failures. */
  .collection-control,.collection-all{height:var(--ui-touch-target)!important;min-height:var(--ui-touch-target)!important}
  .approval-category-drawer [data-approval-target-toggle],.approval-target-actions .button,.approval-add-quantity input{height:var(--ui-touch-target);min-height:var(--ui-touch-target)}
  .side-drawer .side-drawer-header .icon-button{width:var(--ui-touch-target)!important;min-width:var(--ui-touch-target)!important;height:var(--ui-touch-target)!important;min-height:var(--ui-touch-target)!important;flex:0 0 var(--ui-touch-target)}
}


/*
 * v125.0.0-clean-staging.34.4
 * Cross-route visual consistency corrections found from user screenshots.
 * Runtime, schema, RPC and operational behavior remain unchanged.
 */

/*
 * Reusable route-level search field. Page-specific CSS may place/size the component,
 * but icon, focus, border and input geometry are owned here.
 */
.ui-search{
  position:relative;
  display:flex;
  align-items:center;
  min-width:0;
  height:var(--ui-control-height);
  min-height:var(--ui-control-height);
  padding:0;
  overflow:hidden;
  border:1px solid var(--ux-border-strong);
  border-radius:var(--ui-radius-search);
  background:var(--ux-surface);
  box-shadow:none;
}
.ui-search:focus-within{border-color:var(--ux-accent);box-shadow:var(--ux-focus-ring)}
.ui-search .app-icon{
  position:absolute;z-index:1;inset-inline-start:var(--ui-search-icon-inset);top:50%;bottom:auto;
  width:var(--ui-search-icon-size);height:var(--ui-search-icon-size);transform:translateY(-50%);
  color:var(--ux-ink-muted);pointer-events:none;
}
.ui-search>input{
  width:100%;min-width:0;height:100%!important;min-height:0!important;
  padding:0 var(--ui-toolbar-pad-x)!important;padding-inline-start:var(--ui-search-text-inset)!important;
  border:0!important;border-radius:0!important;outline:0;background:transparent!important;box-shadow:none!important;
  color:var(--ux-ink);font-size:var(--ui-type-body);font-weight:500;
}

/* The common mobile filter dialog follows the same icon/text spacing. */
.page-filter-search>.app-icon{
  inset-inline-start:var(--ui-search-icon-inset);
  width:var(--ui-search-icon-size);
  height:var(--ui-search-icon-size);
}
.page-filter-search>input{padding-inline-start:var(--ui-search-text-inset)!important}

/* Full-viewport workspaces must preserve the same desktop page gutter. */
@media(min-width:761px){
  body[data-route="inventory"] .main-content,
  body[data-route="warehouse-reference"] .main-content{
    height:calc(100dvh - var(--topbar-height) - var(--shell-feedback-height));
    padding:10px 12px 18px;
    box-sizing:border-box;
    overflow:hidden;
    align-content:stretch;
  }

  body[data-route="inventory"] .inventory-v22-page,
  body[data-route="warehouse-reference"] .warehouse-r6{
    height:100%;
    min-height:0;
  }

  body[data-route="inventory"] .inventory-v22-page{border-radius:var(--ui-radius-panel)}

  /* Warehouse title uses the shared transparent page-heading surface. */
  body[data-route="warehouse-reference"] .wr6-header{
    min-height:58px;
    margin:0 0 8px;
    padding:4px 2px;
    background:transparent;
    border:0;
  }
}

@media(max-width:760px){
  .page-filter-search>.app-icon{bottom:13px}
}


/* v125.0.0 build 34.5 — shared recovery layout and interaction contracts. */
:root{
  --recovery-page-gap:10px;
  --recovery-panel-radius:9px;
  --recovery-control-height:40px;
}
.workspace-description,.inventory-v22-header p,.wr6-title>p{display:none!important}
.shell-version{display:flex;align-items:center;min-height:42px;padding:7px 9px;border-radius:7px;background:rgba(255,255,255,.045)}
.shell-version>span{display:grid;gap:2px}.shell-version strong{font-size:11px;color:#f5f8fb}.shell-version small{font:9px/1.2 var(--font-mono);color:#93a5b6}
.sidebar-collapsed .shell-version{display:none}

.startup{min-height:100dvh;display:grid;place-items:center;padding:24px;background:linear-gradient(150deg,#eef3f8,#f8fafc)}
.startup-card{width:min(360px,100%);display:grid;justify-items:center;gap:12px;padding:28px;border:1px solid #d9e1ea;border-radius:14px;background:var(--ux-surface);box-shadow:0 14px 42px rgba(18,40,65,.1)}
.startup-card img{width:min(220px,72%);height:auto;max-height:130px;object-fit:contain;object-position:center}.startup-card h1{margin:0;font-size:20px;color:#14263a}.startup-card p{min-height:20px;margin:0;color:#4f6174;font-size:13px;font-weight:600}.startup-card small{font:10px/1.2 var(--font-mono);color:#758599}
.startup-progress{width:100%;height:6px;overflow:hidden;border-radius:99px;background:var(--ux-progress-track)}.startup-progress i{display:block;height:100%;border-radius:inherit;background:#276dcc;transition:width .18s ease}

@media(min-width:761px){
  .main-content{padding:10px 12px 14px!important}
  .workspace-header,.inventory-v22-header,.wr6-header{min-height:58px!important;margin:0 0 8px!important;padding:5px 2px!important;border:0!important;background:transparent!important;box-shadow:none!important}
  .orders-list-workspace,.inventory-v22-workspace,.collection-gate-store-panel,.collection-gate-editor,.user-management-surface{border:1px solid var(--ux-border)!important;border-radius:var(--recovery-panel-radius)!important;background:var(--ux-surface)!important;overflow:hidden}
  .orders-list-workspace{gap:0!important}.orders-list-panel,.orders-detail-panel{border:0!important;border-radius:0!important;background:var(--ux-surface)!important}.orders-list-splitter{background:var(--ux-border)!important}
  #page[data-page="inventory"]{padding:10px 12px 14px!important}.inventory-v22-page{height:100%!important;border-radius:0!important;background:transparent!important}.inventory-v22-workspace{margin-top:0}
  body[data-route="warehouse-reference"] .warehouse-r6{border-radius:0!important;background:transparent!important}
}

/* Administrator user management */
#page[data-page="user-management"]{display:grid;grid-template-rows:auto auto minmax(0,1fr);height:calc(100dvh - var(--topbar-height));min-height:0;overflow:hidden;gap:8px}
.user-management-toolbar{min-height:58px;display:grid;grid-template-columns:minmax(220px,1fr) 160px 150px auto;align-items:end;gap:var(--ui-gap);padding:8px;border:1px solid var(--ux-border);background:var(--ux-surface)}
.user-management-toolbar label{display:grid;gap:4px;margin:0}.user-management-toolbar label>span{font-size:9px;font-weight:700;color:var(--ux-ink-muted)}
.user-management-toolbar input,.user-management-toolbar select{height:var(--ui-control-height);min-height:var(--ui-control-height)}
.user-result-count{align-self:center;color:var(--ux-ink-muted);font-size:var(--ui-type-label);white-space:nowrap}
.user-filter-button{display:none}
.user-management-surface{min-height:0;overflow:auto}.user-table{min-width:720px}.user-table-head,.user-row{display:grid;grid-template-columns:minmax(250px,1.4fr) 160px 130px 140px 90px;align-items:center;gap:10px;padding:8px 12px}.user-table-head{position:sticky;top:0;z-index:2;min-height:38px;border-bottom:1px solid var(--ux-border);background:var(--ux-surface-header);color:var(--ux-ink-muted);font-size:9px;font-weight:800;text-transform:uppercase}.user-row{min-height:64px;border-bottom:1px solid var(--ux-border);background:var(--ux-surface)}.user-row:last-child{border-bottom:0}.user-identity{display:flex;align-items:center;gap:10px;min-width:0}.user-avatar{flex:0 0 36px;width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:var(--ux-accent-soft);color:var(--ux-accent);font-size:11px;font-weight:800}.user-identity>span:last-child{min-width:0;display:grid;gap:3px}.user-identity strong,.user-identity bdi{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-identity strong{font-size:12px}.user-identity strong small{padding:2px 5px;border-radius:9px;background:var(--ux-accent-soft);color:var(--ux-accent)}.user-identity bdi,.user-last-sign-in{font-size:10px;color:var(--ux-ink-muted)}
.user-admin-form{width:min(520px,82vw)}.user-admin-form h2{margin:0}.user-admin-fields{grid-template-columns:1fr 1fr}.user-active-toggle{grid-column:1/-1}.user-admin-form>.ui-form-actions{margin-top:2px}

@media(max-width:760px){
  /* Pass E — one phone contract. Document routes scroll as documents; operational workspaces own a bounded viewport. */
  html,body,#app,.app-shell{height:100%;min-height:0;overflow:hidden}
  body{font-size:13px;line-height:1.42}
  .app-shell{padding-inline-start:0;padding-bottom:var(--mobile-bottom-nav)}
  .shell-main{min-height:0}
  body[data-mobile-flow="workspace"] .shell-main{height:100dvh;display:grid;grid-template-rows:var(--topbar-height) minmax(0,1fr);overflow:hidden}
  body[data-mobile-flow="workspace"] .main-content#page{height:100%;min-height:0;padding:0;overflow:hidden;align-content:stretch}
  body[data-mobile-flow="document"] .shell-main{height:100dvh;display:block;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:auto;-webkit-overflow-scrolling:touch;touch-action:pan-y;scroll-padding-bottom:var(--mobile-page-bottom-space)}
  body[data-mobile-flow="document"] .topbar{position:sticky;top:0}
  body[data-mobile-flow="document"] .main-content#page{width:100%;height:auto;min-height:calc(100dvh - var(--topbar-height));max-height:none;margin:0;padding:var(--mobile-page-padding) var(--mobile-page-padding) var(--mobile-page-bottom-space);overflow:visible;box-sizing:border-box;touch-action:auto}
  #page{min-height:0}
  .workspace-header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:flex-start;gap:6px 8px;border:0;background:transparent;box-shadow:none}
  .workspace-heading{grid-column:1;min-width:0}
  .workspace-actions{grid-column:2;grid-row:1;max-width:none;width:auto;justify-content:flex-end;align-self:start;gap:var(--ui-gap)}
  body[data-mobile-flow="workspace"] .workspace-header{min-height:44px;height:44px;max-height:44px;margin:0;padding:5px 8px;overflow:hidden}
  body[data-mobile-flow="document"] .workspace-header{height:auto;min-height:54px;max-height:none;margin:0 0 var(--mobile-surface-gap);padding:6px 2px 7px;overflow:visible}
  body[data-mobile-flow="workspace"] .workspace-title-row h1,.inventory-title-line h1,.wr6-title-row h1{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:17px;line-height:1.15;font-weight:700}
  body[data-mobile-flow="workspace"] .workspace-description{display:none}
  body[data-mobile-flow="document"] .workspace-title-row h1{font-size:var(--ui-type-page-title);line-height:1.15;font-weight:700}
  .workspace-title-row{gap:6px;min-width:0}.workspace-description{font-size:var(--mobile-type-secondary);line-height:1.35}.workspace-meta,.ui-status-chip,.status-badge{font-size:var(--mobile-type-caption)}
  .workspace-meta{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .workspace-actions .button,.topbar-page-actions .responsive-page-actions .button,.topbar-page-actions>.workspace-actions .button{width:var(--ui-touch-target);min-width:var(--ui-touch-target);height:var(--ui-touch-target);min-height:var(--ui-touch-target);padding:0}
  .workspace-actions .button span,.topbar-page-actions .responsive-page-actions .button span,.topbar-page-actions>.workspace-actions .button span{display:none}
  .button,.button.compact{min-height:var(--ui-touch-target);padding:8px 11px;font-size:12px}
  .icon-button{width:var(--ui-touch-target);min-width:var(--ui-touch-target);height:var(--ui-touch-target);min-height:var(--ui-touch-target)}
  input,select,textarea{font-size:var(--mobile-search-font-size)}
  :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"])),:where(select){height:var(--ui-touch-target);min-height:var(--ui-touch-target)}
  .ui-search>input{font-size:var(--mobile-search-font-size)}
  .task-toolbar{min-height:46px;margin-bottom:7px;padding:5px;gap:var(--mobile-panel-gap)}
  .panel{padding:11px;margin-bottom:7px}.panel,.work-surface{border-radius:var(--ui-radius-panel)}
  .mobile-bottom-nav{gap:3px;padding-inline:5px}.mobile-nav-item{font-size:var(--ui-type-caption);line-height:1.15}.mobile-nav-item span{max-width:82px}

  /* Collection mobile: Collection owns one Order selected from Orders. Hide duplicate
     page/context bars and put Back + save-state into the Store rail header. */
  #page[data-page="collection"]{height:100%!important;min-height:0!important;display:grid!important;grid-template-rows:minmax(0,1fr)!important;padding:0 6px 6px!important;overflow:hidden!important}
  #page[data-page="collection"]>.workspace-header,.collection-context-toolbar{display:none!important}
  .collection-header-summary{display:none!important}
  .collection-gate-surface{grid-row:1;min-height:0!important;margin:4px 0 0!important;overflow:hidden!important}
  .collection-gate-workspace{height:100%!important;min-height:0!important;display:grid!important;grid-template-columns:1fr!important;grid-template-rows:calc(var(--ui-touch-target) + 80px) minmax(0,1fr)!important;gap:6px!important}
  .collection-gate-store-panel{min-height:0!important;display:grid!important;grid-template-rows:var(--ui-touch-target) 80px!important;border:1px solid var(--ux-border)!important;border-radius:8px!important;overflow:hidden!important}
  .collection-gate-store-panel>header{height:var(--ui-touch-target)!important;min-height:var(--ui-touch-target)!important;padding:0 7px!important;display:grid!important;grid-template-columns:var(--ui-touch-target) minmax(0,1fr) auto!important;align-items:center!important;gap:7px!important}
  .collection-gate-store-panel>header>div{min-width:0!important}.collection-gate-store-panel>header small{display:none!important}.collection-gate-store-panel>header strong{font-size:12px!important}
  .collection-mobile-back{display:grid!important;place-items:center!important;width:var(--ui-touch-target)!important;height:var(--ui-touch-target)!important;min-width:var(--ui-touch-target)!important;min-height:var(--ui-touch-target)!important;padding:0!important;border:0!important;border-radius:var(--ui-radius-control)!important;background:transparent!important;color:var(--ux-ink)!important}.collection-mobile-back .app-icon{width:17px!important;height:17px!important}
  .collection-store-panel-tools{display:flex!important;align-items:center!important;gap:7px!important}.collection-store-panel-tools>bdi{font-size:10px!important;color:var(--ux-ink-muted)!important;font-weight:750!important}
  .collection-mobile-sync{display:grid!important;place-items:center!important;width:24px!important;height:24px!important;min-width:24px!important;border-radius:50%!important;background:var(--ux-surface-disabled)!important;color:var(--ux-ink-muted)!important;font-size:9px;font-weight:850!important}.collection-mobile-sync .app-icon{width:13px!important;height:13px!important}.collection-mobile-sync.saved{background:var(--ux-success-soft)!important;color:var(--ux-success)!important}.collection-mobile-sync.saving{background:var(--ux-info-soft)!important;color:var(--ux-info)!important}.collection-mobile-sync.warning,.collection-mobile-sync.error{background:var(--ux-warning-soft)!important;color:var(--ux-warning)!important}
  .collection-gate-store-list{min-height:0!important;display:flex!important;overflow-x:auto!important;overflow-y:hidden!important;overscroll-behavior-x:contain;scrollbar-width:none!important}.collection-gate-store-list::-webkit-scrollbar{display:none!important}
  .collection-dispatch-group{display:contents!important}.collection-dispatch-group>header{display:none!important}
  .collection-gate-store{flex:0 0 132px!important;width:132px!important;min-width:132px!important;height:80px!important;min-height:80px!important;padding:7px 8px!important;gap:5px!important;align-content:center!important}
  .collection-gate-store-name{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;gap:3px 5px!important;align-items:center!important}.collection-gate-store-name>.object-code{grid-column:1!important;grid-row:1!important;display:block!important;min-width:0!important;font-size:18px!important;line-height:1!important;font-weight:850!important}.collection-gate-store-name>span:not(.collection-dispatch-badge){grid-column:1/-1!important;grid-row:2!important;display:block!important;min-height:0!important;font-size:11px!important;line-height:1.1;font-weight:700!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis!important}.collection-gate-store-name>small{display:none!important}
  .collection-gate-store-name>.collection-other-operator-indicator{position:absolute!important;grid-column:auto!important;grid-row:auto!important;inset-block-start:-13px!important;inset-inline-start:35px!important;width:15px!important;height:15px!important;min-width:15px!important;min-height:15px!important;display:grid!important;place-items:center!important;margin:0!important;padding:0!important;font-size:0!important;line-height:1!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;pointer-events:none!important}.collection-gate-store-name>.collection-other-operator-indicator .app-icon{width:10px!important;height:10px!important}
  .collection-store-dispatch-tag{grid-column:2!important;grid-row:1!important;display:inline-flex;height:18px!important;min-height:18px!important;padding:0 6px!important;font-size:8px!important;font-weight:800!important;justify-self:end!important}
  .collection-gate-store-progress{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:5px!important;align-items:center!important}.collection-gate-store-progress .progress-line{height:5px!important}.collection-gate-store-progress small{display:block!important;margin:0!important;font-size:9px!important}
  .collection-gate-editor{min-height:0!important;height:100%!important;display:grid!important;grid-template-rows:68px minmax(0,1fr)!important;border:1px solid var(--ux-border)!important;border-radius:8px!important;overflow:hidden!important}
  .collection-gate-editor-head{height:68px!important;min-height:68px!important;padding:7px 9px!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important}.collection-gate-editor-head p{display:none!important}
  .collection-selected-store{display:grid!important;grid-template-columns:52px minmax(0,1fr) auto!important;gap:7px!important;align-items:center!important}.collection-selected-store>.object-code{font-size:23px!important;font-weight:850!important;line-height:1!important}.collection-selected-store>span:not(.collection-dispatch-badge){font-size:12px!important;font-weight:700!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis!important}
  .collection-selected-dispatch-tag{display:inline-flex;height:20px!important;min-height:20px!important;padding:0 7px!important;font-size:8.5px!important;font-weight:800!important;justify-self:end!important}
  .collection-dispatch-control{display:none!important}
  .collection-gate-editor-head>div:first-child>small{display:block!important;margin-top:5px!important;font-size:9px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis!important}
  .collection-selected-progress{display:grid!important;justify-items:end!important;gap:0!important}.collection-selected-progress .progress-line{display:none!important}.collection-selected-progress strong{font-size:18px!important;line-height:1!important;white-space:nowrap!important}
  .collection-category-head{display:none!important}.collection-category-list{min-height:0!important;height:100%!important;padding:6px!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;scrollbar-gutter:stable}
  .collection-category-row{min-height:154px!important;margin:0 0 7px!important;padding:10px!important;border:1px solid var(--ux-border)!important;border-radius:9px!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;grid-template-rows:auto auto auto!important;gap:8px 12px!important;align-items:end!important}
  .collection-category-copy{grid-column:1/-1!important;min-width:0!important}.collection-category-copy>div{display:grid!important;grid-template-columns:76px minmax(0,1fr)!important;align-items:start!important;gap:8px!important}.collection-category-copy .object-code{font-size:30px!important;line-height:.95!important;font-weight:850!important;letter-spacing:-.02em!important}.collection-category-copy span:not(.collection-category-location):not(.collection-category-state-text){font-size:12.5px!important;line-height:1.18!important;font-weight:700!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important}.collection-category-copy small{display:flex!important;align-items:center!important;gap:6px!important;flex-wrap:wrap!important;margin-top:4px!important;font-size:9.5px!important;line-height:1.15!important}.collection-category-state-text{font-size:9.5px!important;color:var(--ux-ink-muted)!important}.collection-category-location{min-height:18px!important;padding:1px 6px!important;font-size:9px;background:var(--ux-neutral-soft)!important;color:var(--ux-ink-secondary)!important}
  .collection-metric{align-self:end!important;gap:1px!important}.collection-metric strong{font-size:24px!important;line-height:1!important;font-weight:800!important}.collection-metric small{font-size:9.5px!important;line-height:1.05!important}.collection-metric.fulfilled,.collection-metric.remaining{text-align:center!important;min-width:58px!important}
  #page .collection-controls{grid-column:1/-1!important;width:100%!important;justify-content:stretch!important}.collection-quantity-control{width:100%!important;max-width:none!important;height:48px!important;min-height:48px!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}.collection-quantity-control>button,.collection-quantity-control>input{font-size:18px!important}.collection-quantity-control>.quantity-control-action{font-size:13px!important}
  .collection-store-endcard{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;margin:12px 0 4px!important;padding:16px!important;border:1px solid color-mix(in srgb,var(--ux-accent) 36%,var(--ux-border))!important;border-radius:12px!important;background:color-mix(in srgb,var(--ux-accent-soft) 45%,var(--ux-surface))!important}.collection-store-endcard.completed{background:color-mix(in srgb,var(--ux-success-soft) 70%,var(--ux-surface))!important;border-color:color-mix(in srgb,var(--ux-success) 25%,var(--ux-border))!important}
  .collection-store-end-identity{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;grid-template-rows:auto auto auto!important;column-gap:12px!important;align-items:center!important}.collection-store-end-identity>small{grid-column:1!important;grid-row:1!important;font-size:10px!important;font-weight:700!important;text-transform:uppercase!important;color:var(--ux-ink-muted)!important}.collection-store-end-identity>strong{grid-column:1!important;grid-row:2 / span 2!important;font-size:50px!important;line-height:.9!important;font-weight:900!important;letter-spacing:-.03em!important}.collection-store-end-identity>span{grid-column:2!important;grid-row:2!important;font-size:16px!important;font-weight:800!important;min-width:0!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap!important}.collection-store-end-identity>em{grid-column:2!important;grid-row:3!important;font-size:11px!important;font-style:normal!important;font-weight:700!important;color:var(--ux-ink-muted)!important}
  .collection-store-end-status{display:grid!important;gap:8px!important}.collection-store-end-status>span{font-size:14px!important;font-weight:800!important}.collection-store-end-status>.button,.collection-store-end-actions>.button{width:100%!important;min-height:48px!important}.collection-store-end-actions{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}.collection-route-complete{min-height:48px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:var(--ui-gap)!important;border-radius:8px!important;background:var(--ux-success-soft)!important;color:var(--ux-success)!important}
  .collection-gate-actionbar{display:none!important}
  .collection-operation-panel{position:fixed!important;inset-inline:8px!important;bottom:10px!important;margin:0!important;width:auto!important}

  /* Warehouse: visible title, compact pallet rail, full-height scrollable map. */
  body[data-route="warehouse-reference"] .main-content{height:100%!important;min-height:0!important;padding:0!important;overflow:hidden!important}
  body[data-route="warehouse-reference"] .warehouse-r6{height:100%!important;min-height:0!important;display:grid!important;grid-template-rows:50px minmax(0,1fr) 58px!important;overflow:hidden;background:var(--ux-canvas)!important}
  body[data-route="warehouse-reference"] .wr6-header{display:flex!important;grid-row:1;height:50px!important;min-height:50px!important;margin:0!important;padding:5px 8px!important;border:0!important;border-bottom:1px solid var(--ux-border)!important;background:transparent!important}
  .wr6-title-row{gap:6px!important}.wr6-title-row :is(.ui-meta-chip,.ui-status-chip,.status-badge){display:none!important}.wr6-summary{display:none!important}
  .warehouse-placement-toolbar{display:none!important}
  .warehouse-placement-workspace{grid-row:2;min-height:0!important;height:100%!important;padding:6px!important;display:grid!important;grid-template-columns:1fr!important;grid-template-rows:112px minmax(0,1fr)!important;gap:6px!important;overflow:hidden!important}
  .warehouse-pallet-tray{height:112px!important;max-height:112px!important;min-height:0!important;display:grid!important;grid-template-rows:38px 74px!important;border-radius:8px!important}
  .warehouse-pallet-tray>header{height:38px!important;min-height:38px!important;padding:4px 7px!important}.warehouse-pallet-tray>header small{display:none!important}
  .warehouse-pallet-tray-scroll{min-height:0!important;height:74px!important;display:flex!important;overflow-x:auto!important;overflow-y:hidden!important;padding:4px!important;overscroll-behavior-x:contain;scrollbar-width:thin!important}
  .warehouse-pallet-token{flex:0 0 108px!important;width:108px!important;height:64px!important;min-height:64px!important;padding:5px 6px!important}
  .warehouse-placement-workspace>.wr6-map-panel{min-height:0!important;height:100%!important;display:block!important;overflow:hidden!important}
  .warehouse-placement-workspace>.wr6-map-panel>.placement-map-component{height:100%!important;min-height:0!important;display:grid!important;grid-template-rows:auto auto minmax(0,1fr)!important;overflow:hidden!important}
  .placement-map-scroll{min-height:0!important;height:100%!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;scrollbar-gutter:stable}
  .warehouse-placement-workspace>.wr6-detail{display:none!important}.warehouse-placement-workspace.mobile-detail{grid-template-rows:minmax(0,1fr)!important}.warehouse-placement-workspace.mobile-detail>.warehouse-pallet-tray,.warehouse-placement-workspace.mobile-detail>.wr6-map-panel{display:none!important}.warehouse-placement-workspace.mobile-detail>.wr6-detail{display:grid!important;height:100%!important}
  .warehouse-placement-actionbar{grid-row:3;position:static!important;height:58px!important;min-height:58px!important;padding:5px 6px!important}
  .warehouse-placement-actionbar>div:first-child{max-width:42%!important}.warehouse-placement-actionbar .button{height:46px!important;min-height:46px!important}

  /* Inventory category routes always expose a real return to the full list. */
  #page[data-page="inventory"]{height:100%!important;min-height:0!important}.inventory-v22-page{height:100%!important;min-height:0!important}
  .inventory-mobile-back{display:inline-flex;align-items:center!important;justify-content:center!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important}

  #page[data-page="user-management"]{height:100%!important;grid-template-rows:44px 54px minmax(0,1fr)!important;padding:0 6px 6px!important;gap:5px!important}
  .user-management-toolbar{min-height:54px!important;height:54px!important;grid-template-columns:minmax(0,1fr) 44px!important;padding:5px!important;align-items:center!important}.user-management-toolbar>label:not(.user-search),.user-result-count{display:none!important}.user-management-toolbar .user-search{height:44px!important}.user-filter-button{display:grid!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important}
  .user-management-surface{min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;border:0!important;background:transparent!important}.user-table{min-width:0!important}.user-table-head{display:none!important}.user-table-body{display:grid;gap:6px}.user-row{min-height:90px;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;padding:9px;border:1px solid var(--ux-border);border-radius:8px}.user-row>span:nth-of-type(1),.user-row>span:nth-of-type(2),.user-last-sign-in{grid-row:2}.user-row>.button{grid-column:2;grid-row:1}.user-last-sign-in{display:none}.user-admin-form{width:100%;max-height:78dvh;overflow:auto}.user-admin-fields{grid-template-columns:1fr}.user-active-toggle{grid-column:1}.user-admin-form>.ui-form-actions{position:sticky;bottom:0;z-index:1}
}



/* Build 34.21 compatibility marker.
   The 34.15 draft-dispatch Store-selection layout was retired. Dispatch is now an
   operational Approval/Collection decision; shared control geometry lives in ux-system.css. */


/* Build 34.21 compatibility marker.
   Collection alignment, feedback and quantity-control geometry are owned by ux-system.css. */


/* Build 34.21 compatibility marker.
   Desktop control geometry is owned by the shared UX control tokens in ux-system.css. */

/* Build 34.27 — one visible dispatch choice component + administrator Review date correction. */
.dispatch-choice.dispatch-choice{
  display:inline-grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:stretch;
  gap:1px;
  width:204px;
  max-width:100%;
  height:var(--ux-control-height);
  min-height:var(--ux-control-height);
  padding:0;
  border:1px solid var(--ux-border-strong);
  border-radius:var(--ux-connected-radius);
  overflow:hidden;
  background:var(--ux-border-strong);
  box-sizing:border-box;
}
.dispatch-choice.dispatch-choice>button{
  min-width:0;
  height:100%;
  min-height:0;
  padding:0 6px;
  border:0;
  border-radius:0;
  background:var(--ux-surface);
  color:var(--ux-ink-muted);
  font:inherit;
  font-size:10.5px;
  font-weight:700;
  line-height:1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  cursor:pointer;
}
.dispatch-choice.dispatch-choice>button:hover:not(:disabled):not(.active){background:var(--ux-surface-hover);color:var(--ux-ink)}
.dispatch-choice.dispatch-choice>button.active[data-method="katz"]{background:var(--ux-success-soft);color:var(--ux-success)}
.dispatch-choice.dispatch-choice>button.active[data-method="driver"]{background:var(--ux-warning-soft);color:var(--ux-warning-ink)}
.dispatch-choice.dispatch-choice>button.active[data-method="unassigned"]{background:var(--ux-neutral-soft);color:var(--ux-neutral-ink)}
.dispatch-choice.dispatch-choice>button:disabled:not(.active){background:var(--ux-surface-disabled);color:var(--ux-ink-faint);cursor:not-allowed}
.dispatch-choice.dispatch-choice>button.active:disabled{cursor:not-allowed;filter:saturate(.72);box-shadow:inset 0 0 0 1px rgba(0,0,0,.04)}

.collection-dispatch-control{display:inline-flex;align-items:center;gap:6px;overflow:visible}
.collection-dispatch-choice{width:204px}
.approval-gate-editor-actions{display:flex;align-items:center;gap:7px}
.approval-dispatch-choice{width:216px}

/* Bulk dispatch remains a fast all-store action, but the three actions read as one set. */

/* Order date is more important than the numeric Order id in Review. */
.approval-order-date-fact{flex:0 0 auto;min-width:0}
.approval-order-date-readonly{font-size:13px;font-weight:780;color:var(--ux-ink-strong);font-variant-numeric:tabular-nums}
.approval-order-id,.approval-order-requester,.approval-order-revision{font-size:10px;color:var(--ux-ink-muted)}
.approval-order-id{font-weight:650}
.approval-order-date-editor{display:grid;grid-template-columns:auto auto;grid-template-rows:auto auto;align-items:center;column-gap:6px;row-gap:1px;margin:0}
.approval-order-date-editor>span{font-size:8px;font-weight:750;line-height:1;text-transform:uppercase;color:var(--ux-ink-muted)}
.approval-order-date-editor>input[type="date"]{grid-column:2;grid-row:1 / span 2;width:142px;font-weight:750;font-variant-numeric:tabular-nums}
.approval-order-date-editor>.localized-date-input{grid-column:2;grid-row:1 / span 2;width:156px}
.approval-order-date-editor>.localized-date-input .localized-date-display{font-weight:750;font-variant-numeric:tabular-nums}
.approval-order-date-editor>small{grid-column:1;grid-row:2;min-height:9px;font-size:8px;line-height:1;color:#9a6700}

@media(max-width:1100px) and (min-width:761px){
  .approval-order-requester{display:none}
  .approval-dispatch-choice{width:198px}
  .collection-dispatch-choice{width:190px}
}

@media(max-width:760px){
  .dispatch-choice.dispatch-choice{height:44px;min-height:44px}
  .dispatch-choice.dispatch-choice>button{font-size:9.5px;padding-inline:3px}
  .collection-dispatch-choice{width:192px;min-width:192px}
  .collection-dispatch-control>span{display:none}
  .approval-dispatch-choice{width:192px;min-width:192px}
  .approval-gate-editor-actions{display:flex;grid-template-columns:none;gap:5px;max-width:calc(100% - 92px)}
  .approval-gate-editor-actions .button{flex:0 0 44px}

  /* Mobile Review keeps the administrator date correction reachable instead of hiding all Order facts. */
}

/* Higher-specificity ownership over older generic Approval toolbar rules. */

/* 34.28 — Review toolbar alignment + quieter Completed status.
   Review desktop uses one rhythm: 11px label row + 36px control row. */


/* 34.29 — Order workflow uses the same connected-control language as quantity controls. */
body[data-route="orders"] #page:not(.orders-list-page) .order-stepper{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1px;
  width:min(540px,calc(100% - 24px));
  height:var(--ux-control-height);
  min-height:var(--ux-control-height);
  margin:8px auto;
  padding:0;
  border:1px solid var(--ux-border-strong);
  border-radius:var(--ux-connected-radius);
  overflow:hidden;
  background:var(--ux-border-strong);
  box-shadow:none;
}
body[data-route="orders"] #page:not(.orders-list-page) .order-stepper .order-step{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  width:100%;
  height:100%;
  min-height:0;
  margin:0;
  padding:0 12px;
  border:0;
  border-radius:0;
  background:var(--ux-surface);
  color:var(--ux-ink-muted);
  font-size:11px;
  font-weight:750;
  line-height:1;
  box-shadow:none;
  transition:background-color 140ms ease,color 140ms ease,transform 120ms ease;
}
body[data-route="orders"] #page:not(.orders-list-page) .order-stepper .order-step:hover:not(:disabled){
  background:var(--ux-surface-hover);
  color:var(--ux-accent);
}
body[data-route="orders"] #page:not(.orders-list-page) .order-stepper .order-step:active:not(:disabled){transform:scale(.985)}
body[data-route="orders"] #page:not(.orders-list-page) .order-stepper .order-step.active{
  background:var(--ux-accent-soft);
  color:var(--ux-accent);
  box-shadow:none;
}
body[data-route="orders"] #page:not(.orders-list-page) .order-stepper .order-step-index{
  display:inline-grid;
  place-items:center;
  width:auto;
  height:auto;
  min-width:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:inherit;
  font-size:9px;
  font-weight:800;
  opacity:.62;
}
body[data-route="orders"] #page:not(.orders-list-page) .order-stepper .order-step.active .order-step-index{
  background:transparent;
  color:inherit;
  opacity:.8;
}
body[data-route="orders"] #page:not(.orders-list-page) .order-stepper .order-step:disabled{
  opacity:.45;
  cursor:not-allowed;
}
body[data-route="orders"] #page:not(.orders-list-page) .order-stepper.step-transition .order-step.active{
  animation:order-step-segment-activate 180ms cubic-bezier(.2,.75,.25,1);
}
@keyframes order-step-segment-activate{
  0%{opacity:.68;transform:scale(.985)}
  60%{opacity:1;transform:scale(1.008)}
  100%{opacity:1;transform:scale(1)}
}
@media(max-width:760px){
  body[data-route="orders"] #page:not(.orders-list-page) .order-stepper{
    width:calc(100% - 16px);
    height:44px;
    min-height:44px;
    margin:8px auto;
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-stepper .order-step{
    padding-inline:7px;
    gap:4px;
    font-size:12px;
  }
}
@media(prefers-reduced-motion:reduce){
  body[data-route="orders"] #page:not(.orders-list-page) .order-stepper .order-step{transition:none}
}

/* 34.30 — Order workflow navigation, Store tiles, and Review toolbar alignment.
   One structural ownership layer; no pixel-offset patches. */

/* Order process navigator: intentionally larger than ordinary controls so it reads as navigation. */
body[data-route="orders"] #page:not(.orders-list-page) .order-stepper{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:4px;
  width:min(760px,calc(100% - 24px));
  height:60px;
  min-height:60px;
  margin:10px auto;
  padding:4px;
  border:1px solid #d8e0ea;
  border-radius:16px;
  overflow:hidden;
  background:var(--ux-surface-well);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.65);
}
body[data-route="orders"] #page:not(.orders-list-page) .order-stepper .order-step{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
  height:100%;
  min-height:0;
  padding:0 16px;
  border:0;
  border-radius:11px;
  background:transparent;
  color:#53657a;
  font-size:15px;
  font-weight:720;
  line-height:1;
  box-shadow:none;
  transition:background-color 160ms ease,color 160ms ease,box-shadow 160ms ease,transform 120ms ease;
}
body[data-route="orders"] #page:not(.orders-list-page) .order-stepper .order-step-index{
  display:grid;
  place-items:center;
  width:25px;
  height:25px;
  min-width:25px;
  border-radius:999px;
  background:var(--ux-neutral-soft);
  color:var(--ux-ink-secondary);
  font-size:11px;
  font-weight:800;
  opacity:1;
  transition:background-color 160ms ease,color 160ms ease;
}
body[data-route="orders"] #page:not(.orders-list-page) .order-stepper .order-step:hover:not(:disabled){
  background:var(--ux-surface-hover);
  color:var(--ux-ink);
}
body[data-route="orders"] #page:not(.orders-list-page) .order-stepper .order-step:active:not(:disabled){transform:scale(.992)}
body[data-route="orders"] #page:not(.orders-list-page) .order-stepper .order-step.active{
  background:var(--ux-surface);
  color:var(--ux-accent);
  box-shadow:0 1px 4px rgba(20,37,58,.10);
}
body[data-route="orders"] #page:not(.orders-list-page) .order-stepper .order-step.active .order-step-index{
  background:var(--ux-accent-soft);
  color:var(--ux-accent);
}
body[data-route="orders"] #page:not(.orders-list-page) .order-stepper.step-transition .order-step.active{
  animation:order-step-nav-activate 180ms cubic-bezier(.2,.75,.25,1);
}
@keyframes order-step-nav-activate{
  0%{opacity:.78;transform:translateY(1px) scale(.992)}
  70%{opacity:1;transform:translateY(0) scale(1.004)}
  100%{opacity:1;transform:translateY(0) scale(1)}
}

/* Store selection: the tile is the control. The native checkbox remains semantic but invisible. */
body[data-route="orders"] #page:not(.orders-list-page) .store-selection-grid-simple{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:var(--ui-gap);
  align-content:start;
}
body[data-route="orders"] #page:not(.orders-list-page) .selection-card{
  position:relative;
  min-height:68px;
  padding:9px 11px;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) 22px;
  gap:10px;
  align-items:center;
  border:1px solid #d5dde7;
  border-radius:11px;
  background:var(--ux-surface);
  box-shadow:0 1px 1px rgba(16,34,55,.025);
  transition:border-color 140ms ease,background-color 140ms ease,box-shadow 140ms ease,transform 100ms ease;
}
body[data-route="orders"] #page:not(.orders-list-page) .selection-card:hover{
  border-color:#b8c8da;
  background:var(--ux-surface-raised);
}
body[data-route="orders"] #page:not(.orders-list-page) .selection-card:has(.store-selection-input:focus-visible){outline:2px solid rgba(46,103,193,.34);outline-offset:2px}
body[data-route="orders"] #page:not(.orders-list-page) .selection-card:has(.store-selection-input:disabled){cursor:default}
body[data-route="orders"] #page:not(.orders-list-page) .selection-card:active{transform:scale(.996)}
body[data-route="orders"] #page:not(.orders-list-page) .selection-card.selected{
  border-color:var(--ux-info-border);
  background:var(--ux-surface-selected);
  box-shadow:inset 0 0 0 1px rgba(46,103,193,.10),0 1px 2px rgba(23,55,95,.05);
}
body[data-route="orders"] #page:not(.orders-list-page) .store-selection-input{
  position:absolute;
  inline-size:1px;
  block-size:1px;
  opacity:0;
  pointer-events:none;
  overflow:hidden;
  clip-path:inset(50%);
}
body[data-route="orders"] #page:not(.orders-list-page) .store-code-tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:44px;
  min-height:25px;
  padding:2px 8px;
  border:1px solid #d7e0ea;
  border-radius:999px;
  background:var(--ux-surface-disabled);
  color:#45576c;
  font-size:11px;
  font-weight:820;
  line-height:1;
  font-variant-numeric:tabular-nums;
}
body[data-route="orders"] #page:not(.orders-list-page) .selection-card.selected .store-code-tag{
  border-color:var(--ux-info-border);
  background:var(--ux-accent-soft);
  color:var(--ux-accent);
}
body[data-route="orders"] #page:not(.orders-list-page) .selection-card-copy{min-width:0}
body[data-route="orders"] #page:not(.orders-list-page) .selection-card-copy>strong{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--ux-ink);
  font-size:14px;
  font-weight:760;
  line-height:1.2;
}
body[data-route="orders"] #page:not(.orders-list-page) .selection-card-copy>small{
  margin-top:3px;
  font-size:10px;
  line-height:1.2;
  color:var(--ux-ink-muted);
}
body[data-route="orders"] #page:not(.orders-list-page) .selection-card-selected{
  display:grid;
  place-items:center;
  width:22px;
  height:22px;
  border-radius:999px;
  color:#fff;
  background:var(--ux-accent);
  opacity:0;
  transform:scale(.82);
  transition:opacity 120ms ease,transform 120ms ease;
}
body[data-route="orders"] #page:not(.orders-list-page) .selection-card-selected svg{width:13px;height:13px}
body[data-route="orders"] #page:not(.orders-list-page) .selection-card.selected .selection-card-selected{opacity:1;transform:scale(1)}

/* Keep the Store step dense enough for common 13-store Orders at 1280x720/900px desktop. */
body[data-route="orders"] #page:not(.orders-list-page) .order-composer[data-step="stores"] .order-step-panel{
  overflow:auto;
  padding-block:10px;
}

/* Review/Approval context toolbar: every item owns the same label row + control row. */

@media(max-width:1100px) and (min-width:761px){
  body[data-route="orders"] #page:not(.orders-list-page) .store-selection-grid-simple{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media(max-width:760px){
  body[data-route="orders"] #page:not(.orders-list-page) .order-stepper{
    width:calc(100% - 16px);
    height:52px;
    min-height:52px;
    padding:4px;
    gap:3px;
    border-radius:14px;
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-stepper .order-step{
    padding-inline:6px;
    gap:5px;
    border-radius:9px;
    font-size:12px;
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-stepper .order-step-index{
    width:22px;height:22px;min-width:22px;font-size:10px;
  }
  body[data-route="orders"] #page:not(.orders-list-page) .store-selection-grid-simple{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  body[data-route="orders"] #page:not(.orders-list-page) .selection-card{min-height:66px;padding:8px;grid-template-columns:auto minmax(0,1fr);gap:7px}
  body[data-route="orders"] #page:not(.orders-list-page) .selection-card-copy>strong{font-size:13px}
  body[data-route="orders"] #page:not(.orders-list-page) .selection-card-selected{position:absolute;inset-block-start:6px;inset-inline-end:6px;width:19px;height:19px}
  body[data-route="orders"] #page:not(.orders-list-page) .store-code-tag{min-width:39px;padding-inline:6px;font-size:10px}
}

@media(max-width:330px){
  body[data-route="orders"] #page:not(.orders-list-page) .store-selection-grid-simple{grid-template-columns:1fr}
}

@media(prefers-reduced-motion:reduce){
  body[data-route="orders"] #page:not(.orders-list-page) .order-stepper .order-step,
  body[data-route="orders"] #page:not(.orders-list-page) .order-stepper .order-step-index,
  body[data-route="orders"] #page:not(.orders-list-page) .selection-card,
  body[data-route="orders"] #page:not(.orders-list-page) .selection-card-selected{transition:none}
  body[data-route="orders"] #page:not(.orders-list-page) .order-stepper.step-transition .order-step.active{animation:none}
}

/* 34.32 — Approval review toolbar isolation + split pallet estimate */
.approval-gate-header-summary.approval-gate-header-summary-split{
  grid-template-columns:repeat(5,minmax(62px,1fr));
}
.approval-review-toolbar{
  min-height:52px;
  display:grid;
  grid-template-columns:max-content minmax(260px,1.25fr) minmax(180px,.62fr) minmax(220px,.82fr) max-content;
  gap:10px 12px;
  align-items:end;
  padding:7px 12px;
  border-block:1px solid var(--ux-border);
  background:var(--ux-surface-muted);
  min-width:0;
}
.approval-review-field{
  min-width:0;
  display:grid;
  grid-template-rows:12px var(--ux-control-height);
  gap:4px;
  align-items:end;
  margin:0;
}
.approval-review-label{
  height:12px;
  line-height:12px;
  font-size:9px;
  font-weight:800;
  letter-spacing:.035em;
  text-transform:uppercase;
  color:var(--ux-ink-muted);
  white-space:nowrap;
}
.approval-review-back>.approval-review-label{visibility:hidden}
.approval-review-back>button,
.approval-review-order-select,
.approval-review-control,
.approval-review-dispatch-buttons,
.approval-review-toolbar .approval-order-date-editor,
.approval-review-toolbar .approval-order-date-editor>input[type="date"],
.approval-review-toolbar .approval-order-date-editor>.localized-date-input,
.approval-review-toolbar .approval-order-date-editor>.localized-date-input .localized-date-display{
  height:var(--ux-control-height);
  min-height:var(--ux-control-height);
}
.approval-review-back>button{width:max-content;margin:0;align-self:stretch}
.approval-review-order-select{
  width:100%;
  min-width:0;
  margin:0;
  padding-inline:8px 30px;
  border:1px solid var(--ux-border-strong);
  border-radius:var(--ux-control-radius);
  background:var(--ux-surface);
  color:var(--ux-ink);
  font-size:var(--ui-type-control);
  font-weight:700;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.approval-review-control{
  min-width:0;
  display:flex;
  align-items:center;
}
.approval-review-toolbar .approval-order-date-fact{width:100%}
.approval-review-toolbar .approval-order-date-readonly{
  width:100%;
  height:var(--ux-control-height);
  display:flex;
  align-items:center;
  padding-inline:8px;
  border:1px solid var(--ux-border-strong);
  border-radius:var(--ux-control-radius);
  background:var(--ux-surface);
  color:var(--ux-ink);
  font-size:13px;
  font-weight:800;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.approval-review-toolbar .approval-order-date-editor{
  width:100%;
  min-width:0;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:var(--ux-control-height) 0;
  gap:0;
}
.approval-review-toolbar .approval-order-date-editor>small{
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%);
}
.approval-review-toolbar .approval-order-date-editor>input[type="date"],
.approval-review-toolbar .approval-order-date-editor>.localized-date-input{width:100%;min-width:0}
.approval-review-order-meta{
  min-width:0;
  height:var(--ux-control-height);
  display:flex;
  align-items:center;
  gap:9px;
  padding-inline:10px;
  border:1px solid transparent;
  color:var(--ux-ink-muted);
  white-space:nowrap;
  overflow:hidden;
}
.approval-review-order-meta .approval-order-id{flex:0 0 auto;font-weight:800;color:#526173}
.approval-review-order-meta .approval-order-requester{min-width:0;overflow:hidden;text-overflow:ellipsis}
.approval-review-order-meta .approval-order-revision{flex:0 0 auto}
.approval-review-dispatch-buttons{
  display:grid;
  grid-template-columns:repeat(3,max-content);
  gap:1px;
  height:var(--ux-control-height);
  border:1px solid var(--ux-border-strong);
  border-radius:var(--ux-connected-radius);
  overflow:hidden;
  background:var(--ux-border-strong);
}
.approval-review-dispatch-buttons>[data-bulk-dispatch]{
  height:calc(var(--ux-control-height) - 2px);
  min-height:calc(var(--ux-control-height) - 2px);
  margin:0;
  padding-inline:9px;
  border:0;
  border-radius:0;
  background:var(--ux-surface);
  box-shadow:none;
}
.approval-review-dispatch-buttons>[data-bulk-dispatch]:hover{background:var(--ux-surface-hover)}

@media(max-width:1180px) and (min-width:761px){
  .approval-review-toolbar{
    grid-template-columns:max-content minmax(250px,1fr) minmax(170px,210px) minmax(0,1fr);
    grid-template-rows:46px 46px;
  }
  .approval-review-back{grid-column:1;grid-row:1}
  .approval-review-working{grid-column:2;grid-row:1}
  .approval-review-date{grid-column:3;grid-row:1}
  .approval-review-meta{grid-column:1 / 3;grid-row:2}
  .approval-review-dispatch{grid-column:3 / 5;grid-row:2;justify-self:end}
}

@media(max-width:760px){
  .approval-review-toolbar{
    height:auto;
    min-height:0;
    display:grid;
    grid-template-columns:44px minmax(0,1fr);
    grid-template-rows:auto;
    gap:7px;
    padding:7px 8px;
    align-items:end;
  }
  .approval-review-field{grid-template-rows:11px 44px;gap:3px}
  .approval-review-label{height:11px;line-height:11px;font-size:8.5px}
  .approval-review-back{grid-column:1;grid-row:1}
  .approval-review-back>button{width:var(--ui-touch-target);height:var(--ui-touch-target);min-height:var(--ui-touch-target);padding:0}
  .approval-review-back>button span{display:none}
  .approval-review-working{grid-column:2;grid-row:1}
  .approval-review-date{grid-column:1 / -1;grid-row:2}
  .approval-review-meta{grid-column:1 / -1;grid-row:3}
  .approval-review-dispatch{grid-column:1 / -1;grid-row:4}
  .approval-review-order-select,
  .approval-review-control,
  .approval-review-dispatch-buttons,
  .approval-review-toolbar .approval-order-date-readonly,
  .approval-review-toolbar .approval-order-date-editor,
  .approval-review-toolbar .approval-order-date-editor>input[type="date"],
  .approval-review-toolbar .approval-order-date-editor>.localized-date-input,
  .approval-review-toolbar .approval-order-date-editor>.localized-date-input .localized-date-display{height:var(--ui-touch-target);min-height:44px}
  .approval-review-order-select{font-size:11px}
  .approval-review-order-meta{height:44px}
  .approval-review-dispatch-buttons{grid-template-columns:repeat(3,1fr)}
  .approval-review-dispatch-buttons>[data-bulk-dispatch]{height:var(--ui-touch-target);min-height:var(--ui-touch-target);padding-inline:5px}
}

/* 34.35 — New Order category picker: tile is the selection control. */
.order-category-choice{
  position:relative;
  grid-template-columns:56px minmax(0,1fr) minmax(170px,.9fr);
  min-height:72px;
  height:auto;
  gap:9px;
  align-items:center;
  padding:8px 10px;
  overflow:hidden;
}
.order-category-choice>input[data-category-picker-code]{
  position:absolute;
  inline-size:1px;
  block-size:1px;
  margin:0;
  padding:0;
  opacity:0;
  pointer-events:none;
  clip-path:inset(50%);
}
.order-category-choice:has(>input[data-category-picker-code]:focus-visible){
  outline:2px solid var(--ux-accent);
  outline-offset:2px;
}
.order-category-choice:has(>input[data-category-picker-code]:checked:not(:disabled)){
  border-color:#8eb2e6;
  background:var(--ux-surface-selected);
  box-shadow:inset 0 0 0 1px rgba(45,108,196,.08);
}
.order-category-choice>.object-code{
  justify-self:start;
  align-self:start;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:46px;
  max-width:100%;
  min-height:25px;
  padding:3px 7px;
  border:1px solid #cfd8e4;
  border-radius:999px;
  background:var(--ux-surface-header);
  font-size:12px;
  font-weight:850;
  line-height:1;
  white-space:nowrap;
}
.order-category-choice-name,
.order-category-choice-inventory{min-width:0;max-width:100%}
.order-category-choice-name strong{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  white-space:normal;
  overflow:hidden;
  text-overflow:ellipsis;
  overflow-wrap:anywhere;
  line-height:1.28;
  font-size:12px;
}
.order-category-choice-name small{
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
  overflow-wrap:anywhere;
  line-height:1.25;
}
.order-category-choice-inventory{
  align-self:stretch;
  align-content:center;
}
.order-category-choice-inventory b,
.order-category-choice-inventory small,
.order-category-choice-inventory em{
  min-width:0;
  max-width:100%;
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
  overflow-wrap:anywhere;
}

@media(max-width:1100px) and (min-width:761px){
  .order-category-choice{
    grid-template-columns:52px minmax(0,1fr);
    min-height:82px;
  }
  .order-category-choice-inventory{
    grid-column:1/-1;
    margin-inline-start:0;
    padding-inline-start:0;
    padding-top:6px;
    border-inline-start:0;
    border-top:1px solid var(--ux-border);
  }
}

@media(max-width:760px){
  .order-category-choice{
    grid-template-columns:54px minmax(0,1fr);
    min-height:92px;
    gap:var(--ui-gap);
    padding:9px 10px;
  }
  .order-category-choice>.object-code{
    min-width:48px;
    min-height:28px;
    font-size:13px;
  }
  .order-category-choice-name strong{font-size:13px;line-height:1.3}
  .order-category-choice-inventory{
    grid-column:1/-1;
    margin-inline-start:0;
    padding-inline-start:0;
    padding-top:6px;
    border-inline-start:0;
    border-top:1px solid var(--ux-border);
  }
}

/* Production build 34.36 — mobile Dashboard order shortcuts. */
.dashboard-mobile-primary-actions{display:none}
@media(max-width:760px){
  .dashboard-mobile-primary-actions{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:var(--ui-gap);
    width:100%;
  }
  .dashboard-mobile-primary-tile{
    min-width:0;
    min-height:108px;
    display:grid;
    grid-template-columns:38px minmax(0,1fr) 16px;
    align-items:center;
    gap:8px;
    padding:10px;
    border:1px solid var(--ux-border);
    border-radius:10px;
    background:var(--ux-surface);
    color:var(--ux-ink);
    text-align:start;
    box-shadow:0 1px 2px rgba(16,36,58,.05);
  }
  .dashboard-mobile-primary-tile:not(:disabled):active{transform:translateY(1px)}
  .dashboard-mobile-primary-tile>span:nth-child(2){display:grid;align-content:center;gap:2px;min-width:0}
  .dashboard-mobile-primary-tile strong{font-size:16px;line-height:1.1;overflow-wrap:anywhere}
  .dashboard-mobile-primary-tile em{font-size:11px;line-height:1.2;font-style:normal;font-weight:750;color:var(--ux-accent);overflow-wrap:anywhere}
  .dashboard-mobile-primary-tile small{font-size:9px;line-height:1.25;color:var(--ux-ink-muted);overflow-wrap:anywhere}
  .dashboard-mobile-primary-tile>.app-icon{width:16px;height:16px;color:var(--ux-ink-faint)}
  .dashboard-mobile-primary-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:9px;background:var(--ux-accent-soft);color:var(--ux-accent)}
  .dashboard-mobile-primary-icon .app-icon{width:20px;height:20px}
  .dashboard-mobile-primary-tile.new-order{border-color:var(--ux-info-border);background:var(--ux-info-soft)}
  .dashboard-mobile-primary-tile.collect.primary{border-color:var(--ux-info-border);background:var(--ux-info-soft)}
  .dashboard-mobile-primary-tile.collect.warning{border-color:var(--ux-warning-border);background:var(--ux-warning-soft)}
  .dashboard-mobile-primary-tile.collect.warning em{color:var(--ux-warning-ink)}
  .dashboard-mobile-primary-tile.collect.muted{background:var(--ux-surface-disabled);color:var(--ux-ink-muted)}
  .dashboard-mobile-primary-tile:disabled{cursor:default;box-shadow:none;opacity:.82}
  .dashboard-mobile-primary-tile:disabled .dashboard-mobile-primary-icon{background:var(--ux-neutral-soft);color:var(--ux-ink-faint)}
  body[data-route="dashboard"] .dashboard-mobile-primary-actions{flex:0 0 auto}
}


/* Production build 34.37 — stable/taller New Order category tiles + popularity/season sorting. */
.order-category-choice{
  min-height:84px;
  padding-block:10px;
  box-sizing:border-box;
}
.order-category-choice-name{
  align-self:center;
  display:grid;
  align-content:center;
  gap:3px;
}
.order-category-choice-name .order-category-choice-season{
  display:inline-flex;
  justify-self:start;
  width:max-content;
  max-width:100%;
  margin-top:1px;
  padding:2px 6px;
  border:1px solid #d8dee7;
  border-radius:999px;
  background:var(--ux-surface-muted);
  color:var(--ux-ink-muted);
  font-size:9px;
  font-weight:750;
  line-height:1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.order-category-choice:has(>input[data-category-picker-code]:checked:not(:disabled)){
  box-shadow:inset 0 0 0 1px rgba(45,108,196,.08);
}
@media(max-width:1100px) and (min-width:761px){
  .order-category-choice{min-height:94px;padding-block:10px}
}
@media(max-width:760px){
  .order-category-choice{min-height:106px;padding-block:11px}
  .order-category-choice-name .order-category-choice-name .order-category-choice-season{font-size:10px;padding:2px 7px}
}

/* Production build 34.38 — mobile full-screen Add Categories + compact actions + stock edge cues. */
.order-category-choice{
  border-inline-start-width:4px;
  border-inline-start-color:transparent;
}
.order-category-choice[data-stock-state="stocked"]{border-inline-start-color:#4f9b68}
.order-category-choice[data-stock-state="low"]{border-inline-start-color:#d2a72f}
.order-category-choice[data-stock-state="zero"]{border-inline-start-color:#c85a5a}
.order-category-choice[data-stock-state="unknown"]{border-inline-start-color:#cfd6df}
.order-category-picker-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:var(--ui-gap);
}
.order-category-picker-actions .button{width:100%}

@media(max-width:760px){
  #modal-host:has(.order-category-picker) .modal-backdrop{
    padding:0;
    place-items:stretch;
    background:var(--ux-surface);
    backdrop-filter:none;
  }
  #modal-host:has(.order-category-picker) .modal{
    width:100vw;
    max-width:none;
    height:100dvh;
    max-height:100dvh;
    margin:0;
    border:0;
    border-radius:0;
    box-shadow:none;
    overflow:hidden;
  }
  #modal-host:has(.order-category-picker) .modal-body{
    width:100%;
    height:100%;
    padding:8px 10px max(8px,var(--mobile-safe-bottom));
  }
  #modal-host:has(.order-category-picker) .modal-close{display:none}
  .order-category-picker{
    width:100%;
    height:100%;
    max-height:none;
    gap:var(--ui-gap);
    grid-template-rows:auto auto minmax(0,1fr) auto;
  }
  .order-category-picker .modal-heading{
    padding:2px 0 0;
  }
  .order-category-picker .modal-heading h2{
    margin-top:1px;
    font-size:var(--ui-type-page-title);
  }
  .order-category-picker-toolbar{
    grid-template-columns:minmax(0,1fr) minmax(120px,38%);
    gap:var(--ui-gap-tight);
  }
  .order-category-picker-toolbar>strong{
    grid-column:1/-1;
    min-height:16px;
    padding-inline:2px;
  }
  .order-category-picker-toolbar label:not(.ui-search),
  .order-category-picker-sort{
    min-width:0;
    height:var(--ui-touch-target);
    min-height:var(--ui-touch-target);
  }
  .order-category-picker-sort>span{display:none}
  .order-category-picker-sort select{
    width:100%;
    height:42px;
    min-height:42px;
    padding-inline:var(--ui-control-pad-x);
  }
  .order-category-picker-list{
    width:100%;
    padding:0 1px;
    gap:7px;
  }
  .order-category-choice{
    width:100%;
    min-height:112px;
    padding:11px 10px 10px;
  }
  .order-category-picker-actions{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:var(--ui-gap);
    padding:8px 0 0;
  }
  .order-category-picker-actions .button{
    min-height:var(--ui-touch-target);
    margin:0;
  }
}
@media(max-width:760px){
  .order-category-picker-actions .button:last-child{grid-column:auto}
}

/* 34.39 — mobile New Order Quantities: store-by-store cards instead of a squeezed matrix. */
.order-mobile-quantities{display:none}

@media(max-width:760px){
  body[data-route="orders"] #page:not(.orders-list-page) .order-composer[data-step="matrix"] .order-step-panel{
    padding:7px 8px 10px;
    overflow:auto;
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-composer[data-step="matrix"] .matrix-toolbar{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:7px;
    align-items:center;
    margin-bottom:7px;
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-composer[data-step="matrix"] .matrix-toolbar h2{
    margin:0;
    font-size:15px;
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-composer[data-step="matrix"] .matrix-toolbar p{display:none}
  body[data-route="orders"] #page:not(.orders-list-page) .order-composer[data-step="matrix"] .matrix-toolbar>.button{
    min-height:40px;
    height:40px;
    padding-inline:10px;
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-composer[data-step="matrix"] .order-matrix-wrap{display:none}
  body[data-route="orders"] #page:not(.orders-list-page) .order-mobile-quantities{
    display:grid;
    gap:8px;
    min-width:0;
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-mobile-store-rail{
    position:sticky;
    top:0;
    z-index:5;
    display:flex;
    gap:6px;
    width:calc(100% + 16px);
    margin-inline:-8px;
    padding:5px 8px 7px;
    overflow-x:auto;
    overscroll-behavior-inline:contain;
    scrollbar-width:none;
    background:color-mix(in srgb,var(--ux-app-bg) 94%,transparent);
    backdrop-filter:blur(8px);
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-mobile-store-rail::-webkit-scrollbar{display:none}
  body[data-route="orders"] #page:not(.orders-list-page) .order-mobile-store-tile{
    flex:0 0 126px;
    min-width:126px;
    min-height:70px;
    padding:7px 9px;
    display:grid;
    grid-template-rows:auto auto auto;
    align-content:center;
    gap:2px;
    border:1px solid var(--ux-border);
    border-radius:10px;
    background:var(--ux-surface);
    color:var(--ux-ink);
    text-align:start;
    cursor:pointer;
    box-shadow:none;
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-mobile-store-tile strong{
    font-size:17px;
    line-height:1;
    font-variant-numeric:tabular-nums;
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-mobile-store-tile span{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:11.5px;
    font-weight:700;
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-mobile-store-tile small{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:var(--ux-ink-muted);
    font-size:9.5px;
    font-variant-numeric:tabular-nums;
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-mobile-store-tile.active{
    border-color:var(--ux-info-border);
    background:var(--ux-surface-selected);
    box-shadow:inset 0 -3px var(--ux-accent);
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-mobile-quantity-store-head{
    min-height:46px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:6px 8px;
    border:1px solid var(--ux-border);
    border-radius:10px;
    background:var(--ux-surface);
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-mobile-quantity-store-head>div{
    min-width:0;
    display:flex;
    align-items:center;
    gap:8px;
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-mobile-quantity-store-head strong{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:14px;
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-mobile-quantity-store-head>[data-mobile-current-store-total]{
    flex:0 0 auto;
    color:var(--ux-ink-muted);
    font-size:11px;
    font-weight:800;
    font-variant-numeric:tabular-nums;
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-mobile-category-list{
    display:grid;
    gap:8px;
    min-width:0;
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-mobile-quantity-card{
    min-width:0;
    min-height:116px;
    padding:10px;
    display:grid;
    grid-template-rows:auto 48px;
    gap:10px;
    border:1px solid var(--ux-border);
    border-radius:11px;
    background:var(--ux-surface);
    transition:background-color 120ms ease,border-color 120ms ease;
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-mobile-quantity-card.has-quantity{
    border-color:var(--ux-info-border);
    background:var(--ux-info-soft);
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-mobile-quantity-card>header{
    min-width:0;
    display:grid;
    grid-template-columns:minmax(0,1fr) 40px;
    gap:8px;
    align-items:start;
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-mobile-quantity-card>header>div{
    min-width:0;
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    gap:9px;
    align-items:start;
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-mobile-quantity-card .object-code{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:52px;
    min-height:28px;
    padding:3px 8px;
    border-radius:999px;
    background:var(--ux-neutral-soft);
    color:var(--ux-neutral-ink);
    font-size:17px;
    font-weight:850;
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-mobile-quantity-card>header strong{
    min-width:0;
    font-size:13px;
    line-height:1.3;
    overflow-wrap:anywhere;
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-mobile-quantity-card .icon-button{
    width:40px;
    min-width:40px;
    height:40px;
    min-height:40px;
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-mobile-quantity-control.quantity-control{
    width:100%;
    max-width:none;
    height:48px;
    min-height:48px;
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-mobile-quantity-control.quantity-control>button,
  body[data-route="orders"] #page:not(.orders-list-page) .order-mobile-quantity-control.quantity-control>input{
    font-size:var(--ui-type-dialog-title);
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-mobile-quantity-control.quantity-control>.quantity-control-action{
    padding-inline:4px;
    font-size:12px;
    font-weight:800;
  }
}

/* 34.40 — mobile New Order Quantities is a dedicated bounded workspace. */
@media(max-width:760px){
  /* On Quantities the generic page header and date/notes row only consume space;
     the three-step navigator remains the route-level navigation. */
  body[data-route="orders"] #page:not(.orders-list-page):has(>.order-composer[data-step="matrix"])>.workspace-header{
    display:none;
  }
  body[data-route="orders"] #page:not(.orders-list-page)>.order-composer[data-step="matrix"]{
    height:100%;
    min-height:0;
    grid-template-rows:auto minmax(0,1fr) auto;
    overflow:hidden;
    border-radius:0;
  }
  body[data-route="orders"] #page:not(.orders-list-page)>.order-composer[data-step="matrix"]>.order-meta-bar{
    display:none;
  }
  body[data-route="orders"] #page:not(.orders-list-page)>.order-composer[data-step="matrix"]>.order-step-panel{
    min-height:0;
    height:100%;
    padding:0;
    overflow:hidden;
    display:block;
  }
  body[data-route="orders"] #page:not(.orders-list-page)>.order-composer[data-step="matrix"] .matrix-toolbar,
  body[data-route="orders"] #page:not(.orders-list-page)>.order-composer[data-step="matrix"] .order-matrix-wrap{
    display:none;
  }
  body[data-route="orders"] #page:not(.orders-list-page)>.order-composer[data-step="matrix"] .order-mobile-quantities{
    height:100%;
    min-height:0;
    display:grid;
    grid-template-rows:auto auto auto minmax(0,1fr);
    gap:6px;
    overflow:hidden;
    padding:6px 8px 0;
    box-sizing:border-box;
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-mobile-quantity-page-head{
    min-width:0;
    min-height:44px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-mobile-quantity-page-head>div{
    min-width:0;
    display:grid;
    gap:1px;
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-mobile-quantity-page-head>div>strong{
    font-size:18px;
    line-height:1.05;
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-mobile-quantity-page-head>div>small{
    min-width:0;
    color:var(--ux-ink-muted);
    font-size:9.5px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-mobile-quantity-page-head>.button{
    flex:0 0 auto;
    min-height:40px;
    height:40px;
    max-width:52%;
    padding-inline:9px;
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-mobile-store-rail{
    position:relative;
    top:auto;
    z-index:1;
    width:calc(100% + 16px);
    margin-inline:-8px;
    padding:2px 8px 5px;
    background:transparent;
    backdrop-filter:none;
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-mobile-category-list{
    min-height:0;
    overflow:auto;
    overscroll-behavior:contain;
    padding-bottom:8px;
    scroll-padding-bottom:8px;
  }

  /* Quantities has step navigation above, so a second Back action is redundant.
     Keep only Save Draft + Continue and let both have enough width. */
  body[data-route="orders"] #page:not(.orders-list-page)>.order-composer[data-step="matrix"] .order-action-bar{
    min-height:54px;
    height:54px;
    padding:5px 8px calc(5px + var(--mobile-safe-bottom));
  }
  body[data-route="orders"] #page:not(.orders-list-page)>.order-composer[data-step="matrix"] .order-action-bar>div:first-child,
  body[data-route="orders"] #page:not(.orders-list-page)>.order-composer[data-step="matrix"] [data-prev-step]{
    display:none;
  }
  body[data-route="orders"] #page:not(.orders-list-page)>.order-composer[data-step="matrix"] .order-action-end{
    width:100%;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
  }
  body[data-route="orders"] #page:not(.orders-list-page)>.order-composer[data-step="matrix"] .order-action-end>.button{
    width:100%;
    min-width:0;
    height:44px;
    min-height:44px;
    padding-inline:8px;
  }
}


/* 34.41 — mobile Quantities: Store-local quantity control, explicit Order-wide actions. */
@media(max-width:760px){
  body[data-route="orders"] #page:not(.orders-list-page) .order-mobile-quantity-card{
    min-height:166px;
    grid-template-rows:auto 48px auto;
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-mobile-quantity-card>header{
    grid-template-columns:minmax(0,1fr);
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-mobile-quantity-control.quantity-control{
    grid-template-columns:minmax(0,1fr) minmax(72px,1.25fr) minmax(0,1fr);
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-mobile-category-actions{
    display:grid;
    grid-template-columns:minmax(0,1.18fr) minmax(0,.82fr);
    gap:var(--ui-gap-tight);
    min-width:0;
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-mobile-category-actions>.button{
    min-width:0;
    min-height:42px;
    height:auto;
    padding:6px 8px;
    white-space:normal;
    text-align:center;
    line-height:1.15;
    font-size:11.5px;
    font-weight:800;
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-mobile-apply-all{
    background:var(--ux-surface-subtle);
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-mobile-remove-order-category{
    color:var(--ux-danger);
    border-color:var(--ux-danger-border);
    background:var(--ux-danger-soft);
  }
}


/* 34.42 — mobile Review: step navigator replaces redundant Back; keep Save + Submit readable. */
@media(max-width:760px){
  body[data-route="orders"] #page:not(.orders-list-page)>.order-composer[data-step="review"] .order-action-bar{
    min-height:54px;
    height:54px;
    padding:5px 8px calc(5px + var(--mobile-safe-bottom));
  }
  body[data-route="orders"] #page:not(.orders-list-page)>.order-composer[data-step="review"] .order-action-bar>div:first-child,
  body[data-route="orders"] #page:not(.orders-list-page)>.order-composer[data-step="review"] [data-prev-step]{
    display:none;
  }
  body[data-route="orders"] #page:not(.orders-list-page)>.order-composer[data-step="review"] .order-action-end{
    width:100%;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
  }
  body[data-route="orders"] #page:not(.orders-list-page)>.order-composer[data-step="review"] .order-action-end>.button{
    width:100%;
    min-width:0;
    height:var(--ui-touch-target);
    min-height:var(--ui-touch-target);
    padding-inline:var(--ui-control-pad-x);
  }
}

/* 34.43 — mobile New Order tile breathing room + subtle card separation. */
@media(max-width:760px){
  /* Store selection tiles: slightly raised/tinted surface so cards do not disappear into the page. */
  body[data-route="orders"] #page:not(.orders-list-page) .selection-card{
    min-height:72px;
    padding:9px 9px;
    background:var(--ux-surface-inset);
    border-color:var(--ux-border-card);
    box-shadow:0 1px 3px rgba(20,39,61,.07);
  }
  body[data-route="orders"] #page:not(.orders-list-page) .selection-card:hover{
    background:var(--ux-surface-hover);
  }
  body[data-route="orders"] #page:not(.orders-list-page) .selection-card.selected{
    background:var(--ux-surface-selected);
    border-color:var(--ux-info-border);
    box-shadow:0 1px 3px rgba(32,72,121,.08),inset 0 0 0 1px rgba(46,103,193,.08);
  }

  /* Add Categories tiles: reserve enough height for multilingual name + season + inventory detail. */
  .order-category-choice{
    min-height:128px;
    padding:12px 11px;
    gap:9px;
    background:var(--ux-surface-inset);
    border-color:var(--ux-border-card);
    box-shadow:0 1px 3px rgba(20,39,61,.07);
  }
  .order-category-choice:hover{background:var(--ux-surface-hover)}
  .order-category-choice:has(>input[data-category-picker-code]:checked:not(:disabled)){
    background:var(--ux-surface-selected);
    border-color:var(--ux-info-border);
    box-shadow:0 1px 3px rgba(32,72,121,.08),inset 0 0 0 1px rgba(46,103,193,.08);
  }
  .order-category-choice.already-selected{
    background:var(--ux-surface-disabled);
    box-shadow:none;
  }
  .order-category-choice-name strong{
    line-height:1.34;
  }
  .order-category-choice-inventory{
    padding-top:7px;
    line-height:1.35;
  }
  .order-category-choice-inventory small,
  .order-category-choice-inventory em{
    line-height:1.35;
  }
}

/* 34.44 — mobile New Order selection surfaces: stable Store selection + shaded scroll regions. */
@media(max-width:760px){
  /* Put the differentiation on the scrolling/content surface, not on every card. */
  body[data-route="orders"] #page:not(.orders-list-page) .store-selection-grid-simple{
    padding:8px;
    border:1px solid var(--ux-border-panel);
    border-radius:12px;
    background:var(--ux-surface-well);
  }
  body[data-route="orders"] #page:not(.orders-list-page) .selection-card{
    min-height:72px;
    padding:9px;
    background:var(--ux-surface);
    border-color:var(--ux-border-card);
    box-shadow:none;
  }
  body[data-route="orders"] #page:not(.orders-list-page) .selection-card:hover{background:var(--ux-surface)}
  body[data-route="orders"] #page:not(.orders-list-page) .selection-card.selected{
    background:var(--ux-surface-selected);
    border-color:var(--ux-info-border);
    box-shadow:inset 0 0 0 1px rgba(46,103,193,.08);
  }

  .order-category-picker-list{
    padding:8px;
    border:1px solid var(--ux-border-panel);
    border-radius:12px;
    background:var(--ux-surface-well);
  }
  .order-category-choice{
    min-height:128px;
    padding:12px 11px;
    gap:9px;
    background:var(--ux-surface);
    border-color:var(--ux-border-card);
    box-shadow:none;
  }
  .order-category-choice:hover{background:var(--ux-surface)}
  .order-category-choice:has(>input[data-category-picker-code]:checked:not(:disabled)){
    background:var(--ux-surface-selected);
    border-color:var(--ux-info-border);
    box-shadow:inset 0 0 0 1px rgba(46,103,193,.08);
  }
  .order-category-choice.already-selected{background:var(--ux-surface-muted);box-shadow:none}
}

/* Production build 34.45 — mobile content-sized category tiles + clearer Review store separation. */
@media(max-width:760px){
  /* Category cards keep a useful minimum, but grow naturally with multilingual/inventory content. */
  .order-category-picker-list{grid-auto-rows:auto}
  .order-category-choice{
    min-height:132px;
    height:auto;
    align-items:start;
    overflow:visible;
  }
  .order-category-choice-name{
    align-self:start;
    align-content:start;
  }
  .order-category-choice-name strong{
    display:block;
    -webkit-line-clamp:unset;
    overflow:visible;
    text-overflow:clip;
    white-space:normal;
  }
  .order-category-choice-inventory{align-self:start}

  /* New Order Review: separate Store groups without wasting meaningful screen space. */
  body[data-route="orders"] #page:not(.orders-list-page) .order-review-list{gap:9px}
}

/* 34.47 — mobile New Order Quantities: shaded scrolling surface behind quantity cards. */
@media(max-width:760px){
  body[data-route="orders"] #page:not(.orders-list-page) .order-mobile-category-list{
    padding:8px;
    border:1px solid var(--ux-border-panel);
    border-radius:12px;
    background:var(--ux-surface-well);
    scroll-padding:8px;
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-mobile-quantity-card{
    background:var(--ux-surface);
    border-color:var(--ux-border-card);
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-mobile-quantity-card.has-quantity{
    background:var(--ux-info-soft);
    border-color:var(--ux-info-border);
  }
}

/* 34.48 — mobile New Order Review summary: fit four metrics without horizontal overflow. */
@media(max-width:760px){
  body[data-route="orders"] #page:not(.orders-list-page) .order-composer[data-step="review"] .review-summary{
    grid-template-columns:repeat(2,minmax(0,1fr));
    width:100%;
    gap:6px;
    margin-bottom:9px;
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-composer[data-step="review"] .review-summary article{
    min-width:0;
    padding:8px 10px;
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-composer[data-step="review"] .review-summary span{
    line-height:1.15;
    white-space:normal;
    overflow-wrap:anywhere;
  }
  body[data-route="orders"] #page:not(.orders-list-page) .order-composer[data-step="review"] .review-summary strong{
    display:block;
    margin-top:2px;
    font-size:18px;
    line-height:1.1;
  }
}

/* 34.49 — Mobile Approval viewport recovery.
   Keep approval context available without allowing it to consume the category workspace. */
@media(max-width:760px){
  #page[data-page="approval"]:has(.approval-gate-workspace){
    grid-template-rows:auto minmax(0,1fr) auto;
    overflow:hidden;
    padding-top:0;
  }

  /* The Approval toolbar already carries the active-order context on mobile. */
  #page[data-page="approval"]:has(.approval-gate-workspace)>.workspace-header{
    display:none;
  }

  /* One swipeable context strip instead of four stacked toolbar rows. */
  #page[data-page="approval"] .approval-review-toolbar{
    width:100%;
    height:62px;
    min-height:62px;
    display:flex;
    align-items:flex-end;
    gap:var(--ui-gap-tight);
    padding:3px 6px 4px;
    margin:0;
    overflow-x:auto;
    overflow-y:hidden;
    overscroll-behavior-inline:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
    scroll-snap-type:x proximity;
    border-block-start:0;
    background:var(--ux-surface-muted);
  }
  #page[data-page="approval"] .approval-review-field{
    flex:0 0 auto;
    min-width:0;
    height:55px;
    grid-template-rows:8px 44px;
    gap:3px;
    align-items:end;
    scroll-snap-align:start;
  }
  #page[data-page="approval"] .approval-review-label{
    height:8px;
    line-height:8px;
    font-size:7.5px;
  }
  #page[data-page="approval"] .approval-review-back{width:44px}
  #page[data-page="approval"] .approval-review-working{width:min(72vw,260px)}
  #page[data-page="approval"] .approval-review-date{width:150px}
  #page[data-page="approval"] .approval-review-meta{width:190px}
  #page[data-page="approval"] .approval-review-dispatch{width:270px}
  #page[data-page="approval"] .approval-review-back>.approval-review-label{visibility:hidden}
  #page[data-page="approval"] .approval-review-back>button,
  #page[data-page="approval"] .approval-review-order-select,
  #page[data-page="approval"] .approval-review-control,
  #page[data-page="approval"] .approval-review-dispatch-buttons,
  #page[data-page="approval"] .approval-review-toolbar .approval-order-date-readonly,
  #page[data-page="approval"] .approval-review-toolbar .approval-order-date-editor,
  #page[data-page="approval"] .approval-review-toolbar .approval-order-date-editor>input[type="date"],
  #page[data-page="approval"] .approval-review-toolbar .approval-order-date-editor>.localized-date-input,
  #page[data-page="approval"] .approval-review-toolbar .approval-order-date-editor>.localized-date-input .localized-date-display{
    height:var(--ui-touch-target);
    min-height:var(--ui-touch-target);
  }
  #page[data-page="approval"] .approval-review-order-meta{
    height:44px;
    padding-inline:8px;
  }
  #page[data-page="approval"] .approval-review-dispatch-buttons{
    grid-template-columns:repeat(3,minmax(0,1fr));
    width:100%;
  }
  #page[data-page="approval"] .approval-review-dispatch-buttons>[data-bulk-dispatch]{
    min-width:0;
    height:var(--ui-touch-target);
    min-height:var(--ui-touch-target);
    padding-inline:5px;
  }

  /* Everything below the context strip belongs to the working viewport. */
  #page[data-page="approval"] .approval-gate-surface{
    min-height:0;
    height:100%;
    margin:4px 0;
    overflow:hidden;
  }
  #page[data-page="approval"] .approval-gate-workspace{
    min-height:0;
    height:100%;
    grid-template-rows:58px minmax(0,1fr);
    overflow:hidden;
  }
  #page[data-page="approval"] .approval-gate-editor{
    min-height:0;
    height:100%;
    overflow:hidden;
  }
  #page[data-page="approval"] .approval-gate-table-wrap{
    min-height:0;
    overflow-y:auto;
    overflow-x:hidden;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
  }
}

/* 34.50 — Mobile Approval follows the successful mobile Quantities interaction model. */
@media(max-width:760px){
  #page[data-page="approval"]:has(.approval-gate-workspace){
    height:calc(100dvh - var(--topbar-height) - var(--mobile-bottom-nav));
    min-height:0;
    display:grid;
    grid-template-rows:auto minmax(0,1fr) auto;
    overflow:hidden;
    padding:0 6px;
  }
  #page[data-page="approval"]>.workspace-header,
  #page[data-page="approval"]>.approval-review-toolbar{display:none}
  #page[data-page="approval"] .approval-mobile-date{min-width:0;display:grid;gap:2px;justify-items:end}
  #page[data-page="approval"] .approval-mobile-date>span{color:var(--ux-ink-muted);font-size:8px;font-weight:700}
  #page[data-page="approval"] .approval-mobile-date .approval-order-date-readonly{height:auto;min-height:0;padding:0;border:0;background:transparent;font-size:11px}
  #page[data-page="approval"] .approval-mobile-date .approval-order-date-editor{width:132px;min-width:132px;gap:1px}
  #page[data-page="approval"] .approval-mobile-date .approval-order-date-editor>small{display:none}
  #page[data-page="approval"] .approval-mobile-date .approval-order-date-editor>input[type="date"],
  #page[data-page="approval"] .approval-mobile-date .approval-order-date-editor>.localized-date-input,
  #page[data-page="approval"] .approval-mobile-date .localized-date-display{height:36px;min-height:36px;font-size:10px}

  #page[data-page="approval"] .approval-gate-surface{height:100%;min-height:0;margin:0;overflow:hidden}
  #page[data-page="approval"] .approval-gate-workspace{height:100%;min-height:0;display:grid;grid-template-rows:76px minmax(0,1fr);overflow:hidden}
  #page[data-page="approval"] .approval-gate-store-panel{min-width:0;overflow:hidden;border:0;background:transparent}
  #page[data-page="approval"] .approval-gate-store-panel>header{display:none}
  #page[data-page="approval"] .approval-gate-store-list{
    height:76px;
    display:flex;
    gap:6px;
    padding:3px 2px 6px;
    overflow-x:auto;
    overflow-y:hidden;
    scrollbar-width:none;
    background:var(--ux-app-bg);
  }
  #page[data-page="approval"] .approval-gate-store-list::-webkit-scrollbar{display:none}
  #page[data-page="approval"] .approval-gate-store{flex:0 0 128px;min-width:128px;max-width:128px;height:68px;min-height:68px;padding:6px 8px;grid-template-columns:32px minmax(0,1fr) 18px;border-radius:10px;background:var(--ux-surface)}
  #page[data-page="approval"] .approval-gate-store.selected{background:var(--ux-surface-selected);border-color:var(--ux-info-border);box-shadow:inset 0 -3px var(--ux-accent)}
  #page[data-page="approval"] .approval-gate-store-code{font-size:15px}
  #page[data-page="approval"] .approval-gate-store-copy strong{font-size:10.5px}
  #page[data-page="approval"] .approval-gate-store-copy small{font-size:8px}

  #page[data-page="approval"] .approval-gate-editor{
    min-height:0;
    height:100%;
    margin:0;
    display:grid;
    grid-template-rows:auto auto minmax(0,1fr);
    overflow:hidden;
    border:0;
    border-radius:0;
    background:transparent;
  }
  #page[data-page="approval"] .approval-gate-editor-head{
    min-height:0;
    padding:6px 7px;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:6px;
    align-items:center;
    border:1px solid var(--ux-border);
    border-radius:10px 10px 0 0;
    background:var(--ux-surface);
  }
  #page[data-page="approval"] .approval-gate-editor-head>div:first-child{min-width:0}
  #page[data-page="approval"] .approval-gate-editor-head>div:first-child>div{display:flex;align-items:center;gap:7px;flex-wrap:nowrap}
  #page[data-page="approval"] .approval-gate-editor-head h2{min-width:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
  #page[data-page="approval"] .approval-gate-editor-head>div:first-child>small{display:none}
  #page[data-page="approval"] .approval-gate-editor-actions{display:grid;grid-template-columns:44px minmax(156px,192px);gap:5px;align-items:center}
  #page[data-page="approval"] .approval-gate-editor-actions>.button{width:var(--ui-touch-target);height:var(--ui-touch-target);padding:0;font-size:0}
  #page[data-page="approval"] .approval-gate-editor-actions>.button svg{margin:0}
  #page[data-page="approval"] .approval-dispatch-choice{width:100%;min-width:0;height:44px;min-height:44px}

  #page[data-page="approval"] .approval-gate-state-strip{
    min-height:36px;
    padding:4px 7px;
    border-inline:1px solid var(--ux-border);
    background:var(--ux-surface);
  }
  #page[data-page="approval"] .approval-gate-state-strip>div{width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
  #page[data-page="approval"] .approval-gate-state-strip span{display:grid;gap:1px;text-align:center;font-size:8px;color:var(--ux-ink-muted)}
  #page[data-page="approval"] .approval-gate-state-strip strong{font-size:12px;color:var(--ux-ink)}
  #page[data-page="approval"] .approval-gate-state-strip p{display:none}
  #page[data-page="approval"] .approval-dispatch-note{display:none}

  #page[data-page="approval"] .approval-gate-table-wrap{
    min-height:0;
    overflow-y:auto;
    overflow-x:hidden;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    background:var(--ux-surface-well);
    border:1px solid var(--ux-border);
    border-top:0;
    border-radius:0 0 10px 10px;
  }
  #page[data-page="approval"] .approval-gate-table{display:block;min-width:0;width:100%}
  #page[data-page="approval"] .approval-gate-table thead{display:none}
  #page[data-page="approval"] .approval-gate-table tbody{display:grid;gap:var(--ui-gap);padding:8px;background:var(--ux-surface-well)}
  #page[data-page="approval"] .approval-gate-table tr{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    grid-template-areas:
      "category category category"
      "requested fulfilled difference"
      "approved approved approved"
      "availability availability action";
    gap:var(--ui-gap);
    padding:10px;
    background:var(--ux-surface);
    border:1px solid var(--ux-border);
    border-radius:11px;
  }
  #page[data-page="approval"] .approval-gate-table td{height:auto;min-width:0;padding:0;border:0;display:grid;gap:3px}
  #page[data-page="approval"] .approval-gate-table td::before{color:var(--ux-ink-muted);font-size:8px;font-weight:700}
  #page[data-page="approval"] .approval-gate-table td:nth-child(1){grid-area:category}
  #page[data-page="approval"] .approval-gate-table td:nth-child(2){grid-area:requested;text-align:start}
  #page[data-page="approval"] .approval-gate-table td:nth-child(3){grid-area:approved}
  #page[data-page="approval"] .approval-gate-table td:nth-child(4){grid-area:fulfilled;text-align:center}
  #page[data-page="approval"] .approval-gate-table td:nth-child(5){grid-area:difference;text-align:end}
  #page[data-page="approval"] .approval-gate-table td:nth-child(6){grid-area:availability;align-content:center}
  #page[data-page="approval"] .approval-gate-table td:nth-child(7){grid-area:action;align-content:center}
  #page[data-page="approval"] .approval-category-cell{grid-template-columns:48px minmax(0,1fr);gap:8px;align-items:center}
  #page[data-page="approval"] .approval-category-cell .object-code{font-size:20px;font-weight:850}
  #page[data-page="approval"] .approval-category-cell strong{white-space:normal;font-size:11.5px;line-height:1.18}
  #page[data-page="approval"] .approval-gate-table td:nth-child(2)>bdi,
  #page[data-page="approval"] .approval-gate-table td:nth-child(4)>strong,
  #page[data-page="approval"] .approval-gate-table td:nth-child(5)>bdi{font-size:14px;font-weight:800}
  #page[data-page="approval"] .approval-quantity-control{width:100%;height:var(--ui-touch-target);min-height:var(--ui-touch-target);grid-template-columns:44px minmax(0,1fr) 44px}
  #page[data-page="approval"] .approval-quantity-control>button,
  #page[data-page="approval"] .approval-quantity-control>input{height:var(--ui-touch-target);min-height:44px}
  #page[data-page="approval"] .approval-row-action .icon-button{width:var(--ui-touch-target);height:var(--ui-touch-target);min-width:var(--ui-touch-target);min-height:var(--ui-touch-target);margin-inline-start:auto}

  #page[data-page="approval"] .approval-gate-actionbar{min-height:56px;height:auto;margin:0 -6px;padding:5px 6px calc(5px + var(--mobile-safe-bottom));background:var(--ux-surface);border-top:1px solid var(--ux-border)}
  #page[data-page="approval"] .approval-gate-actionbar>div:first-child{display:none}
  #page[data-page="approval"] .approval-gate-actions{display:flex;width:100%;gap:5px}
  #page[data-page="approval"] .approval-gate-actions .button{flex:1;min-width:0;height:var(--ui-touch-target);min-height:var(--ui-touch-target);padding-inline:5px;font-size:9px}
}

/* Production build 34.54 — accepted 34.53 baseline plus mobile Collection order-date context. */
.approval-store-panel-tools{display:flex!important;align-items:center;gap:6px;min-width:0}
.approval-store-sort{display:flex!important;align-items:center;gap:5px;min-width:0;margin:0;color:var(--ux-ink-muted);font-size:9px;font-weight:750;white-space:nowrap}
.approval-store-sort>select{width:auto;min-width:92px;height:30px;min-height:30px;padding:3px 24px 3px 7px;border:1px solid var(--ux-border);border-radius:7px;background:var(--ux-surface);color:var(--ux-ink);font-size:10.5px;font-weight:700}

/* Order Excel import owns the viewport budget; the outer modal never scrolls horizontally. */
#modal-host:has(.order-import-modal) .modal{width:min(1080px,calc(100vw - 32px));height:min(760px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);overflow:hidden}
#modal-host:has(.order-import-modal) .modal-body{width:100%;height:100%;min-width:0;min-height:0;overflow:hidden;box-sizing:border-box}
.order-import-modal{width:100%;height:100%;min-width:0;min-height:0;max-height:none;display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:var(--ui-gap-loose);overflow:hidden}
.order-import-modal>[data-import-preview]{min-width:0;min-height:0;overflow:hidden}
.order-import-review{width:100%;height:100%;min-width:0;min-height:0;max-height:none;overflow:hidden;grid-template-rows:auto auto minmax(0,1fr) auto auto}
.order-import-review>header,.order-import-metrics,.order-import-review-grid,.order-import-fields,.order-import-review>footer{min-width:0;max-width:100%}
.order-import-review-grid{min-width:0;min-height:0;grid-template-columns:minmax(0,.9fr) minmax(0,1.2fr);overflow:hidden}
.order-import-issues,.order-import-lines{min-width:0;min-height:0;max-width:100%;overflow:hidden}
.order-import-issues>div,.order-import-lines>div{min-width:0;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
.order-import-line{width:100%;min-width:0;max-width:100%;box-sizing:border-box;grid-template-columns:minmax(0,.8fr) minmax(0,1.4fr) minmax(44px,70px)}
.order-import-line>*{min-width:0}
.order-import-fields{grid-template-columns:minmax(160px,180px) minmax(0,1fr)}
.order-import-review>footer{overflow:hidden}

@media(max-width:760px){
  #modal-host:has(.order-import-modal) .modal-backdrop{padding:0;place-items:stretch;background:var(--ux-surface);backdrop-filter:none}
  #modal-host:has(.order-import-modal) .modal{width:100vw;height:100dvh;max-width:none;max-height:100dvh;margin:0;border:0;border-radius:0;box-shadow:none;overflow:hidden}
  #modal-host:has(.order-import-modal) .modal-body{padding:10px 10px max(10px,var(--mobile-safe-bottom));overflow:hidden}
  #modal-host:has(.order-import-modal) .modal-close{width:var(--ui-touch-target);height:var(--ui-touch-target);inset-block-start:6px;inset-inline-end:6px}
  .order-import-modal{gap:9px;grid-template-rows:auto auto minmax(0,1fr)}
  .order-import-modal .modal-heading{padding-inline-end:48px}
  .order-import-start{grid-template-columns:1fr;gap:7px}
  .order-import-start>.button,.order-import-modal .file-drop{min-height:44px}
  .order-import-review{gap:8px;grid-template-rows:auto auto minmax(0,1fr) auto auto;max-height:none;overflow:hidden}
  .order-import-review>header{padding:8px;gap:8px}
  .order-import-review>header strong{font-size:12px}
  .order-import-review>header small{font-size:10px;white-space:normal}
  .order-import-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
  .order-import-metrics article{min-width:0;padding:6px 7px}
  .order-import-metrics span{font-size:9px}.order-import-metrics strong{font-size:14px}
  .order-import-review-grid{display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:max-content;align-content:start;gap:8px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding-inline-end:1px}
  .order-import-issues,.order-import-lines{display:block;min-height:0;overflow:visible}
  .order-import-issues>header,.order-import-lines>header{min-height:40px;align-items:center}
  .order-import-issues>div,.order-import-lines>div{overflow:visible}
  .order-import-line{grid-template-columns:minmax(72px,.8fr) minmax(0,1.4fr) minmax(42px,52px);font-size:11px}
  .order-import-fields{grid-template-columns:minmax(0,1fr);gap:7px}
  .order-import-fields label{font-size:10px}.order-import-fields input{min-height:44px;font-size:16px}
  .order-import-review>footer{display:grid;gap:7px;padding-top:7px}.order-import-review>footer>span{font-size:10px}.order-import-review>footer .button{width:100%;min-height:44px}

  #page[data-page="approval"]:has(.approval-mobile-shell){height:calc(100dvh - var(--topbar-height) - var(--mobile-bottom-nav));min-height:0;display:block;overflow:hidden;padding:0 8px}
  #page[data-page="approval"] .approval-mobile-shell{height:100%;min-height:0;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:6px;overflow:hidden;box-sizing:border-box;padding:6px 0 0}
  #page[data-page="approval"] .approval-mobile-head{min-width:0;min-height:48px;display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:8px;align-items:center}
  #page[data-page="approval"] .approval-mobile-head>.icon-button{width:var(--ui-touch-target);height:44px}
  #page[data-page="approval"] .approval-mobile-head-copy{min-width:0;display:grid;gap:2px;align-content:center}
  #page[data-page="approval"] .approval-mobile-head-copy>strong{font-size:19px;line-height:1.05}
  #page[data-page="approval"] .approval-mobile-head-copy>small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ux-ink-muted);font-size:11px}
  #page[data-page="approval"] .approval-mobile-return{justify-self:start;min-height:var(--ui-touch-target);padding:4px 0;border:0;background:transparent;color:var(--ux-danger);font:inherit;font-size:11px;font-weight:750;text-decoration:underline;text-underline-offset:2px;cursor:pointer}
  #page[data-page="approval"] .approval-mobile-date-compact{width:118px;min-width:118px;display:grid;gap:2px;justify-items:end}
  #page[data-page="approval"] .approval-mobile-date-compact>span{font-size:10px;color:var(--ux-ink-muted);font-weight:750}
  #page[data-page="approval"] .approval-mobile-date-compact .approval-order-date-editor{width:118px;min-width:118px;gap:0}
  #page[data-page="approval"] .approval-mobile-date-compact .approval-order-date-editor>small{display:none}
  #page[data-page="approval"] .approval-mobile-date-compact .approval-order-date-editor>input[type="date"],
  #page[data-page="approval"] .approval-mobile-date-compact .approval-order-date-editor>.localized-date-input,
  #page[data-page="approval"] .approval-mobile-date-compact .localized-date-display{height:44px;min-height:44px;font-size:12px}

  #page[data-page="approval"] .approval-mobile-controls{min-width:0;display:grid;gap:6px}
  #page[data-page="approval"] .approval-mobile-all-dispatch{min-width:0;min-height:44px;display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;align-items:center}
  #page[data-page="approval"] .approval-mobile-all-dispatch>span{font-size:10px;color:var(--ux-ink-muted);font-weight:750;white-space:nowrap}
  #page[data-page="approval"] .approval-mobile-all-dispatch .approval-review-dispatch-buttons{height:var(--ui-touch-target);min-height:var(--ui-touch-target);width:100%;grid-template-columns:repeat(3,minmax(0,1fr))}
  #page[data-page="approval"] .approval-mobile-all-dispatch .approval-review-dispatch-buttons>button{height:var(--ui-touch-target);min-height:var(--ui-touch-target);min-width:0;padding-inline:5px;font-size:11px}
  #page[data-page="approval"] .approval-mobile-store-tools{min-width:0;min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding-inline:2px}
  #page[data-page="approval"] .approval-mobile-store-tools>strong{font-size:13px}
  #page[data-page="approval"] .approval-mobile-store-tools .approval-store-sort{font-size:10px}
  #page[data-page="approval"] .approval-mobile-store-tools .approval-store-sort>select{min-width:116px;height:44px;min-height:44px;padding-inline:9px 28px;font-size:12px}
  #page[data-page="approval"] .approval-mobile-store-rail{min-width:0;height:80px;display:flex;gap:7px;overflow-x:auto;overflow-y:hidden;padding:2px 1px 6px;scrollbar-width:none;scroll-snap-type:x proximity}
  #page[data-page="approval"] .approval-mobile-store-rail::-webkit-scrollbar{display:none}
  #page[data-page="approval"] .approval-mobile-store-tile{flex:0 0 142px;min-width:142px;height:72px;display:grid;grid-template-columns:44px minmax(0,1fr);grid-template-rows:auto auto;grid-template-areas:"code name" "dispatch meta";gap:4px 7px;align-items:center;padding:7px 9px;border:1px solid #d6dfe8;border-radius:10px;background:var(--ux-surface);color:var(--ux-ink);text-align:start;scroll-snap-align:start}
  #page[data-page="approval"] .approval-mobile-store-tile>strong{grid-area:code;font-size:18px;line-height:1;font-weight:850}
  #page[data-page="approval"] .approval-mobile-store-tile>span{grid-area:name;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:750}
  #page[data-page="approval"] .approval-mobile-store-tile>small{grid-area:meta;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ux-ink-muted);font-size:10px}
  #page[data-page="approval"] .approval-mobile-store-tile>em{grid-area:dispatch;justify-self:start;padding:3px 6px;border-radius:999px;background:var(--ux-surface-sunken);color:#586574;font-style:normal;font-size:9px;font-weight:800;line-height:1}
  #page[data-page="approval"] .approval-mobile-store-tile>em[data-method="katz"]{background:var(--ux-info-soft);color:var(--ux-info)}
  #page[data-page="approval"] .approval-mobile-store-tile>em[data-method="driver"]{background:var(--ux-success-soft);color:var(--ux-success)}
  #page[data-page="approval"] .approval-mobile-store-tile.active{background:var(--ux-surface-selected);border-color:var(--ux-info-border);box-shadow:inset 0 -3px var(--ux-accent)}

  #page[data-page="approval"] .approval-mobile-workspace{min-width:0;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);gap:var(--ui-gap-tight);overflow:hidden}
  #page[data-page="approval"] .approval-mobile-workspace>.empty-state{grid-row:1/-1;min-height:0;overflow:auto}
  #page[data-page="approval"] .approval-mobile-store-context{min-width:0;display:grid;grid-template-rows:auto 44px;gap:5px}
  #page[data-page="approval"] .approval-mobile-store-head{min-width:0;min-height:56px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;padding:6px 8px;border:1px solid #dce3ea;border-radius:10px;background:var(--ux-surface)}
  #page[data-page="approval"] .approval-mobile-store-identity{min-width:0;display:flex;align-items:center;gap:8px}
  #page[data-page="approval"] .approval-mobile-store-identity>.store-code-tag{flex:0 0 auto;font-size:18px;font-weight:850}
  #page[data-page="approval"] .approval-mobile-store-identity>span:last-child{min-width:0;display:grid;gap:2px}
  #page[data-page="approval"] .approval-mobile-store-identity strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
  #page[data-page="approval"] .approval-mobile-store-identity small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ux-ink-muted);font-size:10px}
  #page[data-page="approval"] .approval-mobile-add-category{height:44px;min-height:44px;max-width:148px;padding-inline:8px;font-size:11px}
  #page[data-page="approval"] .approval-mobile-store-dispatch{min-width:0;height:44px}
  #page[data-page="approval"] .approval-mobile-store-dispatch .dispatch-choice{width:100%;height:44px;min-height:44px;grid-template-columns:repeat(3,minmax(0,1fr))}
  #page[data-page="approval"] .approval-mobile-store-dispatch .dispatch-choice>button{height:var(--ui-touch-target);min-height:var(--ui-touch-target);min-width:0;padding-inline:5px;font-size:12px}

  #page[data-page="approval"] .approval-mobile-line-list{min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;display:grid;align-content:start;gap:8px;padding:8px;border:1px solid var(--ux-border-panel);border-radius:12px;background:var(--ux-surface-well);scroll-padding:8px}
  #page[data-page="approval"] .approval-mobile-line-card{min-width:0;display:grid;gap:9px;padding:10px;border:1px solid #d7e0e9;border-radius:11px;background:var(--ux-surface)}
  #page[data-page="approval"] .approval-mobile-line-card.approval-invalid-line{border-color:var(--ux-danger-border);background:var(--ux-danger-soft)}
  #page[data-page="approval"] .approval-mobile-line-card>header{min-width:0;display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
  #page[data-page="approval"] .approval-mobile-line-card>header>div{min-width:0;display:grid;grid-template-columns:54px minmax(0,1fr);gap:8px;align-items:start}
  #page[data-page="approval"] .approval-mobile-line-card .object-code{font-size:22px;font-weight:900;line-height:1}
  #page[data-page="approval"] .approval-mobile-line-card>header>div>span:last-child{min-width:0;display:grid;gap:2px}
  #page[data-page="approval"] .approval-mobile-line-card>header strong{white-space:normal;font-size:14px;line-height:1.255}
  #page[data-page="approval"] .approval-mobile-line-card>header small{font-size:10px;color:var(--ux-ink-muted)}
  #page[data-page="approval"] .approval-mobile-line-card .approval-availability{flex:0 0 auto;font-size:10px}
  #page[data-page="approval"] .approval-mobile-line-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  #page[data-page="approval"] .approval-mobile-line-metrics>span{min-width:0;display:grid;gap:2px;padding:6px;border-radius:7px;background:var(--ux-surface-subtle);text-align:center}
  #page[data-page="approval"] .approval-mobile-line-metrics small{font-size:10px;color:var(--ux-ink-muted)}
  #page[data-page="approval"] .approval-mobile-line-metrics strong{font-size:17px;line-height:1.05}
  #page[data-page="approval"] .approval-mobile-approved{display:grid;gap:5px}
  #page[data-page="approval"] .approval-mobile-approved>span{font-size:10px;color:var(--ux-ink-muted);font-weight:750}
  #page[data-page="approval"] .approval-mobile-approved .approval-quantity-control{width:100%;height:var(--ui-touch-target);min-height:var(--ui-touch-target);grid-template-columns:44px minmax(0,1fr) 44px}
  #page[data-page="approval"] .approval-mobile-approved-readonly{min-height:44px;display:grid;place-items:center;border:1px solid var(--ux-border);border-radius:8px;background:var(--ux-surface-inset);font-size:18px}
  #page[data-page="approval"] .approval-mobile-remove-category{justify-self:end;min-height:44px;height:44px;padding-inline:10px;font-size:11px}

  #page[data-page="approval"] .approval-mobile-footer{min-width:0;min-height:56px;display:block;margin-inline:-8px;padding:6px 8px calc(6px + var(--mobile-safe-bottom));border-top:1px solid var(--ux-border);background:var(--ux-surface)}
  #page[data-page="approval"] .approval-mobile-footer-summary{display:none}
  #page[data-page="approval"] .approval-mobile-footer-actions{display:flex;width:100%;gap:6px}
  #page[data-page="approval"] .approval-mobile-footer-actions>.button{flex:1;min-width:0;height:var(--ui-touch-target);min-height:var(--ui-touch-target);padding-inline:7px;font-size:11px}
}

/* 34.54 — mobile Collection store rail keeps the selected Order date in immediate context. */
.collection-store-order-date{display:none}
@media (max-width:760px){
  #page[data-page="collection"] .collection-gate-store-panel>header>div>strong{display:flex!important;align-items:center!important;gap:6px!important;min-width:0!important;white-space:nowrap!important}
  #page[data-page="collection"] .collection-store-order-date{display:inline!important;color:var(--ux-ink-muted)!important;font-size:10.5px!important;font-weight:650!important;line-height:1!important;white-space:nowrap!important}
}


/* 34.55 — Collection uses fixed operational store order; mobile category cards get +5px separation. */
@media (max-width:760px){
  #page[data-page="collection"] .collection-category-row{margin-bottom:10px!important}
}

/* 34.56 — operational Analytics foundation. */
#page[data-page="analytics"]{min-width:0}
.analytics-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 12px;padding:9px 10px;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface)}
.analytics-toolbar>span{font-size:12px;font-weight:700;color:var(--ink)}
.analytics-toolbar>small{margin-inline-start:auto;color:var(--ink-soft);font-size:11px}
.analytics-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:10px}
.analytics-kpis article{min-width:0;padding:12px 14px;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface)}
.analytics-kpis span,.analytics-kpis small{display:block;color:var(--ink-soft)}
.analytics-kpis span{font-size:10px;font-weight:780;letter-spacing:.04em;text-transform:uppercase}
.analytics-kpis strong{display:block;margin:3px 0 1px;color:var(--ink-strong);font-size:22px;line-height:1.1}
.analytics-kpis small{font-size:10px}
.analytics-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.75fr);gap:10px;align-items:stretch}
.analytics-card{min-width:0;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface);overflow:hidden}
.analytics-card>header{min-height:54px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid var(--line-soft)}
.analytics-card>header>div{min-width:0}
.analytics-card h2{margin:0;color:var(--ink-strong);font-size:14px;line-height:1.25}
.analytics-card header p{margin:2px 0 0;color:var(--ink-soft);font-size:10.5px;line-height:1.35}
.analytics-flow-card,.analytics-top-categories-card{grid-column:1}
.analytics-card-wide{grid-column:1/-1}
.analytics-weekday-card,.analytics-dispatch-card,.analytics-health-card{grid-column:2}
.analytics-top-categories-card{grid-row:2 / span 2}
.analytics-chart-wrap{min-width:0;padding:8px 10px 0}
.analytics-line-svg{display:block;width:100%;height:auto;max-height:286px;min-height:220px;overflow:visible}
.analytics-chart-grid{stroke:var(--line-soft);stroke-width:1}
.analytics-axis-label{fill:var(--ink-faint);font-family:var(--font-ui);font-size:10px}
.analytics-chart-empty{min-height:220px;display:grid;place-items:center;color:var(--ink-soft);font-size:12px}
.analytics-legend{display:flex;align-items:center;gap:6px 12px;flex-wrap:wrap;padding:6px 12px 11px}
.analytics-legend-item{display:inline-flex;align-items:center;gap:6px;max-width:240px;padding:3px 0;border:0;background:transparent;color:var(--ink);font-size:10px;text-align:start}
.analytics-legend-item:disabled{opacity:1;cursor:default}
.analytics-legend-item:not(:disabled){cursor:pointer}
.analytics-legend-item.muted{opacity:.38}
.analytics-legend-item i{width:14px;height:3px;flex:0 0 14px;border-radius:99px;background:var(--legend-color)}
.analytics-legend-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.analytics-weekday-card>footer{padding:8px 12px;border-top:1px solid var(--line-soft);color:var(--ink-faint);font-size:9.5px;line-height:1.35}
.analytics-weekday-bars{height:245px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;align-items:end;padding:14px 12px 10px}
.analytics-weekday-bars article{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:6px;align-items:end;text-align:center;min-width:0}
.analytics-weekday-value{display:grid;justify-items:center;min-height:49px}
.analytics-weekday-value strong{font-size:13px;color:var(--ink-strong)}
.analytics-weekday-value small{font-size:8.5px;color:var(--ink-faint);white-space:nowrap}
.analytics-weekday-value em{margin-top:2px;font-size:8px;font-style:normal;font-weight:650;color:var(--ink-muted);white-space:nowrap}
.analytics-weekday-track{height:100%;min-height:120px;display:flex;align-items:flex-end;justify-content:center;border-radius:7px 7px 3px 3px;background:linear-gradient(to top,var(--blue-100),transparent);overflow:hidden}
.analytics-weekday-track i{display:block;width:min(34px,62%);min-height:0;border-radius:6px 6px 2px 2px;background:linear-gradient(180deg,var(--blue-500),var(--blue-700));transition:height .18s ease}
.analytics-weekday-bars article>span{font-size:10px;font-weight:750;color:var(--ink)}
.analytics-donut-layout{min-height:246px;display:grid;grid-template-columns:minmax(150px,.85fr) minmax(150px,1fr);gap:12px;align-items:center;padding:16px}
.analytics-donut{justify-self:center;width:156px;aspect-ratio:1;border-radius:50%;display:grid;place-items:center;position:relative;box-shadow:inset 0 0 0 1px rgba(11,23,37,.05)}
.analytics-donut.empty{background:var(--line-soft)}
.analytics-donut::after{content:"";position:absolute;width:62%;aspect-ratio:1;border-radius:50%;background:var(--surface);box-shadow:0 0 0 1px var(--line-soft)}
.analytics-donut>div{position:relative;z-index:1;display:grid;place-items:center}
.analytics-donut strong{font-size:22px;line-height:1;color:var(--ink-strong)}
.analytics-donut span{margin-top:3px;color:var(--ink-soft);font-size:10px}
.analytics-donut-legend{display:grid;gap:8px}
.analytics-donut-legend p{margin:0;display:grid;grid-template-columns:10px minmax(0,1fr) auto;gap:7px;align-items:center;padding:7px 0;border-bottom:1px solid var(--line-soft)}
.analytics-donut-legend p:last-child{border-bottom:0}
.analytics-donut-legend i{width:9px;height:9px;border-radius:50%}
.analytics-donut-legend i.katz{background:#285d94}.analytics-donut-legend i.driver{background:#0f6b70}.analytics-donut-legend i.unassigned{background:#d8e0e8}
.analytics-donut-legend span{font-size:11px;color:var(--ink)}
.analytics-donut-legend strong{font-size:12px;color:var(--ink-strong)}
.analytics-donut-legend small{font-size:9px;color:var(--ink-soft);font-weight:650}
.analytics-category-modal{width:min(820px,100%);max-height:min(720px,82dvh);display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:var(--ui-gap-loose);min-width:0}
.analytics-category-modal>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.analytics-category-modal h2{margin:0;font-size:18px}.analytics-category-modal header p{margin:3px 0 0;color:var(--ink-soft);font-size:12px}.analytics-category-modal header>strong{white-space:nowrap;color:var(--blue-700);font-size:12px}
.analytics-picker-search{margin:0;display:grid;gap:5px}.analytics-picker-search>span{font-size:10px;color:var(--ink-soft)}
.analytics-picker-list{min-height:0;overflow:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--ui-gap-tight);padding:1px}
.analytics-picker-row{min-width:0;margin:0;display:grid;grid-template-columns:20px minmax(0,1fr);gap:var(--ui-gap);align-items:center;padding:8px 9px;border:1px solid var(--line);border-radius:8px;background:var(--surface);cursor:pointer}
.analytics-picker-row:hover{border-color:var(--line-strong);background:var(--surface-subtle)}.analytics-picker-row.selected{border-color:#9ab9d8;background:var(--blue-100)}
.analytics-picker-row input{width:16px;height:16px;min-height:0;margin:0;padding:0}.analytics-picker-row span{min-width:0}.analytics-picker-row strong{font-size:11px}.analytics-picker-row small{display:block;margin-top:1px;color:var(--ink-soft);font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.analytics-picker-empty{grid-column:1/-1;min-height:120px;display:grid;place-items:center;color:var(--ink-soft)}
.analytics-category-modal>footer{display:grid;grid-template-columns:auto 1fr auto auto;gap:var(--ui-gap);align-items:center;padding-top:10px;border-top:1px solid var(--line)}
@media (max-width:1120px){
  .analytics-grid{grid-template-columns:minmax(0,1.3fr) minmax(280px,.8fr)}
  .analytics-donut-layout{grid-template-columns:1fr}.analytics-donut{width:132px}.analytics-donut-legend{width:100%}
}
@media (max-width:840px){
  .analytics-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .analytics-grid{grid-template-columns:1fr}.analytics-flow-card,.analytics-top-categories-card,.analytics-weekday-card,.analytics-dispatch-card,.analytics-health-card{grid-column:1;grid-row:auto}
  .analytics-donut-layout{grid-template-columns:minmax(130px,.65fr) minmax(150px,1fr)}
}
@media (max-width:760px){
  #page[data-page="analytics"]{padding-bottom:12px}
  #page[data-page="analytics"] .workspace-header{margin-bottom:8px}
  .analytics-toolbar{gap:7px;padding:8px;margin-bottom:8px}.analytics-toolbar>span{font-size:10.5px}.analytics-toolbar>small{width:100%;margin:0;font-size:9.5px}
  .analytics-period{width:100%}
  .analytics-kpis{gap:7px;margin-bottom:7px}.analytics-kpis article{padding:10px 11px}.analytics-kpis strong{font-size:19px}
  .analytics-grid{gap:7px}.analytics-card{border-radius:10px}.analytics-card>header{align-items:flex-start;padding:9px 10px}.analytics-card>header>.button{min-height:44px}
  .analytics-line-svg{min-height:205px}.analytics-chart-wrap{padding:6px 4px 0}.analytics-axis-label{font-size:9px}.analytics-legend{padding:5px 10px 9px;gap:4px 10px}.analytics-legend-item{max-width:46%;font-size:9.5px}
  .analytics-weekday-bars{height:220px;padding-inline:8px;gap:5px}.analytics-weekday-value small{font-size:7.5px}.analytics-weekday-track i{width:54%}
  .analytics-donut-layout{grid-template-columns:1fr 1fr;min-height:210px;padding:12px}.analytics-donut{width:min(132px,34vw)}
  .analytics-category-modal{max-height:84dvh;gap:9px}.analytics-picker-list{grid-template-columns:1fr}.analytics-category-modal>footer{grid-template-columns:1fr 1fr}.analytics-category-modal>footer>span{display:none}.analytics-category-modal>footer>[data-analytics-reset-top]{grid-column:1/-1}.analytics-category-modal>footer>.button{min-height:44px}
}


/* Production build 34.57 — mobile Collection location-code typography. */
@media(max-width:760px){
  #page[data-page="collection"] .collection-category-location{
    font-family:var(--font-ui)!important;
    font-variant-numeric:lining-nums tabular-nums;
    font-feature-settings:"lnum" 1,"tnum" 1;
    font-weight:700!important;
    font-size:10px!important;
    line-height:1.1!important;
    letter-spacing:.01em;
  }
}


/* 34.60 — simplified category analytics + Inventory health donut. */
.analytics-top-categories-card{min-height:0}
.analytics-table-wrap{min-height:0;padding:0 12px 12px}
.analytics-top-table{width:100%;border-collapse:collapse;table-layout:fixed}
.analytics-top-table td{padding:9px 8px;border-bottom:1px solid var(--line-soft);text-align:end;font-size:11px;vertical-align:middle}
.analytics-top-table th:first-child,.analytics-top-table td:first-child{width:52%;text-align:start}
.analytics-top-table tbody tr:last-child td{border-bottom:0}
.analytics-top-table td>strong{display:inline-block;min-width:38px;margin-inline-end:7px;color:var(--ink-strong);font-size:12px}
.analytics-top-table td>small{display:inline-block;max-width:calc(100% - 54px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink-soft);font-size:10px;vertical-align:middle}
.analytics-health-legend i{background:var(--analytics-swatch)}
@media(max-width:720px){
  .analytics-table-wrap{padding:0 8px 8px}
  .analytics-top-table td{padding:8px 4px;font-size:10px}
  .analytics-top-table td>strong{min-width:34px;margin-inline-end:4px;font-size:11px}
  .analytics-top-table td>small{display:none}
}


/* Production build 34.62 — Requester read-only fulfillment compatibility retained; obsolete dashboard KPI/shortcut helpers retired in 34.120.149. */
.requester-fulfillment-view{display:grid;gap:10px;}
.requester-fulfillment-help{margin:-4px 0 2px;color:var(--ux-ink-secondary);font-size:.86rem;}
.requester-fulfillment-stores{display:grid;gap:8px;}
.requester-fulfillment-store{border:1px solid var(--ux-border-muted);border-radius:12px;background:var(--surface);overflow:hidden;}
.requester-fulfillment-store>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;cursor:pointer;list-style:none;}
.requester-fulfillment-store>summary::-webkit-details-marker{display:none;}
.requester-fulfillment-store>summary span{display:grid;gap:2px;min-width:0;}
.requester-fulfillment-store>summary small{color:var(--ux-ink-secondary);font-weight:500;}
.requester-fulfillment-lines{border-top:1px solid var(--ux-border-muted);}
.requester-fulfillment-line{display:grid;grid-template-columns:minmax(0,1fr) 70px 70px 70px;align-items:center;gap:8px;padding:8px 12px;border-top:1px solid color-mix(in srgb,var(--ux-border-muted) 70%,transparent);font-size:.84rem;}
.requester-fulfillment-line:first-child{border-top:0;}
.requester-fulfillment-line>span:first-child{display:grid;min-width:0;}
.requester-fulfillment-line>span:first-child small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ux-ink-secondary);}
.requester-fulfillment-line-head{font-size:.72rem;font-weight:700;text-transform:uppercase;color:var(--ux-ink-secondary);background:var(--surface-subtle);}
.requester-fulfillment-shortage{margin:0;padding:8px 12px;border-top:1px solid var(--ux-border-muted);font-size:.8rem;color:var(--warning-strong,#9a6700);background:var(--warning-soft,#fff8e6);}
@media(max-width:760px){
  .requester-fulfillment-line{grid-template-columns:minmax(0,1fr) 48px 48px 48px;padding:8px;font-size:.78rem;gap:5px;}
  .requester-fulfillment-line-head{font-size:.62rem;}
}

@media(max-width:760px){.dashboard-mobile-primary-actions.requester-primary-actions{grid-template-columns:1fr;}}


/* Production build 34.63 — responsive demand window preference and Collection completion feedback. */
.collection-gate-store.completed:not(.closed-incomplete) .progress-line>i,
.collection-gate-editor-head.completed:not(.closed-incomplete) .progress-line>i{background:var(--ux-success)!important}
.collection-gate-store.closed-incomplete .progress-line>i,
.collection-gate-editor-head.closed-incomplete .progress-line>i{background:var(--ux-warning)!important}


/* Production build 34.64 — Hebrew font consistency + Analytics Top 20 comparison table.
   34.67.3 restores the established multilingual typography contract. */
html[lang="en"],html[lang="ru"]{--font-sans:var(--font-ui)}
html[lang="he"]{--font-sans:var(--font-hebrew)}
html[lang="ar"]{--font-sans:var(--font-arabic)}
html[lang="he"] body,
html[lang="he"] button,
html[lang="he"] input,
html[lang="he"] select,
html[lang="he"] textarea{font-family:var(--font-hebrew)}

.analytics-top-categories-card>header{align-items:flex-start;gap:12px}
.analytics-top-categories-actions{display:flex;align-items:center;gap:var(--ui-gap);flex-wrap:wrap;justify-content:flex-end}
.analytics-top-table thead th{white-space:nowrap}
.analytics-top-table tbody tr.analytics-pinned-category{background:var(--ux-surface-selected)}
.analytics-top-table tbody tr.analytics-pinned-category td:first-child{box-shadow:inset 3px 0 0 var(--blue-600)}
[dir="rtl"] .analytics-top-table tbody tr.analytics-pinned-category td:first-child{box-shadow:inset -3px 0 0 var(--blue-600)}
.analytics-category-pin{display:inline-flex;align-items:center;margin-inline-start:6px;padding:2px 6px;border-radius:999px;background:var(--ux-info-soft);color:var(--ux-info);font-size:9px;font-weight:600;vertical-align:middle}
.analytics-top-table td.analytics-rank{width:48px;color:var(--ink-faint);font-variant-numeric:tabular-nums}
.analytics-top-table td.numeric,.analytics-top-table th.numeric{text-align:end;font-variant-numeric:tabular-nums}
.analytics-category-modal .analytics-picker-row small{font-family:inherit}
@media(max-width:760px){
  .analytics-top-categories-card>header{display:grid;grid-template-columns:minmax(0,1fr);}
  .analytics-top-categories-actions{justify-content:stretch}
  .analytics-top-categories-actions>.button{flex:1;min-height:44px}
  .analytics-top-table{min-width:640px}
}


/* Production build 34.66 — Analytics table geometry + Account workspace redesign. */
.analytics-table-wrap{overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-gutter:stable}
.analytics-top-table{width:100%;min-width:720px;table-layout:fixed}
.analytics-top-table col.analytics-col-rank{width:56px}
.analytics-top-table col.analytics-col-value{width:118px}
.analytics-top-table th:first-child,.analytics-top-table td:first-child{width:auto!important;text-align:center!important}
.analytics-top-table th:nth-child(2),.analytics-top-table td:nth-child(2){text-align:start}
.analytics-top-table th:nth-child(n+3),.analytics-top-table td:nth-child(n+3){text-align:end}
.analytics-top-table td.analytics-rank{width:auto!important;padding-inline:5px;color:var(--ink-faint);font-size:10px;font-weight:600;font-variant-numeric:tabular-nums}
.analytics-top-table td:nth-child(2)>strong{display:inline-block;min-width:42px;margin-inline-end:7px;color:var(--ink-strong);font-size:12px}
.analytics-top-table td:nth-child(2)>small{display:inline-block;max-width:calc(100% - 60px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink-soft);font-size:10px;vertical-align:middle}

body[data-route="account"] #page{overflow:auto}
@media(max-width:760px){
  .analytics-top-table{min-width:680px}
  .analytics-top-table col.analytics-col-rank{width:44px}
  .analytics-top-table col.analytics-col-value{width:108px}
  .analytics-top-table td:nth-child(2)>small{display:inline-block;max-width:calc(100% - 54px);font-size:9px}
}

/* build 34.67 — Inventory Export modal professional layout */
#modal-host:has(.inventory-export-form) .modal{width:min(760px,calc(100vw - 32px));max-height:min(820px,calc(100dvh - 32px));overflow:hidden}
#modal-host:has(.inventory-export-form) .modal-body{padding:0;overflow:auto;max-height:inherit}
.inventory-export-form{display:grid;gap:0;min-width:0;width:100%;background:var(--ux-surface);color:var(--ux-ink)}
.inventory-export-header{display:grid;grid-template-columns:44px minmax(0,1fr);gap:12px;align-items:center;padding:18px 58px 15px 18px;border-bottom:1px solid var(--ux-border);background:linear-gradient(180deg,#fbfcfe 0%,#fff 100%)}
.inventory-export-header-icon{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:var(--navy-850);color:#fff;box-shadow:0 6px 16px rgba(20,42,72,.14)}
.inventory-export-header-icon .app-icon{width:21px;height:21px}
.inventory-export-header h2{margin:0;font-size:18px;line-height:1.2;color:var(--ux-ink-strong)}
.inventory-export-header p{margin:4px 0 0;max-width:580px;color:var(--ux-ink-muted);font-size:10.5px;line-height:1.45}
.inventory-export-overview{margin:14px 16px 0;padding:12px 13px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;border:1px solid var(--ux-border-card);border-radius:11px;background:var(--ux-surface-subtle)}
.inventory-export-overview>div:first-child{display:grid;gap:2px;min-width:0}
.inventory-export-overview span{font-size:9px;font-weight:800;letter-spacing:.045em;text-transform:uppercase;color:var(--ux-ink-muted)}
.inventory-export-overview strong{font-size:13px;color:var(--ux-ink-strong)}
.inventory-export-overview small{font-size:9.5px;line-height:1.35;color:var(--ux-ink-muted)}
.inventory-export-overview-count{min-width:92px;padding-inline-start:13px;border-inline-start:1px solid #d7e1ed;text-align:end;display:grid;grid-template-columns:auto auto;column-gap:4px;align-items:baseline;justify-content:end}
.inventory-export-overview-count span{grid-column:1/-1;justify-self:end}
.inventory-export-overview-count b{font-size:26px;line-height:1;color:var(--navy-850);font-variant-numeric:tabular-nums}
.inventory-export-overview-count small{font-size:10px;font-weight:700;color:var(--ux-ink-muted);font-variant-numeric:tabular-nums}
.inventory-export-section{margin:12px 16px 0;padding:0;border:1px solid var(--ux-border);border-radius:11px;background:var(--ux-surface);overflow:hidden}
.inventory-export-section>header{min-height:45px;padding:10px 12px;display:flex;align-items:center;border-bottom:1px solid var(--ux-border);background:var(--ux-surface-subtle)}
.inventory-export-section>header h3{margin:0;font-size:11.5px;color:var(--ux-ink-strong)}
.inventory-export-section>header p{margin:2px 0 0;font-size:9px;color:var(--ux-ink-muted)}
.inventory-export-choice-list,.inventory-export-option-grid{padding:9px;display:grid;gap:7px}
.inventory-export-option-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.inventory-export-season input{width:17px;height:17px;min-width:17px;margin:0;accent-color:var(--ux-accent)}
.inventory-export-seasons{padding:0 9px 9px;display:flex;flex-wrap:wrap;gap:6px}
.inventory-export-season{min-height:34px;padding:6px 9px;display:flex;align-items:center;gap:6px;border:1px solid var(--ux-border);border-radius:999px;background:var(--ux-surface);cursor:pointer;white-space:nowrap}
.inventory-export-season:has(input:checked){border-color:var(--ux-info-border);background:var(--ux-info-soft);color:var(--ux-info)}
.inventory-export-season span{font-size:9.5px;font-weight:700}
.inventory-export-contract{margin:12px 16px 0;padding:11px 12px;display:grid;grid-template-columns:30px minmax(0,1fr);gap:10px;align-items:start;border:1px solid var(--ux-border-card);border-radius:10px;background:var(--ux-surface-raised)}
.inventory-export-contract-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:var(--ux-accent-soft);color:var(--ux-accent)}
.inventory-export-contract-icon .app-icon{width:16px;height:16px}
.inventory-export-contract>div:last-child{display:grid;gap:2px}
.inventory-export-contract strong{font-size:9px;letter-spacing:.04em;text-transform:uppercase;color:var(--ux-ink-muted)}
.inventory-export-contract span{font-size:10.5px;font-weight:750;color:var(--ux-ink-strong)}
.inventory-export-contract small{font-size:9px;line-height:1.4;color:var(--ux-ink-muted)}
.inventory-export-actions{position:sticky;bottom:0;z-index:1;margin-top:14px;padding:12px 16px;background:var(--ux-topbar-bg);backdrop-filter:blur(8px)}
@media(max-width:760px){
  #modal-host:has(.inventory-export-form) .modal{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}
  .inventory-export-header{grid-template-columns:38px minmax(0,1fr);gap:9px;padding:13px 48px 12px 12px}
  .inventory-export-header-icon{width:38px;height:38px;border-radius:10px}
  .inventory-export-header h2{font-size:15px}.inventory-export-header p{font-size:9.5px}
  .inventory-export-overview{margin:9px 9px 0;padding:10px;gap:8px}.inventory-export-overview-count{min-width:72px;padding-inline-start:9px}.inventory-export-overview-count b{font-size:20px}
  .inventory-export-section{margin:9px 9px 0}.inventory-export-option-grid{grid-template-columns:1fr}.inventory-export-season{min-height:38px}
  .inventory-export-contract{margin:9px 9px 0}
  .inventory-export-actions{padding:9px}
}

/* 34.67.3 Inventory Export typography + control cleanup.
   Inherit the established language-aware app font; never substitute a modal-specific family. */
#modal-host:has(.inventory-export-form) .inventory-export-form,
#modal-host:has(.inventory-export-form) .inventory-export-form button,
#modal-host:has(.inventory-export-form) .inventory-export-form input{font-family:var(--font-sans);font-synthesis:none}
.inventory-export-header h2{font-weight:700;letter-spacing:0}
.inventory-export-overview span{font-weight:600;letter-spacing:.025em}
.inventory-export-overview strong{font-weight:600}
.inventory-export-overview-count b{font-weight:700}
.inventory-export-overview-count small{font-weight:400}
.inventory-export-section>header h3{font-weight:600}
.inventory-export-contract strong{font-weight:600;letter-spacing:.025em}
.inventory-export-contract span{font-weight:600}
.inventory-export-seasons{padding:2px 10px 10px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px 12px}
.inventory-export-season{min-height:30px;padding:4px 2px;display:flex;align-items:center;gap:7px;border:0;border-radius:4px;background:transparent;cursor:pointer;white-space:nowrap;color:var(--ux-ink)}
.inventory-export-season:hover{background:var(--ux-surface-subtle)}
.inventory-export-season:has(input:checked){border:0;background:transparent;color:var(--ux-ink-strong)}
.inventory-export-season span{font-size:10px;font-weight:400}
.inventory-export-season:has(input:checked) span{font-weight:600;color:var(--navy-850)}
.inventory-export-actions .button{font-weight:600}
@media(max-width:760px){.inventory-export-seasons{grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 10px}.inventory-export-season{min-height:36px}}

/* 34.67.3 — Export utility labels use normal case/tracking under the established type contract. */
.inventory-export-overview span,.inventory-export-contract strong{letter-spacing:0;text-transform:none}

/* 34.68 inventory health semantics */
.metric-card[data-tone="red"]{border-color:var(--ux-danger-border);background:var(--ux-danger-soft)}.metric-card[data-tone="red"] .metric-icon{color:var(--ux-danger);background:color-mix(in srgb,var(--ux-danger-soft) 70%,var(--ux-surface))}
.order-category-choice[data-health="excess"]{border-inline-start:4px solid #8b5fc4}

/* Build 34.69 — focused Analytics trends; Weekly cartons flow intentionally lower in reading order. */
.analytics-category-trend-card,.analytics-store-trend-card,.analytics-flow-card{grid-column:1/-1!important;grid-row:auto!important}
.analytics-top-categories-card{grid-column:1!important;grid-row:auto!important}
.analytics-health-card{grid-column:2!important;grid-row:auto!important}
.analytics-weekday-card{grid-column:1!important;grid-row:auto!important}
.analytics-dispatch-card{grid-column:2!important;grid-row:auto!important}
.analytics-category-trend-card .analytics-line-svg,.analytics-store-trend-card .analytics-line-svg{max-height:250px}
@media(max-width:920px){
  .analytics-category-trend-card,.analytics-store-trend-card,.analytics-flow-card,.analytics-top-categories-card,.analytics-health-card,.analytics-weekday-card,.analytics-dispatch-card{grid-column:1!important;grid-row:auto!important}
}
@media(max-width:640px){
  .analytics-card>header{display:grid;grid-template-columns:minmax(0,1fr)}
}

/* 34.69.1 — enforce approved Analytics table typography. */
.analytics-top-table,.analytics-top-table th,.analytics-top-table td,.analytics-top-table button{font-family:var(--font-sans);font-synthesis:none}

/* 34.70 — Mobile Inventory list continuity and filter simplification. */
@media(max-width:760px){
  /* Sorting lives in the Filter sheet on mobile; the table header is redundant. */
  .inventory-v22-table thead{display:none!important}
  /* Give each category a clearer touch/scroll boundary without increasing card density. */
  .inventory-v22-list{padding:8px 8px 16px}
  .inventory-v22-table tbody{gap:11px!important}
  .inventory-v22-table tr{margin-bottom:0!important}
  /* Consolidated sort is a full-width control after the filtering groups. */
  .inventory-filter-sort{grid-column:1/-1}
}

/* 34.70.2 — request authority / valid-order history correction. */

/* 34.71 — Category demand uses an explicit demand-backed clickable list, not a dropdown. */
.analytics-category-trend-layout{display:grid;grid-template-columns:minmax(240px,300px) minmax(0,1fr);min-height:286px}
.analytics-demand-category-panel{min-width:0;border-inline-end:1px solid var(--line-soft);background:var(--surface-soft)}
.analytics-demand-category-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:7px 10px;border-bottom:1px solid var(--line-soft);color:var(--ink-soft);font-size:10px;font-weight:600}
.analytics-demand-category-list{max-height:286px;overflow:auto;padding:5px;scrollbar-gutter:stable}
.analytics-demand-category-option{appearance:none;width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:8px 9px;margin:0 0 4px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--ink);font:inherit;text-align:start;cursor:pointer}
.analytics-demand-category-option:last-child{margin-bottom:0}
.analytics-demand-category-option:hover{background:var(--surface);border-color:var(--line-soft)}
.analytics-demand-category-option.active{background:var(--ux-accent-soft);border-color:var(--blue-400);color:var(--ink-strong)}
.analytics-demand-category-copy{min-width:0;display:grid;gap:2px}
.analytics-demand-category-copy strong{font-size:12px;font-weight:700;line-height:1.15}
.analytics-demand-category-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink-soft);font-size:10px;line-height:1.25}
.analytics-demand-category-value{display:grid;justify-items:end;gap:1px;min-width:48px}
.analytics-demand-category-value strong{font-size:12px;font-weight:700;line-height:1}
.analytics-demand-category-value small{color:var(--ink-soft);font-size:9px;line-height:1.1}
.analytics-category-trend-chart{min-width:0;display:grid;align-content:start}
.analytics-category-trend-chart .analytics-chart-wrap{min-height:244px}
@media(max-width:760px){
  .analytics-category-trend-layout{grid-template-columns:1fr;min-height:0}
  .analytics-demand-category-panel{border-inline-end:0;border-bottom:1px solid var(--line-soft)}
  .analytics-demand-category-list{max-height:210px;padding:6px 7px}
  .analytics-demand-category-option{min-height:48px;padding:8px 9px}
  .analytics-category-trend-chart .analytics-chart-wrap{min-height:220px}
}


/* Build 34.72 — Analytics interaction and selector refinements. */
.analytics-chart-wrap{position:relative}
.analytics-chart-hover-zone{fill:transparent;pointer-events:all;cursor:crosshair;outline:none}
.analytics-chart-hover-zone:hover,.analytics-chart-hover-zone:focus{fill:rgba(40,93,148,.025)}
.analytics-hover-tooltip{position:absolute;z-index:8;display:none;min-width:170px;max-width:220px;padding:8px 10px;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface);box-shadow:0 8px 24px rgba(16,36,58,.16);color:var(--ink);font-family:var(--font-sans);font-size:10px;line-height:1.3;pointer-events:none}
.analytics-hover-tooltip.open{display:grid;gap:4px}
.analytics-hover-tooltip>strong{font-size:11px;font-weight:700;color:var(--ink-strong)}
.analytics-hover-tooltip>span{display:flex;align-items:center;gap:6px;white-space:nowrap}
.analytics-hover-tooltip i{width:8px;height:8px;border-radius:50%;background:var(--tooltip-color);flex:0 0 auto}
.analytics-hover-tooltip b{margin-inline-start:auto;font-weight:700;font-variant-numeric:tabular-nums}
.analytics-health-toggle{display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:5px 8px;border:1px solid var(--line-soft);border-radius:8px;background:var(--surface);color:var(--ink-soft);font-size:10px;font-weight:600;white-space:nowrap}
.analytics-health-toggle input{width:15px;height:15px;margin:0;accent-color:var(--blue-600)}
.analytics-store-trend-card .analytics-category-trend-layout{grid-template-columns:minmax(240px,300px) minmax(0,1fr)}
@media (hover:none),(pointer:coarse){.analytics-hover-tooltip{display:none!important}.analytics-chart-hover-zone{pointer-events:none}}
@media (max-width:760px){.analytics-health-toggle{width:100%;justify-content:flex-start;min-height:42px}.analytics-store-trend-card .analytics-category-trend-layout{grid-template-columns:1fr}}


/* 34.74 Warehouse single-pallet selection + stable full map */
.warehouse-purpose-page.placement-choice-active .placement-location.available-destination{border-color:var(--ux-success);background:var(--ux-success-soft);box-shadow:inset 0 0 0 1px var(--ux-success)}
.warehouse-purpose-page.placement-choice-active .placement-location:not(.available-destination):not(.selected){opacity:.58}
.warehouse-purpose-page.placement-choice-active .placement-location.selected.available-destination{box-shadow:0 0 0 2px rgba(47,138,89,.18),inset 0 0 0 1px #2f8a59}


/* 34.75 stabilization: defensive Analytics SVG hover overlay. */
.analytics-chart-hover-zone{fill:transparent!important}

/* 34.78 analytics clarity + inventory history correctness UI */
.analytics-donut-legend i.driver{background:#d97706}
.analytics-health-groups{margin-top:10px;border-top:1px solid var(--line-soft);padding-top:9px}
.analytics-health-groups>h3{margin:0 0 7px;font-size:10px;font-weight:600;color:var(--ink-soft)}
.analytics-health-group{border:1px solid var(--line-soft);border-radius:7px;background:var(--surface);overflow:hidden;margin-top:5px}
.analytics-health-group summary{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 9px;cursor:pointer;list-style:none;font-size:10px}
.analytics-health-group summary::-webkit-details-marker{display:none}
.analytics-health-group summary>span{display:flex;align-items:center;gap:7px;min-width:0;font-weight:600}
.analytics-health-group summary i{width:9px;height:9px;border-radius:50%;background:var(--analytics-swatch);flex:0 0 auto}
.analytics-health-group summary>strong{font-size:10px;font-weight:600;color:var(--ink-strong)}
.analytics-health-group ul{list-style:none;margin:0;padding:5px 9px 8px;border-top:1px solid var(--line-soft);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 10px;max-height:150px;overflow:auto}
.analytics-health-group li{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:baseline;gap:6px;min-width:0;font-size:9px;color:var(--ink-soft)}
.analytics-health-group li strong{font-size:9.5px;font-weight:600;color:var(--ink-strong);font-variant-numeric:tabular-nums}
.analytics-health-group li span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.analytics-kpi-gap small{line-height:1.25}

.inventory-zero-placement,.inventory-zero-placement strong,.inventory-zero-placement p{font-family:inherit;font-style:normal;letter-spacing:normal}
.inventory-zero-placement{padding:7px 0;color:var(--ux-ink-muted)}
.inventory-zero-placement strong{display:block;font-size:9.5px;font-weight:600;color:var(--ux-ink)}
.inventory-zero-placement p{margin:2px 0 0;font-size:8.5px;font-weight:400;color:var(--ux-ink-muted);line-height:1.35}
.inventory-history-legend{display:flex;align-items:center;gap:12px;margin:6px 0 2px;font-size:8.5px;color:var(--ux-ink-muted)}
.inventory-history-legend span{display:inline-flex;align-items:center;gap:5px}
.inventory-history-legend i{width:8px;height:8px;border-radius:2px;display:inline-block}
.inventory-history-legend i.requested{background:#285d94}
.inventory-history-legend i.fulfilled{background:#177245}
.inventory-demand-chart>.inventory-history-week{height:100%;flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:3px;min-width:0}
.inventory-history-bar-pair{height:100%;width:100%;display:flex;align-items:flex-end;justify-content:center;gap:2px}
.inventory-history-bar-pair .inventory-chart-bar{width:min(9px,38%)}
.inventory-chart-bar.requested{background:#285d94}
.inventory-chart-bar.fulfilled{background:#177245}
.inventory-mini-chart.stock .inventory-chart-bar{background:var(--ux-teal)}

@media (max-width:760px){
  .analytics-health-group ul{grid-template-columns:1fr;max-height:180px}
}

/* Production candidate 34.79 — Requester read-only Inventory + Global Search reliability. */
.inventory-location-readonly{cursor:default;display:inline-flex;align-items:center;gap:3px}.inventory-location-readonly:hover{border-color:var(--ux-border-strong);color:var(--ux-ink-secondary-strong)}

/* =========================================================
   34.93 — consolidated current Dashboard + icon presentation
   Replaces append-only 34.80 / 34.81 / 34.82 override layers.
   ========================================================= */
@media(min-width:761px){
  body[data-route="dashboard"] .shell-main{height:auto;min-height:100dvh;overflow:visible;display:block}
  body[data-route="dashboard"] .main-content{height:calc(100dvh - var(--topbar-height))!important;min-height:0;max-height:calc(100dvh - var(--topbar-height));overflow-y:auto!important;overflow-x:hidden;overscroll-behavior:contain;align-content:start!important;padding:10px 12px 22px}
}
body[data-route="dashboard"] #page[data-page="dashboard"]{display:flex!important;flex-direction:column;gap:10px;height:auto!important;min-height:0!important;overflow:visible}
body[data-route="dashboard"] #page[data-page="dashboard"]>.workspace-header{height:auto;min-height:54px;max-height:none;margin:0;padding:7px 8px}
body[data-route="dashboard"] .workspace-description{max-width:760px}
body[data-route="dashboard"] .workspace-actions{display:flex;align-items:center;gap:7px}

.dashboard-kpi-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:0;background:transparent;border:0;border-radius:0;overflow:visible}
.dashboard-metric{min-width:0;min-height:66px;display:grid;grid-template-columns:34px minmax(0,1fr) 14px;align-items:center;gap:8px;padding:8px 10px;border:1px solid var(--ux-border);border-radius:9px;background:var(--ux-surface);color:var(--ux-ink);text-align:start;box-shadow:0 1px 1px rgba(24,45,68,.025)}
.dashboard-metric:hover{border-color:var(--ux-border-hover-strong);background:var(--ux-surface-hover);box-shadow:0 2px 7px rgba(24,45,68,.06)}
.dashboard-metric-icon{width:34px;height:34px;border-radius:8px;display:grid;place-items:center;background:var(--ux-accent-soft);color:var(--ux-accent)}
.dashboard-metric-icon .app-icon{width:18px;height:18px}
.dashboard-metric-copy{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto;align-items:center;gap:8px;min-width:0}
.dashboard-metric-copy>span{font-size:12px;line-height:1.25;font-weight:720;color:var(--ux-ink-muted);white-space:normal;overflow:visible;text-overflow:clip}
.dashboard-metric-copy>strong{grid-column:2;grid-row:1;font-size:24px;line-height:1;font-weight:760;color:var(--ux-ink);font-variant-numeric:tabular-nums}
.dashboard-metric-copy>small{grid-column:1;font-size:10.5px;line-height:1.3;color:var(--ux-ink-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:none}
.dashboard-metric-arrow{width:14px;height:14px;color:var(--ux-ink-faint)}
.dashboard-metric[data-tone="amber"] .dashboard-metric-icon{background:var(--ux-warning-soft);color:var(--ux-warning)}
.dashboard-metric[data-tone="teal"] .dashboard-metric-icon{background:var(--ux-success-soft);color:var(--ux-success)}
.dashboard-metric[data-tone="red"] .dashboard-metric-icon{background:var(--ux-danger-soft);color:var(--ux-danger)}

.requester-dashboard-grid{display:grid;align-items:start;gap:10px;height:auto!important;min-height:0;overflow:visible;margin-top:10px}
.requester-dashboard-grid.has-orders{grid-template-columns:minmax(320px,.78fr) minmax(0,1.22fr)}
.requester-dashboard-grid.inventory-only{grid-template-columns:minmax(0,1fr)}
.dashboard-command-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:10px;height:auto!important;min-height:0;overflow:visible;margin-top:10px}
.dashboard-order-queue.panel,.dashboard-action-queue.panel{display:grid;grid-template-rows:auto minmax(0,1fr);min-height:0!important;height:auto!important;margin:0;padding:0;border:1px solid var(--ux-border);border-radius:9px;background:var(--ux-surface);overflow:hidden}
.dashboard-panel-head{min-height:58px;border-bottom:1px solid var(--ux-border);background:var(--ux-surface-subtle)}
.dashboard-panel-head>div{display:grid;gap:2px;min-width:0}
.dashboard-panel-head h2{font-size:var(--ui-type-section-title);line-height:1.25}
.dashboard-panel-head p{font-size:var(--ui-type-caption);line-height:1.35;white-space:normal;overflow:visible;text-overflow:clip;max-width:52ch}
.dashboard-panel-head>.button{flex:0 0 auto;min-height:32px;padding-inline:9px}
.dashboard-order-list{display:grid;align-content:start;min-height:0;max-height:310px;overflow:auto;background:var(--ux-surface)}
.dashboard-order-list>button{position:relative;min-height:58px;border:0;border-bottom:1px solid var(--ux-border);background:var(--ux-surface);padding:7px 28px 7px 9px;display:grid;align-items:center;gap:7px;text-align:start;color:var(--ux-ink)}
[dir="rtl"] .dashboard-order-list>button{padding:7px 9px 7px 28px}
.dashboard-order-list>button:last-child{border-bottom:0}
.dashboard-order-list>button:hover{background:var(--ux-surface-hover)}
.dashboard-order-list>button{grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto auto}
.dashboard-order-status{align-self:center}
.dashboard-order-copy{display:grid;gap:2px;min-width:0}
.dashboard-order-copy>strong{font-size:12.5px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dashboard-order-copy>small{font-size:10.5px;line-height:1.3;color:var(--ux-ink-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dashboard-order-copy>progress{width:min(160px,100%);height:4px;margin-top:2px;border:0}
.dashboard-order-list>button>.app-icon:last-child{position:absolute;inset-inline-end:8px;top:50%;transform:translateY(-50%);width:14px;height:14px;color:var(--ux-ink-faint)}
.dashboard-unavailable.panel{border-style:dashed}

.requester-dashboard-grid .dashboard-order-list{max-height:none;overflow:visible}
.requester-dashboard-grid .dashboard-panel-head p{max-width:54ch}
.requester-dashboard-grid .dashboard-order-list>button{min-height:54px}
.requester-dashboard-grid .dashboard-order-copy>small{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.3}

.sidebar .nav-item{grid-template-columns:30px minmax(0,1fr);gap:7px;min-height:40px;padding-inline:6px 9px;border-radius:8px}
.sidebar .nav-item .app-icon{width:28px;height:28px;padding:5px;border-radius:7px;background:rgba(255,255,255,.045);color:#a9bed2}
.sidebar .nav-item:hover .app-icon{background:rgba(255,255,255,.08);color:#e5eef7}
.sidebar .nav-item.active .app-icon{background:rgba(124,169,231,.18);color:#fff}
.app-shell.sidebar-collapsed .nav-item{grid-template-columns:1fr;padding:0;justify-items:center}
.app-shell.sidebar-collapsed .nav-item .app-icon{width:30px;height:30px}
.metric-icon,.empty-state-icon,.dashboard-mobile-primary-icon{border-radius:8px}
.button .app-icon,.icon-button .app-icon,.ui-status-chip .app-icon,.status-badge .app-icon{stroke-width:1.7}
[dir="rtl"] .dashboard-metric-arrow{transform:scaleX(-1)}
[dir="rtl"] .dashboard-order-list>button>.app-icon:last-child{transform:translateY(-50%) scaleX(-1)}

@media(max-width:1180px) and (min-width:761px){
  .dashboard-kpi-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard-command-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard-command-grid>.panel:last-child{grid-column:1/-1}
}
@media(max-width:1100px) and (min-width:761px){
  .requester-dashboard-grid.has-orders{grid-template-columns:1fr}
}
@media(max-width:900px) and (min-width:761px){
  .dashboard-order-list{max-height:260px}
  .requester-dashboard-grid .dashboard-order-list{max-height:none}
}
@media(max-width:760px){
  body[data-route="dashboard"] .workspace-header .workspace-actions{display:none}
  .dashboard-kpi-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .dashboard-metric{min-height:68px;grid-template-columns:31px minmax(0,1fr);padding:8px}
  .dashboard-metric-icon{width:31px;height:31px}
  .dashboard-metric-icon .app-icon{width:17px;height:17px}
  .dashboard-metric-arrow{display:none}
  .dashboard-metric-copy>strong{font-size:21px}
  .requester-dashboard-grid{margin-top:8px}
  .requester-dashboard-grid{display:flex;flex-direction:column;gap:10px;height:auto!important;overflow:visible}
  .dashboard-command-grid{display:flex;flex-direction:column;gap:8px;height:auto!important;overflow:visible}
  .dashboard-order-queue.panel,.dashboard-action-queue.panel{width:100%;height:auto!important;min-height:0!important;max-height:none!important;flex:0 0 auto}
  .sidebar .nav-item{min-height:44px}
}

@media(min-width:1051px){
  .shell-feedback{width:420px;min-width:420px;max-width:420px}
}
@media(min-width:761px) and (max-width:1050px){
  .shell-feedback{width:300px;min-width:300px;max-width:300px}
}
.shell-feedback #global-status,.shell-feedback .toast-host,.shell-feedback .toast{
  width:100%;min-width:0;max-width:100%;height:32px;min-height:32px;max-height:32px;
}
#global-status,.toast{overflow:hidden}
#global-status .global-status-copy,.toast span{min-width:0;max-width:100%}
#global-status .global-status-copy strong,.toast span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.orders-list-table{min-width:700px}
.orders-list-table-head,.orders-list-row{grid-template-columns:86px 62px minmax(88px,1fr) 52px 62px 90px 102px minmax(112px,1fr)}
.orders-updated{display:none!important}
@media(max-width:1280px) and (min-width:1001px){
  .orders-list-table{min-width:620px}
  .orders-list-table-head,.orders-list-row{grid-template-columns:82px 58px 52px 60px 86px 98px minmax(108px,1fr)}
  .orders-list-table-head>*:nth-child(3),.orders-list-row>div:nth-child(3){display:none}
}
@media(max-width:1000px) and (min-width:761px){
  .orders-list-table{min-width:520px}
  .orders-list-table-head,.orders-list-row{grid-template-columns:78px 56px 60px 84px 96px minmax(104px,1fr)}
  .orders-list-table-head>*:nth-child(3),.orders-list-row>div:nth-child(3),
  .orders-list-table-head>*:nth-child(4),.orders-list-row>div:nth-child(4){display:none}
}

.inventory-category-cell{display:flex;align-items:center;min-height:22px}
.inventory-category-cell .object-code{font-size:11px;font-weight:760}
.inventory-category-description{display:none;min-width:0;color:var(--ux-ink-muted);font-weight:600;line-height:1.25;overflow-wrap:anywhere}
.inventory-location-overflow{display:none!important}
.inventory-health-wrap{display:inline-flex;align-items:center}

.inventory-v22-table td[data-column="use"] small,.inventory-v22-table td[data-column="coverDays"] small{display:none!important}
@media(max-width:760px){
  .shell-feedback{height:32px;min-height:32px;max-height:32px}
  .inventory-v22-table tr{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-areas:"category category health" "location location location" "pallets stockCartons coverDays";min-height:108px}
  .inventory-v22-table td[data-column="category"]{grid-area:category}
  .inventory-v22-table td[data-column="health"]{grid-area:health;justify-self:end}
  .inventory-v22-table td[data-column="location"]{grid-area:location}
  .inventory-v22-table td[data-column="pallets"]{grid-area:pallets}
  .inventory-v22-table td[data-column="stockCartons"]{grid-area:stockCartons}
  .inventory-v22-table td[data-column="coverDays"]{grid-area:coverDays}
  .inventory-v22-table td[data-column="pallets"],.inventory-v22-table td[data-column="stockCartons"],.inventory-v22-table td[data-column="coverDays"]{height:40px;border:1px solid var(--ux-border)!important;border-radius:6px!important;background:var(--ux-surface-muted);display:grid!important;place-content:center;text-align:center!important;position:relative}
  .inventory-v22-table td[data-column="pallets"]::after,.inventory-v22-table td[data-column="stockCartons"]::after,.inventory-v22-table td[data-column="coverDays"]::after{content:attr(data-label);display:block;font-size:7px;color:var(--ux-ink-muted);font-weight:600;max-width:86px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .inventory-v22-table td[data-column="season"],.inventory-v22-table td[data-column="use"]{display:none!important}
}

#page[data-page="collection"] .collection-category-row.no-stock{background:color-mix(in srgb,var(--ux-warning-soft) 58%,var(--ux-surface));border-color:#ead2a5}
#page[data-page="collection"] .collection-category-row.no-stock .collection-category-state-text{color:var(--ux-warning);font-weight:700}
#page[data-page="collection"] .collection-category-row.no-stock .collection-metric.remaining strong{color:var(--ux-warning)}
#page[data-page="collection"] .collection-found-stock-button{width:100%;min-height:38px;justify-content:center;white-space:nowrap}
#page[data-page="collection"] .collection-found-stock-button .app-icon{width:16px;height:16px}
#page[data-page="collection"] .collection-no-stock-resolved{width:100%;min-height:38px;padding:6px 10px;display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--ux-border);border-radius:7px;background:var(--ux-surface-muted);color:var(--ux-ink-muted);font-size:10px;font-weight:700;text-align:center}
#page[data-page="collection"] .collection-no-stock-resolved .app-icon{width:16px;height:16px;flex:0 0 auto}
@media(max-width:760px){
  #page[data-page="collection"] .collection-found-stock-button,
  #page[data-page="collection"] .collection-no-stock-resolved{min-height:48px;font-size:13px}
}

@media(max-width:760px){
  #page[data-page="inventory"] .inventory-v22-table tbody{gap:18px!important}
  #page[data-page="inventory"] .inventory-category-cell{display:grid;grid-template-columns:1fr;gap:3px;align-items:start}
  #page[data-page="inventory"] .inventory-category-cell .object-code{font-size:17px!important;line-height:1.15}
  #page[data-page="inventory"] .inventory-category-description{display:block;font-size:10.5px}
  #page[data-page="inventory"] .inventory-v22-table td[data-column="location"]{overflow:visible}
  #page[data-page="inventory"] .inventory-location-chips{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:4px;overflow:visible}
  #page[data-page="inventory"] .inventory-location-chips .inventory-location-link{display:inline-flex!important}
  #page[data-page="inventory"] .inventory-location-more{display:none!important}
}
@media(min-width:761px){
  #page[data-page="inventory"] .inventory-v22-page.requester-view .inventory-v22-table th:nth-child(4),
  #page[data-page="inventory"] .inventory-v22-page.requester-view .inventory-v22-table td[data-column="location"]{display:none!important}
}

.inventory-check-page,.category-placement-page{display:grid;gap:14px;padding:0 18px 28px;max-width:1440px;width:100%;margin:0 auto;box-sizing:border-box}
.inventory-check-order-summary,.category-placement-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.category-placement-summary{grid-template-columns:repeat(4,minmax(0,1fr))}
.inventory-check-order-summary>div,.category-placement-summary>article{display:grid;gap:4px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface);min-width:0}
.inventory-check-order-summary span,.category-placement-summary span{font-size:12px;color:var(--ux-ink-secondary);font-weight:600}
.inventory-check-order-summary strong,.category-placement-summary strong{font-size:18px;line-height:1.2;overflow-wrap:anywhere}
.category-reconcile-banner{grid-template-columns:22px minmax(0,1fr) auto;align-items:center}
.category-reconcile-banner>small,.category-reconcile-banner small{color:inherit}
.inventory-check-filter{justify-self:start}
.inventory-check-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
.inventory-check-card{display:grid;gap:12px;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--surface);min-width:0}
.inventory-check-card.attention{border-color:#e4bd67}
.inventory-check-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.inventory-check-card>header>div{display:grid;gap:3px;min-width:0}
.inventory-check-card .object-code{font-size:17px;font-weight:800;color:var(--ink)}
.inventory-check-card>header strong{font-size:13px;font-weight:600;line-height:1.35;overflow-wrap:anywhere}
.inventory-check-locations{margin-top:5px;padding:6px 8px;border:1px solid var(--line);border-radius:9px;background:var(--surface-soft);display:grid;gap:5px;min-width:0}
.inventory-check-locations>span{font-size:9.5px;color:var(--ux-ink-secondary);font-weight:700}
.inventory-check-locations>div{display:flex;flex-wrap:wrap;gap:4px;min-width:0}
.inventory-check-location{display:inline-flex;align-items:center;min-height:24px;padding:3px 6px;border:1px solid var(--line);border-radius:6px;background:var(--surface);font-size:11px;font-weight:800;line-height:1;white-space:nowrap}
.inventory-check-locations em{font-size:10.5px;color:var(--ux-ink-secondary);font-style:normal}
.inventory-check-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.inventory-check-metrics>div{display:grid;gap:2px;padding:9px 10px;border-radius:10px;background:var(--surface-soft);min-width:0}
.inventory-check-metrics span{font-size:11px;color:var(--ux-ink-secondary);font-weight:600}
.inventory-check-metrics strong{font-size:18px;line-height:1.15}
.inventory-check-metrics small{font-size:10.5px;line-height:1.3;color:var(--ux-ink-secondary)}
.inventory-check-metrics .danger{background:var(--ux-danger-soft)}
.inventory-check-metrics .danger strong{color:var(--ux-danger)}
.inventory-check-actual{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-top:10px;border-top:1px solid var(--line)}
.inventory-check-actual>div:first-child{display:grid;gap:2px;min-width:0}
.inventory-check-actual>div:first-child span{font-size:11px;color:var(--ux-ink-secondary);line-height:1.35}
.inventory-check-editors{display:flex;gap:10px;flex:0 0 auto}
.inventory-check-editor{display:grid;gap:4px}
.inventory-check-editor>span{font-size:10.5px;color:var(--ux-ink-secondary);font-weight:600;text-align:center}
.inventory-check-quantity{grid-template-columns:34px 54px 34px;min-height:36px}
.inventory-check-quantity button{min-width:34px;min-height:36px}
.inventory-check-quantity input{width:54px;text-align:center;font-weight:700}
.inventory-check-card>footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-height:36px}
.inventory-check-no-change{display:inline-flex;align-items:center;gap:6px;font-size:11px;color:var(--ux-ink-secondary)}
.inventory-check-no-change svg{width:16px;height:16px}
.inventory-check-order-options{display:grid;gap:7px;max-height:min(62vh,520px);overflow:auto;padding:2px}
.inventory-check-order-options>button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);text-align:start;color:inherit}
.inventory-check-order-options>button.selected{border-color:var(--ux-info-border);background:var(--ux-info-soft)}
.inventory-check-order-options>button>span{display:grid;gap:3px}
.inventory-check-order-options small{color:var(--ux-ink-secondary)}

.category-placement-list-section{display:grid;gap:10px}
.category-placement-list-section>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.category-placement-list-section>header>div{display:grid;gap:3px}
.category-placement-list-section h2{font-size:17px;margin:0}
.category-placement-list-section p{font-size:12px;color:var(--ux-ink-secondary);margin:0}
.category-pallet-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.category-pallet-card{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft);min-width:0}
.category-pallet-card.unplaced{border-style:dashed;background:var(--ux-warning-soft)}
.category-pallet-card.selected-missing{border-color:var(--ux-danger-border);background:var(--ux-danger-soft)}
.category-pallet-card.route-source{outline:2px solid var(--ux-info-border);outline-offset:1px}
.category-pallet-card-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:var(--ux-surface);border:1px solid var(--line)}
.category-pallet-card-icon svg{width:20px;height:20px}
.category-pallet-card-copy{display:grid;gap:2px;min-width:0}
.category-pallet-card-copy>span,.category-pallet-card-copy>small{font-size:10.5px;color:var(--ux-ink-secondary)}
.category-pallet-card-copy>strong{font-size:16px;line-height:1.15}
.category-placement-empty{grid-column:1/-1}
.category-location-picker{display:grid;gap:var(--ui-gap-loose);min-width:min(680px,86vw)}
.category-location-search{width:100%;height:var(--ui-touch-target);min-height:var(--ui-touch-target)}
.category-location-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:min(58vh,520px);overflow:auto;padding:2px}
.category-location-option{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:var(--ux-surface);color:inherit;text-align:start}
.category-location-option:hover,.category-location-option:focus-visible{border-color:var(--ux-border-hover-strong);background:var(--ux-surface-hover)}
.category-location-option>span{display:grid;gap:2px}
.category-location-option bdi{font-size:15px;font-weight:800}
.category-location-option small{font-size:10.5px;color:var(--ux-ink-secondary)}
.category-location-option svg{width:17px;height:17px;flex:0 0 auto}

@media(max-width:1000px){
  .inventory-check-list{grid-template-columns:1fr}
  .category-pallet-list{grid-template-columns:1fr}
}
@media(max-width:760px){
  .inventory-check-order-summary{grid-template-columns:1fr 1fr}
  .inventory-check-order-summary>div:first-child{grid-column:1/-1}
  .category-placement-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .inventory-check-list{gap:10px}
  .inventory-check-card{padding:12px;gap:10px}
  .inventory-check-card>header{gap:8px}
  .inventory-check-card .object-code{font-size:19px}
  .inventory-check-metrics{grid-template-columns:1fr 1fr}
  .inventory-check-metrics>div:last-child{grid-column:1/-1}
  .inventory-check-actual{align-items:stretch;flex-direction:column;gap:9px}
  .inventory-check-editors{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .inventory-check-editor{justify-items:stretch}
  .inventory-check-quantity{grid-template-columns:44px minmax(54px,1fr) 44px;width:100%}
  .inventory-check-quantity button,.inventory-check-quantity input{min-height:44px}
  .inventory-check-quantity input{width:auto;min-width:0}
  .inventory-check-card>footer{justify-content:stretch;display:grid;grid-template-columns:1fr 1fr}
  .inventory-check-card>footer .button{width:100%;min-height:44px}
  .inventory-check-no-change{grid-column:1/-1;justify-content:center;min-height:30px}
  .category-reconcile-banner{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start}
  .category-reconcile-banner>.button{grid-column:1/-1;width:100%;min-height:46px}
  .category-pallet-list{gap:9px}
  .category-pallet-card{grid-template-columns:40px minmax(0,1fr);padding:11px}
  .category-pallet-card>.button{grid-column:1/-1;width:100%;min-height:44px}
  .category-location-picker{min-width:0;width:100%}
  .category-location-options{grid-template-columns:1fr;max-height:55vh}
  .category-location-option{min-height:50px}
}
.collection-mobile-inventory-check{display:none}
@media(max-width:760px){
  .collection-mobile-inventory-check{display:grid;place-items:center;width:var(--ui-touch-target);height:var(--ui-touch-target);min-width:var(--ui-touch-target);min-height:var(--ui-touch-target);padding:0;border:1px solid var(--ux-border);border-radius:var(--ui-radius-control);background:var(--ux-surface);color:var(--ux-info)}
  .collection-mobile-inventory-check .app-icon{width:15px;height:15px}
}

@media(max-width:760px){
  body[data-route="dashboard"] #page[data-page="dashboard"]>.workspace-header{margin:0 0 2px!important;padding-inline:2px!important}
  body[data-route="dashboard"] #page[data-page="dashboard"]{gap:8px!important}
  body[data-route="dashboard"] .dashboard-command-grid,body[data-route="dashboard"] .requester-dashboard-grid,body[data-route="dashboard"] .dashboard-order-queue.panel,body[data-route="dashboard"] .dashboard-action-queue.panel{
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
    overscroll-behavior:auto!important;
  }
  body[data-route="dashboard"] .dashboard-command-grid,
  body[data-route="dashboard"] .requester-dashboard-grid{flex:0 0 auto!important}
  body[data-route="dashboard"] .dashboard-order-list{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
    overscroll-behavior:auto!important;
  }
  body[data-route="analytics"] .main-content#page[data-page="analytics"]{align-content:start!important}
  body[data-route="analytics"] #page[data-page="analytics"]>.workspace-header{margin:0 0 8px!important;padding-inline:2px!important}
  body[data-route="analytics"] .analytics-demand-category-list,
  body[data-route="analytics"] .analytics-health-group ul{max-height:none!important;overflow:visible!important;overscroll-behavior:auto!important}
  .inventory-check-page,.category-placement-page{padding:0 0 calc(18px + var(--mobile-safe-bottom));gap:11px;max-width:none}
}

.orders-progress-missing{color:var(--danger,#b42318);font-weight:780;white-space:nowrap}
.fulfillment-report{display:grid;gap:10px;overflow:hidden}
.fulfillment-report>header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.fulfillment-report>header>div{display:flex;align-items:center;gap:9px;min-width:0}
.fulfillment-report>header svg{width:21px;height:21px;flex:0 0 auto;color:var(--warning-strong,#9a6700)}
.fulfillment-report>header h3{margin:0;font-size:.94rem}
.fulfillment-report>header p{margin:2px 0 0;color:var(--ux-ink-secondary);font-size:.8rem;line-height:1.35}
.fulfillment-report-missing{display:inline-flex;align-items:baseline;gap:4px;padding:5px 8px;border-radius:999px;background:var(--danger-soft,#fff1f0);color:var(--danger,#b42318);font-size:.78rem;white-space:nowrap}
.fulfillment-report-complete{background:color-mix(in srgb,var(--success-soft,#ecfdf3) 62%,var(--ux-surface))}
.fulfillment-report-complete>header svg{color:var(--success,#067647)}
.fulfillment-report-complete>header>strong{color:var(--success,#067647);font-size:.9rem;white-space:nowrap}
.fulfillment-report-meta{display:flex;flex-wrap:wrap;gap:6px}
.fulfillment-report-meta span{padding:3px 7px;border:1px solid var(--ux-border-muted);border-radius:999px;background:var(--surface-subtle);color:var(--ux-ink-secondary);font-size:.72rem;font-weight:650}
.fulfillment-report-groups{width:max-content;max-width:100%}
.fulfillment-report-table{display:grid;gap:6px}
.fulfillment-report-head{display:none}
.fulfillment-report-row{display:flex;align-items:stretch;gap:7px;flex-wrap:wrap;padding:8px;border:1px solid var(--ux-border-muted);border-radius:10px;background:var(--surface)}
.fulfillment-report-identity{display:grid;align-content:center;gap:2px;min-width:120px;flex:1 1 145px}
.fulfillment-report-identity strong{font-size:.82rem;line-height:1.25}
.fulfillment-report-identity small{color:var(--ux-ink-secondary);font-size:.7rem;line-height:1.3;overflow-wrap:anywhere}
.fulfillment-report-identity em{display:inline-flex;margin-inline-start:4px;padding:1px 5px;border-radius:999px;background:var(--info-soft,#eef6ff);color:var(--info,#175cd3);font-size:.62rem;font-style:normal;vertical-align:middle}
.fulfillment-report-number{display:grid;align-content:center;justify-items:center;min-width:54px;padding:3px 5px;border-inline-start:1px solid var(--ux-border-muted);font-size:.78rem;font-weight:760;font-variant-numeric:tabular-nums}
.fulfillment-report-number::before{content:attr(data-label);margin-bottom:2px;color:var(--ux-ink-secondary);font-size:.58rem;font-weight:650;line-height:1;text-transform:none}
.fulfillment-report-number.danger{color:var(--danger,#b42318)}
@media(max-width:760px){
  .fulfillment-report{gap:9px}
  .fulfillment-report>header{align-items:flex-start}
  .fulfillment-report>header>div{align-items:flex-start}
  .fulfillment-report-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}
  .fulfillment-report-row{gap:6px;padding:9px}
  .fulfillment-report-detail .fulfillment-report-identity{flex-basis:100%}
  .fulfillment-report-number{flex:1 1 56px;border-inline-start:0;border-top:1px solid var(--ux-border-muted);padding-top:6px}
  .fulfillment-report-by-category .fulfillment-report-number,.fulfillment-report-by-store .fulfillment-report-number{flex:1 1 48px}
}

.orders-detail-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
.orders-detail-tabs button{min-width:0}
.orders-detail-tabs button span{min-width:0;overflow-wrap:anywhere}
@media(max-width:760px){
  .orders-detail-tabs button{min-width:0;padding-inline:6px;gap:4px}
  .orders-detail-tabs button span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}

.sidebar-footer{display:grid;gap:7px}
.sidebar-tools-link{min-height:38px;display:flex;align-items:center;gap:9px;padding:7px 9px;border:1px solid rgba(255,255,255,.07);border-radius:7px;background:rgba(255,255,255,.035);color:#c7d4e0;text-decoration:none;font-size:11.5px;font-weight:650;transition:background .15s ease,border-color .15s ease,color .15s ease}
.sidebar-tools-link:hover,.sidebar-tools-link:focus-visible{background:rgba(255,255,255,.075);border-color:rgba(159,201,244,.22);color:#fff;outline:none}
.sidebar-tools-link .app-icon{width:18px;height:18px;flex:0 0 auto;color:#9fc9f4}
.sidebar-tools-link .sidebar-tools-external{width:13px;height:13px;margin-inline-start:auto;color:#8fa2b5}
.shell-version{min-height:auto;padding:2px 4px;background:transparent;justify-content:center;text-align:center}
.shell-version>span{display:block}
.shell-version small{font-size:9px;letter-spacing:.02em}
.app-shell.sidebar-collapsed .sidebar-tools-link{justify-content:center;padding-inline:0}
.app-shell.sidebar-collapsed .sidebar-tools-link>span,.app-shell.sidebar-collapsed .sidebar-tools-link .sidebar-tools-external{display:none}

.inventory-check-card.checked{border-color:color-mix(in srgb,var(--success,#2f7d4b) 30%,var(--ux-border-muted))}
.inventory-check-metrics .success{background:color-mix(in srgb,var(--success-soft,#eef8f1) 82%,white)}
.inventory-check-metrics .success strong{color:var(--success,#2f7d4b)}

.side-drawer[hidden],.side-drawer-backdrop[hidden]{display:none!important}
[dir="rtl"] .side-drawer{inset-inline-end:0;inset-inline-start:auto;border-inline-start:1px solid var(--ux-border);border-inline-end:0;box-shadow:18px 0 46px rgba(16,30,49,.18);transform:translateX(-102%)}
[dir="rtl"] .side-drawer.open{transform:translateX(0)}


@media(min-width:761px){
  body[data-route="analytics"]{overflow:hidden}
  body[data-route="analytics"] .shell-main{height:100dvh;min-height:0;display:grid;grid-template-rows:var(--topbar-height) minmax(0,1fr);overflow:hidden}
  body[data-route="analytics"] .main-content#page{height:100%;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:none}
  body[data-route="analytics"] .main-content#page::-webkit-scrollbar{width:0;height:0}
}
@media(max-width:760px){.inventory-v22-page.mobile-filters>.inventory-v22-filters.open{display:grid;position:fixed;z-index:34;inset:var(--topbar-height) 0 0;overflow-y:auto;overscroll-behavior:contain;align-content:start}}
.warehouse-lifecycle-slot-section{margin-top:14px}.warehouse-lifecycle-slot-section>header{display:flex;justify-content:space-between;gap:12px}.warehouse-lifecycle-slot-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:8px;max-height:48vh;overflow:auto}.warehouse-lifecycle-slot{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:8px;padding:10px;border:1px solid var(--line);border-radius:12px}.warehouse-lifecycle-slot span{font-size:12px;color:var(--ux-ink-secondary)}@media(max-width:760px){.warehouse-lifecycle-slot-list{grid-template-columns:1fr}.warehouse-lifecycle-slot{grid-template-columns:1fr auto}.warehouse-lifecycle-slot .button{grid-column:1/-1}}

/* 34.104 — contextual Order print settings. */


.order-print-options label{font-weight:400;margin-bottom:0}.order-print-options label>span{font-size:11px;font-weight:600;color:var(--ux-ink-muted)}.order-print-options input{font-weight:400}

progress.progress-line[value="0"]::-webkit-progress-value,progress.progress-line[value="0"]::-moz-progress-bar{background:transparent!important}

.order-print-options [hidden]{display:none!important}

/* 34.104 — Category Catalog master-data focus and typography normalization. */
@media(min-width:761px){
  body[data-route="category-master"] .category-catalog-head,
  body[data-route="category-master"] .category-catalog-row{
    grid-template-columns:minmax(250px,2.25fr) 110px minmax(145px,1fr) minmax(160px,1.15fr) 110px minmax(118px,140px);
  }
  body[data-route="category-master"] .category-catalog-head>*{display:block!important}
  body[data-route="category-master"] .category-catalog-row>.category-catalog-identity{display:grid!important}
  body[data-route="category-master"] .category-catalog-row>.category-catalog-season,
  body[data-route="category-master"] .category-catalog-row>.category-catalog-group,
  body[data-route="category-master"] .category-catalog-row>.category-catalog-relations{display:block!important}
  body[data-route="category-master"] .category-catalog-row>.category-catalog-status{display:flex!important}
  body[data-route="category-master"] .category-catalog-row>.category-catalog-action{display:flex!important}
}
body[data-route="category-master"] .category-master-drawer{font-family:var(--font-ui)}
body[data-route="category-master"] .category-master-drawer .category-master-form label{
  font-size:11px;
  font-weight:600;
  letter-spacing:0;
  text-transform:none;
  color:var(--ux-ink-muted)
}
body[data-route="category-master"] .category-master-drawer .category-master-form label>span{font-weight:600}
body[data-route="category-master"] .category-master-drawer .category-master-form input,
body[data-route="category-master"] .category-master-drawer .category-master-form select{
  font-family:var(--font-ui);
  font-size:var(--ui-type-body);
  font-weight:500;
  letter-spacing:0;
  text-transform:none
}
body[data-route="category-master"] .category-master-drawer [data-hebrew-field]{font-family:var(--font-hebrew)}
body[data-route="category-master"] .category-master-drawer [data-arabic-field]{font-family:var(--font-arabic)}
body[data-route="category-master"] .category-master-drawer .category-master-form label small{
  font-size:10px;
  font-weight:400;
  letter-spacing:0;
  text-transform:none;
  line-height:1.4
}
body[data-route="category-master"] .category-master-drawer-header p{font-weight:500;letter-spacing:0;text-transform:none}

/* 34.106.1 — Delivery Groups administration. */
.delivery-groups-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:14px;align-items:start}
.delivery-group-card{background:var(--ux-surface);border:1px solid var(--line);border-radius:16px;padding:14px;display:grid;gap:13px;min-width:0}
.delivery-group-card.inactive{opacity:.72;background:var(--ux-surface-subtle)}
.delivery-group-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.delivery-group-card>header>div{display:flex;align-items:center;gap:10px;min-width:0;flex-wrap:wrap}
.delivery-group-card h2{margin:0;font-size:16px;font-weight:700;line-height:1.25;overflow-wrap:anywhere}
.delivery-group-driver{display:grid;gap:3px;padding:10px 12px;background:var(--ux-surface-subtle);border-radius:12px}
.delivery-group-driver span{font-size:10.5px;color:var(--ux-ink-muted);font-weight:600}
.delivery-group-driver strong{font-size:14px;font-weight:650;overflow-wrap:anywhere}
.delivery-group-stores{display:flex;gap:7px;flex-wrap:wrap;min-height:30px}
.delivery-store-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border:1px solid var(--line);border-radius:999px;background:var(--ux-surface);font-size:11px;line-height:1.2}
.delivery-store-chip bdi{font-weight:700}.delivery-store-chip span{color:var(--ux-ink-muted)}
.delivery-group-empty-stores{font-size:11px;color:var(--ux-ink-muted);padding-block:5px}
.delivery-group-drawer{font-family:var(--font-ui)}
.delivery-group-form{display:flex;flex-direction:column;gap:0;min-height:0;height:100%}
.delivery-group-form-fields{grid-template-columns:minmax(0,1.5fr) minmax(0,1.2fr) 100px;padding:var(--space-3) var(--space-4);border-bottom:1px solid var(--line)}
.delivery-group-store-section{min-height:0;flex:1;overflow:hidden;border-inline:0;border-top:0;border-radius:0;padding:var(--space-3) var(--space-4);background:var(--ux-surface)}
.delivery-group-store-section>header{align-items:center}.delivery-group-store-section>header span{font-size:10px;color:var(--ux-ink-muted)}
.delivery-store-choices{display:grid;gap:var(--ui-gap-tight);max-height:52vh;overflow:auto;padding-inline-end:3px}
.delivery-store-choice{grid-template-columns:16px 54px minmax(0,1fr) auto;font-size:11.5px}
.delivery-store-choice.inactive{opacity:.62}.delivery-store-choice-code{font-weight:700}.delivery-store-choice-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.delivery-store-choice small{font-size:9.5px;color:var(--ux-ink-muted);white-space:nowrap}
.delivery-group-lifecycle{border-top:1px solid var(--ux-border);padding:var(--space-3) var(--space-4);background:var(--ux-surface)}
.delivery-group-actions{flex:0 0 auto}
@media(max-width:760px){.delivery-groups-grid{grid-template-columns:1fr}.delivery-group-form-fields{grid-template-columns:1fr;padding:8px}.delivery-group-sort{max-width:140px}.delivery-group-store-section{padding:8px}.delivery-store-choice{grid-template-columns:16px 50px minmax(0,1fr)}.delivery-store-choice small{grid-column:3;white-space:normal}.delivery-store-choices{max-height:none}.delivery-group-lifecycle{padding:8px}}

/* 34.106.1 — slightly denser Category Catalog editor on desktop only. */
@media(min-width:761px){
  body[data-route="category-master"] .category-master-drawer .category-master-form input,
  body[data-route="category-master"] .category-master-drawer .category-master-form select{min-height:36px;padding-block:6px}
  body[data-route="category-master"] .category-master-drawer .category-master-details-grid{gap:9px 11px}
}

.orders-driver-paperwork{display:grid;gap:12px}
.orders-driver-paperwork>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.orders-driver-paperwork>header h3{margin:0;font-size:15px;font-weight:750}
.orders-driver-paperwork>header p{margin:3px 0 0;color:var(--ux-ink-muted);font-size:11px;font-weight:400}
.driver-paperwork-summary{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px;border:1px solid var(--ux-border);border-radius:9px;background:var(--ux-surface-subtle)}
.driver-paperwork-summary>*{padding:5px 9px;border-radius:999px;background:var(--ux-surface);border:1px solid var(--ux-border);font-size:10.5px;font-weight:650}
.driver-paperwork-warning{display:flex;align-items:flex-start;gap:8px;padding:9px 10px;border-radius:8px;border:1px solid var(--ux-border);background:var(--ux-surface-subtle);color:var(--ux-ink-muted);font-size:10.5px}
.driver-paperwork-warning .app-icon{width:16px;height:16px;flex:0 0 auto}
.driver-paperwork-stores{display:grid;gap:6px}
.driver-paperwork-store{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:9px 10px;border:1px solid var(--ux-border);border-radius:8px;background:var(--ux-surface)}
.driver-paperwork-store>div{display:flex;align-items:baseline;gap:7px;min-width:0}
.driver-paperwork-store strong{font-size:11.5px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.driver-paperwork-store small{color:var(--ux-ink-muted);font-size:9.5px;font-weight:400}
.driver-paperwork-store>span{font-size:10.5px;color:var(--ux-ink-muted);font-weight:500}
.driver-paperwork-store>b{font-size:10.5px;font-weight:750}
.driver-paperwork-message{display:grid;gap:5px;font-size:10.5px;font-weight:650}
.driver-paperwork-message textarea{width:100%;min-height:190px;resize:vertical;padding:12px 14px;border:1px solid var(--ux-border-strong);border-radius:9px;background:var(--ux-surface);color:var(--ux-ink);font:400 14px/1.75 Arial,"Noto Sans Hebrew",sans-serif;text-align:right;direction:rtl}
.driver-paperwork-message textarea:focus{outline:2px solid var(--ux-accent);outline-offset:1px}
@media(max-width:760px){.orders-driver-paperwork>header{align-items:stretch;flex-direction:column}.orders-driver-paperwork>header .button{width:100%}.driver-paperwork-store{grid-template-columns:minmax(0,1fr) auto}.driver-paperwork-store>span{grid-column:1}.driver-paperwork-store>b{grid-column:2;grid-row:1 / span 2}.driver-paperwork-message textarea{min-height:230px;font-size:15px}}

@media(min-width:761px){
  .inventory-v22-workspace.inventory-list-only{grid-template-columns:minmax(0,1fr)}
  .inventory-v22-workspace.inventory-list-only>.inventory-v22-list-panel{grid-column:1;width:100%;max-width:none}
  .inventory-v22-workspace.inventory-list-only .inventory-category-cell span{max-width:280px}
  .inventory-detail-close{flex:0 0 32px;width:32px;min-width:32px;height:32px;min-height:32px;padding:0;display:grid;place-items:center}
  .inventory-detail-close span{display:none}
}
@media(max-width:760px){
  .inventory-detail-close{display:none!important}
}

@media(max-width:760px){#page[data-page="account"]{display:block!important}}

/* 34.115 — Orders list-first workspace. Order detail is opt-in like Inventory. */
@media(min-width:761px){
  .orders-list-workspace.orders-list-only{grid-template-columns:minmax(0,1fr)}
  .orders-list-workspace.orders-list-only>.orders-list-panel{grid-column:1;width:100%;max-width:none}
  .orders-detail-close{flex:0 0 32px;width:32px;min-width:32px;height:32px;min-height:32px;padding:0;display:grid;place-items:center}
  .orders-detail-close span{display:none}
  .orders-detail-panel .orders-detail-head:has(.orders-detail-close){grid-template-columns:32px minmax(0,1fr);gap:8px}
}
@media(max-width:760px){.orders-detail-close{display:none!important}}


/* 34.120.22 · Orders fulfillment progress contract */
progress.orders-progress-bar{height:6px!important;background:var(--ux-progress-track)!important;border-radius:999px!important}
progress.orders-progress-bar::-webkit-progress-bar{background:var(--ux-progress-track)!important;border-radius:999px!important}
progress.orders-progress-bar::-webkit-progress-value{background:var(--ux-accent)!important;border-radius:999px!important}
progress.orders-progress-bar::-moz-progress-bar{background:var(--ux-accent)!important;border-radius:999px!important}
.orders-progress{grid-template-columns:minmax(58px,1fr) 32px}
.orders-detail-progress progress.orders-progress-bar{height:6px!important}
.orders-completion-indicator{display:inline-flex;align-items:center;gap:4px;min-height:20px;max-width:100%;padding:2px 6px;border:1px solid #d6dce3;border-radius:999px;background:var(--ux-neutral-soft);color:var(--ux-neutral-ink);font-size:9px;font-weight:720;line-height:1.15;white-space:nowrap}
.orders-completion-indicator svg{width:11px;height:11px;flex:0 0 auto}
.orders-completion-indicator small{padding-inline-start:4px;border-inline-start:1px solid currentColor;color:inherit;font:inherit;opacity:.9}
.orders-completion-indicator.has-missing{border-color:var(--ux-danger-border);background:var(--ux-danger-soft);color:var(--ux-danger)}
@media(max-width:760px){.orders-mobile-card>.orders-completion-indicator{grid-column:1/-1;justify-self:start}.orders-mobile-progress progress.orders-progress-bar{height:6px!important}}

/* =========================================================
   34.120.26 — Dashboard progressive shell + operational cards
   ========================================================= */
.dashboard-overview-band{display:grid;grid-template-columns:minmax(250px,.9fr) minmax(0,3.1fr);gap:8px;align-items:stretch}
.dashboard-overview-band>.dashboard-kpi-strip{margin:0;align-self:stretch}
.dashboard-overview-band .dashboard-metric{height:100%;min-height:82px}
.dashboard-attention-groups{display:grid;align-content:start;min-height:0;max-height:310px;overflow:auto;background:var(--ux-surface)}
.dashboard-attention-group+ .dashboard-attention-group{border-top:1px solid var(--ux-border)}
.dashboard-attention-group>header{min-height:30px;padding:5px 9px;display:flex;align-items:center;justify-content:space-between;gap:8px;background:var(--ux-surface-raised);border-bottom:1px solid var(--ux-border)}
.dashboard-attention-group>header>span{display:flex;align-items:center;gap:6px;font-size:10px;font-weight:780;color:var(--ux-ink)}
.dashboard-attention-group>header>span>i{width:7px;height:7px;border-radius:50%;background:var(--ux-warning)}
.dashboard-attention-group[data-health="zero"]>header>span>i,.dashboard-attention-group[data-health="low"]>header>span>i{background:var(--ux-danger)}
.dashboard-attention-group[data-health="runout"]>header>span>i,.dashboard-attention-group[data-health="immediate"]>header>span>i{background:var(--ux-danger)}
.dashboard-attention-group[data-health="linger"]>header>span>i{background:var(--ux-teal)}
.dashboard-attention-group>header>bdi{min-width:22px;height:20px;padding:0 6px;border-radius:999px;display:grid;place-items:center;background:var(--ux-surface-muted);font-size:9px;font-weight:800;color:var(--ux-ink-muted)}
.dashboard-attention-group>div{display:grid}
.dashboard-attention-group button{position:relative;min-height:43px;border:0;border-bottom:1px solid var(--ux-border);background:var(--ux-surface);padding:6px 27px 6px 9px;display:grid;grid-template-columns:56px minmax(0,1fr) auto;align-items:center;gap:8px;text-align:start;color:var(--ux-ink);cursor:pointer}
[dir="rtl"] .dashboard-attention-group button{padding:6px 9px 6px 27px}
.dashboard-attention-group button:last-child{border-bottom:0}
.dashboard-attention-group button:hover{background:var(--ux-surface-hover)}
.dashboard-attention-code{font-size:13px;font-weight:820;font-variant-numeric:tabular-nums;color:var(--ux-ink)}
.dashboard-attention-description{min-width:0;font-size:10.5px;color:var(--ux-ink-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dashboard-attention-metric{font-size:10px;font-weight:760;color:var(--ux-ink);white-space:nowrap;font-variant-numeric:tabular-nums}
.dashboard-attention-group button>.app-icon{position:absolute;inset-inline-end:8px;top:50%;transform:translateY(-50%);width:13px;height:13px;color:var(--ux-ink-faint)}
[dir="rtl"] .dashboard-attention-group button>.app-icon{transform:translateY(-50%) scaleX(-1)}

.dashboard-pallet-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(70px,1fr));align-content:start;gap:7px;padding:9px;min-height:94px;max-height:310px;overflow:auto;background:var(--ux-surface)}
.dashboard-pallet-tile{min-width:0;min-height:66px;border:1px solid var(--ux-border);border-radius:8px;background:var(--ux-surface-raised);display:grid;place-items:center;padding:7px 8px;text-align:center;color:var(--ux-ink);cursor:pointer}
.dashboard-pallet-tile:hover{border-color:#9eb7d3;background:var(--ux-surface-selected);box-shadow:0 2px 6px rgba(24,45,68,.05)}
.dashboard-pallet-tile>bdi{font-size:17px;line-height:1;font-weight:830;font-variant-numeric:tabular-nums;text-align:center}

.dashboard-panel-skeleton{pointer-events:none}
.dashboard-skeleton-rows{display:grid;min-height:232px;background:var(--ux-surface)}
.dashboard-skeleton-row{min-height:58px;padding:8px 10px;border-bottom:1px solid var(--ux-border);display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:9px}
.dashboard-skeleton-row>i{width:34px;height:22px;border-radius:999px;background:var(--ux-neutral-surface)}
.dashboard-skeleton-row>span{display:grid;gap:6px}
.dashboard-skeleton-row b{display:block;height:9px;border-radius:5px;background:var(--ux-neutral-surface)}
.dashboard-skeleton-row b:first-child{width:55%}.dashboard-skeleton-row b:last-child{width:78%}
.dashboard-skeleton-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;padding:9px;min-height:232px;align-content:start}
.dashboard-skeleton-tile{height:66px;border-radius:8px;background:var(--ux-neutral-surface)}
.dashboard-skeleton-line{display:block;height:10px;border-radius:5px;background:var(--ux-neutral-surface)}.dashboard-skeleton-line.short{width:26px}.dashboard-skeleton-line.medium{width:110px}.dashboard-skeleton-line.long{width:155px;max-width:100%}
.dashboard-skeleton-metric strong{display:flex;justify-content:flex-end;align-items:center;min-width:30px}
.dashboard-skeleton-row>i,.dashboard-skeleton-row b,.dashboard-skeleton-tile,.dashboard-skeleton-line{animation:dashboard-skeleton-pulse 1.15s ease-in-out infinite alternate}
@keyframes dashboard-skeleton-pulse{from{opacity:.55}to{opacity:1}}

@media(max-width:1180px) and (min-width:761px){
  .dashboard-overview-band{grid-template-columns:minmax(250px,.8fr) minmax(0,1.7fr)}
  .dashboard-overview-band>.dashboard-kpi-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .dashboard-overview-band{display:flex;flex-direction:column;gap:7px}
  .dashboard-overview-band>.dashboard-kpi-strip{width:100%}
  .dashboard-attention-groups,.dashboard-pallet-grid{max-height:none;overflow:visible}
  .dashboard-attention-group button{grid-template-columns:48px minmax(0,1fr);grid-template-rows:auto auto;gap:1px 7px;min-height:50px}
  .dashboard-attention-metric{grid-column:2;font-size:9px;color:var(--ux-ink-muted)}
  .dashboard-attention-description{font-size:10px}
  .dashboard-pallet-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:7px}
  .dashboard-pallet-tile{min-height:62px;padding:6px}
  .dashboard-skeleton-tiles{grid-template-columns:repeat(3,minmax(0,1fr));min-height:150px}
  .dashboard-skeleton-rows{min-height:180px}
}

/* =========================================================
   34.120.27 — dashboard queue donut, universal skeletons,
   Warehouse Reference wider placement map.
   ========================================================= */

/* Dashboard: the fulfillment donut belongs to the current order in the queue,
   not to a separate KPI/card. */
.dashboard-overview-band.dashboard-overview-band-kpis{display:block}
.dashboard-overview-band.dashboard-overview-band-kpis>.dashboard-kpi-strip{width:100%;margin:0}
.dashboard-order-list>button.dashboard-current-order{grid-template-columns:48px minmax(0,1fr);min-height:64px;background:var(--ux-surface-subtle)}
.dashboard-order-donut{--dashboard-progress:0deg;position:relative;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--ux-accent) var(--dashboard-progress),#e6ebf1 0);box-shadow:inset 0 0 0 1px rgba(23,63,107,.04)}
.dashboard-order-donut::before{content:"";position:absolute;inset:5px;border-radius:50%;background:var(--ux-surface)}
.dashboard-order-donut>span{position:relative;z-index:1;display:grid;place-items:center}
.dashboard-order-donut strong{font-size:10px;line-height:1;font-weight:840;font-variant-numeric:tabular-nums;color:var(--ux-ink)}
.dashboard-current-order .dashboard-order-copy>strong{font-size:13px}
.dashboard-current-order .dashboard-order-copy>small{font-size:10px}

/* Universal initial page skeleton. Keep inline/saving spinners unchanged; this
   targets only route/data placeholders that previously showed a bare spinner. */
.page-loading,
.inventory-loading,
.category-master-loading:not(.error){
  position:relative!important;
  box-sizing:border-box;
  width:100%;
  min-height:260px!important;
  padding:12px!important;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  grid-template-rows:72px 164px!important;
  gap:9px!important;
  align-content:start!important;
  place-items:stretch!important;
  font-size:0!important;
  color:transparent!important;
  background:transparent!important;
  border:0!important;
}
.page-loading>.status-spinner,.page-loading>.spinner,
.inventory-loading>.status-spinner,
.category-master-loading:not(.error)>.status-spinner,.category-master-loading:not(.error)>p{display:none!important}
.page-loading::before,
.inventory-loading::before,
.category-master-loading:not(.error)::before{
  content:"";
  grid-column:1/-1;
  grid-row:1;
  border:1px solid var(--ux-border);
  border-radius:9px;
  background:
    linear-gradient(90deg,transparent 0,var(--ux-skeleton-sheen) 48%,transparent 100%) -220px 0/220px 100% no-repeat,
    linear-gradient(var(--ux-neutral-surface) 0 0) 14px 14px/28% 10px no-repeat,
    linear-gradient(var(--ux-surface-sunken) 0 0) 14px 34px/44% 8px no-repeat,
    linear-gradient(var(--ux-neutral-surface) 0 0) calc(100% - 76px) 18px/58px 34px no-repeat,
    var(--ux-surface);
  animation:odafim-page-skeleton-shimmer 1.25s ease-in-out infinite;
}
.page-loading::after,
.inventory-loading::after,
.category-master-loading:not(.error)::after{
  content:"";
  grid-column:1/-1;
  grid-row:2;
  border:1px solid var(--ux-border);
  border-radius:9px;
  background:
    linear-gradient(90deg,transparent 0,var(--ux-skeleton-sheen) 48%,transparent 100%) -260px 0/260px 100% no-repeat,
    linear-gradient(var(--ux-neutral-surface) 0 0) 14px 15px/34% 10px no-repeat,
    linear-gradient(var(--ux-surface-sunken) 0 0) 14px 36px/calc(100% - 28px) 1px no-repeat,
    repeating-linear-gradient(to bottom,#e9edf2 0 10px,transparent 10px 28px) 14px 58px/calc(100% - 28px) 92px no-repeat,
    var(--ux-surface);
  animation:odafim-page-skeleton-shimmer 1.25s ease-in-out infinite;
}
@keyframes odafim-page-skeleton-shimmer{0%{background-position:-260px 0,14px 14px,14px 34px,calc(100% - 76px) 18px,0 0}100%{background-position:calc(100% + 260px) 0,14px 14px,14px 34px,calc(100% - 76px) 18px,0 0}}
@media(max-width:760px){
  .page-loading,.inventory-loading,.category-master-loading:not(.error){grid-template-columns:1fr!important;grid-template-rows:68px 214px!important;padding:7px!important;gap:7px!important;min-height:300px!important}
}

/* Warehouse Reference desktop: Location Detail sits below the unplaced-pallet
   tray. The map owns the full right side. Internal rack/zone ordering is not
   changed in this build. */
@media(min-width:1001px){
  .warehouse-placement-workspace{
    grid-template-columns:minmax(210px,250px) minmax(0,1fr) minmax(250px,300px)!important;
    grid-template-rows:minmax(0,1fr)!important;
    grid-template-areas:"tray map detail";
  }
  .warehouse-placement-workspace>.warehouse-pallet-tray{grid-area:tray;min-height:0;height:100%}
  .warehouse-placement-workspace>.wr6-map-panel{grid-area:map;min-width:0;min-height:0;height:100%}
  .warehouse-placement-workspace>.wr6-detail{grid-area:detail;min-height:0;height:100%}
  .warehouse-pallet-tray-scroll{min-height:0}
}
.warehouse-reference-page-loading{grid-column:1/-1!important;grid-row:1/-1!important;align-self:stretch;min-height:0!important}


/* 34.120.31 Warehouse Reference physical pair-rack map */
.placement-rack-pair-grid{display:grid;grid-template-columns:1fr;gap:24px;align-items:start}
.placement-rack-pair{min-width:0;border:0;border-radius:0;background:transparent;padding:0;display:grid;gap:0;overflow:visible}
.placement-pair-rack{display:grid;grid-template-columns:26px minmax(0,1fr);gap:6px;align-items:stretch;min-width:0}
.placement-pair-rack-tab{display:flex;align-items:center;justify-content:center;min-height:0}
.placement-pair-rack-tab span{width:22px;height:58px;background:var(--ux-neutral-soft);color:var(--ux-neutral-ink);border:1px solid var(--ux-neutral-border);display:grid;place-items:center;font-size:11px;font-weight:800;letter-spacing:.035em;writing-mode:vertical-rl;transform:rotate(180deg);padding:5px 0;border-radius:5px}
.placement-pair-rack-body{border:0;border-radius:0;padding:8px 10px;display:grid;gap:8px;background:transparent;min-width:0}
.placement-pair-rack.pair-first-rack .placement-pair-rack-body{padding-bottom:4px}
.placement-pair-rack.pair-second-rack .placement-pair-rack-body{padding-top:4px}
.placement-pair-zone{display:grid;grid-template-columns:22px minmax(0,1fr);gap:8px;align-items:start;min-width:0}
.placement-pair-zone>b{font-size:18px;line-height:1;color:var(--ux-ink);padding-top:12px}
.placement-pair-zone-g>b{color:#258a3f}.placement-pair-zone-a>b{color:#cb7a0b}.placement-pair-zone-b>b{color:#2a69b5}
.placement-pair-zone-content{min-width:0;display:flex;flex-wrap:wrap;gap:4px}
.placement-pair-zone .placement-location{flex:0 0 60px;width:60px;min-width:60px;min-height:46px;height:46px}
.placement-pair-zone .placement-location strong{font-size:10.5px;font-weight:750}.placement-pair-zone .placement-location small{font-size:7.5px;font-weight:500;color:var(--ux-ink-muted);white-space:nowrap}.placement-pair-zone .placement-location em{font-size:7px}
/* Keep the quieter location code readable on dark full slots. Category ID remains the primary label. */
.placement-pair-zone .placement-location.full small{color:#f4f7fa}

/* The outside rack's G lane is physically separated from B/A. */
.placement-pair-rack.pair-first-rack .placement-pair-zone-g{margin-bottom:40px}
/* The inside rack's G lane is one logical G block rendered as two stacked halves. */
.placement-pair-slot-split{min-width:0;display:grid;grid-template-columns:minmax(0,1fr);gap:40px;align-items:start}
.placement-pair-slot-half{display:flex;align-items:flex-start;flex-wrap:wrap;gap:4px;min-width:0}

@media(hover:hover) and (pointer:fine) and (min-width:761px){
  .placement-pair-rack-body{transition:background-color .14s ease,border-radius .14s ease}
  .placement-pair-rack:hover .placement-pair-rack-body{background:rgba(40,79,119,.035);border-radius:7px}
}
@media(max-width:1180px){.placement-rack-pair-grid{grid-template-columns:1fr}}
@media(max-width:760px){.placement-rack-pair-grid{gap:18px}.placement-rack-pair{padding:0}.placement-pair-rack{grid-template-columns:23px minmax(0,1fr);gap:5px}.placement-pair-rack-tab span{width:19px;height:50px;font-size:10px}.placement-pair-rack-body{padding-inline:7px}.placement-pair-zone{grid-template-columns:18px minmax(0,1fr);gap:6px}.placement-pair-zone>b{font-size:15px;padding-top:10px}.placement-pair-zone .placement-location{flex-basis:56px;width:56px;min-width:56px;min-height:44px;height:44px}.placement-pair-zone .placement-location strong{font-size:10px}.placement-pair-zone .placement-location small{font-size:7px;font-weight:500}.placement-pair-rack.pair-first-rack .placement-pair-zone-g{margin-bottom:40px}.placement-pair-slot-split{gap:40px}}

/* 34.120.38 Mobile Rack Check / Location Walk */
.warehouse-rack-check-launch{display:none}
.rack-check-workspace{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;grid-template-areas:none!important;overflow:auto!important;padding:10px!important}
.warehouse-rack-check{width:min(760px,100%);margin:0 auto;display:grid;align-content:start;gap:10px;min-width:0}
.rack-check-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid var(--ux-border);border-radius:12px;background:var(--ux-surface)}
.rack-check-header>div:first-child{display:grid;gap:2px;min-width:0}.rack-check-header>div:first-child>span,.rack-check-header small{font-size:10px;color:var(--ux-ink-muted)}
.rack-check-header h2{margin:0;font-size:30px;line-height:1.05;letter-spacing:.02em}.rack-check-progress{display:grid;justify-items:end;gap:1px;white-space:nowrap}.rack-check-progress strong{font-size:20px}.rack-check-progress span{font-size:9px;color:var(--ux-ink-muted)}
.rack-check-current{display:grid;gap:10px}.rack-check-blocked{display:flex;align-items:center;gap:7px;padding:9px 10px;border:1px solid var(--ux-warning-border);border-radius:9px;background:var(--ux-warning-soft);color:var(--ux-warning-ink);font-size:11px}
.rack-check-expected{border:1px solid var(--ux-border);border-radius:12px;background:var(--ux-surface);overflow:hidden}.rack-check-expected>header{min-height:48px;padding:8px 11px;border-bottom:1px solid var(--ux-border);display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--ux-surface-inset)}.rack-check-expected>header>div{display:grid;gap:2px}.rack-check-expected>header strong{font-size:12px}.rack-check-expected>header small{font-size:9px;color:var(--ux-ink-muted)}.rack-check-expected>header>span{font-size:11px;font-weight:750;color:var(--ux-ink-muted)}
.rack-check-pallet{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px;border-bottom:1px solid var(--ux-border)}.rack-check-pallet:last-child{border-bottom:0}.rack-check-pallet-copy{min-width:0;display:grid;gap:2px}.rack-check-pallet-copy>span{font-size:8px;text-transform:uppercase;letter-spacing:.04em;color:var(--ux-ink-muted)}.rack-check-pallet-copy>strong{font-size:23px;line-height:1.05}.rack-check-pallet-copy>strong em{font-size:12px;font-style:normal;color:var(--ux-ink-muted)}.rack-check-pallet-copy>small{font-size:10px;color:var(--ux-ink-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rack-check-pallet-copy>p{margin:2px 0 0;font-size:9px;color:var(--ux-ink-muted)}
.rack-check-pallet-actions{display:grid;gap:6px;min-width:132px}.rack-check-pallet-actions .button{min-height:36px;justify-content:flex-start;font-size:10px}
.rack-check-empty{min-height:130px;display:grid;place-content:center;justify-items:center;text-align:center;gap:5px;color:var(--ux-success)}.rack-check-empty .app-icon{width:25px;height:25px}.rack-check-empty strong{font-size:14px}.rack-check-empty span{font-size:10px;color:var(--ux-ink-muted)}
.rack-check-primary-actions{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:8px}.rack-check-primary-actions .button{min-height:46px;font-size:12px}.rack-check-help{padding:0 4px;color:var(--ux-ink-muted);font-size:9px;line-height:1.35}
.rack-check-actionbar>div:last-child{display:flex;gap:6px}.rack-check-actionbar .button{min-width:94px}
.rack-check-category-picker{width:min(620px,86vw);display:grid;gap:11px}.rack-check-category-options{display:grid;gap:5px;max-height:min(58vh,520px);overflow:auto;padding:1px}.rack-check-category-option{appearance:none;width:100%;min-height:58px;border:1px solid var(--ux-border);border-radius:9px;background:var(--ux-surface);color:inherit;display:grid;grid-template-columns:minmax(0,1fr) auto 20px;align-items:center;gap:9px;padding:8px 10px;text-align:start;cursor:pointer}.rack-check-category-option:hover{border-color:var(--ux-border-hover-strong);background:var(--ux-surface-hover)}.rack-check-category-option>span{min-width:0;display:grid;gap:2px}.rack-check-category-option strong{font-size:16px}.rack-check-category-option small{font-size:10px;color:var(--ux-ink-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rack-check-category-option>em{font-size:9px;font-style:normal;color:var(--ux-ink-muted);white-space:nowrap}.rack-check-category-option>em.has-unplaced{color:var(--ux-warning);font-weight:700}
@media(max-width:760px){
  .warehouse-rack-check-launch{display:inline-flex!important}
  .warehouse-placement-workspace.rack-check-workspace{padding:6px!important;display:block!important;overflow:auto!important}
  .warehouse-rack-check{width:100%;gap:7px;padding-bottom:4px}
  .rack-check-header{padding:10px 11px;border-radius:10px}.rack-check-header h2{font-size:27px}.rack-check-progress strong{font-size:18px}
  .rack-check-pallet{grid-template-columns:1fr;gap:8px;padding:10px}.rack-check-pallet-actions{grid-template-columns:1fr 1fr;min-width:0}.rack-check-pallet-actions .button{justify-content:center;min-height:42px}
  .rack-check-primary-actions{grid-template-columns:1fr 1fr}.rack-check-primary-actions .button{min-height:48px}
  .rack-check-actionbar>div:first-child{display:none}.rack-check-actionbar>div:last-child{width:100%;display:grid;grid-template-columns:1fr 1fr 1fr}.rack-check-actionbar .button{min-width:0;padding-inline:7px}
  .rack-check-category-picker{width:min(94vw,620px)}.rack-check-category-options{max-height:62vh}.rack-check-category-option{grid-template-columns:minmax(0,1fr) auto 18px;min-height:62px}
}


/* 34.120.39 Rack Check: fast scrollable location list */
.rack-check-list-mode{width:min(980px,100%);height:100%;margin:0 auto;display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:7px;min-width:0;overflow:hidden}
.rack-check-list-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 11px;border:1px solid var(--ux-border);border-radius:10px;background:var(--ux-surface)}
.rack-check-list-header>div:first-child{min-width:0}.rack-check-list-header h2{margin:0;font-size:17px}.rack-check-list-header p{margin:3px 0 0;font-size:9px;line-height:1.3;color:var(--ux-ink-muted)}
.rack-check-list-summary{display:grid;justify-items:end;white-space:nowrap}.rack-check-list-summary strong{font-size:18px}.rack-check-list-summary span{font-size:8px;color:var(--ux-ink-muted)}
.rack-check-list-filters{display:flex;align-items:center;gap:5px;min-height:36px;padding:4px 6px;border:1px solid var(--ux-border);border-radius:9px;background:var(--ux-surface-inset)}
.rack-check-list-filters button{appearance:none;min-height:27px;padding:3px 9px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--ux-ink-muted);font:inherit;font-size:9px;font-weight:700;cursor:pointer}
.rack-check-list-filters button.active{border-color:#bfd1e3;background:var(--ux-surface);color:#245f9f;box-shadow:0 1px 2px rgba(24,54,84,.05)}
.rack-check-list-filters>span{margin-inline-start:auto;font-size:9px;color:var(--ux-ink-muted);font-variant-numeric:tabular-nums}
.rack-check-location-list{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;border:1px solid var(--ux-border);border-radius:10px;background:var(--ux-surface)}
.rack-check-rack-group>header{position:sticky;top:0;z-index:2;min-height:31px;padding:5px 8px;display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid var(--ux-border);border-top:1px solid var(--ux-border);background:var(--ux-surface-header)}
.rack-check-rack-group:first-child>header{border-top:0}.rack-check-rack-group>header strong{font-size:11px}.rack-check-rack-group>header span{font-size:8.5px;color:var(--ux-ink-muted);font-variant-numeric:tabular-nums}
.rack-check-location-row{min-height:54px;padding:5px 7px;display:grid;grid-template-columns:86px minmax(70px,1fr) minmax(300px,auto);gap:6px;align-items:center;border-bottom:1px solid #edf1f4;background:var(--ux-surface)}
.rack-check-location-row:last-child{border-bottom:0}.rack-check-location-row.empty{background:var(--ux-surface-raised)}.rack-check-location-row.blocked{background:var(--ux-warning-soft)}
.rack-check-location-id{display:flex;align-items:baseline;gap:5px;min-width:0}.rack-check-location-id strong{font-size:12px;font-weight:720;white-space:nowrap}.rack-check-location-id small{font-size:8px;color:var(--ux-ink-muted);font-variant-numeric:tabular-nums}
.rack-check-location-category{min-width:0;display:flex;align-items:center;gap:4px;overflow:hidden}.rack-check-category-token{min-width:0;display:flex;align-items:baseline;gap:4px}.rack-check-category-token strong{font-size:14px;line-height:1}.rack-check-category-token em{font-size:8px;font-style:normal;color:var(--ux-ink-muted)}.rack-check-category-token small{min-width:0;font-size:8.5px;color:var(--ux-ink-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rack-check-category-empty{font-size:9px;color:#96a1ad}
.rack-check-location-actions{display:grid;grid-template-columns:repeat(4,minmax(64px,1fr));gap:4px;min-width:0}.rack-check-location-actions .button{min-height:34px;height:34px;padding:2px 5px;font-size:8.5px;line-height:1.05;white-space:normal}.rack-check-location-actions .button .app-icon{width:13px;height:13px;flex:0 0 13px}
.rack-check-actionbar>div:last-child{display:flex;justify-content:flex-end}.rack-check-actionbar>div:last-child .button{min-width:110px}
@media(max-width:760px){
  .rack-check-workspace{padding:5px!important;overflow:hidden!important}
  .rack-check-list-mode{gap:5px}
  .rack-check-list-header{padding:7px 8px;border-radius:8px}.rack-check-list-header h2{font-size:15px}.rack-check-list-header p{font-size:8px}.rack-check-list-summary strong{font-size:15px}.rack-check-list-summary span{font-size:7.5px}
  .rack-check-list-filters{min-height:var(--ui-touch-target);padding:var(--ui-gap-tight);gap:var(--ui-gap-tight)}.rack-check-list-filters button{min-height:var(--ui-touch-target);padding-inline:var(--ui-control-pad-x);font-size:var(--ui-type-caption)}
  .rack-check-location-list{border-radius:8px}
  .rack-check-rack-group>header{min-height:29px;padding:4px 7px}.rack-check-rack-group>header strong{font-size:10px}
  .rack-check-location-row{min-height:72px;padding:4px 5px;grid-template-columns:76px minmax(42px,1fr) minmax(170px,196px);gap:4px}
  .rack-check-location-id{gap:3px}.rack-check-location-id strong{font-size:10.5px}.rack-check-location-id small{font-size:7px}
  .rack-check-category-token{display:flex;gap:2px}.rack-check-category-token strong{font-size:12px}.rack-check-category-token em{font-size:7px}.rack-check-category-token small{display:none}.rack-check-category-empty{font-size:8px}
  .rack-check-location-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--ui-gap-tight)}.rack-check-location-actions .button{min-height:var(--ui-touch-target);height:var(--ui-touch-target);padding-inline:var(--ui-gap-tight);font-size:var(--ui-type-caption);gap:var(--ui-gap-tight)}.rack-check-location-actions .button .app-icon{width:13px;height:13px;flex-basis:13px}
  .rack-check-actionbar>div:first-child{display:flex!important;max-width:50%}.rack-check-actionbar>div:last-child{width:auto!important;display:flex!important}.rack-check-actionbar>div:last-child .button{min-width:92px}
}

/* 34.120.40 Rack Check move destination picker */
.rack-check-move-option>em{min-width:62px;text-align:end}.rack-check-move-option>span small{font-variant-numeric:tabular-nums}

/* 34.120.43 Analytics slow-moving stock opportunities */
.analytics-slow-moving-card{grid-column:1/-1!important;grid-row:auto!important}
.analytics-slow-moving-card>footer{padding:8px 12px;border-top:1px solid var(--line-soft);color:var(--ink-faint);font-size:9.5px;line-height:1.4;background:var(--ux-surface-raised)}
.analytics-slow-moving-wrap{max-height:360px;overflow:auto}
.analytics-slow-moving-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:11px}
.analytics-slow-moving-table thead{position:sticky;top:0;z-index:2;background:var(--surface-2)}
.analytics-slow-moving-table td{padding:8px 10px;border-bottom:1px solid var(--line-soft);vertical-align:middle;text-align:start}
.analytics-slow-moving-table th.numeric,.analytics-slow-moving-table td.numeric{text-align:end}
.analytics-slow-moving-table td:first-child strong,.analytics-slow-moving-table td:first-child small,.analytics-slow-moving-table td:nth-child(2) strong,.analytics-slow-moving-table td:nth-child(2) small{display:block}
.analytics-slow-moving-table td small{margin-top:2px;color:var(--ink-faint);font-size:9px}
.analytics-slow-moving-signal{display:inline-flex;align-items:center;min-height:24px;padding:3px 7px;border-radius:999px;font-size:9px;font-weight:700;white-space:nowrap}
.analytics-slow-moving-signal.critical{background:var(--ux-danger-soft);color:var(--ux-danger)}
.analytics-slow-moving-signal.watch{background:var(--ux-warning-soft);color:var(--ux-warning-ink)}

/* 34.120.43 Inventory Request replenishment suggestions */
.inventory-request-workspace{grid-template-rows:auto auto minmax(0,1fr) auto}
.inventory-request-suggested{min-height:0;border:1px solid var(--ux-info-border);border-radius:var(--radius-lg);background:var(--ux-info-soft);overflow:hidden}
.inventory-request-suggested>header{min-height:50px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border-bottom:1px solid var(--ux-info-border);background:var(--ux-surface-selected)}
.inventory-request-suggested>header>div{min-width:0;display:grid;gap:2px}
.inventory-request-suggested>header strong{font-size:12px;color:var(--ink-strong)}
.inventory-request-suggested>header small{font-size:9px;color:var(--ink-soft)}
.inventory-request-suggested-list{max-height:215px;overflow:auto;display:grid;align-content:start}
.inventory-request-suggestion{min-height:52px;display:grid;grid-template-columns:minmax(0,1fr) 92px 112px;align-items:center;gap:9px;padding:7px 10px;border-bottom:1px solid var(--ux-border-muted);background:var(--ux-surface)}
.inventory-request-suggestion:last-child{border-bottom:0}
.inventory-request-suggestion.added{background:var(--ux-success-soft)}
.inventory-request-suggestion-copy{min-width:0;display:grid;gap:2px}
.inventory-request-suggestion-copy>strong{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.inventory-request-suggestion-copy>small{font-size:9px;color:var(--ink-soft);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.inventory-request-suggestion-qty{display:grid;grid-template-columns:auto auto;justify-content:end;align-items:baseline;column-gap:4px;text-align:end}
.inventory-request-suggestion-qty>span{grid-column:1/-1;font-size:8px;color:var(--ink-faint)}
.inventory-request-suggestion-qty>strong{font-size:17px;color:var(--blue-700,#245f9f)}
.inventory-request-suggestion-qty>small{font-size:8px;color:var(--ink-soft)}
.inventory-request-suggested.empty{min-height:72px}
.inventory-request-suggested.empty>header{border-bottom:0}
.inventory-request-suggested.empty>p{margin:0;padding:0 10px 10px;color:var(--ink-soft);font-size:10px}
@media(max-width:760px){
  .analytics-slow-moving-wrap{max-height:420px}
  .analytics-slow-moving-table{min-width:620px}
  .inventory-request-workspace{grid-template-rows:auto minmax(0,1fr) auto!important;gap:6px}
  .inventory-request-suggested{border-radius:10px}
  .inventory-request-suggested>header{align-items:flex-start;padding:8px}
  .inventory-request-suggested>header .button{min-height:40px;padding-inline:8px}
  .inventory-request-suggested-list{max-height:230px}
  .inventory-request-suggestion{grid-template-columns:minmax(0,1fr) 72px;grid-template-rows:auto auto;gap:6px;padding:8px}
  .inventory-request-suggestion-copy>strong{font-size:12px}
  .inventory-request-suggestion-copy>small{font-size:9px;white-space:normal;line-height:1.3}
  .inventory-request-suggestion-qty{grid-column:2;grid-row:1}
  .inventory-request-suggestion>.button{grid-column:1/-1;min-height:var(--ui-touch-target)}
}


/* 34.120.46 configurable slow-moving stock report */
.analytics-slow-moving-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap;flex:0 0 auto}
.analytics-slow-moving-criteria{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:6px}
.analytics-slow-moving-criteria span{display:inline-flex;align-items:center;min-height:22px;padding:3px 7px;border-radius:999px;background:var(--ux-surface-disabled);border:1px solid var(--line-soft);color:var(--ink-soft);font-size:9px;font-weight:650}
.analytics-slow-settings-form{width:min(680px,90vw);display:grid;gap:14px}
.analytics-slow-settings-form>h2{margin:0}.analytics-slow-settings-form>p{margin:-7px 0 0;color:var(--ink-soft);font-size:11px}
.analytics-slow-settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.analytics-slow-settings-grid>label{display:grid;gap:5px;color:var(--ink-soft);font-size:10px;font-weight:700}
.analytics-slow-settings-grid input[type="number"],.analytics-slow-settings-grid select{min-height:38px;width:100%;border:1px solid var(--line);border-radius:7px;background:var(--ux-surface);padding:6px 8px;color:var(--ink)}
.analytics-slow-settings-check{grid-column:1/-1!important;display:flex!important;align-items:center;gap:9px;min-height:42px;padding:9px 10px;border:1px solid var(--line-soft);border-radius:8px;background:var(--ux-surface-raised)}
.analytics-slow-settings-check input{width:18px;height:18px;flex:0 0 auto}
.analytics-slow-settings-form>footer{display:grid;grid-template-columns:auto 1fr auto auto;gap:var(--ui-gap);align-items:center;padding-top:12px;border-top:1px solid var(--line-soft)}
@media(max-width:760px){.analytics-slow-moving-actions{width:100%;justify-content:stretch}.analytics-slow-moving-actions>.button{flex:1;min-height:var(--ui-touch-target)}.analytics-slow-settings-grid{grid-template-columns:1fr}.analytics-slow-settings-form{width:min(94vw,680px)}.analytics-slow-settings-form>footer{grid-template-columns:1fr 1fr}.analytics-slow-settings-form>footer>span{display:none}.analytics-slow-settings-form>footer>[data-slow-moving-reset]{grid-column:1/-1}}

/* 34.120.50 — local M3 Excel comparison (Warehouse Reference only) */
.warehouse-m3-compare.disabled{pointer-events:none;opacity:.62}
.m3-comparison-modal{display:grid;gap:var(--ui-gap-loose);min-width:0}
.m3-comparison-meta{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:var(--surface-subtle);font-size:12px;color:var(--ink-soft)}
.m3-comparison-meta>span{display:inline-flex;align-items:center;gap:6px;min-width:0}.m3-comparison-meta .app-icon{width:16px;height:16px}.m3-comparison-meta strong{max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink-strong)}
.m3-comparison-table-wrap{max-height:min(62vh,620px);overflow:auto;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.m3-comparison-table{font-size:12px}.m3-comparison-table td{padding:8px 10px;text-align:start;border-bottom:1px solid var(--line-soft);vertical-align:top}.m3-comparison-table th{position:sticky;top:0;z-index:1}.m3-comparison-table td:first-child{font-weight:750;white-space:nowrap}.m3-comparison-table td:nth-child(2),.m3-comparison-table td:nth-child(3){font-variant-numeric:tabular-nums;white-space:nowrap}.m3-comparison-table tbody tr:last-child td{border-bottom:0}
@media(max-width:760px){.m3-comparison-meta{display:grid;gap:5px}.m3-comparison-table{min-width:560px}.m3-comparison-table-wrap{max-height:58vh}}



/* 34.120.50.2 — desktop/operator M3 controls, sortable discrepancy table, Odafim edit links. */
.m3-sort-button i::before{content:'↕';font-style:normal;color:var(--ink-muted);font-size:10px}
.m3-sort-button[data-sort-direction="asc"] i::before{content:'↑';color:var(--accent)}
.m3-sort-button[data-sort-direction="desc"] i::before{content:'↓';color:var(--accent)}
.m3-open-odafim{white-space:nowrap;text-decoration:none}
.m3-comparison-table th:last-child,.m3-comparison-table td:last-child{white-space:nowrap;width:1%}
@media(max-width:760px){.warehouse-m3-compare{display:none!important}.m3-comparison-modal{display:none!important}}
/* 34.120.50.3 — M3 Bal IDs occupancy evidence */
.m3-stock-state{display:inline-flex;align-items:center;min-height:22px;padding:2px 7px;border-radius:999px;border:1px solid var(--line);font-size:11px;font-weight:700;white-space:nowrap}.m3-stock-state.present{background:var(--ux-success-soft);border-color:var(--ux-success-border);color:var(--ux-success)}.m3-stock-state.absent{background:var(--ux-surface-muted);color:var(--ink-soft)}.m3-stock-state.unknown{background:var(--ux-warning-soft);border-color:var(--ux-warning-border);color:var(--ux-warning-ink)}

/* 34.120.51 — Analytics range controls + explicit desktop M3 label. */
@media(min-width:761px){
  .warehouse-toolbar-actions .warehouse-m3-compare{
    width:auto;
    min-width:max-content;
    padding-inline:10px;
  }
  .warehouse-toolbar-actions .warehouse-m3-compare span{display:inline!important}
}
.analytics-range-form{display:grid;gap:14px;width:min(520px,88vw)}
.analytics-range-form>h2{margin:0;font-size:19px}.analytics-range-form>p{margin:-4px 0 0;color:var(--ink-soft);font-size:11px;line-height:1.45}
.analytics-range-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.analytics-range-fields label{display:grid;gap:5px;color:var(--ink-soft);font-size:11px;font-weight:700}
.analytics-range-fields input{width:100%;min-height:40px;border:1px solid var(--line);border-radius:8px;background:var(--ux-surface);padding:7px 9px;color:var(--ink)}
.analytics-range-form .analytics-range-field-error{display:block;min-height:14px;font-size:10px;line-height:1.3;color:var(--ux-danger);font-weight:650;letter-spacing:0;text-transform:none}
.analytics-range-form .analytics-range-field-error[hidden]{display:none}
.analytics-range-form input[aria-invalid="true"]{border-color:var(--ux-danger);box-shadow:0 0 0 2px var(--ux-error-soft)}
.analytics-range-form>footer{display:grid;grid-template-columns:1fr auto auto;gap:var(--ui-gap);align-items:center;padding-top:12px;border-top:1px solid var(--line-soft)}
@media(max-width:760px){
  .analytics-period{overflow-x:auto;max-width:100%;justify-content:flex-start;scrollbar-width:none}
  .analytics-period::-webkit-scrollbar{display:none}
  .analytics-period>.ui-segment{flex:0 0 auto;min-width:74px}
  .analytics-range-fields{grid-template-columns:1fr}
  .analytics-range-form>footer{grid-template-columns:1fr 1fr}.analytics-range-form>footer>span{display:none}
}

/* 34.120.52 Inventory pallet-range filter */
.inventory-pallet-range-filter{display:grid;grid-template-columns:auto 1fr;align-content:start;gap:5px 8px}.inventory-pallet-range-filter h3{grid-column:1/-1}.inventory-pallet-range-enable{align-self:center}.inventory-pallet-range-inputs{display:grid;grid-template-columns:repeat(2,minmax(70px,1fr));gap:6px}.inventory-pallet-range-inputs label{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:5px;font-size:11px;font-weight:700;color:var(--ux-ink-muted)}.inventory-pallet-range-inputs input{width:100%;min-width:0;min-height:30px;border:1px solid var(--ux-border);border-radius:5px;background:var(--ux-surface);padding:4px 6px;font:inherit;color:var(--ux-ink)}.inventory-pallet-range-inputs input:disabled{opacity:.55;background:var(--ux-surface-muted)}
@media(max-width:760px){.inventory-pallet-range-filter{grid-template-columns:1fr}.inventory-pallet-range-filter h3{grid-column:auto}.inventory-pallet-range-inputs input{min-height:44px}}

/* 34.120.53 — Inventory filter pills, active-filter chips, and compact controls. */
.inventory-v22-filters{
  gap:14px 16px;
  padding:14px 16px;
  background:var(--ux-surface-muted);
}
.inventory-filter-group{
  display:grid;
  align-content:start;
  gap:var(--ui-gap);
  min-width:0;
}
.inventory-filter-group h3{
  margin:0;
  font-size:10px;
  font-weight:800;
  letter-spacing:.055em;
  line-height:1.2;
  text-transform:uppercase;
  color:var(--ux-ink-muted);
}
.inventory-filter-group-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--ui-gap);
}
.inventory-filter-options.inventory-filter-pills{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:7px;
}
.inventory-filter-pill{position:relative;margin:0;user-select:none}
.inventory-filter-pill:focus-within{outline:2px solid var(--ux-accent);outline-offset:1px}
.inventory-filter-pill-input{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  min-width:1px!important;
  min-height:1px!important;
  margin:0!important;
  padding:0!important;
  opacity:0!important;
  pointer-events:none;
}
.inventory-filter-group-health .inventory-filter-pill[data-filter-value="healthy"].selected{background:var(--ux-success-soft);border-color:var(--ux-success);color:var(--green-700)}
.inventory-filter-group-health .inventory-filter-pill[data-filter-value="watch"].selected{background:var(--ux-warning-soft);border-color:var(--ux-warning);color:var(--amber-800)}
.inventory-filter-group-health .inventory-filter-pill[data-filter-value="low"].selected,
.inventory-filter-group-health .inventory-filter-pill[data-filter-value="zero"].selected{background:var(--ux-error-soft);border-color:var(--ux-error);color:var(--red-700)}
.inventory-filter-group-health .inventory-filter-pill[data-filter-value="excess"].selected{background:var(--blue-50);border-color:var(--blue-400);color:var(--blue-700)}
.inventory-filter-group-health .inventory-filter-pill[data-filter-value="neutral"].selected{background:var(--ux-surface-selected);border-color:var(--ux-border-strong,var(--ux-border));color:var(--ux-ink)}
.inventory-filter-group-groups{grid-column:span 2}
.inventory-visibility-filters .inventory-filter-options{display:flex;grid-template-columns:none}
.inventory-visibility-filters .inventory-filter-pill{min-height:30px;background:var(--ux-surface);border:1px solid var(--ux-border)}
.inventory-visibility-filters .inventory-filter-pill.selected{background:var(--ux-accent-soft);border-color:var(--blue-400)}
.inventory-pallet-range-filter{
  display:grid;
  grid-template-columns:1fr;
  gap:var(--ui-gap);
  padding:0;
}
.inventory-pallet-range-filter h3{grid-column:auto}
.inventory-pallet-range-enable{min-height:28px;padding:4px 9px;font-size:10px}
.inventory-pallet-range-inputs{
  display:grid;
  grid-template-columns:repeat(2,minmax(82px,1fr));
  gap:7px;
}
.inventory-pallet-range-inputs label{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:6px;
  min-height:34px;
  padding:3px 7px;
  border:1px solid var(--ux-border);
  border-radius:10px;
  background:var(--ux-surface);
  color:var(--ux-ink-muted);
  font-size:11px;
  font-weight:800;
}
.inventory-pallet-range-inputs input{
  width:100%;
  min-width:0;
  min-height:26px;
  padding:2px 4px;
  border:0;
  border-radius:var(--ui-radius-control);
  outline:0;
  background:transparent;
  color:var(--ux-ink);
  font:inherit;
  font-size:var(--ui-type-label);
  font-weight:700;
}
.inventory-pallet-range-inputs label:focus-within{border-color:var(--blue-400);box-shadow:0 0 0 2px var(--ux-accent-soft)}
.inventory-pallet-range-inputs input:disabled{opacity:.45;background:transparent}
.inventory-filter-select{
  gap:var(--ui-gap-tight);
}
.inventory-filter-select>span{
  font-size:var(--ui-type-caption);
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--ux-ink-muted);
}
.inventory-filter-select select{
  min-height:36px;
  border-radius:10px;
  padding-inline:10px 30px;
  font-size:var(--ui-type-label);
  font-weight:650;
  background:var(--ux-surface);
}
.inventory-filter-sort{grid-column:1/-1;max-width:420px}
.inventory-filter-actions{
  grid-column:1/-1;
  align-items:center;
  justify-content:flex-end;
  padding-top:2px;
}
.inventory-filter-actions .button{min-height:34px;border-radius:9px}
.inventory-active-filter-chips{
  display:flex;
  align-items:center;
  gap:var(--ui-gap-tight);
  min-width:0;
  overflow-x:auto;
  scrollbar-width:none;
}
.inventory-active-filter-chips::-webkit-scrollbar{display:none}
.inventory-active-filter-chip{
  appearance:none;
  display:inline-flex;
  flex:0 0 auto;
  align-items:center;
  gap:var(--ui-gap-tight);
  min-height:26px;
  padding:4px 8px 4px 10px;
  border:1px solid var(--blue-400);
  border-radius:999px;
  background:var(--ux-accent-soft);
  color:var(--blue-700);
  font:inherit;
  font-size:9.5px;
  font-weight:750;
  cursor:pointer;
}
.inventory-active-filter-chip:hover{background:var(--blue-100)}
.inventory-active-filter-chip b{font-size:13px;line-height:1;font-weight:700;opacity:.72}
.inventory-active-filter-meta{
  display:flex;
  flex:0 0 auto;
  align-items:center;
  gap:var(--ui-gap);
  margin-inline-start:auto;
  color:var(--ux-ink-muted);
  font-size:9.5px;
  white-space:nowrap;
}
.inventory-active-filter-clear{
  appearance:none;
  padding:3px 7px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:var(--ux-accent);
  font:inherit;
  font-size:9.5px;
  font-weight:800;
  cursor:pointer;
}
.inventory-active-filter-clear:hover{background:var(--ux-accent-soft)}
.inventory-filter-panel-head>div{display:grid;gap:2px}
.inventory-filter-panel-head small{font-size:9px;font-weight:600;color:var(--ux-ink-muted)}

@media(max-width:1000px){
  .inventory-filter-group-groups{grid-column:1/-1}
}
@media(max-width:760px){
  .inventory-v22-filters{gap:14px;padding-inline:14px}
  .inventory-filter-group-groups{grid-column:auto}
  .inventory-filter-pill{min-height:36px;padding:7px 11px;font-size:11px}
  .inventory-pallet-range-enable{min-height:34px}
  .inventory-pallet-range-inputs{grid-template-columns:1fr 1fr}
  .inventory-pallet-range-inputs label{min-height:44px;border-radius:12px}
  .inventory-pallet-range-inputs input{min-height:34px}
  .inventory-filter-sort{max-width:none}
  .inventory-filter-select select{min-height:44px;font-size:12px}
  .inventory-active-filter-meta>span{display:none}
  .inventory-active-filter-clear{font-size:9px}
}
.inventory-v22-toolbar .inventory-filter-summary{
  display:flex;
  flex:1 1 260px;
  align-items:center;
  justify-content:flex-end;
  gap:var(--ui-gap);
  min-width:0;
  margin-inline-start:auto;
  margin-inline-end:0;
  overflow:hidden;
  white-space:normal;
}
.inventory-v22-toolbar .inventory-filter-summary .inventory-active-filter-chips{justify-content:flex-end}
.inventory-filter-result-only{font-size:10px;color:var(--ux-ink-muted);white-space:nowrap}
@media(max-width:1000px){
  .inventory-v22-toolbar .inventory-filter-summary .inventory-active-filter-meta>span{display:none}
}
@media(max-width:760px){
  .inventory-v22-toolbar .inventory-filter-summary{display:none}
}

/* 34.120.53.1 — compact Inventory filter composition. */
@media(min-width:761px){
  .inventory-v22-filters{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:10px 20px;
    padding:12px 14px 11px;
    border:1px solid var(--ux-border);
    border-top:0;
    background:var(--ux-surface);
    box-shadow:0 1px 2px rgba(19,32,51,.02);
  }
  .inventory-v22-filters .inventory-filter-panel-head,
  .inventory-v22-filters .inventory-filter-search{display:none!important}
  .inventory-v22-filters .inventory-filter-group{gap:6px}
  .inventory-v22-filters .inventory-filter-group-groups{
    grid-column:1/-1;
    padding-top:9px;
    border-top:1px solid var(--ux-border-subtle,var(--ux-border));
  }
  .inventory-filter-sort{grid-column:auto;max-width:none}
  .inventory-pallet-range-filter{align-self:end}
  .inventory-pallet-range-filter .inventory-filter-group-title{min-height:18px}
  .inventory-pallet-range-inputs{grid-template-columns:repeat(2,minmax(72px,1fr))}
  .inventory-visibility-filters .inventory-filter-options{gap:6px}
  .inventory-filter-pill{
    min-height:28px;
    padding:5px 10px;
    border-color:transparent;
    background:var(--ux-surface-muted);
    box-shadow:none;
  }
  .inventory-filter-pill:hover{border-color:transparent;background:var(--ux-surface-hover)}
  .inventory-filter-pill.selected{
    border-color:transparent;
    background:var(--ux-accent-soft);
    box-shadow:none;
  }
  .inventory-filter-group-health .inventory-filter-pill.selected{border-color:transparent}
  .inventory-visibility-filters .inventory-filter-pill{min-height:28px;border-color:transparent;background:var(--ux-surface-muted)}
  .inventory-visibility-filters .inventory-filter-pill.selected{border-color:transparent;background:var(--ux-accent-soft)}
}
@media(max-width:1120px) and (min-width:761px){
}
@media(max-width:900px) and (min-width:761px){
  .inventory-v22-filters{grid-template-columns:1fr;gap:10px}
  .inventory-v22-filters .inventory-filter-group-groups{grid-column:auto}
}
@media(max-width:760px){
}


/* 34.120.53.2 — desktop faceted Inventory filter dock and unified control geometry. */
@media(min-width:761px){
  .inventory-v22-filters.open{
    display:block;
    padding:0;
    border:1px solid var(--ux-border);
    border-top:0;
    background:var(--ux-surface);
    box-shadow:0 1px 2px rgba(19,32,51,.025);
  }
  .inventory-filter-dock-nav{
    --inventory-filter-control-h:36px;
    display:flex;
    align-items:center;
    gap:var(--ui-gap-tight);
    min-width:0;
    padding:8px 10px;
    border-bottom:1px solid var(--ux-border);
    overflow-x:auto;
    scrollbar-width:none;
    background:var(--ux-surface);
  }
  .inventory-filter-dock-nav::-webkit-scrollbar{display:none}
  .inventory-filter-dock-button,
  .inventory-filter-dock-clear{
    box-sizing:border-box;
    height:var(--inventory-filter-control-h);
    min-height:var(--inventory-filter-control-h);
    border:1px solid var(--ux-border);
    border-radius:9px;
    background:var(--ux-surface);
    color:var(--ux-ink);
    font:inherit;
    font-size:var(--ui-type-label);
    font-weight:720;
    line-height:1;
    white-space:nowrap;
  }
  .inventory-filter-dock-button{
    display:inline-flex;
    flex:0 0 auto;
    align-items:center;
    justify-content:center;
    gap:7px;
    min-width:104px;
    padding:0 11px;
    cursor:pointer;
  }
  .inventory-filter-dock-button:hover,
  .inventory-filter-dock-clear:hover{background:var(--ux-surface-hover);border-color:var(--ux-border-strong,var(--ux-border))}
  .inventory-filter-dock-button.active{
    border-color:var(--blue-400);
    background:var(--ux-accent-soft);
    color:var(--blue-700);
  }
  .inventory-filter-dock-button b{
    display:grid;
    place-items:center;
    min-width:18px;
    height:18px;
    padding:0 5px;
    border-radius:999px;
    background:var(--blue-100);
    color:var(--blue-700);
    font-size:9px;
    font-weight:800;
  }
  .inventory-filter-dock-button small{font-size:9.5px;font-weight:800;color:inherit;opacity:.78}
  .inventory-filter-dock-spacer{flex:1 1 auto;min-width:12px}
  .inventory-filter-dock-clear{flex:0 0 auto;padding:0 12px;cursor:pointer;color:var(--ux-ink-muted)}
  .inventory-filter-panes{padding:9px 12px 10px;background:var(--ux-surface)}
  .inventory-filter-pane{display:none;min-width:0}
  .inventory-filter-pane.active{display:block}
  .inventory-filter-pane .inventory-filter-group{display:block;min-width:0}
  .inventory-filter-pane .inventory-filter-group-groups{grid-column:auto;padding-top:0;border-top:0}
  .inventory-filter-pane .inventory-filter-group h3,
  .inventory-filter-pane .inventory-filter-select>span{display:none}
  .inventory-filter-pane .inventory-filter-options{gap:6px}
  .inventory-filter-pane .inventory-filter-pill,
  .inventory-filter-pane .inventory-pallet-range-inputs label,
  .inventory-filter-pane .inventory-filter-select select{
    box-sizing:border-box;
    min-height:36px;
    height:36px;
    border-radius:9px;
    font-size:var(--ui-type-label);
  }
  .inventory-filter-pane .inventory-filter-pill{padding:0 11px;background:var(--ux-surface-muted);border:1px solid transparent}
  .inventory-filter-pane .inventory-filter-pill:hover{background:var(--ux-surface-hover);border-color:transparent}
  .inventory-filter-pane .inventory-filter-pill.selected{background:var(--ux-accent-soft);border-color:transparent;box-shadow:none}
  .inventory-filter-pane .inventory-filter-group-health .inventory-filter-pill.selected{border-color:transparent}
  .inventory-filter-pane .inventory-pallet-range-filter{
    display:flex;
    align-items:center;
    gap:var(--ui-gap);
  }
  .inventory-filter-pane .inventory-pallet-range-filter .inventory-filter-group-title{display:flex;align-items:center;min-height:36px}
  .inventory-filter-pane .inventory-pallet-range-enable{height:36px;min-height:36px;padding:0 11px}
  .inventory-filter-pane .inventory-pallet-range-inputs{display:flex;align-items:center;gap:8px}
  .inventory-filter-pane .inventory-pallet-range-inputs label{width:118px;padding:0 9px;background:var(--ux-surface);border:1px solid var(--ux-border)}
  .inventory-filter-pane .inventory-pallet-range-inputs input{height:28px;min-height:28px;padding:0 3px;font-size:11px}
  .inventory-filter-pane .inventory-filter-sort{display:block;max-width:430px}
  .inventory-filter-pane .inventory-filter-select select{width:100%;padding:0 34px 0 11px;border:1px solid var(--ux-border);background:var(--ux-surface)}
  [dir=rtl] .inventory-filter-pane .inventory-filter-select select{padding:0 11px 0 34px}
  .inventory-filter-mobile-actions{display:none!important}
}
@media(max-width:1000px) and (min-width:761px){
  .inventory-filter-dock-button{min-width:96px;padding-inline:9px}
}
@media(max-width:760px){
  .inventory-filter-dock-nav{display:none}
  .inventory-filter-panes{display:contents}
  .inventory-filter-pane{display:block}
  .inventory-filter-mobile-actions{display:flex}
}
@media(min-width:761px){
  .inventory-v22-toolbar .inventory-search input,
  .inventory-v22-toolbar .inventory-toolbar-actions .button{
    box-sizing:border-box;
    height:var(--ui-toolbar-control-height);
    min-height:var(--ui-toolbar-control-height);
    border-radius:var(--ui-radius-search);
  }
  .inventory-v22-toolbar .inventory-toolbar-actions .button{padding-block:0}
}

/* Inventory category descriptions are secondary text inside the category row.
   One row owns hover/selection; descriptions never create a second interactive strip. */
#page[data-page="inventory"] .inventory-v22-page:not(.show-descriptions) .inventory-category-description{
  display:none!important;
}
@media(min-width:761px){
  #page[data-page="inventory"] .inventory-v22-page.show-descriptions .inventory-category-description{
    display:block;
    margin-top:2px;
    max-width:180px;
    font-size:9px;
    font-weight:450;
    line-height:1.2;
    color:var(--ux-ink-faint);
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  #page[data-page="inventory"] .inventory-v22-page.show-descriptions .inventory-category-cell{
    display:grid;
    grid-template-columns:minmax(0,1fr);
    align-items:start;
    gap:1px;
  }
}
@media(max-width:760px){
  #page[data-page="inventory"] .inventory-v22-page.show-descriptions .inventory-category-description{
    display:block!important;
    margin-top:1px;
    font-size:10px;
    font-weight:450;
    line-height:1.22;
    color:var(--ux-ink-muted);
  }
}

/* 34.120.53.4 — Inventory filter hierarchy: section navigation is text-tabs, actual filters remain controls. */
@media(min-width:761px){
  .inventory-filter-dock-nav{
    min-height:42px;
    padding:0 12px;
    gap:2px;
    background:var(--ux-surface);
    border-bottom:1px solid var(--ux-border);
    overflow-x:auto;
  }
  .inventory-filter-dock-caption{
    flex:0 0 auto;
    align-self:center;
    margin-inline-end:8px;
    color:var(--ux-ink-muted);
    font-size:9px;
    font-weight:800;
    letter-spacing:.07em;
    text-transform:uppercase;
    white-space:nowrap;
  }
  .inventory-filter-dock-button{
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    min-width:0;
    height:42px;
    min-height:42px;
    padding:0 9px;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
    color:var(--ux-ink-muted);
    font-size:10.5px;
    font-weight:720;
    cursor:pointer;
  }
  .inventory-filter-dock-button:hover{
    border-color:transparent;
    background:transparent;
    color:var(--ux-ink);
  }
  .inventory-filter-dock-button.active{
    border-color:transparent;
    background:transparent;
    color:var(--blue-700);
  }
  .inventory-filter-dock-button.active::after{
    content:"";
    position:absolute;
    inset-inline:8px;
    bottom:0;
    height:2px;
    border-radius:2px 2px 0 0;
    background:var(--blue-500,var(--ux-accent));
  }
  .inventory-filter-dock-button b{display:none}
  .inventory-filter-dock-button small{
    display:inline;
    min-width:0;
    height:auto;
    padding:0;
    border-radius:0;
    background:transparent;
    color:inherit;
    font-size:9px;
    font-weight:800;
    opacity:.7;
  }
  .inventory-filter-dock-separator{
    flex:0 0 1px;
    width:1px;
    height:18px;
    align-self:center;
    margin:0 5px;
    background:var(--ux-border);
  }
  .inventory-filter-dock-clear{
    height:auto;
    min-height:0;
    padding:6px 3px;
    border:0;
    border-radius:0;
    background:transparent;
    color:var(--ux-ink-muted);
    font-size:10px;
    font-weight:700;
    text-decoration:none;
  }
  .inventory-filter-dock-clear:hover{
    border-color:transparent;
    background:transparent;
    color:var(--blue-700);
    text-decoration:underline;
  }
  .inventory-filter-panes{padding:10px 12px 11px}
  .inventory-filter-pane .inventory-filter-group h3,
  .inventory-filter-pane .inventory-filter-select>span{
    display:block;
    margin:0 0 7px;
    color:var(--ux-ink-muted);
    font-size:9px;
    font-weight:800;
    line-height:1.1;
    letter-spacing:.07em;
    text-transform:uppercase;
  }
  .inventory-filter-pane .inventory-filter-group-title{
    align-items:flex-end;
    min-height:0;
    margin-bottom:7px;
  }
  .inventory-filter-pane .inventory-filter-group-title h3{margin:0}
  .inventory-filter-pane .inventory-pallet-range-filter{
    align-items:flex-end;
    gap:var(--ui-gap);
  }
  .inventory-filter-pane .inventory-pallet-range-filter .inventory-filter-group-title{
    display:flex;
    align-items:center;
    min-height:36px;
    margin:0;
    gap:var(--ui-gap);
  }
  .inventory-filter-pane .inventory-pallet-range-filter .inventory-filter-group-title h3{
    margin-inline-end:2px;
  }
  .inventory-filter-pane .inventory-filter-sort>span{margin-bottom:7px}
  .inventory-display-filters .inventory-filter-pill.selected{
    background:var(--ux-surface-selected,var(--ux-accent-soft));
  }
}
@media(max-width:760px){
  .inventory-display-filters{padding-top:10px;border-top:1px solid var(--ux-border)}
}


/* 34.120.53.5 — shared faceted filter hierarchy for Categories, Orders and Restock. */
@media(min-width:761px){
  .page-facet-shell{display:grid;grid-template-rows:auto auto;min-width:0;margin-bottom:8px;border:1px solid var(--ux-border);border-radius:var(--ui-radius-panel);background:var(--ux-surface);overflow:hidden;box-shadow:0 1px 2px rgba(19,32,51,.025)}
  .page-facet-shell>.ui-toolbar{margin:0;border:0;border-radius:0;box-shadow:none;background:transparent}
  .page-facet-dock{min-width:0;border-top:1px solid var(--ux-border);background:var(--ux-surface)}
  .page-facet-nav{display:flex;align-items:center;min-height:42px;padding:0 12px;gap:2px;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid var(--ux-border)}
  .page-facet-nav::-webkit-scrollbar{display:none}
  .page-facet-caption{flex:0 0 auto;margin-inline-end:8px;color:var(--ux-ink-muted);font-size:9px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;white-space:nowrap}
  
  
  
  
  
  .page-facet-separator{flex:0 0 1px;width:1px;height:18px;margin:0 5px;background:var(--ux-border)}
  .page-facet-spacer{flex:1 1 auto;min-width:10px}
  .page-facet-clear{flex:0 0 auto;padding:6px 3px;border:0;background:transparent;color:var(--ux-ink-muted);font-size:10px;font-weight:700;cursor:pointer}
  .page-facet-clear:hover{background:transparent;color:var(--blue-700);text-decoration:underline}
  .page-facet-panes{min-height:50px;padding:8px 12px 9px}
  .page-facet-pane{display:none;min-height:34px;align-items:center}
  .page-facet-pane.active{display:flex}
  .page-facet-pills{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0}
  .page-facet-select{display:flex;align-items:center;gap:8px;min-width:260px;margin:0;color:var(--ux-ink-muted);font-size:var(--ui-type-caption);font-weight:750}
  .page-facet-select>span{white-space:nowrap}
  .page-facet-select>select{height:var(--ui-toolbar-control-height);min-height:var(--ui-toolbar-control-height);min-width:210px;border-radius:var(--ui-radius-search)}

  .category-catalog-toolbar{height:var(--ui-toolbar-height)!important;min-height:var(--ui-toolbar-height)!important;padding:var(--ui-toolbar-pad-y) var(--ui-toolbar-pad-x)!important;grid-template-columns:minmax(210px,1fr) auto auto!important}
  .category-catalog-toolbar .category-master-result-count{display:block!important;align-self:center;font-size:10.5px;color:var(--ux-ink-muted);white-space:nowrap}
  .category-filter-shell .category-toolbar-actions{display:flex!important}

  .orders-list-toolbar{height:var(--ui-toolbar-height)!important;min-height:var(--ui-toolbar-height)!important;padding:var(--ui-toolbar-pad-y) var(--ui-toolbar-pad-x)!important;overflow:visible!important}
  .orders-list-toolbar .toolbar-search{flex:1 1 auto;max-width:none}

  .inventory-request-toolbar{height:var(--ui-toolbar-height)!important;min-height:var(--ui-toolbar-height)!important;padding:var(--ui-toolbar-pad-y) var(--ui-toolbar-pad-x)!important;display:grid!important;grid-template-columns:minmax(220px,1fr) auto auto!important;gap:var(--ui-gap)!important}
  .inventory-request-toolbar .inventory-request-results{display:block;align-self:center;font-size:10.5px;color:var(--ux-ink-muted);white-space:nowrap}

}
/* 34.120.53.6 — shared filter hierarchy audit: Stores, Users, Warehouse + mobile facet normalization. */
@media(min-width:761px){
  /* Extend the same facet shell contract to every audited list page. */
  .page-facet-shell>.ui-toolbar{margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important}
  .page-facet-static-title{
    flex:0 0 auto;
    display:inline-flex;
    align-items:center;
    min-height:42px;
    padding:0 9px;
    color:var(--ux-ink);
    font-size:10.5px;
    font-weight:760;
    white-space:nowrap;
  }

  /* Stores: search/result row only; Status / Region / Sort live below in the facet dock. */
  .store-filter-shell>.store-management-toolbar{
    height:var(--ui-toolbar-height)!important;
    min-height:var(--ui-toolbar-height)!important;
    padding:var(--ui-toolbar-pad-y) var(--ui-toolbar-pad-x)!important;
    display:grid!important;
    grid-template-columns:minmax(220px,1fr) auto!important;
    grid-template-rows:var(--ui-toolbar-row-height)!important;
    gap:var(--ui-gap)!important;
    align-items:center!important;
  }
  .store-filter-shell .toolbar-search{
    grid-column:auto!important;
    grid-row:auto!important;
    min-width:0!important;
    height:var(--ui-toolbar-control-height)!important;
    min-height:var(--ui-toolbar-control-height)!important;
  }
  .store-filter-shell .toolbar-search input{height:var(--ui-toolbar-control-height)!important;min-height:var(--ui-toolbar-control-height)!important}
  .store-filter-shell .store-results{
    display:block!important;
    grid-column:auto!important;
    align-self:center!important;
    padding:0 4px!important;
    font-size:10.5px!important;
    color:var(--ux-ink-muted)!important;
    white-space:nowrap;
  }

  /* Users: same toolbar geometry, with role/status removed from the toolbar itself. */
  .user-filter-shell>.user-management-toolbar{
    height:var(--ui-toolbar-height)!important;
    min-height:var(--ui-toolbar-height)!important;
    padding:var(--ui-toolbar-pad-y) var(--ui-toolbar-pad-x)!important;
    display:grid!important;
    grid-template-columns:minmax(220px,1fr) auto!important;
    grid-template-rows:var(--ui-toolbar-row-height)!important;
    gap:var(--ui-gap)!important;
    align-items:center!important;
  }
  .user-filter-shell .user-search{height:var(--ui-toolbar-control-height)!important;min-height:var(--ui-toolbar-control-height)!important}
  .user-filter-shell .user-result-count{
    display:block!important;
    align-self:center!important;
    padding:0 4px!important;
    font-size:10.5px!important;
    color:var(--ux-ink-muted)!important;
    white-space:nowrap;
  }
  .user-filter-shell .user-filter-button{display:none!important}

  /* Warehouse: search/actions stay in the toolbar; Zone is a passive facet section underneath. */
  .warehouse-filter-shell>.warehouse-placement-toolbar{
    height:var(--ui-toolbar-height)!important;
    min-height:var(--ui-toolbar-height)!important;
    padding:var(--ui-toolbar-pad-y) var(--ui-toolbar-pad-x)!important;
    display:grid!important;
    grid-template-columns:minmax(220px,1fr) auto!important;
    gap:var(--ui-gap)!important;
    align-items:center!important;
  }
  .warehouse-filter-shell .ui-search,
  .warehouse-filter-shell .ui-search>input{height:var(--ui-toolbar-control-height)!important;min-height:var(--ui-toolbar-control-height)!important}
  .warehouse-filter-shell .warehouse-toolbar-actions{align-items:center!important}
  .warehouse-filter-shell .warehouse-toolbar-actions .button{height:var(--ui-toolbar-control-height)!important;min-height:var(--ui-toolbar-control-height)!important}
}

/* Shared mobile filter language: passive section headings + true selectable pills/fields. */
.mobile-facet-group{
  display:grid;
  gap:var(--ui-gap);
  min-width:0;
  padding:2px 0 12px;
  border-bottom:1px solid var(--ux-border);
}
.mobile-facet-group:last-child{border-bottom:0}
.mobile-facet-group>h3{
  margin:0;
  color:var(--ux-ink-muted);
  font-size:9.5px;
  font-weight:800;
  line-height:1.15;
  letter-spacing:.07em;
  text-transform:uppercase;
}
.mobile-facet-pills{display:flex;flex-wrap:wrap;gap:7px;min-width:0}
.mobile-facet-pill{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:0 13px;
  border:1px solid transparent;
  border-radius:999px;
  background:var(--ux-surface-muted);
  color:var(--ux-ink);
  font-size:11px;
  font-weight:680;
  line-height:1.2;
  cursor:pointer;
  user-select:none;
  -webkit-tap-highlight-color:transparent;
}
.mobile-facet-pill:hover{background:var(--ux-surface-hover)}
.mobile-facet-pill.selected{
  border-color:color-mix(in srgb,var(--blue-500,var(--ux-accent)) 34%,var(--ux-border));
  background:var(--ux-accent-soft);
  color:var(--blue-700);
  font-weight:760;
}
.mobile-facet-pill:focus-within{outline:2px solid color-mix(in srgb,var(--ux-accent) 32%,transparent);outline-offset:2px}
.mobile-facet-pill>input{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  margin:-1px!important;
  padding:0!important;
  overflow:hidden!important;
  clip:rect(0 0 0 0)!important;
  clip-path:inset(50%)!important;
  border:0!important;
  white-space:nowrap!important;
}
.mobile-facet-select-group>select{
  width:100%;
  min-height:44px;
  height:44px;
  border:1px solid var(--ux-border);
  border-radius:10px;
  background:var(--ux-surface);
  color:var(--ux-ink);
  padding:0 36px 0 11px;
  font:inherit;
  font-size:var(--ui-type-control);
}
[dir=rtl] .mobile-facet-select-group>select{padding:0 11px 0 36px}

@media(max-width:760px){
  /* Shared modal sheets: make search a toolbar field, then separate passive facet sections. */
  .page-filter-dialog{gap:0}
  .page-filter-dialog-header{padding-bottom:12px}
  .page-filter-dialog-fields{
    gap:0!important;
    padding:0 2px 10px!important;
  }
  .page-filter-dialog-fields>.page-filter-search{
    margin-bottom:12px;
    padding-bottom:12px;
    border-bottom:1px solid var(--ux-border);
  }
  .page-filter-dialog-fields>.page-filter-search>span{
    color:var(--ux-ink-muted);
    font-size:9.5px;
    font-weight:800;
    letter-spacing:.07em;
    text-transform:uppercase;
  }
  .page-filter-dialog-fields>.page-filter-search input{
    height:var(--ui-touch-target);
    min-height:var(--ui-touch-target);
    border-radius:10px;
  }
  .page-filter-dialog-actions{
    margin-top:2px;
    padding-top:10px;
  }

  /* Inventory uses an in-page mobile sheet instead of the generic modal; normalize it to the same hierarchy. */
  #page[data-page="inventory"] .inventory-v22-page.mobile-filters>.inventory-v22-filters.open{
    display:block;
    padding:0 14px calc(86px + var(--mobile-safe-bottom));
    background:var(--ux-surface);
  }
  #page[data-page="inventory"] .inventory-v22-filters .inventory-filter-panel-head{
    margin:0 -14px 0;
    top:0;
    min-height:54px;
    padding:8px 14px;
    background:var(--ux-surface);
  }
  #page[data-page="inventory"] .inventory-v22-filters>.inventory-filter-search{
    margin:12px 0 0;
    padding-bottom:12px;
    border-bottom:1px solid var(--ux-border);
  }
  #page[data-page="inventory"] .inventory-v22-filters>.inventory-filter-search>span{
    color:var(--ux-ink-muted);
    font-size:9.5px;
    font-weight:800;
    letter-spacing:.07em;
    text-transform:uppercase;
  }
  #page[data-page="inventory"] .inventory-v22-filters>.inventory-filter-search input{
    min-height:var(--ui-touch-target);
    height:var(--ui-touch-target);
    border-radius:10px;
  }
  #page[data-page="inventory"] .inventory-filter-panes{display:block;padding:0;background:transparent}
  #page[data-page="inventory"] .inventory-filter-pane{
    display:block!important;
    padding:12px 0;
    border-bottom:1px solid var(--ux-border);
  }
  #page[data-page="inventory"] .inventory-filter-pane:last-child{border-bottom:0}
  #page[data-page="inventory"] .inventory-filter-pane .inventory-filter-group,
  #page[data-page="inventory"] .inventory-filter-pane .inventory-filter-select{display:grid;gap:8px}
  #page[data-page="inventory"] .inventory-filter-pane .inventory-filter-group h3,
  #page[data-page="inventory"] .inventory-filter-pane .inventory-filter-select>span{
    display:block!important;
    margin:0!important;
    color:var(--ux-ink-muted)!important;
    font-size:9.5px!important;
    font-weight:800!important;
    line-height:1.15!important;
    letter-spacing:.07em!important;
    text-transform:uppercase!important;
  }
  #page[data-page="inventory"] .inventory-filter-pane .inventory-filter-options{gap:7px}
  #page[data-page="inventory"] .inventory-filter-pane .inventory-filter-pill{
    min-height:var(--ui-touch-target)!important;
    height:auto!important;
    padding:0 13px!important;
    border:1px solid transparent!important;
    border-radius:999px!important;
    background:var(--ux-surface-muted)!important;
    font-size:11px!important;
  }
  #page[data-page="inventory"] .inventory-filter-pane .inventory-filter-pill.selected{
    border-color:color-mix(in srgb,var(--blue-500,var(--ux-accent)) 34%,var(--ux-border))!important;
    background:var(--ux-accent-soft)!important;
    color:var(--blue-700)!important;
  }
  #page[data-page="inventory"] .inventory-filter-pane .inventory-filter-group-health .inventory-filter-pill[data-filter-value="healthy"].selected{background:var(--ux-success-soft)!important;color:var(--green-700)!important;border-color:color-mix(in srgb,var(--ux-success) 34%,var(--ux-border))!important}
  #page[data-page="inventory"] .inventory-filter-pane .inventory-filter-group-health .inventory-filter-pill[data-filter-value="watch"].selected{background:var(--ux-warning-soft)!important;color:var(--amber-800)!important;border-color:color-mix(in srgb,var(--ux-warning) 34%,var(--ux-border))!important}
  #page[data-page="inventory"] .inventory-filter-pane .inventory-filter-group-health .inventory-filter-pill[data-filter-value="low"].selected,
  #page[data-page="inventory"] .inventory-filter-pane .inventory-filter-group-health .inventory-filter-pill[data-filter-value="zero"].selected{background:var(--ux-error-soft)!important;color:var(--red-700)!important;border-color:color-mix(in srgb,var(--ux-error) 34%,var(--ux-border))!important}
  #page[data-page="inventory"] .inventory-filter-pane .inventory-pallet-range-filter{display:grid;gap:9px}
  #page[data-page="inventory"] .inventory-filter-pane .inventory-pallet-range-filter .inventory-filter-group-title{
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:40px;
    margin:0;
    gap:10px;
  }
  #page[data-page="inventory"] .inventory-filter-pane .inventory-pallet-range-filter .inventory-filter-group-title h3{margin:0!important}
  #page[data-page="inventory"] .inventory-filter-pane .inventory-pallet-range-enable{min-height:36px!important;padding-inline:12px!important}
  #page[data-page="inventory"] .inventory-filter-pane .inventory-pallet-range-inputs{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  #page[data-page="inventory"] .inventory-filter-pane .inventory-pallet-range-inputs label{
    min-height:44px;
    height:44px;
    border:1px solid var(--ux-border);
    border-radius:10px;
    background:var(--ux-surface);
  }
  #page[data-page="inventory"] .inventory-filter-pane .inventory-pallet-range-inputs input{min-height:36px;height:36px;font-size:12px}
  #page[data-page="inventory"] .inventory-filter-pane .inventory-filter-select select{
    width:100%;
    min-height:44px;
    height:44px;
    border:1px solid var(--ux-border);
    border-radius:10px;
    background:var(--ux-surface);
    font-size:var(--ui-type-control);
  }
  #page[data-page="inventory"] .inventory-filter-mobile-actions{
    position:fixed;
    z-index:2;
    inset-inline:0;
    bottom:0;
    display:grid!important;
    grid-template-columns:1fr 1fr;
    gap:var(--ui-gap);
    padding:10px 14px calc(10px + var(--mobile-safe-bottom));
    border-top:1px solid var(--ux-border);
    background:color-mix(in srgb,var(--ux-surface) 96%,transparent);
    backdrop-filter:blur(8px);
  }
  #page[data-page="inventory"] .inventory-filter-mobile-actions .button{width:100%;min-height:44px}
}

/* Native checked state is the source of truth while a mobile filter dialog remains open. */
.mobile-facet-pill:has(input:checked){
  border-color:color-mix(in srgb,var(--blue-500,var(--ux-accent)) 34%,var(--ux-border));
  background:var(--ux-accent-soft);
  color:var(--blue-700);
  font-weight:760;
}

/*
 * v34.120.53.7
 * Mobile filter shell unification.
 * Route-specific filter dialogs now use the same full-height sheet geometry as
 * Inventory: fixed header/footer, one independently scrollable body, rounded
 * section cards and equal-width two-column pills. Presentation only.
 */
@media(max-width:760px){
  /* Generic filter dialogs become page sheets below the persistent app top bar. */
  #modal-host:has(.page-filter-dialog) .modal-backdrop{
    inset:var(--topbar-height) 0 0;
    padding:0;
    place-items:stretch;
    background:var(--ux-surface-muted);
    backdrop-filter:none;
  }
  #modal-host:has(.page-filter-dialog) .modal{
    width:100%;
    height:100%;
    max-height:none;
    border:0;
    border-radius:0;
    background:var(--ux-surface-muted);
    box-shadow:none;
    overflow:hidden;
  }
  #modal-host:has(.page-filter-dialog) .modal-body{
    width:100%;
    height:100%;
    min-width:0;
    min-height:0;
    padding:0;
    overflow:hidden;
  }
  #modal-host:has(.page-filter-dialog) .modal-close{
    inset-block-start:10px;
    inset-inline-end:14px;
    width:auto;
    min-width:var(--ui-touch-target);
    height:var(--ui-touch-target);
    padding:0 12px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    border:1px solid var(--ux-border);
    border-radius:10px;
    background:var(--ux-surface);
    color:var(--ux-ink);
    font-size:11px;
    font-weight:750;
    box-shadow:none;
  }
  #modal-host:has(.page-filter-dialog) .modal-close::after{content:attr(aria-label)}
  #modal-host:has(.page-filter-dialog) .modal-close .app-icon{width:18px;height:18px}

  #modal-host .page-filter-dialog{
    width:100%;
    height:100%;
    min-width:0;
    min-height:0;
    max-height:none;
    display:grid;
    grid-template-rows:auto minmax(0,1fr) auto;
    gap:0;
    overflow:hidden;
    background:var(--ux-surface-muted);
  }
  #modal-host .page-filter-dialog-header{
    min-height:64px;
    padding:12px 94px 10px 14px;
    display:grid;
    align-content:center;
    border-bottom:1px solid var(--ux-border);
    background:var(--ux-surface);
  }
  [dir=rtl] #modal-host .page-filter-dialog-header{padding:12px 14px 10px 94px}
  #modal-host .page-filter-dialog-header h2{
    margin:0;
    font-size:18px;
    line-height:1.2;
    font-weight:780;
  }
  /* Long page descriptions belong on the page, not in the compact filter sheet. */
  #modal-host .page-filter-dialog-header p{display:none}

  #modal-host .page-filter-dialog-fields{
    min-width:0;
    min-height:0;
    display:grid;
    grid-template-columns:1fr;
    align-content:start;
    gap:12px!important;
    padding:12px 14px 18px!important;
    overflow-y:auto;
    overflow-x:hidden;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-gutter:auto;
    background:var(--ux-surface-muted);
  }

  /* Search and every facet become the same rounded white section card. */
  #modal-host .page-filter-dialog-fields>.page-filter-search,
  #modal-host .page-filter-dialog-fields>.mobile-facet-group{
    width:100%;
    min-width:0;
    margin:0!important;
    padding:12px!important;
    border:1px solid var(--ux-border)!important;
    border-radius:12px!important;
    background:var(--ux-surface)!important;
    box-sizing:border-box;
  }
  #modal-host .page-filter-dialog-fields>.page-filter-search{
    display:grid;
    gap:var(--ui-gap);
    border-bottom:1px solid var(--ux-border)!important;
  }
  #modal-host .page-filter-dialog-fields>.page-filter-search>span,
  #modal-host .mobile-facet-group>h3{
    margin:0;
    color:var(--ux-ink-muted);
    font-size:9.5px;
    font-weight:800;
    line-height:1.15;
    letter-spacing:.07em;
    text-transform:uppercase;
  }
  #modal-host .page-filter-dialog-fields>.page-filter-search input{
    width:100%;
    min-width:0;
    height:var(--ui-touch-target);
    min-height:var(--ui-touch-target);
    border-radius:10px;
  }
  #modal-host .page-filter-dialog-fields>.page-filter-search>.app-icon{
    inset-inline-start:26px;
    bottom:25px;
    width:18px;
    height:18px;
  }
  #modal-host .page-filter-dialog-fields>.page-filter-search input{padding-inline-start:42px!important}

  #modal-host .mobile-facet-group{
    gap:9px;
    border-bottom:1px solid var(--ux-border)!important;
  }
  #modal-host .mobile-facet-pills{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:var(--ui-gap);
    min-width:0;
  }
  #modal-host .mobile-facet-pill{
    width:100%;
    min-width:0;
    min-height:44px;
    height:auto;
    padding:9px 12px;
    border-radius:999px;
    text-align:center;
    white-space:normal;
    overflow-wrap:anywhere;
    line-height:1.2;
    box-sizing:border-box;
  }
  #modal-host .mobile-facet-select-group>select{
    width:100%;
    min-width:0;
    height:44px;
    min-height:44px;
    border-radius:10px;
  }

  /* Footer owns its own viewport row, so no filter content can hide beneath it. */
  #modal-host .page-filter-dialog-actions{
    position:relative;
    inset:auto;
    margin:0;
    padding:10px 14px calc(10px + var(--mobile-safe-bottom));
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:var(--ui-gap);
    border-top:1px solid var(--ux-border);
    background:color-mix(in srgb,var(--ux-surface) 96%,transparent);
    backdrop-filter:blur(8px);
  }
  #modal-host .page-filter-dialog-actions>span,
  #modal-host .page-filter-dialog-actions [data-filter-dialog-cancel]{display:none!important}
  #modal-host .page-filter-dialog-actions [data-filter-dialog-clear]{grid-column:1!important;grid-row:1!important}
  #modal-host .page-filter-dialog-actions button[type="submit"]{grid-column:2!important;grid-row:1!important}
  #modal-host .page-filter-dialog-actions .button{width:100%;min-height:var(--ui-touch-target);height:44px}
}

/* 34.120.58 · Admin API Safety incident summary */

/* 34.120.93 — retire unreachable pre-acct59 Account page CSS; shell account-entry/account-menu remain live. */
/* 34.120.59 — Account clean-room layout.
   The Account DOM uses only acct59-* layout selectors so historical Account CSS
   cannot participate in geometry. No fixed page/card heights or absolute positioning. */
#page[data-page="account"]{
  display:block;
  height:auto;
  min-height:calc(100dvh - var(--topbar-height));
  overflow:auto;
  padding:12px 14px 24px;
  scroll-padding-bottom:24px;
}
#page[data-page="account"]>.workspace-header{
  min-height:0;
  margin:0 0 12px;
}
.acct59,.acct59 *{box-sizing:border-box}
.acct59{display:grid;gap:12px;min-width:0;width:100%;align-content:start}
.acct59-card{margin:0;min-width:0}

.acct59-safety{padding:0}
.acct59-safety-head .button{flex:0 0 auto}
.acct59-safety-content{display:grid;gap:10px;padding:12px 16px 14px}
.acct59-safety-summary{display:grid;grid-template-columns:minmax(180px,1.25fr) repeat(3,minmax(110px,.75fr));gap:9px}
.acct59-safety-summary>div{
  min-width:0;
  min-height:64px;
  display:grid;
  align-content:center;
  gap:4px;
  padding:10px 12px;
  border:1px solid var(--ux-border);
  border-radius:10px;
  background:var(--ux-surface-subtle);
}
.acct59-safety-summary span{color:var(--ux-ink-muted);font-size:9px;line-height:1.25}
.acct59-safety-summary strong{color:var(--ux-ink);font-size:17px;line-height:1.1;font-variant-numeric:tabular-nums}
.acct59-safety-summary>.acct59-health-state{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.acct59-health-state small{color:var(--ux-ink-muted);font-size:var(--ui-type-micro);line-height:1.3}
.acct59-probe-note{
  display:flex;
  align-items:flex-start;
  gap:8px;
  padding:9px 11px;
  border:1px solid var(--ux-border);
  border-radius:9px;
  background:var(--ux-surface-subtle);
  color:var(--ux-ink-muted);
  font-size:9.5px;
  line-height:1.4;
}
.acct59-probe-note .app-icon{width:16px;height:16px;flex:0 0 16px;color:var(--ux-accent)}
.acct59-safety-table{min-width:0;border:1px solid var(--ux-border);border-radius:10px;overflow:hidden;background:var(--ux-surface)}
.acct59-safety-table-head,.acct59-safety-row{
  display:grid;
  grid-template-columns:minmax(260px,1.7fr) 110px 90px minmax(155px,.8fr);
  gap:var(--ui-gap-loose);
  align-items:center;
  padding:9px 11px;
}
.acct59-safety-table-head{background:var(--ux-surface-subtle);color:var(--ux-ink-muted);font-size:var(--ui-type-micro);font-weight:750;text-transform:uppercase;letter-spacing:.035em}
.acct59-safety-row{border-top:1px solid var(--ux-border);font-size:10px;line-height:1.3}
.acct59-safety-row>span{min-width:0;color:var(--ux-ink-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.acct59-safety-issue{display:grid;gap:3px;min-width:0}
.acct59-safety-issue strong{min-width:0;color:var(--ux-ink);font-size:10.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.acct59-safety-issue small{min-width:0;color:var(--ux-ink-muted);font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.acct59-state{padding:13px 14px;border:1px solid var(--ux-border);border-radius:10px;background:var(--ux-surface-subtle);color:var(--ux-ink-muted);font-size:10.5px;line-height:1.45}
.acct59-state-error{display:grid;gap:4px;color:var(--ux-danger)}
.acct59-state-error small{color:var(--ux-ink-muted);font-size:9px}
.acct59-retention{color:var(--ux-ink-muted);font-size:var(--ui-type-micro)}

.acct59-diagnostics{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 14px}
.acct59-diagnostics-copy{display:grid;gap:2px;min-width:0}
.acct59-diagnostics-copy strong{color:var(--ux-ink);font-size:12px;line-height:1.25}
.acct59-diagnostics-copy small{color:var(--ux-ink-muted);font-size:9px;line-height:1.35}
.acct59-actions{display:flex;gap:7px;flex:0 0 auto}
.acct59-actions .button{min-height:38px}

.acct59-identity-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,.8fr);gap:18px;align-items:center;padding:14px 16px;background:linear-gradient(135deg,color-mix(in srgb,var(--ux-accent-soft) 34%,var(--ux-surface)) 0%,var(--ux-surface) 72%)}
.acct59-identity-main{display:flex;align-items:center;gap:13px;min-width:0}
.acct59-avatar{width:56px;height:56px;flex:0 0 56px;display:grid;place-items:center;border-radius:15px;background:var(--navy-850);color:#fff;font-size:18px;font-weight:800}
.acct59-identity-copy{min-width:0;display:grid;gap:6px}
.acct59-identity-copy h2{margin:0;min-width:0;color:var(--ux-ink);font-size:18px;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.acct59-badges{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.acct59-facts{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(125px,.75fr);gap:8px;min-width:0}
.acct59-facts>div{min-width:0;display:grid;gap:3px;padding:9px 11px;border:1px solid var(--ux-border);border-radius:9px;background:var(--ux-surface-raised)}
.acct59-facts span{color:var(--ux-ink-muted);font-size:var(--ui-type-micro);font-weight:800;letter-spacing:.045em;text-transform:uppercase}
.acct59-facts strong{min-width:0;color:var(--ux-ink);font-size:10.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.acct59-columns{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(330px,.65fr);gap:12px;align-items:start;min-width:0}
.acct59-profile,.acct59-security{padding:0;min-width:0}
.acct59-form{padding:12px 14px 14px}
.acct59-save-state{flex:0 0 auto;min-height:26px;padding:5px 8px;border:1px solid var(--ux-border);border-radius:999px;background:var(--ux-surface-subtle);color:var(--ux-ink-muted);font-size:9px;font-weight:750;white-space:nowrap}
.acct59-save-state[data-dirty="true"]{border-color:var(--ux-warning-border);background:var(--ux-warning-soft);color:var(--ux-warning-ink)}

.acct59-side-stack{display:grid;gap:12px;min-width:0}
.acct59-pending{display:flex;align-items:flex-start;gap:7px;margin:12px 14px 0;padding:9px 10px;border:1px solid var(--ux-warning-border);border-radius:8px;background:var(--ux-warning-soft);color:var(--ux-warning-ink);font-size:9.5px;line-height:1.35}
.acct59-pending .app-icon{width:17px;height:17px;flex:0 0 17px}
.acct59-session-list{padding:0 14px 14px}

@media(max-width:1120px){
  .acct59-identity-card{grid-template-columns:1fr}
  .acct59-columns{grid-template-columns:1fr}
  .acct59-facts{grid-template-columns:minmax(0,1fr) minmax(140px,.45fr)}
}
@media(max-width:820px){
  .acct59-safety-summary{grid-template-columns:1fr 1fr}
  .acct59-health-state{grid-column:1/-1}
  .acct59-safety-table-head{display:none}
  .acct59-safety-row{grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;padding:10px 11px}
  .acct59-safety-row>span:nth-of-type(3){grid-column:1/-1;white-space:normal}
}
@media(max-width:760px){
  #page[data-page="account"]{height:auto;min-height:0;overflow:auto;padding:10px 10px calc(var(--mobile-bottom-nav) + 18px + var(--mobile-safe-bottom));scroll-padding-bottom:calc(var(--mobile-bottom-nav) + 18px + var(--mobile-safe-bottom))}
  #page[data-page="account"]>.workspace-header{margin-bottom:9px}
  .acct59{gap:9px}
  .acct59-safety-head .button{width:100%;min-height:44px}
  .acct59-safety-content{padding:10px 11px 12px}
  .acct59-safety-summary{grid-template-columns:1fr 1fr;gap:7px}
  .acct59-safety-summary>div{min-height:58px;padding:9px 10px}
  .acct59-diagnostics{display:grid;gap:9px;padding:11px 12px}
  .acct59-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .acct59-actions .button{width:100%;min-height:44px}
  .acct59-identity-card{padding:11px 12px;gap:11px}
  .acct59-avatar{width:48px;height:48px;flex-basis:48px;border-radius:13px;font-size:16px}
  .acct59-identity-copy h2{font-size:15px}
  .acct59-facts{grid-template-columns:1fr 1fr;gap:7px}
  .acct59-facts>div{padding:8px 9px}
  .acct59-form{padding:10px 11px 11px}
  .acct59-session-list{padding:0 11px 11px}
  .acct59-pending{margin:10px 11px 0}
}
/* 34.120.61 — scoped Users form validation pilot */
.user-admin-form .user-field-error{min-height:14px;color:var(--ux-danger)}.user-admin-form .user-field-error[hidden]{display:none}

/* 34.120.62 — Account API Safety drill-down. Isolated from legacy Account layout. */
.acct62-review-group,.acct62-incident-row{min-width:0}
.acct62-review-group>summary,.acct62-incident-row>summary{list-style:none;cursor:pointer}
.acct62-review-group>summary::-webkit-details-marker,.acct62-incident-row>summary::-webkit-details-marker{display:none}
.acct62-review-group>.acct59-probe-note{align-items:center}
.acct62-review-group>.acct59-probe-note>span{min-width:0;flex:1}
.acct62-review-group>.acct59-probe-note>strong{flex:0 0 auto;color:var(--ux-accent);font-size:var(--ui-type-micro);font-weight:800;white-space:nowrap}
.acct62-review-group[open]>.acct59-probe-note{border-bottom-left-radius:0;border-bottom-right-radius:0}
.acct62-review-body{display:grid;gap:8px;padding:9px;border:1px solid var(--ux-border);border-top:0;border-radius:0 0 9px 9px;background:var(--ux-surface)}
.acct62-review-pattern{min-width:0;border:1px solid var(--ux-border);border-radius:9px;overflow:hidden;background:var(--ux-surface)}
.acct62-review-pattern-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 10px;background:var(--ux-surface-subtle);border-bottom:1px solid var(--ux-border)}
.acct62-review-pattern-head>div{display:grid;gap:2px;min-width:0}
.acct62-review-pattern-head strong{font-size:10.5px;color:var(--ux-ink)}
.acct62-review-pattern-head small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ux-ink-muted);font-size:9px}
.acct62-review-pattern-head>span{flex:0 0 auto;color:var(--ux-ink-muted);font-size:var(--ui-type-micro);white-space:nowrap}
.acct62-incident-row{border-top:1px solid var(--ux-border)}
.acct62-incident-row:first-of-type{border-top:0}
.acct62-incident-row>.acct59-safety-row{border-top:0}
.acct62-incident-row[open]>.acct59-safety-row{background:var(--ux-surface-subtle)}
.acct62-pattern-detail{display:grid;gap:9px;padding:10px 11px;background:var(--ux-surface)}
.acct62-pattern-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.acct62-pattern-meta>div,.acct62-sample-meta>div{display:grid;gap:2px;min-width:0;padding:7px 8px;border:1px solid var(--ux-border);border-radius:8px;background:var(--ux-surface-subtle)}
.acct62-pattern-meta span,.acct62-sample-meta span{color:var(--ux-ink-muted);font-size:var(--ui-type-micro);font-weight:800;text-transform:uppercase;letter-spacing:.035em}
.acct62-pattern-meta strong,.acct62-sample-meta strong{min-width:0;color:var(--ux-ink);font-size:9px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.acct62-detail-note,.acct62-policy-note{margin:0;color:var(--ux-ink-muted);font-size:var(--ui-type-micro);line-height:1.45}
.acct62-samples{display:grid;gap:7px}
.acct62-samples h4{margin:0;color:var(--ux-ink);font-size:9px}
.acct62-sample{display:grid;gap:5px;padding:8px 9px;border:1px solid var(--ux-border);border-radius:8px;background:var(--ux-surface-subtle)}
.acct62-sample-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
.acct62-sample-head strong{min-width:0;color:var(--ux-ink);font-size:9.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.acct62-sample-head time{flex:0 0 auto;color:var(--ux-ink-muted);font-size:var(--ui-type-micro);white-space:nowrap}
.acct62-sample>small{color:var(--ux-ink-muted);font-size:var(--ui-type-micro);overflow-wrap:anywhere}
.acct62-sample-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.acct62-sample-message{margin:0;color:var(--ux-ink-muted);font-size:var(--ui-type-micro);line-height:1.4;overflow-wrap:anywhere}
.acct62-sample-message strong{color:var(--ux-ink)}
@media(max-width:820px){
  .acct62-pattern-meta,.acct62-sample-meta{grid-template-columns:1fr 1fr}
  .acct62-incident-row>.acct59-safety-row{border-top:0}
}
@media(max-width:520px){
  .acct62-review-pattern-head{display:grid;gap:5px}
  .acct62-review-pattern-head>span{white-space:normal}
  .acct62-pattern-meta,.acct62-sample-meta{grid-template-columns:1fr}
  .acct62-sample-head{display:grid;gap:3px}
}

/* 34.120.87 — shared validation presentation for Stores, Routes, Categories and Restock. */
.store-editor-scroll .store-field-error,
.category-master-editor .category-master-field-error,
.usage-baseline-form .usage-baseline-field-error{min-height:14px;font-size:10px;line-height:1.3;color:var(--ux-danger);font-weight:650;letter-spacing:0;text-transform:none}
.store-editor-scroll .store-field-error[hidden],
.category-master-editor .category-master-field-error[hidden],
.usage-baseline-form .usage-baseline-field-error[hidden]{display:none}
.store-editor-scroll .store-field input[aria-invalid="true"],
.category-master-editor input[aria-invalid="true"],
.usage-baseline-form input[aria-invalid="true"]{border-color:var(--ux-danger);box-shadow:0 0 0 2px var(--ux-error-soft)}

/* 34.120.86 — shared validation presentation for Account, Analytics and Inventory Check. */
.analytics-slow-settings-form .analytics-slow-field-error,
.inventory-check-editor .inventory-check-field-error{display:block;min-height:14px;font-size:10px;line-height:1.3;color:var(--ux-danger);font-weight:650;letter-spacing:0;text-transform:none}
.analytics-slow-settings-form .analytics-slow-field-error[hidden],
.inventory-check-editor .inventory-check-field-error[hidden]{display:none}
.analytics-slow-settings-form input[aria-invalid="true"],
.inventory-check-editor input[aria-invalid="true"]{border-color:var(--ux-danger);box-shadow:0 0 0 2px var(--ux-error-soft)}
/* 34.120.72 — Inventory Request manual quantity validation. */
.request-quantity-wrap{display:grid;justify-items:end;gap:3px;min-width:0}
.request-quantity-wrap .request-quantity-field-error{display:block;max-width:150px;min-height:12px;font-size:9px;line-height:1.25;color:var(--ux-danger);font-weight:650;text-align:end}
.request-quantity-wrap .request-quantity-field-error[hidden]{display:none}
.request-quantity-wrap.invalid .request-quantity{border-color:var(--ux-danger);box-shadow:0 0 0 2px var(--ux-error-soft)}
.inventory-request-card .request-quantity-wrap{justify-self:end}


/* 34.120.78 — persistent collapsed filter panels with a true desktop toggle state. */
.page-filter-toggle[aria-expanded="true"],
.page-filter-toggle.active{
  border-color:color-mix(in srgb,var(--blue-500,var(--ux-accent)) 46%,var(--ux-border));
  background:var(--blue-100);
  color:var(--blue-700);
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--blue-500,var(--ux-accent)) 14%,transparent);
}
@media(min-width:761px){
  .page-filter-toggle.mobile-page-filter{display:inline-flex!important}
  .page-facet-shell:not(.filters-open){grid-template-rows:auto}
  .user-filter-shell .user-filter-button.page-filter-toggle{display:inline-flex!important}
}

/* 34.120.79 — one inline Filters contract at every viewport. No filter modal path. */
.page-facet-shell:not(.filters-open)>.page-facet-dock{display:none!important}
@media(max-width:760px){
  .page-facet-shell{
    display:block!important;
    min-width:0;
    margin-bottom:8px;
  }
  .page-facet-shell.filters-open>.page-facet-dock{
    display:block!important;
  }
  .page-facet-dock{
    min-width:0;
    margin-top:6px;
    border:1px solid var(--ux-border);
    border-radius:var(--ui-radius-panel);
    background:var(--ux-surface);
    overflow:hidden;
    box-shadow:0 1px 2px rgba(19,32,51,.025);
  }
  .page-facet-nav{
    display:flex;
    align-items:center;
    min-height:42px;
    padding:0 8px;
    gap:2px;
    overflow-x:auto;
    scrollbar-width:none;
    border-bottom:1px solid var(--ux-border);
  }
  .page-facet-nav::-webkit-scrollbar{display:none}
  .page-facet-caption{display:none}
  .page-facet-static-title{
    position:relative;
    flex:0 0 auto;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    height:42px;
    min-height:42px;
    padding:0 9px;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
    color:var(--ux-ink-muted);
    font-size:10.5px;
    font-weight:720;
    white-space:nowrap;
  }
  
  
  
  
  .page-facet-separator{flex:0 0 1px;width:1px;height:18px;margin:0 4px;background:var(--ux-border)}
  .page-facet-spacer{flex:1 0 8px;min-width:8px}
  .page-facet-clear{
    flex:0 0 auto;
    padding:7px 5px;
    border:0;
    background:transparent;
    color:var(--ux-ink-muted);
    font-size:10px;
    font-weight:700;
    white-space:nowrap;
  }
  .page-facet-panes{padding:8px}
  .page-facet-pane{display:none;min-height:36px;align-items:center}
  .page-facet-pane.active{display:flex}
  .page-facet-pills{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0}
  .page-facet-select{
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    align-items:center;
    gap:8px;
    width:100%;
    margin:0;
    color:var(--ux-ink-muted);
    font-size:var(--ui-type-caption);
    font-weight:750;
  }
  .page-facet-select>span{white-space:nowrap}
  .page-facet-select>select{width:100%;height:40px;min-height:40px;border-radius:9px}
}

/* 34.120.81 — canonical list toolbar placement for filterable workspaces. */
@media(min-width:761px){
  .page-facet-shell>.ui-toolbar{
    min-height:var(--ui-toolbar-height)!important;
    height:var(--ui-toolbar-height)!important;
    padding:var(--ui-toolbar-pad-y) var(--ui-toolbar-pad-x)!important;
    align-items:center!important;
  }
  .page-toolbar-actions{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:6px!important;
    margin-inline-start:auto;
    min-width:max-content;
  }
  .orders-filter-shell>.orders-list-toolbar{
    display:flex!important;
    flex-wrap:nowrap!important;
    gap:var(--ui-gap)!important;
  }
  .orders-filter-shell>.orders-list-toolbar>.toolbar-search{flex:1 1 auto!important;min-width:220px!important;max-width:none!important}
  .store-filter-shell>.store-management-toolbar{grid-template-columns:minmax(220px,1fr) auto auto!important}
  .request-filter-shell>.inventory-request-toolbar{grid-template-columns:minmax(220px,1fr) auto auto!important}
  .user-filter-shell>.user-management-toolbar{grid-template-columns:minmax(220px,1fr) auto auto!important}
  .category-filter-shell>.category-catalog-toolbar{grid-template-columns:minmax(210px,1fr) auto auto!important}
  .warehouse-filter-shell>.warehouse-placement-toolbar{grid-template-columns:minmax(220px,1fr) auto!important}
  .orders-filter-shell .page-filter-toggle,
  .category-filter-shell .page-filter-toggle,
  .store-filter-shell .page-filter-toggle,
  .user-filter-shell .page-filter-toggle,
  .request-filter-shell .page-filter-toggle,
  .warehouse-filter-shell .page-filter-toggle{
    flex:0 0 auto;
  }
}
@media(min-width:761px){
  .category-filter-shell .category-toolbar-actions,
  .inventory-v22-toolbar .inventory-toolbar-actions{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:6px!important;
    margin-inline-start:auto;
  }
}
/* 34.120.82 — Warehouse inline Filters visibility + Restock suggestions disclosure. */
@media(min-width:761px){
  body[data-route="warehouse-reference"] .warehouse-r6{
    grid-template-rows:auto auto minmax(0,1fr) 58px!important;
  }
  body[data-route="warehouse-reference"] .warehouse-filter-shell{
    min-height:0;
    align-self:stretch;
  }
}
@media(max-width:760px){
  body[data-route="warehouse-reference"] .warehouse-r6{
    grid-template-rows:50px auto minmax(0,1fr) 58px!important;
  }
  body[data-route="warehouse-reference"] .warehouse-filter-shell{
    grid-row:2!important;
    display:block!important;
    min-height:0!important;
    margin:0!important;
  }
  body[data-route="warehouse-reference"] .warehouse-filter-shell.filters-open>.warehouse-facet-dock{
    display:block!important;
  }
  body[data-route="warehouse-reference"] .warehouse-placement-workspace{grid-row:3!important}
  body[data-route="warehouse-reference"] .warehouse-placement-actionbar{grid-row:4!important}
}

.inventory-request-workspace{grid-template-rows:auto minmax(0,1fr) auto auto!important}
.inventory-request-suggested{min-height:0}
.inventory-request-suggested>header{min-height:0;padding:0;border-bottom:0;background:var(--ux-surface-selected)}
.inventory-request-suggested-toggle{
  width:100%;min-height:48px;padding:8px 10px;border:0;background:transparent;color:inherit;
  display:grid;grid-template-columns:minmax(0,1fr) auto 20px;align-items:center;gap:8px;text-align:start;cursor:pointer
}
.inventory-request-suggested-toggle:hover{background:var(--ux-surface-hover)}
.inventory-request-suggested-toggle:focus-visible{outline:2px solid var(--ux-accent);outline-offset:-2px}
.inventory-request-suggested-heading{min-width:0;display:grid;gap:2px}
.inventory-request-suggested-heading strong{font-size:12px;color:var(--ink-strong)}
.inventory-request-suggested-heading small{font-size:9px;color:var(--ink-soft);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.inventory-request-suggested-count{display:inline-grid;place-items:center;min-width:25px;height:24px;padding:0 7px;border-radius:999px;background:var(--ux-accent-soft);color:var(--ux-accent);font-size:10px;font-weight:800;font-variant-numeric:tabular-nums}
.inventory-request-suggested-chevron{display:grid;place-items:center;transition:transform .15s ease;color:var(--ink-soft)}
.inventory-request-suggested-chevron .app-icon{width:15px;height:15px}
.inventory-request-suggested.expanded .inventory-request-suggested-chevron{transform:rotate(90deg)}
html[dir="rtl"] .inventory-request-suggested.collapsed .inventory-request-suggested-chevron{transform:rotate(180deg)}
html[dir="rtl"] .inventory-request-suggested.expanded .inventory-request-suggested-chevron{transform:rotate(90deg)}
.inventory-request-suggested-body{border-top:1px solid #dbe7f2;background:var(--ux-surface)}
.inventory-request-suggested-actions{display:flex;justify-content:flex-end;padding:7px 9px;border-bottom:1px solid var(--ux-border-muted);background:var(--ux-info-soft)}
.inventory-request-suggested-empty-copy{margin:0;padding:10px;color:var(--ink-soft);font-size:10px}
.inventory-request-suggested.collapsed{background:var(--ux-info-soft)}
@media(max-width:760px){
  .inventory-request-workspace{grid-template-rows:auto minmax(0,1fr) auto auto!important;gap:6px}
  .inventory-request-suggested-toggle{min-height:46px;padding:7px 8px;grid-template-columns:minmax(0,1fr) auto 20px}
  .inventory-request-suggested-heading small{white-space:normal;line-height:1.25;max-height:2.5em}
  .inventory-request-suggested-actions .button{width:100%;min-height:var(--ui-touch-target)}
}

/* 34.120.83 — Users role-access reference map. */
.user-management-list{min-width:0}
.user-role-access{border-top:1px solid var(--ux-border);background:var(--ux-surface-raised)}
.user-role-access>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px;cursor:pointer;user-select:none}
.user-role-access>summary::-webkit-details-marker{display:none}
.user-role-access>summary>span{display:grid;gap:3px;min-width:0}
.user-role-access>summary strong{font-size:12px;color:var(--ux-ink)}
.user-role-access>summary small{font-size:10px;line-height:1.35;color:var(--ux-ink-muted);font-weight:500}
.user-role-access>summary>.app-icon{flex:0 0 18px;width:18px;height:18px;color:var(--ux-ink-muted);transition:transform .16s ease}
.user-role-access[open]>summary>.app-icon{transform:rotate(90deg)}
.user-role-access-scroll{overflow-x:auto;border-top:1px solid var(--ux-border)}
.user-role-access-grid{min-width:720px;background:var(--ux-surface)}
.user-role-access-head,.user-role-access-row{display:grid;grid-template-columns:minmax(190px,1.25fr) repeat(3,minmax(140px,1fr));align-items:center;gap:10px;padding:8px 12px}
.user-role-access-head{position:sticky;top:0;z-index:1;background:var(--ux-surface-header);border-bottom:1px solid var(--ux-border);font-size:9px;color:var(--ux-ink-muted);text-transform:uppercase}
.user-role-access-row{min-height:46px;border-bottom:1px solid var(--ux-border);font-size:11px}
.user-role-access-row:last-child{border-bottom:0}
.user-role-access-row>strong{font-size:11px;color:var(--ux-ink)}
.user-role-access-row>span{min-width:0}
.user-role-access-row .status-badge{max-width:100%;white-space:normal;text-align:start;justify-content:flex-start}
@media(max-width:760px){
  .user-role-access>summary{padding:10px 9px;gap:10px}
  .user-role-access>summary strong{font-size:11px}
  .user-role-access>summary small{font-size:9px}
  .user-role-access-grid{min-width:640px}
  .user-role-access-head,.user-role-access-row{grid-template-columns:minmax(160px,1.2fr) repeat(3,minmax(130px,1fr));padding:7px 9px}
}

/* 34.120.85 — Orders mobile grid + local filter toolbar correction.
   The inline page-facet shell is a real grid child at mobile widths, so the page
   must reserve a natural-height row for it. Otherwise it consumes the flexible
   workspace row and pushes the Orders list to the bottom of the viewport. */
@media(max-width:760px){
  #page.orders-list-page{
    grid-template-rows:auto auto minmax(0,1fr) auto!important;
  }
  .orders-filter-shell{
    display:block!important;
    min-height:0!important;
    margin:0 8px 6px!important;
  }
  .orders-filter-shell>.orders-list-toolbar{
    display:flex!important;
    min-height:48px!important;
    height:auto!important;
    margin:0!important;
    padding:4px 6px!important;
    align-items:center!important;
    gap:6px!important;
    overflow:visible!important;
  }
  .orders-filter-shell>.orders-list-toolbar>.toolbar-search{
    flex:1 1 auto!important;
    min-width:0!important;
    max-width:none!important;
  }
  .orders-filter-shell>.orders-list-toolbar>.toolbar-search input{
    width:100%!important;
    min-width:0!important;
  }
  .orders-filter-shell .orders-toolbar-actions{
    display:flex!important;
    flex:0 0 auto!important;
    align-items:center!important;
  }
  .orders-filter-shell .page-filter-toggle{
    display:inline-flex!important;
    flex:0 0 auto!important;
  }
  .orders-filter-shell.filters-open>.orders-facet-dock{
    display:block!important;
  }
  .orders-list-workspace{
    min-height:0!important;
    height:100%!important;
  }
}

/* 34.120.88 — remove exact no-op CSS duplicates while preserving the later authoritative cascade. */

/* 34.120.89 — removed earlier copies of exact duplicate rules; later authoritative copies retained unchanged. */

/* 34.120.94 — retired unreachable legacy Approval v1 selectors; current approval-gate/review/mobile components retained. */


/* 34.120.95 — Weekly cartons flow current-week estimate. */
.analytics-flow-estimate-note{display:grid;grid-template-columns:auto minmax(0,1fr);gap:2px 8px;align-items:baseline;padding:8px 12px;border-top:1px solid var(--line-soft);color:var(--ink-soft);font-size:9.5px;line-height:1.35}
.analytics-flow-estimate-note>strong{color:var(--ink-strong);font-size:10px}
.analytics-flow-estimate-note>span{min-width:0}
.analytics-flow-estimate-note>small{grid-column:1/-1;color:var(--ink-faint);font-size:9px}
/*  34.120.96 — retire unreachable legacy Category Master workspace/assignment CSS; current Category Catalog + drawer selectors retained.  */
/*  34.120.97 — retire unreachable legacy Dashboard planning table/split-pane CSS; current Dashboard command-center selectors retained.  */
/*  34.120.98 — retire unreachable legacy Dashboard readiness/quick-action/work-area/action-list CSS; current command-center families retained.  */
/* 34.120.100 — retire unreachable legacy Warehouse reference-table/assignment/wr6-category workspace CSS */
/* 34.120.101 — retire unreachable residual Dashboard inventory-health/table/insight selectors. */
/* 34.120.102 — retire unreachable legacy Orders-list table/toolbar/progress selectors; current orders-* list/card UI retained. */

/* 34.120.103 — retire unreachable legacy Inventory v1 table/list selectors; current inventory-v22 list/detail retained. removed 49 selector arms / 43 full rules / 1 mixed rules. */

/* 34.120.104 — retire unreachable transitional unified-placement wrapper CSS; shared placement map primitives retained. */

/* 34.120.105 — retire unreachable residual Warehouse wr6 map/task/context CSS; current warehouse-placement-workspace + wr6 header/toolbar/detail primitives retained. */

/* 34.120.110 — supply-aware forecasting + Inventory Request storage availability */
.inventory-request-table th:nth-child(7),.inventory-request-table td:nth-child(7){width:118px}
.inventory-request-table th:nth-child(8),.inventory-request-table td:nth-child(8){width:140px}
.inventory-request-table th:nth-child(9),.inventory-request-table td:nth-child(9){width:150px}
.inventory-request-table th:nth-child(10),.inventory-request-table td:nth-child(10){width:142px}
.inventory-request-supply{width:100%;min-height:34px;display:grid;align-content:center;justify-items:start;gap:1px;padding:4px 7px;border:1px solid var(--ux-border);border-radius:var(--radius-md);background:var(--ux-surface);color:var(--ux-ink);text-align:start;cursor:pointer}
.inventory-request-supply:hover:not(:disabled){border-color:var(--ux-accent);background:var(--ux-surface-hover)}
.inventory-request-supply:disabled{cursor:not-allowed;opacity:.55}
.inventory-request-supply strong{font-size:12px;line-height:1.15}
.inventory-request-supply small{font-size:9px;line-height:1.2;color:var(--ux-ink-muted)}
.dashboard-attention-group[data-health="supply"]>header>span>i,.dashboard-attention-group[data-health="finish"]>header>span>i{background:var(--ux-danger)}
.dashboard-attention-group[data-health="rising"]>header>span>i{background:var(--ux-teal)}
.dashboard-attention-group[data-health="quiet"]>header>span>i{background:var(--ux-warning)}
.dashboard-attention-group[data-health="push"]>header>span>i{background:var(--ux-accent)}
.dashboard-forecast-data-note{margin-inline:14px}
@media(max-width:720px){
  .inventory-request-card-metrics{grid-template-columns:1fr 1fr 1.2fr}
  .inventory-request-supply.mobile{min-height:60px;padding:8px;background:var(--ux-surface-muted)}
  .inventory-request-supply.mobile strong{font-size:16px}
}

/* 34.120.111 — Dashboard decision panels + inline signal evidence */
.dashboard-command-grid.dashboard-command-grid-primary{grid-template-columns:repeat(2,minmax(0,1fr))}
.dashboard-forecast-workspace{display:grid;gap:var(--ui-gap);margin-top:10px;scroll-margin-top:12px}
.dashboard-forecast-workspace>header{display:flex;align-items:end;justify-content:space-between;gap:10px;padding:2px 2px 0}
.dashboard-forecast-workspace>header>div{display:grid;gap:2px}
.dashboard-forecast-workspace>header h2{margin:0;font-size:15px;line-height:1.25;color:var(--ux-ink)}
.dashboard-forecast-workspace>header p{margin:0;max-width:82ch;font-size:10.5px;line-height:1.4;color:var(--ux-ink-muted)}
.dashboard-insight-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:8px}
.dashboard-insight-panel{--insight-tone:var(--ux-accent);display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-width:0;margin:0;padding:0;border:1px solid var(--ux-border);border-radius:9px;background:var(--ux-surface);overflow:hidden;scroll-margin-top:12px}
.dashboard-insight-panel[data-dashboard-signal-panel="supply"],.dashboard-insight-panel[data-dashboard-signal-panel="finish"]{--insight-tone:var(--ux-danger)}
.dashboard-insight-panel[data-dashboard-signal-panel="rising"]{--insight-tone:var(--ux-success)}
.dashboard-insight-panel[data-dashboard-signal-panel="quiet"]{--insight-tone:var(--ux-warning)}
.dashboard-insight-panel[data-dashboard-signal-panel="push"]{--insight-tone:var(--ux-accent)}
.dashboard-insight-panel[data-dashboard-signal-panel="immediate"]{--insight-tone:var(--ux-danger)}
.dashboard-insight-head{min-height:64px;border-bottom:1px solid var(--ux-border);background:var(--ux-surface-muted)}
.dashboard-insight-head>div{display:grid;gap:3px;min-width:0}
.dashboard-insight-head h2{display:flex;align-items:center;gap:7px;font-size:var(--ui-type-body);line-height:1.25}
.dashboard-insight-head h2>i{width:8px;height:8px;flex:0 0 auto;border-radius:50%;background:var(--insight-tone)}
.dashboard-insight-head>bdi{min-width:25px;height:22px;padding:0 7px;display:grid;place-items:center;border-radius:999px;background:var(--ux-surface);border:1px solid var(--ux-border);font-size:var(--ui-type-caption);font-weight:800;color:var(--ux-ink-muted);font-variant-numeric:tabular-nums}
.dashboard-insight-list{display:grid;align-content:start;min-width:0}
.dashboard-insight-item{min-width:0;border-bottom:1px solid var(--ux-border)}
.dashboard-insight-item:last-child{border-bottom:0}
.dashboard-insight-toggle{width:100%;min-height:52px;display:grid;grid-template-columns:minmax(0,1fr) auto 15px;align-items:center;gap:8px;padding:7px 9px;border:0;background:var(--ux-surface);color:var(--ux-ink);text-align:start;cursor:pointer}
.dashboard-insight-toggle:hover{background:var(--ux-surface-hover)}
.dashboard-insight-toggle[aria-expanded="true"]{background:var(--ux-surface-selected)}
.dashboard-insight-toggle>.app-icon{width:14px;height:14px;color:var(--ux-ink-faint);transition:transform .16s ease}
.dashboard-insight-toggle[aria-expanded="true"]>.app-icon{transform:rotate(180deg)}
.dashboard-insight-lead{display:grid;grid-template-columns:52px minmax(0,1fr);align-items:center;gap:7px;min-width:0}
.dashboard-insight-lead>bdi{font-size:13px;font-weight:830;font-variant-numeric:tabular-nums;color:var(--ux-ink)}
.dashboard-insight-lead>span{min-width:0;font-size:10.5px;color:var(--ux-ink-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dashboard-insight-metric{font-size:10px;font-weight:760;color:var(--ux-ink);white-space:nowrap;font-variant-numeric:tabular-nums}
.dashboard-insight-detail{padding:9px 10px 10px;background:var(--ux-surface-muted);border-top:1px solid var(--ux-border)}
.dashboard-insight-detail[hidden]{display:none}
.dashboard-insight-detail>p{margin:0 0 8px;font-size:10px;line-height:1.45;color:var(--ux-ink-muted)}
.dashboard-insight-detail>p>strong{display:block;margin-bottom:2px;font-size:9px;text-transform:uppercase;letter-spacing:.035em;color:var(--ux-ink)}
.dashboard-insight-facts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
.dashboard-insight-facts>span{min-width:0;display:grid;align-content:start;gap:2px;padding:6px;border:1px solid var(--ux-border);border-radius:var(--radius-md);background:var(--ux-surface)}
.dashboard-insight-facts small{font-size:var(--ui-type-micro);line-height:1.15;color:var(--ux-ink-muted)}
.dashboard-insight-facts strong{font-size:10px;line-height:1.2;color:var(--ux-ink);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.dashboard-insight-facts em{font-size:var(--ui-type-micro);font-style:normal;color:var(--ux-ink-muted);font-variant-numeric:tabular-nums}
.dashboard-insight-actions{display:flex;flex-wrap:wrap;gap:var(--ui-gap-tight);margin-top:8px}
.dashboard-insight-actions .button{min-height:28px}
.dashboard-insight-panel>footer{padding:6px 9px;border-top:1px solid var(--ux-border);font-size:9px;color:var(--ux-ink-muted);background:var(--ux-surface-muted)}
.dashboard-focus-flash{outline:2px solid var(--ux-accent);outline-offset:2px}
@media(max-width:980px) and (min-width:761px){
  .dashboard-insight-facts{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
  .dashboard-command-grid.dashboard-command-grid-primary,.dashboard-insight-grid{grid-template-columns:1fr}
  .dashboard-forecast-workspace{margin-top:7px}
  .dashboard-forecast-workspace>header{padding-inline:1px}
  .dashboard-panel-head,.dashboard-insight-head{min-height:58px;padding:8px}
  .dashboard-insight-toggle{grid-template-columns:minmax(0,1fr) 14px;grid-template-rows:auto auto;gap:2px 6px;padding:7px 8px}
  .dashboard-insight-lead{grid-column:1;grid-row:1;grid-template-columns:46px minmax(0,1fr)}
  .dashboard-insight-metric{grid-column:1;grid-row:2;padding-inline-start:53px;font-size:9px;color:var(--ux-ink-muted)}
  .dashboard-insight-toggle>.app-icon{grid-column:2;grid-row:1/3}
  .dashboard-insight-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard-insight-actions .button{flex:1 1 auto}
}

/* 34.120.112 — Last cartons / clear remainder predictive signal */
.dashboard-insight-panel[data-dashboard-signal-panel="remnants"]{--insight-tone:var(--ux-warning)}

/* Production candidate 34.120.115 — editorial Inventory outlook + interactive workload trend. */
.dashboard-visual-grid{display:grid;grid-template-columns:minmax(250px,.62fr) minmax(470px,1.38fr);gap:12px;align-items:start;margin-top:10px}
.dashboard-visual-grid>.panel{margin-top:0;min-width:0}
.dashboard-outlook-panel,.dashboard-workload-panel{padding:0;overflow:hidden}
.dashboard-outlook-panel>header,.dashboard-workload-panel>header{min-height:52px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-bottom:1px solid var(--ux-border);background:var(--ux-surface)}
.dashboard-outlook-panel>header>div,.dashboard-workload-panel>header>div{display:grid;gap:2px;min-width:0}
.dashboard-outlook-panel>header h2,.dashboard-workload-panel>header h2{margin:0;font-size:14px;line-height:1.25;color:var(--ux-ink)}
.dashboard-outlook-panel>header p,.dashboard-workload-panel>header p{margin:0;font-size:9.5px;line-height:1.35;color:var(--ux-ink-muted)}

.dashboard-outlook-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:9px 11px 7px}
.dashboard-outlook-summary>span{display:grid;gap:2px;padding:0 9px;border-inline-start:1px solid var(--ux-border);font-size:var(--ui-type-micro);line-height:1.15;color:var(--ux-ink-muted)}
.dashboard-outlook-summary>span:first-child{border-inline-start:0;padding-inline-start:0}
.dashboard-outlook-summary>span:last-child{padding-inline-end:0}
.dashboard-outlook-summary strong{font-size:18px;line-height:1;color:var(--ux-ink);font-variant-numeric:tabular-nums;letter-spacing:-.025em}
.dashboard-outlook-ribbon{display:flex;height:9px;margin:4px 11px 8px;border-radius:999px;overflow:hidden;background:var(--ux-surface-muted);box-shadow:inset 0 0 0 1px var(--ux-border)}
.dashboard-outlook-segment{display:block;flex:0 0 var(--dashboard-outlook-share,0%);height:100%;background:var(--ux-ink-muted);border-inline-end:1px solid color-mix(in srgb,var(--ux-surface) 75%,transparent)}
.dashboard-outlook-segment.segment-1{opacity:.68}.dashboard-outlook-segment.segment-2{opacity:.57}.dashboard-outlook-segment.segment-3{opacity:.48}.dashboard-outlook-segment.segment-4{opacity:.39}.dashboard-outlook-segment.segment-5{opacity:.30}.dashboard-outlook-segment.segment-6{opacity:.22}
.dashboard-outlook-bands{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;padding:0 8px 7px}
.dashboard-outlook-band{display:grid;grid-template-columns:6px minmax(0,1fr) auto;align-items:center;gap:5px;min-height:27px;padding:4px 5px;border:0;border-radius:6px;background:transparent;color:var(--ux-ink);font:inherit;text-align:start;cursor:pointer}
.dashboard-outlook-band:hover,.dashboard-outlook-band[aria-expanded="true"]{background:var(--ux-surface-muted)}
.dashboard-outlook-band>i{width:5px;height:5px;border-radius:50%;background:var(--ux-ink-muted);opacity:.45}
.dashboard-outlook-band[aria-expanded="true"]>i{opacity:.95}
.dashboard-outlook-band>span{overflow:hidden;font-size:var(--ui-type-micro);line-height:1.15;color:var(--ux-ink-muted);text-overflow:ellipsis;white-space:nowrap}
.dashboard-outlook-band>strong{font-size:9px;line-height:1;font-variant-numeric:tabular-nums}
.dashboard-outlook-details:empty{display:none}
.dashboard-outlook-detail{border-top:1px solid var(--ux-border);padding:5px 8px;background:var(--ux-surface-muted)}
.dashboard-outlook-detail>p{margin:3px;font-size:9px;color:var(--ux-ink-muted)}
.dashboard-outlook-detail>button{display:grid;grid-template-columns:44px 1fr 1fr 1fr;gap:6px;align-items:center;width:100%;min-height:25px;padding:3px 4px;border:0;border-bottom:1px solid var(--ux-border);background:transparent;color:var(--ux-ink);font:inherit;text-align:start;cursor:pointer}
.dashboard-outlook-detail>button:last-child{border-bottom:0}
.dashboard-outlook-detail>button:hover{background:var(--ux-surface)}
.dashboard-outlook-detail>button strong{font-size:9.5px}.dashboard-outlook-detail>button span{font-size:var(--ui-type-micro);color:var(--ux-ink-muted);white-space:nowrap}
.dashboard-outlook-panel>footer{min-height:27px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 10px;border-top:1px solid var(--ux-border);background:var(--ux-surface-muted);font-size:var(--ui-type-micro);color:var(--ux-ink-muted)}
.dashboard-outlook-panel>footer>strong{color:var(--ux-ink);font-weight:700}
.dashboard-outlook-ribbon-skeleton,.dashboard-outlook-band-skeleton>i,.dashboard-outlook-band-skeleton>span,.dashboard-outlook-band-skeleton>strong,.dashboard-outlook-summary>span:empty{display:block;min-height:8px;border-radius:5px;background:var(--ux-surface-muted);animation:dashboard-skeleton-pulse 1.15s ease-in-out infinite alternate}

.dashboard-workload-panel>header{padding-inline:13px}
.dashboard-workload-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:11px 13px 4px}
.dashboard-workload-summary{display:grid;gap:2px;min-width:0;padding:0}
.dashboard-workload-summary>span:first-child{font-size:var(--ui-type-micro);color:var(--ux-ink-muted)}
.dashboard-workload-summary>strong{font-size:22px;line-height:1.08;color:var(--ux-ink);font-variant-numeric:tabular-nums;letter-spacing:-.028em}
.dashboard-workload-summary>small{font-size:var(--ui-type-micro);line-height:1.35;color:var(--ux-ink-muted)}
.dashboard-workload-progress{margin-top:2px;font-size:var(--ui-type-micro);color:var(--ux-ink-muted)}
.dashboard-workload-mode{flex:0 0 auto;margin-top:2px;padding:4px 7px;border:1px solid var(--ux-border);border-radius:999px;background:var(--ux-surface-muted);font-size:var(--ui-type-micro);font-weight:750;letter-spacing:.02em;color:var(--ux-ink-muted)}
.dashboard-workload-mode.planned,.dashboard-workload-mode.in_progress{border-color:color-mix(in srgb,var(--ux-accent) 30%,var(--ux-border));background:color-mix(in srgb,var(--ux-accent) 8%,var(--ux-surface));color:var(--ux-accent)}
.dashboard-workload-mode.actual{color:var(--ux-ink)}
.dashboard-workload-mode.open{border-color:color-mix(in srgb,var(--ux-warning) 40%,var(--ux-border));background:color-mix(in srgb,var(--ux-warning) 8%,var(--ux-surface));color:color-mix(in srgb,var(--ux-warning) 75%,var(--ux-ink))}
.dashboard-workload-routing{margin:2px 13px 2px;padding:5px 7px;border-inline-start:2px solid var(--ux-border-strong);background:var(--ux-surface-muted);font-size:var(--ui-type-micro);line-height:1.3;color:var(--ux-ink-muted)}
.dashboard-workload-chart{padding:1px 12px 7px}
.dashboard-workload-legend{display:flex;justify-content:flex-end;gap:12px;min-height:19px;padding:0 2px;font-size:var(--ui-type-micro);color:var(--ux-ink-muted)}
.dashboard-workload-legend>span{display:inline-flex;align-items:center;gap:5px}
.dashboard-workload-legend i{display:block;width:16px;height:0;border-top:2px solid var(--ux-accent)}
.dashboard-workload-legend .typical i{border-top:1px dashed var(--ux-ink-muted);opacity:.75}
.dashboard-workload-plot{position:relative;height:170px;overflow:visible}
.dashboard-workload-plot>svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.dashboard-workload-guides line{stroke:var(--ux-border);stroke-width:1;vector-effect:non-scaling-stroke;opacity:.6}
.dashboard-workload-area{fill:color-mix(in srgb,var(--ux-accent) 9%,transparent);stroke:none}
.dashboard-workload-typical-line{fill:none;stroke:color-mix(in srgb,var(--ux-ink-muted) 72%,transparent);stroke-width:1.35;stroke-dasharray:4 5;vector-effect:non-scaling-stroke}
.dashboard-workload-current-line{fill:none;stroke:var(--ux-accent);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;filter:drop-shadow(0 1px 1px color-mix(in srgb,var(--ux-accent) 14%,transparent))}
.dashboard-workload-forecast-line{fill:none;stroke:color-mix(in srgb,var(--ux-accent) 66%,transparent);stroke-width:1.8;stroke-linecap:round;stroke-dasharray:5 5;vector-effect:non-scaling-stroke}
.dashboard-workload-point{position:absolute;left:var(--workload-x);top:var(--workload-y);width:20px;height:20px;padding:0;border:0;background:transparent;transform:translate(-50%,-50%);cursor:default;z-index:3}
.dashboard-workload-point>i{position:absolute;inset:6px;border:2px solid var(--ux-surface);border-radius:50%;background:var(--ux-accent);box-shadow:0 0 0 1px color-mix(in srgb,var(--ux-accent) 65%,var(--ux-border))}
.dashboard-workload-point.expected>i{background:var(--ux-surface);box-shadow:0 0 0 1px color-mix(in srgb,var(--ux-accent) 48%,var(--ux-border))}
.dashboard-workload-point.today>i{inset:4px;box-shadow:0 0 0 2px var(--ux-surface),0 0 0 4px color-mix(in srgb,var(--ux-accent) 25%,transparent)}
.dashboard-workload-point.open>i{background:var(--ux-surface);box-shadow:0 0 0 2px color-mix(in srgb,var(--ux-warning) 65%,var(--ux-border))}
.dashboard-workload-tooltip{position:absolute;left:50%;top:-8px;width:150px;display:grid;gap:3px;padding:8px 9px;border:1px solid var(--ux-border);border-radius:8px;background:var(--ux-surface);box-shadow:0 9px 28px color-mix(in srgb,var(--ux-ink) 12%,transparent);color:var(--ux-ink);text-align:start;opacity:0;pointer-events:none;transform:translate(-50%,-100%) translateY(4px);transition:opacity .12s ease,transform .12s ease;z-index:6}
.dashboard-workload-point:hover .dashboard-workload-tooltip,.dashboard-workload-point:focus-visible .dashboard-workload-tooltip{opacity:1;transform:translate(-50%,-100%) translateY(0)}
.dashboard-workload-point.edge-0 .dashboard-workload-tooltip{left:0;transform:translate(0,-100%) translateY(4px)}
.dashboard-workload-point.edge-0:hover .dashboard-workload-tooltip,.dashboard-workload-point.edge-0:focus-visible .dashboard-workload-tooltip{transform:translate(0,-100%) translateY(0)}
.dashboard-workload-point.edge-4 .dashboard-workload-tooltip{left:auto;right:0;transform:translate(0,-100%) translateY(4px)}
.dashboard-workload-point.edge-4:hover .dashboard-workload-tooltip,.dashboard-workload-point.edge-4:focus-visible .dashboard-workload-tooltip{transform:translate(0,-100%) translateY(0)}
.dashboard-workload-tooltip>b{font-size:var(--ui-type-micro);color:var(--ux-ink-muted);font-weight:650}.dashboard-workload-tooltip>strong{font-size:14px;line-height:1.1;font-variant-numeric:tabular-nums}.dashboard-workload-tooltip>small{font-size:var(--ui-type-micro);color:var(--ux-ink-muted)}.dashboard-workload-tooltip>em{font-size:var(--ui-type-micro);color:var(--ux-accent);font-style:normal;font-weight:650}
.dashboard-workload-axis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;padding:0 4px 2px;text-align:center}
.dashboard-workload-axis>span{display:grid;gap:0}.dashboard-workload-axis b{font-size:var(--ui-type-micro);color:var(--ux-ink);font-weight:650}.dashboard-workload-axis small{font-size:var(--ui-type-micro);color:var(--ux-ink-muted)}.dashboard-workload-axis .today b{color:var(--ux-accent)}
.dashboard-workload-panel>footer{min-height:28px;padding:6px 12px;border-top:1px solid var(--ux-border);background:var(--ux-surface-muted);font-size:var(--ui-type-micro);line-height:1.35;color:var(--ux-ink-muted)}
.dashboard-workload-panel.dashboard-panel-skeleton .dashboard-workload-summary span,.dashboard-workload-panel.dashboard-panel-skeleton .dashboard-workload-summary strong,.dashboard-workload-panel.dashboard-panel-skeleton .dashboard-workload-summary small,.dashboard-workload-plot-skeleton,.dashboard-workload-panel.dashboard-panel-skeleton .dashboard-workload-axis b,.dashboard-workload-panel.dashboard-panel-skeleton .dashboard-workload-axis small{display:block;min-height:8px;border-radius:5px;background:var(--ux-surface-muted);animation:dashboard-skeleton-pulse 1.15s ease-in-out infinite alternate}
@media(max-width:980px){.dashboard-visual-grid{grid-template-columns:minmax(235px,.64fr) minmax(390px,1.36fr)}.dashboard-workload-plot{height:158px}}
@media(max-width:760px){
  .dashboard-visual-grid{grid-template-columns:1fr;gap:7px;margin-top:7px}
  .dashboard-outlook-panel>header,.dashboard-workload-panel>header{min-height:48px;padding:8px}
  .dashboard-outlook-panel>header .button,.dashboard-workload-panel>header .button{display:none}
  .dashboard-outlook-summary{padding:7px 8px 6px}.dashboard-outlook-summary strong{font-size:16px}.dashboard-outlook-ribbon{margin-inline:8px}.dashboard-outlook-bands{padding-inline:5px}
  .dashboard-outlook-detail{padding:4px 6px}.dashboard-outlook-detail>button{grid-template-columns:38px 1fr 1fr 1fr;gap:4px}
  .dashboard-workload-hero{padding:9px 9px 3px}.dashboard-workload-summary>strong{font-size:19px}.dashboard-workload-mode{font-size:var(--ui-type-micro)}
  .dashboard-workload-chart{padding-inline:6px}.dashboard-workload-plot{height:146px}.dashboard-workload-tooltip{width:132px;padding:7px}
  .dashboard-workload-panel>footer{padding-inline:9px}
}


/* 34.120.116 — compact dispatch pallet split + Inventory deep-link reveal. */
.dashboard-workload-dispatch{display:flex;align-items:center;gap:8px;margin:4px 13px 1px;color:var(--ux-ink-muted);font-size:var(--ui-type-micro);line-height:1.2}
.dashboard-workload-dispatch>span{margin-inline-end:2px;color:var(--ux-ink-faint)}
.dashboard-workload-dispatch>b{display:inline-flex;align-items:baseline;gap:3px;font-weight:600;color:var(--ux-ink-muted)}
.dashboard-workload-dispatch strong{font-size:var(--ui-type-micro);font-weight:760;color:var(--ux-ink);font-variant-numeric:tabular-nums}
.dashboard-workload-dispatch>small{margin-inline-start:auto;color:var(--ux-ink-faint);font-size:var(--ui-type-micro);font-weight:540}
.dashboard-workload-dispatch.estimate>span{color:var(--ux-ink-muted);font-weight:650}
#page[data-page="inventory"] .inventory-category-row.route-reveal{animation:inventory-route-reveal 1.6s ease-out}
@keyframes inventory-route-reveal{0%,18%{background:color-mix(in srgb,var(--ux-accent) 20%,var(--ux-surface))}100%{background:var(--ux-surface-selected)}}
@keyframes inventory-route-reveal-cell{0%,18%{background:color-mix(in srgb,var(--ux-accent) 15%,var(--ux-surface))}100%{background:var(--ux-accent-soft)}}
@media(max-width:760px){.dashboard-workload-dispatch{margin-inline:9px;gap:6px;flex-wrap:wrap}.dashboard-workload-dispatch>span{flex-basis:100%}.dashboard-workload-dispatch>small{flex-basis:100%;margin-inline-start:0}}

/* 34.120.121 — minimal inbound pallet log */


/* 34.120.130 — UI foundation: semantic toolbar/search primitives and canonical token ownership. */
@media(min-width:761px){
  .page-facet-shell>.ui-toolbar :is(.ui-search,input:not([type="file"]):not([type="checkbox"]):not([type="radio"]),select,.button){
    height:var(--ui-toolbar-control-height);
    min-height:var(--ui-toolbar-control-height);
  }
}
/* 34.120.145 — retired unreachable pre-facet list-filter compatibility CSS; canonical inline facet shell retained. */

/* 34.120.170 — Dashboard desktop uses the bounded .main-content scroll surface above.
   Keep Hebrew/Arabic scrolling and page content RTL so the internal scrollbar is opposite the right sidebar. */
@media(min-width:761px){
  [dir="rtl"] body[data-route="dashboard"] .main-content{direction:rtl}
  [dir="rtl"] body[data-route="dashboard"] #page[data-page="dashboard"]{direction:rtl}
}

/* 34.120.172 — Dashboard desktop scroll restoration + non-shrinking section flow.
   34.120.171 hid browser/document scroll chrome but exposed a CSS cascade defect: the high-
   specificity Dashboard page rule kept overflow visible while the outer shell was clipped,
   leaving no scroll surface. The bounded page is explicitly scrollable again. Its direct
   flex children are also non-shrinking so the command row owns the full height of its queue
   panels and the forecasting workspace begins after them instead of overlapping them. */
@media(min-width:761px){
  body[data-route="dashboard"]{height:100dvh;min-height:0;overflow:hidden}
  body[data-route="dashboard"] .app-shell{height:100dvh;min-height:0;overflow:hidden}
  body[data-route="dashboard"] .shell-main{height:100dvh;min-height:0;display:grid;grid-template-rows:var(--topbar-height) minmax(0,1fr);overflow:hidden}
  body[data-route="dashboard"] .main-content#page[data-page="dashboard"]{min-height:0;max-height:none;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:none}
  body[data-route="dashboard"] .main-content#page[data-page="dashboard"]::-webkit-scrollbar{width:0;height:0}
  body[data-route="dashboard"] #page[data-page="dashboard"]>*{flex-shrink:0}
  body[data-route="dashboard"] .dashboard-command-grid.dashboard-command-grid-primary{margin-bottom:6px}
  body[data-route="dashboard"] .dashboard-command-grid.dashboard-command-grid-primary + .dashboard-forecast-workspace{margin-top:12px}
}

/* 34.120.174 — M3 Inventory is a derived Inventory-style view, not a spreadsheet viewer.
   M3 owns pallet rows and locations. Odafim data is read only for category metadata, cartons/pallet and usage enrichment. */
body[data-route="m3-inventory"] .main-content#page{display:grid;gap:10px;align-content:start;min-width:0;padding:10px 12px 22px}
.m3-inventory-header{margin:0}.m3-inventory-header .workspace-heading p{max-width:960px}
.m3-inventory-overview{display:grid;grid-template-columns:minmax(300px,.9fr) minmax(0,1.6fr);gap:10px;min-width:0}.m3-inventory-source{display:grid;gap:9px;padding:12px}.m3-inventory-source-main{display:grid;grid-template-columns:20px minmax(0,1fr);align-items:center;gap:9px;min-width:0}.m3-inventory-source-main .app-icon{width:20px;height:20px;color:var(--ux-accent)}.m3-inventory-source-main>div{display:grid;gap:1px;min-width:0}.m3-inventory-source-main strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.m3-inventory-source-main span,.m3-inventory-source>small{font-size:9px;color:var(--ux-ink-muted);line-height:1.35}.m3-inventory-source dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:0;padding-top:8px;border-top:1px solid var(--ui-divider)}.m3-inventory-source dl>div{display:grid;gap:1px;min-width:0}.m3-inventory-source dt{font-size:8px;font-weight:650;color:var(--ux-ink-faint)}.m3-inventory-source dd{margin:0;font-size:10px;font-weight:650;color:var(--ux-ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.m3-inventory-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.m3-inventory-stat{display:grid;align-content:center;gap:2px;min-height:88px;padding:11px 12px;border:1px solid var(--ux-border);border-radius:var(--ui-radius-panel);background:var(--ux-surface)}.m3-inventory-stat span{font-size:9px;font-weight:620;color:var(--ux-ink-muted)}.m3-inventory-stat strong{font-size:25px;line-height:1;font-weight:720;color:var(--ux-ink);font-variant-numeric:tabular-nums}.m3-inventory-stat small{font-size:8.5px;color:var(--ux-ink-faint)}
.m3-inventory-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) auto auto;gap:var(--ui-gap);align-items:end;padding:8px 10px}.m3-inventory-search{min-width:0}.m3-inventory-toolbar-filters{display:flex;align-items:end;gap:7px;flex-wrap:wrap}.m3-inventory-filter{display:grid;gap:3px;min-width:126px}.m3-inventory-filter>span{font-size:8px;font-weight:650;color:var(--ux-ink-faint)}.m3-inventory-filter select{height:34px;min-width:126px;padding-inline:var(--ui-control-pad-x);border:1px solid var(--ux-border-strong);border-radius:var(--ui-radius-control);background:var(--ui-field-bg);font-size:var(--ui-type-caption);color:var(--ux-ink)}.m3-inventory-description-toggle{height:34px;display:flex;align-items:center;gap:6px;padding:0 8px;border:1px solid var(--ux-border);border-radius:var(--ui-radius-control);background:var(--ux-surface);font-size:9px;font-weight:620;color:var(--ux-ink-muted);white-space:nowrap}.m3-inventory-description-toggle input{margin:0}.m3-inventory-result-count{align-self:center;justify-self:end;font-size:9px;font-weight:650;color:var(--ux-ink-muted);white-space:nowrap}
.m3-inventory-table-panel{min-width:0;overflow:hidden;padding:0}.m3-inventory-table-wrap{height:auto;max-height:none;width:100%;overflow:auto;overscroll-behavior:contain}.m3-inventory-aggregate-table{width:100%;min-width:860px}.m3-inventory-aggregate-table tbody tr{cursor:default}.m3-inventory-aggregate-table tbody tr:hover{background:var(--ux-surface-hover)}.m3-inventory-location-chips .inventory-location-link{cursor:default;display:inline-flex;align-items:center;gap:3px}.m3-inventory-location-chips .inventory-location-link:hover{border-color:var(--ux-border-strong);color:var(--ux-ink-secondary-strong)}.m3-inventory-location-chips small{font-size:7.5px;font-weight:750;color:var(--ux-ink-muted)}.m3-inventory-unknown-category{display:block;margin-top:1px;font-size:7.5px;font-weight:650;color:var(--ux-warning)}
#page[data-page="m3-inventory"]:not(.show-descriptions) .inventory-category-description{display:none}
@media(min-width:761px){#page[data-page="m3-inventory"] .inventory-category-row.has-description-row td{border-bottom:0}#page[data-page="m3-inventory"] .inventory-category-description-row{cursor:default}#page[data-page="m3-inventory"] .inventory-category-description-row td{padding:1px 7px 6px 13px;border-bottom:1px solid #edf0f4;background:color-mix(in srgb,var(--ux-surface-muted) 42%,var(--ux-surface));color:var(--ux-ink-muted)}[dir=rtl] #page[data-page="m3-inventory"] .inventory-category-description-row td{padding-inline:13px 7px}#page[data-page="m3-inventory"] .inventory-category-description-subrow{display:flex;align-items:baseline;min-height:20px;min-width:0}#page[data-page="m3-inventory"] .inventory-category-description-subrow>strong{min-width:0;font-size:10px;font-weight:620;color:var(--ux-ink-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
.m3-inventory-no-results{padding:0}
@media(max-width:1100px){.m3-inventory-overview{grid-template-columns:1fr}.m3-inventory-toolbar{grid-template-columns:1fr}.m3-inventory-result-count{justify-self:start}.m3-inventory-toolbar-filters{justify-content:flex-start}}
@media(max-width:760px){body[data-route="m3-inventory"] .main-content#page{padding:var(--mobile-page-padding) var(--mobile-page-padding) var(--mobile-page-bottom-space);gap:8px}.m3-inventory-header{padding-inline:2px}.m3-inventory-header .workspace-actions{max-width:none;width:100%}.m3-inventory-header .workspace-actions .button{width:100%}.m3-inventory-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.m3-inventory-source dl{grid-template-columns:1fr}.m3-inventory-toolbar-filters{display:grid;grid-template-columns:1fr 1fr;width:100%}.m3-inventory-filter{min-width:0}.m3-inventory-filter select{width:100%;min-width:0}.m3-inventory-description-toggle{grid-column:1/-1;justify-content:center}.m3-inventory-aggregate-table{min-width:0;width:100%}#page[data-page="m3-inventory"] .inventory-category-description-row{display:none}#page[data-page="m3-inventory"].show-descriptions .inventory-category-description{display:block;font-size:10.5px}#page[data-page="m3-inventory"] .inventory-v22-table tbody{gap:12px}#page[data-page="m3-inventory"] .inventory-v22-table td[data-column="location"]{overflow:visible}#page[data-page="m3-inventory"] .inventory-location-chips{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:4px;overflow:visible}#page[data-page="m3-inventory"] .inventory-location-chips .inventory-location-link{display:inline-flex}}

/* 34.120.176 — M3 inventory scoped comparison */
.m3-inventory-table-wrap{height:auto;max-height:none;overflow:visible;overscroll-behavior:auto}
.m3-inventory-table-panel{overflow:visible}
.m3-compare-row{cursor:default}.m3-compare-row:hover{background:inherit}
.m3-source-row{background:var(--ux-surface)}.m3-source-row td{border-bottom:0}
.m3-source-row td:first-child{box-shadow:inset 3px 0 0 #4a7db5}[dir=rtl] .m3-source-row td:first-child{box-shadow:inset -3px 0 0 #4a7db5}
.odafim-source-row{background:color-mix(in srgb,var(--ux-accent-soft) 38%,var(--ux-surface))}.odafim-source-row td{border-bottom:2px solid var(--ux-border)}
.odafim-source-row td:first-child{box-shadow:inset 3px 0 0 #2f8b63}[dir=rtl] .odafim-source-row td:first-child{box-shadow:inset -3px 0 0 #2f8b63}
.m3-compare-category-cell>div:first-child{display:flex;align-items:center;gap:6px;min-width:0;flex-wrap:wrap}.m3-compare-source{display:inline-flex;align-items:center;height:18px;padding:0 5px;border-radius:999px;font-size:7.5px;font-weight:760;letter-spacing:.02em;white-space:nowrap}.m3-compare-source.m3{background:var(--ux-info-soft);color:var(--ux-info)}.m3-compare-source.odafim{background:var(--ux-success-soft);color:var(--ux-success)}
.m3-compare-badge{display:inline-flex;align-items:center;min-height:18px;padding:1px 6px;border-radius:999px;font-size:7.5px;font-weight:720;white-space:nowrap}.m3-compare-badge.success{background:var(--ux-success-soft);color:var(--ux-success)}.m3-compare-badge.warning{background:var(--ux-warning-soft);color:var(--ux-warning)}.m3-compare-badge.error{background:var(--ux-danger-soft);color:var(--ux-danger)}.m3-compare-badge.neutral{background:var(--ux-surface-muted);color:var(--ux-ink-muted);border:1px solid var(--ux-border)}
/* OUT sparse-storage search keeps the address action compact on desktop and finger-safe on phones. */
.out-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--ui-gap-tight);align-items:stretch;min-width:0}
.out-search-row>.button{height:var(--ui-control-height);min-height:var(--ui-control-height)}
@media(max-width:760px){.out-search-row{grid-template-columns:1fr}.out-search-row>.ui-search,.m3-inventory-search{height:var(--ui-touch-target);min-height:var(--ui-touch-target)}.out-search-row>.button{width:100%;height:var(--ui-touch-target);min-height:var(--ui-touch-target)}}

.m3-location-section{display:grid;gap:0;overflow:hidden;padding:0}.m3-location-filter-row{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}.m3-location-filter-row .button{min-height:28px;height:28px;padding-inline:var(--ui-control-pad-x);font-size:8.5px}
.m3-location-table-wrap{overflow:visible}.m3-location-table{width:100%;font-size:9.5px}.m3-location-table th,.m3-location-table td{padding:6px 8px;border-bottom:1px solid var(--ux-border);vertical-align:middle}.m3-location-table th{font-size:8px;color:var(--ux-ink-muted);white-space:nowrap}.m3-location-table .numeric{text-align:end}.m3-location-odafim-values{display:flex;gap:4px;flex-wrap:wrap}.m3-location-empty-text{color:var(--ux-ink-faint)}.m3-location-pagination{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;font-size:8.5px;color:var(--ux-ink-muted)}.m3-location-pagination>div{display:flex;align-items:center;gap:6px}
@media(max-width:760px){
  .m3-inventory-table-wrap{height:auto;overflow:visible;padding:0}
  #page[data-page="m3-inventory"] .inventory-v22-table tbody{display:grid;gap:0}
  #page[data-page="m3-inventory"] .m3-source-row{margin-bottom:0;border-radius:9px 9px 0 0;border-bottom:0}
  #page[data-page="m3-inventory"] .odafim-source-row{margin-bottom:12px;border-radius:0 0 9px 9px;border-top:1px dashed var(--ux-border)}
  #page[data-page="m3-inventory"] .m3-source-row td:first-child,#page[data-page="m3-inventory"] .odafim-source-row td:first-child{box-shadow:none}
  .m3-location-section>header{display:grid}.m3-location-filter-row{justify-content:flex-start}.m3-location-table thead{display:none}.m3-location-table,.m3-location-table tbody,.m3-location-table tr,.m3-location-table td{display:block;width:100%}.m3-location-table tbody{display:grid;gap:var(--ui-gap);padding:8px}.m3-location-table tr{padding:9px;border:1px solid var(--ux-border);border-radius:8px;background:var(--ux-surface)}.m3-location-table td{display:grid;grid-template-columns:90px minmax(0,1fr);gap:7px;padding:3px 0;border:0}.m3-location-table td::before{content:attr(data-label);font-size:8px;color:var(--ux-ink-muted);font-weight:650}.m3-location-pagination{align-items:flex-start;display:grid}.m3-location-pagination>div{justify-content:space-between}
}
/* 34.120.177 — M3/Odafim difference guidance */
.m3-category-comparison-group+.m3-category-comparison-group .m3-source-row td{border-top:5px solid var(--ux-canvas)}.m3-comparison-action-row{cursor:default}.m3-inventory-aggregate-table .m3-comparison-action-row:hover{background:inherit}.m3-comparison-action-row td{padding:0 7px 8px;border-bottom:1px solid var(--ux-border)}.m3-comparison-action{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:var(--ui-gap);align-items:start;padding:7px 8px;border-radius:7px;background:var(--ux-surface-muted)}.m3-comparison-action-row.needs-check .m3-comparison-action{background:color-mix(in srgb,var(--ux-warning-soft) 44%,var(--ux-surface));box-shadow:inset 2px 0 0 var(--ux-warning)}[dir=rtl] .m3-comparison-action-row.needs-check .m3-comparison-action{box-shadow:inset -2px 0 0 var(--ux-warning)}.m3-comparison-action-row.is-match .m3-comparison-action{background:color-mix(in srgb,var(--ux-success-soft) 32%,var(--ux-surface))}.m3-action-icon{display:grid;place-items:center;width:22px;height:22px}.m3-action-icon .app-icon{width:16px;height:16px;color:var(--ux-ink-muted)}.m3-comparison-action-row.needs-check .m3-action-icon .app-icon{color:var(--ux-warning)}.m3-action-copy,.m3-comparison-action>div{display:grid;gap:4px;min-width:0}.m3-comparison-action strong{font-size:9.5px;color:var(--ux-ink)}.m3-comparison-action span{font-size:8.5px;line-height:1.4;color:var(--ux-ink-muted)}.m3-comparison-action .m3-action-differences{display:flex;gap:9px;flex-wrap:wrap}.m3-action-differences>div{display:flex;align-items:center;gap:5px;min-width:0}.m3-difference-locations{display:flex;align-items:center;gap:3px;flex-wrap:wrap}.m3-difference-locations .inventory-location-link{font-size:8px;padding:1px 4px}.m3-action-next{align-self:center;padding:3px 7px;border:1px solid color-mix(in srgb,var(--ux-warning) 36%,var(--ux-border));border-radius:999px;background:var(--ux-surface);color:var(--ux-warning);font-weight:720;white-space:nowrap}
.m3-verification-section{padding:0;overflow:hidden}.m3-verification-section>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:11px 12px;border-bottom:1px solid var(--ux-border)}.m3-verification-section h2,.m3-verification-section p{margin:0}.m3-verification-section h2{font-size:13px}.m3-verification-section p{margin-top:2px;max-width:780px;font-size:9px;line-height:1.4;color:var(--ux-ink-muted)}.m3-verification-count{display:inline-flex;align-items:center;min-height:22px;padding:2px 7px;border-radius:999px;background:var(--ux-danger-soft);color:var(--ux-danger);font-size:8px;font-weight:720;white-space:nowrap}.m3-verification-table-wrap{overflow-x:auto}.m3-verification-table{width:100%;min-width:820px;font-size:9.5px}.m3-verification-table th,.m3-verification-table td{padding:7px 8px;border-bottom:1px solid var(--ux-border);vertical-align:top}.m3-verification-table th{font-size:8px;color:var(--ux-ink-muted);white-space:nowrap}.m3-verification-table td:first-child{white-space:nowrap}.m3-verification-next{display:grid;gap:2px;max-width:390px}.m3-verification-next strong{font-size:9px;color:var(--ux-warning)}.m3-verification-next span{font-size:8.5px;line-height:1.4;color:var(--ux-ink-muted)}.m3-verification-section.is-clear{padding:10px 12px}.m3-verification-section.is-clear>div{display:grid;grid-template-columns:22px minmax(0,1fr);gap:8px;align-items:start}.m3-verification-section.is-clear .app-icon{width:18px;height:18px;color:var(--ux-success)}
@media(max-width:760px){.m3-category-comparison-group+.m3-category-comparison-group .m3-source-row td{border-top:0}.m3-category-comparison-group{display:grid;gap:0;margin-bottom:12px}.m3-category-comparison-group .m3-source-row,.m3-category-comparison-group .odafim-source-row{margin-bottom:0}.m3-comparison-action-row{display:block;min-height:0;padding:0 8px 8px;border-radius:0 0 9px 9px;background:var(--ux-surface)}.m3-inventory-aggregate-table .m3-comparison-action-row td{padding:0}.m3-comparison-action{grid-template-columns:20px minmax(0,1fr);padding:8px}.m3-action-next{grid-column:2;justify-self:start}.m3-comparison-action .m3-action-differences{display:grid}.m3-action-differences>div{align-items:flex-start;display:grid}.m3-verification-section>header{display:grid}.m3-verification-table-wrap{overflow:visible}.m3-verification-table{min-width:0}.m3-verification-table thead{display:none}.m3-verification-table,.m3-verification-table tbody,.m3-verification-table tr,.m3-verification-table td{display:block;width:100%}.m3-verification-table tbody{display:grid;gap:var(--ui-gap);padding:8px}.m3-verification-table tr{padding:9px;border:1px solid var(--ux-border);border-radius:8px;background:var(--ux-surface)}.m3-verification-table td{display:grid;grid-template-columns:92px minmax(0,1fr);gap:7px;padding:3px 0;border:0}.m3-verification-table td::before{content:attr(data-label);font-size:8px;color:var(--ux-ink-muted);font-weight:650}.m3-verification-next{max-width:none}}
@media(max-width:760px){#page[data-page="m3-inventory"] .inventory-v22-table .m3-comparison-action-row{display:block;grid-template-columns:none;grid-template-areas:none}#page[data-page="m3-inventory"] .inventory-v22-table .m3-comparison-action-row>td{width:100%;display:block}#page[data-page="m3-inventory"] .m3-comparison-action{width:100%;box-sizing:border-box}}

/* 34.120.178 — M3 authority sorting and Odafim correction handoff */
.m3-authority-filter-row{display:flex;align-items:center;gap:var(--ui-gap-tight);flex-wrap:wrap;padding:8px 12px;border-bottom:1px solid var(--ux-border);background:color-mix(in srgb,var(--ux-surface-muted) 44%,var(--ux-surface))}.m3-authority-filter-row .button{min-height:30px}.m3-authority-filter-row .button strong{margin-inline-start:4px;font-size:8px;font-variant-numeric:tabular-nums}.m3-authority-badge{display:inline-flex;align-items:center;min-height:22px;padding:2px 7px;border-radius:999px;font-size:8px;font-weight:740;white-space:nowrap}.m3-authority-badge.odafim{background:color-mix(in srgb,var(--ux-accent-soft) 72%,var(--ux-surface));color:var(--ux-accent)}.m3-authority-badge.m3{background:color-mix(in srgb,var(--ux-warning-soft) 65%,var(--ux-surface));color:var(--ux-warning)}.m3-verification-next .m3-correction-button{justify-self:start;margin-top:4px}.m3-verification-next>small{font-size:8px;line-height:1.35;color:var(--ux-ink-faint)}.m3-correction-action{display:grid;gap:2px;margin-top:4px}.m3-correction-action strong{font-size:9px;color:var(--ux-warning)}.m3-correction-action span{font-size:8px;line-height:1.35;color:var(--ux-ink-muted)}
.category-placement-m3-handoff,.inventory-m3-handoff{display:grid;grid-template-columns:22px minmax(0,1fr);gap:8px;align-items:start;padding:9px 10px;border:1px solid color-mix(in srgb,var(--ux-accent) 32%,var(--ux-border));border-radius:var(--ui-radius-panel);background:color-mix(in srgb,var(--ux-accent-soft) 45%,var(--ux-surface))}.category-placement-m3-handoff .app-icon,.inventory-m3-handoff .app-icon{width:18px;height:18px;color:var(--ux-accent)}.category-placement-m3-handoff>div,.inventory-m3-handoff>div{display:grid;gap:2px;min-width:0}.category-placement-m3-handoff strong,.inventory-m3-handoff strong{font-size:10px;color:var(--ux-ink)}.category-placement-m3-handoff span,.inventory-m3-handoff span{font-size:9px;line-height:1.4;color:var(--ux-ink-muted)}.category-placement-m3-handoff small{font-size:8px;color:var(--ux-ink-faint)}.inventory-m3-handoff{margin-bottom:10px}
@media(max-width:760px){.m3-authority-filter-row{display:grid;grid-template-columns:1fr 1fr;padding:8px}.m3-authority-filter-row .button:first-child{grid-column:1/-1}.m3-verification-table td[data-label="Authority"],.m3-verification-table td[data-label="סמכות"],.m3-verification-table td[data-label="المرجع"],.m3-verification-table td[data-label="Источник истины"]{align-items:start}.category-placement-m3-handoff,.inventory-m3-handoff{margin-inline:0}}

/* 34.120.181 — active Inventory authority */
.inventory-source-indicator-host{display:flex;align-items:center;min-width:0}
.inventory-source-indicator{display:inline-flex;align-items:center;gap:8px;min-height:34px;padding:5px 9px;border:1px solid var(--ux-border-muted);border-radius:999px;background:var(--surface);color:inherit;font:inherit;text-align:start;white-space:nowrap}
button.inventory-source-indicator{cursor:pointer}
button.inventory-source-indicator:hover{background:var(--surface-hover)}
.inventory-source-indicator>i{width:8px;height:8px;border-radius:50%;background:#738195;box-shadow:0 0 0 3px rgba(115,129,149,.12);flex:0 0 auto}
.inventory-source-indicator.is-m3>i{background:#2c73b9;box-shadow:0 0 0 3px rgba(44,115,185,.14)}
.inventory-source-indicator>span{display:grid;line-height:1.05;gap:2px}
.inventory-source-indicator strong{font-size:12px;font-weight:700}
.inventory-source-indicator small{font-size:10px;color:var(--ux-ink-secondary-soft);font-weight:500}
.inventory-source-readonly-inline{padding:10px 12px;border:1px solid var(--ux-info-border);border-radius:8px;background:var(--ux-info-soft);color:var(--ux-info);font-size:12px;line-height:1.4}
.warehouse-source-readonly{margin:0 0 12px}
.warehouse-placement-readonly .placement-location{cursor:default}
.m3-inventory-authority{margin-bottom:14px}
.m3-active-audit-note{display:flex;align-items:flex-start;gap:10px;margin:0 0 14px;padding:11px 13px;border:1px solid var(--ux-info-border);border-radius:10px;background:var(--ux-info-soft);color:var(--ux-info)}
.m3-active-audit-note>div{display:grid;gap:3px}

@media (max-width:760px){
  .inventory-source-indicator{min-height:32px;padding:4px 7px;gap:6px}
  .inventory-source-indicator strong{font-size:11px}
  .inventory-source-indicator small{display:none}
  .topbar-end{gap:6px}
}
.m3-inventory-authority{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:16px;padding:14px 16px}
.m3-inventory-authority-copy{display:flex;align-items:flex-start;gap:10px;min-width:0}
.m3-inventory-authority-copy>div{display:grid;gap:2px;min-width:0}
.m3-inventory-authority-copy span,.m3-inventory-authority-state span{font-size:11px;color:var(--ux-ink-secondary-soft)}
.m3-inventory-authority-copy strong{font-size:15px}
.m3-inventory-authority-copy small{font-size:12px;line-height:1.35;color:var(--ux-ink-secondary-soft)}
.m3-inventory-authority-state{display:grid;gap:2px;text-align:end}
.m3-inventory-authority-state.ready span{color:#256a43}
.m3-inventory-authority-state.blocked span{color:#8a5a12}
.m3-inventory-authority-state small{font-size:10px;color:var(--ux-ink-secondary-soft)}
.m3-inventory-authority-actions{display:flex;gap:var(--ui-gap);align-items:center}
@media (max-width:900px){.m3-inventory-authority{grid-template-columns:1fr}.m3-inventory-authority-state{text-align:start}.m3-inventory-authority-actions{justify-content:flex-start}}

/* 34.120.184 — M3 import preflight diagnostics + compact mobile authority chip */
.inventory-source-label-short{display:none}
.m3-import-problems{display:grid;gap:12px;min-width:0}
.m3-import-problems-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-inline-end:32px}
.m3-import-problems-header>div{display:grid;gap:4px;min-width:0}
.m3-import-problems-header .eyebrow{font-size:9px;font-weight:700;color:var(--ux-ink-faint);overflow-wrap:anywhere}
.m3-import-problems-header h2,.m3-import-problems-header p{margin:0}
.m3-import-problems-header h2{font-size:18px;line-height:1.2}
.m3-import-problems-header p{font-size:11px;line-height:1.45;color:var(--ux-ink-muted);max-width:720px}
.m3-import-problem-count{justify-self:end}
.m3-import-problems-table-wrap{max-height:min(52vh,520px);overflow:auto;border:1px solid var(--ux-border);border-radius:var(--ui-radius-panel)}
.m3-import-problems-table{width:100%;border-collapse:collapse;min-width:720px;background:var(--ux-surface)}
.m3-import-problems-table th,.m3-import-problems-table td{padding:8px 10px;border-bottom:1px solid var(--ux-border);text-align:start;vertical-align:top;font-size:10px}
.m3-import-problems-table th{position:sticky;top:0;z-index:1;background:var(--ux-surface-muted);font-size:8.5px;font-weight:740;color:var(--ux-ink-muted);text-transform:uppercase;letter-spacing:.03em}
.m3-import-problems-table tbody tr:last-child td{border-bottom:0}
.m3-import-problems-table td strong{font-size:11px;color:var(--ux-ink)}
.m3-import-problem-reason{display:inline-flex;padding:3px 7px;border-radius:999px;background:var(--ux-danger-soft);color:var(--ux-danger);font-size:9px;font-weight:650;line-height:1.3}
.m3-import-problems-actions{display:flex;align-items:center;justify-content:space-between;gap:var(--ui-gap-loose);padding-top:2px}
.m3-import-problems-actions>span{font-size:10px;line-height:1.4;color:var(--ux-ink-muted)}
@media(max-width:760px){
  .inventory-source-label-full{display:none}
  .inventory-source-label-short{display:inline}
  .inventory-source-indicator{min-width:0;padding-inline:6px}
  .inventory-source-indicator>span{display:block}
  .m3-import-problems-header{display:grid;gap:8px;padding-inline-end:24px}
  .m3-import-problem-count{justify-self:start}
  .m3-import-problems-table-wrap{max-height:55vh;border:0;overflow:auto}
  .m3-import-problems-table{display:block;min-width:0;background:transparent}
  .m3-import-problems-table thead{display:none}
  .m3-import-problems-table tbody{display:grid;gap:8px}
  .m3-import-problems-table tr{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--ux-border);border-radius:var(--ui-radius-panel);background:var(--ux-surface);overflow:hidden}
  .m3-import-problems-table td{display:grid;gap:2px;padding:7px 9px;border-bottom:1px solid var(--ux-border);font-size:10px}
  .m3-import-problems-table td::before{content:attr(data-label);font-size:7.5px;font-weight:720;text-transform:uppercase;letter-spacing:.03em;color:var(--ux-ink-faint)}
  .m3-import-problems-table td:nth-last-child(-n+2){grid-column:1/-1}
  .m3-import-problems-table td:last-child{border-bottom:0}
  .m3-import-problems-actions{display:grid;grid-template-columns:1fr;align-items:stretch}
  .m3-import-problems-actions .button{width:100%}
}

/* 34.120.185 — M3 operational authority retirement + immutable snapshot restore */
.m3-inventory-authority.m3-authority-retired{grid-template-columns:minmax(0,1fr) auto}
.m3-snapshot-history{padding:0;overflow:hidden}
.m3-snapshot-restore-note{font-size:9px;color:var(--ux-ink-muted);align-self:center}
.m3-snapshot-history-table-wrap{overflow-x:auto}
.m3-snapshot-history-table{width:100%;min-width:650px}
.m3-snapshot-history-table th,.m3-snapshot-history-table td{padding:7px 9px;vertical-align:middle}
.m3-snapshot-history-table tr.is-current{background:color-mix(in srgb,var(--ux-accent-soft) 32%,var(--ux-surface))}
.m3-snapshot-current{display:inline-flex;align-items:center;margin-inline-start:5px;padding:1px 5px;border-radius:999px;background:var(--ux-accent-soft);color:var(--ux-accent);font-size:8px;font-weight:700}
.m3-inventory-current-row .inventory-category-description{display:none}
.m3-inventory-page.show-descriptions .m3-inventory-current-row .inventory-category-description{display:block}
@media(max-width:900px){.m3-inventory-authority.m3-authority-retired{grid-template-columns:1fr}.m3-snapshot-history>header .button{justify-self:start}}
@media(max-width:760px){.m3-snapshot-history-table-wrap{overflow:visible}.m3-snapshot-history-table{min-width:0}.m3-snapshot-history-table thead{display:none}.m3-snapshot-history-table,.m3-snapshot-history-table tbody,.m3-snapshot-history-table tr,.m3-snapshot-history-table td{display:block;width:100%}.m3-snapshot-history-table tbody{display:grid;gap:var(--ui-gap);padding:8px}.m3-snapshot-history-table tr{padding:9px;border:1px solid var(--ux-border);border-radius:8px;background:var(--ux-surface)}.m3-snapshot-history-table td{display:grid;grid-template-columns:92px minmax(0,1fr);gap:7px;padding:3px 0;border:0}.m3-snapshot-history-table td::before{content:attr(data-label);font-size:8px;color:var(--ux-ink-muted);font-weight:650}}

/* 34.120.187 — read-only Warehouse uses the full workspace; M3 reserved-empty
   locations are visible without being presented as occupied pallets. */
.placement-location.reserved{border-style:dashed;border-color:var(--ux-location-reserved-border);background:var(--ux-location-reserved-bg)}
.placement-location.reserved strong{color:var(--ux-ink)}
.placement-map-legend .reserved::before{border-style:dashed;border-color:var(--ux-location-reserved-border);background:var(--ux-location-reserved-bg)}
@media(min-width:1001px){
  .warehouse-placement-workspace.warehouse-placement-readonly{
    grid-template-columns:minmax(0,1fr) minmax(300px,360px)!important;
    grid-template-areas:"map detail"!important;
  }
}
@media(min-width:761px) and (max-width:1000px){
  .warehouse-placement-workspace.warehouse-placement-readonly{
    grid-template-columns:minmax(0,1fr) minmax(250px,310px)!important;
    grid-template-rows:minmax(0,1fr)!important;
    grid-template-areas:"map detail"!important;
  }
  .warehouse-placement-workspace.warehouse-placement-readonly>.wr6-map-panel{grid-area:map}
  .warehouse-placement-workspace.warehouse-placement-readonly>.wr6-detail{grid-area:detail}
}

/* 34.120.188 Warehouse rack creation */
.warehouse-layout-search{flex-wrap:wrap}
.warehouse-layout-search>[data-layout-create-toggle]{margin-inline-start:auto}
.warehouse-layout-create{margin:0 0 12px}
.warehouse-layout-create-grid{display:grid;grid-template-columns:minmax(160px,1.25fr) repeat(3,minmax(90px,.55fr));gap:10px;padding:12px 16px}
.warehouse-layout-create-grid label{display:grid;gap:6px}
.warehouse-layout-create-grid input{width:100%}
.warehouse-layout-create>footer{justify-content:flex-end}
@media (max-width:760px){.warehouse-layout-create-grid{grid-template-columns:1fr 1fr}.warehouse-layout-create-grid label:first-child{grid-column:1/-1}.warehouse-layout-search>[data-layout-create-toggle]{width:100%;margin-inline-start:0}}

/* 34.120.189 Warehouse Add Rack modal row allocation hotfix */
.warehouse-layout-modal.warehouse-layout-create-open{
  grid-template-rows:auto auto auto minmax(0,1fr);
}
.warehouse-layout-modal.warehouse-layout-create-open>.warehouse-layout-create{
  min-height:0;
  position:relative;
  z-index:1;
}
.warehouse-layout-modal.warehouse-layout-create-open>.warehouse-layout-list{
  min-height:0;
}
@media(max-width:760px){
  .warehouse-layout-modal.warehouse-layout-create-open{
    grid-template-rows:auto auto auto minmax(0,1fr);
  }
  .warehouse-layout-create{
    margin-bottom:0;
  }
}


/* 34.120.191 M3 Warehouse numeric tiles, category sort, and state pills */
.placement-map-header>.placement-map-header-actions{min-width:0;display:flex;align-items:center;justify-content:flex-end;gap:6px}
.placement-map-summary{flex:0 1 auto;border:1px solid var(--ux-border);border-radius:999px;background:var(--ux-surface-muted);padding:3px 7px;font-size:8px;color:var(--ux-ink-muted);font-variant-numeric:tabular-nums;white-space:nowrap;max-width:230px;overflow:hidden;text-overflow:ellipsis}
.placement-map-sort{display:flex;align-items:center;gap:4px;min-width:0}.placement-map-sort>span{font-size:8px;font-weight:700;color:var(--ux-ink-muted)}.placement-map-sort select{height:28px;min-width:112px;max-width:150px;border:1px solid var(--ux-border-strong);border-radius:5px;background:var(--ux-surface);padding:0 5px;font:inherit;font-size:8.5px;color:var(--ux-ink)}
.placement-item-sort-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:5px;align-items:start}.placement-item-sort-grid .placement-location{width:100%;min-width:0}
.placement-map-component.has-state-filters{grid-template-rows:52px auto minmax(0,1fr)}
.placement-map-inventory-statebar{min-width:0;min-height:34px;border-bottom:1px solid var(--ux-border);background:var(--ux-surface);padding:4px 7px;overflow-x:auto;scrollbar-width:none}.placement-map-inventory-statebar::-webkit-scrollbar{display:none}
.placement-map-state-filters{display:flex;align-items:center;gap:4px;min-width:max-content}.placement-map-state-filters button{height:25px;display:inline-flex;align-items:center;gap:5px;border:1px solid var(--ux-border);border-radius:999px;background:var(--ux-surface);padding:0 8px;font:inherit;font-size:8px;font-weight:750;color:var(--ux-ink-muted);cursor:pointer;white-space:nowrap;transition:opacity .12s,border-color .12s,background .12s}.placement-map-state-filters button::before{content:"";width:8px;height:8px;border:1px solid var(--ux-border-strong);border-radius:2px;background:var(--ux-surface);flex:0 0 auto}.placement-map-state-filters button.active{border-color:var(--ux-border-strong);background:var(--ux-surface-muted);color:var(--ux-ink)}.placement-map-state-filters button:not(.active){opacity:.45}.placement-map-state-filters button.free::before{border-color:var(--ux-location-free-border);background:var(--ux-location-free-bg)}.placement-map-state-filters button.reserved::before{border-color:var(--ux-location-reserved-border);background:var(--ux-location-reserved-bg)}.placement-map-state-filters button.occupied::before{border-color:var(--ux-location-full-border);background:var(--ux-location-full-bg)}.placement-map-state-filters button.blocked::before{border-color:var(--ux-location-blocked-border);background:repeating-linear-gradient(135deg,var(--ux-location-blocked-a),var(--ux-location-blocked-a) 3px,var(--ux-location-blocked-b) 3px,var(--ux-location-blocked-b) 6px)}
.placement-map-component.inventory-status-mode .placement-location.occupied{border-color:var(--ux-location-full-border);background:var(--ux-location-full-bg);color:var(--ux-location-full-ink)}.placement-map-component.inventory-status-mode .placement-location.occupied small,.placement-map-component.inventory-status-mode .placement-location.occupied strong,.placement-map-component.inventory-status-mode .placement-location.occupied em{color:var(--ux-location-full-muted)}.placement-map-component.inventory-status-mode .placement-location.occupied em{font-weight:800}
@media(max-width:760px){.placement-map-component.has-state-filters{grid-template-rows:auto auto minmax(0,1fr)}.placement-map-inventory-statebar{min-height:var(--ui-touch-target);padding:var(--ui-gap-tight)}.placement-map-state-filters button{height:var(--ui-touch-target);min-height:var(--ui-touch-target);font-size:var(--ui-type-micro);padding-inline:var(--ui-control-pad-x)}}
@media(max-width:760px){.placement-map-header>.placement-map-header-actions{gap:4px}.placement-map-summary{display:none}.placement-map-sort>span{display:none}.placement-map-sort select{min-width:104px;max-width:118px;height:30px}.placement-item-sort-grid{grid-template-columns:repeat(auto-fill,minmax(66px,1fr));gap:4px}}


/* 34.120.195 — M3 read-only Warehouse phone layout: there is no pallet tray,
   so do not reserve the editable-mode 112px tray row. The map owns the full
   mobile workspace; Location Details still replaces it via mobile-detail. */
@media(max-width:760px){
  body[data-route="warehouse-reference"] .warehouse-placement-workspace.warehouse-placement-readonly{
    grid-template-rows:minmax(0,1fr)!important;
  }
  body[data-route="warehouse-reference"] .warehouse-placement-workspace.warehouse-placement-readonly>.wr6-map-panel{
    grid-row:1!important;
    min-height:0!important;
    height:100%!important;
  }
  body[data-route="warehouse-reference"] .warehouse-placement-workspace.warehouse-placement-readonly.mobile-detail{
    grid-template-rows:minmax(0,1fr)!important;
  }
}

/* 34.120.197 — Warehouse M3 discrepancy work list */
.placement-location.warehouse-discrepancy-marked::before{content:"!";position:absolute;z-index:3;inset-block-start:2px;inset-inline-end:2px;width:14px;height:14px;border-radius:999px;display:grid;place-items:center;background:var(--ux-warning);color:#fff;font-size:9px;font-weight:850;line-height:1;box-shadow:0 0 0 2px rgba(255,255,255,.86)}
.placement-location.warehouse-discrepancy-marked{outline:2px solid color-mix(in srgb,var(--ux-warning) 72%,transparent);outline-offset:-2px}
.warehouse-discrepancy-toggle.marked{border-color:var(--ux-warning);color:var(--ux-warning)}
.warehouse-discrepancy-modal{display:grid;gap:var(--ui-gap-loose);min-width:min(860px,92vw)}
.warehouse-discrepancy-summary{display:flex;align-items:baseline;gap:8px;padding:9px 11px;border:1px solid var(--ux-border);border-radius:8px;background:var(--ux-surface-subtle)}
.warehouse-discrepancy-summary strong{font-size:20px}.warehouse-discrepancy-summary span{font-size:11px;color:var(--ux-ink-muted)}
.warehouse-discrepancy-list{display:grid;gap:8px;max-height:min(58vh,560px);overflow:auto;padding-inline-end:2px}
.warehouse-discrepancy-row{display:grid;gap:8px;padding:10px 11px;border:1px solid var(--ux-border);border-radius:9px;background:var(--ux-surface)}
.warehouse-discrepancy-row.changed{border-color:color-mix(in srgb,var(--ux-warning) 62%,var(--ux-border))}
.warehouse-discrepancy-row>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.warehouse-discrepancy-row>header>div{display:flex;align-items:center;gap:7px}.warehouse-discrepancy-row>header strong{font-size:14px}.warehouse-discrepancy-row>header small{font-size:9.5px;color:var(--ux-ink-muted);text-align:end}
.warehouse-discrepancy-row dl{margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.warehouse-discrepancy-row dl>div{display:grid;gap:2px;padding:7px 8px;border-radius:7px;background:var(--ux-surface-subtle)}.warehouse-discrepancy-row dt{font-size:8.5px;color:var(--ux-ink-muted)}.warehouse-discrepancy-row dd{margin:0;font-size:11px;font-weight:700}
.warehouse-discrepancy-current{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 8px;border-radius:7px;background:var(--ux-warning-soft);font-size:10px}.warehouse-discrepancy-current strong{font-size:9px;color:var(--ux-warning)}
.warehouse-discrepancy-row>footer{display:flex;justify-content:flex-end;gap:7px}.warehouse-discrepancy-local-note{margin:0;font-size:9.5px;color:var(--ux-ink-muted)}
@media(max-width:760px){.warehouse-discrepancy-modal{min-width:0}.warehouse-discrepancy-list{max-height:54vh}.warehouse-discrepancy-row>header{display:grid;gap:3px}.warehouse-discrepancy-row>header small{text-align:start}.warehouse-discrepancy-row dl{grid-template-columns:repeat(3,minmax(0,1fr))}.warehouse-discrepancy-row>footer{display:grid;grid-template-columns:1fr 1fr}.warehouse-discrepancy-row>footer .button{width:100%}.warehouse-discrepancy-current{display:grid;gap:3px}}


/* 34.120.198 — shared Warehouse discrepancies + phone containment + next-week workload selector */
.dashboard-workload-week-toggle{margin:8px 12px 0;justify-self:start}
.placement-location.warehouse-discrepancy-marked::before{background:var(--ux-danger)}
.placement-location.warehouse-discrepancy-marked{outline-color:color-mix(in srgb,var(--ux-danger) 76%,transparent)}
.placement-location.warehouse-discrepancy-marked.warehouse-discrepancy-stale::before{background:var(--ux-accent)}
.placement-location.warehouse-discrepancy-marked.warehouse-discrepancy-stale{outline-color:color-mix(in srgb,var(--ux-accent) 78%,transparent)}
.warehouse-discrepancy-toggle.marked{border-color:var(--ux-danger);color:var(--ux-danger)}
.warehouse-discrepancy-summary{justify-content:space-between;align-items:center}
.warehouse-discrepancy-row.active{border-color:color-mix(in srgb,var(--ux-danger) 54%,var(--ux-border));box-shadow:inset 3px 0 0 var(--ux-danger)}
.warehouse-discrepancy-row.changed{border-color:color-mix(in srgb,var(--ux-accent) 56%,var(--ux-border));box-shadow:inset 3px 0 0 var(--ux-accent)}
[dir="rtl"] .warehouse-discrepancy-row.active{box-shadow:inset -3px 0 0 var(--ux-danger)}
[dir="rtl"] .warehouse-discrepancy-row.changed{box-shadow:inset -3px 0 0 var(--ux-accent)}
.warehouse-discrepancy-current{background:var(--ux-accent-soft)}
.warehouse-discrepancy-current strong{color:var(--ux-accent)}
@media(max-width:760px){
  .dashboard-workload-week-toggle{margin:6px 8px 0;display:grid;grid-template-columns:1fr 1fr;width:calc(100% - 16px)}
  body[data-route="warehouse-reference"] .warehouse-r6,
  body[data-route="warehouse-reference"] .warehouse-placement-workspace,
  body[data-route="warehouse-reference"] .warehouse-placement-workspace>.wr6-map-panel,
  body[data-route="warehouse-reference"] .placement-map-component,
  body[data-route="warehouse-reference"] .placement-map-scroll,
  body[data-route="warehouse-reference"] .placement-rack-pair-grid,
  body[data-route="warehouse-reference"] .placement-rack-pair,
  body[data-route="warehouse-reference"] .placement-pair-rack,
  body[data-route="warehouse-reference"] .placement-pair-rack-body,
  body[data-route="warehouse-reference"] .placement-pair-zone,
  body[data-route="warehouse-reference"] .placement-pair-zone-content{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
  body[data-route="warehouse-reference"] .warehouse-placement-workspace{width:100%!important}
  body[data-route="warehouse-reference"] .placement-map-scroll{width:100%!important;scrollbar-gutter:auto!important;overscroll-behavior-x:none}
  body[data-route="warehouse-reference"] .warehouse-placement-workspace.mobile-detail>.wr6-detail .wr6-mobile-back{display:inline-flex!important;align-items:center;justify-content:center}
  .warehouse-discrepancy-summary{align-items:stretch}.warehouse-discrepancy-summary>.button{min-height:42px}
}


/* 34.120.199 — iPhone Warehouse intrinsic-width containment.
   The rack-pair map used fixed-width location tiles inside nested flex/grid lanes;
   make those tiles responsive on phones instead of relying only on outer max-width. */
@media(max-width:760px){
  body[data-route="warehouse-reference"],
  body[data-route="warehouse-reference"] .app-shell,
  body[data-route="warehouse-reference"] .shell-main,
  body[data-route="warehouse-reference"] .main-content,
  body[data-route="warehouse-reference"] .warehouse-r6,
  body[data-route="warehouse-reference"] .warehouse-filter-shell,
  body[data-route="warehouse-reference"] .warehouse-placement-workspace,
  body[data-route="warehouse-reference"] .warehouse-placement-workspace>.wr6-map-panel,
  body[data-route="warehouse-reference"] .placement-map-component{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    overflow-x:hidden!important;
  }
  body[data-route="warehouse-reference"] .warehouse-placement-workspace{padding-inline:4px!important}
  body[data-route="warehouse-reference"] .placement-map-scroll{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    padding-inline:4px!important;
    box-sizing:border-box!important;
    overflow-x:hidden!important;
  }
  body[data-route="warehouse-reference"] .placement-rack-pair-grid,
  body[data-route="warehouse-reference"] .placement-rack-pair,
  body[data-route="warehouse-reference"] .placement-pair-rack,
  body[data-route="warehouse-reference"] .placement-pair-rack-body,
  body[data-route="warehouse-reference"] .placement-pair-zone,
  body[data-route="warehouse-reference"] .placement-pair-zone-content,
  body[data-route="warehouse-reference"] .placement-pair-slot-split,
  body[data-route="warehouse-reference"] .placement-pair-slot-half{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }
  body[data-route="warehouse-reference"] .placement-pair-rack-body{padding-inline:4px!important}
  body[data-route="warehouse-reference"] .placement-pair-zone{grid-template-columns:16px minmax(0,1fr)!important;gap:4px!important}
  body[data-route="warehouse-reference"] .placement-pair-zone-content,
  body[data-route="warehouse-reference"] .placement-pair-slot-half{
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:flex-start!important;
    gap:3px!important;
  }
  body[data-route="warehouse-reference"] .placement-pair-zone .placement-location,
  body[data-route="warehouse-reference"] .placement-pair-slot-half .placement-location{
    flex:1 1 46px!important;
    width:auto!important;
    min-width:44px!important;
    max-width:56px!important;
  }
  body[data-route="warehouse-reference"] .placement-map-header{min-width:0!important;overflow:hidden!important;gap:4px!important;padding-inline:6px!important}
  body[data-route="warehouse-reference"] .placement-map-header>div:first-child{flex:1 1 auto!important;min-width:0!important}
  body[data-route="warehouse-reference"] .placement-map-header>.placement-map-header-actions{flex:0 1 112px!important;max-width:112px!important;min-width:0!important}
  body[data-route="warehouse-reference"] .placement-map-sort{width:100%!important;max-width:112px!important;min-width:0!important}
  body[data-route="warehouse-reference"] .placement-map-sort select{width:100%!important;min-width:0!important;max-width:112px!important}
}


/* 34.120.200 — high-contrast Warehouse location selection.
   Occupied gray tiles no longer rely on a faint outline to communicate selection. */
.placement-location.selected{
  z-index:4;
  border:3px solid var(--ux-location-selected-border);
  box-shadow:inset 0 0 0 1px var(--ux-location-selected-inner),0 0 0 2px var(--ux-location-selected-ring);
}
.placement-location.occupied.selected{
  border-color:var(--ux-location-selected-border);
  background:var(--ux-location-selected-bg);
  color:var(--ux-ink-strong);
}
.placement-location.occupied.selected small,
.placement-location.occupied.selected em{color:var(--ux-location-selected-muted)}
.placement-map-legend .selected::before{
  border:3px solid var(--ux-location-selected-border);
  background:var(--ux-location-selected-bg);
  box-shadow:0 0 0 1px var(--ux-location-selected-ring);
}


/* 34.120.201 — global search icon/text collision fix.
   The generic input rule has higher specificity than the original global-search
   shorthand, so enforce component-owned icon clearance explicitly. */
.global-search-field>.app-icon{z-index:2}
.global-search-field>input[type="search"]{
  padding-inline-start:42px!important;
  padding-inline-end:14px!important;
}
html[dir="ltr"] .global-search-field>input[type="search"]{padding-left:42px!important;padding-right:14px!important}
html[dir="rtl"] .global-search-field>input[type="search"]{padding-right:42px!important;padding-left:14px!important}

/* 34.120.201 — phone shell source status + deterministic six-slot Warehouse rows.
   The M3 authority badge leaves the crowded phone topbar and is shown compactly
   above the sidebar version. Warehouse physical lanes use six equal columns so
   their width is derived from the viewport, never from location tile content. */
.sidebar-inventory-source-host{display:none}
@media(max-width:760px){
  .topbar-end>.inventory-source-indicator-host{display:none!important}
  .sidebar-inventory-source-host{display:flex;align-items:center;width:100%;margin-bottom:6px}
  .sidebar-inventory-source-host .inventory-source-indicator{
    width:100%;min-width:0;min-height:30px;padding:4px 7px;gap:6px;
    border-color:rgba(255,255,255,.12);background:rgba(255,255,255,.055);color:#eef5fb;
    border-radius:7px;
  }
  .sidebar-inventory-source-host button.inventory-source-indicator:hover{background:rgba(255,255,255,.09)}
  .sidebar-inventory-source-host .inventory-source-indicator>i{width:7px;height:7px;box-shadow:0 0 0 2px rgba(115,129,149,.15)}
  .sidebar-inventory-source-host .inventory-source-indicator.is-m3>i{background:#62a7e7;box-shadow:0 0 0 2px rgba(98,167,231,.17)}
  .sidebar-inventory-source-host .inventory-source-indicator strong{font-size:10px;color:#f5f9fd}
  .sidebar-inventory-source-host .inventory-source-label-full{display:none}
  .sidebar-inventory-source-host .inventory-source-label-short{display:inline}

  body[data-route="warehouse-reference"] .topbar,
  body[data-route="warehouse-reference"] .topbar-start,
  body[data-route="warehouse-reference"] .topbar-page-actions,
  body[data-route="warehouse-reference"] .topbar-end{min-width:0!important;max-width:100%!important}
  body[data-route="warehouse-reference"] .topbar{overflow:visible!important}

  body[data-route="warehouse-reference"] .placement-pair-rack{
    grid-template-columns:20px minmax(0,1fr)!important;gap:4px!important;
  }
  body[data-route="warehouse-reference"] .placement-pair-rack-body{padding-inline:3px!important}
  body[data-route="warehouse-reference"] .placement-pair-zone{
    grid-template-columns:16px minmax(0,1fr)!important;gap:3px!important;
  }
  body[data-route="warehouse-reference"] .placement-pair-zone-content{
    display:grid!important;
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    gap:3px!important;
    width:100%!important;min-width:0!important;max-width:100%!important;
  }
  body[data-route="warehouse-reference"] .placement-pair-zone.split-middle>.placement-pair-zone-content{
    grid-template-columns:minmax(0,1fr)!important;
  }
  body[data-route="warehouse-reference"] .placement-pair-slot-split{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:34px!important;
    width:100%!important;min-width:0!important;max-width:100%!important;
  }
  body[data-route="warehouse-reference"] .placement-pair-slot-half{
    display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;
    gap:3px!important;width:100%!important;min-width:0!important;max-width:100%!important;
  }
  body[data-route="warehouse-reference"] .placement-pair-zone .placement-location,
  body[data-route="warehouse-reference"] .placement-pair-slot-half .placement-location{
    width:100%!important;min-width:0!important;max-width:none!important;
    flex:none!important;box-sizing:border-box!important;
  }
  body[data-route="warehouse-reference"] .placement-pair-zone .placement-location small{
    max-width:100%;overflow:hidden;text-overflow:clip;
  }
}

/* Warehouse lifecycle modal — structured slot cards and non-overlapping retirement guard. */
.warehouse-lifecycle-modal{min-width:0;width:100%;max-width:100%}
.warehouse-lifecycle-modal .modal-heading{min-width:0}
.warehouse-lifecycle-modal .modal-heading>div{min-width:0}
.warehouse-lifecycle-slot-section{min-width:0}
.warehouse-lifecycle-slot-section>header{align-items:flex-start;min-width:0}
.warehouse-lifecycle-slot-section>header>div{min-width:0}
.warehouse-lifecycle-slot-section>header h3{margin:0 0 4px}
.warehouse-lifecycle-slot-section>header p{margin:0;line-height:1.45;color:var(--ux-ink-muted,var(--text-muted))}
.warehouse-lifecycle-blocked-count{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:24px;padding:3px 9px;border:1px solid var(--ux-border,var(--border-subtle));border-radius:999px;background:var(--ux-surface-muted,var(--surface-muted));color:var(--ux-ink-muted,var(--text-muted));font-size:10px;font-weight:700;line-height:1;white-space:nowrap}
.warehouse-lifecycle-slot-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-height:min(48vh,430px);padding:1px;overflow:auto;overscroll-behavior:contain}
.warehouse-lifecycle-slot{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"copy status" "action action";align-content:start;align-items:start;gap:8px 10px;min-width:0;padding:11px 12px;overflow:hidden}
.warehouse-lifecycle-slot-copy{grid-area:copy;display:grid;gap:3px;min-width:0}
.warehouse-lifecycle-slot-copy strong,.warehouse-lifecycle-slot-copy span,.warehouse-lifecycle-slot-copy small{display:block;min-width:0}
.warehouse-lifecycle-slot-copy strong{font-size:13px;line-height:1.25}
.warehouse-lifecycle-slot-copy span{font-size:11px;line-height:1.35;color:var(--ux-ink-muted,var(--ux-ink-secondary-strong))}
.warehouse-lifecycle-slot-copy small{font-size:10px;line-height:1.4;color:var(--ux-ink-muted,var(--ux-ink-secondary-strong));overflow-wrap:anywhere}
.warehouse-lifecycle-slot-status{grid-area:status;align-self:start;justify-self:end;min-width:0}
.warehouse-lifecycle-slot-action{grid-area:action;justify-self:start;max-width:100%;min-width:0}
.warehouse-lifecycle-slot-action:disabled{opacity:.52}
.warehouse-lifecycle-modal>.callout{margin:0}
.warehouse-lifecycle-modal>.callout>div{display:grid;gap:2px;min-width:0}
.warehouse-lifecycle-modal>.callout strong,.warehouse-lifecycle-modal>.callout span{display:block;min-width:0;line-height:1.4}
.warehouse-lifecycle-modal>.callout span{overflow-wrap:anywhere}
@media(max-width:920px){.warehouse-lifecycle-slot-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.warehouse-lifecycle-slot-list{grid-template-columns:1fr;max-height:none}.warehouse-lifecycle-slot-section>header{align-items:flex-start}.warehouse-lifecycle-slot{padding:10px}.warehouse-lifecycle-blocked-count{margin-top:1px}}

/* 34.120.203 — M3 Inventory detail declutter.
   M3 is permanently authoritative, so read-only instructional/editor remnants are
   removed from the Inventory detail while the actual balance/location data stays. */
.inventory-stock-summary.inventory-stock-summary-compact{grid-template-columns:repeat(2,minmax(0,1fr))}
.inventory-header-metrics.inventory-header-metrics-compact{grid-template-columns:repeat(3,minmax(0,1fr))}
.inventory-v22-detail.inventory-readonly-detail{grid-template-rows:auto auto minmax(0,1fr)!important}
.inventory-location-summary.inventory-location-summary-compact{padding-top:10px}
@media(max-width:760px){
  .inventory-v22-page.mobile-detail .inventory-v22-detail.inventory-readonly-detail{grid-template-rows:54px 44px minmax(0,1fr)!important}
  .inventory-stock-summary.inventory-stock-summary-compact{grid-template-columns:repeat(2,minmax(0,1fr))}
  .inventory-header-metrics.inventory-header-metrics-compact{grid-template-columns:repeat(3,minmax(0,1fr))}
}


/* 34.120.204 — Warehouse related-category locations + Inventory detail timestamp cleanup */
.wr6-other-locations{display:grid;gap:6px;margin-top:10px;padding-top:10px;border-top:1px solid var(--ux-border)}
.wr6-other-locations h4{margin:0;font-size:9px;font-weight:700;color:var(--ux-ink-muted)}
.wr6-other-location-list{display:flex;flex-wrap:wrap;gap:5px;min-width:0}
.wr6-other-location{display:inline-flex;align-items:center;justify-content:center;min-height:30px;border:1px solid var(--ux-border-strong);background:var(--ux-surface-subtle);color:var(--ux-ink-secondary-strong);border-radius:5px;padding:4px 7px;font:inherit;font-size:9.5px;font-weight:700;cursor:pointer}
.wr6-other-location:hover,.wr6-other-location:focus-visible{border-color:var(--ux-accent);color:var(--ux-accent);background:var(--ux-accent-soft)}
@media(max-width:760px){body[data-route="warehouse-reference"] .wr6-other-locations h4{font-size:11px}body[data-route="warehouse-reference"] .wr6-other-location{min-height:44px;padding:7px 10px;font-size:11px}}


/* 34.120.205 — canonical module/i18n architecture + Warehouse category-location navigation.
   Read-only Warehouse has no action bar, so it must not reserve an empty footer row. */
.wr6-other-location.current{border-color:var(--ux-accent);background:var(--ux-accent-soft);color:var(--ux-accent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--ux-accent) 20%,transparent)}
.warehouse-r6.warehouse-readonly{grid-template-rows:auto auto minmax(0,1fr)!important}
@media(max-width:760px){
  body[data-route="warehouse-reference"] .warehouse-r6.warehouse-readonly{grid-template-rows:50px auto minmax(0,1fr)!important}
}

/* 34.120.207 — M3 item-aware carton estimation and mobile Inventory density. */
#page[data-page="inventory"] .inventory-v22-table th.inventory-items-col,
#page[data-page="inventory"] .inventory-v22-table td[data-column="items"]{display:none}
#page[data-page="inventory"] .inventory-stock-summary.inventory-stock-summary-m3{grid-template-columns:repeat(3,minmax(0,1fr))}
#page[data-page="inventory"] .inventory-carton-estimate-section .inventory-section-title-row{align-items:flex-start}
#page[data-page="inventory"] .inventory-carton-estimate-section .inventory-section-title-row p{margin:2px 0 0;font-size:8.5px;line-height:1.35;color:var(--ux-ink-muted)}
#page[data-page="inventory"] .inventory-carton-last-check{margin:8px 0 0;font-size:8.5px;color:var(--ux-ink-muted)}
.inventory-carton-confirm-form{display:grid;gap:14px;min-width:min(420px,calc(100vw - 44px))}
.inventory-carton-confirm-context{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.inventory-carton-confirm-context>div{display:grid;gap:3px;padding:9px 10px;border:1px solid var(--ux-border);border-radius:8px;background:var(--ux-surface-muted)}
.inventory-carton-confirm-context span{font-size:9px;color:var(--ux-ink-muted)}
.inventory-carton-confirm-context strong{font-size:16px;font-variant-numeric:tabular-nums}
.inventory-carton-confirm-form .ui-field{display:grid;gap:5px}
.inventory-carton-confirm-form .ui-field>span{font-size:var(--ui-type-caption);font-weight:700}
.inventory-carton-confirm-form .ui-field input{width:100%;box-sizing:border-box;min-height:42px;font-size:16px}
.inventory-carton-confirm-form .ui-field small{font-size:9px;color:var(--ux-ink-muted)}
@media(max-width:760px){
  #page[data-page="inventory"] .inventory-v22-table tr{grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-areas:"category category health" "location location location" "pallets items stockCartons"!important;min-height:0!important}
  #page[data-page="inventory"] .inventory-v22-table td[data-column="items"]{grid-area:items;display:grid!important}
  #page[data-page="inventory"] .inventory-v22-table td[data-column="coverDays"]{display:none!important}
  #page[data-page="inventory"] .inventory-v22-table td[data-column="pallets"],
  #page[data-page="inventory"] .inventory-v22-table td[data-column="items"],
  #page[data-page="inventory"] .inventory-v22-table td[data-column="stockCartons"]{height:42px;border:1px solid var(--ux-border)!important;border-radius:6px!important;background:var(--ux-surface-muted);place-content:center;text-align:center!important;position:relative}
  #page[data-page="inventory"] .inventory-v22-table td[data-column="pallets"]::after,
  #page[data-page="inventory"] .inventory-v22-table td[data-column="items"]::after,
  #page[data-page="inventory"] .inventory-v22-table td[data-column="stockCartons"]::after{content:attr(data-label);display:block;font-size:7px;color:var(--ux-ink-muted);font-weight:600;max-width:92px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #page[data-page="inventory"] .inventory-v22-table td[data-column="items"] strong,
  #page[data-page="inventory"] .inventory-v22-table td[data-column="pallets"] strong,
  #page[data-page="inventory"] .inventory-v22-table td[data-column="stockCartons"] strong{font-size:13px}
  #page[data-page="inventory"] .inventory-v22-page .inventory-category-cell .inventory-category-description{display:block!important;max-width:none!important;width:auto!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important;font-size:11px!important;font-weight:450!important;line-height:1.35!important;color:var(--ux-ink-muted)!important}
  #page[data-page="inventory"] .inventory-category-cell{min-width:0;width:100%}
  #page[data-page="inventory"] .inventory-stock-summary.inventory-stock-summary-m3{grid-template-columns:repeat(3,minmax(0,1fr))}
  #page[data-page="inventory"] .inventory-stock-summary.inventory-stock-summary-m3>div{min-width:0}
  .inventory-carton-confirm-form{min-width:0;width:100%}
  .inventory-carton-confirm-context{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* 34.120.208 — live carton projection between M3 imports + clean interval learning. */
#page[data-page="inventory"] .inventory-carton-estimate-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:var(--ui-gap-tight);max-width:320px}
#page[data-page="inventory"] .inventory-stock-received-toggle.active{border-color:var(--ux-warning-border);background:var(--ux-warning-soft);color:var(--ux-warning-ink)}
#page[data-page="inventory"] .inventory-carton-live-note{margin:8px 0 0;padding:7px 9px;border:1px solid var(--ux-border);border-radius:7px;background:var(--ux-surface-muted);font-size:9px;line-height:1.4;color:var(--ux-ink-muted)}
#page[data-page="inventory"] .inventory-carton-live-note.blocked{border-color:var(--ux-warning-border);background:var(--ux-warning-soft);color:var(--ux-warning-ink)}
#page[data-page="inventory"] .inventory-live-collection-delta{display:block;margin-top:2px;font-size:7.5px;line-height:1.15;font-weight:650;color:var(--ux-accent);white-space:nowrap}
#page[data-page="inventory"] .inventory-live-collection-delta.blocked{color:var(--ux-warning-ink)}
@media(max-width:760px){
  #page[data-page="inventory"] .inventory-carton-estimate-section .inventory-section-title-row{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--ui-gap);margin-bottom:var(--ui-gap)}
  #page[data-page="inventory"] .inventory-carton-estimate-actions{justify-content:flex-start;max-width:none;width:100%}
  #page[data-page="inventory"] .inventory-carton-estimate-actions .button.small{flex:0 0 auto}
  #page[data-page="inventory"] .inventory-v22-table td[data-column="pallets"],
  #page[data-page="inventory"] .inventory-v22-table td[data-column="items"],
  #page[data-page="inventory"] .inventory-v22-table td[data-column="stockCartons"]{height:auto;min-height:52px}
  #page[data-page="inventory"] .inventory-live-collection-delta{font-size:7px;max-width:100%;overflow:hidden;text-overflow:ellipsis}
}


/* 34.120.209 — compact secondary actions + early below-pallet carton estimate. */
@media(max-width:760px){
  .button.small{width:auto;min-width:0;min-height:var(--ui-touch-target);padding:5px var(--ui-control-pad-x);font-size:var(--ui-type-control)}
}

/* 34.120.210–212 — Administrator System Info reference.
   Section/card/table geometry is intentionally owned by the global ui-* primitives above. */
.system-info-page{display:grid;gap:var(--ui-gap-loose);padding-bottom:18px}
.system-info-section{margin:0}
.system-info-section>.ui-card-grid{padding:16px 20px 20px}
.system-info-table-wrap{overflow:auto;padding:0 20px 20px}
.system-info-table{min-width:720px}
.system-info-table .system-info-param-col{width:26%}
.system-info-table .system-info-value-col{width:22%}
.system-info-table tbody th{font-size:var(--ui-type-control);line-height:1.4;font-weight:650;color:var(--ux-ink-strong);text-align:start}
.system-info-table tbody td{font-size:11.5px;line-height:1.45;color:var(--ux-ink-muted);vertical-align:top}
.system-info-table code{font:600 11.5px/1.4 var(--font-mono,ui-monospace,SFMono-Regular,Menlo,monospace);color:var(--ux-ink);white-space:normal}
.system-info-note{margin:0}
.system-info-note.maintenance{border-style:dashed}
@media(max-width:760px){.system-info-page{gap:var(--ui-gap);padding-bottom:8px}.system-info-section>.ui-card-grid{padding:12px 14px 14px}.system-info-table-wrap{padding:0 14px 14px}.system-info-table{min-width:650px}.system-info-note{margin-inline:2px}}

/* 34.120.211 — Inventory desktop description-width improvement retained; 212 owns brand presentation. */
@media(min-width:761px){
  #page[data-page="inventory"] .inventory-v22-page.show-descriptions .inventory-category-description{max-width:260px}
}

/* 34.120.213 — local favicon brand column with brand-colored circular badge backgrounds. */
#page[data-page="inventory"] .inventory-brand-col,
#page[data-page="inventory"] .inventory-brand-cell{width:42px;min-width:42px;max-width:42px;padding-inline:6px!important;text-align:center!important}
#page[data-page="inventory"] .inventory-brand-cell{vertical-align:middle}
#page[data-page="inventory"] .inventory-brand-mark{position:relative;display:inline-flex!important;align-items:center;justify-content:center;width:28px;height:28px;min-width:28px;border:1px solid transparent;border-radius:50%;overflow:hidden;box-shadow:0 1px 2px rgba(15,23,42,.08);font-size:9px;font-weight:800;line-height:1}
#page[data-page="inventory"] .inventory-brand-mark img{position:absolute;inset:3px;width:22px;height:22px;object-fit:contain;border-radius:50%;background:transparent}
#page[data-page="inventory"] .inventory-brand-delta{background:#64a844;border-color:#64a844;color:#fff}
#page[data-page="inventory"] .inventory-brand-fix{background:#000;border-color:#000;color:#fff}
#page[data-page="inventory"] .inventory-brand-panta{background:#fff;border-color:var(--ux-border);color:#b87333}
#page[data-page="inventory"] .inventory-brand-vs{background:#f4c6cf;border-color:#f4c6cf;color:#111}
#page[data-page="inventory"] .inventory-brand-fallback{display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-size:8px;font-weight:800;letter-spacing:-.04em}
#page[data-page="inventory"] .inventory-brand-mark.favicon-failed img{display:none}
@media(min-width:761px){
  #page[data-page="inventory"] .inventory-v22-table th.inventory-brand-col{padding-inline:4px!important}
  #page[data-page="inventory"] .inventory-v22-page:not(.show-brand-marks) .inventory-brand-col,
  #page[data-page="inventory"] .inventory-v22-page:not(.show-brand-marks) .inventory-brand-cell{display:none!important}
}
@media(max-width:760px){
  #page[data-page="inventory"] .inventory-v22-table tr{position:relative}
  #page[data-page="inventory"] .inventory-v22-table td[data-column="brand"]{display:none!important}
  #page[data-page="inventory"] .inventory-v22-page.show-brand-marks .inventory-v22-table td[data-column="brand"]{display:block!important;position:absolute;z-index:2;inset-inline-start:10px;top:10px;width:32px;min-width:32px;max-width:32px;height:32px;padding:0!important;border:0!important;background:transparent!important}
  #page[data-page="inventory"] .inventory-v22-page.show-brand-marks .inventory-v22-table td[data-column="category"]{padding-inline-start:50px!important}
  #page[data-page="inventory"] .inventory-brand-mark{width:32px;height:32px;min-width:32px}
  #page[data-page="inventory"] .inventory-brand-mark img{inset:3px;width:26px;height:26px}
}

/* 34.120.212 — Operator read-only master-data views keep the same catalog chrome without empty action columns. */
@media (min-width:901px){
  body[data-route="category-master"] .category-catalog-shell.is-readonly .category-catalog-head,
  body[data-route="category-master"] .category-catalog-shell.is-readonly .category-catalog-row{grid-template-columns:minmax(210px,2fr) minmax(92px,.8fr) minmax(112px,.95fr) minmax(132px,1.08fr) 108px}
}

/* 34.120.218 — global degraded-network circuit breaker status */
.shell-feedback[data-network="true"]{pointer-events:auto;border-bottom-color:var(--ux-warning-border);background:var(--ux-warning-soft)}
.shell-feedback[data-network="true"] #global-status,.shell-feedback[data-network="true"] .toast-host{display:none!important}
.network-circuit-status{grid-column:1/-1;min-width:0;height:40px;max-height:40px;display:grid;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:8px;padding:5px 8px;border:1px solid var(--ux-warning-border);border-radius:7px;background:var(--ux-warning-soft);color:var(--ux-warning-ink)}
.network-circuit-status[hidden]{display:none!important}.network-circuit-status .app-icon,.network-circuit-status .status-spinner{width:17px;height:17px}.network-circuit-status strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.network-circuit-status .button{min-height:28px;height:28px;padding:3px 9px;font-size:10px}
.network-circuit-status[data-state="recovering"]{grid-template-columns:18px minmax(0,1fr);background:var(--ux-info-soft);border-color:var(--ux-info-border);color:var(--ux-info)}
@media(max-width:760px){.network-circuit-status{grid-template-columns:18px minmax(0,1fr) auto;padding-inline:6px}.network-circuit-status strong{font-size:10px}.network-circuit-status .button{min-width:38px;padding-inline:6px}.network-circuit-status .button span{display:none}}

/* 34.120.221 — restrained directional surface edges.
   Structural surfaces use theme-owned directional edges; Dark keeps the same hierarchy
   without the bright Light-facing bevel visible on real mobile displays. */
:is(.task-toolbar,.panel,.work-surface,.metric-grid,.ui-section.is-surface,.ui-reference-card,.ui-formula-card,.ui-week-metric,.analytics-card,.analytics-kpis article,.m3-inventory-stat,.review-summary article){
  border-width:1px;
  border-style:solid;
  border-color:var(--ux-surface-edge-top) var(--ux-surface-edge-right) var(--ux-surface-edge-bottom) var(--ux-surface-edge-left);
  box-shadow:var(--ux-surface-edge-shadow);
}
@media(min-width:761px){
  :is(.orders-list-panel,.orders-detail-panel,.approval-gate-surface){
    border-width:1px;
    border-style:solid;
    border-color:var(--ux-surface-edge-top) var(--ux-surface-edge-right) var(--ux-surface-edge-bottom) var(--ux-surface-edge-left);
    box-shadow:var(--ux-surface-edge-shadow);
  }
}
/* Internal separators remain, but recede so hierarchy comes from spacing/surface contrast. */
.metric-card{border-inline-end-color:var(--ux-surface-divider)}
.analytics-card>header,.orders-list-panel>header,.orders-detail-head{border-bottom-color:var(--ux-surface-divider)}
.ui-reference-card.is-muted{background:color-mix(in srgb,var(--ux-surface-muted) 84%,var(--ux-surface))}



/* 34.120.224 — read-only Warehouse must not reserve the editable action-bar row.
   34.120.82 introduced a more-specific route-level grid rule; this matching
   specificity closes the 58px empty strip below the map when no action bar exists. */
body[data-route="warehouse-reference"] .warehouse-r6.warehouse-readonly{
  grid-template-rows:auto auto minmax(0,1fr)!important;
}
@media(max-width:760px){
  body[data-route="warehouse-reference"] .warehouse-r6.warehouse-readonly{
    grid-template-rows:50px auto minmax(0,1fr)!important;
  }
}

/* 34.120.225 — shared Inventory category lists */
#page[data-page="inventory"] .inventory-category-list-filter{display:grid;gap:var(--ui-gap-loose);min-width:0}
#page[data-page="inventory"] .inventory-category-list-picker{display:grid;grid-template-columns:minmax(220px,1fr) auto;gap:var(--ui-gap-loose);align-items:end}
#page[data-page="inventory"] .inventory-category-list-picker>label,#page[data-page="inventory"] .inventory-category-list-editor-toolbar>label{display:grid;gap:var(--ui-gap-tight);min-width:0}
#page[data-page="inventory"] .inventory-category-list-picker>label>span,#page[data-page="inventory"] .inventory-category-list-editor-toolbar>label>span,#page[data-page="inventory"] .inventory-category-list-paste label>span{font-size:var(--ui-type-control);font-weight:700;color:var(--ux-ink-muted)}
#page[data-page="inventory"] .inventory-category-list-picker select,#page[data-page="inventory"] .inventory-category-list-editor-toolbar select,#page[data-page="inventory"] .inventory-category-list-editor-toolbar input,#page[data-page="inventory"] .inventory-category-list-paste textarea{width:100%;min-height:var(--ui-control-height);border:1px solid var(--ux-border);border-radius:var(--ui-radius-control);background:var(--ux-surface);color:var(--ux-ink);padding:8px 10px;font:inherit}
#page[data-page="inventory"] .inventory-category-list-paste textarea{resize:vertical;min-height:84px}
#page[data-page="inventory"] .inventory-category-list-picker-actions,#page[data-page="inventory"] .inventory-category-list-toggle-actions{display:flex;gap:var(--ui-gap);flex-wrap:wrap}
#page[data-page="inventory"] .inventory-category-list-meta{display:flex;gap:10px;align-items:center;flex-wrap:wrap;color:var(--ux-ink-muted);font-size:12px}
#page[data-page="inventory"] .inventory-category-list-meta small{margin-inline-start:auto}
#page[data-page="inventory"] .inventory-category-list-warning{color:var(--ux-danger);font-weight:700}
#page[data-page="inventory"] .inventory-category-list-toggle-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:6px;max-height:240px;overflow:auto;padding:2px}
#page[data-page="inventory"] .inventory-category-list-toggle{display:flex;gap:8px;align-items:flex-start;padding:8px 9px;border:1px solid var(--ux-border-subtle,var(--ux-border));border-radius:var(--ui-radius-control);background:var(--ux-surface);cursor:pointer}
#page[data-page="inventory"] .inventory-category-list-toggle input{margin-top:3px}
#page[data-page="inventory"] .inventory-category-list-toggle span{display:grid;gap:2px;min-width:0}
#page[data-page="inventory"] .inventory-category-list-toggle small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ux-ink-muted)}
#page[data-page="inventory"] .inventory-category-list-toggle em,#page[data-page="inventory"] .inventory-category-list-member-chip em{font-style:normal;font-size:11px;font-weight:700;color:var(--ux-danger)}
#page[data-page="inventory"] .inventory-category-list-toggle.invalid{border-color:color-mix(in srgb,var(--ux-danger) 32%,var(--ux-border));background:color-mix(in srgb,var(--ux-danger) 5%,var(--ux-surface))}
#page[data-page="inventory"] .inventory-category-list-hint,#page[data-page="inventory"] .inventory-category-list-empty{margin:0;color:var(--ux-ink-muted);font-size:12px}
#page[data-page="inventory"] .inventory-category-list-empty{display:grid;gap:8px;justify-items:start}
.inventory-category-list-modal{display:grid;gap:16px;min-width:0}
.inventory-category-list-modal-head{margin-bottom:0}
.inventory-category-list-editor-toolbar{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(240px,1.2fr);gap:12px}
.inventory-category-list-paste{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end;padding:14px;border-radius:var(--ui-radius-card);background:var(--ux-surface-muted)}
.inventory-category-list-paste label{display:grid;gap:6px}
.inventory-category-list-paste small,.inventory-category-list-members-editor header p,.inventory-category-list-catalog header p{margin:0;color:var(--ux-ink-muted);font-size:12px}
.inventory-category-list-members-editor,.inventory-category-list-catalog{display:grid;gap:10px}
.inventory-category-list-members-editor>header,.inventory-category-list-catalog>header{display:flex;justify-content:space-between;gap:12px;align-items:end}
.inventory-category-list-members-editor h3,.inventory-category-list-catalog h3{margin:0;font-size:14px}
.inventory-category-list-member-chips{display:flex;flex-wrap:wrap;gap:7px;min-height:38px}
.inventory-category-list-member-chip{display:inline-grid;grid-template-columns:auto minmax(0,1fr) auto;gap:6px;align-items:center;max-width:280px;padding:6px 7px 6px 10px;border:1px solid var(--ux-border-subtle,var(--ux-border));border-radius:999px;background:var(--ux-surface)}
.inventory-category-list-member-chip small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ux-ink-muted)}
.inventory-category-list-member-chip.invalid{border-color:color-mix(in srgb,var(--ux-danger) 35%,var(--ux-border))}
.inventory-category-list-member-chip button{border:0;background:transparent;color:var(--ux-ink-muted);font:inherit;font-size:16px;line-height:1;cursor:pointer;padding:0 2px}
.inventory-category-list-catalog>header .ui-search{min-width:min(300px,45vw)}
.inventory-category-list-catalog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:6px;max-height:300px;overflow:auto;padding:2px}
.inventory-category-list-catalog-row{display:flex;gap:8px;align-items:flex-start;padding:8px 9px;border:1px solid var(--ux-border-subtle,var(--ux-border));border-radius:var(--ui-radius-control);cursor:pointer}
.inventory-category-list-catalog-row.selected{border-color:var(--ux-accent);background:color-mix(in srgb,var(--ux-accent) 6%,var(--ux-surface))}
.inventory-category-list-catalog-row input{margin-top:3px}
.inventory-category-list-catalog-row span{display:grid;gap:2px;min-width:0}
.inventory-category-list-catalog-row small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ux-ink-muted)}
.inventory-category-list-actions{display:flex!important;align-items:center;gap:8px}
.inventory-category-list-action-spacer{flex:1}
@media(max-width:760px){
  #page[data-page="inventory"] .inventory-category-list-picker{grid-template-columns:1fr}
  #page[data-page="inventory"] .inventory-category-list-meta small{margin-inline-start:0;width:100%}
  #page[data-page="inventory"] .inventory-category-list-toggle-grid{grid-template-columns:1fr;max-height:44vh}
  .inventory-category-list-editor-toolbar,.inventory-category-list-paste{grid-template-columns:1fr}
  .inventory-category-list-members-editor>header,.inventory-category-list-catalog>header{align-items:stretch;flex-direction:column}
  .inventory-category-list-catalog>header .ui-search{min-width:0;width:100%}
  .inventory-category-list-catalog-grid{grid-template-columns:1fr;max-height:38vh}
  .inventory-category-list-member-chip{max-width:100%}
  .inventory-category-list-actions{flex-wrap:wrap}
  .inventory-category-list-action-spacer{display:none}
}

/* 34.120.227 — restore desktop M3 items visibility under the 226 Display contract.
   34.120.207 intentionally hid the desktop column before Display controls existed.
   The column now exists only when enabled, so CSS must no longer suppress it. */
@media(min-width:761px){
  #page[data-page="inventory"] .inventory-v22-table th.inventory-items-col,
  #page[data-page="inventory"] .inventory-v22-table td[data-column="items"]{display:table-cell!important}
}
/* 34.120.234 — Order Overview current inventory alerts for categories on the selected order. */
.orders-inventory-alerts{display:grid;gap:8px}.orders-inventory-alerts>header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.orders-inventory-alerts>header h3,.orders-inventory-alerts>header p{margin:0}.orders-inventory-alerts>header p{margin-top:2px;color:var(--ux-ink-muted);font-size:9px;line-height:1.35}.orders-inventory-alerts>header>strong{display:grid;place-items:center;min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:var(--ux-warning-soft);color:var(--ux-warning);font-size:9px;font-weight:750}.orders-inventory-alert-list{display:grid;gap:5px}.orders-inventory-alert-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(92px,.8fr);align-items:center;gap:8px;min-height:48px;padding:7px 8px;border:1px solid var(--ux-border);border-radius:var(--radius-sm);background:var(--ux-surface)}.orders-inventory-alert-row[data-inventory-state="missing"]{border-color:color-mix(in srgb,var(--ux-danger) 28%,var(--ux-border));background:color-mix(in srgb,var(--ux-danger-soft) 38%,var(--ux-surface))}.orders-inventory-alert-row[data-inventory-state="low"]{border-color:color-mix(in srgb,var(--ux-warning) 28%,var(--ux-border));background:color-mix(in srgb,var(--ux-warning-soft) 36%,var(--ux-surface))}.orders-inventory-alert-category{display:grid;gap:1px;min-width:0}.orders-inventory-alert-category>strong{font-size:13px;line-height:1.1}.orders-inventory-alert-category>small{overflow:hidden;color:var(--ux-ink-muted);font-size:8.5px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.orders-inventory-alert-badge{display:inline-flex;align-items:center;justify-content:center;min-height:20px;padding:2px 6px;border-radius:999px;font-size:8px;font-weight:750;white-space:nowrap}.orders-inventory-alert-row[data-inventory-state="missing"] .orders-inventory-alert-badge{background:var(--ux-danger-soft);color:var(--ux-danger)}.orders-inventory-alert-row[data-inventory-state="low"] .orders-inventory-alert-badge{background:var(--ux-warning-soft);color:var(--ux-warning)}.orders-inventory-alert-qty{display:grid;gap:1px;text-align:end}.orders-inventory-alert-qty>strong{font-size:9.5px;font-variant-numeric:tabular-nums}.orders-inventory-alert-qty>small{color:var(--ux-ink-muted);font-size:8px;line-height:1.25}.orders-inventory-alert-state{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:center;gap:7px;min-height:38px;padding:7px 8px;border:1px solid var(--ux-border);border-radius:var(--radius-sm);background:var(--ux-surface-muted);color:var(--ux-ink-muted);font-size:9px;font-weight:650}.orders-inventory-alert-state .app-icon{width:16px;height:16px}.orders-inventory-alerts.is-clear .orders-inventory-alert-state{border-color:color-mix(in srgb,var(--ux-success) 24%,var(--ux-border));background:color-mix(in srgb,var(--ux-success-soft) 34%,var(--ux-surface));color:var(--ux-success)}.orders-inventory-alerts.is-error .orders-inventory-alert-state{border-color:color-mix(in srgb,var(--ux-danger) 24%,var(--ux-border));background:color-mix(in srgb,var(--ux-danger-soft) 28%,var(--ux-surface));color:var(--ux-danger)}
@media(max-width:760px){.orders-inventory-alert-row{grid-template-columns:minmax(0,1fr) auto;gap:5px 7px}.orders-inventory-alert-qty{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:start}.orders-inventory-alert-category>strong{font-size:14px}}

/* 34.120.245 — post-normalization mobile structural repairs.
   Shared responsive contracts only: mobile facet search, page-action overflow,
   and explicit bounded scroll roots. No touch-target cleanup in this build. */
.page-action-mobile-only,.page-facet-mobile-search,.page-action-overflow-toggle{display:none}
@media(min-width:761px){
  .page-action-overflow{display:contents}
  .page-action-overflow>.page-action-overflow-toggle{display:none!important}
  .page-action-overflow>.page-action-overflow-menu{display:contents!important}
}
@media(max-width:760px){
  .page-action-mobile-only{display:inline-flex}
  .page-facet-mobile-search{
    display:flex;
    align-items:center;
    gap:var(--ui-gap);
    height:var(--ui-touch-target);
    min-height:var(--ui-touch-target);
    margin:var(--mobile-page-padding) var(--mobile-page-padding) 0;
    padding-inline:var(--ui-control-pad-x);
    border:1px solid var(--ux-border);
    border-radius:var(--ui-radius-search);
    background:var(--ux-surface)
  }
  .page-facet-mobile-search .app-icon{flex:0 0 auto;width:16px;height:16px;color:var(--ux-ink-muted)}
  .page-facet-mobile-search input{
    width:100%;min-width:0;height:calc(var(--ui-touch-target) - 2px);min-height:calc(var(--ui-touch-target) - 2px);
    padding:0;border:0;outline:0;background:transparent
  }

  .page-action-overflow{position:relative;display:block;flex:0 0 auto;width:var(--ui-touch-target);height:var(--ui-touch-target)}
  .page-action-overflow>summary{list-style:none}
  .page-action-overflow>summary::-webkit-details-marker{display:none}
  .page-action-overflow>.page-action-overflow-toggle{
    display:inline-flex!important;width:var(--ui-touch-target);min-width:var(--ui-touch-target);
    height:var(--ui-touch-target);min-height:var(--ui-touch-target);padding:0;align-items:center;justify-content:center
  }
  .page-action-overflow>.page-action-overflow-menu{
    display:none;position:fixed;z-index:calc(var(--z-topbar) + 8);
    inset-block-start:calc(var(--topbar-height) + var(--mobile-panel-gap));inset-inline-end:var(--mobile-page-padding);
    width:min(250px,calc(100vw - var(--mobile-page-padding) - var(--mobile-page-padding)));padding:var(--mobile-panel-gap);
    border:1px solid var(--ux-border);border-radius:var(--ui-radius-search);
    background:var(--ux-surface);box-shadow:var(--ux-shadow-float)
  }
  .page-action-overflow[open]>.page-action-overflow-menu{display:grid;gap:var(--ui-gap-tight)}
  .topbar-page-actions .responsive-page-actions .page-action-overflow-menu .button{
    width:100%!important;min-width:0!important;height:auto!important;min-height:var(--ui-touch-target);
    padding:var(--ui-gap) var(--ui-control-pad-x)!important;justify-content:flex-start;gap:var(--ui-gap);text-align:start
  }
  .topbar-page-actions .responsive-page-actions .page-action-overflow-menu .button span{display:inline!important;max-width:none;overflow:visible;text-overflow:clip;white-space:normal}

  /* Delivery Groups owns the bounded workspace below its fixed shell header. */
  body[data-route="delivery-groups"] .shell-main{
    height:100dvh;min-height:0;display:grid;grid-template-rows:var(--topbar-height) minmax(0,1fr);overflow:hidden
  }
  body[data-route="delivery-groups"] .main-content{height:100%;min-height:0;padding:0;overflow:hidden}
  body[data-route="delivery-groups"] #page{
    height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);padding:var(--space-1) var(--mobile-panel-gap) 0;overflow:hidden
  }
  body[data-route="delivery-groups"] .delivery-groups-grid{
    min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;
    padding:0 0 var(--space-4);scrollbar-gutter:auto
  }

  /* Warehouse keeps two stable direct 44px actions; route actions live in More. */
  body[data-route="warehouse-reference"] .topbar-page-actions{flex:0 1 auto;min-width:0;max-width:calc(var(--ui-touch-target) + var(--ui-touch-target) + var(--ui-gap-tight))}
  body[data-route="warehouse-reference"] .topbar-page-actions .warehouse-toolbar-actions{min-width:0;max-width:100%;gap:var(--ui-gap-tight)}

  /* Store filter shell is an explicit auto row above the independently scrollable catalogue. */
  body[data-route="store-management"] #page{grid-template-rows:auto auto minmax(0,1fr)}
}

/* 34.120.246 — mobile interaction corrections.
   Search fields use the shared 16px iOS-safe font contract; Warehouse topbar overflow stays visible
   so the shared More menu can render outside the 52px header without clipping. */
@media(max-width:760px){
  input[type="search"]{font-size:var(--mobile-search-font-size)!important}
}

/* 34.120.247 — mobile touch-target consistency; geometry reuses the canonical global touch target. */
@media(max-width:760px){
  .modal-close{width:var(--ui-touch-target);height:var(--ui-touch-target);min-width:var(--ui-touch-target);min-height:var(--ui-touch-target);inset-block-start:var(--ui-gap-tight);inset-inline-end:var(--ui-gap-tight);border-radius:var(--ui-radius-control)}
  .modal-heading{padding-inline-end:calc(var(--ui-touch-target) + var(--ui-gap))}
  .m3-location-filter-row .button{height:var(--ui-touch-target);min-height:var(--ui-touch-target)}
  .m3-authority-filter-row .button{height:var(--ui-touch-target);min-height:var(--ui-touch-target)}
}

/* Unified RC3: collection-aware dispatch and route messages. */
.orders-dispatch-comparison{display:grid;gap:10px}
.orders-dispatch-comparison article{padding:8px 0;border-bottom:1px solid var(--ux-border)}
.orders-dispatch-comparison article:last-child{border-bottom:0}
.orders-dispatch-comparison header{display:flex;justify-content:space-between;gap:8px;margin-bottom:5px}
.orders-dispatch-comparison header strong{font-size:12px}
.orders-dispatch-comparison header>span,.dispatch-estimate-note{font-size:11px;color:var(--ux-ink-muted)}
.dispatch-quantity-row{display:grid;grid-template-columns:minmax(65px,.9fr) minmax(80px,1.1fr) auto;align-items:baseline;gap:6px;padding:5px 0;font-size:11px;color:var(--ux-ink-muted)}
.dispatch-quantity-row>b{text-align:end;white-space:nowrap;font-size:12px}
.dispatch-quantity-row small{font-size:10px;font-weight:500}
.dispatch-quantity-row.is-primary{color:var(--ux-ink);font-weight:650}
.dispatch-estimate-note{line-height:1.5;margin:6px 0}
.approval-collection-progress{padding:8px 12px;margin:0;background:var(--ux-surface-subtle);border-radius:7px;min-width:0}
.approval-collection-progress>div{display:flex;align-items:baseline;gap:12px;font-size:12px;margin-bottom:5px;flex-wrap:wrap}
.approval-collection-progress>div>span{margin-inline-start:auto}
.approval-collection-progress>small{display:block;color:var(--ux-ink-muted);font-size:10.5px;margin-top:4px}
.approval-collection-progress progress{display:block;width:100%;height:5px}
.approval-gate-header-summary-split>span>small{white-space:normal;max-width:110px;text-align:end}
.driver-paperwork-modes{align-self:start;max-width:100%}
.driver-paperwork-group{min-width:0;padding:14px 0;border-top:1px solid var(--ux-border);display:grid;gap:10px}
.driver-paperwork-group>header{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.driver-paperwork-group h4{margin:0;font-size:14px;overflow-wrap:anywhere}
.driver-paperwork-route{margin:8px 0 2px;font-size:12px;color:var(--ux-ink-muted);font-weight:650}
.driver-paperwork-store>small.driver-paperwork-comparison{grid-column:1 / -1;font-size:10.5px;white-space:normal;line-height:1.5}
.driver-paperwork-group .driver-paperwork-summary{border:0;border-radius:0;background:none;padding:0;gap:14px}
.driver-paperwork-group .driver-paperwork-summary>*{border:0;background:none;padding:0;font-size:12px}
.driver-paperwork-warning{flex-wrap:wrap}
.driver-paperwork-warning>span{flex:1;min-width:130px}
.driver-paperwork-store>div{flex-wrap:wrap}
.driver-paperwork-store strong{white-space:normal;overflow:visible;text-overflow:clip}
@media(max-width:760px){
  .approval-collection-progress{padding:6px 8px}
  .approval-collection-progress>div{gap:5px;font-size:11px}
  .approval-collection-progress>small{font-size:10px}
  .approval-mobile-footer-summary{flex-wrap:wrap}
  .driver-paperwork-group>header .button{min-height:40px}
  .driver-paperwork-store>small.driver-paperwork-comparison{grid-row:3}
}

#page[data-page="approval"]:has(>.approval-collection-progress){grid-template-rows:auto auto auto minmax(0,1fr) auto}

@media(max-width:760px){.orders-mobile-detail .orders-detail-head:has(.orders-mobile-review){grid-template-columns:38px minmax(0,1fr) auto;gap:5px}.orders-mobile-review{min-height:38px;padding:5px 8px}.orders-mobile-review span{font-size:11px}}

/* RC4: shared administrator dispatch-message templates. */
#page[data-page="admin-settings"]{display:block;overflow:auto;padding-bottom:28px}
.admin-settings-intro{margin-bottom:10px;padding:14px 16px}
.admin-settings-intro>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.admin-settings-intro h2,.admin-settings-template-card h2,.admin-settings-parameters h2{margin:0;color:var(--ux-ink);font-size:16px;line-height:1.25}
.admin-settings-intro p,.admin-settings-template-card p,.admin-settings-parameters p{margin:5px 0 0;color:var(--ux-ink-muted);font-size:12px;line-height:1.5}
.admin-settings-template-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin-bottom:12px}
.admin-settings-template-card{padding:16px;min-width:0;display:grid;gap:13px;align-content:start}
.admin-settings-template-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;min-width:0}
.admin-settings-template-card>header>div{min-width:0}
.admin-settings-template-card>header .button{flex:0 0 auto}
.admin-settings-editor{display:grid;gap:6px;min-width:0}
.admin-settings-editor>span,.admin-settings-preview-wrap>strong{font-size:11px;color:var(--ux-ink-muted);font-weight:700}
.admin-settings-editor textarea{width:100%;min-height:230px;resize:vertical;box-sizing:border-box;line-height:1.55;font-size:13px;font-family:inherit;white-space:pre-wrap}
.admin-settings-template-error{display:block;margin-top:2px}
.admin-settings-preview-wrap{display:grid;gap:7px}
.admin-settings-preview{min-height:175px;padding:14px;border:1px solid var(--ux-border);border-radius:8px;background:var(--ux-surface);font-size:12px;line-height:1.6;color:var(--ux-ink);overflow-wrap:anywhere}
.admin-settings-preview.is-invalid{direction:auto;color:var(--ux-danger);display:grid;place-items:center;text-align:center}
.admin-settings-parameters{padding:16px}
.admin-settings-parameters>header{margin-bottom:12px}
.admin-settings-parameter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.admin-settings-parameter{appearance:none;border:1px solid var(--ux-border);border-radius:8px;background:var(--ux-surface);padding:9px 11px;text-align:start;color:var(--ux-ink);cursor:pointer;min-width:0;display:grid;gap:3px}
.admin-settings-parameter:hover,.admin-settings-parameter:focus-visible{border-color:var(--ux-accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--ux-accent) 13%,transparent);outline:0}
.admin-settings-parameter code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px;font-weight:700;color:var(--ux-ink);overflow-wrap:anywhere}
.admin-settings-parameter small{font-size:10px;line-height:1.35;color:var(--ux-ink-muted)}
@media(max-width:1100px){.admin-settings-template-grid{grid-template-columns:1fr}.admin-settings-parameter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
  #page[data-page="admin-settings"]{padding-bottom:80px}
  #page[data-page="admin-settings"] .workspace-header{align-items:flex-start}
  #page[data-page="admin-settings"] .workspace-title-row{align-items:flex-start;flex-wrap:wrap;gap:5px}
  #page[data-page="admin-settings"] .workspace-title-row h1{font-size:20px}
  #page[data-page="admin-settings"] .workspace-meta{max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #page[data-page="admin-settings"] .workspace-actions{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px}
  #page[data-page="admin-settings"] .workspace-actions .button{width:100%;justify-content:center}
  .admin-settings-intro{padding:14px 12px}.admin-settings-intro>header{display:grid;gap:10px}
  .admin-settings-intro .status-badge{justify-self:end}
  .admin-settings-template-grid{grid-template-columns:1fr;gap:10px}
  .admin-settings-template-card{padding:13px 12px;gap:11px}
  .admin-settings-template-card>header{display:grid;gap:9px}.admin-settings-template-card>header .button{width:100%;justify-content:center}
  .admin-settings-editor textarea{min-height:310px;font-size:16px;line-height:1.45}
  .admin-settings-preview{min-height:180px;padding:12px;font-size:12px}
  .admin-settings-parameters{padding:13px 12px}.admin-settings-parameter-grid{grid-template-columns:1fr}
}
.admin-settings-preview{white-space:pre-wrap}

/* 34.120.249 RC7 — M3 import correction links */
.m3-import-problem-location{display:flex;align-items:center;gap:8px;min-width:0}
.m3-import-problem-location>strong{line-height:1.2;min-width:52px}
.m3-import-problem-location-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.m3-import-problem-location-actions .button{min-height:26px;padding:3px 7px;font-size:8.5px;line-height:1.1;white-space:nowrap}
@media(max-width:760px){
  .m3-import-problem-location{display:grid;align-items:stretch;gap:7px}
  .m3-import-problem-location>strong{min-width:0}
  .m3-import-problem-location-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:6px}
  .m3-import-problem-location-actions .button{width:100%;min-height:34px;justify-content:center;font-size:9px}
}

/* RC8: expanded shared operational settings and Office paperwork. */
.admin-settings-operational-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}
.admin-settings-operational,.admin-settings-planning{padding:16px;min-width:0}
.admin-settings-operational>header,.admin-settings-planning>header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}
.admin-settings-operational h2,.admin-settings-planning h2{margin:0;font-size:16px;color:var(--ux-ink)}
.admin-settings-operational p,.admin-settings-planning p{margin:5px 0 0;font-size:12px;line-height:1.5;color:var(--ux-ink-muted)}
.admin-settings-operational-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin:0 0 12px}
.admin-settings-readonly-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.admin-settings-readonly-item{display:grid;gap:4px;padding:10px 12px;border:1px solid var(--ux-border);border-radius:8px;background:var(--ux-surface)}
.admin-settings-readonly-item span{font-size:10px;color:var(--ux-ink-muted)}
.admin-settings-readonly-item strong{font-size:12px;color:var(--ux-ink)}
.driver-paperwork-office>header>div{min-width:0}.driver-paperwork-office>header p{margin:3px 0 0;font-size:11px;color:var(--ux-ink-muted);line-height:1.4}
@media(max-width:1100px){.admin-settings-operational-grid{grid-template-columns:1fr}.admin-settings-readonly-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.admin-settings-operational,.admin-settings-planning{padding:13px 12px}.admin-settings-readonly-grid{grid-template-columns:1fr}.admin-settings-operational-actions{display:grid;grid-template-columns:1fr 1fr}.admin-settings-operational-actions>[data-operational-unsaved],.admin-settings-operational-actions>.ui-field-error{grid-column:1/-1}.admin-settings-operational-actions .button{width:100%;justify-content:center}}

/* Data Management / Data Health — task-oriented source + quality audit. */
.data-management-page{display:grid;gap:18px;max-width:1480px;margin-inline:auto;width:100%}
.data-management-page>[data-data-health-host]{display:grid;gap:18px}
.data-sources-section{display:grid;gap:10px}
.data-management-section-head{align-items:flex-start}
.data-management-section-head small{display:block;margin-top:5px;color:var(--ux-ink-faint);font-size:9.5px;line-height:1.4}
.data-source-grid{align-items:stretch}
.data-source-card{display:grid;grid-template-rows:auto 1fr auto;gap:12px;min-width:0;padding:15px}
.data-source-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;min-width:0}
.data-source-title{display:flex;align-items:flex-start;gap:9px;min-width:0}
.data-source-title>.app-icon{width:19px;height:19px;flex:0 0 auto;margin-top:1px;color:var(--ux-accent)}
.data-source-title h3{margin:0;color:var(--ux-ink);font-size:13px}
.data-source-title p{margin:3px 0 0;color:var(--ux-ink-muted);font-size:10px;line-height:1.35;overflow-wrap:anywhere}
.data-source-facts{display:grid;gap:0;border-top:1px solid var(--ux-border)}
.data-source-fact{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:10px;padding:7px 0;border-bottom:1px solid var(--ux-border);align-items:start}
.data-source-fact span{color:var(--ux-ink-muted);font-size:9.5px}
.data-source-fact strong{color:var(--ux-ink);font-size:10px;font-weight:650;text-align:end;overflow-wrap:anywhere}
.data-source-actions{display:flex;align-items:center;gap:8px;padding-top:1px}
.data-source-actions .button{min-height:34px}
.data-quality-section{display:grid;gap:14px;padding:16px;min-width:0}
.data-quality-head{margin:0}
.data-quality-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.data-quality-summary>div{display:grid;gap:4px;padding:10px 12px;border:1px solid var(--ux-border);border-radius:8px;background:var(--ux-surface-subtle)}
.data-quality-summary span{color:var(--ux-ink-muted);font-size:9.5px}
.data-quality-summary strong{color:var(--ux-ink);font-size:17px;font-variant-numeric:tabular-nums}
.data-quality-group{border:1px solid var(--ux-border);border-radius:10px;background:var(--ux-surface);overflow:hidden}
.data-quality-group>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 13px;cursor:pointer;list-style:none}
.data-quality-group>summary::-webkit-details-marker{display:none}.data-quality-group>summary::marker{content:''}
.data-quality-group>summary:focus-visible{outline:3px solid #447bc4;outline-offset:-3px}
.data-quality-group-title{display:grid;gap:3px;min-width:0}
.data-quality-group-title strong{font-size:11.5px;color:var(--ux-ink)}
.data-quality-group-title small{font-size:9.5px;color:var(--ux-ink-muted);font-weight:500}
.data-quality-chevron{width:17px;height:17px;flex:0 0 auto;color:var(--ux-ink-muted);transition:transform .15s ease}
.data-quality-group[open]>.data-quality-group-body{border-top:1px solid var(--ux-border)}
.data-quality-group[open]>summary .data-quality-chevron{transform:rotate(180deg)}
.data-quality-group-body{display:grid;gap:10px;padding:12px}
.data-quality-resolution{margin:0;padding:9px 10px;border-radius:7px;background:var(--ux-info-soft);color:var(--ux-ink-muted);font-size:10px;line-height:1.5}
.data-quality-table-wrap{min-width:0;overflow-x:auto}
.data-quality-table{width:100%;min-width:760px}
.data-quality-table th:nth-child(1){width:112px}.data-quality-table th:nth-child(2){width:116px}.data-quality-table th:nth-child(4){width:84px}.data-quality-table th:nth-child(5){width:205px}
.data-quality-table td{vertical-align:top}
.data-category-chips{display:flex;align-items:center;gap:5px;flex-wrap:wrap;min-width:0}
.data-category-chips .catalog-chip{min-height:24px;font-size:9px}
.data-health-carton-count strong{font-variant-numeric:tabular-nums}
.data-quality-row-actions{display:flex;gap:5px;flex-wrap:wrap}
.data-quality-row-actions .button{min-height:30px;padding-inline:8px;font-size:9px}
.data-quality-clear{display:flex;align-items:center;gap:8px;padding:12px;border:1px solid #b8d8c5;border-radius:9px;background:var(--ux-success-soft);color:var(--ux-success);font-size:10.5px;font-weight:650}
.data-quality-clear .app-icon{width:18px;height:18px}
.data-publication-section{display:grid;gap:12px;scroll-margin-top:calc(var(--topbar-height) + 12px)}
.data-publication-section[hidden]{display:none!important}
.data-publication-head{margin-bottom:0}
.data-publication-section>[data-carton-data-host]{min-width:0}
@media(max-width:1100px){.data-source-grid.cols-3{grid-template-columns:1fr 1fr}.data-source-card:last-child{grid-column:1/-1}.data-quality-table{min-width:700px}}
@media(max-width:760px){
  .data-source-grid.cols-3{grid-template-columns:1fr}.data-source-card:last-child{grid-column:auto}.data-source-card{padding:13px 12px}.data-source-head{gap:8px}.data-source-actions .button{width:100%;min-height:44px;justify-content:center}
  .data-quality-section{padding:13px 12px}.data-quality-summary{grid-template-columns:1fr 1fr}.data-quality-summary>div:first-child{grid-column:1/-1}.data-quality-group>summary{padding:12px}.data-quality-group-body{padding:10px}
  .data-quality-table{min-width:0;border:0}.data-quality-table thead{display:none}.data-quality-table tbody,.data-quality-table tr,.data-quality-table td{display:block;width:100%}.data-quality-table tr{padding:10px 0;border-bottom:1px solid var(--ux-border)}.data-quality-table tr:last-child{border-bottom:0}.data-quality-table td{display:grid;grid-template-columns:92px minmax(0,1fr);gap:8px;padding:4px 0;border:0;text-align:start!important}.data-quality-table td::before{content:attr(data-label);color:var(--ux-ink-faint);font-size:8.5px;font-weight:750;text-transform:uppercase;letter-spacing:.035em}.data-quality-row-actions{justify-content:flex-start}.data-quality-row-actions .button{min-height:36px}.data-category-chips{align-items:flex-start}.data-publication-head{align-items:flex-start;gap:8px}.data-publication-head>.button{min-height:40px}
}


body[data-route^="tools"] .main-content{max-width:1460px}
body[data-route^="tools"] .workspace-description{display:block!important;max-width:760px;margin-top:3px;color:var(--ux-ink-muted);font-size:11px;line-height:1.4}
body[data-route^="tools/"] #page>.panel{max-width:1180px;margin-inline:auto}
body[data-route^="tools/pallet-arrival"] #page>.panel{max-width:1280px}
body[data-route^="tools"] .panel{box-shadow:0 1px 2px rgba(15,35,55,.025)}

.tools-launcher{width:100%;min-width:0}
.tools-launch-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:12px;align-items:start}
.tools-launch-group{grid-column:span 6;min-width:0;padding:14px;border:1px solid var(--ux-border);border-radius:var(--radius-lg);background:var(--ux-surface)}
.tools-launch-group.is-primary{grid-column:span 8}
.tools-launch-group:nth-child(2){grid-column:span 4}
.tools-launch-group-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 2px 10px}
.tools-launch-group-head h2{margin:0;color:var(--ux-ink);font-size:12px;font-weight:800;letter-spacing:.01em}
.tools-launch-items{display:grid;grid-template-columns:1fr;gap:8px}
.tools-launch-group.is-primary .tools-launch-items{grid-template-columns:repeat(3,minmax(0,1fr))}
.tools-launch-card{display:grid;grid-template-columns:40px minmax(0,1fr) 22px;align-items:center;gap:10px;min-width:0;min-height:78px;padding:11px 12px;border:1px solid var(--ux-border);border-radius:10px;background:var(--ux-surface-subtle);color:var(--ux-ink);text-decoration:none;transition:border-color .14s ease,background .14s ease,transform .14s ease,box-shadow .14s ease}
.tools-launch-card:hover,.tools-launch-card:focus-visible{border-color:var(--ux-border-strong);background:var(--ux-surface);box-shadow:0 5px 16px rgba(21,44,68,.07);transform:translateY(-1px);outline:none}
.tools-launch-icon{display:grid;place-items:center;width:40px;height:40px;border:1px solid color-mix(in srgb,var(--ux-accent) 16%,var(--ux-border));border-radius:10px;background:color-mix(in srgb,var(--ux-accent) 6%,var(--ux-surface));color:var(--ux-accent)}
.tools-launch-icon .app-icon{width:20px;height:20px}
.tools-launch-copy{display:grid;gap:3px;min-width:0}
.tools-launch-copy strong{overflow:hidden;color:var(--ux-ink);font-size:12px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}
.tools-launch-copy small{display:-webkit-box;overflow:hidden;color:var(--ux-ink-muted);font-size:10px;line-height:1.35;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.tools-launch-open{display:grid;place-items:center;color:var(--ux-ink-faint)}
.tools-launch-open .app-icon{width:16px;height:16px}
.tools-print-shortcut{display:inline-flex;align-items:center;gap:6px;margin:10px 2px 0;color:var(--ux-accent);font-size:10px;font-weight:750;text-decoration:none}
.tools-print-shortcut .app-icon{width:14px;height:14px}
.tools-print-shortcut:hover{text-decoration:underline}

.tools-primary-panel{border-color:color-mix(in srgb,var(--ux-accent) 16%,var(--ux-border))!important}
.tools-reference-status{display:flex;align-items:center;gap:8px;min-height:30px;margin-top:8px;padding:7px 9px;border:1px solid var(--ux-border);border-radius:8px;background:var(--ux-surface-subtle);color:var(--ux-ink-muted);font-size:10px;font-weight:650}
.tools-reference-status .status-spinner{width:14px;height:14px;flex:0 0 14px}
.tools-reference-status .status-spinner[hidden]{display:none!important}
.tools-reference-progress{width:100%;height:5px;margin:6px 0 0}

@media(min-width:761px) and (max-width:1080px){
  .tools-launch-group.is-primary{grid-column:1/-1}
  .tools-launch-group:nth-child(n+2){grid-column:span 6}
}

@media(max-width:760px){
  body[data-route^="tools"] .workspace-header{height:auto!important;min-height:54px!important;max-height:none!important;padding:7px 2px 8px!important;overflow:visible!important;align-items:flex-start!important}
  body[data-route^="tools"] .workspace-heading{min-width:0;padding-top:2px}
  body[data-route^="tools"] .workspace-description{display:none!important}
  body[data-route^="tools/"] .workspace-actions{flex:0 0 auto}
  body[data-route^="tools/"] .workspace-actions .button{width:44px!important;min-width:44px!important;height:44px!important;padding:0!important;justify-content:center!important}
  body[data-route^="tools/"] .workspace-actions .button>span:not(.app-icon){display:none!important}
  body[data-route^="tools/"] #page>.panel{width:100%;max-width:none;margin-bottom:10px}
  body[data-route^="tools"] .panel{padding:13px!important;border-radius:10px!important}
  .tools-launch-grid{grid-template-columns:1fr;gap:9px}
  .tools-launch-group,.tools-launch-group.is-primary,.tools-launch-group:nth-child(2),.tools-launch-group:nth-child(n+2){grid-column:1/-1;padding:11px;border-radius:10px}
  .tools-launch-group-head{padding-bottom:7px}
  .tools-launch-group.is-primary .tools-launch-items,.tools-launch-items{grid-template-columns:1fr;gap:6px}
  .tools-launch-card{grid-template-columns:36px minmax(0,1fr) 20px;min-height:64px;padding:8px 9px;gap:9px;border-radius:9px}
  .tools-launch-icon{width:36px;height:36px;border-radius:9px}
  .tools-launch-copy strong{font-size:12px}
  .tools-launch-copy small{font-size:9.5px;-webkit-line-clamp:1}
  .tools-print-shortcut{min-height:38px;margin-top:6px}
  .tools-reference-status{font-size:9.5px}
}


.tools-carton-result{overflow:hidden;border-color:color-mix(in srgb,var(--ux-accent) 20%,var(--ux-border))!important}
.tools-carton-result-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-bottom:16px;border-bottom:1px solid var(--ux-border)}
.tools-carton-category-block{min-width:0}
.tools-carton-result-kicker{display:block;color:var(--ux-ink-muted);font-size:11px;font-weight:800;letter-spacing:.045em;text-transform:uppercase}
.tools-carton-result-category{display:block;margin-top:2px;font-size:clamp(54px,7vw,86px);line-height:.95;font-weight:900;letter-spacing:-.045em;color:var(--ux-ink)}
.tools-carton-result-note{max-width:760px;margin:8px 0 0;color:var(--ux-ink-muted);font-size:11px;line-height:1.45}
.tools-carton-warehouse-badge{display:grid;gap:1px;min-width:116px;padding:10px 13px;border:1px solid var(--ux-border);border-radius:10px;background:var(--ux-surface-subtle);text-align:center}
.tools-carton-warehouse-badge span{color:var(--ux-ink-muted);font-size:10px;font-weight:750}
.tools-carton-warehouse-badge strong{font-size:25px;line-height:1;font-weight:900}
.tools-carton-identity-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(180px,.6fr);gap:10px;margin-top:14px}
.tools-carton-identity{min-width:0;padding:11px 13px;border:1px solid var(--ux-border);border-radius:10px;background:var(--ux-surface-subtle)}
.tools-carton-identity>span{display:block;margin-bottom:3px;color:var(--ux-ink-muted);font-size:10px;font-weight:750}
.tools-carton-identity>strong{display:block;overflow-wrap:anywhere;line-height:1.1;font-size:22px;font-weight:850}
.tools-carton-identity.is-barcode>strong{font-size:clamp(24px,3vw,34px);letter-spacing:.015em}
.tools-carton-identity.is-location>strong{font-size:clamp(24px,3vw,32px)}
.tools-carton-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}
.tools-carton-detail-grid>.ui-setting-row{margin:0;min-width:0;border:1px solid var(--ux-border);border-radius:9px;background:var(--ux-surface-subtle)}
.tools-carton-result-state{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:14px;min-height:120px}
.tools-carton-result-state>.app-icon{width:32px;height:32px;color:var(--ux-ink-muted)}
.tools-carton-result-barcode{display:block;margin:4px 0;font-size:clamp(25px,4vw,38px);line-height:1.1;font-weight:900;overflow-wrap:anywhere}
.tools-carton-result-state p{margin:4px 0 0;color:var(--ux-ink-muted);font-size:11px}

@media (max-width:760px){
  .tools-carton-result-head{gap:10px;padding-bottom:12px}
  .tools-carton-result-category{font-size:clamp(50px,20vw,70px)}
  .tools-carton-warehouse-badge{min-width:82px;padding:8px 9px}
  .tools-carton-warehouse-badge strong{font-size:21px}
  .tools-carton-identity-grid{grid-template-columns:1fr;gap:7px;margin-top:10px}
  .tools-carton-identity{padding:9px 10px}
  .tools-carton-identity.is-barcode>strong,.tools-carton-identity.is-location>strong{font-size:24px}
  .tools-carton-detail-grid{grid-template-columns:1fr;gap:6px}
  .tools-carton-result-state{min-height:100px}
}
.tools-carton-detail-grid{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
.tools-recent-scan-list{max-height:520px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--ux-border);border-radius:9px}
.tools-recent-scan-list>.ui-setting-row{margin:0;border-width:0 0 1px;border-radius:0}
.tools-recent-scan-list>.ui-setting-row:last-child{border-bottom:0}
@media (max-width:760px){.tools-recent-scan-list{max-height:none;overflow:visible;border:0}.tools-recent-scan-list>.ui-setting-row{border:1px solid var(--ux-border);border-radius:9px;margin-bottom:6px}}
.tools-carton-detail{display:grid;grid-template-rows:auto auto 1fr;align-content:start;gap:2px;min-width:0;min-height:82px;padding:11px 12px;border:1px solid var(--ux-border);border-radius:9px;background:var(--ux-surface-subtle)}
.tools-carton-detail>span{color:var(--ux-ink-muted);font-size:10px;font-weight:750}
.tools-carton-detail>small{color:var(--ux-ink-muted);font-size:9px;line-height:1.3}
.tools-carton-detail>strong{align-self:end;margin-top:5px;font-size:18px;line-height:1.05;font-weight:850}
.tools-recent-actions{margin:-2px 0 10px;justify-content:flex-end}
.tools-recent-sync-head{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}
.tools-recent-sync-head>.button{min-height:30px}
.tools-recent-scan-list>.ui-setting-row>div:first-child{display:grid;gap:2px;min-width:0}
.tools-recent-scan-list>.ui-setting-row>div:first-child>strong{font-size:14px;line-height:1.15}
.tools-recent-scan-list>.ui-setting-row>div:first-child>small{font-size:10px;line-height:1.35;color:var(--ux-ink-muted)}
@media (max-width:760px){.tools-carton-detail{min-height:0}.tools-recent-actions{justify-content:stretch}.tools-recent-actions>.button{flex:1}.tools-recent-sync-head{justify-content:flex-start}}
@media (max-width:760px){.tools-carton-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tools-carton-detail{padding:9px 10px}.tools-carton-detail>strong{font-size:17px}}


.tools-route-shell{width:100%;min-width:0}
.tools-option-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:6px}
.tools-option-tiles.is-two{grid-template-columns:repeat(2,minmax(0,1fr))}
.tools-option-tiles.is-three{grid-template-columns:repeat(3,minmax(0,1fr))}
.tools-option-tiles.is-five{grid-template-columns:repeat(5,minmax(0,1fr))}
.pa-sort-field{grid-column:1/-1}
.pa-sort-tiles .tools-option-tile{min-height:38px;padding:7px 8px}
.tools-option-tile{display:flex;align-items:center;justify-content:flex-start;gap:7px;min-width:0;min-height:46px;padding:8px 10px;border:1px solid var(--ux-border);border-radius:9px;background:var(--ux-surface-subtle);color:var(--ux-ink);font:inherit;font-size:10.5px;font-weight:750;text-align:start;cursor:pointer;transition:border-color .12s ease,background .12s ease,box-shadow .12s ease}
.tools-option-tile>.app-icon{width:17px;height:17px;flex:0 0 auto;color:var(--ux-ink-muted)}
.tools-option-tile:hover,.tools-option-tile:focus-visible{border-color:var(--ux-border-strong);background:var(--ux-surface);outline:none}
.tools-option-tile.is-selected{border-color:color-mix(in srgb,var(--ux-accent) 60%,var(--ux-border));background:color-mix(in srgb,var(--ux-accent) 8%,var(--ux-surface));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--ux-accent) 18%,transparent)}
.tools-option-tile.is-selected>.app-icon{color:var(--ux-accent)}
.tools-option-tile.is-compact{min-height:40px;padding:7px 9px}

.tools-label-workspace{display:grid;grid-template-columns:minmax(380px,440px) minmax(0,1fr);min-width:0}
.tools-label-workspace>.panel{margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important}
.tools-label-editor{border-inline-end:1px solid var(--ux-border)!important}
.tools-label-preview{min-width:0;background:var(--ux-surface-subtle)!important}
.tools-label-preview-frame{display:block;width:100%;height:610px;border:1px solid var(--ux-border);border-radius:9px;background:var(--ux-neutral-surface)}

.pa-pallet-row{grid-template-columns:30px minmax(0,1fr) auto;padding:9px 10px;border:1px solid transparent;border-radius:8px;margin:2px 0}
.pa-pallet-state{display:grid;place-items:center;width:26px;height:26px;border:1px solid var(--ux-border);border-radius:999px;background:var(--ux-surface-subtle);color:var(--ux-ink-muted)}
.pa-pallet-state>.app-icon{width:15px;height:15px}
.pa-pallet-row.is-arrived{border-color:color-mix(in srgb,var(--ux-success) 30%,var(--ux-border));background:color-mix(in srgb,var(--ux-success) 7%,var(--ux-surface))}
.pa-pallet-row.is-arrived .pa-pallet-state{border-color:color-mix(in srgb,var(--ux-success) 45%,var(--ux-border));background:color-mix(in srgb,var(--ux-success) 13%,var(--ux-surface));color:var(--ux-success)}
.pa-pallet-row.is-arrived .ui-action-copy>strong{font-weight:850}
.pa-pallet-row.is-missing{background:var(--ux-surface)}

@media(min-width:761px){body[data-route^="tools/"] #page{max-width:none!important}.tools-route-shell{max-width:1320px;margin:0 auto;border:1px solid var(--ux-border);border-radius:12px;background:var(--ux-surface);overflow:hidden;box-shadow:0 2px 10px rgba(20,40,60,.035)}.tools-carton-route{overflow:visible}.tools-route-shell>.panel,.tools-route-shell>.panel[data-pallet-arrival]{max-width:none!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important}.tools-find-route>.panel+.panel,.tools-exceptions-route>.panel+.panel,.tools-device-route>.panel+.panel{border-top:1px solid var(--ux-border)!important}.tools-carton-workstation{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(350px,.65fr);min-height:620px}.tools-carton-main{min-width:0;border-inline-end:1px solid var(--ux-border)}.tools-carton-main>.panel,.tools-carton-side>.panel{max-width:none!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important}.tools-carton-main>.panel+.panel,.tools-carton-side>.panel+.panel{border-top:1px solid var(--ux-border)!important}.tools-carton-side{min-width:0;background:color-mix(in srgb,var(--ux-surface-subtle) 48%,var(--ux-surface))}.tools-carton-side>.panel{background:transparent!important}.tools-pallet-route>.panel{padding:18px 20px!important}}

@media(max-width:760px){
  .tools-route-shell{border:0;background:transparent}
  .tools-carton-workstation{display:block}
  .tools-label-workspace{grid-template-columns:1fr;gap:10px}
  .tools-label-workspace>.panel{border:1px solid var(--ux-border)!important;border-radius:10px!important}
  .tools-label-editor{border-inline-end:1px solid var(--ux-border)!important}
  .tools-label-preview-frame{height:410px}
  .tools-option-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tools-option-tiles.is-three{grid-template-columns:repeat(3,minmax(0,1fr))}
  .tools-option-tiles.is-five{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pa-sort-tiles .tools-option-tile:first-child{grid-column:1/-1}
  .tools-option-tile{min-height:46px;padding:8px;font-size:10px}
  .pa-pallet-row{grid-template-columns:28px minmax(0,1fr);gap:8px;padding:9px 8px}
  .pa-pallet-row .ui-row-actions{grid-column:2;justify-content:flex-start;display:flex;width:100%}
  .pa-pallet-row .ui-row-actions>.button{width:auto;min-width:0;flex:1 1 auto}
}


.pa-pallet-row{grid-template-columns:minmax(0,1fr) auto;gap:6px;padding:0;overflow:hidden;transition:background .1s ease,border-color .1s ease,box-shadow .1s ease}
.pa-pallet-toggle{display:grid;grid-template-columns:30px minmax(0,1fr);gap:9px;align-items:center;width:100%;min-width:0;min-height:54px;margin:0;padding:9px 10px;border:0;background:transparent;color:inherit;font:inherit;text-align:start;cursor:pointer}
.pa-pallet-toggle:focus-visible{outline:2px solid var(--ux-accent);outline-offset:-2px;border-radius:7px}
.pa-pallet-toggle .ui-action-copy{display:grid;gap:2px;min-width:0}
.pa-pallet-toggle .ui-action-copy>strong{font-size:15px;line-height:1.08;font-weight:800;color:var(--ux-ink-strong);font-variant-numeric:tabular-nums;letter-spacing:.01em}
.pa-pallet-toggle .ui-action-copy>small{font-size:9.5px;line-height:1.3;color:var(--ux-ink-muted)}
.pa-pallet-remove{align-self:center;min-width:36px;width:36px;height:36px;min-height:36px;margin-inline-end:5px;padding:0}
.pa-pallet-row.is-arrived{box-shadow:inset 4px 0 0 color-mix(in srgb,var(--ux-success) 72%,transparent)}
[dir="rtl"] .pa-pallet-row.is-arrived{box-shadow:inset -4px 0 0 color-mix(in srgb,var(--ux-success) 72%,transparent)}
.pa-pallet-row.is-arrived .pa-pallet-toggle .ui-action-copy>strong{color:color-mix(in srgb,var(--ux-success) 68%,var(--ux-ink-strong));font-weight:900}
.pa-pallet-row.is-missing .pa-pallet-toggle:hover,.pa-pallet-row.is-missing .pa-pallet-toggle:focus-visible{background:var(--ux-surface-hover)}
.pa-pallet-row.is-arrived .pa-pallet-toggle:hover,.pa-pallet-row.is-arrived .pa-pallet-toggle:focus-visible{background:color-mix(in srgb,var(--ux-success) 10%,var(--ux-surface))}
@media(max-width:760px){
  .pa-pallet-row{grid-template-columns:minmax(0,1fr) 42px;gap:0;margin:4px 0;border-color:var(--ux-border);border-radius:10px}
  .pa-pallet-toggle{grid-template-columns:34px minmax(0,1fr);gap:10px;min-height:72px;padding:10px 8px 10px 10px}
  .pa-pallet-state{width:31px;height:31px}
  .pa-pallet-state>.app-icon{width:18px;height:18px}
  .pa-pallet-toggle .ui-action-copy>strong{font-size:28px;line-height:1;font-weight:900;letter-spacing:.012em}
  .pa-pallet-toggle .ui-action-copy>small{margin-top:4px;font-size:11px;line-height:1.25}
  .pa-pallet-remove{width:38px;min-width:38px;height:44px;min-height:44px;margin:0 2px 0 0;align-self:center}
  [dir="rtl"] .pa-pallet-remove{margin:0 0 0 2px}
}


/* RC1 Pallet Arrival — compact mobile receiving status + Missing-only fade confirmation. */
.pa-mobile-arrival-status{display:none}
.pa-pallet-row.is-fading{opacity:0;transform:translateY(-3px);transition:opacity 1.2s ease,transform 1.2s ease,background .1s ease,border-color .1s ease,box-shadow .1s ease;pointer-events:none}
@media(max-width:760px){
  .pa-mobile-arrival-status{position:sticky;top:var(--topbar-height);z-index:var(--z-sticky);display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;margin:0 -2px 8px;padding:8px 9px;border:1px solid var(--ux-border);border-radius:10px;background:var(--ux-topbar-bg);backdrop-filter:blur(10px);box-shadow:0 4px 14px color-mix(in srgb,var(--ux-ink) 8%,transparent)}
  .pa-mobile-arrival-copy{display:grid;gap:4px;min-width:0}
  .pa-mobile-arrival-score{display:flex;align-items:baseline;gap:12px;min-width:0;color:var(--ux-ink-muted);font-size:10px;line-height:1;white-space:nowrap}
  .pa-mobile-arrival-score strong{margin-inline-end:2px;color:var(--ux-ink-strong);font-size:17px;font-weight:850;font-variant-numeric:tabular-nums}
  .pa-mobile-last-arrived{display:flex;align-items:baseline;gap:5px;min-width:0;color:var(--ux-ink-muted);font-size:9.5px;line-height:1.2;white-space:nowrap}
  .pa-mobile-last-arrived>span{flex:0 0 auto}
  .pa-mobile-last-arrived>strong{min-width:0;overflow:hidden;text-overflow:ellipsis;color:var(--ux-ink-strong);font-size:12px;font-weight:850;direction:ltr;unicode-bidi:isolate}
  .pa-mobile-last-arrived>small{flex:0 0 auto;color:var(--ux-ink-muted);font-size:9px;font-variant-numeric:tabular-nums}
  .pa-mobile-add-unlisted{min-height:42px;max-width:118px;padding-inline:9px;white-space:normal;line-height:1.1}
  .pa-check-workspace>.metric-grid{display:none}
}
@media(prefers-reduced-motion:reduce){.pa-pallet-row.is-fading{transform:none;transition:none}}

/* 34.120.249 RC10 phase2zd — Category Exceptions operational list.
   Location is the physical work unit; barcode and category mismatch stay readable at a glance. */
.tools-exception-results{display:grid;gap:12px}
.tools-exception-actions{margin:0 12px;padding-top:10px}
.tools-exception-metrics{margin:0 12px 2px;grid-template-columns:repeat(4,minmax(0,1fr))}
.tools-exception-location-list{display:grid;gap:10px;margin:0 12px 12px}
.tools-exception-location{border-radius:10px!important}
.tools-exception-location>.ui-section-head{padding:10px 12px;border-bottom:1px solid var(--ui-divider)}
.tools-exception-location-code{font-size:22px;font-weight:850;line-height:1}
.tools-exception-carton-list{display:grid;padding:0 12px}
.tools-exception-carton{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;min-width:0;padding:10px 0;border-bottom:1px solid var(--ui-divider)}
.tools-exception-carton:last-child{border-bottom:0}
.tools-exception-carton-main{display:flex;align-items:center;gap:12px;min-width:0}
.tools-exception-barcode{min-width:0;font-size:17px;font-weight:800;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tools-exception-category-flow{display:flex;align-items:center;gap:5px;flex:0 0 auto}
.tools-exception-category-flow .status-badge{font-size:9.5px}
.tools-exception-arrow{color:var(--ux-ink-muted);font-weight:800}
[dir="rtl"] .tools-exception-arrow{transform:scaleX(-1)}
.tools-exception-carton-meta{display:flex;align-items:center;justify-content:flex-end;gap:10px;color:var(--ux-ink-muted);font-size:9.5px;white-space:nowrap}
@media(max-width:1120px){.tools-exception-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
  .tools-exception-actions{margin:0 8px;padding-top:7px}.tools-exception-actions>.action-leading{grid-column:auto}
  .tools-exception-metrics{margin-inline:8px;grid-template-columns:repeat(2,minmax(0,1fr))}
  .tools-exception-location-list{margin:0 8px 8px;gap:8px}
  .tools-exception-location>.ui-section-head{padding:9px 10px;align-items:center}
  .tools-exception-location-code{font-size:24px}
  .tools-exception-carton-list{padding:0 10px}
  .tools-exception-carton{grid-template-columns:1fr;gap:7px;padding:11px 0}
  .tools-exception-carton-main{display:grid;gap:7px}
  .tools-exception-barcode{font-size:18px;overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:anywhere}
  .tools-exception-category-flow{justify-content:flex-start;flex-wrap:wrap}
  .tools-exception-category-flow .status-badge{min-height:24px;font-size:10px}
  .tools-exception-carton-meta{justify-content:flex-start;flex-wrap:wrap;gap:8px;font-size:10px}
}

/* 34.120.249 RC10 phase2ze — Pallet Arrival intake/review recovery.
   Reuses the old photo workflow semantics inside the integrated shared-state page. */
.pa-setup-workspace{display:grid;gap:12px}
.pa-source-workspace{display:grid;grid-template-columns:minmax(300px,1.05fr) minmax(230px,.7fr) minmax(340px,1.2fr);border:1px solid var(--ux-border);border-radius:10px;overflow:hidden;background:var(--ux-surface)}
.pa-source-panel{display:flex;flex-direction:column;gap:12px;min-width:0;padding:14px 15px;background:var(--ux-surface)}
.pa-source-panel+.pa-source-panel{border-inline-start:1px solid var(--ux-border)}
.pa-source-heading{display:grid;grid-template-columns:28px minmax(0,1fr);gap:9px;align-items:start;min-height:52px}
.pa-source-heading>.app-icon{width:21px;height:21px;margin-top:2px;color:var(--ux-accent)}
.pa-source-heading>div{display:grid;gap:3px;min-width:0}
.pa-source-heading strong{font-size:14px;line-height:1.2;font-weight:850;color:var(--ux-ink-strong)}
.pa-source-heading small,.pa-source-note{font-size:10px;line-height:1.4;color:var(--ux-ink-muted)}
.pa-source-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;align-items:stretch}
.pa-source-file-button{position:relative;display:flex!important;justify-content:center;min-height:42px!important;margin:0!important;cursor:pointer;overflow:hidden}
.pa-hidden-file{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;overflow:hidden!important;pointer-events:none!important}
.pa-file-import-button{align-self:start;width:100%}
.pa-photo-preview{display:grid;place-items:center;min-height:110px;max-height:190px;padding:6px;border:1px solid var(--ux-border);border-radius:8px;background:var(--ux-surface-subtle);overflow:hidden}
.pa-photo-preview img{display:block;max-width:100%;max-height:176px;object-fit:contain}
.pa-photo-status{display:grid;gap:5px;min-height:17px;font-size:10px;color:var(--ux-ink-muted)}
.pa-photo-status progress{width:100%;height:5px}
.pa-photo-cancel{align-self:start}
.pa-source-paste .pa-paste-form{display:flex;flex:1 1 auto;flex-direction:column;gap:8px;margin:0}
.pa-source-paste .ui-field{display:flex;flex:1 1 auto;min-height:0}
.pa-source-paste textarea{flex:1 1 auto;min-height:118px;resize:vertical}
.pa-source-form-actions{margin-top:auto}
.pa-source-form-actions>.button{min-width:140px}
.pa-review-workspace{display:grid;gap:12px}
.pa-review-layout{display:grid;grid-template-columns:minmax(320px,.9fr) minmax(380px,1.1fr);border:1px solid var(--ux-border);border-radius:10px;overflow:hidden;background:var(--ux-surface)}
.pa-review-list-pane{min-width:0;background:var(--ux-surface-subtle)}
.pa-review-list-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-bottom:1px solid var(--ux-border);background:var(--ux-surface)}
.pa-review-list-head strong{font-size:12px;font-weight:850}
.pa-review-list-head span{display:grid;place-items:center;min-width:28px;height:24px;padding:0 7px;border-radius:999px;background:var(--ux-accent-soft);color:var(--ux-accent);font-size:11px;font-weight:850}
.pa-review-preview{display:grid;max-height:480px;overflow:auto;overscroll-behavior:contain}
.pa-review-preview-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;min-height:43px;padding:8px 12px;border-bottom:1px solid var(--ux-border);background:var(--ux-surface)}
.pa-review-preview-row:last-child{border-bottom:0}
.pa-review-preview-row strong{font-size:16px;line-height:1;font-weight:850;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.pa-review-preview-row small{font-size:10px;color:var(--ux-ink-muted)}
.pa-review-more{display:block;padding:9px 12px;color:var(--ux-ink-muted)}
.pa-review-edit-pane{min-width:0;margin:0;padding:13px 14px;border-inline-start:1px solid var(--ux-border)}
.pa-review-edit-pane textarea{min-height:300px;resize:vertical;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;line-height:1.45}
@media(max-width:1080px){
  .pa-source-workspace{grid-template-columns:1fr 1fr}
  .pa-source-paste{grid-column:1/-1;border-inline-start:0!important;border-top:1px solid var(--ux-border)}
  .pa-review-layout{grid-template-columns:1fr 1fr}
}
@media(max-width:760px){
  .pa-source-workspace{display:block;border-radius:9px}
  .pa-source-panel{padding:12px 11px;gap:10px}
  .pa-source-panel+.pa-source-panel{border-inline-start:0;border-top:1px solid var(--ux-border)}
  .pa-source-heading{min-height:0;grid-template-columns:25px minmax(0,1fr)}
  .pa-source-heading>.app-icon{width:19px;height:19px}
  .pa-source-actions{grid-template-columns:1fr 1fr}
  .pa-source-file-button{min-height:46px!important;padding-inline:8px!important}
  .pa-photo-preview{min-height:90px;max-height:150px}.pa-photo-preview img{max-height:136px}
  .pa-source-paste textarea{min-height:112px}
  .pa-source-form-actions>.button{width:100%;min-width:0}
  .pa-review-layout{display:block;border-radius:9px}
  .pa-review-preview{max-height:none;overflow:visible}
  .pa-review-preview-row{min-height:48px;padding:9px 10px}
  .pa-review-preview-row strong{font-size:18px}
  .pa-review-edit-pane{padding:11px 10px;border-inline-start:0;border-top:1px solid var(--ux-border)}
  .pa-review-edit-pane textarea{min-height:180px}
}


.tools-carton-multiple-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding-bottom:12px;border-bottom:1px solid var(--ux-border)}
.tools-carton-multiple-head p{max-width:720px;margin:5px 0 0;color:var(--ux-ink-muted);font-size:11px;line-height:1.45}
.tools-carton-multiple-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
.tools-carton-multiple-card{display:grid;grid-template-columns:minmax(88px,.32fr) minmax(0,1fr);gap:12px;align-items:center;padding:11px 12px;border:1px solid var(--ux-border);border-radius:10px;background:var(--ux-surface-subtle)}
.tools-carton-multiple-category{display:grid;gap:1px;min-width:0}
.tools-carton-multiple-category>span{color:var(--ux-ink-muted);font-size:9.5px;font-weight:750}
.tools-carton-multiple-category>strong{font-size:28px;line-height:1;font-weight:900}
.tools-carton-multiple-meta{display:grid;gap:3px;min-width:0;color:var(--ux-ink-muted);font-size:10px;line-height:1.35}
.tools-carton-multiple-meta span{overflow-wrap:anywhere}
.tools-carton-multiple-meta b{color:var(--ux-ink);font-weight:800}
.pa-filter-actions{align-items:center;justify-content:space-between;margin-top:0}
@media (max-width:760px){
  .tools-carton-multiple-head{display:grid}
  .tools-carton-multiple-list{grid-template-columns:1fr}
  .tools-carton-multiple-card{grid-template-columns:82px minmax(0,1fr);padding:10px}
  .tools-carton-multiple-category>strong{font-size:25px}
  .pa-filter-actions{align-items:center;justify-content:space-between}
}



.tools-finder-workstation{min-width:0}
.tools-finder-main,.tools-finder-side{min-width:0}
.tools-finder-active-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}
.tools-finder-active-head>div{display:grid;gap:2px;min-width:0}
.tools-finder-active-head span,.tools-finder-active-head small{color:var(--ux-ink-muted);font-size:10px;font-weight:750}
.tools-finder-active-location{display:block;font-size:clamp(38px,5vw,64px);line-height:.95;font-weight:900;letter-spacing:-.025em;color:var(--ux-ink-strong)}
.tools-finder-location-list{display:grid;gap:6px}
.tools-finder-location-tile{display:grid;grid-template-columns:26px minmax(0,1fr) auto;align-items:center;gap:9px;width:100%;min-height:52px;padding:8px 10px;border:1px solid var(--ux-border);border-radius:9px;background:var(--ux-surface);color:var(--ux-ink);font:inherit;text-align:start;cursor:pointer;transition:border-color .12s ease,background .12s ease,box-shadow .12s ease,transform .12s ease}
.tools-finder-location-tile>.app-icon{width:18px;height:18px;color:var(--ux-ink-muted)}
.tools-finder-location-copy{display:grid;gap:2px;min-width:0}
.tools-finder-location-copy>strong{font-size:16px;line-height:1.05;font-weight:850}
.tools-finder-location-copy>small{color:var(--ux-ink-muted);font-size:9.5px;font-weight:650}
.tools-finder-location-tile:hover,.tools-finder-location-tile:focus-visible{border-color:var(--ux-border-strong);background:var(--ux-surface-hover);outline:none}
.tools-finder-location-tile.is-active{border-color:color-mix(in srgb,var(--ux-accent) 58%,var(--ux-border));background:color-mix(in srgb,var(--ux-accent) 7%,var(--ux-surface));box-shadow:inset 4px 0 0 var(--ux-accent)}
[dir="rtl"] .tools-finder-location-tile.is-active{box-shadow:inset -4px 0 0 var(--ux-accent)}
.tools-finder-location-tile.is-active .tools-finder-location-copy>strong{color:var(--ux-accent);font-weight:900}
.tools-finder-location-tile.is-complete{border-color:color-mix(in srgb,var(--ux-success) 34%,var(--ux-border));background:color-mix(in srgb,var(--ux-success) 6%,var(--ux-surface))}
.tools-finder-location-tile.is-complete>.app-icon{color:var(--ux-success)}
.tools-finder-location-tile.is-suggested{border-color:color-mix(in srgb,var(--ux-warning) 70%,var(--ux-border));background:color-mix(in srgb,var(--ux-warning) 9%,var(--ux-surface));box-shadow:0 0 0 2px color-mix(in srgb,var(--ux-warning) 16%,transparent)}
.tools-finder-location-tile.is-suggested .tools-finder-location-copy>strong{font-size:18px}
.tools-finder-feedback{display:grid;gap:12px;border-width:2px!important}
.tools-finder-feedback-head{display:grid;gap:3px;text-align:center}
.tools-finder-feedback-head>span{font-size:12px;font-weight:850;letter-spacing:.04em;text-transform:uppercase}
.tools-finder-feedback-barcode{display:block;overflow-wrap:anywhere;font-size:clamp(34px,5.4vw,66px);line-height:.95;font-weight:900;letter-spacing:.015em}
.tools-finder-feedback-category,.tools-finder-feedback-secondary,.tools-finder-feedback-location{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 11px;border:1px solid var(--ux-border);border-radius:9px;background:var(--ux-surface-subtle)}
.tools-finder-feedback-category>span,.tools-finder-feedback-secondary>span,.tools-finder-feedback-location span{color:var(--ux-ink-muted);font-size:10px;font-weight:750}
.tools-finder-feedback-category>strong{font-size:clamp(28px,3.2vw,42px);line-height:1;font-weight:900}
.tools-finder-feedback-secondary>strong{font-size:17px}
.tools-finder-feedback-location>div{display:grid;gap:2px}
.tools-finder-feedback-location small{color:var(--ux-ink-muted);font-size:9px}
.tools-finder-feedback-location>strong{font-size:clamp(26px,3vw,38px);line-height:1;font-weight:900}
.tools-finder-feedback-actions{justify-content:center}
.tools-finder-feedback.is-found{border-color:color-mix(in srgb,var(--ux-success) 52%,var(--ux-border))!important;background:color-mix(in srgb,var(--ux-success) 6%,var(--ux-surface))!important}
.tools-finder-feedback.is-elsewhere,.tools-finder-feedback.is-repeat{border-color:color-mix(in srgb,var(--ux-warning) 55%,var(--ux-border))!important;background:color-mix(in srgb,var(--ux-warning) 7%,var(--ux-surface))!important}
.tools-finder-feedback.is-notfound{border-color:color-mix(in srgb,var(--ux-danger) 50%,var(--ux-border))!important;background:color-mix(in srgb,var(--ux-danger) 5%,var(--ux-surface))!important}
.tools-finder-scan-actions{align-items:stretch}

@media(min-width:761px){
  .tools-finder-workstation{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(340px,.65fr);min-height:650px}
  .tools-finder-main{border-inline-end:1px solid var(--ux-border)}
  .tools-finder-side{background:color-mix(in srgb,var(--ux-surface-subtle) 48%,var(--ux-surface))}
  .tools-finder-main>.panel,.tools-finder-side>.panel{max-width:none!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important}
  .tools-finder-main>.panel+.panel,.tools-finder-side>.panel+.panel{border-top:1px solid var(--ux-border)!important}
  .tools-finder-side>.panel{background:transparent!important}
  .tools-finder-location-list{max-height:540px;overflow:auto;overscroll-behavior:contain;padding-inline-end:2px}
}
@media(max-width:760px){
  .tools-finder-workstation{display:block}
  .tools-finder-workstation>.tools-finder-main,.tools-finder-workstation>.tools-finder-side{display:grid;gap:10px}
  .tools-finder-workstation .panel{border:1px solid var(--ux-border)!important;border-radius:10px!important}
  .tools-finder-active-location{font-size:46px}
  .tools-finder-feedback-barcode{font-size:clamp(34px,11vw,48px)}
  .tools-finder-feedback-category,.tools-finder-feedback-secondary,.tools-finder-feedback-location{padding:8px 9px}
  .tools-finder-feedback-category>strong{font-size:32px}
  .tools-finder-feedback-location>strong{font-size:30px}
  .tools-finder-location-list{max-height:none;overflow:visible}
  .tools-finder-location-tile{grid-template-columns:28px minmax(0,1fr) auto;min-height:62px;padding:9px}
  .tools-finder-location-copy>strong{font-size:20px}
  .tools-finder-location-copy>small{font-size:10.5px}
  .tools-finder-scan-actions>.button{flex:1 1 0;min-width:0}
}



.tools-lookup-result-tile{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;min-width:0;padding:10px 11px;border:1px solid var(--ux-border);border-radius:9px;background:var(--ux-surface);color:var(--ux-ink);cursor:pointer;transition:background .12s ease,border-color .12s ease,box-shadow .12s ease}
.tools-lookup-result-tile+ .tools-lookup-result-tile{margin-top:6px}
.tools-lookup-result-tile>div{display:grid;gap:2px;min-width:0}
.tools-lookup-result-tile>div>strong{font-size:14px;line-height:1.15;overflow-wrap:anywhere}
.tools-lookup-result-tile>div>small{font-size:10px;line-height:1.35;color:var(--ux-ink-muted)}
.tools-lookup-result-tile>.app-icon{width:17px;height:17px;color:var(--ux-ink-muted)}
.tools-lookup-result-tile:hover,.tools-lookup-result-tile:focus-visible{outline:none;border-color:var(--ux-border-strong);background:var(--ux-surface-hover);box-shadow:inset 3px 0 0 color-mix(in srgb,var(--ux-accent) 58%,transparent)}
[dir="rtl"] .tools-lookup-result-tile:hover,[dir="rtl"] .tools-lookup-result-tile:focus-visible{box-shadow:inset -3px 0 0 color-mix(in srgb,var(--ux-accent) 58%,transparent)}
.tools-recent-result-tile{grid-template-columns:minmax(0,1fr) 34px;border-width:0 0 1px;border-radius:0}
.tools-recent-result-tile+ .tools-recent-result-tile{margin-top:0}
.tools-recent-result-tile:last-child{border-bottom:0}
.tools-recent-result-tile>.button{width:32px;height:32px;min-height:32px;padding:0;justify-self:end}
.tools-scanner-tips{display:block}
.tools-scanner-eyebrow{margin:0 0 3px!important;color:var(--ux-accent)!important;font-size:9px!important;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.tools-scanner-tips h2{margin:0 0 8px!important}
.tools-scanner-tips ul{margin:0;padding-inline-start:18px;color:var(--ux-ink-muted);font-size:10.5px;line-height:1.55}
.tools-scanner-tips li+li{margin-top:3px}
@media(max-width:760px){
  .tools-lookup-result-tile{padding:10px;border-radius:9px}
  .tools-recent-result-tile{border:1px solid var(--ux-border);border-radius:9px;margin-bottom:6px}
  .tools-recent-result-tile+ .tools-recent-result-tile{margin-top:0}
  .tools-scanner-tips{display:none!important}
}

.technical-build{margin-top:8px;font-size:.8rem;overflow-wrap:anywhere}.technical-build>summary{cursor:pointer}

/* Account profile preference: native radios retain arrow-key navigation. */
.acct-demand-options{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%}
.acct-demand-option{position:relative;display:flex;align-items:center;gap:7px;border:1px solid var(--ux-border);border-radius:10px;padding:12px 10px;min-height:48px;cursor:pointer;background:var(--surface)}
.acct-demand-option input{width:16px;height:16px;flex:0 0 16px;accent-color:var(--ux-accent);margin:0}
.acct-demand-option span{font-size:.82rem;font-weight:650;overflow-wrap:anywhere}
.acct-demand-option:has(input:checked){border-color:var(--ux-accent);background:var(--ux-accent-soft);color:var(--ux-accent);box-shadow:inset 0 0 0 1px var(--ux-accent)}
.acct-demand-option:focus-within{outline:2px solid var(--ux-accent);outline-offset:2px}
#account-form .acct-demand-setting{grid-template-columns:1fr}
@media(max-width:480px){.acct-demand-options{grid-template-columns:1fr}.acct-demand-option{padding:10px 12px}}

/* Checkpoint 08: supplied transparent mascot; light treatment on dark navigation. */
.sidebar-brand img.sidebar-brand-mark{width:27px;height:27px;flex:0 0 27px;padding:0;border-radius:0;background:transparent;object-fit:contain;filter:grayscale(1) invert(1) brightness(1.12);transform:translateY(5px);}
.login-card>img.login-brand-mark{width:148px;height:148px;max-height:none;object-fit:contain;}
.startup-card img.startup-brand-mark{width:116px;height:116px;max-height:none;object-fit:contain;}
@media(prefers-reduced-motion:reduce){.spinner,.status-spinner{animation:none}.startup-progress i{transition:none}}

/* Checkpoint 09: reference composition, with a real loading indicator. */
.login-shell,.startup{background:radial-gradient(ellipse at 50% 43%,var(--ux-brand-stage-center) 0%,var(--ux-brand-stage-mid) 48%,var(--ux-brand-stage-edge) 100%);}
.brand-scene{display:grid;place-items:center;gap:8px;width:100%;}
.brand-scene-art{width:min(520px,82%);}
.brand-scene-art img,.brand-scene-wordmark img{display:block;width:100%;height:auto;object-fit:contain;}
.brand-scene-wordmark{display:grid;width:min(610px,92%);}
.brand-scene-wordmark img{grid-area:1/1;transition:opacity .12s ease;}
.brand-scene-wordmark .brand-wordmark-light{opacity:var(--ux-brand-wordmark-light-opacity);}
.brand-scene-wordmark .brand-wordmark-dark{opacity:var(--ux-brand-wordmark-dark-opacity);}
@media(max-width:480px){.brand-scene{gap:6px}.brand-scene-art{width:min(390px,88%)}.brand-scene-wordmark{width:min(430px,96%)}}
.login-card{width:min(660px,100%);padding:0;background:transparent;border:0;box-shadow:none;}
.login-card>.brand-scene{width:100%;margin:0 auto 22px;}
.login-card>h1,.login-card>p,.startup-card>h1{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
.login-card>.ui-form,.login-card>.auth-notice,.login-card>.auth-discard{width:min(340px,100%);margin-inline:auto;}
.login-card .ui-field input{background:color-mix(in srgb,var(--ux-surface) 72%,transparent);border-color:var(--ux-border-strong);}
.login-card .button.primary{background:#8c692e;border-color:#8c692e;}
.login-card .button.primary:hover{background:#745421;}
.login-card>small{text-align:center;color:var(--ux-ink-secondary);margin-top:20px;}
.startup-card{width:min(820px,100%);padding:0;border:0;background:transparent;box-shadow:none;display:grid;justify-items:center;gap:16px;}
.startup-card>.brand-scene{width:100%;}
.startup-scene-spinner{display:block;width:42px;height:42px;border:4px solid var(--ux-border-strong);border-inline-start-color:#a67e38;border-bottom-color:transparent;border-radius:50%;animation:spin 1.1s linear infinite;}
.startup-card .startup-progress{width:min(160px,40%);height:3px;background:var(--ux-neutral-border);}
.startup-card .startup-progress i{background:#a67e38;}
.startup-card p{color:var(--ux-ink-secondary);letter-spacing:.1em;font-size:12px;}
.startup-card small{color:var(--ux-ink-faint);}
@media(max-width:480px){.login-shell{padding:24px 18px;}.login-card>.brand-scene{margin-bottom:24px;}.startup{padding:18px;}.startup-card{gap:14px;}}
.startup.startup-overlay{position:fixed;inset:0;z-index:10000;min-height:100dvh;opacity:1;visibility:visible;pointer-events:none;transition:opacity .22s ease,visibility .22s step-end;}
.startup.startup-overlay.startup-overlay-leaving{opacity:0;visibility:hidden;}

@media(prefers-reduced-motion:reduce){.startup-scene-spinner{animation:none;}.startup.startup-overlay{transition:none;}}


/* Checkpoint 10: deliberate check-only arrival controls; compact, readable IDs. */
.pa-pallet-row{grid-template-columns:48px minmax(0,1fr) 44px;gap:8px;padding:6px;min-height:62px;}
.pa-pallet-toggle{display:grid;grid-template-columns:1fr;place-items:center;width:48px;min-width:48px;height:48px;min-height:48px;padding:0;border:1px solid var(--ux-border);border-radius:8px;}
.pa-pallet-row>.ui-action-copy{display:grid;gap:4px;min-width:0;cursor:default;}
.pa-pallet-row>.ui-action-copy>strong{font-size:18px;line-height:1.15;font-weight:800;overflow-wrap:anywhere;}
.pa-pallet-row>.ui-action-copy>small{font-size:11px;line-height:1.3;color:var(--ux-ink-muted);}
.pa-pallet-row.is-missing .pa-pallet-state{opacity:.4;}
.pa-pallet-row.is-arrived>.ui-action-copy>strong{color:var(--ux-success);}
@media(max-width:760px){.pa-pallet-row>.ui-action-copy>strong{font-size:22px;}.pa-pallet-row{min-height:64px;}}

/* Checkpoint 11: contextual activity island. */
.shell-feedback[data-network="true"]{display:grid!important;}
.shell-feedback #global-status{grid-template-columns:16px minmax(0,1fr) 32px;height:auto;min-height:40px;max-height:none;border-radius:14px;padding:5px 8px 5px 12px;}
.shell-feedback .global-status-copy small{display:flex!important;gap:6px;align-items:center;font-size:11px;line-height:1.25;}
.shell-feedback .global-status-copy small:has(span:only-child:empty){display:none!important;}
.shell-feedback .global-status-copy small>span{overflow:hidden;text-overflow:ellipsis;}
.shell-feedback .global-status-copy strong{font-size:12px;line-height:1.3;}
.status-details{display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:transparent;color:inherit;cursor:pointer;}
.status-details:hover{background:#0001;}.status-details:focus-visible{outline:2px solid currentColor;outline-offset:-2px;}
.shell-feedback[data-status-priority="true"] #global-status{visibility:visible;}
.shell-feedback[data-status-priority="true"] .toast-host{visibility:hidden;}
.shell-feedback[data-expanded="true"]{align-self:start;transform:translate(-50%,0);inset-block-start:8px;}
[dir="rtl"] .shell-feedback[data-expanded="true"]{transform:translate(50%,0);}
.shell-feedback[data-expanded="true"] #global-status .global-status-copy strong,.shell-feedback[data-expanded="true"] #global-status .global-status-copy small,.shell-feedback[data-expanded="true"] #global-status .global-status-copy small>span{white-space:normal;overflow-wrap:anywhere;overflow:visible;}
@media(max-width:760px){.shell-feedback #global-status{grid-template-columns:16px minmax(0,1fr) 36px;min-height:44px;}.status-details{width:36px;height:36px;}}
/* One predictable anchor: centered above the working area, below the top bar. */
.shell-feedback{position:fixed;inset-block-start:calc(var(--topbar-height) + 8px);inset-inline-start:calc(50% + var(--sidebar-width)/2);inset-inline-end:auto;transform:translateX(-50%);width:min(360px,calc(100vw - var(--sidebar-width) - 32px));min-width:0;max-width:360px;height:auto;min-height:0;max-height:none;padding:0;gap:0;border:0;z-index:95;}
[dir="rtl"] .shell-feedback{transform:translateX(50%);}
.shell-feedback[data-expanded="true"]{inset-block-start:calc(var(--topbar-height) + 8px);transform:translateX(-50%);}
[dir="rtl"] .shell-feedback[data-expanded="true"]{transform:translateX(50%);}
.shell-feedback[data-active="true"],.shell-feedback[data-network="true"]{background:transparent;border:0;}
.shell-feedback #global-status,.shell-feedback .toast,.shell-feedback .network-circuit-status{position:static;inset:auto;width:100%;min-width:0;max-width:100%;min-height:44px;height:auto;max-height:none;border:1px solid #ffffff24;border-radius:22px;background:#17212e;color:#f3f6fa;box-shadow:0 5px 16px #0b17252b;backdrop-filter:blur(12px);}
.shell-feedback .toast-host{position:static;inset:auto;width:100%;height:auto;min-height:0;max-height:none;}
.shell-feedback #global-status .global-status-copy strong{color:#f3f6fa;}
.shell-feedback #global-status .global-status-copy small{color:#bcc9d8;opacity:1;}
.shell-feedback .toast-success .app-icon,.shell-feedback #global-status[data-type="success"]>.app-icon{color:#7ddbb1;}
.shell-feedback .toast-error .app-icon,.shell-feedback #global-status[data-type="error"]>.app-icon{color:#ffada6;}
.shell-feedback .status-spinner{border-color:#ffffff35;border-top-color:#b6d7ff;}
.shell-feedback .network-circuit-status{color:#ffe0a0;padding:6px 12px;}
.shell-feedback .network-circuit-status .button{background:#ffffff14;border-color:#ffffff40;color:inherit;}
.shell-feedback[data-expanded="true"] #global-status{border-radius:18px;}
@media(max-width:760px){.shell-feedback{inset-inline-start:50%;width:min(360px,calc(100vw - 24px));min-width:0;max-width:360px;}}
/* Floating feedback no longer competes with top-bar page actions. */
body:has(.shell-feedback[data-active="true"]) .topbar-page-actions{visibility:visible;}
/* Arrival state belongs to the check, not the pallet identifier. */
.pa-pallet-row.is-arrived>.ui-action-copy>strong{color:var(--ux-ink-strong);}
.pa-pallet-row .pa-pallet-toggle{border:0;background:transparent;border-radius:8px;}

/* Checkpoint 23: explicit P-location affordance and grouped inventory locations. */
.warehouse-layout-p-guide{margin:0 0 10px}.warehouse-layout-p-action{border-color:var(--ux-border-strong)}
@media(max-width:760px){#page[data-page="inventory"] .inventory-location-groups{gap:4px}#page[data-page="inventory"] .inventory-location-chips>.inventory-location-group{display:inline-flex;max-width:100%}#page[data-page="inventory"] .inventory-location-group-chips{flex-wrap:wrap}.warehouse-layout-p-guide{margin-bottom:8px}}

@media(min-width:761px){.tools-carton-route .tools-primary-panel{display:flex;flex-direction:column;position:sticky;top:54px;z-index:4}.tools-carton-route .tools-primary-panel>.ui-section-head{order:1}.tools-carton-scan-form{order:2;margin-top:4px;padding:14px;border:1px solid color-mix(in srgb,var(--ux-accent) 34%,var(--ux-border));border-radius:10px;background:color-mix(in srgb,var(--ux-accent) 4%,var(--ux-surface))}.tools-carton-load-warning{order:3;margin-top:10px}.tools-carton-source-card{order:4;margin-top:10px}.tools-carton-scan-form .ui-field>span{font-size:11.5px;font-weight:850;color:var(--ux-ink-strong)}.tools-carton-scan-form [data-carton-barcode]{min-height:56px;border-width:2px;font-size:22px;font-weight:850;letter-spacing:.025em;font-variant-numeric:tabular-nums;background:var(--ux-surface)}.tools-carton-scan-form [data-carton-barcode]:focus{border-color:var(--ux-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--ux-accent) 14%,transparent);outline:none}.tools-carton-scan-form .ui-form-actions .button{min-height:44px}}

/* Checkpoint 69 — Find Cartons flexible import + workload-first location navigation. */
.tools-finder-location-sort{display:flex;align-items:center;gap:6px;margin:0 0 10px;padding:3px;border:1px solid var(--ux-border);border-radius:9px;background:var(--ux-surface-subtle)}
.tools-finder-sort-button{min-width:0;flex:1 1 0;min-height:31px;padding:5px 9px;border:0;border-radius:7px;background:transparent;color:var(--ux-ink-muted);font:inherit;font-size:10px;font-weight:800;cursor:pointer;transition:background .12s ease,color .12s ease,box-shadow .12s ease}
.tools-finder-sort-button:hover,.tools-finder-sort-button:focus-visible{background:var(--ux-surface-hover);color:var(--ux-ink);outline:none}
.tools-finder-sort-button.is-active{background:var(--ux-surface);color:var(--ux-ink-strong);box-shadow:0 1px 2px color-mix(in srgb,var(--ux-ink) 10%,transparent)}
.tools-finder-location-tail{display:flex;align-items:center;justify-content:flex-end;gap:7px;min-width:0}
.tools-finder-location-remaining{display:grid;min-width:46px;padding:4px 7px;border-radius:8px;background:color-mix(in srgb,var(--ux-warning) 10%,var(--ux-surface));text-align:center;line-height:1}
.tools-finder-location-remaining>strong{font-size:17px;font-weight:900;font-variant-numeric:tabular-nums;color:var(--ux-ink-strong)}
.tools-finder-location-remaining>small{margin-top:2px;color:var(--ux-ink-muted);font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.025em}
.tools-finder-location-remaining[data-complete="true"]{background:color-mix(in srgb,var(--ux-success) 10%,var(--ux-surface))}
.tools-finder-location-remaining[data-complete="true"]>strong{color:var(--ux-success)}
.tools-finder-import-status{display:grid;gap:4px;margin:0 0 12px;padding:9px 10px;border:1px solid var(--ux-border);border-radius:9px;background:var(--ux-surface-subtle);color:var(--ux-ink-muted);font-size:10px;font-weight:700;line-height:1.35}
.tools-finder-import-status.has-warning{border-color:color-mix(in srgb,var(--ux-warning) 38%,var(--ux-border))}
.tools-finder-import-status [data-tone="warning"]{color:color-mix(in srgb,var(--ux-warning) 78%,var(--ux-ink-strong));font-weight:850}
@media(max-width:760px){.tools-finder-location-sort{position:sticky;top:0;z-index:1}.tools-finder-location-remaining{min-width:50px}.tools-finder-location-remaining>strong{font-size:18px}}

/* Checkpoint 72 — Carton Lookup / Find Cartons visual precision. */
.tools-reference-status[hidden],.tools-reference-progress[hidden]{display:none!important}
.tools-carton-scan-actions{align-items:stretch}
.tools-carton-scan-actions>.button{min-width:132px;justify-content:center}
.tools-advanced-grid{grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);align-items:end;gap:10px}
.tools-advanced-match{align-self:stretch}
.tools-advanced-match>.tools-option-tiles{margin-top:6px}
.tools-advanced-match .tools-option-tile{justify-content:center;min-height:40px;padding-inline:6px;text-align:center;line-height:1.1}
.tools-advanced-actions{margin-top:8px;padding-top:8px}
.tools-advanced-actions>.button{width:100%;justify-content:center}
.tools-recent-head{align-items:center}
.tools-recent-head>div:first-child{align-self:center}
.tools-recent-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0 0 10px;padding-top:8px}
.tools-recent-actions>.button{width:100%;min-width:0;justify-content:center}
.tools-finder-import-head{align-items:flex-start}
.tools-finder-sync-badge{flex:0 0 auto;white-space:nowrap}
.tools-finder-import-panel [data-finder-import-form]{margin-top:4px}
.tools-finder-scan-actions>.button{flex:1 1 0;min-width:0;justify-content:center}
@media(max-width:760px){
  .tools-carton-scan-actions>.button{min-width:0}
  .tools-advanced-grid{grid-template-columns:1fr;align-items:start}
  .tools-advanced-actions{display:block}
  .tools-recent-actions{grid-template-columns:1fr 1fr}
  .tools-finder-import-head{align-items:flex-start}
}
