:root {
  --bg: #f6f7f9; --surface: #fff; --text: #1d2330; --muted: #5d6677; --border: #dde1e8;
  --accent: #2456c9; --accent-text: #fff; --danger: #b42318;
  --ok-bg: #e7f6ec; --ok-text: #1a6b38; --err-bg: #fdecea; --err-text: #9b1c13; --info-bg: #e8effc; --info-text: #1f4291;
  --warn-bg: #fdf3e1; --warn-text: #8a5300;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171c; --surface: #1d2129; --text: #e6e8ec; --muted: #9aa3b2; --border: #2e3440;
    --accent: #6d95f0; --accent-text: #0e1116; --danger: #f2877d;
    --ok-bg: #173323; --ok-text: #8fd9a8; --err-bg: #3a1a17; --err-text: #f4a49c; --info-bg: #1b2a48; --info-text: #a8c0f5;
    --warn-bg: #3a2c12; --warn-text: #f3c77a;
  }
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--accent); }
.topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 12px 24px; background: var(--surface); border-bottom: 1px solid var(--border); }
.brand { font-weight: 700; text-decoration: none; color: var(--text); }
.topnav { color: var(--muted); text-decoration: none; font-weight: 600; }
.topnav:hover, .topnav.active { color: var(--text); }
.topnav.active { text-decoration: underline; text-underline-offset: 6px; }
.who { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.badge { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--info-bg); color: var(--info-text); }
.container { max-width: 1100px; margin: 0 auto; padding: 24px 16px; }
.footer { text-align: center; color: var(--muted); font-size: 13px; padding: 24px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 20px 24px; margin-bottom: 20px; }
.narrow { max-width: 460px; margin-left: auto; margin-right: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 20px 0; }
.tile { text-decoration: none; color: inherit; margin: 0; }
.tile:hover { border-color: var(--accent); }
.tile h2 { margin: 0 0 6px; font-size: 18px; }
.tile p { margin: 0; color: var(--muted); }
.tile-date { white-space: nowrap; }  /* une date JJ-MM-AAAA ne se coupe pas après un tiret */
.home-section { margin: 28px 0 0; font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.home-section + .grid { margin-top: 10px; }
.home .grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }  /* accueil pleine largeur : 5 tuiles par rangée vers 1270 px, 8 en 1920 px ; 210 px = le titre le plus long sur une ligne */
.home .tile { padding: 18px 20px; }
.heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; margin-bottom: 4px; }
input, select, textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: 6px; font: inherit; background: var(--bg); color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.error { color: var(--danger); margin: 4px 0 0; font-size: 14px; }
.btn { display: inline-block; padding: 9px 18px; border: 0; border-radius: 6px; background: var(--accent); color: var(--accent-text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; margin-right: 10px; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; }
.link.danger { color: var(--danger); }
.inline { display: inline; }
/* Croix qui ferme un encart de notification (accueil, « Mes demandes ») */
.dismiss { background: none; border: 0; padding: 0 4px; font: inherit; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; }
.dismiss:hover, .dismiss:focus-visible { color: var(--text); }
.dismiss-form { align-self: flex-start; }  /* à hauteur du titre, sans compter sa marge du bas */
/* Choix de l'élément à modifier sur « Mon profil » */
.choose { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.choose select { width: auto; min-width: 220px; }
/* Refus d'une demande de modification : motif + bouton */
.refuse { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.refuse input { width: auto; min-width: 200px; }
.muted { color: var(--muted); }
.flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; }
.flash-success { background: var(--ok-bg); color: var(--ok-text); }
.flash-error { background: var(--err-bg); color: var(--err-text); }
.flash-info, .flash-message { background: var(--info-bg); color: var(--info-text); }
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.table-wrap { overflow-x: auto; margin-bottom: 20px; }
.table td.wrap { white-space: normal; min-width: 260px; }
.table td.wrap .badge { white-space: nowrap; }  /* le texte passe à la ligne, un badge jamais coupé en deux */
/* Pages à grand tableau : toute la largeur de l'écran, marges alignées sur la barre du haut. */
.container.wide { max-width: none; padding-left: 24px; padding-right: 24px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table th { font-size: 13px; color: var(--muted); font-weight: 600; }
.table tr.inactive td { color: var(--muted); }
.actions { display: flex; gap: 12px; }
.info { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0 0 12px; }
.info dt { color: var(--muted); }
.info dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }  /* une URL ou un email long se coupe au lieu de déborder sur mobile */
.card h2 { margin-top: 0; font-size: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 16px; }
.heading > div { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn-secondary { background: var(--info-bg); color: var(--info-text); }
.late { color: var(--danger); font-weight: 600; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px 20px; border-bottom: 1px solid var(--border); margin: 8px 0 14px; }
.tabs a { padding: 8px 0; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs a.active { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pill { padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; color: var(--text); font-size: 14px; }
.pill.active { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.pill .count { opacity: .75; margin-left: 4px; }
.pill-late:not(.active) { border-color: var(--danger); color: var(--danger); }
.status, .prio { font-size: 13px; padding: 2px 8px; border-radius: 999px; background: var(--info-bg); color: var(--info-text); }
.status-terminee { background: var(--ok-bg); color: var(--ok-text); }
.status-a_faire { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
.prio-haute { background: var(--err-bg); color: var(--err-text); }
.prio-basse { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
/* Notes de frais : statuts et montants alignés à droite */
.status-frais-brouillon { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
.status-frais-a_corriger { background: var(--err-bg); color: var(--err-text); }
.status-frais-payee { background: var(--ok-bg); color: var(--ok-text); }
/* Avancement d'une demande de modification : en cours (gris), validée (bleu, défaut), appliquée (vert), refusée (rouge), à corriger (orange). */
.status-demande-en_attente { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
.status-demande-appliquee { background: var(--ok-bg); color: var(--ok-text); }
.status-demande-refusee { background: var(--err-bg); color: var(--err-text); }
.status-demande-a_corriger { background: var(--warn-bg); color: var(--warn-text); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.choose input:not([type="hidden"]) { width: auto; flex: 1 1 220px; max-width: 460px; }
.table tfoot th { color: var(--text); font-size: 15px; }
/* Visionneuse de justificatifs : image entière à l'écran, PDF dans un cadre ; fond clair pour les tickets scannés. */
.receipt-view { text-align: center; }
.receipt-image { display: block; max-width: 100%; max-height: 75vh; margin: 0 auto; background: #fff; border-radius: 6px; }
.receipt-pdf { display: block; width: 100%; height: 75vh; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
/* Justificatif d'une demande de modification, sous ses informations (page de la demande et tâche de validation). */
.proof-views { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 14px 0 18px; }
.proof-view { text-align: center; margin: 0; min-width: 0; }
.proof-view .receipt-image { max-height: 60vh; }
.proof-view .receipt-pdf { height: 60vh; }
.proof-view figcaption { margin-top: 8px; font-size: 14px; overflow-wrap: anywhere; }
/* Visionneuse des annexes d'une candidature (CV, lettre) : résumé du dossier à gauche, qui reste visible ; le PDF à droite
   sur toute la hauteur de l'écran, dans une colonne de la largeur d'une page lisible ; l'un sous l'autre sur écran étroit. */
.viewer { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1040px); gap: 20px; justify-content: center; align-items: start; }
.viewer-side { position: sticky; top: 16px; margin: 0; padding: 18px 20px; }
.viewer-side h1 { font-size: 22px; margin: 8px 0 4px; overflow-wrap: anywhere; }
.viewer-side h2 { font-size: 15px; margin: 18px 0 8px; }
.viewer-back { margin: 0; font-size: 14px; }
.viewer-info { font-size: 14px; gap: 4px 14px; }
.viewer-files { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.viewer-files a { display: block; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); text-decoration: none; }
.viewer-files a:hover { border-color: var(--accent); }
.viewer-files a.active { border-color: var(--accent); background: var(--info-bg); }
.viewer-files span { display: block; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.viewer-message { margin-top: 16px; font-size: 14px; }
.viewer-message summary { cursor: pointer; font-weight: 600; }
.viewer-message .description { overflow-wrap: anywhere; }  /* un lien long du candidat se coupe au lieu de déborder sur le PDF */
.viewer-help { font-size: 13px; margin: 14px 0 0; }
.viewer-pdf { display: block; width: 100%; height: calc(100vh - 140px); min-height: 520px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
@media (max-width: 860px) {
  .viewer { grid-template-columns: minmax(0, 1fr); }  /* aucun contenu n'élargit la colonne au-delà de l'écran */
  .viewer-side { position: static; }
  .viewer-pdf { height: 80vh; min-height: 420px; }
}
.table tr.done td a { color: var(--muted); }
.description { white-space: pre-wrap; border-top: 1px solid var(--border); padding-top: 12px; }
.table th:last-child, .table td:last-child { width: 100%; }
/* Listes de personnes : la place en trop se répartit entre toutes les colonnes, selon la largeur de l'écran,
   au lieu d'aller à la dernière (dont la valeur, alignée à droite, partirait au bord de l'écran). */
.table.table-spread th:last-child, .table.table-spread td:last-child { width: auto; }
/* Écran plus étroit : un titre long passe sur deux lignes (deux moitiés insécables, voir colonnes.Column.header)
   avant d'imposer le défilement ; les titres sont alignés en bas. */
.table.table-spread th { vertical-align: bottom; }
.table.table-spread th.split { white-space: normal; }
.table.table-spread th.split span { white-space: nowrap; }
.table.table-spread td.wrap { min-width: 200px; }  /* poste : sur deux lignes plutôt que du défilement */
/* Liste des tâches : la place en trop va au titre, qui ne passe à la ligne que faute de place, pas aux actions. */
.table.table-tasks th:first-child, .table.table-tasks td:first-child { width: 100%; }
.table.table-tasks th:last-child, .table.table-tasks td:last-child { width: auto; }
.table.table-tasks td.wrap { min-width: 200px; }
.table.table-tasks td.due { white-space: normal; }  /* « · en retard » passe sous la date plutôt que de faire déborder */
.table.table-tasks td.due span { white-space: nowrap; }
.table.table-tasks td.actions { flex-wrap: wrap; row-gap: 4px; min-width: 190px; }  /* « Commencer » et « Terminer » sur une ligne, « Prendre en charge » au-dessus s'il s'y ajoute */
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0 16px; align-items: end; }
/* Panneau « Colonnes » des listes de personnes : affichées (ordonnées) à gauche, à ajouter par rubrique à droite. */
/* Page Exports (templates/exports/index.html) : un bloc par liste, ses filtres, puis les boutons de téléchargement. */
.export-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 16px; align-items: start; }
.export-grid .card { margin: 0; }
.export-grid .card > .muted { margin: 0 0 14px; font-size: 14px; }
.export-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 12px; }
.export-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.export-grid .export-wide { grid-column: 1 / -1; }
.export-columns { border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px 4px; margin: 0 0 14px; }
.export-columns legend { font-weight: 600; padding: 0 4px; }
.export-group { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 6px 0; border-top: 1px solid var(--border); }
.export-group:first-of-type { border-top: 0; }
.export-group-title { flex: 0 0 150px; font-weight: 600; font-size: 14px; color: var(--muted); }
.export-columns > .muted { margin: 6px 0 4px; font-size: 14px; }
.columns-panel { margin: 0 0 12px; }
.columns-panel summary { display: inline-block; list-style: none; cursor: pointer; padding: 6px 14px; border-radius: 6px; background: var(--info-bg); color: var(--info-text); font-weight: 600; font-size: 14px; }
.columns-panel summary::-webkit-details-marker { display: none; }
.columns-panel summary::after { content: " ▾"; }
.columns-panel[open] summary::after { content: " ▴"; }
.columns-form { max-width: 1000px; margin-top: 10px; padding: 18px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.columns-layout { display: grid; grid-template-columns: 1fr; gap: 20px; }
.columns-form h3 { margin: 0; font-size: 16px; }
.columns-form section > .muted { margin: 2px 0 10px; font-size: 14px; }
/* Cases à cocher partout (panneau « Colonnes », formulaires du recrutement, consentement de la page carrière) :
   jamais la largeur 100 % des champs de saisie. */
input[type="checkbox"] { width: auto; margin: 0; padding: 0; accent-color: var(--accent); flex-shrink: 0; }
.column-choice { display: flex; align-items: center; gap: 8px; padding: 3px 0; cursor: pointer; }
/* Case + libellé dans un .field : reprend la main sur « .field label { display: block } », texte en graisse normale. */
.field .column-choice { display: flex; align-items: flex-start; font-weight: 400; margin-bottom: 0; }
.field .column-choice input[type="checkbox"] { margin-top: 5px; }
.columns-shown { list-style: none; margin: 0; padding: 0; columns: 3 240px; column-gap: 16px; } /* plusieurs colonnes, remplies de haut en bas */
.columns-shown li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 3px 6px 3px 10px; margin-bottom: 4px; break-inside: avoid; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); }
.column-moves { display: inline-flex; gap: 4px; flex-shrink: 0; }
.column-moves button { width: 28px; height: 24px; padding: 0; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); color: var(--accent); font-size: 11px; cursor: pointer; }
.column-moves button:hover:not(:disabled) { border-color: var(--accent); }
.column-moves button:disabled { opacity: .3; cursor: default; }
.columns-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px 24px; }
.columns-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.columns-group legend { padding: 0; margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.columns-actions { display: flex; align-items: center; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.filters-actions { display: flex; align-items: center; gap: 4px; margin-bottom: 14px; }
.simulation-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 10px 24px; background: var(--err-bg); color: var(--err-text); border-bottom: 2px solid var(--danger); }
.simulation-banner .btn { margin: 0; }
.topbar .pill { font-size: 14px; }
.group-title { font-size: 18px; margin: 24px 0 0; }
.tile-form { display: contents; }
.tile-button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; font: inherit; cursor: pointer; }
.tile-button strong { font-size: 17px; }
.tile-button .muted { font-size: 14px; }
.tile-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* Dashboard RH (ex-« Indicateurs RH », d'où le préfixe .kpi des classes) : tuiles et graphiques SVG (parts d'anneau : --c0 à --c5) */
:root { --c0: #2456c9; --c1: #e8873a; --c2: #2a9d8f; --c3: #8e5bd1; --c4: #d64561; --c5: #8a93a6; }
@media (prefers-color-scheme: dark) {
  :root { --c0: #6d95f0; --c1: #f0a05c; --c2: #4fc3b4; --c3: #b08af0; --c4: #f07a90; --c5: #9aa3b2; }
}
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 16px 0 20px; }
.kpi { display: flex; flex-direction: column; margin: 0; padding: 14px 16px; }
.kpi strong { font-size: 28px; line-height: 1.1; }
.kpi span { font-weight: 600; font-size: 14px; margin-top: 4px; }
.kpi small { color: var(--muted); font-size: 13px; }
.kpi-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi-cards .card { margin: 0; }
.bars { width: 100%; border-collapse: collapse; }
.bars th { text-align: left; font-weight: 500; font-size: 14px; padding: 4px 10px 4px 0; width: 42%; white-space: normal; }
.bars td { padding: 4px 0; }
.bar-cell { width: 42%; }
.bar { display: block; width: 100%; height: 12px; }
.bar-fill { fill: var(--accent); }
.bars tr.muted .bar-fill { fill: var(--border); }
.bars .bar-value { white-space: nowrap; padding-left: 14px; font-size: 14px; }  /* « .bars » : sinon « .bars td » annule l'espace */
.donut { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.donut-svg { width: 150px; height: 150px; flex-shrink: 0; }
.donut-ring { stroke: var(--border); }
.legend { list-style: none; margin: 0; padding: 0; }
.legend li { display: flex; align-items: center; gap: 8px; margin: 4px 0; font-size: 14px; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.seg-0 { stroke: var(--c0); background: var(--c0); }
.seg-1 { stroke: var(--c1); background: var(--c1); }
.seg-2 { stroke: var(--c2); background: var(--c2); }
.seg-3 { stroke: var(--c3); background: var(--c3); }
.seg-4 { stroke: var(--c4); background: var(--c4); }
.seg-5 { stroke: var(--c5); background: var(--c5); }
.columns { display: flex; align-items: stretch; gap: 8px; height: 180px; }
.column { flex: 1; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.column-value { font-size: 14px; font-weight: 600; }
.column-bar { flex: 1; width: 100%; max-width: 56px; min-height: 0; }
.column-label { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.2; height: 2.4em; margin-top: 4px; }
.todo { margin: 0; padding-left: 20px; }
.todo li { margin: 4px 0; }
/* Libellés des graphiques : liens discrets vers les personnes concernées. */
.kpi-link { color: inherit; text-decoration: none; }
.kpi-filtres { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.kpi-filtres .badge { font-size: 13px; }
.kpi-filtres .badge a { color: inherit; text-decoration: none; font-weight: 700; margin-left: 4px; }
.kpi-link:hover, .kpi-link:focus { color: var(--accent); text-decoration: underline; }

/* Permis de travail : situation de chaque personne */
.situation { font-size: 13px; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.situation-echu { background: var(--err-bg); color: var(--err-text); }
.situation-bientot { background: var(--warn-bg); color: var(--warn-text); }
.situation-valide { background: var(--ok-bg); color: var(--ok-text); }
.situation-a_completer { background: var(--info-bg); color: var(--info-text); }
.situation-suisse { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
/* Recrutement : statuts des postes, étapes des candidatures, colonnes du suivi, avis du manager. */
.job-brouillon { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
.job-ouvert { background: var(--ok-bg); color: var(--ok-text); }
.job-ferme { background: var(--warn-bg); color: var(--warn-text); }
.stage-recue { background: var(--info-bg); color: var(--info-text); }
.stage-preselection, .stage-entretien, .stage-entretien_manager, .stage-offre { background: var(--warn-bg); color: var(--warn-text); }
.stage-embauchee { background: var(--ok-bg); color: var(--ok-text); }
.stage-refusee, .stage-retiree { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
/* Suivi en colonnes : 5 colonnes de 180 px au moins (948 px avec les écarts), puis 3, 2 et 1 selon la largeur. */
.pipeline { display: grid; grid-template-columns: repeat(6, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; overflow-x: auto; }
.pipeline-col { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px; min-height: 160px; }
.pipeline-col h2 { font-size: 15px; margin: 0 0 10px; }
.candidate { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; margin-bottom: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; text-decoration: none; color: inherit; font-size: 14px; }
.candidate:hover { border-color: var(--accent); }
.opinion { font-size: 13px; padding: 1px 8px; border-radius: 999px; align-self: flex-start; white-space: nowrap; }
.opinion-favorable { background: var(--ok-bg); color: var(--ok-text); }
.opinion-reserve { background: var(--warn-bg); color: var(--warn-text); }
.opinion-defavorable { background: var(--err-bg); color: var(--err-text); }
@media (max-width: 1020px) { .pipeline { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .pipeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .pipeline { grid-template-columns: 1fr; } }
/* Page carrière publique : champ piège hors écran (jamais vu par une personne), description préservée. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.public .container { max-width: 820px; }
/* Liste des postes : un lien-carte par poste, en bloc (hors d'une grille, un lien reste en ligne et sa carte se fragmente). */
.public .tile { display: block; margin-bottom: 12px; }
.public .tile h2 { margin-bottom: 4px; }
.public .form-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }  /* 4 champs sur 2 × 2, pas 3 + 1 */
/* Page carrière : présentation, étapes pour postuler, postes groupés par filière, candidature spontanée. */
.public .hero { padding: 8px 0 20px; }
.public .hero h1 { font-size: 30px; margin: 0 0 10px; }
.public .lead { font-size: 17px; line-height: 1.5; color: var(--muted); max-width: 640px; margin: 0 0 18px; }
.public .how { padding-left: 22px; margin: 0 0 12px; line-height: 1.5; }
.public .how li { margin-bottom: 6px; }
.public .sector { margin-bottom: 20px; }
.public .sector h3 { font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 10px; }
.public .tile h4 { margin: 0 0 4px; font-size: 18px; }
.public .spontaneous { border-left: 4px solid var(--accent); }
details summary { cursor: pointer; font-weight: 600; }
/* Demandes de modification : message des RH (retours à la ligne gardés), tableau avant / après. */
.message { white-space: pre-line; margin-top: 6px; }
.table.compare td { vertical-align: top; }
.table.compare td input, .table.compare td select { min-width: 220px; }
/* Mutations : listes de tâches prédéfinies (formulaire), avancement (barre), statut d'une mutation. */
.steps { border: 1px solid var(--border); border-radius: 10px; padding: 10px 16px 12px; margin: 0 0 14px; min-width: 0; }
.steps legend { font-weight: 600; padding: 0 6px; }
.step { display: flex; align-items: flex-start; gap: 8px; padding: 4px 0; cursor: pointer; }
.step input[type="checkbox"] { width: auto; margin: 5px 0 0; padding: 0; accent-color: var(--accent); flex-shrink: 0; }
.step .badge { flex-shrink: 0; white-space: nowrap; margin-top: 3px; }
.progress { width: 110px; height: 10px; vertical-align: middle; accent-color: var(--accent); margin-right: 8px; }
.status-en_cours { background: var(--info-bg); color: var(--info-text); }
.status-annulee { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
/* Historique de la fiche : chronologie dépliable sous chaque section, une table de périodes par élément. */
.history { margin-top: 4px; }
.history summary { cursor: pointer; color: var(--accent); font-weight: 600; width: max-content; }
.history-item h3 { font-size: 15px; margin: 14px 0 6px; }
.history-add { font-weight: 400; font-size: 14px; margin-left: 10px; }
.table.periods th, .table.periods td { white-space: normal; vertical-align: top; }
.table.periods th:last-child, .table.periods td:last-child { width: auto; }
.table.periods td:first-child { white-space: nowrap; }
.table.periods tr.current td:first-child { font-weight: 600; }
.table.periods tr.future td { color: var(--muted); }
/* Nature d'une modification par les RH (fiche) ou un admin (compte) : changement daté ou simple correction. */
.mode { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.mode legend { font-weight: 600; margin-bottom: 4px; padding: 0; }
.mode label.radio { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0; font-weight: 400; cursor: pointer; }
.mode input[type="radio"] { width: auto; margin: 5px 0 0; padding: 0; accent-color: var(--accent); flex-shrink: 0; }
.mode .field { max-width: 260px; margin: 10px 0 0; }
/* Départements : membres (liste avec « Retirer »), propositions d'après les fiches ; prise en charge d'une tâche. */
.members { list-style: none; margin: 0 0 12px; padding: 0; }
.members li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.proposals { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.proposals .btn { margin: 0; }
.teams { margin: 0; padding-left: 20px; }
.teams li { margin: 4px 0; }
.take { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.take .btn { margin: 0; }
/* Annuaire et organigramme : initiales, cartes reliées (supérieurs, personne au centre, équipe directe), arborescence. */
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--info-bg); color: var(--info-text); font-weight: 700; font-size: 15px; flex-shrink: 0; }
.org-card { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: inherit; min-width: 0; }
.org-card:hover, .org-card:focus-visible { border-color: var(--accent); }
.org-card-me { box-shadow: inset 4px 0 0 var(--accent); }
.org-card-text { display: flex; flex-direction: column; flex: 1; min-width: 0; font-size: 14px; line-height: 1.35; }
.org-card-text strong { font-size: 15px; }
.org-card-text span { overflow-wrap: anywhere; }
.org-count { margin-left: auto; padding: 1px 8px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
/* Chaîne des supérieurs, centrée au-dessus de la personne : un trait vertical relie chaque carte à la suivante. */
.org-chain { display: flex; flex-direction: column; align-items: center; max-width: 420px; margin: 0 auto; }
.org-chain > * { position: relative; width: 100%; margin-bottom: 24px; }
.org-chain > .org-top { width: auto; font-size: 14px; }
.org-chain > *::after { content: ""; position: absolute; left: 50%; bottom: -25px; height: 24px; border-left: 2px solid var(--border); }
.org-focus { position: relative; max-width: 560px; margin: 0 auto; border-color: var(--accent); }
.org-focus-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.org-focus-head h2 { margin: 0; }
.org-focus-head p { margin: 2px 0 0; color: var(--muted); }
.org-focus .avatar { width: 56px; height: 56px; font-size: 20px; }
.org-focus + .org-focus, .org-branch + .org-focus { margin-top: 36px; }
/* Équipe directe : cadre relié à la personne par un trait, cartes en grille. */
.org-branch { position: relative; margin: 24px 0 20px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; }
.org-focus + .org-branch:not(.org-peers)::before { content: ""; position: absolute; left: 50%; top: -25px; height: 24px; border-left: 2px solid var(--border); }
.org-branch h2 { margin: 0 0 12px; font-size: 15px; text-align: center; }
.org-alone, .org-peers { margin-top: 36px; }
.org-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
/* Arborescence : une ligne par personne, traits de rattachement à gauche ; « summary » garde sa flèche. */
.org-tree { list-style: none; margin: 0; padding-left: 26px; }
.org-tree-card > .org-tree { padding-left: 0; }
.org-tree li { position: relative; padding: 2px 0; }
.org-tree .org-tree li::before { content: ""; position: absolute; left: -16px; top: 0; bottom: 0; border-left: 1px solid var(--border); }
.org-tree .org-tree li::after { content: ""; position: absolute; left: -16px; top: 15px; width: 12px; border-top: 1px solid var(--border); }
.org-tree .org-tree li:last-child::before { bottom: auto; height: 15px; }
.org-tree summary { font-weight: 400; }
.org-tree summary a, .org-leaf a { font-weight: 600; }
.org-leaf { padding-left: 18px; }
.org-tree .org-count { margin-left: 6px; }
/* Champ à taper qui remplace une longue liste de personnes (static/autocomplete.js). */
.autocomplete { position: relative; }
.choose .autocomplete { flex: 1 1 260px; max-width: 460px; }
.choose .autocomplete input { width: 100%; max-width: none; }
.autocomplete-list { position: absolute; z-index: 20; left: 0; right: 0; margin: 2px 0 0; padding: 4px 0; list-style: none;
  max-height: 20em; overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.autocomplete-list li { padding: 6px 12px; cursor: pointer; }
.autocomplete-list li.active, .autocomplete-list li:hover { background: var(--info-bg); color: var(--info-text); }
.autocomplete-list li.autocomplete-more { cursor: default; color: var(--muted); font-size: 14px; }
.autocomplete-list li.autocomplete-more:hover { background: none; color: var(--muted); }
/* Événements de l'équipe (accueil, « Mon équipe ») : anniversaires, jubilés, entrées, sorties. */
.events-tile h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.events-tile h2 a { color: inherit; text-decoration: none; }
.events-tile h2 a:hover { color: var(--accent); }
.events-horizon { margin-left: auto; font-size: 13px; font-weight: 400; color: var(--muted); white-space: nowrap; }
/* Sur l'accueil, la tuile est en haut à droite, à côté de la salutation (dessous quand la place manque) ; la salutation
   garde sa hauteur habituelle (marge du titre reportée sur l'en-tête, pour que tuile et titre partent du même haut). */
.home-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 0 24px; margin-top: 21px; }
.home-head h1 { margin-top: 0; }
.home-head .events-tile { flex: 0 1 560px; }
.events-tile .events li { padding: 2px 0; border-bottom: 0; font-size: 14px; }
.events-tile .events-more { margin: 4px 0 0; font-size: 14px; }
.events { list-style: none; margin: 0; padding: 0; }
.events li { display: flex; gap: 10px; padding: 4px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.events li:last-child { border-bottom: 0; }
.event-date { flex: 0 0 auto; min-width: 6.2em; color: var(--muted); font-variant-numeric: tabular-nums; }
.event-jubile .event-date, .event-anniversaire .event-date { color: var(--ok-text); }
.event-sortie .event-date, .event-fin_contrat .event-date { color: var(--warn-text); }
/* Recrutement : comptes rendus d'entretien et cahier des charges des postes. */
.interview + .interview { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 4px; }
.interview h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 16px; }
.outcome-valide { background: var(--ok-bg); color: var(--ok-text); }
.outcome-reserve { background: var(--warn-bg); color: var(--warn-text); }
.outcome-non_retenu { background: var(--err-bg); color: var(--err-text); }
ul.spec { margin: 4px 0 12px; padding-left: 22px; }
ul.spec li { margin: 3px 0; }
/* Documents RH : statuts, panneau à côté de l'aperçu, contrôles, aperçu A4 (papier blanc dans les deux thèmes,
   mêmes proportions que le PDF), repères de données manquantes. */
.doc-brouillon, .sig-en_attente { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
.doc-en_attente { background: var(--warn-bg); color: var(--warn-text); }
.doc-signe { background: var(--info-bg); color: var(--info-text); }
.doc-finalise, .sig-signee { background: var(--ok-bg); color: var(--ok-text); }
.doc-annule, .sig-refusee { background: var(--err-bg); color: var(--err-text); }
.doc-layout { display: grid; grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); gap: 20px; align-items: start; }
.doc-side .card { margin-bottom: 16px; }
.doc-preview { min-width: 0; position: sticky; top: 12px; }
@media (max-width: 1100px) { .doc-layout { grid-template-columns: 1fr; } .doc-preview { position: static; } }
.problems { list-style: none; margin: 0 0 10px; padding: 0; }
.problem { padding: 8px 10px; border-radius: 6px; margin-bottom: 6px; font-size: 14px; }
.problem a { margin-left: 4px; }
.problem-erreur { background: var(--err-bg); color: var(--err-text); }
.problem-avertissement { background: var(--warn-bg); color: var(--warn-text); }
.problem-info { background: var(--info-bg); color: var(--info-text); }
.small { font-size: 13px; margin: -8px 0 12px; }
.actions-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 8px 0; }
.actions-row .btn { margin: 0; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.danger-zone { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--border); }
.facts h3 { font-size: 15px; margin: 14px 0 6px; }
.facts summary, .doc-side details > summary { font-size: 18px; }
.refuse-box { margin-top: 14px; }
.refuse-box summary { font-size: 15px; color: var(--accent); }
.signatures { list-style: none; margin: 0 0 10px; padding: 0; }
.signatures li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--border); }
.sign-box { border-color: var(--accent); }
.hash { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.logo-preview { max-width: 220px; max-height: 90px; background: #fff; padding: 6px; border: 1px solid var(--border); border-radius: 6px; }
.signature-preview { max-width: 100%; max-height: 120px; background: #fff; padding: 8px; border: 1px solid var(--border); border-radius: 6px; }
.a4 { position: relative; display: flex; flex-direction: column; width: 210mm; max-width: 100%; min-height: 297mm; margin: 0 auto; padding: 18mm 22mm 12mm;
  background: #fff; color: #1a1a1a; border: 1px solid #d5d9e0; box-shadow: 0 2px 12px rgba(0, 0, 0, .08); font: 11pt/1.55 Helvetica, Arial, sans-serif; overflow: hidden; }
.a4-draft::before { content: "PROJET"; position: absolute; top: 45%; left: 50%; transform: translate(-50%, -50%) rotate(-50deg); font: 700 110px Helvetica, Arial, sans-serif; color: rgba(0, 0, 0, .05); pointer-events: none; }
.a4-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 20mm; }
.a4-logo img { display: block; max-width: 55mm; max-height: 22mm; }
.a4-company { text-align: right; font-size: 9pt; line-height: 1.45; color: #464646; }
.a4-company strong { font-size: 11pt; color: #1a1a1a; }
.a4-title { margin: 0 0 10mm; text-align: center; font-size: 16pt; letter-spacing: .08em; color: #1a1a1a; }
.a4-body p { margin: 0 0 3.5mm; text-align: justify; }
.a4-place { margin: 6mm 0 8mm; }
.a4-signatures { display: grid; grid-template-columns: 1fr 1fr; gap: 6mm; font-size: 10pt; }
.a4-signature strong { font-size: 9.5pt; }
.a4-signature-image { height: 20mm; margin: 2mm 0; border-bottom: 1px dashed #bbb; display: flex; align-items: flex-end; }
.a4-signature-image img { max-height: 20mm; max-width: 52mm; }
.a4-muted { color: #464646; font-size: 9pt; }
.a4-small { color: #6e6e6e; font-size: 7.5pt; }
.a4-footer { margin-top: auto; padding-top: 4mm; border-top: 1px solid #c8c8c8; text-align: center; font-size: 7.5pt; color: #6e6e6e; }
.a4 mark.missing { background: #fde68a; color: #7a4b00; padding: 0 3px; border-radius: 3px; }
.a4 mark.pending { background: #e8effc; color: #1f4291; padding: 0 3px; border-radius: 3px; }
@media (max-width: 720px) { .a4 { min-height: 0; padding: 22px 18px 14px; font-size: 10pt; } .a4-header { margin-bottom: 28px; } .a4-signatures { grid-template-columns: 1fr; } }
.doc-side .link { text-align: left; }
/* Entretiens : statuts du circuit, frise du dossier, questionnaire, préparation commune (réponses côte à côte). */
.appraisal-brouillon, .appraisal-annule, .questionnaire-non_commence { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
.appraisal-attente_questionnaires, .appraisal-preparation, .appraisal-suspendu, .questionnaire-en_cours, .questionnaire-reouvert { background: var(--warn-bg); color: var(--warn-text); }
.appraisal-pret, .appraisal-realise, .appraisal-attente_cloture, .appraisal-reouvert { background: var(--info-bg); color: var(--info-text); }
.appraisal-cloture, .appraisal-archive, .questionnaire-soumis, .notification-envoyee { background: var(--ok-bg); color: var(--ok-text); }
.questionnaire-dispense { background: var(--bg); color: var(--muted); border: 1px dashed var(--border); }
.notification-echec { background: var(--err-bg); color: var(--err-text); }
.notification-a_envoyer, .notification-nouvelle_tentative { background: var(--warn-bg); color: var(--warn-text); }
.timeline { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 16px; padding: 0; counter-reset: step; }
.timeline li { counter-increment: step; font-size: 13px; padding: 4px 10px 4px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); background: var(--surface); }
.timeline li::before { content: counter(step) ". "; }
.timeline li.done { color: var(--ok-text); background: var(--ok-bg); border-color: transparent; }
.timeline li.current { color: var(--accent-text); background: var(--accent); border-color: var(--accent); font-weight: 600; }
.actions-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0; }
.actions-row .btn, .actions-row form { margin: 0; }
.subcard { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); }
.subcard h3 { margin: 0 0 6px; font-size: 16px; }
.small { font-size: 13px; }
input.short { width: auto; min-width: 140px; }
select.multi, select[multiple] { min-height: 130px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 16px; margin-bottom: 10px; } /* départements du lancement groupé */
.who-done { font-size: 13px; color: var(--muted); white-space: nowrap; }
.who-done.done { color: var(--ok-text); }
.notifications { list-style: none; margin: 0; padding: 0; }
.notifications li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.notifications li.unread a { font-weight: 600; }
/* Questionnaire : un thème par carte, choix sur une ligne (retour à la ligne sur mobile). */
fieldset.questions { min-width: 0; }
fieldset.questions > legend { font-size: 18px; font-weight: 600; padding: 0 6px; }
.question { padding: 10px 0; border-bottom: 1px solid var(--border); }
.question:last-child { border-bottom: 0; }
.question.has-error { border-left: 3px solid var(--danger); padding-left: 10px; }
.choices { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices legend { font-weight: 600; padding: 0; margin-bottom: 6px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.choice { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; cursor: pointer; }
.choice input[type="radio"], .choice input[type="checkbox"] { width: auto; margin: 0; accent-color: var(--accent); }
.field .choice { display: inline-flex; font-weight: 400; margin-bottom: 0; }
.autosave-status { margin-left: 8px; font-size: 14px; }
.answers-list dt { font-weight: 600; margin-top: 10px; }
.answers-list dd { margin: 2px 0 0; white-space: pre-line; }
/* Préparation commune : réponses du collaborateur et du manager côte à côte, une colonne sur mobile. */
.theme-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.theme-item h3 { font-size: 15px; margin: 0 0 8px; }
.answers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.answer { padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); min-width: 0; }
.answer-collaborateur { border-left: 4px solid var(--c2); }
.answer-manager { border-left: 4px solid var(--c3); }
.answer-who { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.answer-text { white-space: pre-line; overflow-wrap: anywhere; }
.criterion { margin-top: 10px; }
.criterion .form-grid { grid-template-columns: minmax(200px, 280px) 1fr; }
.synthesis { margin-top: 14px; }
@media (max-width: 600px) { .criterion .form-grid { grid-template-columns: 1fr; } }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.checks .check-mark { font-weight: 700; width: 1.2em; flex-shrink: 0; }
.checks li.ok .check-mark { color: var(--ok-text); }
.checks li.ko .check-mark { color: var(--danger); }
.checks li.empty .check-mark { color: var(--muted); }
.checks-title { font-size: 15px; margin: 18px 0 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Documents déposés : sous-titres de la section « Documents RH » de la fiche, formulaire de dépôt. */
.docs-subtitle { font-size: 15px; margin: 18px 0 8px; }
.deposit { max-width: 720px; }
.field-help { font-size: 14px; margin: -8px 0 14px; }
.table.docs-deposited th, .table.docs-deposited td { white-space: normal; vertical-align: top; }  /* titre et dépôt sur deux lignes plutôt que du défilement */
.table.docs-deposited td:first-child { white-space: nowrap; }
/* Variables de salaire : pastilles d'état d'une liste et d'un service, cartes du tableau de bord (bord vert / rouge / gris,
   texte explicite dans chaque carte, lisible sans couleur), formulaire d'ajout sur une ligne, bloc d'envoi. */
.status-variables-brouillon, .status-variables-sans-responsable { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
.status-variables-envoyee { background: var(--ok-bg); color: var(--ok-text); }
.status-variables-manquante, .status-variables-retard { background: var(--err-bg); color: var(--err-text); }
.service-count { font-size: 17px; margin: 0 0 4px; }
.service-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.service-card { border-left: 5px solid var(--border); }
.service-card.service-ok { border-left-color: var(--ok-text); }
.service-card.service-late { border-left-color: var(--err-text); }
.service-card.service-none { border-left-color: var(--muted); }
.service-card h2 { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.service-card h2 .status { font-weight: 400; }
.service-card p { color: var(--text); margin-bottom: 6px; }
.service-card p.muted { color: var(--muted); font-size: 14px; margin-bottom: 0; }
.variables-add { align-items: flex-end; }
.variables-add .field { margin-bottom: 0; }
.variables-add input.short { min-width: 150px; max-width: 170px; }
.variables-add .variables-help { flex-basis: 100%; margin: 0; font-size: 14px; }
.variables-send .column-choice { font-weight: 600; }
/* Dossiers : une tuile par sous-dossier en tête du dossier (dossiers/_sommaire.html) ; un sous-dossier vide n'est pas
   un lien. */
.dossier-folders { margin-top: 0; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }  /* 5 sur une rangée, 2 sur un téléphone */
.dossier-folders .tile h2 { font-size: 16px; }
.dossier-folders .tile-vide p { color: var(--muted); }
.dossier-folders .tile-vide:hover { border-color: var(--border); }
/* Droits par rôle (admin/droits.html) : un module par ligne, une case par rôle. */
.droits-avertissement { padding: 10px 14px; border-radius: 6px; background: var(--warn-bg); color: var(--warn-text); }
.table.droits th:last-child, .table.droits td:last-child { width: auto; }
.table.droits td:first-child { white-space: normal; min-width: 280px; max-width: 560px; }
.table.droits .droits-role, .table.droits .droits-case { text-align: center; width: 130px; }
.table.droits .droits-case input { width: 18px; height: 18px; margin: 0; cursor: pointer; }
.table.droits .droits-case input:disabled { cursor: not-allowed; }
.table.droits tr.droits-section th { background: var(--bg); color: var(--text); font-size: 14px; padding-top: 14px; }
.droits-detail { display: block; color: var(--muted); font-size: 13px; }
.droits-modifie { background: var(--info-bg); }
.droits-defaut { display: block; font-size: 12px; color: var(--info-text); white-space: nowrap; }
.table.droits .droits-case select { width: auto; min-width: 150px; margin: 0; }  /* Droits d'une personne : « Selon le rôle » en entier */
