/* SME Focus View 0.70.0 — employee presentation layer only.
   Detailed always reveals every configured widget and operational tool.
   Never change the command wallboard, map, customer portal or print. */
body.sme-premium-ui:not(.customer-portal-mode):not(.command-wallboard) #smeFocusViewControl{
 display:inline-flex;align-items:center;gap:8px;
 padding:5px 8px 5px 11px;min-height:36px;box-sizing:border-box;
 border:1px solid #66666c;border-radius:9px;background:#252529;
 color:#d5d5db;font-size:11px;font-weight:750;white-space:nowrap
}
body.sme-premium-ui:not(.customer-portal-mode):not(.command-wallboard) #smeFocusViewControl .sme-focus-select{
 appearance:auto;box-sizing:border-box;max-width:130px;min-width:99px;
 padding:5px 6px;min-height:28px;border:0;border-radius:6px;
 color:#f5f5f7;background:#313136;font:inherit;font-weight:800;cursor:pointer
}
body.sme-premium-ui:not(.customer-portal-mode):not(.command-wallboard) #smeFocusViewControl .sme-focus-select:focus-visible{
 outline:2px solid #f58220;outline-offset:2px
}
/* Balanced = essential work and a few informative panels.
   Simplified = immediate work and priority signals only.
   Detailed and dashboard editor = existing full visibility and custom layout. */
body.sme-premium-ui.sme-route-dashboard[data-sme-density="balanced"]:not([data-sme-density-fallback="all"]):not(.command-wallboard) #dashboardWidgets:not(.editing) > .dash-widget:not(:is(
 [data-dashboard-widget="kpi_summary"],
 [data-dashboard-widget="workflow_attention"],
 [data-dashboard-widget="delay_watch"],
 [data-dashboard-widget="current_workload"],
 [data-dashboard-widget="dispatch_live"],
 [data-dashboard-widget="turnaround_performance"]
)){display:none!important}
body.sme-premium-ui.sme-route-dashboard[data-sme-density="simplified"]:not([data-sme-density-fallback="all"]):not(.command-wallboard) #dashboardWidgets:not(.editing) > .dash-widget:not(:is(
 [data-dashboard-widget="kpi_summary"],
 [data-dashboard-widget="workflow_attention"],
 [data-dashboard-widget="delay_watch"]
)){display:none!important}
/* Never conceal an elevated metric, even when it falls below the fold. */
body.sme-premium-ui.sme-route-dashboard[data-sme-density="balanced"] #dashboardWidgets:not(.editing) [data-dashboard-widget="kpi_summary"] .dashboard-kpis > .dash-kpi:nth-child(n+7):not(.alert):not(.warn),
body.sme-premium-ui.sme-route-dashboard[data-sme-density="simplified"] #dashboardWidgets:not(.editing) [data-dashboard-widget="kpi_summary"] .dashboard-kpis > .dash-kpi:nth-child(n+5):not(.alert):not(.warn){
 display:none!important
}
body.sme-premium-ui.sme-route-manager[data-sme-density="balanced"] #page > .kpis > .kpi:nth-child(n+6):not(.alert):not(.warn),
body.sme-premium-ui.sme-route-writer[data-sme-density="balanced"] #page > .writer-kpis > .kpi:nth-child(n+6):not(.alert):not(.warn){
 display:none!important
}
body.sme-premium-ui.sme-route-manager[data-sme-density="simplified"] #page > .kpis > .kpi:nth-child(n+5):not(.alert):not(.warn),
body.sme-premium-ui.sme-route-writer[data-sme-density="simplified"] #page > .writer-kpis > .kpi:nth-child(n+5):not(.alert):not(.warn){
 display:none!important
}
body.sme-premium-ui.sme-route-manager[data-sme-density="balanced"] #page > :is(.manager-resolution-panel,.manager-targets-standard,.manager-flow-panel),
body.sme-premium-ui.sme-route-manager[data-sme-density="simplified"] #page > :is(.manager-resolution-panel,.manager-targets-standard,.manager-flow-panel,.shift-handoff-panel,.manager-bottleneck-panel),
body.sme-premium-ui.sme-route-writer[data-sme-density="simplified"] #page > .shift-handoff-panel{
 display:none!important
}
/* Keep new requests visible. Only suppress the empty-state panel. */
body.sme-premium-ui.sme-route-writer[data-sme-density="balanced"] #page > .customer-request-panel:has(.panel-empty),
body.sme-premium-ui.sme-route-writer[data-sme-density="simplified"] #page > .customer-request-panel:has(.panel-empty),
body.sme-premium-ui.sme-route-manager[data-sme-density="simplified"] #page > .manager-cross-panel:has(.manager-cross-clear){
 display:none!important
}
body.sme-premium-ui.sme-route-manager[data-sme-density="simplified"] #page .manager-brief-grid > .manager-brief-metric:nth-child(n+5):not(.alert):not(.warn),
body.sme-premium-ui.sme-route-manager[data-sme-density="balanced"] #page .manager-brief-grid > .manager-brief-metric:nth-child(n+6):not(.alert):not(.warn){
 display:none!important
}
/* Consistent breathing room and lower decorative noise; preserve actual data. */
body.sme-premium-ui:is(.sme-route-dashboard,.sme-route-manager,.sme-route-writer)[data-sme-density]:not(.command-wallboard):not(.customer-portal-mode) #page :is(
 .dash-card,.panel,.manager-morning-brief,.writer-brief
){border-radius:12px!important}
body.sme-premium-ui:is(.sme-route-dashboard,.sme-route-manager,.sme-route-writer)[data-sme-density]:not(.command-wallboard):not(.customer-portal-mode) #page :is(
 .dash-card-head,.panel-head,.manager-brief-head
){padding:12px 16px!important;gap:12px!important}
body.sme-premium-ui:is(.sme-route-manager,.sme-route-writer)[data-sme-density]:not(.command-wallboard):not(.customer-portal-mode) #page :is(
 .flow-action-card,.manager-brief-metric,.manager-bottleneck-card,.manager-cross-card,.customer-request-card
){padding:12px!important;line-height:1.45!important}
body.sme-premium-ui:is(.sme-route-manager,.sme-route-writer)[data-sme-density]:not(.command-wallboard):not(.customer-portal-mode) #page :is(
 .table-wrap,.dash-table-wrap
) table :is(th,td){padding:10px 13px!important;line-height:1.45!important}
body.sme-premium-ui:is(.sme-route-dashboard,.sme-route-manager,.sme-route-writer)[data-sme-density="simplified"]:not(.command-wallboard):not(.customer-portal-mode) #page :is(
 .dash-card-sub,.panel-sub,.manager-brief-head p,.writer-brief-main p
){display:none!important}
body.sme-premium-ui:is(.sme-route-dashboard,.sme-route-manager,.sme-route-writer)[data-sme-density="balanced"]:not(.command-wallboard):not(.customer-portal-mode) #page .dash-card-sub{
 font-size:11px!important;line-height:1.4!important
}
body.sme-premium-ui.sme-route-manager[data-sme-density="simplified"] #page .manager-brief-columns{
 gap:12px!important
}
body.sme-premium-ui.sme-route-dashboard[data-sme-density="simplified"] #dashboardWidgets:not(.editing),
body.sme-premium-ui.sme-route-dashboard[data-sme-density="balanced"] #dashboardWidgets:not(.editing){
 gap:12px!important
}
body.sme-premium-ui.sme-route-dashboard[data-sme-density="simplified"] #dashboardWidgets:not(.editing) .dashboard-kpis,
body.sme-premium-ui.sme-route-dashboard[data-sme-density="balanced"] #dashboardWidgets:not(.editing) .dashboard-kpis{
 justify-content:flex-start!important;gap:9px!important;padding:12px!important
}
body.sme-premium-ui.sme-route-dashboard[data-sme-density="simplified"] #dashboardWidgets:not(.editing) .dash-kpi,
body.sme-premium-ui.sme-route-dashboard[data-sme-density="balanced"] #dashboardWidgets:not(.editing) .dash-kpi{
 flex:1 1 150px;min-width:135px;padding:12px!important
}
@media(max-width:760px){
 body.sme-premium-ui:not(.customer-portal-mode):not(.command-wallboard) #smeFocusViewControl{gap:5px;padding:4px 6px}
 body.sme-premium-ui:not(.customer-portal-mode):not(.command-wallboard) #smeFocusViewControl .sme-focus-control-label{font-size:0}
 body.sme-premium-ui:not(.customer-portal-mode):not(.command-wallboard) #smeFocusViewControl .sme-focus-select{min-width:91px;font-size:11px}
 body.sme-premium-ui:is(.sme-route-manager,.sme-route-writer)[data-sme-density]:not(.command-wallboard):not(.customer-portal-mode) #page :is(.table-wrap,.dash-table-wrap) table :is(th,td){padding:9px 11px!important}
}
