/*
 * Les styles du module. Les couleurs, rayons et ombres viennent du dashboard
 * (/api/socle/tokens.css, chargé avant ce fichier) : on ne réécrit jamais une
 * couleur en dur, on utilise ses variables.
 */
* { box-sizing: border-box; }

/* Un écran masqué reste masqué, même si sa classe lui donne un display. */
[hidden] { display: none !important; }

body {
  margin: 0;
  font: 13px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  background: var(--surface);
  color: var(--ink);
}

.entete {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 24px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}
.entete h1 { margin: 0; font-size: 18px; }
.qui { margin: 0; color: var(--ink-2); }

.app { padding: 24px; display: grid; gap: 16px; max-width: 960px; }

.carte {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--ombre);
  padding: 16px;
}
.carte h2 { margin: 0 0 8px; font-size: 14px; }

.liste { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.liste .cle { font-family: var(--mono); color: var(--ink-3); margin-right: 8px; }
.ferme { color: var(--ink-3); }

.onglets { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.onglets li {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--panel-2);
  color: var(--ink-2);
}

.erreur { color: var(--grave); }
.aide { color: var(--ink-3); margin: 8px 0 0; }

/* — Onglets — */
.barre-onglets { display: flex; gap: 4px; padding: 8px 24px 0; background: var(--panel); border-bottom: 1px solid var(--border); }
.onglet {
  font: inherit; color: var(--ink-2); background: none; border: 0;
  border-bottom: 2px solid transparent; padding: 8px 12px; cursor: pointer;
}
.onglet.actif { color: var(--ink); border-bottom-color: var(--serie-1); }

/* — Saisie et boutons — */
.ligne-saisie { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
select, .bouton { font: inherit; padding: 6px 10px; border-radius: var(--r); border: 1px solid var(--border-fort); }
select { background: var(--fond-saisie); color: var(--ink); }
.bouton { background: var(--panel-2); color: var(--ink); cursor: pointer; }
.bouton.principal { background: var(--serie-1); border-color: var(--serie-1); color: #fff; }
.bouton.discret { background: none; }
.bouton[disabled] { opacity: .5; cursor: default; }

/* — Tuiles de comptes — */
.tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.tuile { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r); padding: 12px; display: grid; gap: 2px; }
.tuile strong { font-size: 20px; }
.tuile span { color: var(--ink-2); }
.tuile.alerte strong { color: var(--alerte); }

/* — Tableaux — */
.tableau { width: 100%; border-collapse: collapse; }
.tableau th { text-align: left; color: var(--ink-3); font-weight: 500; }
.tableau th, .tableau td { padding: 6px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }

.action { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.action p { margin: 0; }
.succes { color: var(--bon); }

/* — Onglet Planning : la grille de la semaine (visuel repris de l'ancienne grille) — */
.app.large { max-width: none; }
.pl-outils { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pl-nav { display: flex; gap: 4px; }
.pl-titre { font-size: 15px; }
.pl-espace { flex: 1; }
.statut { font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--panel-2); color: var(--ink-2); border: 1px solid var(--border); }
.statut.bon { color: var(--bon); background: color-mix(in srgb, var(--bon) 12%, var(--panel)); border-color: transparent; }
.statut.alerte { color: var(--alerte); background: color-mix(in srgb, var(--alerte) 14%, var(--panel)); border-color: transparent; }

.pl-cadre { overflow: auto; max-height: calc(100vh - 230px); max-height: calc(100dvh - 230px); min-height: 320px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--ombre); }
.pl-grille { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 1060px; table-layout: fixed; }
.pl-grille th, .pl-grille td { border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); vertical-align: top; }
.pl-grille th:last-child, .pl-grille td:last-child { border-right: 0; }
.pl-grille thead th { background: var(--panel-2); font-weight: 600; padding: 8px; text-align: left; position: sticky; top: 0; z-index: 3; }
.pl-grille thead th.aujourdhui { color: var(--bon); box-shadow: inset 0 -2px 0 var(--bon); }
.pl-grille .pl-pers { width: 210px; padding: 10px 12px; background: var(--panel); position: sticky; left: 0; z-index: 2; }
.pl-grille thead .pl-pers { z-index: 4; background: var(--panel-2); }
.pl-grille .pl-somme { width: 110px; padding: 10px 8px; font-size: 12px; }
.pl-nom { font-weight: 600; }
.pl-meta { color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.pl-groupe td { background: var(--panel-2); font-weight: 700; padding: 6px 12px; font-size: 12.5px; }
.pl-jour { padding: 5px; height: 60px; }
.pl-jour.aujourdhui { background: color-mix(in srgb, var(--bon) 4%, var(--panel)); }
.pl-jour.modifiable { cursor: copy; }
.pl-jour.modifiable:hover { background: var(--panel-2); }
.pl-vacants .pl-pers { color: var(--ink-3); font-style: italic; }
.pl-grille tfoot { position: sticky; bottom: 0; z-index: 3; }
.pl-total td { background: var(--panel-2); font-size: 12px; font-weight: 600; color: var(--ink-2); padding: 8px; }
.pl-total .pl-pers { z-index: 3; background: var(--panel-2); }

/* Une pastille par shift, à la couleur de son poste (--dep). */
.pl-chip { --dep: var(--ink-3); display: block; width: 100%; text-align: left; font: inherit; font-size: 12px; line-height: 1.3; color: var(--ink);
  border: 0; border-left: 4px solid var(--dep); background: color-mix(in srgb, var(--dep) 22%, var(--panel));
  padding: 5px 7px; margin-bottom: 4px; border-radius: 6px; overflow-wrap: anywhere; }
button.pl-chip { cursor: pointer; }
button.pl-chip:hover { background: color-mix(in srgb, var(--dep) 34%, var(--panel)); }
.pl-chip:last-child { margin-bottom: 0; }
.pl-chip b { font-size: 12.5px; }
.pl-chip small { display: block; color: var(--ink-2); }
.pl-chip.vacant { border-left-style: dashed; background: repeating-linear-gradient(135deg, var(--panel) 0 6px, color-mix(in srgb, var(--dep) 12%, var(--panel)) 6px 12px); }
.pl-ailleurs { font-size: 11px; color: var(--ink-3); border: 1px dashed var(--border-fort); border-radius: 6px; padding: 3px 6px; margin-top: 4px; }

/* Les heures de la semaine contre le contrat. */
.pl-somme span { color: var(--ink-3); }
.pl-somme.grave b { color: var(--grave); }
.pl-somme.alerte b { color: var(--alerte); }
.pl-somme.bon b { color: var(--bon); }
.pl-barre { height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; margin-top: 6px; }
.pl-barre span { display: block; height: 100%; background: var(--bon); }
.pl-somme.grave .pl-barre span { background: var(--grave); }
.pl-somme.alerte .pl-barre span { background: var(--alerte); }

.pl-legende { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); }
.pl-point { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* La fiche d'un shift : un brouillon par-dessus la grille. */
.pl-voile { position: fixed; inset: 0; background: rgba(0, 0, 0, .25); z-index: 10; }
.pl-fiche { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 11; width: min(440px, calc(100vw - 32px));
  display: grid; gap: 10px; }
.pl-fiche label { display: grid; gap: 4px; color: var(--ink-2); font-size: 12px; }
.pl-fiche input { font: inherit; padding: 6px 8px; border-radius: var(--r); border: 1px solid var(--border-fort); background: var(--fond-saisie); color: var(--ink); }
.pl-heures { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.pl-actions { display: flex; gap: 8px; align-items: center; }
.pl-fiche ul.erreur { margin: 0; padding-left: 18px; }
.bouton.danger { color: var(--grave); }

/* — BOH / FOH (T4.7) — */
.pl-filtre { display: flex; }
.pl-filtre .bouton { border-radius: 0; margin-left: -1px; }
.pl-filtre .bouton:first-child { border-radius: var(--r) 0 0 var(--r); margin-left: 0; }
.pl-filtre .bouton:last-child { border-radius: 0 var(--r) var(--r) 0; }
.pl-filtre .bouton.actif { background: var(--serie-1); border-color: var(--serie-1); color: #fff; }
.pl-groupe td span { color: var(--ink-3); font-weight: 500; margin-left: 6px; }
.pl-groupe.cuisine td { box-shadow: inset 4px 0 0 var(--serie-5); }
.pl-groupe.salle td { box-shadow: inset 4px 0 0 var(--serie-6); }
.pl-total.equipe td { font-weight: 500; }
.pl-legende-equipe { font-weight: 700; color: var(--ink); }

/* — Copier, dupliquer, vue du jour (T4.5) — */
.pl-voir-jour { font: inherit; font-weight: 600; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.pl-voir-jour:hover { text-decoration: underline; }
.pl-dupliquer { border: 1px solid var(--border); border-radius: var(--r); padding: 8px 10px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.pl-dupliquer legend { color: var(--ink-2); font-size: 12px; padding: 0 4px; }
.pl-dupliquer label { display: inline-flex; gap: 4px; align-items: center; color: var(--ink); font-size: 12px; }
.pl-dupliquer small { flex-basis: 100%; }

.pj-cadre { padding: 0 0 4px; min-width: 900px; }
.pj-ligne { display: grid; grid-template-columns: 210px 1fr 90px; border-bottom: 1px solid var(--border); min-height: 40px; }
.pj-ligne.repos { opacity: .55; }
.pj-qui { padding: 6px 12px; display: grid; align-content: center; position: sticky; left: 0; background: var(--panel); z-index: 1; }
.pj-qui small { color: var(--ink-3); font-size: 11.5px; }
.pj-piste { position: relative; margin: 0 8px; }
.pj-piste.modifiable { cursor: copy; }
.pj-piste.modifiable:hover { background: var(--panel-2); }
.pj-total { padding: 6px 8px; font-size: 12px; color: var(--ink-2); display: grid; align-content: center; }
.pj-axe span { position: absolute; top: 12px; transform: translateX(-50%); font-size: 11px; color: var(--ink-3); }
.pj-ligne.axe { position: sticky; top: 0; background: var(--panel-2); z-index: 2; min-height: 34px; }
.pj-ligne.axe .pj-qui { background: var(--panel-2); }
.pj-groupe { background: var(--panel-2); font-weight: 700; padding: 6px 12px; font-size: 12.5px; border-bottom: 1px solid var(--border); }
.pj-groupe.cuisine { box-shadow: inset 4px 0 0 var(--serie-5); }
.pj-groupe.salle { box-shadow: inset 4px 0 0 var(--serie-6); }
.pj-barre { --dep: var(--ink-3); position: absolute; top: 6px; bottom: 6px; display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap;
  font: inherit; font-size: 12px; font-weight: 600; color: var(--ink); text-align: left; padding: 0 8px;
  border: 0; border-left: 4px solid var(--dep); border-radius: 6px; background: color-mix(in srgb, var(--dep) 30%, var(--panel)); }
.pj-barre small { font-weight: 400; color: var(--ink-2); }
button.pj-barre { cursor: pointer; }
button.pj-barre:hover { background: color-mix(in srgb, var(--dep) 45%, var(--panel)); }
.pj-barre.vacant { border-left-style: dashed; background: repeating-linear-gradient(135deg, var(--panel) 0 6px, color-mix(in srgb, var(--dep) 18%, var(--panel)) 6px 12px); }
.pj-ailleurs { position: absolute; top: 9px; bottom: 9px; font-size: 11px; color: var(--ink-3); border: 1px dashed var(--border-fort); border-radius: 6px; padding: 0 6px; overflow: hidden; white-space: nowrap; display: flex; align-items: center; }
.pj-ligne.vacants .pj-qui { color: var(--ink-3); font-style: italic; }
.pj-ligne.effectif { background: var(--panel-2); min-height: 30px; }
.pj-ligne.effectif .pj-qui { background: var(--panel-2); }
.pj-case { position: absolute; top: 4px; bottom: 4px; display: grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--ink);
  background: color-mix(in srgb, var(--bon) calc(var(--part) * 45%), transparent); border-right: 1px solid var(--panel); }
.pj-ligne.effectif.salle .pj-case { background: color-mix(in srgb, var(--serie-6) calc(var(--part) * 45%), transparent); }
.pj-ligne.effectif.cuisine .pj-case { background: color-mix(in srgb, var(--serie-5) calc(var(--part) * 45%), transparent); }

/* — Onglet Postes (T4.9) : les postes du groupe, puis qui tient quoi — */
.pp-cadre { overflow-x: auto; }
.pp-table, .pp-matrice { border-collapse: collapse; width: 100%; }
.pp-table th, .pp-table td { padding: 5px 8px; text-align: left; border-bottom: 1px solid var(--border); }
.pp-table thead th, .pp-matrice thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); font-weight: 600; }
.pp-table input[type="text"] { width: 100%; min-width: 180px; font: inherit; padding: 5px 8px; border: 1px solid var(--border); border-radius: var(--r); background: var(--fond-saisie); color: var(--ink); }
.pp-table select, .pp-matrice select { font: inherit; padding: 4px 6px; border-radius: var(--r); border: 1px solid var(--border); background: var(--panel); color: var(--ink); }
.pp-ordre { width: 72px; font: inherit; padding: 4px 6px; border-radius: var(--r); border: 1px solid var(--border); background: var(--fond-saisie); color: var(--ink); }
.pp-table input[type="color"] { width: 30px; height: 30px; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%; }
.pp-table tr.archive td { opacity: .5; }
.pp-groupe th { background: var(--panel-2); color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.pp-groupe th span:not(.aide) { color: var(--ink-3); font-weight: 400; }
.pp-matrice th, .pp-matrice td { padding: 4px 6px; border-bottom: 1px solid var(--border); text-align: center; }
.pp-matrice .pp-pers { text-align: left; position: sticky; left: 0; background: var(--panel); min-width: 200px; font-weight: 500; }
.pp-matrice .pp-pers small { display: block; color: var(--ink-3); font-weight: 400; }
.pp-tete { display: inline-block; padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--dep) 40%, var(--panel)); color: var(--ink); white-space: nowrap; text-transform: none; letter-spacing: 0; font-size: 11.5px; }
.pp-case.tient { background: color-mix(in srgb, var(--dep) 22%, var(--panel)); }
.pp-etoile { border: 0; background: none; cursor: pointer; color: var(--ink-3); font-size: 14px; padding: 0 2px; }
.pp-etoile.oui { color: var(--alerte); }

/* — Grille : le profil d'un salarié, « pas habituel », poste archivé (T4.9) — */
.pl-nom-bouton { all: unset; display: block; cursor: pointer; width: 100%; }
.pl-nom-bouton:hover .pl-nom { color: var(--serie-1); text-decoration: underline; }
.pl-nom-bouton:focus-visible { outline: 2px solid var(--serie-1); border-radius: 4px; }
.pl-inhabituel { display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 999px; font-style: normal; font-size: 10px; font-weight: 600;
  background: color-mix(in srgb, var(--alerte) 18%, var(--panel)); color: var(--ink); vertical-align: 1px; }
.pl-chip.archive { opacity: .6; }
.pf-profil { width: min(560px, calc(100vw - 32px)); max-height: 86vh; overflow: auto; display: grid; gap: 14px; }
.pf-restos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pf-resto { padding: 3px 10px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--border); }
.pf-resto.ici { background: color-mix(in srgb, var(--serie-1) 14%, var(--panel)); border-color: transparent; font-weight: 600; }
.pf-postes { display: grid; gap: 8px; margin-top: 6px; }
.pf-postes-equipe { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pf-postes-equipe > b { width: 72px; color: var(--ink-3); font-size: 11.5px; }
.pf-poste-case { display: inline-flex !important; grid: none !important; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--dep) 22%, var(--panel)); color: var(--ink) !important; font-size: 12.5px !important; }
.carte h2 .aide { font-weight: 400; font-size: 12px; margin-left: 6px; }

/* — La fiche du shift, façon Skello (T4.10) — */
.pf-skello { padding: 0; width: min(640px, calc(100vw - 24px)); max-height: 92vh; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 16px; border: 0; background: var(--panel); box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }
.pf-tete { position: relative; padding: 20px 24px 0; background: var(--dep); color: #1c1d2e; }
.pf-tete h2 { margin: 0; font-size: 19px; font-weight: 700; padding-right: 32px; }
.pf-tete p { margin: 4px 0 0; font-size: 14px; font-weight: 500; }
.pf-fermer { position: absolute; top: 14px; right: 14px; border: 0; background: none; font-size: 24px; line-height: 1; cursor: pointer; color: inherit; }
.pf-onglets { display: flex; gap: 22px; margin-top: 16px; }
.pf-onglets span { padding: 0 2px 10px; font-weight: 600; border-bottom: 3px solid transparent; }
.pf-onglets span.actif { border-color: #1c1d2e; }
.pf-corps { overflow: auto; padding: 4px 24px 12px; }
.pf-ligne { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--border); }
.pf-ligne:last-of-type { border-bottom: 0; }
.pf-lib { font-weight: 700; padding-top: 10px; color: var(--ink); }
.pf-val select, .pf-val textarea { width: 100%; font: inherit; padding: 9px 10px; border-radius: 10px; border: 1px solid transparent; background: var(--panel-2); color: var(--ink); }
.pf-val textarea { resize: vertical; }
.pf-heures { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.pf-champ { display: grid !important; gap: 2px; padding: 6px 10px; border-radius: 10px; background: var(--panel-2); min-width: 92px; }
.pf-champ span { font-size: 11px; color: var(--ink-3); }
.pf-champ input { border: 0; background: none; padding: 0; font: inherit; font-size: 15px; color: var(--ink); width: 100%; }
.pf-champ input:focus { outline: none; }
.pf-champ:focus-within { box-shadow: 0 0 0 2px color-mix(in srgb, var(--serie-1) 40%, transparent); }
.pf-pause { margin-left: 8px; min-width: 110px; }
.pf-repas { max-width: 140px; }
.pf-tiret { padding-bottom: 10px; color: var(--ink-3); }
.pf-duree { display: grid; gap: 2px; margin-left: auto; padding: 6px 4px; color: var(--ink-3); font-size: 11px; }
.pf-duree b { font-size: 15px; color: var(--ink); font-weight: 600; }
.pf-poste { display: flex; align-items: center; gap: 10px; }
.pf-poste i { flex: none; width: 30px; height: 30px; border-radius: 50%; }
.pf-inhabituel { color: var(--alerte); }
.pf-depot { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px dashed var(--border-fort); border-radius: 12px; cursor: pointer; }
.pf-depot:hover { background: var(--panel-2); }
.pf-depot.plein { opacity: .5; cursor: not-allowed; }
.pf-depot svg { width: 26px; height: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pf-depot small { display: block; color: var(--ink-3); font-size: 11.5px; margin-top: 2px; }
.pf-fichiers { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.pf-fichiers li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; }
.pf-fichiers li.nouveau { border-style: dashed; }
.pf-fichiers a { color: var(--serie-1); font-weight: 500; text-decoration: none; }
.pf-fichiers a:hover { text-decoration: underline; }
.pf-fichiers small { color: var(--ink-3); margin-left: auto; }
.pf-retirer { border: 0; background: none; font-size: 18px; cursor: pointer; color: var(--ink-3); padding: 0 4px; }
.pf-retirer:hover { color: var(--grave); }
.pf-skello .pl-dupliquer { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; border: 0; padding: 0; margin: 0; }
.pf-skello .pl-dupliquer label { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-size: 13px; }
.pf-pied { display: flex; align-items: center; gap: 10px; padding: 14px 24px; border-top: 1px solid var(--border); background: var(--panel); }
.pf-pied .danger { color: var(--grave); }
.pf-pied .bouton { border-radius: 999px; padding: 9px 18px; }
@media (max-width: 560px) { .pf-ligne { grid-template-columns: 1fr; gap: 6px; } .pf-lib { padding-top: 0; } }

/* — La grille : le « + » au survol, le glisser (copie), les icônes des pastilles (T4.10) — */
.pl-jour { position: relative; }
.pl-plus { position: absolute; right: 6px; bottom: 6px; width: 24px; height: 24px; border-radius: 50%; border: 0; display: grid; place-items: center;
  font-size: 17px; line-height: 1; background: var(--serie-1); color: #fff; cursor: pointer; opacity: 0; transform: scale(.8);
  transition: opacity .12s, transform .12s; box-shadow: var(--ombre); z-index: 1; }
.pl-jour:hover .pl-plus, .pl-plus:focus-visible { opacity: 1; transform: scale(1); }
body.pl-glisse .pl-plus { display: none; }
button.pl-chip { touch-action: none; }
body.pl-glisse, body.pl-glisse * { cursor: copy !important; user-select: none; -webkit-user-select: none; }
.pl-fantome { position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none; opacity: .92; box-shadow: 0 10px 28px rgba(0, 0, 0, .22); }
.pl-fantome::after { content: "+ copie"; position: absolute; top: -9px; right: -6px; padding: 1px 6px; border-radius: 999px; background: var(--ink); color: var(--panel); font-size: 10px; font-weight: 700; }
.pl-jour.pl-cible { background: color-mix(in srgb, var(--serie-1) 14%, var(--panel)); box-shadow: inset 0 0 0 2px var(--serie-1); }
.pl-icones { display: flex; gap: 6px; margin-top: 3px; color: var(--ink-2); font-size: 11px; }
.pl-icones span { display: inline-flex; align-items: center; gap: 2px; }
.pl-icones svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* — La grille de la semaine, élément par élément comme Skello (T4.11) — */
.pl-outils { gap: 14px; }
.pl-nav { align-items: center; gap: 6px; }
.pl-fleche { border: 0; background: none; font-size: 20px; line-height: 1; padding: 4px 8px; cursor: pointer; color: var(--ink); border-radius: 8px; }
.pl-fleche:hover { background: var(--panel-2); }
.pl-plage { padding: 7px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); font-size: 15px; font-weight: 500; white-space: nowrap; }
.pl-num-semaine { padding: 5px 10px; border-radius: 8px; background: var(--panel-2); color: var(--ink-2); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.pl-vues { display: flex; gap: 6px; margin-left: 12px; }
.pl-vues button { border: 0; background: none; font: inherit; font-size: 15px; color: var(--ink-2); padding: 8px 14px; cursor: pointer; border-bottom: 3px solid transparent; }
.pl-vues button.actif { color: var(--ink); font-weight: 600; border-bottom-color: var(--serie-1); }
.pl-bascule { display: flex; gap: 18px; font-weight: 400; }
.pl-bascule button { border: 0; background: none; font: inherit; color: var(--ink-2); padding: 4px 0 6px; cursor: pointer; border-bottom: 2px solid transparent; }
.pl-bascule button.actif { color: var(--ink); font-weight: 600; border-bottom-color: var(--serie-1); }
.pl-voir-jour { font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.pl-num { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 50%; font-size: 15px; color: var(--ink); }
.pl-num.auj { background: var(--serie-1); color: #fff; font-weight: 700; }
.pl-grille thead th.aujourdhui .pl-voir-jour { color: var(--serie-1); }
.pl-grille thead th.aujourdhui { color: inherit; box-shadow: inset 0 -2px 0 var(--serie-1); }
.pl-qui { display: flex; align-items: center; gap: 10px; }
.pl-qui-texte { display: grid; min-width: 0; flex: 1; }
.pl-qui-texte .pl-nom, .pl-qui-texte .pl-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px;
  background: color-mix(in srgb, var(--serie-1) 14%, var(--panel)); color: var(--serie-1); }
.pl-avatar.cuisine { background: color-mix(in srgb, #9a9cea 30%, var(--panel)); color: #3c3f9e; }
.pl-avatar.salle { background: color-mix(in srgb, #a2dcee 40%, var(--panel)); color: #1f6f8a; }
.pl-avatar.na { background: color-mix(in srgb, var(--serie-1) 12%, var(--panel)); color: var(--serie-1); font-size: 11px; }
.pl-contrat { flex: none; font-weight: 700; font-size: 13px; }
.pl-contrat.plein { color: var(--serie-1); }
.pl-contrat.manque { color: var(--alerte); }
.pl-chip-l1 { display: flex; align-items: baseline; gap: 6px; }
.pl-chip-l1 b { white-space: nowrap; }
.pl-duree { margin-left: auto; font-size: 11px; color: var(--ink-2); white-space: nowrap; }
.pl-somme { text-align: center; vertical-align: middle !important; }
.pl-somme > b { display: block; font-size: 15px; }
.pl-compteur { display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 13px; font-weight: 600; }
.pl-compteur i { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font-style: normal; font-size: 12px; line-height: 1; border: 1.5px solid currentColor; }
.pl-compteur.moins { color: var(--serie-1); }
.pl-compteur.plus { color: var(--grave); }
.pl-compteur.juste { color: var(--bon); }
.pl-travaillees td { font-weight: 400; color: var(--ink); white-space: nowrap; }
.pl-travaillees td small { color: var(--ink-3); margin-right: 6px; }
.pl-travaillees td b { font-size: 14px; }
.pl-travaillees .pl-pers { font-weight: 600; }
.pl-pastille-poste { flex: none; width: 14px; height: 14px; border-radius: 4px; }
.pl-chip-qui { display: flex; align-items: center; gap: 4px; }
.pl-mini-avatar { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 10%, transparent); font-size: 8.5px; font-weight: 700; }
.pl-archive .pl-pers { opacity: .6; }
.pl-vacants .pl-pers { font-style: normal; }
.pl-somme { white-space: nowrap; }

/* — La vue Mois (T4.12) — */
.pm-grille { min-width: 1240px; }
.pm-grille col.pm-col-pers { width: 220px; }
.pm-grille col.pm-col-total { width: 104px; }
.pm-grille thead th.pm-j { padding: 6px 0; text-align: center; }
.pm-voir { border: 0; background: none; cursor: pointer; display: grid; justify-items: center; gap: 2px; width: 100%; font: inherit; font-size: 11px; color: var(--ink-3); }
.pm-voir .pl-num { min-width: 22px; height: 22px; font-size: 12.5px; }
.pm-grille .we { background: color-mix(in srgb, var(--ink) 3%, var(--panel)); }
.pm-grille thead th.aujourdhui { box-shadow: none; }
.pm-c { padding: 3px 2px; cursor: pointer; height: 52px; vertical-align: middle !important; }
.pm-c:hover { background: var(--panel-2); }
.pm-c.aujourdhui { background: color-mix(in srgb, var(--serie-1) 5%, var(--panel)); }
.pm-bloc { display: grid; justify-items: center; gap: 1px; padding: 3px 0; border-radius: 6px; background: color-mix(in srgb, var(--dep) 45%, var(--panel)); font-size: 9.5px; line-height: 1.15; }
.pm-bloc b { font-weight: 700; }
.pm-bloc small { font-size: 8.5px; color: var(--ink-2); }
.pm-bloc.vacant { background: repeating-linear-gradient(135deg, var(--panel) 0 4px, color-mix(in srgb, var(--dep) 30%, var(--panel)) 4px 8px); }
.pm-pied td { text-align: center; padding: 6px 1px; }
.pm-pied td small { display: block; margin: 0; font-size: 10px; }
.pm-pied td b { font-size: 11px; }
.pm-pied td.pl-somme b { font-size: 14px; }
.pl-travaillees .pl-somme > b { display: inline; }
.pm-pied td.pl-pers { text-align: left; padding-left: 12px; }

/* — Onglet Badgeuse (étape 7) — */
/* L'ordre des onglets, quel que soit l'écran qui s'ajoute le premier. */
.barre-onglets [data-ecran="planning"] { order: 1; }
.barre-onglets [data-ecran="badgeuse"] { order: 2; }
.barre-onglets [data-ecran="absences"] { order: 3; }
.barre-onglets [data-ecran="postes"] { order: 4; }
.barre-onglets [data-ecran="reprise"] { order: 5; }
.bg-corps { display: grid; grid-template-columns: 230px 1fr; gap: 20px; align-items: start; }
.bg-jours, .bg-gens { display: grid; gap: 4px; position: sticky; top: 8px; }
.bg-jours button, .bg-gens button { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 14px; border: 0; border-radius: 10px;
  background: none; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; text-align: left; }
.bg-jours button:hover, .bg-gens button:hover { background: var(--panel-2); }
.bg-jours button.actif, .bg-gens button.actif { background: color-mix(in srgb, var(--serie-1) 10%, var(--panel)); color: var(--serie-1); font-weight: 600; }
.bg-gens button small { display: block; color: var(--ink-3); font-weight: 400; font-size: 12px; }
.bg-coche { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--border-fort); color: var(--ink-3); font-size: 13px; flex: none; }
.bg-coche.oui { background: var(--bon); border-color: var(--bon); color: #fff; }
.bg-droite { display: grid; gap: 12px; min-width: 0; }
.bg-onglets { display: flex; gap: 10px; }
.bg-onglets span { padding: 9px 18px; border-radius: 999px; color: var(--ink-2); }
.bg-onglets span.actif { background: var(--serie-1); color: #fff; font-weight: 600; }
.bg-bandeau { padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, var(--serie-1) 10%, var(--panel)); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.bg-bandeau small { flex-basis: 100%; color: var(--ink-2); }
.bg-bandeau.ok { background: color-mix(in srgb, var(--bon) 12%, var(--panel)); }
.bg-motif { display: inline-flex; gap: 6px; align-items: center; }
.bg-motif input { font: inherit; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border-fort); min-width: 260px; background: var(--panel); color: var(--ink); }
.bg-info { padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--alerte) 12%, var(--panel)); margin: 0; }
.bg-cadre { overflow-x: auto; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r); }
.bg-table { border-collapse: collapse; width: 100%; min-width: 1180px; }
.bg-table th { font-size: 12px; font-weight: 500; color: var(--ink-2); text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.bg-table td { padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; white-space: nowrap; }
.bg-table .bg-sep { border-left: 1px solid var(--border); }
.bg-nom { line-height: 1.3; }
.bg-nom b { font-weight: 500; }
.bg-jour-col { font-weight: 600; }
.bg-pause { display: inline-block; padding: 2px 7px; border-radius: 6px; background: #f6ad3c; color: #fff; font-weight: 600; font-size: 12.5px; }
.bg-gris { color: var(--ink-3); }
.bg-paye { display: flex; align-items: center; gap: 6px; }
.bg-champ { font: inherit; padding: 6px 6px; border: 0; border-bottom: 2px solid color-mix(in srgb, var(--serie-1) 55%, var(--panel)); border-radius: 6px 6px 0 0; background: var(--panel-2); color: var(--ink); width: 108px; }
.bg-champ:disabled { border-bottom-color: transparent; background: none; color: var(--ink); }
.bg-champ.bg-petit { width: 56px; text-align: center; }
.bg-champ.bg-note { width: 160px; }
.bg-case { text-align: center; }
.bg-case input { width: 20px; height: 20px; }
.bg-total b { display: block; }
.bg-total small { font-size: 11px; font-weight: 600; }
.bg-total small.plus { color: var(--grave); }
.bg-total small.moins { color: var(--serie-1); }
.bg-signaux { white-space: normal !important; max-width: 220px; }
.bg-signal { display: inline-block; margin: 1px 3px 1px 0; padding: 1px 7px; border-radius: 999px; font-size: 11px; background: var(--panel-2); color: var(--ink-2); }
.bg-signal.alerte { background: color-mix(in srgb, var(--alerte) 16%, var(--panel)); color: var(--ink); }
.bg-signal.sup { background: color-mix(in srgb, var(--serie-1) 14%, var(--panel)); color: var(--serie-1); }
.bg-signal.brouillon { background: color-mix(in srgb, var(--grave) 12%, var(--panel)); color: var(--grave); }
tr.bg-modifiee td { background: color-mix(in srgb, var(--alerte) 5%, var(--panel)); }
@media (max-width: 900px) { .bg-corps { grid-template-columns: 1fr; } .bg-jours, .bg-gens { position: static; grid-auto-flow: column; overflow-x: auto; } }

/* — Absences dans la grille et dans la fiche (étape 3) — */
.pl-chip.pl-abs { background: color-mix(in srgb, #9ca3af 30%, var(--panel)); border-left: 4px solid var(--dep); }
.pl-chip.pl-abs.demandee { background: repeating-linear-gradient(135deg, var(--panel) 0 6px, color-mix(in srgb, #9ca3af 25%, var(--panel)) 6px 12px); }
.pl-inhabituel.grave { background: color-mix(in srgb, var(--grave) 18%, var(--panel)); }
.pf-tete .pf-onglets button { border: 0; background: none; font: inherit; color: inherit; padding: 0 2px 10px; font-weight: 600; border-bottom: 3px solid transparent; cursor: pointer; opacity: .75; }
.pf-tete .pf-onglets button.actif { border-color: currentColor; opacity: 1; }
.pf-tete .pf-onglets button:disabled { opacity: .35; cursor: not-allowed; }
.pf-absence .pf-tete { color: #fff; }
.pf-absence .pf-tete .pf-onglets button.actif { border-color: #fff; }
.pf-radios { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 8px; }
.pf-radio { display: inline-flex !important; align-items: center; gap: 6px; color: var(--ink) !important; font-size: 14px !important; }
.pf-radio input { width: 18px; height: 18px; }
.pf-types { max-height: 220px; overflow: auto; border: 1px solid var(--border); border-radius: 10px; padding: 6px 10px; margin-top: 8px; display: grid; gap: 4px; }
.pf-types div { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: center; font-size: 12.5px; }
.pf-types i { width: 10px; height: 10px; border-radius: 50%; }
.pf-types span { color: var(--ink-3); }
.pm-bloc.pm-abs { background: color-mix(in srgb, #9ca3af 35%, var(--panel)); box-shadow: inset 3px 0 0 var(--dep); padding: 6px 0; }
.pm-bloc.pm-abs.demandee { background: repeating-linear-gradient(135deg, var(--panel) 0 4px, color-mix(in srgb, #9ca3af 30%, var(--panel)) 4px 8px); }
.bg-onglets button { border: 0; background: none; font: inherit; padding: 9px 18px; border-radius: 999px; color: var(--ink-2); cursor: pointer; }
.bg-onglets button.actif { background: var(--serie-1); color: #fff; font-weight: 600; }
.bg-pastille { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.bg-table.bg-absences { min-width: 760px; }

/* — Onglet Absences (étape 3, T3.4) — */
.ab-bloc { margin-top: 20px; }
.ab-bloc h2, .ab-declarer h2 { font-size: 17px; margin: 0 0 10px; }
.ab-cadre { overflow-x: auto; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r); }
.ab-table { border-collapse: collapse; width: 100%; min-width: 900px; }
.ab-table th { font-size: 12px; font-weight: 500; color: var(--ink-2); text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.ab-table td { padding: 10px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.ab-table tr:last-child td { border-bottom: 0; }
.ab-table td.aide { margin: 0; font-size: 13px; }
.ab-table tr.ab-refusee td, .ab-table tr.ab-annulee td { color: var(--ink-3); }
.ab-pastille { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.ab-note { max-width: 260px; white-space: pre-line; color: var(--ink-2); }
.ab-actions { white-space: nowrap; text-align: right; }
.ab-actions .bouton + .bouton { margin-left: 6px; }
.ab-statut { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--panel-2); color: var(--ink-2); }
.ab-statut.demandee { background: color-mix(in srgb, var(--alerte) 18%, var(--panel)); color: var(--ink); }
.ab-statut.validee { background: color-mix(in srgb, var(--bon) 16%, var(--panel)); color: var(--ink); }
.ab-refus { display: inline-flex; gap: 6px; align-items: center; }
.ab-refus input { font: inherit; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border-fort); min-width: 240px; background: var(--panel); color: var(--ink); }
.ab-filtres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.ab-declarer { margin-top: 16px; padding: 18px 20px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r); max-width: 760px; display: grid; gap: 12px; }
.ab-ligne { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: start; }
.ab-lib { color: var(--ink-2); padding-top: 6px; }
.ab-ligne select, .ab-ligne input[type="date"], .ab-ligne input[type="time"], .ab-ligne textarea { font: inherit; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border-fort); background: var(--panel); color: var(--ink); }
.ab-ligne textarea { width: 100%; box-sizing: border-box; resize: vertical; }
.ab-dates { display: inline-flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.ab-dates label { display: inline-flex; align-items: center; gap: 6px; }
.ab-radios { display: inline-flex; flex-wrap: wrap; gap: 14px; padding-top: 6px; }
.ab-radio { display: inline-flex; align-items: center; gap: 6px; }
.ab-erreurs { margin: 0; padding-left: 18px; }
.ab-boutons { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 640px) { .ab-ligne { grid-template-columns: 1fr; gap: 4px; } .ab-refus { flex-wrap: wrap; } .ab-refus input { min-width: 0; width: 100%; } }

/* — La pointeuse (étape 9, T9.5) : une tablette dans le restaurant, tout au doigt — */
body.pt-corps { font-size: 16px; min-height: 100vh; }
.pt { max-width: 1200px; margin: 0 auto; padding: 24px 28px 40px; display: grid; gap: 22px; }
.pt-tete { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 22px 28px; background: var(--panel); border: 1px solid var(--border); border-radius: calc(var(--r) * 2); }
.pt-tete h1 { margin: 0; font-size: 26px; }
.pt-tete p { margin: 4px 0 0; color: var(--ink-2); text-transform: capitalize; }
.pt-horloge { font-variant-numeric: tabular-nums; font-weight: 700; line-height: 1; display: flex; align-items: baseline; gap: 6px; }
.pt-horloge span { font-size: 64px; letter-spacing: -1px; }
.pt-horloge small { font-size: 24px; color: var(--ink-3); font-weight: 600; }
.pt-section h2 { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.pt-section h2 small { font-weight: 500; color: var(--ink-3); margin-left: 6px; }
.pt-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.pt-tuile { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 4px 14px; align-items: center; text-align: left;
  padding: 16px 18px; min-height: 96px; border: 1px solid var(--border); border-left: 6px solid var(--border-fort); border-radius: calc(var(--r) * 1.5);
  background: var(--panel); color: var(--ink); font: inherit; cursor: pointer; transition: transform .08s, box-shadow .15s; }
.pt-tuile:hover { box-shadow: var(--ombre); }
.pt-tuile:active { transform: scale(.98); }
.pt-tuile[aria-disabled="true"] { opacity: .55; }
.pt-tuile.present { border-left-color: var(--bon); }
.pt-tuile.pause { border-left-color: var(--alerte); }
.pt-tuile.parti { border-left-color: var(--ink-3); }
.pt-tuile .pt-avatar { grid-row: span 2; }
.pt-qui b { display: block; font-size: 18px; font-weight: 600; }
.pt-qui small { display: block; color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.pt-etat { grid-column: 2; justify-self: start; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--panel-2); color: var(--ink-2); }
.pt-etat.present { background: color-mix(in srgb, var(--bon) 16%, var(--panel)); color: var(--bon); }
.pt-etat.pause { background: color-mix(in srgb, var(--alerte) 18%, var(--panel)); color: var(--alerte); }
.pt-avatar { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: color-mix(in srgb, var(--serie-1) 14%, var(--panel)); color: var(--serie-1); font-weight: 700; font-size: 18px; flex: none; }
.pt-avatar.grand { width: 64px; height: 64px; font-size: 22px; }
.pt-vide, .pt-attente { color: var(--ink-3); }
.pt-attente { text-align: center; margin-top: 30vh; font-size: 20px; }
.pt-alerte { margin: 0; padding: 12px 16px; border-radius: var(--r); background: color-mix(in srgb, var(--alerte) 14%, var(--panel)); }
.pt-pied { color: var(--ink-3); font-size: 13px; text-align: center; }
.pt-confirmation { display: grid; gap: 4px; padding: 22px 28px; border-radius: calc(var(--r) * 2); font-size: 18px; text-align: center; }
.pt-confirmation b { font-size: 30px; }
.pt-confirmation.ok { background: color-mix(in srgb, var(--bon) 16%, var(--panel)); color: var(--ink); }
.pt-confirmation.non { background: color-mix(in srgb, var(--grave) 14%, var(--panel)); color: var(--ink); }
.pt-voile { position: fixed; inset: 0; background: rgb(0 0 0 / .45); display: grid; place-items: center; padding: 16px; z-index: 10; }
.pt-fenetre { width: min(440px, 100%); background: var(--panel); border-radius: calc(var(--r) * 2.5); padding: 22px 24px 26px; box-shadow: var(--ombre); display: grid; gap: 16px; }
.pt-fenetre header { display: flex; align-items: center; gap: 14px; }
.pt-fenetre header div { flex: 1; }
.pt-fenetre header b { display: block; font-size: 20px; }
.pt-fenetre header small { color: var(--ink-2); font-size: 14px; }
.pt-fermer { border: 0; background: var(--panel-2); color: var(--ink); width: 44px; height: 44px; border-radius: 50%; font-size: 26px; line-height: 1; cursor: pointer; }
.pt-consigne { margin: 0; text-align: center; font-size: 18px; font-weight: 600; }
.pt-actions { display: grid; gap: 10px; }
.pt-action { border: 0; border-radius: calc(var(--r) * 1.5); padding: 22px; font: inherit; font-size: 22px; font-weight: 700; color: #fff; cursor: pointer; }
.pt-action.arrivee, .pt-action.reprise { background: var(--bon); }
.pt-action.pause { background: var(--alerte); }
.pt-action.depart { background: var(--serie-1); }
.pt-points { display: flex; justify-content: center; gap: 18px; }
.pt-points i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink-3); }
.pt-points i.plein { background: var(--ink); border-color: var(--ink); }
.pt-points.faux i { border-color: var(--grave); }
.pt-message { margin: -6px 0 0; min-height: 1.4em; text-align: center; color: var(--grave); font-size: 15px; }
.pt-pave { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pt-touche { height: 68px; border: 1px solid var(--border); border-radius: calc(var(--r) * 1.5); background: var(--panel-2); color: var(--ink); font: inherit; font-size: 28px; font-weight: 600; cursor: pointer; }
.pt-touche:active { background: var(--border); }
.pt-touche.discret { font-size: 17px; background: none; }
.pt-appairer { max-width: 520px; margin: 12vh auto 0; display: grid; gap: 14px; text-align: center; }
.pt-appairer h1 { margin: 0; }
.pt-appairer p { margin: 0; color: var(--ink-2); }
.pt-appairer-form { display: grid; gap: 10px; }
.pt-appairer-form input { font: inherit; font-size: 18px; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--border-fort); background: var(--panel); color: var(--ink); text-align: center; }
.pt-gros { border: 0; border-radius: var(--r); padding: 14px; font: inherit; font-size: 18px; font-weight: 600; cursor: pointer; }
.pt-gros.principal { background: var(--serie-1); color: #fff; }
@media (max-width: 600px) { .pt { padding: 14px 16px 30px; } .pt-horloge span { font-size: 44px; } .pt-tete { padding: 16px 18px; } }

/* — Badgeuse › Pointeuse (T9.6) : la badgeuse lue, les tablettes, les codes — */
.bg-pointeuse { display: grid; gap: 16px; max-width: 900px; }
.bg-bloc { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r); padding: 16px 18px; display: grid; gap: 10px; }
.bg-bloc h2 { margin: 0; font-size: 16px; }
.bg-bloc p { margin: 0; }
.bg-bloc code, .bg-jeton code { font-size: 12.5px; background: var(--panel-2); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
.bg-choix { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--panel-2); justify-self: start; }
.bg-choix button { border: 0; background: none; font: inherit; padding: 7px 14px; border-radius: 999px; cursor: pointer; color: var(--ink-2); }
.bg-choix button.actif { background: var(--serie-1); color: #fff; font-weight: 600; }
.bg-table.bg-petite { min-width: 0; }
.bg-ligne-form { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bg-ligne-form input { font: inherit; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border-fort); background: var(--panel); color: var(--ink); width: 180px; }
.bg-ligne-form input[type="password"] { width: 110px; letter-spacing: .3em; }
.bg-erreurs { margin: 6px 0 0; padding-left: 18px; white-space: normal; }
.bg-jeton { display: grid; gap: 8px; padding: 12px 14px; border-radius: var(--r); background: color-mix(in srgb, var(--alerte) 12%, var(--panel)); }

/* — Publication jour par jour (T4.17) : publié (vert, 🔒 une fois commencé), brouillon (hachuré), modifié — */
.pl-pub { display: block; width: fit-content; margin-top: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.pl-pub.publie { background: color-mix(in srgb, var(--bon) 16%, var(--panel)); color: var(--bon); }
.pl-pub.brouillon { background: var(--panel); color: var(--ink-2); border: 1px dashed var(--border-fort); }
.pl-pub.modifie { background: color-mix(in srgb, var(--alerte) 18%, var(--panel)); color: var(--alerte); }
.pl-grille thead th.pub-publie { background: color-mix(in srgb, var(--bon) 7%, var(--panel-2)); }
.pl-grille thead th.pub-brouillon,
.pl-grille td.pl-jour.pub-brouillon {
  background-image: repeating-linear-gradient(135deg, transparent 0 7px, color-mix(in srgb, var(--ink-3) 10%, transparent) 7px 9px);
}
