/* Accueil personnel uniquement : une grille stable pour les 7 jours.
   Aucun changement aux moteurs, aux calendriers Equipe/Responsable ou aux popups. */
.hc-calendar-driven-planning .hc-rolling-week-range{
  display:flex!important;align-items:center!important;justify-content:center!important;
  margin:0 2px 12px!important;min-height:36px!important;text-align:center!important;
}
.hc-calendar-driven-planning .hc-rolling-week-range>strong{
  color:#123f55!important;font-size:clamp(1.03rem,4.6vw,1.35rem)!important;
  line-height:1.1!important;font-weight:950!important;letter-spacing:-.025em!important;
}
/* Chaque colonne reserve dans son propre flux une ligne de pied de 40 px :
   le badge LUNDI ne peut plus chevaucher le separateur RENDEZ-VOUS. */
.hc-calendar-driven-planning .hc-rolling-seven{
  --stip-week-columns:7!important;
  display:grid!important;
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
  align-items:stretch!important;
  gap:4px!important;
  padding:0!important;
  margin:0 0 12px!important;
  overflow:visible!important;
}
.hc-calendar-driven-planning .hc-rolling-day-slot{
  box-sizing:border-box!important;
  min-width:0!important;width:100%!important;
  display:grid!important;
  grid-template-rows:auto 40px!important;
  row-gap:5px!important;
  align-items:stretch!important;
}
.hc-calendar-driven-planning .hc-rolling-day-slot>.stip-week-day.stip-week-personal-layout{
  width:100%!important;
  min-height:178px!important;height:100%!important;
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr)!important;
  justify-items:stretch!important;
  align-content:start!important;
}
.hc-calendar-driven-planning .hc-rolling-seven .stip-week-day-head{
  width:100%!important;
  min-height:70px!important;
  display:grid!important;
  place-items:center!important;
}
/* Auparavant .stip-week-core etait display:contents tandis que le corps
   etait flex. Les codes et les evenements se retrouvaient alors en concurrence
   comme enfants directs, expliquant leur alignement vertical erratique. */
.hc-calendar-driven-planning .hc-rolling-seven .stip-week-day-body{
  box-sizing:border-box!important;
  width:100%!important;min-width:0!important;
  display:flex!important;flex-flow:column nowrap!important;
  align-items:center!important;justify-content:flex-start!important;
  align-content:center!important;
  gap:0!important;
  padding:10px 2px 10px!important;
  margin:0!important;
}
.hc-calendar-driven-planning .hc-rolling-seven .hc-shift-core.stip-week-core{
  display:flex!important;
  flex-flow:column nowrap!important;
  flex:0 0 auto!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:100%!important;min-width:0!important;
  min-height:0!important;
  gap:0!important;
  margin:0!important;padding:0!important;
}
.hc-calendar-driven-planning .hc-rolling-seven .stip-week-code{
  display:block!important;
  flex:0 0 28px!important;
  width:100%!important;height:28px!important;min-height:28px!important;
  line-height:28px!important;
  padding:0!important;margin:0!important;
  align-self:center!important;text-align:center!important;
  font-size:1.12rem!important;
}
.hc-calendar-driven-planning .hc-rolling-seven .stip-week-main{
  display:grid!important;
  flex:0 0 33px!important;
  place-items:center!important;
  align-self:center!important;
  width:100%!important;
  min-height:33px!important;
  margin:2px 0 0!important;padding:0!important;
}
.hc-calendar-driven-planning .hc-rolling-seven .stip-week-main-icon{
  display:grid!important;
  place-items:center!important;
  justify-self:center!important;
  width:29px!important;height:29px!important;
  min-width:29px!important;min-height:29px!important;
  font-size:1.65rem!important;
  margin:0!important;
}
.hc-calendar-driven-planning .hc-rolling-seven .stip-week-divider{
  display:none!important;
}
.hc-calendar-driven-planning .hc-rolling-seven .stip-week-events{
  display:flex!important;flex-flow:column nowrap!important;
  flex:0 0 auto!important;
  align-items:center!important;justify-content:flex-start!important;
  align-self:center!important;
  width:100%!important;height:auto!important;min-height:0!important;
  gap:6px!important;
  margin:8px 0 0!important;padding:0!important;
  overflow:visible!important;
}
.hc-calendar-driven-planning .hc-rolling-seven .stip-week-events.is-empty{
  margin-top:0!important;
}
.hc-calendar-driven-planning .hc-rolling-seven .stip-week-event{
  display:grid!important;place-items:center!important;
  align-self:center!important;
  width:26px!important;height:26px!important;
  min-width:26px!important;min-height:26px!important;
  flex:0 0 26px!important;
  margin:0!important;padding:0!important;
  font-size:1.5rem!important;
}
.hc-calendar-driven-planning .hc-rolling-event-overflow{
  align-self:center!important;
  border-radius:8px!important;
  padding:3px!important;
  background:rgba(12,84,110,.09)!important;color:#22576a!important;
  font-size:.67rem!important;font-weight:900!important;
  line-height:1!important;white-space:nowrap!important;
}
/* Le marqueur rouge fait partie de la deuxieme ligne GRID du jour.
   Aucune position absolue, marge negative, huitieme colonne ou collision. */
.hc-calendar-driven-planning .hc-rolling-monday-flag{
  box-sizing:border-box!important;
  position:static!important;inset:auto!important;
  transform:none!important;
  grid-row:2!important;
  align-self:center!important;justify-self:center!important;
  display:flex!important;flex-flow:column nowrap!important;
  align-items:center!important;justify-content:center!important;
  min-width:0!important;width:100%!important;max-width:100%!important;
  height:30px!important;
  padding:2px 1px!important;
  border:1px solid rgba(185,30,39,.55)!important;border-radius:8px!important;
  background:linear-gradient(180deg,#fff9f9,#ffebed)!important;
  color:#b91c27!important;
  box-shadow:0 3px 7px rgba(125,30,38,.14)!important;
  font-size:.58rem!important;font-weight:950!important;
  line-height:1.08!important;letter-spacing:0!important;
  white-space:nowrap!important;pointer-events:none!important;
}
.hc-calendar-driven-planning .hc-rolling-monday-arrow{
  position:static!important;transform:none!important;
  display:block!important;
  font-size:13px!important;font-weight:950!important;
  line-height:11px!important;color:#bb1c29!important;
}
.hc-calendar-driven-planning .hc-rolling-week-unavailable{
  color:#516e7b;text-align:center;margin:8px 0;
}
@media(max-width:390px){
  .hc-calendar-driven-planning .hc-rolling-seven{gap:3px!important}
  .hc-calendar-driven-planning .hc-rolling-seven .stip-week-day-body{padding-inline:1px!important}
  .hc-calendar-driven-planning .hc-rolling-monday-flag{font-size:.55rem!important}
}
