/* ASDR Bureau : menu latéral (comme les autres programmes WinSoft), tuiles colorées par domaine. */
:root {
  --fond: #eef2f4; --surface: #ffffff; --surface-2: #f5f7f8; --texte: #1c2125; --doux: #5a6570; --bordure: #d6dde2;
  --ok: #007f36; --ok-fond: #e3f4e8; --att: #a35c00; --att-fond: #fdf0dc; --err: #b3261e; --err-fond: #fde8e6;
  --org: #00789a; --org-fonce: #005f7a; --org-clair: #e3f3f8; --sur-org: #ffffff; --focus: #e07b00;
  /* Couleurs des domaines (ton foncé pour le texte et l'icône, ton clair pour le fond de la pastille) */
  --d-heures: #00789a;      --d-heures-clair: #e0f2f7;
  --d-patients: #2f7d3a;    --d-patients-clair: #e4f3e6;
  --d-facturation: #a35c00; --d-facturation-clair: #fbeedb;
  --d-personnel: #6a4c93;   --d-personnel-clair: #efe9f7;
  --ombre: 0 1px 2px rgba(16,24,32,.06), 0 2px 6px rgba(16,24,32,.05);
  --ombre-haute: 0 4px 14px rgba(16,24,32,.12);
  --police: "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--fond); color: var(--texte); font-family: var(--police); font-size: 14px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-weight: 600; }
.num { font-variant-numeric: tabular-nums; }
.doux { color: var(--doux); }
.petit { font-size: 12px; color: var(--doux); }
.message { padding: 10px 14px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--bordure); }
.message.erreur { background: var(--err-fond); color: var(--err); }

/* Cadre : menu latéral + page */
.cadre { display: grid; grid-template-columns: 264px minmax(0, 1fr); height: 100vh; }
.lateral { background: var(--surface); border-right: 1px solid var(--bordure); display: flex; flex-direction: column; min-height: 0; }
.marque { display: flex; justify-content: center; padding: 18px 16px 14px; border-bottom: 1px solid var(--bordure); }
.marque-logo img { height: 74px; width: auto; display: block; }
.menu { flex: 1; overflow-y: auto; padding: 10px 10px 16px; display: flex; flex-direction: column; gap: 1px; }
.menu-section { margin: 14px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--doux); }
.menu-lien { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--texte); text-decoration: none; font-size: 13.5px; }
.menu-lien .icone { color: var(--doux); flex: none; }
a.menu-lien:hover { background: var(--surface-2); }
.menu-lien.active { background: var(--org-clair); color: var(--org-fonce); font-weight: 600; }
.menu-lien.active .icone { color: var(--org); }
.menu-lien.inactif { color: var(--doux); opacity: .65; cursor: default; }
.lateral-pied { border-top: 1px solid var(--bordure); padding: 10px 16px; display: grid; gap: 4px; justify-items: start; }
.badge-base { border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; background: var(--org-clair); color: var(--org-fonce); }
.badge-base.test { background: #ffd27a; color: #3a2600; }
.page { overflow: auto; padding: 22px 28px 40px; }

/* Accueil */
.accueil { display: grid; gap: 26px; max-width: 1900px; }
.accueil-tete { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding-bottom: 6px; }
.accueil-tete h1 { font-size: 26px; }
.accueil-tete p { margin: 4px 0 0; }
.etat { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--bordure); color: var(--doux); }
.etat.ok { background: var(--ok-fond); color: var(--ok); border-color: transparent; }
.etat.erreur { background: var(--err-fond); color: var(--err); border-color: transparent; }
.domaine { display: grid; gap: 10px; --c: var(--d-heures); --c-clair: var(--d-heures-clair); }
.d-patients { --c: var(--d-patients); --c-clair: var(--d-patients-clair); }
.d-facturation { --c: var(--d-facturation); --c-clair: var(--d-facturation-clair); }
.d-personnel { --c: var(--d-personnel); --c-clair: var(--d-personnel-clair); }
.domaine h2 { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--c); }
.domaine-pastille { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--c-clair); color: var(--c); }
.tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.tuile { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 1fr auto; column-gap: 12px; row-gap: 8px;
  background: var(--surface); border: 1px solid var(--bordure); border-top: 3px solid var(--c); border-radius: 10px; padding: 14px; box-shadow: var(--ombre);
  color: inherit; text-decoration: none; min-height: 110px; transition: box-shadow .15s, transform .15s, border-color .15s; }
a.tuile:hover { box-shadow: var(--ombre-haute); transform: translateY(-1px); border-color: var(--c); }
.tuile-icone { grid-row: 1 / 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--c-clair); color: var(--c); }
.tuile-texte { display: grid; gap: 3px; align-content: start; }
.tuile .nom { font-weight: 600; font-size: 15px; }
.tuile .desc { color: var(--doux); font-size: 12.5px; line-height: 1.4; }
.tuile .puce { justify-self: start; }
.tuile.inactive { cursor: default; }
.tuile.inactive .nom { color: var(--doux); }
.puce { border-radius: 999px; padding: 2px 8px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.puce.nouveau { background: var(--ok-fond); color: var(--ok); }
.puce.windows { background: var(--surface); color: var(--doux); border: 1px solid var(--bordure); }
.puce.att { background: var(--att-fond); color: var(--att); }
@media (prefers-reduced-motion: reduce) { .tuile { transition: none; } a.tuile:hover { transform: none; } }

.tete-droite { display: flex; gap: 8px; align-items: center; }
.niveau-test { display: grid; gap: 3px; font-size: 11px; color: var(--att); font-weight: 600; width: 100%; margin-bottom: 6px; }
.niveau-test select { font: inherit; font-size: 13px; font-weight: 400; color: var(--texte); padding: 5px; border: 1px solid #f0c27a; border-radius: 6px; background: var(--att-fond); }
.droits { background: var(--surface); border: 1px solid var(--bordure); border-radius: 10px; padding: 10px 14px; }
.droits summary { cursor: pointer; font-weight: 600; }
.droits .tableau { margin-top: 10px; max-height: none; }
.droits .c { text-align: center; width: 54px; }
.droits td.courant { background: var(--org-clair); }
.droits tr.hors td:first-child { color: var(--doux); }

/* Écrans */
.bouton { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--bordure); background: var(--surface); color: var(--texte); border-radius: 6px; padding: 6px 12px; cursor: pointer; text-decoration: none; font: inherit; }
.bouton:hover { border-color: var(--org); }
.fenetre-titre { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.fenetre-titre h1 { font-size: 20px; }
.fenetre-titre .bouton { margin-left: auto; }
.selection { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: end; background: var(--surface); border: 1px solid var(--bordure); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.selection label { display: grid; gap: 3px; font-size: 12px; color: var(--doux); }
.selection select { font: inherit; font-size: 14px; color: var(--texte); padding: 5px 6px; border: 1px solid var(--bordure); border-radius: 6px; min-width: 200px; background: var(--surface); }
.selection .case { display: flex; gap: 6px; align-items: center; color: var(--texte); font-size: 14px; }
.selection .mois { display: flex; gap: 8px; align-items: center; }
.selection .mois strong { min-width: 130px; text-align: center; }
.tableau { background: var(--surface); border: 1px solid var(--bordure); border-radius: 8px; overflow: auto; max-height: calc(100vh - 230px); }
.tableau table { border-collapse: collapse; width: 100%; font-size: 13px; }
.tableau th, .tableau td { padding: 6px 9px; border-bottom: 1px solid var(--bordure); text-align: left; white-space: nowrap; height: 31px; }
.tableau th { background: var(--surface-2); color: var(--doux); font-size: 12px; position: sticky; top: 0; z-index: 1; }
.tableau .d { text-align: right; }
.tableau .notes { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }
.tableau tr.alerte td { background: var(--err-fond); }
.totaux { display: flex; gap: 24px; align-items: center; padding: 10px 4px; }
.totaux strong { font-size: 16px; }

/* Planning (couleurs de ProcCouleursPlanning, comme la maquette) */
.planning-zone { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.planning { background: var(--surface); border: 1px solid var(--bordure); border-radius: 10px; overflow: auto; max-height: calc(100vh - 200px); }
.pl-entete, .pl-ligne { display: grid; grid-template-columns: 220px minmax(900px, 1fr); }
.pl-entete { position: sticky; top: 0; z-index: 2; background: var(--surface-2); border-bottom: 1px solid var(--bordure); }
.pl-nom { padding: 6px 10px; display: grid; gap: 1px; border-right: 1px solid var(--bordure); position: sticky; left: 0; background: inherit; z-index: 1; }
.pl-entete .pl-nom { font-size: 12px; color: var(--doux); align-content: center; }
.pl-nom strong { font-size: 13px; font-weight: 600; }
.pl-nom span { font-size: 11.5px; color: var(--doux); }
.pl-ligne { border-bottom: 1px solid var(--bordure); background: var(--surface); min-height: 44px; }
.pl-ligne.vide { background: var(--surface-2); }
.pl-aplanifier { background: #fffaf0; min-height: 32px; }
.pl-aplanifier .pl-nom { padding-block: 3px; }
.pl-aplanifier .pl-bloc { top: 3px; bottom: 3px; }
.pl-piste { position: relative; }
.pl-heures { height: 28px; }
.pl-heures span { position: absolute; top: 7px; transform: translateX(-50%); font-size: 11px; color: var(--doux); }
.pl-grille { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(28,33,37,.06); }
.pl-bloc { position: absolute; top: 6px; bottom: 6px; border-radius: 5px; padding: 2px 5px; font-size: 11.5px; line-height: 1.25; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; color: #1c2125; border: 1px solid rgba(0,0,0,.12); }
.pl-bloc .h { font-weight: 600; font-variant-numeric: tabular-nums; }
.pl-bloc:hover { filter: brightness(.95); z-index: 1; }
.pl-bloc.choisi { outline: 2px solid var(--focus); z-index: 2; }
.pl-bloc.fin-tournee { border-right: 3px solid #1c2125; }
.t-5 { background: #efc3ec; } .t-3 { background: #dcdfe2; } .t-6 { background: #f8cdd8; } .t-7 { background: #f3d9e5; }
.t-autre { background: #bcd6f2; } .t-activite { background: #fbe9a6; } .t-pause { background: #c8ebd0; cursor: default; }
.panneau { width: 340px; background: var(--surface); border: 1px solid var(--bordure); border-radius: 10px; overflow: hidden; position: sticky; top: 0; }
.panneau-tete { display: flex; gap: 10px; align-items: center; background: var(--org); color: var(--sur-org); padding: 8px 10px; }
.panneau-tete img { height: 26px; background: #fff; border-radius: 6px; padding: 2px 4px; }
.panneau-tete .bouton { margin-left: auto; padding: 4px 10px; }
.panneau-corps { padding: 12px 14px; }
.panneau dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; }
.panneau dt { color: var(--doux); font-size: 12px; }
.panneau dd { margin: 0; }

/* Personnel · contrats */
.rh { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; align-items: start; }
.rh-liste { background: var(--surface); border: 1px solid var(--bordure); border-radius: 10px; padding: 10px; display: grid; gap: 8px; position: sticky; top: 0; }
.rh-filtres { display: grid; gap: 6px; }
.rh-filtres input[type=search] { font: inherit; padding: 6px 8px; border: 1px solid var(--bordure); border-radius: 6px; }
.rh-filtres .case { display: flex; gap: 6px; align-items: center; font-size: 12.5px; }
.rh-noms { display: grid; gap: 2px; max-height: calc(100vh - 260px); overflow-y: auto; }
.rh-nom { display: flex; justify-content: space-between; align-items: center; gap: 6px; text-align: left; border: 0; background: transparent; padding: 6px 8px; border-radius: 6px; cursor: pointer; font: inherit; color: inherit; }
.rh-nom span:first-child { display: grid; }
.rh-nom small { color: var(--doux); font-size: 11.5px; }
.rh-nom:hover { background: var(--surface-2); }
.rh-nom.choisi { background: var(--org-clair); }
.rh-dossier { display: grid; gap: 12px; }
.rh-dossier h2 { font-size: 18px; }
.contrat { background: var(--surface); border: 1px solid var(--bordure); border-top: 3px solid var(--d-personnel); border-radius: 10px; padding: 10px 12px; display: grid; gap: 8px; }
.contrat header { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.contrat .tableau { max-height: none; }
.contrat table.une-ligne td, .contrat table.une-ligne th { white-space: nowrap; }
.contrat table.une-ligne .info { color: var(--doux); cursor: help; }
.contrat tr.historique td { color: var(--doux); font-size: 12px; background: var(--surface-2); }

#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; right: 0; padding: 10px 16px; background: var(--err-fond); color: var(--err); }

.pl-bloc.suspendu { opacity: .55; background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgba(0,0,0,.08) 6px 12px); }
.controle { margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--bordure); border-left: 4px solid #c62828; border-radius: 8px; background: var(--surface); display: grid; gap: 8px; }
.controle-tete { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.controle .tableau { max-height: 320px; }

/* Consignes du sous-secteur en haut du planning (FEN_Planning : consigne du jour, consignes récurrentes) */
.notes-planning { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-bottom: 12px; }
.notes-planning > div { background: var(--surface); border: 1px solid var(--bordure); border-left: 4px solid var(--org); border-radius: 10px; padding: 10px 12px; }
.notes-planning h2 { font-size: 14px; margin: 0 0 6px; }
.notes-planning p { margin: 0 0 4px; }
.notes-planning ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.notes-planning li { display: grid; gap: 1px; }
.notes-planning .texte-consigne { white-space: pre-wrap; font-weight: 600; }
.notes-planning .doux { color: var(--doux); font-weight: 400; }

/* Validation des heures : relevé du mois, un bloc par jour */
.puce.ok { background: var(--ok-fond); color: var(--ok); }
.puce.err { background: var(--err-fond); color: var(--err); }
.releve-resume { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.releve-resume > div { display: grid; gap: 2px; min-width: 140px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--bordure); border-radius: 10px; }
.releve-resume > div span { font-size: 12px; }
.releve-resume > div.att { background: var(--att-fond); color: var(--att); }
.releve-resume > div.err { background: var(--err-fond); color: var(--err); }
.releve { display: grid; gap: 8px; }
.releve-jour { background: var(--surface); border: 1px solid var(--bordure); border-left: 5px solid var(--bordure); border-radius: 10px; overflow: hidden; }
.releve-jour.valide { border-left-color: var(--ok); }
.releve-jour.a-valider { border-left-color: var(--att); }
.releve-jour.weekend > header { background: var(--surface-2); }
.releve-jour > header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 12px; }
.releve-jour > header strong { min-width: 90px; }
.releve-etat { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.releve-jour table { width: 100%; border-collapse: collapse; font-size: 13px; }
.releve-jour td { padding: 4px 12px; border-top: 1px solid var(--bordure); vertical-align: top; }
.releve-jour td.num { white-space: nowrap; }
.releve-jour tr.refusee td { text-decoration: line-through; font-style: italic; color: var(--err); }
.releve-jour tr.attente td { font-style: italic; color: var(--att); }
.releve-jour tr.chevauche td:first-child { box-shadow: inset 3px 0 0 var(--err); }
.releve-jour tr.pause td, .releve-jour tr.blanche td { color: var(--doux); }
.bouton.primaire { background: var(--org); border-color: var(--org); color: var(--sur-org); }
.bouton.primaire:hover { background: var(--org-fonce); }
.bouton.petit { padding: 3px 9px; font-size: 12px; }
.bouton:disabled { opacity: .55; cursor: default; }
.decision { display: grid; gap: 8px; padding: 10px 12px; background: var(--surface-2); border-radius: 8px; }
.decision label { display: grid; gap: 3px; font-size: 12px; color: var(--doux); }
.decision textarea, .decision input { font: inherit; font-size: 14px; color: var(--texte); padding: 5px 6px; border: 1px solid var(--bordure); border-radius: 6px; background: var(--surface); }
.decision > div { display: flex; gap: 8px; }
.releve-jour em.propose { display: block; color: var(--att); font-style: italic; }

/* Récapitulatif mensuel des salaires */
.recap { display: flex; gap: 14px; align-items: start; }
.recap > .tableau { flex: 1; min-width: 0; }
.recap .tableau tr.groupes th { text-align: center; border-left: 1px solid var(--bordure); color: var(--texte); }
.recap .tableau thead tr:nth-child(2) th { top: 31px; }
.recap .tableau tfoot td { position: sticky; bottom: 0; background: var(--surface-2); }
.recap .tableau tr.cliquable { cursor: pointer; }
.recap .tableau tr.cliquable:hover td { background: var(--surface-2); }
.recap .tableau tr.choisi td { background: var(--att-fond); }
.recap-panneau { width: 380px; flex: none; max-height: calc(100vh - 230px); display: flex; flex-direction: column; }
.recap-panneau .panneau-corps { overflow: auto; }
.recap-panneau h3 { font-size: 13px; margin: 14px 0 6px; }
.recap-panneau.opas-panneau { width: min(620px, 50vw); }
.opas-panneau .tableau { max-height: none; }
.recap-non-valides { margin-top: 12px; }
.recap-non-valides summary { cursor: pointer; font-weight: 600; margin-bottom: 8px; }
.selection input.recherche { font: inherit; font-size: 14px; padding: 5px 6px; border: 1px solid var(--bordure); border-radius: 6px; min-width: 180px; }

/* Connexion */
.connexion { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.connexion-carte { width: min(400px, 100%); background: var(--surface); border: 1px solid var(--bordure); border-radius: 12px; box-shadow: var(--ombre-haute); padding: 22px; display: grid; gap: 12px; }
.connexion-tete { display: flex; gap: 14px; align-items: center; margin-bottom: 4px; }
.connexion-tete img { height: 46px; }
.connexion-carte > label:not(.case) { display: grid; gap: 4px; font-weight: 600; }
.connexion-carte input:not([type=checkbox]) { font: inherit; padding: 8px 10px; border: 1px solid var(--bordure); border-radius: 6px; }
.connexion-carte .case { display: flex; gap: 8px; align-items: center; }
.connexion-carte .bouton.primaire { justify-content: center; padding: 9px 12px; }
.message.att { background: var(--att-fond); color: var(--att); }
.utilisateur { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.utilisateur form { margin: 0; }

/* Droits d'accès */
.droits-table tr.groupe td { background: var(--surface-2); font-weight: 600; }
.droits-table td.regle, .droits-table tr.regle td { font-weight: 600; background: var(--org-clair); }
.lien { border: 0; background: none; color: var(--org); cursor: pointer; padding: 0 2px; font: inherit; }

/* Fiche d'une prestation (décompte des heures) */
.fiche-panneau { position: fixed; right: 16px; top: 16px; bottom: 16px; width: min(520px, calc(100vw - 32px)); display: flex; flex-direction: column; z-index: 20; box-shadow: var(--ombre-haute); }
.fiche-panneau .panneau-corps { overflow: auto; display: grid; gap: 10px; align-content: start; }
.fiche-panneau h3 { font-size: 14px; margin-top: 4px; }
.fiche-panneau.large { width: min(820px, calc(100vw - 32px)); }
.fiche-panneau.opas-fiche { width: min(1120px, calc(100vw - 32px)); }
.opas-fiche .tableau { max-height: none; }
.selection input.court { width: 7em; }
.historique { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13px; }

/* Gestion des patients */
tr.adresse-a-verifier td { background: #fff7cc; }
.patient-panneau h2 { font-size: 17px; }
.fiche-panneau.patient-panneau { width: min(1120px, calc(100vw - 32px)); }
.patient-panneau .tableau { max-height: none; }
.onglets { display: flex; flex-wrap: wrap; gap: 6px; }

/* OPAS */
tr.opas-echue td { background: #fde8e6; }
tr.opas-7 td { background: #fdf0dc; }
tr.opas-14 td { background: #fff7cc; }
td.hors-opas { background: #fde8e6; color: var(--err); font-weight: 600; }
td.depasse { background: #fdf0dc; color: var(--att); font-weight: 600; }

/* Prestations à facturer : jauges OPAS */
.facturation-panneau { width: 560px; }
.jauge { margin: 6px 0 10px; }
.jauge-titre { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 3px; gap: 8px; }
.jauge-barres { display: grid; gap: 3px; }
.jauge-opas, .jauge-saisi { height: 10px; border-radius: 4px; min-width: 2px; }
.jauge-opas { background: var(--bordure); }
.jauge-saisi { background: var(--org); }
.jauge-saisi.plus { background: var(--att); }
.jauge-saisi.hors { background: var(--err); }
.grille-jours th, .grille-jours td { padding: 2px 4px; font-size: 11px; }
.message.ok { background: var(--ok-fond); color: var(--ok); }

/* Bulle du planning (js/bulle-planning.js), 03.12.2026 */
.pl-bulle { position: fixed; z-index: 1000; display: none; max-width: 320px; padding: 10px 12px; background: #fff; color: #1c2125;
    border: 1px solid var(--bordure); border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.16); font-size: 13px; line-height: 1.4; pointer-events: none; }
.pl-bulle.visible { display: grid; gap: 4px; }
.pl-bulle .pb-heure { font-weight: 600; font-variant-numeric: tabular-nums; }
.pl-bulle .pb-heure span { font-weight: 400; color: var(--doux); }
.pl-bulle .pb-titre { font-size: 14.5px; font-weight: 700; }
.pl-bulle .pb-ligne { display: flex; gap: 8px; }
.pl-bulle .pb-cle { color: var(--doux); min-width: 92px; }
.pl-bulle .pb-marques { display: flex; flex-wrap: wrap; gap: 4px; }
.pl-bulle .pb-marques span { background: var(--surface-2); border: 1px solid var(--bordure); border-radius: 10px; padding: 0 7px; font-size: 12px; }
.pl-bulle .pb-marques .pb-attention { background: #fff4e5; border-color: #f0c27a; }
.pl-bulle .pb-remarque { white-space: pre-line; background: #fffaf0; border-left: 3px solid #f0c27a; padding: 4px 8px; border-radius: 4px; }
.pl-bulle .pb-aide { font-size: 11.5px; color: var(--doux); margin-top: 2px; }

/* Absences du planning (03.12.2026) : couleurs de Windows, en bord de ligne */
.tableau tr.abs-premier td { border-top: 2px solid var(--bordure); }
.tableau tr.abs-rouge td:first-child { box-shadow: inset 4px 0 0 var(--err); }
.tableau tr.abs-orange td:first-child { box-shadow: inset 4px 0 0 #e07b00; }
.tableau tr.abs-jaune td:first-child { box-shadow: inset 4px 0 0 #d9b200; }
.tableau tr.abs-vert td:first-child { box-shadow: inset 4px 0 0 var(--ok); }
.abs-champs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 12px; }
.abs-champs label { display: grid; gap: 3px; font-size: 12px; color: var(--doux); }
.abs-champs input, .abs-champs select, .abs-champs textarea { font: inherit; font-size: 14px; color: var(--texte); padding: 5px 7px; border: 1px solid var(--bordure); border-radius: 6px; background: var(--surface); }
.abs-champs input[readonly] { background: var(--surface-2); }
.abs-champs .tout { grid-column: 1 / -1; }
.abs-champs .case { display: flex; gap: 6px; align-items: center; color: var(--texte); font-size: 14px; }
.abs-pied { display: flex; justify-content: flex-end; gap: 10px; }
.tableau .negatif { color: var(--err); }

/* Valider le mois (ValiderMoisEcran) */
.carte-bloc { background: var(--surface); border: 1px solid var(--bordure); border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; display: grid; gap: 10px; }
.carte-bloc h2 { font-size: 16px; margin: 0; }
.vm-controles { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 13.5px; }
.vm-controles span { display: inline-block; width: 20px; text-align: center; font-weight: 700; }
.vm-ok { color: var(--ok); } .vm-att { color: var(--att); } .vm-err { color: var(--err); }
tr.vm-bloque td { background: #fff6f6; }
tr.vm-fait td { color: var(--doux); }
tr.vm-bloque .puce + .puce { margin-left: 4px; }

/* Attente : sablier sur les messages de chargement et bandeau pendant une action (demande de Nicolas, 04.12.2026) */
@keyframes asdr-tourne { to { transform: rotate(360deg); } }
.sablier { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: asdr-tourne .8s linear infinite; vertical-align: -2px; }
.message.chargement::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: asdr-tourne .8s linear infinite; vertical-align: -2px; }
.attente-bandeau { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 1000; background: var(--org); color: #fff; padding: 10px 18px; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.2); font-weight: 600; display: flex; gap: 10px; align-items: center; }
body:has(.attente-bandeau), body:has(.message.chargement) { cursor: progress; }

/* Bandeau de connexion (js/connexion.js) : en haut, couleur du programme, logo sur pastille blanche */
.connexion-bandeau { position: fixed; top: 0; left: 0; right: 0; z-index: 2000; display: none; align-items: center; gap: 12px; padding: 10px 18px; background: var(--org); color: #fff; font-weight: 600; box-shadow: 0 3px 12px rgba(0,0,0,.2); }
.connexion-bandeau img { width: 26px; height: 26px; background: #fff; border-radius: 50%; padding: 3px; }
.connexion-bandeau.erreur { background: var(--err); }
.connexion-bandeau .bouton { margin-left: 12px; }
#components-reconnect-modal { display: none !important; }

/* Récapitulatif : case « Toutes les colonnes » à droite au-dessus du tableau ; titres de colonnes sur 2 lignes pour que les groupes (Contrat…) restent étroits */
.recap-options { display: flex; justify-content: flex-end; margin: 0 0 6px; }
.recap .tableau thead tr:nth-child(2) th { white-space: normal; max-width: 110px; vertical-align: bottom; line-height: 1.2; }
.releve-resume > .resume-droite { margin-left: auto; align-self: center; }
/* Récapitulatif : colonne Collaborateur étroite, nom coupé « … » (nom complet au survol) */
.recap .tableau td.recap-nom { max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
/* Bulle d'aide « ? » (explication au survol) */
.aide { display: inline-grid; place-items: center; width: 15px; height: 15px; margin-left: 4px; border-radius: 50%; background: var(--org); color: #fff; font-size: 10px; font-weight: 700; cursor: help; vertical-align: middle; }
/* Bulle d'aide : fenêtre affichée par js/aide.js au-dessus de tout (jamais coupée par le tableau), placée dans l'écran */
.aide { transition: transform .15s, box-shadow .15s; }
.aide:hover, .aide:focus { transform: scale(1.15); box-shadow: 0 0 0 3px var(--org-clair); outline: none; }
.bulle-aide {
  position: fixed; z-index: 3000; max-width: 320px; padding: 12px 14px; border-radius: 10px; background: #fff; color: var(--texte);
  border: 1px solid var(--bordure); border-top: 3px solid var(--org); box-shadow: 0 10px 28px rgba(0,0,0,.16);
  font-size: 12.5px; font-weight: 400; line-height: 1.45; pointer-events: none; opacity: 0; transform: translateY(-4px); transition: opacity .15s, transform .15s;
}
.bulle-aide.visible { opacity: 1; transform: none; }
.bulle-aide.dessus { border-top: 1px solid var(--bordure); border-bottom: 3px solid var(--org); transform: translateY(4px); }
.bulle-aide.dessus.visible { transform: none; }
/* Récapitulatif : bulle « Heures sans contrat » (liste avec liens vers les contrats) */
.releve-resume > .resume-bulle { position: relative; }
.releve-resume > .resume-bulle.cliquable { cursor: pointer; }
.releve-resume > .resume-bulle.cliquable:hover { box-shadow: 0 0 0 2px var(--att); }
.bulle-liste { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; width: 340px; background: #fff; color: var(--texte);
  border: 1px solid var(--bordure); border-radius: 10px; box-shadow: 0 10px 28px rgba(0,0,0,.18); overflow: hidden; cursor: default; }
.bulle-liste-tete { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--org); color: var(--sur-org); }
.bulle-liste-tete img { width: 22px; height: 22px; background: #fff; border-radius: 50%; padding: 2px; }
.bulle-liste-tete strong { flex: 1; font-size: 13px; }
.bulle-liste ul { list-style: none; margin: 0; padding: 6px 0; max-height: 300px; overflow: auto; }
.bulle-liste li { padding: 6px 12px; font-size: 13px; display: flex; justify-content: space-between; gap: 10px; }
.bulle-liste li:hover { background: var(--surface-2); }
.bulle-liste .doux { font-size: 12px; white-space: nowrap; }
/* Bandeau du mode (Nicolas, 04.12.2026) : Développement en rouge, Test en orange, rien en production. */
.bandeau-mode { margin: 0 0 12px; padding: 6px 12px; border-radius: 6px; font-weight: 700; color: #fff; text-align: center; letter-spacing: .02em; }
.bandeau-mode.dev { background: #c62828; }
.bandeau-mode.test { background: #ef8a00; }
.bascule-base { margin-top: 6px; display: inline-block; }
