/* RenfortPro v89.15.17 — système couleur cohérent pour les cartes incident.
   Règle : aucun texte blanc sur fond clair. Fond clair + texte marine + accent sémantique. */

#messages #chatBody>.bubble.rpIncidentSystem891514.rpIncidentPremium891515{
  position:relative!important;
  display:block!important;
  width:min(760px,88%)!important;
  max-width:88%!important;
  min-width:0!important;
  margin:15px auto!important;
  padding:18px 20px 16px!important;
  border:1px solid #f0c8b2!important;
  border-left:5px solid #f26a35!important;
  border-radius:18px!important;
  background:linear-gradient(135deg,#fffdfa 0%,#fff9f5 55%,#fff2ea 100%)!important;
  color:#173a5d!important;
  box-shadow:0 12px 28px rgba(26,54,78,.10),inset 0 1px 0 rgba(255,255,255,.95)!important;
  line-height:1.48!important;
  white-space:pre-line!important;
  text-align:left!important;
  transform:none!important;
  text-shadow:none!important;
  font-weight:600!important;
}

/* On neutralise définitivement les anciens pseudo-labels trop pâles. */
#messages #chatBody>.bubble.rpIncidentSystem891514.rpIncidentPremium891515::before,
#messages #chatBody>.bubble.rpIncidentSystem891514.rpIncidentPremium891515::after{
  display:none!important;
  content:none!important;
}

/* Vrai libellé DOM : toujours visible et contrasté. */
#messages #chatBody .rpIncidentLabel891517{
  display:inline-flex!important;
  align-items:center!important;
  gap:7px!important;
  width:max-content!important;
  max-width:100%!important;
  margin:0 0 10px!important;
  padding:5px 9px!important;
  border:1px solid #ffd0bc!important;
  border-radius:999px!important;
  background:#fff0e8!important;
  color:#c94f21!important;
  font-size:10px!important;
  line-height:1.1!important;
  font-weight:950!important;
  letter-spacing:.095em!important;
  text-transform:uppercase!important;
  white-space:normal!important;
  text-shadow:none!important;
  opacity:1!important;
}
#messages #chatBody .rpIncidentLabel891517::before{
  content:"";
  width:7px;height:7px;flex:0 0 7px;
  border-radius:50%;
  background:currentColor;
  box-shadow:0 0 0 3px color-mix(in srgb,currentColor 14%,transparent);
}

/* Les anciens styles de bulle ne doivent jamais rendre un enfant blanc/invisible. */
#messages #chatBody>.bubble.rpIncidentSystem891514.rpIncidentPremium891515.me,
#messages #chatBody>.bubble.rpIncidentSystem891514.rpIncidentPremium891515:not(.proposal):not(.accepted):not(.resolved):not(.refused):not(.escalated){
  color:#173a5d!important;
}
#messages #chatBody>.bubble.rpIncidentSystem891514.rpIncidentPremium891515 > *:not(.rpIncidentLabel891517){
  color:inherit!important;
  text-shadow:none!important;
  opacity:1!important;
}

/* Problème / prise en compte / réponse : même famille orange RenfortPro. */
#messages #chatBody>.bubble.rpIncidentSystem891514.rpIncidentPremium891515.reported,
#messages #chatBody>.bubble.rpIncidentSystem891514.rpIncidentPremium891515.acknowledged,
#messages #chatBody>.bubble.rpIncidentSystem891514.rpIncidentPremium891515.reply{
  border-color:#f0c8b2!important;
  border-left-color:#f26a35!important;
  background:linear-gradient(135deg,#fffdfa 0%,#fff8f3 58%,#fff0e7 100%)!important;
  color:#173a5d!important;
}
#messages #chatBody>.bubble.rpIncidentSystem891514.rpIncidentPremium891515.reported .rpIncidentLabel891517,
#messages #chatBody>.bubble.rpIncidentSystem891514.rpIncidentPremium891515.acknowledged .rpIncidentLabel891517,
#messages #chatBody>.bubble.rpIncidentSystem891514.rpIncidentPremium891515.reply .rpIncidentLabel891517{
  border-color:#ffd0bc!important;background:#fff0e8!important;color:#c94f21!important;
}

/* Proposition : bleu professionnel, sans changer la typographie générale. */
#messages #chatBody>.bubble.rpIncidentSystem891514.rpIncidentPremium891515.proposal{
  border-color:#bed8e9!important;
  border-left-color:#2b75a8!important;
  background:linear-gradient(135deg,#fbfdff 0%,#f3f9fd 58%,#eaf4fb 100%)!important;
  color:#173a5d!important;
}
#messages #chatBody>.bubble.rpIncidentSystem891514.rpIncidentPremium891515.proposal .rpIncidentLabel891517{
  border-color:#cbe1ef!important;background:#edf7fd!important;color:#246b9c!important;
}

/* Accord / résolution : vert calme. */
#messages #chatBody>.bubble.rpIncidentSystem891514.rpIncidentPremium891515.accepted,
#messages #chatBody>.bubble.rpIncidentSystem891514.rpIncidentPremium891515.resolved{
  border-color:#bcdcca!important;
  border-left-color:#318260!important;
  background:linear-gradient(135deg,#fbfefc 0%,#f2faf6 58%,#e5f4eb 100%)!important;
  color:#184b39!important;
}
#messages #chatBody>.bubble.rpIncidentSystem891514.rpIncidentPremium891515.accepted .rpIncidentLabel891517,
#messages #chatBody>.bubble.rpIncidentSystem891514.rpIncidentPremium891515.resolved .rpIncidentLabel891517{
  border-color:#c9e4d5!important;background:#eef9f3!important;color:#287556!important;
}

/* Refus : rouge terre cuite doux, jamais agressif. */
#messages #chatBody>.bubble.rpIncidentSystem891514.rpIncidentPremium891515.refused{
  border-color:#ecc7bd!important;
  border-left-color:#bd5844!important;
  background:linear-gradient(135deg,#fffdfc 0%,#fff7f5 58%,#fcece8 100%)!important;
  color:#69382f!important;
}
#messages #chatBody>.bubble.rpIncidentSystem891514.rpIncidentPremium891515.refused .rpIncidentLabel891517{
  border-color:#efd0c8!important;background:#fff1ee!important;color:#a94735!important;
}

/* Intervention RenfortPro : or/ambre. */
#messages #chatBody>.bubble.rpIncidentSystem891514.rpIncidentPremium891515.escalated{
  border-color:#ead6a8!important;
  border-left-color:#b88927!important;
  background:linear-gradient(135deg,#fffefa 0%,#fffaf0 58%,#fff3d8 100%)!important;
  color:#5d4920!important;
}
#messages #chatBody>.bubble.rpIncidentSystem891514.rpIncidentPremium891515.escalated .rpIncidentLabel891517{
  border-color:#ead8aa!important;background:#fff7df!important;color:#98701d!important;
}

#messages #chatBody>.rpIncidentSystem891514 .rp74BubbleTools,
#messages #chatBody>.rpIncidentSystem891514 .rp87MessageMore{display:none!important}

/* Bandeau épinglé : même code couleur orange, texte foncé. */
#messages .rpIncidentPinned891514{
  border:1px solid #f0c8b2!important;
  border-left:5px solid #f26a35!important;
  background:linear-gradient(135deg,#fffdfa 0%,#fff8f3 58%,#fff0e7 100%)!important;
  color:#173a5d!important;
  box-shadow:0 12px 28px rgba(26,54,78,.10)!important;
}
#messages .rpIncidentPinned891514 *{text-shadow:none!important}
#messages .rpIncidentPinnedMain891514{
  background:rgba(255,255,255,.72)!important;
  color:#173a5d!important;
}
#messages .rpIncidentPinnedMain891514 small{color:#c94f21!important;font-weight:900!important}

@media(max-width:820px){
  #messages #chatBody>.bubble.rpIncidentSystem891514.rpIncidentPremium891515{
    width:calc(100% - 20px)!important;
    max-width:calc(100% - 20px)!important;
    margin:11px 10px!important;
    border-radius:16px!important;
    padding:16px!important;
  }
}
