/* Clean Smart Pro Premium Edition V6 — LAYOUT PATCH ONLY
   Reviewed against owner dashboard screenshots dated 2026-10-29.
   Keeps EVERY existing control, data value, role, route, fetch, and click action.
   Specifically contains dynamic admin identity, network status and Q-AS
   summary within the same visual hierarchy as the premium dashboard. */
#app.csp-dashboard-premium > main{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:10px!important;
  min-width:0!important;
}
#app.csp-dashboard-premium > main > *{
  min-width:0!important;
  flex-shrink:0!important;
}
#app.csp-dashboard-premium > main > header{
  order:0!important;
  min-height:68px!important;
  height:auto!important;
  padding:10px 16px!important;
  margin-bottom:0!important;
}
#app.csp-dashboard-premium #csV211173SystemStrip{
  order:1!important;
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  justify-content:flex-end!important;
  align-self:flex-end!important;
  width:auto!important;
  max-width:100%!important;
  min-height:50px!important;
  height:auto!important;
  padding:6px 10px!important;
  margin:0!important;
  background:rgba(6,39,74,.96)!important;
  border:1px solid rgba(38,151,219,.55)!important;
  box-shadow:0 4px 13px rgba(0,12,30,.16)!important;
  border-radius:16px!important;
  gap:8px!important;
  color:#eef8ff!important;
}
#app.csp-dashboard-premium #csV211173SystemStrip > strong{
  color:#b7e8ff!important;
  font-size:11px!important;
  font-weight:850!important;
  letter-spacing:.015em!important;
  flex:0 1 auto!important;
  margin:0!important;
}
#app.csp-dashboard-premium #csV211173SystemStrip .cs-v211173-admin-chip{
  display:inline-flex!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  gap:8px!important;
  height:auto!important;
  min-height:39px!important;
  max-width:min(100%,440px)!important;
  padding:3px 11px!important;
  background:#f8fbff!important;
  color:#0d3057!important;
  font-size:12px!important;
  border-radius:999px!important;
  border:1px solid #d4e5f4!important;
  overflow:visible!important;
}
#app.csp-dashboard-premium #csV211173SystemStrip .cs-v211173-admin-chip > b{
  font-size:13px!important;
  font-weight:850!important;
  line-height:1.2!important;
}
#app.csp-dashboard-premium #csV211173SystemStrip .cs-identity-job-title{
  color:#2b4d73!important;
  font-size:11px!important;
  font-weight:630!important;
  overflow-wrap:anywhere!important;
}
#app.csp-dashboard-premium #csV211173SystemStrip .csp-avatar-self,
#app.csp-dashboard-premium #csV211173SystemStrip .csp-avatar-circle{
  width:35px!important;
  height:35px!important;
  min-width:35px!important;
  min-height:35px!important;
}
#app.csp-dashboard-premium > main > #csp-dashboard-live-content{
  order:2!important;
  display:block!important;
  min-width:0!important;
  margin:0!important;
}
#app.csp-dashboard-premium > main > #cs268-qas-dashboard{
  order:3!important;
}
#app.csp-dashboard-premium > main > #csp-dashboard-assignment-live{
  order:4!important;
}
#app.csp-dashboard-premium > main > #csp-dashboard-duty-live{
  order:5!important;
}
#app.csp-dashboard-premium > main > .dashboard-user-badge{
  order:1!important;
  margin:0!important;
}
#app.csp-dashboard-premium > main > header .header-actions{
  width:auto!important;
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  flex-wrap:wrap!important;
  gap:8px!important;
}
#app.csp-dashboard-premium > main > header .header-actions > *{
  flex:0 1 auto!important;
  width:auto!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:35px!important;
  margin:0!important;
}
#app.csp-dashboard-premium > main > header .header-actions #internetStatusBadge{
  display:inline-flex!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  gap:8px!important;
  width:auto!important;
  max-width:200px!important;
  min-height:38px!important;
  max-height:51px!important;
  margin:0!important;
  padding:7px 12px!important;
  border:1px solid #17c5a4!important;
  border-radius:999px!important;
  background:linear-gradient(120deg,#063d44,#053048)!important;
  box-shadow:none!important;
  color:#f1fffd!important;
}
#app.csp-dashboard-premium > main > header .header-actions #internetStatusBadge .internet-dot{
  flex:0 0 11px!important;
  width:11px!important;
  height:11px!important;
  min-width:11px!important;
  border-radius:50%!important;
}
#app.csp-dashboard-premium > main > header .header-actions #internetStatusBadge .internet-live-copy{
  display:flex!important;
  flex-direction:column!important;
  gap:1px!important;
  min-width:0!important;
}
#app.csp-dashboard-premium > main > header .header-actions #internetStatusBadge b{
  display:block!important;
  color:#f4fffc!important;
  font-size:12px!important;
  font-weight:900!important;
  white-space:nowrap!important;
}
#app.csp-dashboard-premium > main > header .header-actions #internetStatusBadge small{
  display:block!important;
  color:#c5eee4!important;
  font-size:8px!important;
  white-space:nowrap!important;
  text-overflow:ellipsis!important;
  overflow:hidden!important;
  max-width:156px!important;
}
#app.csp-dashboard-premium > main > header .header-actions > .internet-control-btn,
#app.csp-dashboard-premium > main > header .header-actions > button,
#app.csp-dashboard-premium > main > header .header-actions > select{
  min-height:37px!important;
  max-height:52px!important;
  padding:7px 11px!important;
  font-size:11px!important;
  border-radius:999px!important;
  line-height:1.15!important;
}
#app.csp-dashboard-premium > main > header .header-actions > .internet-control-btn{
  max-width:160px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
#app.csp-dashboard-premium > main > header .header-actions > .internet-control-btn .internet-control-text{
  display:inline!important;
  font-size:10px!important;
  white-space:nowrap!important;
}
#app.csp-dashboard-premium > main > header .header-actions > select{
  max-width:160px!important;
  color:#fff!important;
  background:#063460!important;
}
#app.csp-dashboard-premium .csp-v5-time{
  flex:0 0 auto!important;
  min-width:150px!important;
}
#app.csp-dashboard-premium .csp-v5-time small{
  font-size:10px!important;
  line-height:1.4!important;
}
#app.csp-dashboard-premium .csp-v5-time b{
  font-size:23px!important;
}
/* The reference hero should not become a full-screen cover. */
#app.csp-dashboard-premium .csp-v5-dashboard{
  grid-template-columns:minmax(0,2.1fr) minmax(275px,1fr)!important;
  gap:12px!important;
  margin:0 0 10px!important;
}
#app.csp-dashboard-premium .csp-v5-hero{
  height:225px!important;
  min-height:0!important;
  max-height:225px!important;
  padding:19px 21px!important;
  border-radius:18px!important;
}
#app.csp-dashboard-premium .csp-v5-hero h2{
  font-size:clamp(25px,2.8vw,39px)!important;
  line-height:1.12!important;
}
#app.csp-dashboard-premium .csp-v5-hero p{
  font-size:13px!important;
}
#app.csp-dashboard-premium .csp-v5-stats > button,
#app.csp-dashboard-premium .csp-v5-stats > .csp-v5-stat-static{
  min-height:84px!important;
  padding:10px 8px!important;
}
#app.csp-dashboard-premium .csp-v5-functions{
  padding:13px!important;
}
#app.csp-dashboard-premium .csp-v5-grid{
  gap:8px!important;
}
#app.csp-dashboard-premium .csp-v5-tile{
  min-height:91px!important;
}
#app.csp-dashboard-premium .csp-v5-radar-art{
  width:min(155px,50%)!important;
  height:auto!important;
  flex:0 1 155px!important;
  aspect-ratio:1!important;
}
#app.csp-dashboard-premium .csp-v5-rail-title{
  min-height:38px!important;
}
#app.csp-dashboard-premium .csp-v5-day{
  gap:3px!important;
  padding:4px 1px!important;
}
/* The original, live monthly Q-AS node stays available. Reflow it into a
   compact dashboard panel; leave critical warning rows fully visible. */
#app.csp-dashboard-premium > main > #cs268-qas-dashboard{
  display:grid!important;
  grid-template-columns:44px minmax(0,1fr) minmax(235px,.8fr)!important;
  grid-auto-rows:auto!important;
  align-items:center!important;
  gap:11px!important;
  padding:11px 15px!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  margin:0!important;
  border-radius:16px!important;
  box-shadow:0 5px 16px rgba(0,12,38,.16)!important;
}
#app.csp-dashboard-premium #cs268-qas-dashboard .cs268-icon{
  width:38px!important;
  height:38px!important;
  font-size:21px!important;
  border-radius:12px!important;
}
#app.csp-dashboard-premium #cs268-qas-dashboard .cs268-main small{
  display:block!important;
  font-size:9px!important;
  letter-spacing:.06em!important;
  line-height:1.35!important;
}
#app.csp-dashboard-premium #cs268-qas-dashboard h2{
  margin:3px 0!important;
  color:#fff!important;
  font-size:19px!important;
  line-height:1.22!important;
}
#app.csp-dashboard-premium #cs268-qas-dashboard h2 b{
  font-size:24px!important;
  color:#b6ffcc!important;
}
#app.csp-dashboard-premium #cs268-qas-dashboard p{
  font-size:11px!important;
  line-height:1.3!important;
  margin:2px 0!important;
}
#app.csp-dashboard-premium #cs268-qas-dashboard .cs268-kpis{
  display:flex!important;
  flex-wrap:nowrap!important;
  justify-content:flex-end!important;
  gap:6px!important;
  min-width:0!important;
}
#app.csp-dashboard-premium #cs268-qas-dashboard .cs268-kpis span{
  flex:1 1 0!important;
  min-width:0!important;
  padding:7px 5px!important;
  border-radius:10px!important;
  text-align:center!important;
}
#app.csp-dashboard-premium #cs268-qas-dashboard .cs268-kpis b{
  font-size:15px!important;
  color:#123755!important;
}
#app.csp-dashboard-premium #cs268-qas-dashboard .cs268-kpis small{
  font-size:9px!important;
  color:#55738c!important;
}
#app.csp-dashboard-premium #cs268-qas-dashboard .cs268-alarm,
#app.csp-dashboard-premium #cs268-qas-dashboard .cs268-advisory{
  grid-column:1/-1!important;
  font-size:12px!important;
  padding:9px!important;
}
/* Operational sections remain available below the Premium dashboard. */
#app.csp-dashboard-premium #csp-dashboard-live-content > .csp-dash-toolbar,
#app.csp-dashboard-premium #csp-dashboard-live-content > .csp-dashboard-metrics,
#app.csp-dashboard-premium #csp-dashboard-live-content > .csp-dashboard-operations{
  margin-top:12px!important;
  margin-bottom:10px!important;
}
@media(max-width:1240px){
 #app.csp-dashboard-premium .csp-v5-dashboard{
   grid-template-columns:minmax(0,1fr)!important;
 }
 #app.csp-dashboard-premium .csp-v5-rail{
   display:grid!important;
   grid-template-columns:repeat(2,minmax(0,1fr))!important;
 }
 #app.csp-dashboard-premium .csp-v5-tasks{grid-column:1/-1!important}
 #app.csp-dashboard-premium > main > #cs268-qas-dashboard{
   grid-template-columns:40px minmax(0,1fr)!important;
 }
 #app.csp-dashboard-premium #cs268-qas-dashboard .cs268-kpis{
   grid-column:1/-1!important;
 }
}
@media(max-width:800px){
 #app.csp-dashboard-premium > main{gap:8px!important}
 #app.csp-dashboard-premium > main > header{
   margin:0!important;padding:9px 11px!important;
   min-height:0!important;
 }
 #app.csp-dashboard-premium > main > header .header-actions{
   display:flex!important;
   flex-wrap:wrap!important;
   width:100%!important;
   gap:6px!important;
 }
 #app.csp-dashboard-premium > main > header .header-actions > *{
   flex:0 1 auto!important;
   min-height:35px!important;
   max-width:100%!important;
 }
 #app.csp-dashboard-premium .csp-v5-time{
   display:flex!important;
   align-items:center!important;
   flex:0 1 auto!important;
   gap:9px!important;
 }
 #app.csp-dashboard-premium .csp-v5-time small{font-size:10px!important}
 #app.csp-dashboard-premium .csp-v5-time b{font-size:20px!important}
 #app.csp-dashboard-premium > main > header .header-actions #internetStatusBadge small{
   display:none!important;
 }
 #app.csp-dashboard-premium > main > header .header-actions #internetStatusBadge{
   min-height:35px!important;
   padding:6px 9px!important;
 }
 #app.csp-dashboard-premium #csV211173SystemStrip{
   align-self:stretch!important;
   justify-content:flex-start!important;
   width:100%!important;
   min-height:0!important;
   padding:5px 9px!important;
   border-radius:13px!important;
 }
 #app.csp-dashboard-premium #csV211173SystemStrip > strong{
   font-size:10px!important;
 }
 #app.csp-dashboard-premium #csV211173SystemStrip .cs-v211173-admin-chip{
   max-width:100%!important;
   min-height:36px!important;
   padding:3px 8px!important;
 }
 #app.csp-dashboard-premium .csp-v5-dashboard{
   gap:10px!important;
 }
 #app.csp-dashboard-premium .csp-v5-hero{
   height:190px!important;
   max-height:190px!important;
   padding:13px 15px!important;
 }
 #app.csp-dashboard-premium .csp-v5-hero h2{
   font-size:clamp(23px,5vw,30px)!important;
 }
 #app.csp-dashboard-premium .csp-v5-rail{
   display:flex!important;
   flex-direction:column!important;
 }
 #app.csp-dashboard-premium > main > #cs268-qas-dashboard{
   grid-template-columns:38px minmax(0,1fr)!important;
   padding:10px!important;
 }
 #app.csp-dashboard-premium #cs268-qas-dashboard .cs268-kpis{
   grid-column:1/-1!important;
   display:flex!important;
   flex-wrap:nowrap!important;
 }
}
@media(max-width:470px){
 #app.csp-dashboard-premium > main > header .header-actions > select{
   max-width:135px!important;
 }
 #app.csp-dashboard-premium #csV211173SystemStrip .cs-identity-job-title{
   font-size:10px!important;
 }
 #app.csp-dashboard-premium .csp-v5-hero{
   height:178px!important;
   max-height:178px!important;
 }
 #app.csp-dashboard-premium .csp-v5-hero h2{font-size:22px!important}
 #app.csp-dashboard-premium #cs268-qas-dashboard h2{font-size:17px!important}
 #app.csp-dashboard-premium #cs268-qas-dashboard h2 b{font-size:21px!important}
}
