/* Hub v2 (20261101.1) — dashboard hierarchy on top of the shared design system. Presentation only. */
/* Order: status → what needs attention → launch apps → numbers. */
body.gs-shell #dashboardView:not(.hidden){display:flex!important;flex-direction:column;gap:var(--gs-s5)}
body.gs-shell #dashboardView>.command-bar{order:0}
body.gs-shell #dashboardView>.ops-grid{order:1}
body.gs-shell #dashboardView>.launch-zone{order:2}
body.gs-shell #dashboardView>.status-zone{order:3}
body.gs-shell #dashboardView>*{margin-block:0!important}
/* app launcher: compact tiles; the launch button is secondary so "בדיקת מערכות" stays the one primary action */
body.gs-shell #appCards.dashboard-app-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(min(100%,17rem),1fr))!important;gap:var(--gs-s3)!important}
body.gs-shell #appCards .app-card{padding:var(--gs-s4)!important;gap:var(--gs-s3)!important;min-height:0!important;border-radius:var(--gs-r-lg)!important}
body.gs-shell #appCards .app-card{min-width:0!important;overflow:hidden}
body.gs-shell #appCards .app-card .card-actions{width:100%!important;min-width:0!important;box-sizing:border-box;border:0!important;padding:0!important;margin:0!important;display:flex!important;justify-content:flex-start!important}
body.gs-shell #appCards .app-card .card-actions>:not(.launch-btn){display:none!important}
body.gs-shell #appCards .app-card .launch-btn:not(.disabled){width:100%!important;box-sizing:border-box!important;min-width:0!important;margin:0!important;min-height:40px;background:var(--gs-surface)!important;color:var(--gs-primary-ink)!important;border:1px solid var(--gs-border-strong)!important;border-radius:var(--gs-r-sm)!important;font-weight:700!important}
body.gs-shell #appCards .app-card .launch-btn:not(.disabled):hover{border-color:var(--gs-primary)!important;background:var(--gs-primary-soft)!important}
body.gs-shell.dark #appCards .app-card .launch-btn:not(.disabled){background:transparent!important;color:#d6ccff!important;border-color:#ffffff26!important}
body.gs-shell #appCards .app-card .app-main{display:flex!important;align-items:flex-start!important;gap:var(--gs-s3)!important}
body.gs-shell #appCards .app-card .app-icon-shell{flex:0 0 auto!important;position:relative!important}
body.gs-shell #appCards .app-card .app-copy{min-width:0;flex:1 1 auto}
body.gs-shell #appCards .app-card h3{font-size:var(--gs-fs-md)!important}
body.gs-shell #appCards .app-card p{font-size:var(--gs-fs-sm)!important;margin:2px 0 6px!important}
/* attention panels first and side by side */
body.gs-shell #dashboardView .ops-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,22rem),1fr))!important;gap:var(--gs-s4)!important}
body.gs-shell #dashboardView .ops-grid>.alerts-panel{order:-1}
body.gs-shell .notification-row.unread{border-inline-start:3px solid var(--gs-primary)!important}
@media (max-width:767.98px){
 body.gs-shell #dashboardView .command-bar{padding:var(--gs-s4)!important}
 body.gs-shell #dashboardView .command-copy p{display:none}
 body.gs-shell #dashboardView #heroGreeting{font-size:1.5rem!important}
 /* five hero actions: one scrollable row instead of five full-width stacked buttons */
 body.gs-shell #dashboardView .command-actions{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;gap:var(--gs-s2)!important;margin-inline:calc(-1 * var(--gs-s4));padding:2px var(--gs-s4) 4px!important;scrollbar-width:none}
 body.gs-shell #dashboardView .command-actions::-webkit-scrollbar{display:none}
 body.gs-shell #dashboardView .command-actions>*{flex:0 0 auto!important;width:auto!important;white-space:nowrap}
 body.gs-shell #dashboardView .launch-head p{display:none}
 /* phone: two-column launcher tiles; description and host are secondary here */
 body.gs-shell #appCards.dashboard-app-grid{grid-template-columns:1fr 1fr!important;gap:var(--gs-s2)!important}
 body.gs-shell #appCards .app-card{padding:var(--gs-s3)!important}
 body.gs-shell #appCards .app-card .app-main{flex-direction:column!important;gap:var(--gs-s2)!important}
 body.gs-shell #appCards .app-card :is(p,.app-submeta){display:none!important}
 body.gs-shell #appCards .app-card .launch-btn{font-size:var(--gs-fs-sm)!important;padding-inline:var(--gs-s2)!important}
}
/* The sidebar "Gaziel Suite · 5 מערכות" block is static markup (always green, hardcoded count); live status is in the dashboard. */
body.gs-shell #sidebar:not(#gs_):not(#gs_):not(#gs_):not(#gs_)>.sidebar-status{display:none!important}
/* Login gate: #app stays rendered behind it (hub-unified forces display:block), so the shell must step aside while it is shown. */
body.gs-shell:not(#gs_):not(#gs_):not(#gs_):not(#gs_):has(#loginGate:not(.hidden)){padding-inline-start:0!important;overflow:auto!important}
body.gs-shell:has(#loginGate:not(.hidden)) :is(#sidebar.gs-sidebar:not(#gs_):not(#gs_):not(#gs_):not(#gs_),.gs-mobilebar:not(#gs_):not(#gs_):not(#gs_):not(#gs_),.gs-scrim){display:none!important}
/* Sidebar footer on the dark sidebar: readable avatar letter and theme-toggle icon. */
body.gs-shell #sidebar:not(#gs_):not(#gs_):not(#gs_):not(#gs_) .profile .avatar{background:var(--gs-primary)!important;background-image:none!important;color:#fff!important;border:0!important}
body.gs-shell #sidebar:not(#gs_):not(#gs_):not(#gs_):not(#gs_) #themeToggle{background:transparent!important;border:1px solid var(--gs-side-line)!important;width:40px!important;height:40px!important}
body.gs-shell #sidebar:not(#gs_):not(#gs_):not(#gs_):not(#gs_) #themeToggle img{filter:invert(1)!important;opacity:.9!important}
body.gs-shell #sidebar:not(#gs_):not(#gs_):not(#gs_):not(#gs_) #themeToggle:hover{background:var(--gs-side-2)!important}
/* Profile photo must never be colour-inverted (only the theme icon is). */
body.gs-shell #sidebar:not(#gs_):not(#gs_):not(#gs_):not(#gs_) .profile img{filter:none!important;opacity:1!important}
/* Admin tools now live in the sidebar "כלים" group; the hero keeps only system actions. */
body.gs-shell #dashboardView .command-actions>a:is([href="/team-room.html"],[href="/whatsapp-bot.html"],[href="/monitor.html"]){display:none!important}
