/* Navigation has a fixed height; sticky business controls retain their offsets. */
.workspace-shell { --sidebar-width: 188px; }
.workspace-shell .topbar { height: 72px; min-height: 72px; padding: 12px 24px; flex-wrap: nowrap; gap: 24px; background: #fff; }
.workspace-shell .brand { min-width: 190px; }
.workspace-location { font-size: 14px; color: var(--muted); padding-left: 22px; border-left: 1px solid var(--line); }
.workspace-shell .topbar .user-menu { margin-left: auto; }
.workspace-sidebar { position: fixed; z-index: 21; top: 72px; left: 0; bottom: 0; width: var(--sidebar-width); padding: 28px 14px; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.workspace-sidebar button, .workspace-mobile button { display: flex; align-items: center; gap: 12px; border: 0; background: transparent; color: var(--muted); font-weight: 650; }
.workspace-sidebar button { width: 100%; padding: 14px 15px; border-radius: 10px; text-align: left; }
.workspace-sidebar button.active, .workspace-mobile button.active { color: var(--brand); background: #eaf1ed; }
.workspace-sidebar svg, .workspace-mobile svg { flex-shrink: 0; width: 21px; height: 21px; }
.sidebar-caption { margin-top: auto; padding: 18px 16px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.workspace-mobile { display: none; }
.workspace-content { margin-left: var(--sidebar-width); }
.workspace-content .main { width: min(1320px, calc(100% - 48px)); padding-top: 26px; }
.workspace-subnav { display: flex; flex-wrap: wrap; gap: 5px; padding: 14px 24px; border-bottom: 1px solid var(--line); background: #f8faf8; }
.workspace-subnav button { padding: 9px 14px; background: transparent; border: 1px solid transparent; border-radius: 8px; color: var(--muted); }
.workspace-subnav button.active { background: white; color: var(--brand); border-color: var(--line); font-weight: 700; }
.workspace-content .order-alert-bar { width: min(1320px, calc(100% - 48px)); margin: 16px auto 0; padding: 11px 16px; border-radius: 12px; box-shadow: none; }
.workspace-content .alert-status small { font-size: 11px; }
.workspace-content .alert-status strong { font-size: 13px; }
.is-workbench #logistics-alert-bar { display: none; }
.workspace-content .test-account-banner { width: min(1320px, calc(100% - 48px)); }
.workbench-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; }
.workbench-head h1 { margin: 8px 0; font-size: clamp(24px, 2.5vw, 32px); letter-spacing: -.5px; }
.workbench-head p { margin: 0; }
.workbench-eyebrow { font-size: 12px; color: var(--muted); }
.workbench-section { margin: 28px 0; }
.workbench-section h2 { font-size: 16px; margin: 0 0 16px; }
.workbench-section .section-heading h2 { margin: 0; }
.workbench-section .section-heading { margin-bottom: 14px; }
.workbench-tasks { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 12px; }
.workbench-task { min-height: 148px; position: relative; text-align: left; background: white; border: 1px solid var(--line); border-radius: 14px; padding: 20px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.workbench-task:hover, .workspace-shortcut:hover { border-color: #8caf9b; box-shadow: 0 3px 12px #18312b0a; }
.workbench-task > span { color: var(--muted); font-size: 14px; }
.workbench-task > div { margin: 12px 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.workbench-task strong { font-size: clamp(23px, 2vw, 31px); overflow-wrap: anywhere; }
.workbench-task small { color: var(--muted); font-size: 12px; }
.workbench-task p { margin: 0; font-size: 11px; color: var(--muted); }
.workbench-task i { position: absolute; right: 16px; top: 16px; color: #99aaa3; font-style: normal; }
.workbench-task.attention { background: #fffaf3; border-color: #ead7b9; }
.workbench-task.attention strong { color: var(--warn); }
.workspace-shortcuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.workspace-shortcut { position: relative; padding: 19px 36px 19px 18px; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.workspace-shortcut strong { display: block; font-size: 14px; }
.workspace-shortcut span { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; }
.workspace-shortcut i { position: absolute; right: 18px; top: 20px; color: #83998d; font-style: normal; }
.workbench-overview { display: flex; flex-wrap: wrap; gap: 24px 42px; padding: 22px 24px; background: #edf2ed; border-radius: 12px; }
.workbench-overview > div { min-width: 140px; }
.workbench-overview span, .workbench-overview > div > small { display: block; color: var(--muted); font-size: 12px; }
.workbench-overview strong { display: block; font-size: 21px; margin-top: 8px; }
.workbench-overview strong small { font-size: 12px; font-weight: 400; }
.inventory-reminders { display: grid; gap: 10px; }
.inventory-reminders button { border: 1px solid #e7d5b8; background: #fffaf3; border-radius: 12px; padding: 16px; display: flex; justify-content: space-between; gap: 16px; align-items: center; text-align: left; color: var(--ink); }
.inventory-reminders small { display: block; margin-top: 5px; color: var(--muted); }
.inventory-reminders b { white-space: nowrap; font-size: 13px; }
.hub-profile { display: flex; gap: 16px; align-items: center; }
.hub-profile h2 { margin: 0; font-size: 20px; }
.hub-profile p { margin: 6px 0 0; color: var(--muted); }
.workspace-shell button:focus-visible { outline: 3px solid #4d9279; outline-offset: 2px; }
@media (max-width: 1050px) and (min-width: 761px) {
  .workspace-shell { --sidebar-width: 156px; }
  .workspace-sidebar { padding: 20px 8px; }
  .workspace-sidebar button { gap: 8px; padding: 14px 10px; font-size: 14px; }
  .workspace-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .workspace-shell .topbar { height: 62px; min-height: 62px; padding: 8px 14px; gap: 10px; }
  .workspace-shell .brand { min-width: auto; }
  .workspace-location { border: 0; padding: 0; font-size: 14px; color: var(--ink); font-weight: 700; }
  .workspace-sidebar { display: none; }
  .workspace-content { margin-left: 0; }
  .workspace-content .main { width: calc(100% - 24px); padding-top: 20px; padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .workspace-mobile { display: flex; position: fixed; z-index: 30; bottom: 0; left: 0; right: 0; padding: 7px max(4px, env(safe-area-inset-left)) calc(7px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
  .workspace-mobile button { flex: 1 1 0; min-width: 0; justify-content: center; flex-direction: column; gap: 5px; padding: 6px 2px; font-size: 11px; border-radius: 9px; }
  .workspace-mobile span { white-space: nowrap; }
  .workspace-subnav { padding: 10px 12px; gap: 5px; }
  .workspace-subnav button { padding: 8px 10px; font-size: 12px; }
  .workspace-content .order-alert-bar { width: calc(100% - 24px); padding: 10px 12px; }
  .workspace-content .test-account-banner { width: calc(100% - 24px); }
  .workbench-head { margin-bottom: 20px; }
  .workbench-head h1 { font-size: 25px; }
  .workbench-head .subtle { font-size: 12px; line-height: 1.6; }
  .workbench-head > button { flex-shrink: 0; }
  .workbench-tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .workbench-task { padding: 16px 14px; min-height: 145px; }
  .workbench-task strong { font-size: 26px; }
  .workbench-task p { line-height: 1.5; }
  .workspace-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .workspace-shortcut { padding: 17px 26px 17px 13px; }
  .workspace-shortcut i { right: 10px; }
  .workspace-shortcut span { font-size: 11px; line-height: 1.5; }
  .workbench-overview { padding: 18px; gap: 22px; }
}
@media print {
  .workspace-sidebar, .workspace-mobile, .workspace-subnav { display: none !important; }
  .workspace-content { margin-left: 0; }
}

/* Foldable outer/inner screens and split windows use their available viewport. */
.workspace-content, .workspace-content .main, .field, .card, .compact-item > div { min-width: 0; }
.workspace-shell input, .workspace-shell select, .workspace-shell textarea { max-width: 100%; min-width: 0; }
.store-outbound-records { margin-top: 18px; }
.store-outbound-records details { padding: 12px 0; overflow-wrap: anywhere; }
.inventory-draft-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.confirm-dialog { max-height: calc(100dvh - 24px); overflow-y: auto; }
@media (pointer: coarse) {
  .workspace-shell input, .workspace-shell select, .workspace-shell textarea { font-size: 16px; }
  .inventory-draft-actions button, .workspace-subnav button { min-height: 44px; }
}
@media (min-width: 600px) and (max-width: 1100px) {
  .workspace-shell .field-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .workspace-shell .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .workspace-shell .brand-copy, .workspace-shell .user-copy { display: none; }
}
@media (max-width: 380px) {
  .workspace-shell .brand-copy, .workspace-shell .user-copy { display: none; }
  .workspace-content .main { width: calc(100% - 16px); }
  .workspace-shell .card { padding: 14px; }
  .inventory-count-item { flex-wrap: wrap; gap: 10px; }
  .inventory-count-item > div { width: 100%; }
  .workspace-shell .page-head h1 { font-size: 25px; overflow-wrap: anywhere; }
  .workspace-shell .workbench-head { flex-wrap: wrap; }
}

#inventory-count-date-field[hidden], #inventory-count-month-field[hidden] { display: none !important; }
