/* HBCHM V5 - Grille stable des rencontres, sans colonnes implicites.
   Les cinq blocs ont chacun leur place : date, catégorie, équipes, infos, actions. */
.hb-week-panel #upcoming.hb-week-grid{
 display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:6px!important;
}
.hb-week-panel .hb-week-card{
 display:grid!important;
 grid-template-columns:110px 52px minmax(0,1fr) minmax(125px,175px) 78px!important;
 grid-template-areas:"when category versus facts actions"!important;
 align-items:center!important;gap:8px!important;
 width:100%!important;max-width:100%!important;min-width:0!important;min-height:0!important;
 box-sizing:border-box!important;margin:0!important;padding:9px 11px!important;
 background:#fff!important;border:1px solid #dce8ef!important;border-radius:10px!important;
 box-shadow:none!important;overflow:hidden!important;
}
.hb-week-panel .hb-week-card>*{min-width:0!important;max-width:100%!important}
.hb-week-panel .hb-week-when{grid-area:when!important;display:flex!important;flex-direction:column!important;gap:3px!important;font-size:11px!important}
.hb-week-panel .hb-week-date{font-size:10px!important;color:#007d9d!important;font-weight:800!important;white-space:nowrap!important}
.hb-week-panel .hb-week-when strong{font-size:11px!important;color:#071d34!important}
.hb-week-panel .hb-week-category{grid-area:category!important;justify-self:center!important;padding:4px 7px!important;background:#e6f6fa!important;color:#074258!important;border-radius:20px!important;font-size:10px!important;font-weight:800!important}
.hb-week-panel .hb-week-versus{
 grid-area:versus!important;display:grid!important;
 grid-template-columns:minmax(0,1fr) 30px minmax(0,1fr)!important;
 gap:6px!important;align-items:center!important;min-width:0!important;min-height:0!important;margin:0!important;
}
.hb-week-panel .hb-week-side{display:flex!important;align-items:center!important;gap:6px!important;min-width:0!important;max-width:100%!important;font-size:10px!important;line-height:1.2!important;font-weight:800!important}
.hb-week-panel .hb-week-side:last-child{justify-content:flex-end!important;text-align:right!important}
.hb-week-panel .hb-week-side span{min-width:0!important;max-width:100%!important;overflow-wrap:anywhere!important;word-break:normal!important}
.hb-week-panel .hb-week-side img{width:24px!important;height:24px!important;max-width:24px!important;max-height:24px!important;object-fit:contain!important;flex:0 0 24px!important}
.hb-week-panel .hb-week-vs{text-align:center!important;color:#0094b0!important;font-size:11px!important;font-weight:900!important;white-space:nowrap!important}
.hb-week-panel .hb-week-facts{grid-area:facts!important;display:flex!important;flex-direction:column!important;gap:4px!important;min-width:0!important;font-size:10px!important;line-height:1.25!important}
.hb-week-panel .hb-week-facts>span{max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.hb-week-panel .hb-at-home{color:#007d9a!important;font-weight:800!important}
.hb-week-panel .hb-away{color:#a55b0b!important;font-weight:800!important}
.hb-week-panel .hb-week-room{color:#233e50!important}
.hb-week-panel .hb-week-referee{color:#587183!important}
.hb-week-panel .hb-week-actions{grid-area:actions!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:5px!important;min-width:0!important}
.hb-week-panel .hb-week-actions .hb-week-gps-link,
.hb-week-panel .hb-week-actions .hb-week-match-link{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 width:33px!important;height:33px!important;min-width:33px!important;min-height:33px!important;
 padding:0!important;border:1px solid #00a5bd!important;border-radius:9px!important;
 color:#007e9b!important;background:#fff!important;text-decoration:none!important;box-sizing:border-box!important
}
.hb-week-panel .hb-week-actions a:hover{color:#fff!important;background:#007e9b!important}
.hb-week-panel .hb-week-actions svg{width:19px!important;height:19px!important;display:block!important}
.hb-week-panel .hb-week-actions .hb-icon-disabled{border-color:#cbd3da!important;color:#a4adb6!important;background:#f1f3f5!important;cursor:not-allowed!important;pointer-events:none!important}
@media(max-width:1080px){
 .hb-week-panel .hb-week-card{
  grid-template-columns:100px 46px minmax(0,1fr) 78px!important;
  grid-template-areas:"when category versus actions" "when category facts actions"!important;
  gap:5px 8px!important
 }
 .hb-week-panel .hb-week-facts{flex-direction:row!important;flex-wrap:wrap!important;gap:3px 10px!important}
 .hb-week-panel .hb-week-facts>span{max-width:100%!important}
}
@media(max-width:700px){
 .hb-week-panel .hb-week-card{
  grid-template-columns:1fr auto!important;
  grid-template-areas:"when category" "versus versus" "facts actions"!important;
  gap:7px!important;padding:10px!important
 }
 .hb-week-panel .hb-week-category{justify-self:end!important}
 .hb-week-panel .hb-week-versus{grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr)!important}
 .hb-week-panel .hb-week-facts{flex-direction:column!important}
 .hb-week-panel .hb-week-actions{align-self:center!important}
}
@media(prefers-reduced-motion:no-preference){
 .hb-week-panel .hb-week-card{transition:border-color .2s ease,transform .2s ease!important}
 .hb-week-panel .hb-week-card:hover{transform:translateY(-2px)!important;border-color:#00bcd4!important}
}

/* HBCHM: accueil, équipe extérieure à droite comme sur les calendriers. */
.hb-week-panel .hb-week-side-away{flex-direction:row!important;justify-content:flex-end!important;text-align:right!important}
.hb-week-panel .hb-week-side-away .club-mark,.hb-week-panel .hb-week-side-away .club-logo{flex-shrink:0!important}

/* V6.3.7 — journée ou tour sous la catégorie des matchs de la semaine */
.hb-week-panel .hb-week-category-wrap{grid-area:category!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-self:center!important;gap:4px!important;min-width:0!important;max-width:100%!important}
.hb-week-panel .hb-week-category-wrap .hb-week-category{grid-area:auto!important;justify-self:auto!important;white-space:nowrap!important}
.hb-week-panel .hb-week-category-wrap small{font-size:9px!important;line-height:1.2!important;font-weight:600!important;color:#647889!important;text-align:center!important;white-space:nowrap!important}
@media(max-width:700px){.hb-week-panel .hb-week-category-wrap{justify-self:end!important}}

/* V6.7.38 — Dates de week-end : ne jamais masquer la période dans les cartes de l’accueil.
   La grille compacte imposait white-space:nowrap dans une colonne de 110px. */
.hb-week-panel .hb-week-card .hb-week-when{min-width:0!important;max-width:100%!important;overflow:visible!important;align-self:center!important}
.hb-week-panel .hb-week-card .hb-week-date{display:block!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:break-word!important;word-break:normal!important;line-height:1.35!important;max-width:100%!important}
.hb-week-panel .hb-week-card .hb-week-when strong{display:block!important;white-space:normal!important;overflow-wrap:break-word!important;line-height:1.3!important}
