/* Rubrique « Staff » (src/web/modules/staff.js). Mêmes groupes, lignes et boutons que Modération et Tickets. */
.sf { display: grid; gap: 20px; }

/* Parties de la rubrique (comme Messages) */
.sf-vues { display: flex; max-width: 100%; }   /* barre des parties : pleine largeur (.sous-rubriques, app.css) */
.sf-vues button { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sf-nb { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: rgb(255 255 255 / .1); font-size: 12px; font-weight: 700; }
.sf-vues button[aria-pressed="true"] .sf-nb { background: rgb(0 0 0 / .12); }
@media (max-width: 560px) {
  .sf-vues { width: 100%; }
  .sf-vues button { flex: 1 1 0; justify-content: center; padding: 0 6px; font-size: 14px; min-width: 0; }
  .sf-vues .sf-nb { display: none; }
}
.sf-note { margin: 0; padding: 4px 22px 10px; color: var(--ambre); font-size: 14px; line-height: 19px; }
.sf-gris { color: var(--attenue); }
.sf-droite { display: flex; justify-content: flex-end; }
@media (max-width: 734px) { .sf-droite { justify-content: flex-start; } }

/* Suivi : un tableau sur ordinateur, une fiche par membre sur téléphone */
.sf-suivi-tete, .sf-suivi-l { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) 72px minmax(150px, 1fr); gap: 14px; align-items: center; }
.sf-suivi-tete { padding: 6px 22px 8px; color: var(--attenue); font-size: 13px; font-weight: 600; }
.sf-suivi { list-style: none; margin: 0; padding: 0 0 6px; }
.sf-suivi-l { position: relative; padding: 12px 22px; font-size: 15px; line-height: 20px; }
.sf-suivi-l::before { content: ''; position: absolute; top: 0; left: 22px; right: 22px; height: 1px; background: var(--trait); }
.sf-suivi-qui { display: grid; gap: 4px; min-width: 0; }
.sf-role { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--attenue); font-size: 13px; line-height: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-role .pastille, .sf-pastille { width: 9px; height: 9px; border-radius: 50%; background: var(--c, #8f929a); flex: none; }
.sf-suivi-c { min-width: 0; font-variant-numeric: tabular-nums; }
.sf-suivi-n b { font-weight: 600; }
.sf-etiq { display: none; }
.sf-suivi-etat .etat-tickets { align-items: flex-start; font-size: 14.5px; color: var(--texte); }
.sf-suivi-etat .point { margin-top: 6px; }
.sf-detail-etat { display: block; color: var(--attenue); font-size: 13px; line-height: 18px; }
@media (max-width: 734px) {
  .sf-suivi-tete { display: none; }
  .sf-suivi-l { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 14px; }
  .sf-suivi-qui { grid-column: 1; }
  .sf-suivi-etat { grid-column: 2; grid-row: 1; justify-self: end; }
  .sf-suivi-etat .etat-tickets { text-align: right; flex-direction: row-reverse; }
  .sf-suivi-c { display: grid; gap: 1px; font-size: 14px; }
  .sf-suivi-n { grid-column: 1 / -1; display: flex; gap: 6px; align-items: baseline; }
  .sf-etiq { display: block; color: var(--attenue); font-size: 12.5px; line-height: 17px; }
  .sf-suivi-n .sf-etiq::after { content: ' :'; }
}
.sf-jours { display: flex; align-items: center; gap: 10px; color: var(--attenue); font-size: 15px; }
.sf-jours .saisie { width: 96px; font-variant-numeric: tabular-nums; }

/* Absences */
.sf-date { color-scheme: dark; min-width: 0; }
.sf-cal { margin: 0; padding: 6px 22px 10px; }
.sf-cal-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; max-width: 640px; margin-bottom: 8px; font-size: 15px; font-weight: 600; }
.sf-cal-tete span::first-letter { text-transform: uppercase; }
.sf-cal-img { max-width: 640px; aspect-ratio: 1000 / 900; border-radius: 12px; overflow: hidden; background: #0B0F18; display: grid; place-items: center; }
.sf-cal-img img { display: block; width: 100%; height: auto; align-self: start; }
.sf-cal-img:has(img) { aspect-ratio: auto; }
.sf-cal-attente { color: var(--attenue); font-size: 14px; }
.sf-ligne .nom .etiquette { margin-left: 2px; }
@media (max-width: 560px) { .ligne-r.sf-ligne.sf-garde { grid-template-columns: minmax(0, 1fr) auto; } }
.sf-vide { margin: 0; padding: 14px 22px 18px; color: var(--attenue); font-size: 15px; line-height: 21px; }
.sf-avert { margin: 0; padding: 4px 22px 10px; color: var(--ambre); font-size: 13.5px; line-height: 18px; }

/* Statistiques */
.sf-outils { padding: 4px 22px 8px; }
.sf-periodes { max-width: 100%; }
.sf-periodes button { padding: 0 14px; }
@media (max-width: 420px) { .sf-periodes { display: flex; } .sf-periodes button { flex: 1 1 auto; padding: 0 8px; font-size: 14px; } }

.sf-chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px 22px 4px; }
.sf-chiffres > div { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--tuile-survol); min-width: 0; }
.sf-chiffres b { font-size: 24px; line-height: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sf-chiffres span { color: var(--attenue); font-size: 13.5px; line-height: 18px; overflow-wrap: anywhere; }
@media (max-width: 420px) { .sf-chiffres { gap: 6px; } .sf-chiffres > div { padding: 10px; } .sf-chiffres b { font-size: 21px; line-height: 26px; } .sf-chiffres span { font-size: 12.5px; } }

/* Activité : une barre par jour (ou par mois), hauteur posée en JavaScript (--h, de 0 à 1) */
.sf-graphe { margin: 0; padding: 14px 22px 6px; }
.sf-graphe figcaption { display: flex; justify-content: space-between; gap: 12px; color: var(--attenue); font-size: 13.5px; font-weight: 600; margin-bottom: 10px; }
.sf-graphe figcaption span { font-weight: 500; font-variant-numeric: tabular-nums; }
.sf-barres { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; align-items: end; }
.sf-barres.sf-dense { gap: 3px; }
.sf-col { display: grid; gap: 6px; min-width: 0; }
.sf-pile { position: relative; height: 120px; border-radius: 6px; background: rgb(255 255 255 / .03); display: flex; align-items: flex-end; overflow: hidden; }
.sf-barre { display: block; width: 100%; height: calc(var(--h, 0) * 100%); min-height: 0; border-radius: 6px; background: var(--bleu); transition: height .5s var(--sortie); }
.sf-col:not(.sf-zero) .sf-barre { min-height: 4px; }
.sf-col:hover .sf-barre { background: var(--bleu-clair); }
/* étiquette sans largeur propre (centrée, le texte déborde des deux côtés) : les colonnes restent égales */
.sf-jour { justify-self: center; width: 0; display: flex; flex-direction: column; align-items: center; color: var(--attenue); font-size: 12px; line-height: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (min-width: 561px) { .sf-jour { flex-direction: row; gap: .3em; } }
@media (max-width: 560px) { .sf-barres.sf-mois .sf-col:nth-child(odd):not(:last-child) .sf-jour { visibility: hidden; } }
.sf-jour.sf-masque { visibility: hidden; }
.sf-barres.sf-dense .sf-jour { font-size: 11.5px; }

/* Les plus actifs, par type : une jauge horizontale (--l) sous chaque ligne */
.sf-colonnes { display: grid; gap: 4px; padding: 6px 0 6px; }
@media (min-width: 735px) { .sf-colonnes { grid-template-columns: 1fr 1fr; } }
.sf-colonnes > section { min-width: 0; }
.sf-titre { margin: 0; padding: 12px 22px 4px; font-size: 15px; line-height: 20px; font-weight: 600; }
.sf-rangs { list-style: none; margin: 0; padding: 0 0 6px; }
.sf-rang { padding: 8px 22px; min-width: 0; }
.sf-rang-tete { display: flex; align-items: baseline; gap: 10px; font-size: 15px; line-height: 20px; }
.sf-place { color: var(--attenue); font-variant-numeric: tabular-nums; min-width: 1.2em; }
.sf-qui { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.sf-n { font-variant-numeric: tabular-nums; font-weight: 600; }
.sf-jauge, .sf-progres { display: block; height: 6px; margin-top: 6px; border-radius: 3px; background: var(--tuile-haute); overflow: hidden; }
.sf-jauge > span, .sf-progres > span { display: block; height: 100%; width: calc(var(--l, 0) * 100%); border-radius: 3px; background: var(--bleu); transition: width .5s var(--sortie); }
.sf-detail { margin: 5px 0 0; color: var(--attenue); font-size: 13.5px; line-height: 18px; overflow-wrap: anywhere; }

/* Lignes des rôles temporaires et des sauvegardes : le texte, puis les boutons à droite (dessous sur téléphone) */
.ligne-r.sf-ligne { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
.sf-texte { min-width: 0; }
.sf-texte .nom { min-width: 0; }
.sf-membre { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sf-boutons { display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
@media (max-width: 560px) {
  .ligne-r.sf-ligne { grid-template-columns: minmax(0, 1fr); }
  .sf-boutons { justify-content: flex-start; }
}
.sf-suivi { gap: 10px; }
.sf-suivi .sf-progres { margin-top: 0; }
@media (min-width: 735px) { .ligne-r.sf-suivi { grid-template-columns: minmax(0, 1fr) minmax(160px, 240px); } }
.sf-aide-pied { align-self: center; color: var(--attenue); font-size: 14px; }

/* Feuille de restauration : la liste de ce qui sera recréé */
.sf-f-titre { margin: 14px 0 4px; color: var(--texte); font-size: 14.5px; font-weight: 600; }
.sf-f-liste { list-style: none; margin: 0; padding: 4px 0; max-height: 28vh; overflow: auto; border-radius: 12px; background: rgb(255 255 255 / .04); text-align: left; }
.sf-f-liste li { display: flex; align-items: center; gap: 8px; padding: 5px 12px; color: var(--texte); font-size: 14.5px; line-height: 20px; overflow-wrap: anywhere; }
.sf-f-liste li.sf-f-plus { color: var(--attenue); }
.sf-f-type { margin-left: auto; padding-left: 10px; color: var(--attenue); font-size: 13px; white-space: nowrap; }
.sf-f-pastille { width: 9px; height: 9px; border-radius: 50%; background: var(--c, #8f929a); flex: none; }
.sf-f-note { margin: 10px 0 0; color: var(--attenue); font-size: 13.5px; line-height: 19px; }
.sf-f-avert { margin: 0 0 8px; color: var(--ambre); }

@media (prefers-reduced-motion: reduce) { .sf-barre, .sf-jauge > span, .sf-progres > span { transition: none; } }
