/* Leader Impactant V6.36 R2 — couleur par statut, agenda Mentor uniquement.
 * Aucune écriture de donnée, aucun changement de validation, de points ou de
 * type d'activité. Les points .mentor-action-dot-v601 (done/missed) sont la
 * source de vérité visuelle fournie par le calendrier existant.
 * Vues client et prévisualisations Mentor exclues.
 */

/* À faire / à venir : orange, y compris les séances SPORT. */
body[data-ui-mode="coach"][data-ui-page="schedule"]:not(.mentor-full-preview)
#app .mentor-schedule-main .cal-day .cal-item {
  --li-mentor-agenda-status-bg: #ffe3bd;
  --li-mentor-agenda-status-border: #d87312;
  --li-mentor-agenda-status-text: #713505;
  background: var(--li-mentor-agenda-status-bg) !important;
  border-color: var(--li-mentor-agenda-status-border) !important;
  color: var(--li-mentor-agenda-status-text) !important;
  opacity: 1 !important;
}

/* Fait : validation existante (done), y compris activités personnelles. */
body[data-ui-mode="coach"][data-ui-page="schedule"]:not(.mentor-full-preview)
#app .mentor-schedule-main .cal-day .cal-item:is(.done, .mentor-personal-activity-v601, :has(> small > .mentor-action-dot-v601.done)) {
  --li-mentor-agenda-status-bg: #d8f2df;
  --li-mentor-agenda-status-border: #218048;
  --li-mentor-agenda-status-text: #17482a;
}

/* Manqué : un marqueur missed déjà rendu dans l'agenda Mentor.
 * En particulier, une séance SPORT passée non validée devient rouge.
 */
body[data-ui-mode="coach"][data-ui-page="schedule"]:not(.mentor-full-preview)
#app .mentor-schedule-main .cal-day .cal-item:has(> small > .mentor-action-dot-v601.missed) {
  --li-mentor-agenda-status-bg: #fbd9d8;
  --li-mentor-agenda-status-border: #c73334;
  --li-mentor-agenda-status-text: #842022;
}

/* Texte lisible même si la couleur du type d'activité était forcée avant.
 * N'affecte pas les boutons (sélection/suppression, ajout, déplacement).
 */
body[data-ui-mode="coach"][data-ui-page="schedule"]:not(.mentor-full-preview)
#app .mentor-schedule-main .cal-day .cal-item > :is(small, span, em) {
  color: var(--li-mentor-agenda-status-text) !important;
  -webkit-text-fill-color: var(--li-mentor-agenda-status-text) !important;
}
