/* URG360 Alpha 1.15 — constantes et allergies compactes en consultation */
#v26PrescriptionLabView.v281-outpatient-compact-header #v26LatestVitalsBanner{
  position:relative;
  overflow:visible!important;
  background:#fff!important;
}
#v26PrescriptionLabView.v281-outpatient-compact-header .v26-latest-vitals-head{
  position:relative;
  min-height:20px!important;
  padding:2px 7px!important;
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
}
#v26PrescriptionLabView.v281-outpatient-compact-header .v26-latest-vitals-head>div{
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  min-width:0;
}
#v26PrescriptionLabView.v281-outpatient-compact-header .v26-latest-vitals-head span{
  font-size:8px!important;
}
#v26PrescriptionLabView.v281-outpatient-compact-header .v26-latest-vitals-head small{
  font-size:8px!important;
  color:#8090a0!important;
}
#v26PrescriptionLabView.v281-outpatient-compact-header .v26-latest-vitals-head>button:not(#v281ConsultAllergySummary){
  margin-left:auto;
  font-size:9px!important;
}
#v26PrescriptionLabView.v281-outpatient-compact-header .v26-latest-vitals-grid{
  grid-template-columns:1.2fr repeat(6,minmax(68px,1fr))!important;
  gap:3px!important;
  padding:3px 4px!important;
  background:#f7fafc!important;
}
#v26PrescriptionLabView.v281-outpatient-compact-header .v26-latest-vital{
  min-height:36px!important;
  padding:3px 6px!important;
  border-radius:6px!important;
  column-gap:4px!important;
}
#v26PrescriptionLabView.v281-outpatient-compact-header .v26-latest-vital>span{
  font-size:7px!important;
}
#v26PrescriptionLabView.v281-outpatient-compact-header .v26-latest-vital>strong{
  font-size:14px!important;
}
#v26PrescriptionLabView.v281-outpatient-compact-header .v26-latest-vital>strong small,
#v26PrescriptionLabView.v281-outpatient-compact-header .v26-latest-vital>em,
#v26PrescriptionLabView.v281-outpatient-compact-header .v26-latest-vital>time{
  font-size:7px!important;
}

/* Les allergies quittent le gros bandeau identité : résumé dans l'entête des constantes. */
#v26PrescriptionLabView.v281-outpatient-compact-header #v281ConsultAllergySummary{
  order:20;
  margin-left:auto;
  min-height:20px;
  max-width:220px;
  padding:2px 7px;
  border:1px solid #d6e0e8;
  border-radius:999px;
  background:#fff;
  color:#536b7f;
  font-size:8.5px;
  font-weight:850;
  line-height:1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  cursor:pointer;
}
#v26PrescriptionLabView.v281-outpatient-compact-header #v281ConsultAllergySummary[data-state="alert"]{
  border-color:#efb0b0;
  background:#fff4f4;
  color:#9e2525;
}
#v26PrescriptionLabView.v281-outpatient-compact-header #v281ConsultAllergySummary[data-state="unknown"]{
  border-color:#e5d4a5;
  background:#fffaf0;
  color:#7d5a13;
}
#v26PrescriptionLabView.v281-outpatient-compact-header #v281ConsultAllergySummary[data-state="none"]{
  border-color:#c9dfd1;
  background:#f4fbf6;
  color:#2d7045;
}
#v26PrescriptionLabView.v281-outpatient-compact-header #v281ConsultAllergySummary:hover{
  filter:brightness(.985);
}

#v26PrescriptionLabView.v281-outpatient-compact-header #v26AllergyBanner.v281-consult-allergy-popover{
  position:absolute!important;
  right:6px;
  top:calc(100% + 5px);
  z-index:120;
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:5px!important;
  width:max-content;
  max-width:min(520px,calc(100vw - 230px));
  margin:0!important;
  padding:8px!important;
  border:1px solid #d7e1e9;
  border-radius:10px;
  background:#fff;
  box-shadow:0 10px 30px rgba(18,48,74,.16);
}
#v26PrescriptionLabView.v281-outpatient-compact-header #v26AllergyBanner.v281-consult-allergy-popover[hidden]{
  display:none!important;
}
#v26PrescriptionLabView.v281-outpatient-compact-header #v26AllergyBanner.v281-consult-allergy-popover>div{
  font-size:9px!important;
  padding:5px 7px!important;
  white-space:normal!important;
}
#v26PrescriptionLabView.v281-outpatient-compact-header #v26AllergyBanner.v281-consult-allergy-popover button{
  font-size:9px!important;
  padding:5px 7px!important;
}

@media(max-width:1180px){
  #v26PrescriptionLabView.v281-outpatient-compact-header .v26-latest-vitals-grid{
    grid-template-columns:repeat(4,1fr)!important;
  }
  #v26PrescriptionLabView.v281-outpatient-compact-header #v281ConsultAllergySummary{
    max-width:160px;
  }
}
