/* =========================================================
   COBAT V2.1.07 — ACCUEIL : LISIBILITÉ ET RÉORGANISATION
   - Activité récente retirée de l'accueil.
   - Alertes déplacées dans la colonne droite.
   - Chat chantier étendu sur toute la colonne gauche.
   - Polices Alertes / Chat / Planning relevées pour un usage à 100 %.
   ========================================================= */

/* Colonne gauche : chat sur toute la hauteur libérée. */
#v1200Shell .v12-leftcol.v2107-chat-column{
  display:block!important;
  height:100%!important;
  min-height:0!important;
}
#v1200Shell .v12-leftcol.v2107-chat-column #v12ChatSlot{
  display:block!important;
  height:100%!important;
  min-height:0!important;
}
#v1200Shell .v12-leftcol.v2107-chat-column .chat-panel{
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  display:flex!important;
  flex-direction:column!important;
}
#v1200Shell .v12-leftcol.v2107-chat-column .chat-messages{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow:auto!important;
}

/* Colonne droite : Alertes à la place de l'ancien journal d'activité. */
#v1200Shell .v12-rightcol.v2107-info-column{
  grid-template-rows:minmax(0,1.05fr) minmax(0,.95fr)!important;
  min-height:0!important;
}
#v1200Shell .v12-rightcol.v2107-info-column #v12Alerts,
#v1200Shell .v12-rightcol.v2107-info-column #v12Library{
  min-height:0!important;
  height:100%!important;
}
#v1200Shell .v12-rightcol.v2107-info-column #v12AlertList{
  height:calc(100% - 34px)!important;
  overflow:auto!important;
}

/* Lisibilité : alertes. */
#v1200Shell #v12Alerts .v12-section-title{font-size:9.5px!important;}
#v1200Shell #v12Alerts .v12-section-action{font-size:7px!important;}
#v1200Shell #v12Alerts .v12-list{padding:4px 10px 7px!important;}
#v1200Shell #v12Alerts .v12-list-row{
  min-height:43px!important;
  padding:5px 1px!important;
  grid-template-columns:25px minmax(0,1fr) auto!important;
  gap:7px!important;
}
#v1200Shell #v12Alerts .v12-row-icon{width:25px!important;height:25px!important;font-size:11px!important;}
#v1200Shell #v12Alerts .v12-row-title{font-size:8.5px!important;line-height:1.28!important;}
#v1200Shell #v12Alerts .v12-row-sub{font-size:7px!important;line-height:1.28!important;margin-top:2px!important;}
#v1200Shell #v12Alerts .v12-row-time{font-size:6.5px!important;}
#v1200Shell #v12Alerts .v12-priority{font-size:6.3px!important;padding:3px 6px!important;}

/* Lisibilité : chat chantier. */
#v1200Shell .v2107-chat-column .chat-panel .side-panel-header{
  height:38px!important;
  min-height:38px!important;
  padding:6px 11px!important;
}
#v1200Shell .v2107-chat-column .chat-panel .side-panel-title{font-size:9.5px!important;}
#v1200Shell .v2107-chat-column .chat-online{font-size:7px!important;}
#v1200Shell .v2107-chat-column .chat-messages{padding:8px 10px!important;}
#v1200Shell .v2107-chat-column .chat-message{margin-bottom:8px!important;}
#v1200Shell .v2107-chat-column .chat-author{font-size:7.5px!important;}
#v1200Shell .v2107-chat-column .chat-role{font-size:6.5px!important;}
#v1200Shell .v2107-chat-column .chat-bubble{
  font-size:9px!important;
  line-height:1.32!important;
  padding:7px 9px!important;
  border-radius:9px!important;
}
#v1200Shell .v2107-chat-column .chat-time{font-size:6.5px!important;}
#v1200Shell .v2107-chat-column .chat-composer{padding:7px!important;grid-template-columns:1fr 34px!important;}
#v1200Shell .v2107-chat-column .chat-composer input{height:34px!important;font-size:8.5px!important;}
#v1200Shell .v2107-chat-column .chat-composer button{height:34px!important;}

/* Lisibilité : extrait du planning. On garde sa hauteur compacte mais on remonte
   les tailles très faibles imposées par l'ancien "fit viewport". */
#v1200Shell #v12Insights .v12-section-title{font-size:9px!important;}
#v1200Shell #v12Insights .v12-section-action{font-size:7px!important;}
#v1200Shell #v12Insights .v12-planning{padding:0 10px 6px!important;}
#v1200Shell #v12Insights .v12-plan-head{
  height:27px!important;
  min-height:27px!important;
  font-size:6.8px!important;
}
#v1200Shell #v12Insights .v12-plan-row{min-height:25px!important;}
#v1200Shell #v12Insights .v12-plan-label strong{font-size:7.6px!important;line-height:1.2!important;}
#v1200Shell #v12Insights .v12-plan-label span{font-size:6.3px!important;line-height:1.2!important;margin-top:1px!important;}
#v1200Shell #v12Insights .v12-plan-hours{font-size:7px!important;}
#v1200Shell #v12Insights .v12-plan-empty{font-size:7.5px!important;}

/* Écrans très larges : lecture encore légèrement renforcée. */
@media (min-width:1900px) and (min-height:900px){
  #v1200Shell #v12Alerts .v12-row-title{font-size:9.3px!important;}
  #v1200Shell #v12Alerts .v12-row-sub{font-size:7.6px!important;}
  #v1200Shell .v2107-chat-column .chat-bubble{font-size:9.7px!important;}
  #v1200Shell .v2107-chat-column .chat-author{font-size:8px!important;}
  #v1200Shell #v12Insights .v12-plan-head{font-size:7.2px!important;}
  #v1200Shell #v12Insights .v12-plan-label strong{font-size:8px!important;}
  #v1200Shell #v12Insights .v12-plan-label span{font-size:6.7px!important;}
}

/* Mobile / tablette : la grille redevient naturellement verticale. */
@media (max-width:1100px){
  #v1200Shell .v12-leftcol.v2107-chat-column{display:grid!important;height:auto!important;}
  #v1200Shell .v12-leftcol.v2107-chat-column #v12ChatSlot{height:auto!important;}
  #v1200Shell .v12-leftcol.v2107-chat-column .chat-panel{height:auto!important;min-height:340px!important;}
  #v1200Shell .v12-rightcol.v2107-info-column{grid-template-rows:auto auto!important;}
}
