/* The final shared presentation layer; domain modules retain their layouts and behavior. */
@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/manrope-latin-variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}
:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-soft: #f7f8fc;
  --surface-muted: #edf0f5;
  --text: #242936;
  --muted: #667085;
  --border: #dfe5ee;
  --line: #ecf0f5;
  --green-950: #14382e;
  --green-900: #175342;
  --green-800: #17634b;
  --green-700: #137b59;
  --green-600: #16986d;
  --green-500: #35ae85;
  --green-100: #def4e9;
  --green-50: #effaf5;
  --blue: #3566cf;
  --blue-soft: #eaf0ff;
  --teal: #087f91;
  --teal-soft: #e2f4f7;
  --amber: #a46610;
  --amber-soft: #fff2d9;
  --rose: #b74b70;
  --rose-soft: #fceaf1;
  --violet: #7654b2;
  --violet-soft: #f0eafb;
  --red: #c44450;
  --red-soft: #fdebef;
  --danger: var(--red);
  --action-bg: #157d59;
  --module-accent: var(--green-700);
  --module-soft: var(--green-100);
  --sidebar: 260px;
  --shadow-soft: 0 2px 8px #24354b05;
  --shadow: 0 22px 80px #13223c24;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}
.theme-dark {
  --bg: #15181e;
  --surface: #1e232c;
  --surface-raised: #262c37;
  --surface-soft: #242b36;
  --surface-muted: #2b3340;
  --text: #edf1f7;
  --muted: #b0bbcd;
  --border: #394252;
  --line: #303949;
  --green-700: #76d1ad;
  --green-800: #98dfc2;
  --green-100: #203d34;
  --green-50: #21322d;
  --blue: #9bbaff;
  --blue-soft: #283855;
  --teal: #89d4de;
  --teal-soft: #203d44;
  --amber: #f0c477;
  --amber-soft: #403525;
  --rose: #f0adc8;
  --rose-soft: #422d3b;
  --violet: #c9b5f7;
  --violet-soft: #382f4b;
  --red: #ffa0ac;
  --red-soft: #422d36;
  --action-bg: #1b7757;
}
body, button, input, select, textarea { font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif; letter-spacing: 0; }
body { background: var(--bg); }
:is(h1,h2,h3,h4,strong,b) { letter-spacing: 0; }
[hidden] { display: none !important; }
.app-shell .sidebar {
  background: var(--surface); color: var(--text); border-right: 1px solid var(--border);
  box-shadow: none; height: 100dvh;
}
.app-shell .brand-block { padding: 22px 20px 18px; min-height: 92px; border: 0; background: transparent; }
.app-shell .brand-block img { width: 46px; height: 46px; flex-basis: 46px; border-radius: 8px; border: 0; box-shadow: 0 3px 10px #187b5820; }
.app-shell .brand-block strong { color: var(--text); font-size: 17px; font-weight: 800; }
.app-shell .brand-block span { color: var(--muted); font-size: 12px; }
.sidebar-search { display: flex; align-items: center; gap: 9px; margin: 0 18px 12px; padding: 0 11px; min-height: 40px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-soft); color: var(--muted); }
.sidebar-search > .icon { width: 16px; height: 16px; flex: 0 0 16px; }
.sidebar-search input { width: 100%; min-width: 0; border: 0; padding: 8px 0; background: transparent; font-size: 12px; color: var(--text); outline: 0; box-shadow: none; }
.sidebar-search:focus-within { border-color: var(--green-700); }
.app-shell .sidebar-search input:focus { border: 0; outline: 0; box-shadow: none; }
.app-shell .sidebar-nav { padding: 0 12px 18px; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.app-shell .nav-group { --nav-accent: var(--green-700); --nav-soft: var(--green-100); padding: 8px 0 10px; }
.app-shell .nav-group[data-tone='blue'] { --nav-accent: var(--blue); --nav-soft: var(--blue-soft); }
.app-shell .nav-group[data-tone='teal'] { --nav-accent: var(--teal); --nav-soft: var(--teal-soft); }
.app-shell .nav-group[data-tone='amber'] { --nav-accent: var(--amber); --nav-soft: var(--amber-soft); }
.app-shell .nav-group[data-tone='rose'] { --nav-accent: var(--rose); --nav-soft: var(--rose-soft); }
.app-shell .nav-group[data-tone='violet'] { --nav-accent: var(--violet); --nav-soft: var(--violet-soft); }
.app-shell .nav-group-label { color: var(--muted); margin: 8px 12px; font-size: 10px; font-weight: 700; }
.app-shell .nav-link { gap: 10px; padding: 8px 10px; min-height: 44px; font-size: 12px; font-weight: 600; color: var(--text); margin: 2px 0; border-radius: 6px; }
.app-shell .nav-link > span { min-width: 0; flex: 1; line-height: 1.45; }
.app-shell .nav-link .nav-symbol { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 6px; background: var(--nav-soft); color: var(--nav-accent); }
.app-shell .nav-symbol .icon { width: 17px; height: 17px; padding: 0; border: 0; border-radius: 0; flex: none; background: transparent; color: inherit; }
.app-shell .nav-link:hover { background: var(--surface-soft); color: var(--nav-accent); }
.app-shell .nav-link.active, .app-shell .nav-link[aria-current='page'] { color: var(--nav-accent); background: var(--nav-soft); box-shadow: inset 3px 0 var(--nav-accent); font-weight: 800; }
.app-shell .nav-link.active .nav-symbol { color: var(--nav-accent); background: var(--surface); }
.app-shell .nav-badge, .app-shell .nav-link.active .nav-badge { background: var(--nav-accent); color: var(--surface); height: 21px; min-width: 21px; border-radius: 5px; font-size: 10px; }
.app-shell .sidebar-footer { padding: 12px 22px; border-color: var(--border); background: var(--surface); }
.app-shell .sidebar-footer .role-chip { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; }
.app-shell .sidebar-footer .role-chip .icon { width: 16px; }
.app-shell .sidebar-footer .icon-btn { background: var(--surface-soft); color: var(--muted); border-color: var(--border); }
.app-shell header.topbar { min-height: 78px; padding: 14px 28px; gap: 20px; grid-template-columns: minmax(190px,1fr) minmax(280px,450px) auto; background: var(--surface); border-color: var(--border); }
.app-shell .topbar-title .topbar-module-icon { width: 40px; height: 40px; flex-basis: 40px; border: 0; background: var(--module-soft); border-radius: 8px; }
.app-shell .topbar-title h1 { font-size: 17px; font-weight: 800; }
.app-shell .topbar-title #view-kicker { font-size: 10px; font-weight: 600; }
.app-shell .global-search { background: var(--surface-soft); border-color: var(--border); min-height: 40px; }
.app-shell .topbar-utility { gap: 14px; }
.app-shell .topbar-tools { padding: 0; gap: 5px; background: none; border: 0; border-radius: 0; }
.app-shell .topbar-more-tools, .app-shell .topbar-secondary-tools { display: contents; }
.app-shell .topbar-more-toggle, .app-shell .topbar-secondary-tools .tool-label { display: none; }
.app-shell .topbar-tools .icon-btn { width: 36px; height: 38px; border-radius: 6px; border: 1px solid transparent; }
.app-shell .topbar-tools .icon-btn:hover { border-color: var(--border); background: var(--surface-soft); }
.app-shell .user-menu { padding-left: 18px; border-left: 1px solid var(--border); max-width: 175px; }
.app-shell .user-info strong { font-size: 12px; font-weight: 800; }
.app-shell .user-info span { font-size: 10px; }
.app-shell .view { padding: 26px 28px 48px; gap: 22px; width: 100%; max-width: 1800px; }
.app-shell .section-header { padding: 0 0 18px; border-color: var(--border); gap: 16px; }
.app-shell .section-header h2 { font-size: 23px; font-weight: 800; }
.app-shell .section-header p { color: var(--muted); font-size: 12px; }
.app-shell .operations-emblem { width: 42px; height: 42px; background: var(--module-soft); color: var(--module-accent); border: 0; border-radius: 8px; }
.app-shell .view .panel { background: transparent; border: 0; box-shadow: none; border-radius: 0; padding: 0; }
.app-shell .panel-title { margin-bottom: 16px; gap: 12px; }
.app-shell .panel-title h3 { font-size: 15px; font-weight: 800; color: var(--text); }
.app-shell .view .workflow-nav-panel { padding: 0 0 14px; border-bottom: 1px solid var(--border); }
.app-shell .workflow-nav-panel > .panel-title { display: none; }
.app-shell #view .process-filter-tabs.workflow-status-nav { display: flex; flex-wrap: wrap; gap: 6px; overflow: visible; padding: 0; border: 0; }
.app-shell #view .workflow-status-nav .process-filter-tab {
  display: inline-flex; align-items: center; flex: 0 0 auto; gap: 8px; min-height: 44px; max-width: 100%;
  padding: 9px 11px; border: 1px solid transparent; border-radius: 6px; background: transparent;
  color: var(--muted); box-shadow: none; transform: none; text-align: left;
}
.app-shell #view .workflow-status-nav strong { font-size: 12px; font-weight: 650; white-space: normal; overflow-wrap: anywhere; }
.app-shell #view .workflow-status-nav .workflow-tab-icon { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 24px; border-radius: 5px; background: var(--workflow-soft); color: var(--workflow-color); }
.app-shell #view .workflow-status-nav .workflow-tab-icon .icon { width: 15px; height: 15px; }
.app-shell #view .workflow-status-nav .workflow-tab-count { width: auto; min-width: 22px; height: 22px; padding: 0 5px; background: var(--surface-muted); font-size: 10px; border-radius: 5px; color: var(--muted); }
.app-shell #view .workflow-status-nav .process-filter-tab:hover { background: var(--surface); border-color: var(--border); }
.app-shell #view .workflow-status-nav .process-filter-tab.active, .app-shell #view .workflow-status-nav [aria-pressed='true'] { background: var(--surface); border-color: var(--border); border-bottom-color: var(--workflow-color); color: var(--workflow-color); box-shadow: 0 2px 3px #253c5a04; }
.app-shell #view .workflow-status-nav .active strong { font-weight: 800; }
.app-shell #view .workflow-status-nav .active .workflow-tab-count { color: var(--surface); background: var(--workflow-color); }
.app-shell :is(.catalog-area-nav,.warehouse-area-nav,.finance-studio-nav,.purchase-view-nav,.marketing-view-nav) { display: flex; flex-wrap: wrap; gap: 6px; background: transparent; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 0 0 12px; }
.app-shell :is(.catalog-area-nav,.warehouse-area-nav,.finance-studio-nav,.purchase-view-nav,.marketing-view-nav) button { min-height: 44px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); font-size: 12px; }
.app-shell :is(.catalog-area-nav,.warehouse-area-nav,.finance-studio-nav,.purchase-view-nav,.marketing-view-nav) button.active { background: var(--module-soft); border-color: transparent; color: var(--module-accent); font-weight: 800; }
.app-shell .table-toolbar { display: flex; align-items: center; gap: 12px; margin: 0; padding: 0 0 14px; }
.app-shell .table-toolbar .search-field { min-height: 42px; width: min(100%,340px); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.app-shell .table-count { background: none; padding: 4px 0; margin-left: auto; font-size: 12px; font-weight: 650; color: var(--muted); }
.app-shell .table-wrap { border: 1px solid var(--border); border-radius: 8px; background: var(--surface); box-shadow: 0 3px 12px #253c5a03; scrollbar-width: thin; }
.app-shell .data-table { font-size: 13px; }
.app-shell .data-table th { padding: 13px 16px; background: var(--surface-soft); color: var(--muted); font-size: 11px; font-weight: 700; border-bottom: 1px solid var(--border); }
.app-shell .data-table th button { font-weight: 700; gap: 9px; }
.app-shell .data-table td { border-bottom: 1px solid var(--line); padding: 16px; line-height: 1.6; }
.app-shell .data-table td strong { font-weight: 750; }
.app-shell .data-table td .numeric-value { white-space: nowrap; overflow-wrap: normal; }
.app-shell .data-table td small { font-size: 11px; color: var(--muted); line-height: 1.5; }
.app-shell .data-table tbody tr:hover { background: color-mix(in srgb,var(--module-soft) 30%,var(--surface)); }
.app-shell .data-table [data-action-column] { min-width: 100px; }
.app-shell .data-table tbody tr:hover [data-action-column] { background: color-mix(in srgb,var(--module-soft) 30%,var(--surface)); }
.app-shell .pagination { justify-content: flex-end; gap: 10px; padding: 14px 0 0; font-size: 12px; color: var(--muted); }
.app-shell .pagination-range { margin-right: auto; order: -1; }
.app-shell .pagination .icon-btn { width: 32px; height: 32px; min-height: 32px; background: var(--surface); border-color: var(--border); border-radius: 6px; }
.app-shell .pagination > span:not(.pagination-range) { font-size: 12px; font-weight: 650; }
.app-shell .metric-card { display: flex; align-items: flex-start; gap: 16px; min-width: 0; padding: 20px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); box-shadow: none; }
.app-shell .metric-card .metric-icon { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 8px; }
.app-shell .metric-card > div:last-child { display: grid; gap: 7px; min-width: 0; }
.app-shell .metric-card span { font-size: 12px; font-weight: 650; color: var(--muted); }
.app-shell .metric-card strong { font-size: 27px; line-height: 1.2; font-weight: 800; overflow-wrap: anywhere; }
.app-shell .metric-card small { font-size: 11px; font-weight: 500; }
.app-shell .status-pill, .action-dialog .status-pill { border-radius: 5px; padding: 4px 8px; font-size: 11px; font-weight: 700; border: 0; line-height: 1.5; }
.app-shell :is(.filter-group,.operations-filters) { border: 0; background: transparent; box-shadow: none; padding: 0; }
.app-shell :is(.filter-panel,.operations-filters[open] .filter-panel) { padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; gap: 14px; }
.app-shell :is([data-toggle-filters],.operations-filters > summary) { font-size: 12px; font-weight: 650; color: var(--muted); }
.app-shell .filter-panel label > span { font-size: 11px; font-weight: 700; color: var(--muted); }
:is(.app-shell,.action-dialog) :is(.form-field,.field) :is(input,select,textarea), .app-shell .filter-panel :is(input,select) { background: var(--surface); border-color: var(--border); border-radius: 6px; box-shadow: none; }
:is(.app-shell,.action-dialog) :is(input,select,textarea):focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; box-shadow: none; }
:is(.app-shell,.action-dialog) .btn { min-height: 40px; border-radius: 6px; font-size: 12px; font-weight: 700; padding: 9px 13px; gap: 7px; box-shadow: none; }
:is(.app-shell,.action-dialog) .btn.primary { background: var(--action-bg); border-color: var(--action-bg); color: #fff; }
:is(.app-shell,.action-dialog) .btn.primary-soft { background: var(--green-100); color: var(--green-800); border-color: transparent; }
:is(.app-shell,.action-dialog) .btn.action-read:not(.primary) { background: var(--blue-soft); color: var(--blue); border-color: transparent; }
:is(.app-shell,.action-dialog) .btn.action-edit:not(.primary) { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
:is(.app-shell,.action-dialog) .btn.action-upload:not(.primary) { background: var(--teal-soft); color: var(--teal); border-color: transparent; }
.app-shell .row-actions { gap: 6px; }
.app-shell .row-actions .btn { min-height: 34px; padding: 7px 10px; font-size: 11px; }
.app-shell .empty-state { background: transparent; border: 0; border-radius: 0; padding: 44px 20px; }
.app-shell .empty-icon { width: 48px; height: 48px; border-radius: 8px; background: var(--module-soft); color: var(--module-accent); box-shadow: none; }
.app-shell .empty-state h3 { font-size: 15px; font-weight: 750; }
.app-shell .empty-state p { font-size: 12px; }
.modal-backdrop:has(.action-dialog) { background: #17233580; backdrop-filter: none; }
.action-dialog { border-radius: 8px; box-shadow: var(--shadow); }
.action-dialog .modal-header { padding: 22px 28px; background: var(--surface); border-top: 4px solid var(--blue); }
.action-dialog.dialog-editor .modal-header { border-top-color: var(--green-700); }
.action-dialog.dialog-confirmation .modal-header { border-top-color: var(--amber); }
.action-dialog .dialog-emblem { width: 40px; height: 40px; flex-basis: 40px; border-radius: 8px; }
.action-dialog .modal-header h2 { font-size: 19px; font-weight: 800; }
.action-dialog .dialog-context { color: var(--muted); font-size: 10px; }
.action-dialog .modal-body { padding-top: 24px; background: var(--surface); }
.action-dialog .detail-grid { padding: 0; border: 0; background: transparent; gap: 0 24px; }
.action-dialog .detail-grid > div { padding: 14px 0; border-bottom-color: var(--line); }
.action-dialog .detail-grid > div > span { font-size: 11px; color: var(--muted); }
.action-dialog .detail-grid > div > strong { font-size: 14px; font-weight: 750; }
.action-dialog .form-actions .btn, .action-dialog .modal-footer .btn { font-size: 13px; min-height: 44px; }
.action-dialog :is(.form-section-title,.preview-section-heading) { font-weight: 800; }
.action-dialog .record-heading { background: var(--blue-soft); border: 0; border-radius: 6px; padding: 18px; }
.action-dialog .record-heading h3 { font-size: 19px; font-weight: 800; }
.action-dialog .record-heading-icon { background: var(--surface); border-radius: 8px; }
.action-dialog .record-facts { border: 0; padding: 0; background: transparent; gap: 0 24px; }
.action-dialog .record-facts > div { border: 0; border-bottom: 1px solid var(--line); padding: 13px 0; background: transparent; }
.action-dialog .record-facts dt { font-size: 11px; color: var(--muted); }
.action-dialog .record-facts dd { font-size: 13px; font-weight: 750; margin-top: 5px; }
.action-dialog .record-section { padding: 20px 0; border: 0; background: transparent; border-radius: 0; }
.action-dialog .record-section > h4 { font-size: 14px; font-weight: 800; }
.action-dialog .record-section > h4 .icon { color: var(--blue); width: 18px; }
.action-dialog .record-document { background: var(--surface-soft); box-shadow: none; border-radius: 6px; }
.action-dialog .record-note { border-radius: 6px; }
.action-dialog .record-timeline-node { box-shadow: none; }
.action-dialog .record-checklist > li { border-radius: 6px; }
body.auth-page {
  font-family: 'Manrope',system-ui,sans-serif;
  background-color: #eaf0f7;
  background-image: linear-gradient(123deg,#1b876b 0 20%,transparent 20% 100%),linear-gradient(123deg,#bde5d9 0 33%,#eaf0f7 33% 76%,#d2dcfb 76% 89%,#537bcc 89%);
}
.auth-page .auth-shell { border: 1px solid #dbe4ed; box-shadow: 0 20px 70px #1d365d20; }
.auth-page .auth-brand-simple { background: #fff; border-bottom: 1px solid #e4eaf1; margin-bottom: 28px; padding-bottom: 26px; }
.auth-page .auth-brand-simple h1 { color: #253241; font-size: 24px; font-weight: 800; }
.auth-page .auth-brand-simple h1 span { color: #137b59; font-size: 12px; font-weight: 800; }
.auth-page .auth-logo { width: 64px; height: 64px; flex-basis: 64px; border-radius: 8px; }
.auth-page .auth-mode-heading h2 { font-size: 23px; font-weight: 800; }
.auth-page .auth-owner-link { background: #ecf1fd; color: #3566cf; border: 0; }
.auth-page .auth-form input { background: #fafbfd; border-color: #dfe5ee; }
.tracking-page { font-family: 'Manrope',system-ui,sans-serif; background: #f4f6fa; }
.tracking-page .tracking-header { background: #fff; color: #242936; border-bottom: 3px solid #137b59; border-radius: 8px 8px 0 0; padding: 24px; }
.tracking-page .tracking-brand strong { font-weight: 800; }
.tracking-page .tracking-brand span { color: #667085; }
.tracking-page .tracking-search label { color: #667085; }
.tracking-page .tracking-button.primary { background: #137b59; color: #fff; }
.tracking-page .tracking-button.primary:hover { background: #17634b; }
.tracking-page .tracking-reference { border: 0; background: #eaf0ff; border-radius: 6px; }
.tracking-page .tracking-headline h1 { font-weight: 800; }
.tracking-page .tracking-step-icon { border-radius: 8px; }
.tracking-page .tracking-product { border-color: #ecf0f5; }
.tracking-page .tracking-product h3 { font-weight: 800; }
.tracking-page .tracking-product-labels { background: #edf0f5; color: #667085; }
.overview-page { gap: 24px; }
.overview-heading { padding: 0; border: 0; align-items: center; }
.overview-heading h2 { font-size: 25px; font-weight: 800; }
.overview-date { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.overview-date .icon { width: 16px; }
.overview-metrics { gap: 14px; }
.overview-metrics .metric-card { flex-direction: row-reverse; justify-content: space-between; padding: 20px 22px; border-top: 3px solid var(--blue); }
.overview-metrics .metric-card:nth-child(2) { border-top-color: var(--green-700); }
.overview-metrics .metric-card:nth-child(3) { border-top-color: var(--amber); }
.overview-metrics .metric-card:nth-child(4) { border-top-color: var(--teal); }
.overview-metrics .metric-card strong { font-size: 32px; }
.overview-command-grid { display: grid; grid-template-columns: minmax(0,2.2fr) minmax(280px,1fr); gap: 0 28px; }
.overview-page .overview-section { min-width: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: 24px 0; border-bottom: 1px solid var(--border); }
.overview-command-grid .overview-batches, .overview-command-grid .overview-queues { padding-top: 0; }
.overview-section-title h3 { font-size: 15px; font-weight: 800; gap: 9px; }
.overview-section-icon { width: 29px; height: 29px; border-radius: 6px; background: var(--blue-soft); color: var(--blue); }
.overview-link { font-size: 11px; color: var(--blue); }
.overview-batches .data-table { min-width: 700px; }
.overview-batches .data-table th, .overview-batches .data-table td { padding: 13px 12px; }
.overview-batches .data-table td { min-width: 90px; }
.overview-batches .data-table [data-action-column] { min-width: 48px; }
.overview-batches .table-wrap { border-radius: 8px; border: 1px solid var(--border); }
.overview-batches .table-toolbar { padding-bottom: 8px; min-height: 20px; }
.overview-order-progress { min-width: 85px; display: grid; gap: 7px; }
.overview-order-progress strong { font-size: 12px; font-weight: 750; }
.overview-order-progress .progress { height: 5px; min-height: 5px; }
.overview-order-progress .progress > b { display: none; }
.overview-order-progress.shipping .progress > span { background: var(--blue); }
.overview-stage { display: inline-block; background: var(--blue-soft); color: var(--blue); padding: 4px 7px; border-radius: 4px; font-size: 10px; font-weight: 700; }
.app-shell .overview-order-open.btn { width: 30px; height: 32px; min-height: 32px; padding: 6px; }
.overview-queue { text-decoration: none; color: var(--text); padding: 13px 0; border-bottom-color: var(--border); }
.overview-queue:hover { color: var(--blue); }
.overview-queue strong { font-size: 12px; font-weight: 700; }
.overview-queue b { font-size: 17px; font-weight: 800; }
.overview-queue > .icon { width: 16px; color: var(--muted); }
.overview-queue-icon { width: 32px; height: 32px; background: var(--green-100); }
.overview-queue-icon.tone-blue { background: var(--blue-soft); color: var(--blue); }
.overview-queue-icon.tone-amber { background: var(--amber-soft); color: var(--amber); }
.overview-attention { padding-top: 16px; margin-top: 10px; border: 0; }
.overview-attention p { font-size: 12px; }
.overview-chart-total strong { font-size: 27px; font-weight: 800; }
.overview-output .bar-chart { background: repeating-linear-gradient(to top,transparent 0 39px,var(--line) 39px 40px); }
.overview-output .bar-track { width: min(70%,38px); background: transparent; border-radius: 4px 4px 0 0; }
.overview-output .bar-track span { background: var(--green-700); }
.overview-distribution .donut-chart { flex-direction: row; align-items: center; gap: 20px; }
.overview-distribution .donut-ring { width: 125px; height: 125px; flex: 0 0 125px; }
.overview-distribution .donut-ring::after { inset: 16px; background: var(--bg); }
.overview-distribution .donut-center strong { font-size: 26px; font-weight: 800; }
.overview-distribution .donut-legend { grid-template-columns: minmax(0,1fr); gap: 10px; }
.overview-bottom { gap: 28px; }
.overview-stock-list > div { padding: 13px 0; gap: 10px; }
.overview-stock-symbol { background: var(--amber-soft); color: var(--amber); }
.overview-activity article > span { background: var(--violet-soft); color: var(--violet); border-radius: 6px; }
.overview-activity strong { font-size: 12px; font-weight: 650; }
.overview-activity small, .overview-activity time { font-size: 11px; }
@media (max-width: 1200px) {
  .app-shell header.topbar { grid-template-columns: minmax(165px,1fr) minmax(210px,360px) auto; gap: 12px; padding-inline: 22px; }
  .app-shell .user-info { display: none; }
  .app-shell .user-menu { padding-left: 12px; }
  .overview-command-grid { grid-template-columns: minmax(0,1.7fr) minmax(250px,1fr); gap: 0 22px; }
  .overview-distribution .donut-chart { flex-direction: column; }
}
@media (max-width: 1099px) {
  .app-shell header.topbar { grid-template-columns: 38px minmax(160px,1fr) auto auto; }
  .app-shell .topbar > .mobile-menu { display: grid; }
  .app-shell .topbar-utility { gap: 8px; }
  .app-shell .global-search { display: none; }
  .overview-command-grid { grid-template-columns: minmax(0,1.7fr) minmax(240px,1fr); }
}
@media (max-width: 760px) {
  .app-shell header.topbar { position: sticky; top: 0; z-index: 30; padding: 10px 16px; gap: 10px; min-height: 68px; grid-template-columns: 34px minmax(0,1fr) auto; }
  .app-shell .topbar-title { gap: 8px; }
  .app-shell .topbar-title .topbar-module-icon { display: none; }
  .app-shell .topbar-title h1 { font-size: 15px; }
  .app-shell .topbar-title #view-kicker { display: none; }
  .app-shell .topbar-utility { grid-column: auto; grid-row: auto; justify-content: flex-end; }
  .app-shell .topbar-tools { gap: 2px; }
  .app-shell .topbar-tools .icon-btn { width: 34px; height: 40px; }
  .app-shell .topbar-more-tools { display: block; }
  .app-shell .topbar-more-toggle { display: inline-flex; }
  .app-shell .topbar-secondary-tools { display: none; position: fixed; top: 74px; right: 16px; z-index: 60; width: min(272px,calc(100vw - 32px)); gap: 4px; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); }
  .app-shell .tools-open .topbar-secondary-tools { display: grid; }
  .app-shell .topbar-secondary-tools .tool-label { display: block; font-size: 13px; color: var(--text); }
  .app-shell .topbar-tools .topbar-secondary-tools .icon-btn { display: flex; justify-content: flex-start; gap: 12px; width: 100%; height: auto; min-height: 46px; padding: 10px 12px; }
  .app-shell .user-menu { display: flex; grid-column: 3; grid-row: 1; padding: 0; margin: 0; border: 0; }
  .app-shell header.topbar { grid-template-columns: 34px minmax(0,1fr) auto auto; grid-template-rows: auto; }
  .app-shell header.topbar .topbar-utility { grid-column: 3; grid-row: 1; }
  .app-shell header.topbar .user-menu { grid-column: 4; grid-row: 1; }
  .app-shell .avatar { width: 32px; height: 32px; flex-basis: 32px; }
  .app-shell .view { padding: 20px 16px 40px; gap: 20px; }
  .app-shell .section-header h2 { font-size: 20px; }
  .app-shell .section-header { gap: 12px; }
  .app-shell .section-actions { flex-wrap: wrap; }
  .app-shell #view .process-filter-tabs.workflow-status-nav { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; padding: 1px 0 6px; }
  .app-shell #view .workflow-status-nav .process-filter-tab { max-width: none; white-space: nowrap; }
  .app-shell #view .workflow-status-nav strong { white-space: nowrap; }
  .app-shell :is(.catalog-area-nav,.warehouse-area-nav,.finance-studio-nav,.purchase-view-nav,.marketing-view-nav) { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: thin; }
  .app-shell :is(.catalog-area-nav,.warehouse-area-nav,.finance-studio-nav,.purchase-view-nav,.marketing-view-nav) button { flex: 0 0 auto; }
  .app-shell .metric-card { padding: 16px; gap: 12px; }
  .app-shell .metric-card strong { font-size: 24px; }
  .app-shell .table-toolbar { gap: 8px; }
  .app-shell .table-toolbar .search-field { width: min(100%,320px); flex: 1; min-width: 120px; }
  .app-shell .table-toolbar input { font-size: 16px; }
  .app-shell .row-actions .btn { min-height: 44px; font-size: 12px; }
  .app-shell .pagination { flex-wrap: wrap; gap: 8px; }
  .app-shell .pagination .icon-btn { width: 40px; height: 40px; min-height: 40px; }
  .action-dialog .modal-header { padding: 18px; }
  .action-dialog .modal-header h2 { font-size: 17px; }
  .action-dialog .modal-body { padding-top: 18px; }
  .overview-heading { flex-wrap: wrap; gap: 8px; }
  .overview-heading h2 { font-size: 23px; }
  .overview-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .overview-metrics .metric-card { padding: 15px; gap: 8px; }
  .overview-metrics .metric-icon { width: 28px; height: 28px; flex-basis: 28px; }
  .overview-metrics .metric-icon .icon { width: 16px; height: 16px; }
  .overview-metrics .metric-card strong { font-size: 28px; }
  .overview-metrics .metric-card span { font-size: 11px; }
  .overview-metrics .metric-card small { display: none; }
  .overview-command-grid, .overview-bottom { grid-template-columns: minmax(0,1fr); gap: 0; }
  .overview-command-grid .overview-queues { padding-top: 24px; }
  .overview-queue-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 18px; }
  .overview-queue { grid-template-columns: 28px minmax(0,1fr) auto; gap: 7px; }
  .overview-queue > .icon { display: none; }
  .overview-queue-icon { width: 28px; height: 28px; }
  .overview-distribution .donut-chart { flex-direction: row; padding: 12px 0; }
  .overview-section-title { gap: 8px; }
  .overview-stock-list > div { grid-template-columns: 28px minmax(0,1fr) auto; }
  .overview-stock-list .status-pill { grid-column: 2 / -1; justify-self: start; }
}
@media (max-width: 360px) {
  .app-shell header.topbar { padding-inline: 12px; gap: 7px; }
  .app-shell .topbar-tools .icon-btn { width: 30px; }
  .app-shell .view { padding-inline: 12px; }
  .overview-queue-list { grid-template-columns: minmax(0,1fr); }
  .overview-metrics .metric-card { flex-direction: column; }
  .overview-distribution .donut-chart { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { .app-shell *, .action-dialog * { scroll-behavior: auto; transition: none; animation: none; } }
@media print { .sidebar-search, .pagination-range { display: none; } }
