/* OROX Command Hub V2 — approved art-directed composition, dashboard scoped.
   Workspace widget IDs/order and API authorization remain the source of truth. */
#dashboardView.command-hub-v2{--hub2-stroke:rgba(76,145,237,.28);--hub2-ink:#f3f8ff;--hub2-dim:#aebfdb;--hub2-deep:#07162e;gap:14px;min-width:0}
#dashboardView.command-hub-v2 > *{min-width:0}
#dashboardView.command-hub-v2 #commandHubStage{order:0;display:grid;grid-template-columns:minmax(0,1fr) 186px;gap:12px;direction:ltr;align-items:stretch;min-width:0}
#dashboardView.command-hub-v2 #commandHubStage > .hero{position:relative;display:flex;align-items:center;justify-content:flex-start;min-width:0;min-height:230px;padding:22px clamp(18px,2.8vw,38px);overflow:hidden;border:1px solid #277ce376;border-radius:22px;isolation:isolate;direction:rtl;background:linear-gradient(270deg,rgba(4,18,46,.94) 0%,rgba(5,20,49,.88) 24%,rgba(9,23,55,.45) 52%,rgba(4,15,42,.08) 88%),url('/dashboard-visuals/v2/01_OROX_Hero_Headquarters.webp') center center/cover no-repeat,#061935;box-shadow:inset 0 1px 0 #a3daff29,0 12px 29px #00102d65}
html[dir="ltr"] #dashboardView.command-hub-v2 #commandHubStage > .hero{direction:ltr;background-image:linear-gradient(90deg,rgba(4,18,46,.94) 0%,rgba(5,20,49,.88) 24%,rgba(9,23,55,.45) 52%,rgba(4,15,42,.08) 88%),url('/dashboard-visuals/v2/01_OROX_Hero_Headquarters.webp')}
#dashboardView.command-hub-v2 #commandHubStage > .hero::after{content:"";position:absolute;z-index:0;inset:auto -8% -98px -8%;height:160px;background:radial-gradient(ellipse at center,#076ad54f,transparent 64%);pointer-events:none}
#dashboardView.command-hub-v2 #commandHubStage .command-hub-copy{position:relative;z-index:1;display:flex;flex-direction:column;align-items:flex-start;text-align:start;gap:9px;width:min(63%,570px);min-width:0;margin:0}
#dashboardView.command-hub-v2 #commandHubStage .command-hub-label{display:inline-flex;align-items:center;max-width:100%;min-height:26px;padding:5px 12px;border:1px solid #3ba6ed7d;border-radius:50px;background:#08467c9e;color:#cbf4ff;font-size:10px;letter-spacing:.035em;font-weight:850;box-shadow:0 0 20px #1b69fa44}
#dashboardView.command-hub-v2 #commandHubStage .command-hub-greeting{font-size:clamp(22px,2.35vw,37px);font-weight:900;line-height:1.2;letter-spacing:-.02em;color:#fff;margin:2px 0 0;overflow-wrap:anywhere;text-shadow:0 2px 12px #00142eaa}
#dashboardView.command-hub-v2 #commandHubStage #dashboardHeroTitle{font-size:13px;font-weight:850;color:#42d8f4;margin:0}
#dashboardView.command-hub-v2 #commandHubStage #dashboardHeroIntro{color:#e5edfd;font-size:12px;line-height:1.7;max-width:460px;margin:0;text-wrap:balance}
#dashboardView.command-hub-v2 #commandHubStage .command-hub-date{padding:5px 11px;border:1px solid #98ccff42;border-radius:8px;background:rgba(5,30,64,.76);color:#ebf7ff;font-size:11px;font-weight:700}
#dashboardView.command-hub-v2 .command-hub-hero-art{display:none!important}
#dashboardView.command-hub-v2 .command-hub-x-tile{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;min-width:0;min-height:230px;padding:12px 10px;overflow:hidden;border:1px solid #6f61d0a3;border-radius:22px;color:#eaf7ff;background:radial-gradient(circle at 65% 35%,#1739acaa,transparent 72%),#06142e;box-shadow:inset 0 1px 0 #dcbaff31,0 12px 29px #00102d65}
#dashboardView.command-hub-v2 .command-hub-x-image{position:absolute;z-index:-1;inset:0;width:100%;height:100%;object-fit:cover;object-position:center center;pointer-events:none}
#dashboardView.command-hub-v2 .command-hub-x-tile::after{content:"";position:absolute;inset:42% 0 0;background:linear-gradient(180deg,transparent,#050d2ac9 85%);z-index:-1}
#dashboardView.command-hub-v2 .command-hub-x-name{font-size:19px;letter-spacing:.16em;font-weight:900;text-shadow:0 1px 14px #000a}
#dashboardView.command-hub-v2 .command-hub-x-caption{font-size:10px;color:#d2e8ff;text-align:center;font-weight:700;line-height:1.5}
#dashboardView.command-hub-v2 #dashboardWorkspaceToolbar{order:2;margin:0}
#dashboardView.command-hub-v2 #dashboardFavorites{order:2;margin:0}
#dashboardView.command-hub-v2 #dashboardDailyBrief{order:7;margin:0}
#dashboardView.command-hub-v2 #dashboardPriority{order:7;margin:0;scroll-margin-top:80px}
#dashboardView.command-hub-v2.command-hub-onboarding-active #dashboardPriority{order:1}
#dashboardView.command-hub-v2 #dashboardMetrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin:0}
#dashboardView.command-hub-v2 #dashboardMetrics > .executive-kpi[data-kpi="receivables"],
#dashboardView.command-hub-v2 #dashboardMetrics > .executive-kpi[data-kpi="overdue"],
#dashboardView.command-hub-v2 #dashboardMetrics > .executive-kpi[data-kpi="gross_profit"]{order:10}
#dashboardView.command-hub-v2:not(.workspace-editing):not(.command-hub-more-open) #dashboardMetrics > .executive-kpi[data-kpi="receivables"]:not([data-workspace-configured="true"]),
#dashboardView.command-hub-v2:not(.workspace-editing):not(.command-hub-more-open) #dashboardMetrics > .executive-kpi[data-kpi="overdue"]:not([data-workspace-configured="true"]),
#dashboardView.command-hub-v2:not(.workspace-editing):not(.command-hub-more-open) #dashboardMetrics > .executive-kpi[data-kpi="gross_profit"]:not([data-workspace-configured="true"]),
#dashboardView.command-hub-v2 #dashboardMetrics > .dashboard-skeleton-card:nth-child(n+5){display:none}
#dashboardView.command-hub-v2 #dashboardMetrics .executive-kpi{position:relative;display:flex;flex-direction:column;justify-content:flex-start;gap:7px;min-height:138px;padding:15px 16px;overflow:hidden;border:1px solid var(--hub2-stroke);border-radius:16px;background:radial-gradient(ellipse at 100% 0%,#2b7bc92b,transparent 65%),linear-gradient(143deg,#0d2244,#08182f)!important;box-shadow:inset 0 1px 0 #ffffff10,0 8px 23px #020a2442;transition:transform .18s ease,border-color .18s ease;color:var(--hub2-ink)}
#dashboardView.command-hub-v2 #dashboardMetrics .executive-kpi:hover{transform:translateY(-2px);border-color:#26b9df89}
#dashboardView.command-hub-v2 #dashboardMetrics .executive-kpi-head{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#b9cfeb;font-weight:750;font-size:12px}
#dashboardView.command-hub-v2 #dashboardMetrics .executive-kpi-icon{display:grid;place-items:center;width:29px;height:29px;min-width:29px;border-radius:9px;background:#125ea14f;color:#4ccaf3}
#dashboardView.command-hub-v2 #dashboardMetrics .executive-kpi-value{color:#fff;font-size:clamp(18px,1.55vw,25px);font-weight:900;line-height:1.3;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
#dashboardView.command-hub-v2 #dashboardMetrics .kpi-sparkline{height:29px;min-height:29px;margin:auto 0 0;max-width:100%;stroke:#3faff6;stroke-width:2.2;fill:none;opacity:.94}
#dashboardView.command-hub-v2 #dashboardMetrics .tone-green .kpi-sparkline{stroke:#2ad5b7}
#dashboardView.command-hub-v2 #dashboardMetrics .tone-red .kpi-sparkline{stroke:#f29a8a}
#dashboardView.command-hub-v2 #dashboardMetrics .executive-kpi-foot{min-height:15px;color:#93afcf;font-size:10px;gap:7px;display:flex;align-items:center;justify-content:space-between}
#dashboardView.command-hub-v2 #dashboardMetrics [data-workspace-size="large"]{grid-column:1/-1}
#dashboardView.command-hub-v2 #commandHubQuick{min-width:0;display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:0;padding:3px 0;background:none;border:0}
#dashboardView.command-hub-v2 #commandHubQuick .command-hub-quick-label{color:var(--text);font-size:13px;font-weight:850;white-space:nowrap;margin-inline-end:5px}
#dashboardView.command-hub-v2 #commandHubQuick #dashboardHeroActions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0;min-width:0;flex:1 1 auto}
#dashboardView.command-hub-v2 #commandHubQuick #dashboardHeroActions .btn{min-height:39px;padding:8px 12px;border-radius:11px;white-space:nowrap;font-size:11px;font-weight:800;color:#f6faff;background:linear-gradient(135deg,#103f83,#11265a);border:1px solid #4392fb73;box-shadow:inset 0 1px 0 #ffffff23}
#dashboardView.command-hub-v2 #commandHubQuick #dashboardHeroActions [data-go="pos"]{background:linear-gradient(135deg,#09679e,#074375);border-color:#2cc3ee8f}
#dashboardView.command-hub-v2 #commandHubQuick #dashboardHeroActions [data-new-entity="customer"]{background:linear-gradient(135deg,#195d52,#0f3d47);border-color:#36c7a38c}
#dashboardView.command-hub-v2 #commandHubQuick #dashboardHeroActions [data-go="invoices"],
#dashboardView.command-hub-v2 #commandHubQuick #dashboardHeroActions [data-new-entity="sales_order"]{background:linear-gradient(135deg,#7454bc,#3a367f);border-color:#a894ee80}
#dashboardView.command-hub-v2 #commandHubQuick #dashboardHeroActions [data-go="operations"]{background:linear-gradient(135deg,#7c5425,#5c391d);border-color:#cfa96680}
#dashboardView.command-hub-v2 #commandHubQuick #dashboardHeroActions [data-ws-action="edit"]{background:linear-gradient(135deg,#103363,#09234e);border-color:#35c9f6;color:#edfcff;box-shadow:inset 0 0 12px #0c76b666}
#dashboardView.command-hub-v2 #commandHubQuick #dashboardHeroActions .btn:hover{filter:brightness(1.14)}
#dashboardView.command-hub-v2 #commandHubShortcuts{display:none}
#dashboardView.command-hub-v2 .command-hub-more-metrics{margin-inline-start:auto;min-height:35px;border:1px solid #356b9e77;border-radius:10px;background:#102346;color:#d6eafd;padding:6px 12px;font:inherit;font-size:11px;font-weight:800;cursor:pointer}
#dashboardView.command-hub-v2 .command-hub-more-metrics[hidden]{display:none!important}
#dashboardView.command-hub-v2 .command-hub-more-metrics:hover{border-color:#38d3f6}
#dashboardView.command-hub-v2 #dashboardVisuals{grid-template-columns:repeat(5,minmax(0,1fr));gap:11px;margin:0;min-width:0}
#dashboardView.command-hub-v2 #dashboardVisuals .dashboard-visual{position:relative;min-width:0;min-height:244px;display:flex;align-items:flex-end;overflow:hidden;isolation:isolate;border:1px solid #4681bd88;border-radius:16px;background:#0a1e42;box-shadow:inset 0 1px 0 #ffffff30,0 9px 25px #0212296b;transition:transform .18s ease,border-color .18s ease}
#dashboardView.command-hub-v2:not(.workspace-editing) #dashboardVisuals .dashboard-visual{cursor:pointer}
#dashboardView.command-hub-v2 #dashboardVisuals .dashboard-visual:hover{transform:translateY(-3px);border-color:#48d1ffbd}
#dashboardView.command-hub-v2 #dashboardVisuals .dashboard-visual-art{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center 28%;filter:none;pointer-events:none;z-index:0}
#dashboardView.command-hub-v2 #dashboardVisuals .dashboard-visual::after{content:"";position:absolute;inset:30% 0 0;background:linear-gradient(180deg,transparent,#03122e94 36%,#05132de9 74%,#061229 100%);pointer-events:none;z-index:0}
#dashboardView.command-hub-v2 #dashboardVisuals .dashboard-visual-copy{position:relative;z-index:1;display:flex;flex-direction:column;justify-content:flex-end;gap:6px;width:100%;min-width:0;padding:58px 12px 12px;background:none}
#dashboardView.command-hub-v2 #dashboardVisuals .dashboard-visual-copy h3{font-size:14px;line-height:1.3;font-weight:900;color:#fff;margin:0;text-shadow:0 2px 5px #010f2d}
#dashboardView.command-hub-v2 #dashboardVisuals .dashboard-visual-copy p{font-size:10px;line-height:1.55;color:#d2e3fc;margin:0;min-height:15px}
#dashboardView.command-hub-v2 #dashboardVisuals .dashboard-visual-stats{display:flex;gap:4px;flex-wrap:wrap}
#dashboardView.command-hub-v2 #dashboardVisuals .dashboard-visual-stat{flex:1 1 70px;min-width:0;border:1px solid #6f9dd249;border-radius:7px;padding:4px 6px;background:#081a36a8}
#dashboardView.command-hub-v2 #dashboardVisuals .dashboard-visual-stat small{display:block;font-size:8px;line-height:1.3;color:#d1e5fc}
#dashboardView.command-hub-v2 #dashboardVisuals .dashboard-visual-stat b{display:block;color:#fff;font-size:9px;line-height:1.4;overflow-wrap:anywhere}
#dashboardView.command-hub-v2 #dashboardVisuals .dashboard-visual-actions{display:flex;justify-content:flex-end}
#dashboardView.command-hub-v2 #dashboardVisuals .dashboard-visual-actions .btn{color:#fff;background:#1a61a9bd;border:1px solid #35b3ef8c;border-radius:8px;min-height:28px;font-size:10px;padding:4px 10px;font-weight:800;cursor:pointer}
#dashboardView.command-hub-v2 #dashboardAnalytics{gap:11px;min-width:0}
#dashboardView.command-hub-v2:not(.workspace-editing):not(.command-hub-analytics-open) #dashboardAnalytics .dashboard-analysis-extra:not([data-workspace-configured="true"]){display:none}
#dashboardView.command-hub-v2 .command-hub-analytics-actions{display:flex;justify-content:center;min-width:0;margin:-4px 0 0}
#dashboardView.command-hub-v2 .command-hub-analytics-toggle{min-height:34px;border:1px solid #3e7aa69b;border-radius:11px;padding:7px 16px;background:linear-gradient(145deg,#163d68,#0b2343);color:#d8f3ff;font:inherit;font-size:11px;font-weight:800;cursor:pointer}
#dashboardView.command-hub-v2 .command-hub-analytics-toggle[hidden]{display:none!important}
#dashboardView.command-hub-v2 .command-hub-analytics-toggle:hover{border-color:#2ccfea}

#dashboardView.command-hub-v2 #dashboardAnalytics .executive-card,
#dashboardView.command-hub-v2 #dashboardFollowup .executive-card,
#dashboardView.command-hub-v2 #dashboardFinancial .dashboard-secondary-section,
#dashboardView.command-hub-v2 #dashboardTail .card,
#dashboardView.command-hub-v2 #dashboardPriority > *{border:1px solid var(--hub2-stroke);border-radius:17px;background:linear-gradient(142deg,#0d2343,#09172f)!important;color:#eef6ff;box-shadow:inset 0 1px 0 #ffffff12,0 8px 20px #000c2839}
#dashboardView.command-hub-v2 #dashboardAnalytics .exec-line-chart .exec-line{fill:none!important}
#dashboardView.command-hub-v2 #dashboardAnalytics .exec-line-chart path.exec-line{stroke-width:3}
#dashboardView.command-hub-v2 #dashboardDailyBrief .workspace-daily-brief{margin:0;color:var(--text)}
#dashboardView.command-hub-v2 .executive-card:focus-within,
#dashboardView.command-hub-v2 .dashboard-visual:focus-within,
#dashboardView.command-hub-v2 .executive-kpi:focus-visible{outline:2px solid #33cefa;outline-offset:2px}
body.command-hub-current:not(.platform-mode) .topbar{border-bottom:1px solid #315f9933;background:linear-gradient(95deg,#08182e,#0a2140);box-shadow:0 5px 18px #000a272b}
body.command-hub-current:not(.platform-mode) .topbar .global-search-box{border-radius:12px;border-color:#478ac54d;background:#112b4b;color:#ebf7ff}
body.command-hub-current:not(.platform-mode) .topbar #globalSearch{color:#ebf7ff}
body.command-hub-current:not(.platform-mode) .topbar #globalSearch::placeholder{color:#9ebbd9}
body.command-hub-current:not(.platform-mode) .command-hub-ai-button,
body.command-hub-current:not(.platform-mode) .command-hub-top-icon{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:none;min-height:36px;border:1px solid #367aaf6b;border-radius:10px;background:linear-gradient(135deg,#10365e,#0d2344);color:#d4edff;padding:7px 10px;font:inherit;font-size:11px;font-weight:850;cursor:pointer}
body.command-hub-current:not(.platform-mode) .command-hub-ai-button{border-color:#6959c88e;background:linear-gradient(125deg,#372680,#143b78);color:#f3edff}
body.command-hub-current:not(.platform-mode) .command-hub-ai-symbol{font-size:16px;color:#46ddff}
body.command-hub-current:not(.platform-mode) .command-hub-top-icon{width:36px;min-width:36px;padding:7px;position:relative}
body.command-hub-current:not(.platform-mode) .command-hub-top-icon svg{width:17px;height:17px}
body.command-hub-current:not(.platform-mode) .command-hub-top-icon.has-alert i{position:absolute;top:6px;right:6px;width:6px;height:6px;border-radius:50%;background:#ffb978;box-shadow:0 0 8px #ffa05ba9}
body.command-hub-current:not(.platform-mode) .command-hub-company{display:flex;flex-direction:column;justify-content:center;gap:3px;max-width:170px;min-width:0;padding:0 8px;border-inline-start:1px solid #4c81b95c;white-space:nowrap}
body.command-hub-current:not(.platform-mode) .command-hub-company-name{font-size:11px;line-height:1.2;overflow:hidden;text-overflow:ellipsis;color:#f4f8ff}
body.command-hub-current:not(.platform-mode) .command-hub-company-branch{font-size:9px;color:#afcce6;overflow:hidden;text-overflow:ellipsis}
body.command-hub-current:not(.platform-mode) .command-hub-company[hidden],
body.command-hub-current:not(.platform-mode) .command-hub-ai-button[hidden]{display:none!important}
body:not(.command-hub-current) .command-hub-ai-button,
body:not(.command-hub-current) .command-hub-top-icon,
body:not(.command-hub-current) .command-hub-company{display:none!important}
body.command-hub-current:not(.platform-mode) #sidebar{background:linear-gradient(180deg,#06142b,#0a2143 62%,#080f2c)}
/* Sidebar photo is decorative background, behind navigation in every tenant view. */
body:not(.platform-mode) #sidebar .nav-scroll{position:relative;z-index:2}
body:not(.platform-mode) #sidebar .sidebar-brand{position:relative;z-index:3}
body:not(.platform-mode) #sidebar .command-hub-sidebar-art{
  position:absolute;inset-inline:0;bottom:0;height:min(60%,480px);
  overflow:hidden;border:0;border-radius:0;pointer-events:none;opacity:.64;z-index:1;
}
body:not(.platform-mode) #sidebar .command-hub-sidebar-art::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,#071b37f2 0%,#071b377a 26%,#071b373d 58%,#071b37d9 100%);
}
body:not(.platform-mode) #sidebar .command-hub-sidebar-art img{
  display:block;width:100%;height:100%;object-fit:cover;object-position:center 45%;
}
body:not(.platform-mode) #sidebar .sidebar-plan-entry{position:relative;z-index:3}
body.command-hub-current:not(.platform-mode) #sidebar .nav-quick.active{border-color:#348ffeb9;background:linear-gradient(105deg,#155cb2,#082d69)!important;box-shadow:inset 0 1px 0 #e6faff35,0 4px 15px #086bca54}
html[data-theme="light"] #dashboardView.command-hub-v2{--hub2-stroke:#c1d5ed}
html[data-theme="light"] #dashboardView.command-hub-v2 #dashboardMetrics .executive-kpi,
html[data-theme="light"] #dashboardView.command-hub-v2 #dashboardAnalytics .executive-card,
html[data-theme="light"] #dashboardView.command-hub-v2 #dashboardFollowup .executive-card,
html[data-theme="light"] #dashboardView.command-hub-v2 #dashboardFinancial .dashboard-secondary-section,
html[data-theme="light"] #dashboardView.command-hub-v2 #dashboardTail .card,
html[data-theme="light"] #dashboardView.command-hub-v2 #dashboardPriority > *{background:linear-gradient(145deg,#fff,#eef5ff)!important;color:#122f51;box-shadow:0 5px 17px #092c5d12}
html[data-theme="light"] #dashboardView.command-hub-v2 #dashboardMetrics .executive-kpi-head{color:#385b7d}
html[data-theme="light"] #dashboardView.command-hub-v2 #dashboardMetrics .executive-kpi-value{color:#163557}
html[data-theme="light"] #dashboardView.command-hub-v2 #dashboardMetrics .executive-kpi-foot{color:#496b8a}
html[data-theme="light"] #dashboardView.command-hub-v2 .command-hub-more-metrics{background:#e8f3ff;color:#17446e}
html[data-theme="light"] body.command-hub-current:not(.platform-mode) .topbar{background:#f7faff;border-bottom-color:#ccdbed}
html[data-theme="light"] body.command-hub-current:not(.platform-mode) .topbar .global-search-box{background:#f4f8ff;border-color:#b4cbe4}
html[data-theme="light"] body.command-hub-current:not(.platform-mode) .topbar #globalSearch{color:#113252}
html[data-theme="light"] body.command-hub-current:not(.platform-mode) .topbar #globalSearch::placeholder{color:#54718e}
html[data-theme="light"] body.command-hub-current:not(.platform-mode) .command-hub-top-icon{background:#eaf4ff;color:#20496d}
html[data-theme="light"] body.command-hub-current:not(.platform-mode) .command-hub-company-name{color:#173b62}
html[data-theme="light"] body.command-hub-current:not(.platform-mode) .command-hub-company-branch{color:#54718e}
@media(max-width:1430px){
 #dashboardView.command-hub-v2 #dashboardVisuals{grid-template-columns:repeat(5,minmax(0,1fr))}
 #dashboardView.command-hub-v2 #commandHubStage{grid-template-columns:minmax(0,1fr) 155px}
 #dashboardView.command-hub-v2 #dashboardVisuals .dashboard-visual{min-height:223px}
 #dashboardView.command-hub-v2 #dashboardVisuals .dashboard-visual-copy{padding:52px 10px 10px}
}
@media(max-width:1080px){
 #dashboardView.command-hub-v2 #dashboardMetrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 #dashboardView.command-hub-v2 #dashboardVisuals{grid-template-columns:repeat(3,minmax(0,1fr))}
 #dashboardView.command-hub-v2 #commandHubStage{grid-template-columns:minmax(0,1fr) 136px}
 #dashboardView.command-hub-v2 #commandHubStage > .hero,#dashboardView.command-hub-v2 .command-hub-x-tile{min-height:208px}
 body.command-hub-current:not(.platform-mode) .command-hub-company{max-width:110px}
}
@media(max-width:760px){
 #dashboardView.command-hub-v2 #dashboardVisuals{grid-template-columns:repeat(2,minmax(0,1fr))}
 #dashboardView.command-hub-v2 #dashboardVisuals [data-workspace-size="auto"],
 #dashboardView.command-hub-v2 #dashboardVisuals [data-workspace-size="small"]{grid-column:auto}
 #dashboardView.command-hub-v2 #dashboardVisuals [data-workspace-size="medium"],
 #dashboardView.command-hub-v2 #dashboardVisuals [data-workspace-size="large"]{grid-column:1/-1}
 #dashboardView.command-hub-v2 #commandHubStage{grid-template-columns:minmax(0,1fr) 96px;gap:8px}
 #dashboardView.command-hub-v2 #commandHubStage > .hero{min-height:184px;padding:16px;border-radius:15px}
 #dashboardView.command-hub-v2 #commandHubStage .command-hub-copy{width:100%;gap:5px}
 #dashboardView.command-hub-v2 #commandHubStage .command-hub-greeting{font-size:21px}
 #dashboardView.command-hub-v2 #commandHubStage #dashboardHeroIntro{font-size:10px;line-height:1.55}
 #dashboardView.command-hub-v2 #commandHubStage .command-hub-label{font-size:8px;padding:3px 7px;min-height:20px}
 #dashboardView.command-hub-v2 #commandHubStage .command-hub-date{font-size:9px;padding:4px 6px}
 #dashboardView.command-hub-v2 .command-hub-x-tile{min-height:184px;border-radius:15px;padding:6px 4px}
 #dashboardView.command-hub-v2 .command-hub-x-name{font-size:12px}
 #dashboardView.command-hub-v2 .command-hub-x-caption{font-size:8px}
 #dashboardView.command-hub-v2 #dashboardMetrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #dashboardView.command-hub-v2 #dashboardMetrics .executive-kpi{min-height:108px;padding:10px;gap:4px}
 #dashboardView.command-hub-v2 #dashboardMetrics .executive-kpi-value{font-size:17px}
 #dashboardView.command-hub-v2 #dashboardMetrics .kpi-sparkline{height:23px;min-height:23px}
 #dashboardView.command-hub-v2 #dashboardVisuals .dashboard-visual{min-height:212px}
 #dashboardView.command-hub-v2 #dashboardVisuals .dashboard-visual-copy h3{font-size:12px}
 #dashboardView.command-hub-v2 #dashboardVisuals .dashboard-visual-copy p{font-size:9px}
 #dashboardView.command-hub-v2 #commandHubQuick #dashboardHeroActions{flex:1 1 100%}
 #dashboardView.command-hub-v2 #commandHubQuick #dashboardHeroActions .btn{min-height:35px;padding:7px 9px;font-size:10px}
 body.command-hub-current:not(.platform-mode) .command-hub-company{display:none}
 body.command-hub-current:not(.platform-mode) .command-hub-ai-button{padding:7px}
 body:not(.platform-mode) #sidebar .command-hub-sidebar-art{height:min(62%,440px);opacity:.68}
}
@media(max-width:380px){
 #dashboardView.command-hub-v2 #commandHubStage{grid-template-columns:minmax(0,1fr) 76px;gap:7px}
 #dashboardView.command-hub-v2 #commandHubStage > .hero{padding:12px}
 #dashboardView.command-hub-v2 #commandHubStage .command-hub-greeting{font-size:18px}
 #dashboardView.command-hub-v2 #commandHubStage #dashboardHeroIntro{font-size:9px}
 #dashboardView.command-hub-v2 .command-hub-x-name{font-size:10px}
 #dashboardView.command-hub-v2 .command-hub-x-caption{display:none}
 #dashboardView.command-hub-v2 #dashboardVisuals{grid-template-columns:repeat(2,minmax(0,1fr))}
 #dashboardView.command-hub-v2 #dashboardVisuals .dashboard-visual-copy{padding:50px 7px 7px}
 #dashboardView.command-hub-v2 #dashboardVisuals .dashboard-visual{min-height:190px}
}
/* Keep the existing mobile search, identity, logout and theme controls usable after
   adding the Command Hub notification and AI controls to the shared top bar. */
@media(max-width:680px){
 body.command-hub-current:not(.platform-mode) .command-hub-ai-button,
 body.command-hub-current:not(.platform-mode) .command-hub-top-icon{width:36px;min-width:36px;max-width:36px;min-height:36px;flex:0 0 36px;padding:5px}
 body.command-hub-current:not(.platform-mode) .command-hub-ai-text{display:none}
 body.command-hub-current:not(.platform-mode) .command-hub-ai-button:focus-visible,
 body.command-hub-current:not(.platform-mode) .command-hub-top-icon:focus-visible{outline:2px solid #46ddff;outline-offset:2px}
}
@media(max-width:360px){
 body.command-hub-current:not(.platform-mode) .command-hub-ai-button,
 body.command-hub-current:not(.platform-mode) .command-hub-top-icon{width:30px;min-width:30px;max-width:30px;flex-basis:30px;padding:4px}
}
@media(prefers-reduced-motion:reduce){#dashboardView.command-hub-v2 .dashboard-visual,#dashboardView.command-hub-v2 .executive-kpi{transition:none;transform:none}}
/* Compact phone drawer without changing tablet/desktop widths or touch targets. */
@media(max-width:680px){
  body:not(.platform-mode) #sidebar,
  html[data-orox-mobile-native-v2="1"] body:not(.platform-mode) #sidebar{
    width:min(270px,78vw);max-width:min(270px,78vw);
  }
}
@media(min-width:901px){
  body:not(.platform-mode).sidebar-collapsed #sidebar .command-hub-sidebar-art{display:none}
}


/* Dashboard-only quick actions and company health. All other approved widgets stay unchanged. */
#dashboardView.command-hub-v2 #commandHubHealth{min-width:0;width:100%;margin:0}
#dashboardView.command-hub-v2 #commandHubHealth .company-health-badge{
  position:relative;isolation:isolate;display:flex;align-items:center;gap:16px;
  width:100%;min-height:92px;padding:16px 22px;box-sizing:border-box;
  color:#f7f9fc;text-align:start;border:1px solid #448bd185;border-radius:18px;
  background:radial-gradient(ellipse at 88% 50%,#147fbe44,transparent 58%),linear-gradient(112deg,#071a37,#0d3159 68%,#104667)!important;
  box-shadow:inset 0 1px 0 #ffffff32,0 10px 26px #03152f3d;overflow:hidden;cursor:pointer;
}
#dashboardView.command-hub-v2 #commandHubHealth .company-health-badge::after{
  content:"";position:absolute;inset-block:12px;inset-inline-start:0;width:3px;
  border-radius:9px;background:#26b9df;pointer-events:none
}
#dashboardView.command-hub-v2 #commandHubHealth .company-health-badge>span:first-child{
  width:56px;height:56px;min-width:56px;border-radius:16px;display:grid;place-items:center;
  background:#2bbed12b;color:#8ceaff;box-shadow:inset 0 0 0 1px #a7f0ff22
}
#dashboardView.command-hub-v2 #commandHubHealth .company-health-badge>span:first-child .ui-icon{width:28px;height:28px}
#dashboardView.command-hub-v2 #commandHubHealth .company-health-badge>div{min-width:0}
#dashboardView.command-hub-v2 #commandHubHealth .company-health-badge small{color:#c3e0f6;font-size:13px;font-weight:850}
#dashboardView.command-hub-v2 #commandHubHealth .company-health-badge b{color:#fff;font-size:clamp(21px,2vw,30px);font-weight:900;line-height:1.35;white-space:nowrap}
#dashboardView.command-hub-v2 #commandHubHealth .command-hub-health-cta{
  display:inline-flex;align-items:center;justify-content:center;margin-inline-start:auto;
  flex:0 0 auto;padding:9px 13px;border:1px solid #8bcaff6e;border-radius:10px;
  color:#e5f9ff;background:#3a9cc128;font-size:11px;font-weight:800;white-space:nowrap
}
#dashboardView.command-hub-v2 #commandHubHealth .status-watch>span:first-child{color:#f5d18a;background:#c9a66b29}
#dashboardView.command-hub-v2 #commandHubHealth .status-risk>span:first-child,
#dashboardView.command-hub-v2 #commandHubHealth .status-critical>span:first-child{color:#ffb0ac;background:#ec67632c}
#dashboardView.command-hub-v2 #commandHubHealth .status-unavailable>span:first-child{color:#cbd6e6;background:#e2eaff1b}
#dashboardView.command-hub-v2 #commandHubHealth .company-health-badge:hover{border-color:#49cee2}
#dashboardView.command-hub-v2 #commandHubHealth .company-health-badge:focus-visible{outline:3px solid #56d5ed;outline-offset:2px}
html[data-theme="light"] #dashboardView.command-hub-v2 #commandHubHealth .company-health-badge{
  color:#103759;border-color:#9fcbe6;background:linear-gradient(112deg,#f9fdff,#e6f5ff 70%,#d6eeff)!important;
  box-shadow:0 8px 22px #0d4a7a1a
}
html[data-theme="light"] #dashboardView.command-hub-v2 #commandHubHealth .company-health-badge small{color:#3c6e94}
html[data-theme="light"] #dashboardView.command-hub-v2 #commandHubHealth .company-health-badge b{color:#102f50}
html[data-theme="light"] #dashboardView.command-hub-v2 #commandHubHealth .command-hub-health-cta{background:#d2eaf9;color:#174869;border-color:#9ac9e6}

#dashboardView.command-hub-v2 #commandHubQuick{display:block;min-width:0;width:100%;margin:0;padding:0}
#dashboardView.command-hub-v2 #commandHubQuick #dashboardHeroActions{
  display:flex;flex-wrap:wrap;align-items:stretch;width:100%;gap:7px;margin:0;min-width:0
}
#dashboardView.command-hub-v2 #commandHubQuick #dashboardHeroActions>.command-hub-quick-head{
  order:0;display:flex;align-items:center;flex-wrap:wrap;gap:7px 9px;
  flex:1 1 100%;min-width:0;min-height:30px
}
#dashboardView.command-hub-v2 #commandHubQuick .command-hub-quick-label{margin-inline-end:auto;font-size:12px;font-weight:850}
#dashboardView.command-hub-v2 #commandHubQuick #dashboardHeroActions>.btn{
  order:3;position:relative;isolation:isolate;overflow:hidden;
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  min-height:44px;min-width:0;flex:1 1 0;padding:7px 10px;box-sizing:border-box;
  border-radius:12px;white-space:normal;text-align:center;
  color:#f7fbff;font-size:11px;font-weight:850;line-height:1.25;
  box-shadow:inset 0 1px 0 #ffffff32,inset 0 -1px 0 #001a3838,0 4px 13px #000c2738;
  transition:transform .16s ease,box-shadow .16s ease,filter .16s ease
}
#dashboardView.command-hub-v2 #commandHubQuick #dashboardHeroActions>.btn::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg,#ffffff1c 0%,transparent 52%)
}
#dashboardView.command-hub-v2 #commandHubQuick #dashboardHeroActions>.btn>.ui-icon{
  position:relative;z-index:1;flex:none;display:grid;place-items:center;
  width:27px;height:27px;padding:5px;box-sizing:border-box;border-radius:9px;
  color:#f9fdff;background:#ffffff1d;box-shadow:inset 0 1px 0 #ffffff23
}
#dashboardView.command-hub-v2 #commandHubQuick #dashboardHeroActions>.btn>span:last-child{
  position:relative;z-index:1;min-width:0;overflow-wrap:anywhere
}
#dashboardView.command-hub-v2 #commandHubQuick #dashboardHeroActions>.btn:hover{
  transform:translateY(-1px);box-shadow:inset 0 1px 0 #ffffff48,0 6px 15px #000f324f
}
#dashboardView.command-hub-v2 #commandHubQuick #dashboardHeroActions>.btn:focus-visible{
  outline:2px solid #5bddff;outline-offset:2px
}
#dashboardView.command-hub-v2 #commandHubQuick #dashboardHeroActions>[data-go="pos"]{order:1;flex-grow:1.5;background:linear-gradient(108deg,#0a659b,#07467b)!important;border-color:#35c7ef!important}
#dashboardView.command-hub-v2 #commandHubQuick #dashboardHeroActions>[data-new-entity="sales_order"]{order:2;background:linear-gradient(120deg,#7352b5,#40327f)!important;border-color:#ae91ec!important}
#dashboardView.command-hub-v2 #commandHubQuick #dashboardHeroActions>[data-new-entity="customer"]{order:3;background:linear-gradient(120deg,#14655c,#0d454a)!important;border-color:#36c9a8!important}
#dashboardView.command-hub-v2 #commandHubQuick #dashboardHeroActions>[data-go="inventory"]{order:4;background:linear-gradient(120deg,#12458c,#0c2e67)!important;border-color:#468df5!important}
#dashboardView.command-hub-v2 #commandHubQuick #dashboardHeroActions>.hr-v7-home-punch{
  order:5;flex-grow:1.25;min-height:44px;
  background:linear-gradient(120deg,#0e966c,#09664f)!important;border:1px solid #36c89b!important;
  color:#f4fff9!important;box-shadow:inset 0 1px 0 #ffffff32,0 4px 13px #08765730
}
#dashboardView.command-hub-v2 #commandHubQuick #dashboardHeroActions>[data-go="pos"]::after,
#dashboardView.command-hub-v2 #commandHubQuick #dashboardHeroActions>.hr-v7-home-punch::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(ellipse at 8% -45%,#b4f9ff40,transparent 63%)
}
#dashboardView.command-hub-v2 #commandHubQuick #dashboardHeroActions>.hr-v7-home-punch .ui-icon{
  width:30px;height:30px;flex:none;padding:5px;box-sizing:border-box;border-radius:9px;
  color:#fff;background:#ffffff26;box-shadow:inset 0 1px 0 #ffffff43,0 0 0 1px #cbffe81a
}
#dashboardView.command-hub-v2 #commandHubQuick #dashboardHeroActions>.hr-v7-home-punch:focus-visible{outline:3px solid #3ce5b1;outline-offset:2px}
#dashboardView.command-hub-v2 #commandHubQuick #dashboardHeroActions>[data-go="operations"]{display:none!important}
#dashboardView.command-hub-v2 #commandHubQuick #dashboardHeroActions .command-hub-quick-head [data-ws-action="edit"]{
  min-height:30px;padding:5px 10px;font-size:10px
}
#dashboardView.command-hub-v2 #commandHubQuick .command-hub-quick-head .command-hub-more-metrics{margin-inline-start:0;min-height:30px}
html[data-theme="light"] #dashboardView.command-hub-v2 #commandHubQuick #dashboardHeroActions>.btn{
  color:#fff;box-shadow:inset 0 1px 0 #ffffff52,0 4px 12px #11355b24
}
@media(max-width:760px){
  #dashboardView.command-hub-v2 #commandHubHealth .company-health-badge{min-height:75px;padding:12px 13px;gap:10px;border-radius:15px}
  #dashboardView.command-hub-v2 #commandHubHealth .company-health-badge>span:first-child{width:44px;height:44px;min-width:44px;border-radius:12px}
  #dashboardView.command-hub-v2 #commandHubHealth .company-health-badge>span:first-child .ui-icon{width:23px;height:23px}
  #dashboardView.command-hub-v2 #commandHubHealth .company-health-badge small{font-size:11px}
  #dashboardView.command-hub-v2 #commandHubHealth .company-health-badge b{font-size:22px}
  #dashboardView.command-hub-v2 #commandHubHealth .command-hub-health-cta{padding:7px 9px;font-size:10px}
  #dashboardView.command-hub-v2 #commandHubQuick #dashboardHeroActions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  #dashboardView.command-hub-v2 #commandHubQuick #dashboardHeroActions>.command-hub-quick-head{grid-column:1/-1}
  #dashboardView.command-hub-v2 #commandHubQuick #dashboardHeroActions>.btn{
    display:flex;flex-direction:row;gap:5px;width:100%;min-width:0;min-height:48px;
    padding:6px 5px;font-size:10px;line-height:1.2
  }
  #dashboardView.command-hub-v2 #commandHubQuick #dashboardHeroActions>.btn>.ui-icon{
    width:24px;height:24px;padding:4px;border-radius:8px
  }
  #dashboardView.command-hub-v2 #commandHubQuick #dashboardHeroActions>[data-go="pos"],
  #dashboardView.command-hub-v2 #commandHubQuick #dashboardHeroActions>.hr-v7-home-punch{
    grid-column:1/-1;min-height:44px;flex-direction:row;gap:8px;font-size:11px
  }
  #dashboardView.command-hub-v2 #commandHubQuick #dashboardHeroActions>.hr-v7-home-punch .ui-icon{width:29px;height:29px}
}
@media(max-width:380px){
  #dashboardView.command-hub-v2 #commandHubHealth .company-health-badge{padding:10px;gap:8px}
  #dashboardView.command-hub-v2 #commandHubHealth .command-hub-health-cta{padding:7px;font-size:9px}
  #dashboardView.command-hub-v2 #commandHubQuick #dashboardHeroActions>.btn{font-size:9px;gap:3px;padding:6px 3px}
  #dashboardView.command-hub-v2 #commandHubQuick #dashboardHeroActions>.btn>.ui-icon{width:21px;height:21px;padding:3px}
}
@media(prefers-reduced-motion:reduce){
  #dashboardView.command-hub-v2 #commandHubHealth .company-health-badge,
  #dashboardView.command-hub-v2 #commandHubQuick #dashboardHeroActions>.btn{transition:none;transform:none}
}
