/* ================================================================
   THE TIMER V1.0.29 — COMPACT HORIZONTAL SESSION STRIP
   Keep telemetry on one horizontal line: more visible than before,
   but discreet enough to remain secondary to the cockpit content.
   ================================================================ */

#hostView #v4413CommandBar{
  grid-template-columns:minmax(0,1fr)!important;
  gap:7px!important;
  padding:8px 10px!important;
  margin:7px 0 16px!important;
  min-height:0!important;
}

#hostView #v4413CommandBar .v4413Vitals{
  width:100%!important;
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  gap:6px!important;
  padding:0!important;
  margin:0!important;
  border-top:0!important;
  overflow:visible!important;
  opacity:1!important;
}

#hostView #v4413CommandBar .v4413Vitals:before{
  content:'ÉTAT SESSION'!important;
  flex:0 0 auto!important;
  display:flex!important;
  align-items:center!important;
  align-self:stretch!important;
  min-width:92px!important;
  padding:0 12px 0 3px!important;
  border-right:1px solid rgba(255,255,255,.055)!important;
  color:#7a858c!important;
  font-size:8px!important;
  font-weight:950!important;
  letter-spacing:.18em!important;
  line-height:1.2!important;
  white-space:nowrap!important;
}

#hostView #v4413CommandBar .v4413Vital{
  flex:1 1 0!important;
  width:auto!important;
  min-width:0!important;
  min-height:38px!important;
  padding:6px 9px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:flex-start!important;
  gap:2px!important;
  border:1px solid rgba(255,255,255,.05)!important;
  border-radius:7px!important;
  background:rgba(255,255,255,.017)!important;
  box-shadow:none!important;
}

#hostView #v4413CommandBar .v4413Vital span{
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  color:#768087!important;
  font-size:7px!important;
  font-weight:850!important;
  letter-spacing:.12em!important;
  line-height:1.1!important;
  text-transform:uppercase!important;
}

#hostView #v4413CommandBar .v4413Vital strong{
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  margin:0!important;
  color:#e8e7e4!important;
  font-size:11px!important;
  font-weight:900!important;
  letter-spacing:.015em!important;
  line-height:1.15!important;
}

#hostView #v4413CommandBar .v4413Vital.warn{
  background:rgba(109,67,23,.09)!important;
  border-color:rgba(196,136,65,.20)!important;
}
#hostView #v4413CommandBar .v4413Vital.bad{
  background:rgba(105,29,21,.11)!important;
  border-color:rgba(199,69,52,.23)!important;
}

/* QA actions remain a secondary line only when the test mode is active. */
#hostView #v125QaActions{
  width:100%!important;
  grid-column:1/-1!important;
  justify-content:flex-end!important;
  padding-top:1px!important;
}

#hostView #v4413CommandBar .v4413Warnings{
  grid-column:1/-1!important;
  width:100%!important;
}

/* Do not stack the telemetry vertically on normal desktop widths. */
@media(max-width:1300px){
  #hostView #v4413CommandBar .v4413Vitals{
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scrollbar-width:none!important;
  }
  #hostView #v4413CommandBar .v4413Vitals::-webkit-scrollbar{display:none!important}
  #hostView #v4413CommandBar .v4413Vital{flex:0 0 112px!important}
  #hostView #v4413CommandBar .v4413Vitals:before{position:sticky!important;left:0!important;z-index:2!important;background:rgba(7,10,12,.98)!important}
}

@media(max-width:760px){
  #hostView #v4413CommandBar{padding:7px 8px!important}
  #hostView #v4413CommandBar .v4413Vitals:before{min-width:76px!important;font-size:7px!important;padding-right:9px!important}
  #hostView #v4413CommandBar .v4413Vital{flex-basis:104px!important;min-height:36px!important}
  #hostView #v125QaActions{justify-content:flex-start!important;overflow-x:auto!important}
}
