/* URG360 v2.7 RC2 — Pancarte : plein écran, symétrie des graphes, lisibilité, index de choc */

/* Cartes du haut strictement symétriques */
.v27-chart-grid-v3{
  align-items:stretch;
}
.v27-chart-grid-v3>.v27-chart-card.hemo,
.v27-chart-grid-v3>.v27-chart-card.respiratory{
  display:flex;
  min-width:0;
  height:100%;
  flex-direction:column;
}
.v27-chart-grid-v3>.v27-chart-card.hemo>.v27-chart-head,
.v27-chart-grid-v3>.v27-chart-card.respiratory>.v27-chart-head{
  min-height:52px;
  box-sizing:border-box;
}
.v27-chart-grid-v3>.v27-chart-card.hemo>.v27-lanes,
.v27-chart-grid-v3>.v27-chart-card.respiratory>.v27-lanes{
  display:grid;
  grid-template-rows:auto auto;
  align-content:start;
  flex:1 1 auto;
}

/* Graphes plus hauts, sans écrasement des libellés */
.v27-chart-grid-v3 .v27-chart-svg{
  height:190px;
}
.v27-chart-grid-v3 .v27-chart-svg.compact{
  height:122px;
}
.v27-chart-grid-v3 .v27-chart-svg.metabolic{
  height:168px;
}
.v27-chart-grid-v3 .v27-pa-range-svg{
  height:190px;
}
.v27-chart-grid-v3 .v27-chart-axis{
  font-size:9.5px;
  font-weight:700;
  letter-spacing:.01em;
}
.v27-chart-grid-v3 .v27-chart-last-label,
.v27-chart-grid-v3 .v27-pa-last{
  font-size:10.5px;
  font-weight:950;
}
.v27-chart-grid-v3 .v27-chart-note{
  font-size:9.5px;
  font-weight:800;
}
.v27-chart-grid-v3 .v27-lane-title strong{
  font-size:10.5px;
}
.v27-chart-grid-v3 .v27-lane-title span{
  font-size:9px;
}

/* Index de choc : alerte + explication au survol / clavier */
.v27-index-wrap{
  position:relative;
  display:inline-flex;
  align-items:center;
}
.v27-index-chip{
  cursor:help;
}
.v27-index-chip.is-alert{
  border-color:#d84b52;
  background:#fff0f1;
  color:#a51f28;
  box-shadow:0 0 0 1px rgba(197,38,48,.04);
}
.v27-index-chip.is-alert b{
  color:#b01822;
}
.v27-index-tooltip{
  position:absolute;
  right:0;
  top:calc(100% + 7px);
  z-index:80;
  display:none;
  width:290px;
  max-width:min(290px,70vw);
  padding:10px 11px;
  border:1px solid #b9cad7;
  border-radius:9px;
  background:#102f4c;
  color:#fff;
  box-shadow:0 8px 22px rgba(13,39,62,.22);
  font-size:10px;
  line-height:1.4;
  text-align:left;
  white-space:normal;
}
.v27-index-tooltip::before{
  content:"";
  position:absolute;
  right:18px;
  top:-6px;
  width:10px;
  height:10px;
  border-left:1px solid #b9cad7;
  border-top:1px solid #b9cad7;
  background:#102f4c;
  transform:rotate(45deg);
}
.v27-index-tooltip strong,
.v27-index-tooltip span{
  display:block;
}
.v27-index-tooltip strong{
  margin-bottom:4px;
  font-size:10.5px;
}
.v27-index-tooltip span+span{
  margin-top:3px;
}
.v27-index-wrap:hover .v27-index-tooltip,
.v27-index-wrap:focus-within .v27-index-tooltip{
  display:block;
}
.v27-index-chip:focus-visible{
  outline:3px solid rgba(11,99,167,.22);
  outline-offset:2px;
}

/* Vrai plein écran navigateur sur la Pancarte ; le mode fixed RC1 reste le fallback. */
#v26TabPancarte:fullscreen{
  width:100%;
  height:100%;
  overflow:auto;
  box-sizing:border-box;
  padding:10px 12px 14px!important;
  background:#edf3f8;
}
#v26TabPancarte:fullscreen .v27-pancarte{
  min-height:100%;
}
#v26TabPancarte:fullscreen .v27-pancarte-toolbar{
  position:sticky;
  top:0;
  z-index:70;
  margin:-4px -3px 2px;
  padding:7px 6px;
  background:rgba(237,243,248,.96);
  border-bottom:1px solid #cfdae4;
}
#v26TabPancarte:fullscreen .v27-chart-grid-v3{
  gap:14px;
}

/* Fallback plein écran si l'API navigateur est indisponible. */
#v26PrescriptionLabView.v27-pancarte-focus-mode #v26TabPancarte{
  width:100%;
  max-width:none;
}
#v26PrescriptionLabView.v27-pancarte-focus-mode .v27-pancarte-toolbar{
  position:sticky;
  top:0;
  z-index:70;
  background:rgba(237,243,248,.96);
  border-bottom:1px solid #cfdae4;
}

@media(max-width:1280px){
  .v27-chart-grid-v3 .v27-chart-svg{height:180px}
  .v27-chart-grid-v3 .v27-chart-svg.compact{height:118px}
  .v27-chart-grid-v3 .v27-pa-range-svg{height:180px}
  .v27-chart-grid-v3 .v27-chart-svg.metabolic{height:160px}
}

@media(max-width:820px){
  .v27-index-tooltip{right:auto;left:0;max-width:78vw}
  .v27-index-tooltip::before{right:auto;left:18px}
}
