/* Espace direction — même langage visuel que vetaveterinaire.com.
   Polices du site (Outfit pour les titres, Poppins pour le texte), hébergées dans /fonts:
   la CSP de la page interdit toute police distante.
   Valeurs relevées sur le site: texte #333, titres #131313, rouge VETA #d6101d, liens #cc3366,
   sections alternées #f8f9fa, filets #e0e0e0, boutons en pilule (50px), cartes de 8 à 9px de rayon. */
@font-face { font-family: "Outfit"; font-weight: 100 900; font-style: normal; font-display: swap; src: url("/fonts/outfit-latin-variable.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/poppins-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/poppins-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/poppins-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/poppins-latin-700.woff2") format("woff2"); }

:root {
  --encre: #131313;
  --texte: #333333;
  --encre-douce: #5d6670;
  --papier: #ffffff;
  --craie: #f8f9fa;
  --craie-forte: #eceef0;
  --filet: #e0e0e0;
  --filet-doux: #eeeeee;
  --rouge: #d6101d;
  --rouge-fonce: #a80d17;
  --rouge-pale: #fdecee;
  --lien: #d6101d;
  --sauge: #2b6a50;
  --sauge-pale: #e3f1ea;
  --ambre: #8a560a;
  --ambre-pale: #fbf0d9;
  --bleu: #1f4fd1;
  --titre: "Outfit", "Segoe UI", system-ui, sans-serif;
  --corps: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --rayon: 8px;
  --rayon-carte: 9px;
  --pilule: 50px;
  --ombre: 0 2px 4px rgba(0, 0, 0, 0.1);
  --ombre-douce: 0 0 15px rgba(0, 0, 0, 0.05);
  --rail: 16rem;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; background: var(--craie); color: var(--texte); font: 400 1rem/1.5 var(--corps); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--titre); color: var(--encre); font-weight: 600; line-height: 1.25; margin: 0; }
h1 { font-size: 2rem; font-weight: 700; line-height: 1.2; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 0.75rem; max-width: 68ch; }
a { color: var(--lien); text-underline-offset: 3px; }
a:hover { color: var(--rouge-fonce); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; border-radius: 3px; }
/* Le titre et le contenu reçoivent le focus à chaque changement de page pour les lecteurs d'écran: pas de cadre. */
[tabindex="-1"]:focus-visible { outline: none; }
.skip { position: absolute; left: -999px; top: 0; background: var(--encre); color: #fff; padding: 0.5rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
.skip:hover { color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.boot { padding: 4rem 1.5rem; color: var(--encre-douce); }
.muted { color: var(--encre-douce); }
.num { text-align: right; white-space: nowrap; }
.nowrap { white-space: nowrap; }

/* Coque: barre latérale blanche comme l'en-tête du site, contenu sur fond #f8f9fa */
.shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100vh; }
.rail { background: var(--papier); border-right: 1px solid var(--filet); padding: 1.25rem 0.75rem; position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 1.5rem; }
.brand { display: flex; flex-direction: column; gap: 0.35rem; padding: 0 0.5rem; }
.brand img { display: block; width: 7.5rem; height: auto; }
.brand span { color: var(--encre-douce); font-size: 0.8rem; font-weight: 500; }
.nav { display: flex; flex-direction: column; gap: 1.25rem; }
.mobile-nav { display: none; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-group h2 { font: 600 0.78rem/1.2 var(--corps); color: var(--encre-douce); padding: 0 0.625rem 0.35rem; }
.nav a { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.6rem 0.625rem; border-radius: var(--rayon); color: #1d1d1d; text-decoration: none; font-size: 0.88rem; font-weight: 600; line-height: 1.3; }
.nav a:hover { background: var(--craie); color: var(--rouge); }
.nav a[aria-current="page"] { background: var(--rouge-pale); color: var(--rouge); font-weight: 700; }
.badge { font-size: 0.72rem; min-width: 1.4rem; text-align: center; padding: 0.05rem 0.45rem; border-radius: var(--pilule); background: var(--rouge); color: #fff; font-weight: 600; text-transform: none; }
.rail-foot { margin-top: auto; font-size: 0.82rem; color: var(--encre-douce); padding: 0.75rem 0.5rem 0; border-top: 1px solid var(--filet-doux); overflow-wrap: anywhere; }
.rail-foot button { margin-top: 0.5rem; }
main { padding: 2rem clamp(1rem, 3vw, 2.5rem) 4rem; max-width: 1280px; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; padding-bottom: 1.1rem; border-bottom: 1px solid var(--filet); margin-bottom: 1.5rem; }
.page-head p { margin: 0.35rem 0 0; color: var(--encre-douce); }
.page-head .tools { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
/* Chaque bloc est une carte blanche, comme les cartes de services du site */
section.block { margin-bottom: 1.5rem; background: var(--papier); border: 1px solid var(--filet-doux); border-radius: var(--rayon-carte); box-shadow: var(--ombre-douce); padding: 1.25rem 1.5rem 1.5rem; }
section.block > header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.85rem; flex-wrap: wrap; }

/* Boutons: pilules, comme « Planifier un rendez-vous » */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 2.75rem; border: 1px solid var(--filet); background: var(--papier); padding: 0.55rem 1.4rem; border-radius: var(--pilule); cursor: pointer; text-decoration: none; color: #222; font-size: 0.875rem; font-weight: 500; line-height: 1.3; transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
.btn:hover:not(:disabled) { background: var(--craie); border-color: #c9c9c9; color: #222; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.primary { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--rouge-fonce); border-color: var(--rouge-fonce); color: #fff; }
.btn.quiet { border-color: transparent; background: transparent; }
.btn.quiet:hover:not(:disabled) { background: var(--craie-forte); border-color: transparent; }
.btn.small { min-height: 2.25rem; padding: 0.3rem 1rem; font-size: 0.78rem; }
.link-btn { all: unset; display: inline-flex; align-items: center; min-height: 1.5rem; cursor: pointer; font-weight: 500; font-size: 0.875rem; color: var(--rouge); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
.link-btn:hover { text-decoration-color: var(--rouge); }
.link-btn:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; }
.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field label { font-weight: 600; font-size: 0.875rem; color: var(--encre); }
input[type="text"], input[type="search"], input[type="email"], input[type="password"], input[type="date"], input[type="time"], input[type="number"], select, textarea { border: 1px solid #c5cbd3; background: #fff; border-radius: var(--rayon); padding: 0.5rem 0.75rem; min-height: 2.5rem; width: 100%; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
input::placeholder, textarea::placeholder { color: var(--encre-douce); opacity: 1; }
input:focus, select:focus, textarea:focus { border-color: var(--bleu); box-shadow: 0 0 0 3px rgba(31, 79, 209, 0.28); outline: none; }
::selection { background: var(--rouge-pale); color: var(--rouge-fonce); }
textarea { resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0.85rem 1rem; }
.checkbox { display: flex; gap: 0.5rem; align-items: center; }
.checkbox input { width: auto; min-height: 0; accent-color: var(--rouge); }

/* Tableaux */
.table-wrap { overflow-x: auto; border: 1px solid var(--filet); border-radius: var(--rayon); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.65rem 0.85rem; border-bottom: 1px solid var(--filet-doux); vertical-align: top; font-size: 0.9rem; }
tbody tr:last-child td { border-bottom: 0; }
thead th { font-weight: 600; font-size: 0.82rem; color: #494c4f; background: var(--craie); border-bottom: 1px solid var(--filet); position: sticky; top: 0; white-space: nowrap; }
thead th button { all: unset; cursor: pointer; display: inline-flex; gap: 0.25rem; align-items: center; min-height: 1.5rem; }
thead th button:focus-visible { outline: 3px solid var(--bleu); }
tbody tr:hover { background: var(--craie); }
tbody tr[data-open="true"] { background: var(--rouge-pale); }
td .sub { display: block; color: var(--encre-douce); font-size: 0.82rem; }
/* Les sous-lignes (écart au marché, nom de fichier) se replient : le tableau tient dans 1366 px sans colonne coupée. */
td.num .sub { white-space: normal; }
.table-wrap td .sub.file { overflow-wrap: anywhere; }
tfoot td { font-weight: 600; background: var(--craie); border-top: 1px solid var(--filet); border-bottom: 0; }
.table-wrap + p { margin-top: 0.6rem; }
.row-actions { display: flex; gap: 0.35rem; flex-wrap: wrap; }
td .btn.small { min-height: 2rem; padding: 0.2rem 0.8rem; }

/* Marché UniVet 2026: tranches à peu de répondants en gris, tableaux contenus dans leur cadre */
.univet-family { margin-top: 1.1rem; min-width: 0; }
.univet-family h3 { margin: 0 0 0.2rem; }
.univet-family p { margin: 0.2rem 0; }
.univet-reading { font-weight: 500; }
.univet-table th { white-space: normal; vertical-align: bottom; }
.univet-table th, .univet-table td { padding: 0.5rem 0.55rem; }
@media (max-width: 480px) { .univet-table th, .univet-table td { font-size: 0.78rem; padding: 0.45rem 0.25rem; } }
.univet-table tr.weak td { color: var(--encre-douce); background: var(--craie); }
.univet-table tr.weak td .sub { font-style: italic; }

/* Pastilles de statut */
.chip { display: inline-block; font-size: 0.76rem; font-weight: 500; padding: 0.1rem 0.65rem; border-radius: var(--pilule); border: 1px solid var(--filet); background: var(--papier); white-space: nowrap; }
.chip.ok { background: var(--sauge-pale); border-color: #b7d6c8; color: var(--sauge); }
.chip.warn { background: var(--ambre-pale); border-color: #e8cf9a; color: var(--ambre); }
.chip.bad { background: var(--rouge-pale); border-color: #f2b6ba; color: var(--rouge-fonce); }
.chip.info { background: #e8efff; border-color: #bccdf5; color: #1f43a3; }

/* États */
.state { padding: 1.5rem; border: 1px dashed #c9c9c9; border-radius: var(--rayon); color: var(--encre-douce); background: var(--craie); }
.state strong { display: block; color: var(--encre); margin-bottom: 0.25rem; font-family: var(--titre); font-size: 1.05rem; }
.state.error { border-style: solid; border-color: #f2b6ba; background: var(--rouge-pale); color: var(--rouge-fonce); }
.state .btn { margin-top: 0.75rem; }
.loading { padding: 1rem 0; color: var(--encre-douce); }
.loading::before { content: ""; display: inline-block; width: 0.8rem; height: 0.8rem; margin-right: 0.5rem; border: 2px solid var(--filet); border-top-color: var(--rouge); border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: -1px; }
@keyframes spin { to { transform: rotate(360deg); } }
.banner { padding: 0.85rem 1.1rem; border: 1px solid var(--ambre); border-radius: var(--rayon); background: var(--ambre-pale); margin-bottom: 1.25rem; max-width: 80ch; }
.banner.info { border-color: var(--bleu); background: #e8efff; }
.banner strong { display: block; font-family: var(--titre); }

/* Accueil */
.decide-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--filet-doux); }
.decide-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.75rem; padding: 0.85rem 0; border-bottom: 1px solid var(--filet-doux); align-items: center; }
.decide-list .what { font-weight: 600; color: var(--encre); }
/* Le point d'Iris : the priority shows on the left edge, so the list reads at a glance. */
.brief-list .brief-item { --tone: var(--filet); position: relative; padding-left: 1.2rem; }
.brief-list .brief-item::before { content: ''; position: absolute; left: 0.15rem; top: 0.55em; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--tone); }
.brief-list .brief-item.urgent { --tone: var(--rouge); }
.brief-list .brief-item.important { --tone: var(--ambre); }
.brief-list .brief-item.info { --tone: var(--filet); }
.brief-list .what .chip { vertical-align: 0.1em; }
.brief-list .row-actions { flex-wrap: wrap; justify-content: flex-end; }
.brief-section + .brief-section { margin-top: 1.5rem; }
.brief-section h3 { margin-bottom: 0.6rem; }
.brief-more { margin-top: 1rem; }
.brief-more summary, .iris-more-suggestions summary { cursor: pointer; padding: 0.65rem 0; font-weight: 500; }
.briefing-priorities + .muted { margin-top: 1rem; }
.brief-item .sub { font-size: 0.85rem; margin-top: 0.3rem; }
.followup-form { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; margin-top: 1rem; }
.followup-form .field { flex: 1 1 14rem; margin: 0; }
.followup-form .field:nth-child(2) { flex: 0 1 11rem; }
.status-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 0 2rem; }
.status-list .sub { display: block; font-size: 0.85rem; }
.status-list li { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--filet-doux); }
.status-list li > .chip { flex: none; } /* la pastille garde sa hauteur quand le texte d'aide est long */
.kpi-head { margin: 0.9rem 0 0.4rem; font-size: 0.95rem; color: var(--encre-douce); font-weight: 600; }
.kpi-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0.75rem 2rem; margin: 0; }
.kpi-list div { border-top: 1px solid var(--filet); padding-top: 0.5rem; }
.kpi-list dt { color: var(--encre-douce); font-size: 0.85rem; }
.kpi-list dd { margin: 0; font-family: var(--titre); font-weight: 600; font-size: 1.7rem; color: var(--encre); }

/* Iris */
.iris-page { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto auto; height: calc(100vh - 11rem); height: calc(100dvh - 11rem); min-height: 28rem; }
.thread { overflow-y: auto; padding: 0.25rem 0.25rem 1rem; display: flex; flex-direction: column; gap: 1.25rem; }
.msg { max-width: 74ch; }
.msg.user { align-self: flex-end; background: var(--papier); border: 1px solid var(--filet); padding: 0.65rem 1rem; border-radius: var(--rayon-carte); box-shadow: var(--ombre); }
.msg.iris .who { font-family: var(--titre); font-weight: 600; color: var(--rouge); margin-bottom: 0.2rem; }
.msg .body > :last-child { margin-bottom: 0; }
.msg .body ul, .msg .body ol { padding-left: 1.25rem; margin: 0 0 0.75rem; }
.msg .body table { font-size: 0.9rem; margin-bottom: 0.75rem; border: 1px solid var(--filet); }
.msg .body code { background: var(--craie-forte); padding: 0 0.3rem; border-radius: 3px; }
.suggestions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.iris-more-suggestions { margin-top: 1rem; }
.iris-more-suggestions .suggestions { margin-bottom: 1rem; }
.iris-more-suggestions .suggestions > strong { flex-basis: 100%; }
.iris-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; padding-bottom: 0.6rem; }
.iris-tab { display: inline-flex; align-items: stretch; border: 1px solid var(--filet); border-radius: var(--pilule); background: var(--papier); max-width: 100%; }
.iris-tab.active { border-color: var(--rouge); background: var(--rouge-pale); }
.iris-tab button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0.25rem 0.7rem; min-height: 2rem; }
.iris-tab-main { max-width: 15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: var(--pilule) 0 0 var(--pilule); }
.iris-tab-close { padding: 0.25rem 0.6rem; color: var(--encre-douce); border-radius: 0 var(--pilule) var(--pilule) 0; }
.iris-tab-close:hover { color: var(--rouge-fonce); }
.iris-tab-busy { display: inline-block; width: 0.7rem; height: 0.7rem; margin-right: 0.4rem; border: 2px solid var(--filet); border-top-color: var(--rouge); border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: -1px; }
.iris-tab-new { color: var(--rouge); font-weight: 700; }
.iris-stage { display: grid; min-height: 0; }
.iris-stage > .thread { min-height: 0; }
.iris-stage > .thread[hidden], .composer [hidden] { display: none; }
.composer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem; border-top: 1px solid var(--filet); padding-top: 0.85rem; align-items: end; }
.composer textarea { min-height: 3rem; max-height: 9rem; }

/* Carte d'action à confirmer */
.slip { border: 1px solid var(--rouge); background: #fffafa; border-radius: var(--rayon-carte); padding: 1rem 1.15rem; max-width: 62ch; box-shadow: var(--ombre); }
.slip header { display: flex; justify-content: space-between; gap: 0.75rem; align-items: baseline; margin-bottom: 0.4rem; }
.slip header strong { font-family: var(--titre); font-size: 1.1rem; color: var(--encre); }
.slip .summary { margin: 0 0 0.6rem; font-size: 1rem; }
.slip ul.warnings { margin: 0 0 0.6rem; padding: 0.5rem 0.75rem 0.5rem 1.7rem; background: var(--ambre-pale); border-radius: var(--rayon); font-size: 0.9rem; }
.slip details.params { margin: 0 0 0.6rem; font-size: 0.85rem; color: var(--encre-douce); }
.slip details.params summary { cursor: pointer; }
.slip details.params pre { margin: 0.4rem 0 0; padding: 0.6rem; background: var(--craie); border-radius: var(--rayon); overflow-x: auto; white-space: pre-wrap; word-break: break-word; }
.slip footer { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.slip footer .muted { font-size: 0.85rem; margin-left: auto; }
.slip[data-status="completed"] { border-left-color: var(--sauge); }
.slip[data-status="failed"] { border-left-color: var(--rouge-fonce); background: var(--rouge-pale); }
.slip[data-status="cancelled"], .slip[data-status="expired"] { border-left-color: var(--filet); color: var(--encre-douce); }
.slip .outcome { font-weight: 600; margin: 0.25rem 0 0; }

/* Dialogues */
dialog { border: 0; border-radius: var(--rayon-carte); padding: 1.5rem; width: min(46rem, calc(100vw - 2rem)); max-height: calc(100vh - 3rem); background: var(--papier); color: var(--texte); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25); }
dialog::backdrop { background: rgba(19, 19, 19, 0.55); }
dialog > header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
dialog .actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1.25rem; flex-wrap: wrap; }
.reader { max-height: 55vh; overflow: auto; white-space: pre-wrap; font: 400 0.88rem/1.65 var(--corps); background: var(--craie); border: 1px solid var(--filet); border-radius: var(--rayon); padding: 1rem; }
.reader mark { background: #ffe58f; }

/* Échelles */
.scale-table td, .scale-table th { padding: 0.45rem 0.7rem; }
.scale-table .step, .scale-table thead th:not(:first-child):not(.num) { padding-inline: 0.4rem; }
.scale-table .step { font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.scale-table thead th { white-space: normal; vertical-align: bottom; }
.scale-table thead th.num { white-space: nowrap; }
@media (min-width: 900px) { .scale-table th[scope="row"] { white-space: nowrap; } }
/* Les trois échelons d'un niveau tiennent sur une ligne dès que la page est assez large pour le tableau entier. */
@media (min-width: 1340px) { .scale-table .step { white-space: nowrap; } }
.legend { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: 0.85rem; color: var(--encre-douce); margin: 1.75rem 0 0; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 0.3rem; background: var(--rouge); }
.legend i.assumed { background: var(--ambre); }
.legend i.outside { background: var(--encre); }
.legend i.median { border-radius: 0; transform: rotate(45deg) scale(0.85); background: var(--papier); border: 2px solid var(--encre); }

/* Avantages offerts: barres horizontales */
.bars { list-style: none; margin: 0 0 0.75rem; padding: 0; display: grid; gap: 0.5rem; }
.bars li { display: grid; grid-template-columns: minmax(10rem, 17rem) minmax(0, 1fr) 4.5rem; gap: 0.75rem; align-items: center; }
.bar { display: block; height: 0.8rem; border-radius: var(--pilule); background: var(--craie-forte); overflow: hidden; }
.bar i { display: block; height: 100%; width: calc(var(--pct) * 1%); background: var(--rouge); border-radius: var(--pilule); }

/* Rémunération: tiroir de détail */
.totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.75rem 2rem; margin-bottom: 1.25rem; }
.totals div { border-top: 1px solid var(--filet); padding-top: 0.5rem; }
.totals dt { color: var(--encre-douce); font-size: 0.85rem; }
.totals dd { margin: 0; font-family: var(--titre); font-weight: 600; font-size: 1.55rem; color: var(--encre); font-variant-numeric: tabular-nums; }
.toolbar { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: end; margin-bottom: 0.85rem; }
.toolbar .field { min-width: 11rem; }
/* Au téléphone, recherche et filtres prennent toute la largeur (cible au pouce, texte lisible). */
@media (max-width: 600px) { .toolbar .field { flex: 1 1 100%; min-width: 0; } .toolbar .field input, .toolbar .field select { width: 100%; } }
.detail { background: var(--craie); border: 1px solid var(--filet); border-radius: var(--rayon); padding: 1rem 1.25rem; margin: 0.5rem 0 1rem; }
.detail dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.5rem 1.5rem; margin: 0 0 0.75rem; }
.detail dt { color: var(--encre-douce); font-size: 0.85rem; }
.detail dd { margin: 0; }
.detail ul { margin: 0.25rem 0 0.75rem; padding-left: 1.2rem; }

/* Fiche de rémunération globale (mise en page de la conférence, couleurs de VETA) */
.fiche { display: grid; gap: 1rem; }
.fiche-head { background: var(--rouge); color: #fff; border-radius: var(--rayon-carte); padding: 1rem 1.25rem; }
.fiche-head h3 { color: #fff; font-size: 1.35rem; }
.fiche-head p { margin: 0.25rem 0 0; color: #fff; opacity: 0.92; }
.fiche-section { border: 1px solid var(--filet); border-radius: var(--rayon-carte); padding: 0.85rem 1.1rem 1rem; }
.fiche-section h4 { margin: 0 0 0.5rem; font: 600 1.05rem/1.3 var(--titre); color: var(--encre); }
.fiche-table { width: 100%; border-collapse: collapse; }
.fiche-table td { padding: 0.5rem 0.4rem; border-bottom: 1px solid var(--filet-doux); vertical-align: top; }
.fiche-table tr:last-child td { border-bottom: 0; }
.fiche-table .sub { display: block; font-size: 0.8rem; color: var(--encre-douce); }
.fiche-total-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0.4rem; border-top: 1px solid var(--filet); }
.fiche-total-row.strong { font-weight: 700; font-family: var(--titre); font-size: 1.15rem; background: var(--rouge-pale); border-radius: var(--rayon); border-top: 0; margin-top: 0.4rem; padding: 0.6rem 0.7rem; }
.fiche-summary { background: var(--craie); }
.fiche-foot { font-size: 0.8rem; margin: 0; }

/* Jours d'horaire */
.day { margin-bottom: 1.25rem; }
.day h3 { padding: 0.4rem 0; border-bottom: 1px solid var(--filet); display: flex; justify-content: space-between; margin-bottom: 0.5rem; }

.toasts { position: fixed; right: 1rem; bottom: 1rem; display: flex; flex-direction: column; gap: 0.5rem; z-index: 60; max-width: min(26rem, calc(100vw - 2rem)); }
.toast { --tone: var(--sauge); display: flex; align-items: center; gap: 0.65rem; background: #000; color: #fff; padding: 0.8rem 1.1rem; border-radius: var(--rayon); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); }
.toast::before { content: ''; flex: none; width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--tone); }
.toast.bad { --tone: var(--rouge); }
.toast .link-btn { color: inherit; text-decoration: underline; display: inline-flex; align-items: center; min-height: 2.75rem; }
.toast .link-btn:hover { text-decoration-color: currentColor; }
/* Page d'Iris : le champ de saisie occupe le bas de l'écran; les messages passent en haut pour ne jamais couvrir « Envoyer ». */
body:has(.composer) .toasts { top: calc(1rem + env(safe-area-inset-top, 0px)); bottom: auto; }

/* Connexion: carte blanche sur fond #f8f9fa, logo du site */
.signin { max-width: 34rem; margin: 10vh auto; padding: 2.25rem 2rem 2rem; background: var(--papier); border: 1px solid var(--filet-doux); border-radius: var(--rayon-carte); box-shadow: var(--ombre-douce); }
.signin img { display: block; width: 9rem; height: auto; margin-bottom: 1.5rem; }
.signin h1 { margin-bottom: 0.75rem; }
.signin .state { margin: 0 0 1rem; }
.signin-form { display: grid; gap: 1rem; margin: 1.25rem 0 0; }
.signin-actions { display: grid; gap: 0.75rem; justify-items: start; }
.signin-actions .btn { width: 100%; }
.signin-or { margin: 1rem 0; text-align: center; }
.signin > .btn { width: 100%; }
.signin-note { margin: 1.25rem 0 0; font-size: 0.85rem; }

@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 0.75rem; border-right: 0; border-bottom: 1px solid var(--filet); gap: 0.5rem 1rem; }
  .brand { order: 1; flex-direction: row; align-items: center; gap: 0.75rem; }
  .brand img { width: 5.5rem; }
  .mobile-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); flex: 1 1 100%; order: 3; gap: 0.25rem; }
  .mobile-nav a, .sections-toggle { display: flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0.5rem 0.25rem; border: 1px solid transparent; border-radius: var(--rayon); background: var(--papier); color: var(--texte); font-size: 0.82rem; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; min-width: 0; overflow: hidden; }
  .sections-toggle { border-color: var(--filet); }
  .mobile-nav a:hover, .sections-toggle:hover { background: var(--craie); color: var(--rouge-fonce); }
  .mobile-nav a[aria-current="page"], .sections-toggle[aria-expanded="true"] { background: var(--rouge-pale); color: var(--rouge-fonce); }
  .nav { display: none; flex: 1 1 100%; order: 4; border-top: 1px solid var(--filet); padding-top: 1rem; }
  .nav[data-expanded="true"] { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.25rem; }
  .nav a { min-height: 2.75rem; border-left-width: 1px; padding: 0.6rem 0.7rem; font-size: 0.85rem; }
  .rail-foot { order: 2; margin: 0 0 0 auto; display: flex; align-items: center; gap: 0.75rem; padding: 0; border-top: 0; }
  .rail-foot > div { display: none; }
  .rail-foot button { margin: 0; }
  .nav-group h2 { font-size: 0.85rem; }
  section.block { padding: 1rem; }
  h1 { font-size: 1.65rem; }
  .signin { margin: 4vh 1rem; width: auto; padding: 1.75rem 1.25rem 1.5rem; }
  .dotplot > li { grid-template-columns: 1fr; gap: 0.25rem; }
  .bars li { grid-template-columns: 1fr 4.5rem; }
  .bars .bar-label { grid-column: 1 / -1; }
  .iris-page { height: calc(100vh - 15rem); height: calc(100dvh - 15rem); }
}
@media (max-width: 600px) {
  .decide-list li { grid-template-columns: 1fr; gap: 0.5rem; }
  .page-head .tools .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media print {
  body { background: #fff; } .rail, .toasts, .page-head .tools { display: none !important; } .shell { display: block; } section.block { box-shadow: none; }
  body:has(dialog[open] .fiche) .shell { display: none; }
  dialog[open] { position: static; inset: auto; display: block; width: auto; height: auto; max-height: none; margin: 0; box-shadow: none; padding: 0; overflow: visible; }
  .fiche-section, .fiche-table tr { break-inside: avoid; }
  dialog[open]::backdrop { display: none; }
  dialog[open] > header, dialog[open] .actions { display: none !important; }
  .fiche-head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Agendrix: explorateur de toute l'API ------------------------------------ */
.explorer { display: grid; grid-template-columns: minmax(15rem, 22rem) minmax(0, 1fr); gap: 1rem; align-items: start; }
.explorer-list { max-height: 72vh; overflow: auto; border: 1px solid var(--filet); border-radius: var(--rayon); background: #fff; }
.explorer-list h2 { margin: 0; font-family: var(--corps); font-weight: 600; padding: 0.5rem 0.75rem; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; background: #f8f9fa; position: sticky; top: 0; }
.explorer-list button { display: flex; gap: 0.5rem; align-items: baseline; width: 100%; text-align: left; padding: 0.45rem 0.75rem; border: 0; border-top: 1px solid var(--filet); background: none; font: inherit; cursor: pointer; }
.explorer-list button:hover, .explorer-list button[aria-current="true"] { background: #fdf0f1; }
.explorer-list .verb { flex: none; min-width: 2.6rem; font-size: 0.7rem; font-weight: 600; color: #5b6770; }
.explorer-pane { min-width: 0; }
.explorer-pane pre { max-height: 22rem; overflow: auto; padding: 0.75rem; border: 1px solid var(--filet); border-radius: var(--rayon); background: #f8f9fa; font-size: 0.8rem; white-space: pre-wrap; word-break: break-word; }
.explorer-pane textarea { width: 100%; min-height: 7rem; font-family: ui-monospace, Menlo, monospace; font-size: 0.85rem; }
.explorer-pane .actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0.75rem 0; }
@media (max-width: 860px) { .explorer { grid-template-columns: 1fr; } .explorer-list { max-height: 40vh; } }
/* Un peu d'air sous les filtres, avant la liste. */
.explorer-filters { display: grid; gap: 0.6rem; margin-bottom: 1rem; }
@media (max-width: 900px) {
  /* La liste défile dans son cadre : un fondu au bas dit qu'elle continue, et la marge laisse la dernière opération entière. */
  .explorer-list { padding-bottom: 1.25rem; -webkit-mask-image: linear-gradient(#000 calc(100% - 2rem), transparent); mask-image: linear-gradient(#000 calc(100% - 2rem), transparent); }
}
.scope-panel { margin: 0 0 1rem; padding: 0.6rem 0.9rem; border: 1px solid var(--filet); border-radius: var(--rayon); background: #fff; }
.scope-panel summary { cursor: pointer; font-weight: 600; }
.scope-panel[open] summary { margin-bottom: 0.6rem; }
.iris-access { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin: 0 0 0.9rem; font-size: 0.85rem; }
.suggestions strong { display: block; width: 100%; margin: 0.6rem 0 0.2rem; }

/* Tableau de bord ------------------------------------------------------------ */
.scorecard-owner { display: block; font-size: 0.78rem; font-weight: 600; color: var(--encre); margin-top: 0.12rem; }
.scorecard-mandate { display: block; font-size: 0.74rem; color: var(--encre-douce); margin-top: 0.08rem; }
.plan-week + .plan-week { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--filet); }
.plan-week h3 { font-size: 1.02rem; }
.plan-week ul.plain { list-style: none; margin: 0; padding: 0; }
.plan-week ul.plain li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.75rem; }
.plan-week ul.plain li + li { margin-top: 0.6rem; }
.plan-week ul.plain li > span { flex: 1 1 12rem; }
.plan-week ul.plain li > .btn { flex: none; }
.plan-week table { min-width: 44rem; }
.plan-days th[scope="row"] { text-align: left; font-weight: 600; white-space: nowrap; }
.plan-days td .chip { font-size: 0.7rem; padding: 0 0.5rem; vertical-align: 0.05em; }
.plan-days td .btn.small { margin-left: 0.15rem; }
.plan-gap.over { color: var(--rouge-fonce); font-weight: 600; }
.plan-gap.under { color: var(--sauge); }
.plan-detail td { background: var(--craie); }
.plan-ways > * + * { margin-top: 0.15rem; }
.plan-detail ul.plain { margin-top: 0.5rem; }
.plan-forecast-lines { grid-column: 1 / -1; margin: 0; padding-left: 1.1rem; }
@media (max-width: 40rem) { .plan-forecast-lines { font-size: 0.85rem; } }
.plan-budget { margin: 0.4rem 0; font-size: 1.02rem; }
.plan-confirm { grid-column: 1 / -1; margin: 0; padding: 0.5rem 0.7rem; border-radius: var(--rayon); background: var(--ambre-pale); border: 1px solid #e8cf9a; color: var(--ambre); font-weight: 600; }
.plan-confirm:empty { display: none; }
/* Téléphone : chaque jour devient un bloc empilé (jour, revenu prévu, budget, masse salariale, écart, bouton) sans défilement horizontal. */
@media (max-width: 40rem) {
  .plan-week .table-wrap { overflow: visible; border: 0; }
  .plan-week table.plan-days { min-width: 0; display: block; }
  .plan-days thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .plan-days tbody, .plan-days tr, .plan-days th[scope="row"], .plan-days td { display: block; }
  .plan-days tbody tr { border: 1px solid var(--filet); border-radius: var(--rayon); padding: 0.55rem 0.8rem; margin-top: 0.6rem; background: var(--craie); }
  .plan-days tbody tr.plan-detail { margin-top: -0.3rem; border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; background: var(--craie); }
  .plan-days th[scope="row"] { white-space: normal; padding: 0 0 0.3rem; font-size: 1rem; }
  .plan-days td, .plan-days td.num { text-align: left; white-space: normal; padding: 0.2rem 0; border: 0; }
  .plan-days td[data-label] { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.15rem 0.75rem; }
  .plan-days td[data-label]::before { content: attr(data-label); color: var(--encre-douce); font-weight: 500; flex: 1 1 11rem; }
  .plan-days td[data-label] > * { text-align: right; }
  .plan-days td .btn.small { margin: 0.2rem 0 0; min-height: 2.5rem; }
  .plan-days td.plan-detail-cell, .plan-detail td { padding: 0.4rem 0; }
  .plan-detail ul.plain li > span { flex-basis: 100%; }
}
.form-error { grid-column: 1 / -1; margin: 0; color: var(--rouge-fonce); font-weight: 600; }
.form-error:empty { display: none; }
input[aria-invalid="true"] { border-color: var(--rouge); }
.score-summary p { margin: 0.35rem 0; }
.score-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 0.9rem; margin-top: 0.9rem; }
.score-grid + p { margin-top: 0.9rem; }
.score-card { display: flex; flex-direction: column; gap: 0.4rem; padding: 0.9rem 1rem 1rem; border: 1px solid var(--filet); border-radius: var(--rayon-carte); background: var(--papier); }
.score-card.ok { border-color: var(--sauge); }
.score-card.near { border-left-color: var(--ambre); }
.score-card.off { border-left-color: var(--rouge); }
.score-card h3 { font-size: 0.98rem; line-height: 1.3; }
.score-card p { margin: 0; }
.score-value { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.score-value strong { font-family: var(--titre); font-size: 1.8rem; line-height: 1.1; color: var(--encre); }
.score-target { display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; font-size: 0.88rem; }
/* Les cinq blocs d'une carte (en-tête, valeur, cible, comparaison, tendance) tombent sur les mêmes lignes d'une carte à l'autre. */
@supports (grid-template-rows: subgrid) {
  .score-card.metric { display: grid; grid-row: span 5; grid-template-rows: subgrid; }
}
.score-compare { font-size: 0.82rem; }
.score-trend { display: flex; align-items: flex-end; gap: 0.6rem; margin-top: auto; padding-top: 0.5rem; font-size: 0.78rem; }
.trend { display: inline-flex; align-items: flex-end; gap: 3px; height: 2.2rem; }
.trend .bar { display: block; width: 10px; height: var(--h, 2px); min-height: 2px; background: #6f7b87; border-radius: 1px; }
.trend .bar.weak { background: #8a94a0; }
.trend .bar.empty { height: 2px; background: var(--filet); opacity: 1; }
.trend .bar.ref { background: var(--encre); opacity: 1; }
.scorecard-months th:first-child, .scorecard-months td:first-child { position: sticky; left: 0; min-width: 9.5rem; background: var(--papier); }
.scorecard-months thead th:first-child { background: var(--craie); }

/* Évaluations 2026 ----------------------------------------------------------- */
.banner .eval-effective { display: block; margin-top: 0.35rem; }
.banner strong.inline { display: inline; font-family: var(--corps); }
.eval-subhead { font-size: 1rem; margin: 0.25rem 0 0.5rem; }
.eval-cotes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.4rem 1.5rem; }
.eval-cotes li { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.45rem 0; border-bottom: 1px solid var(--filet-doux); }
.eval-count { margin: 0 0 0.75rem; font-size: 0.88rem; }
.eval-meta { margin: 0.15rem 0 0; font-size: 0.85rem; }
.eval-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; justify-content: flex-end; }
.eval-chips .chip, .eval-flags .chip { white-space: normal; }
.eval-errors { margin: 0; padding: 0.5rem 0.75rem 0.5rem 1.7rem; background: var(--rouge-pale); color: var(--rouge-fonce); border-radius: var(--rayon); font-size: 0.88rem; }
.eval-pay { background: var(--craie); border: 1px solid var(--filet-doux); border-radius: var(--rayon); padding: 0.75rem 0.9rem; }
.eval-pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 0.5rem 1.25rem; margin: 0 0 0.5rem; }
.eval-pay-grid dt { color: var(--encre-douce); font-size: 0.8rem; }
.eval-pay-grid dd { margin: 0; font-weight: 600; color: var(--encre); }
.eval-pay-grid .sub { display: block; font-weight: 400; color: var(--encre-douce); font-size: 0.8rem; }
.eval-flags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 0.5rem; }
.eval-switch { min-height: 2.75rem; font-weight: 600; color: var(--encre); cursor: pointer; }
.eval-switch input { width: 1.15rem; height: 1.15rem; }
.eval-hint { font-size: 0.82rem; margin: 0.3rem 0 0; }
.eval-note { margin: 0.5rem 0 0; font-size: 0.88rem; padding-left: 0.6rem; border-left: 3px solid var(--ambre); }
.eval-calendar { margin: 0.8rem 0 0; font-size: 0.92rem; }
.eval-calendar summary { font-weight: 600; cursor: pointer; }
.eval-calendar ol { margin: 0.4rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.3rem; }
.eval-help { margin: 0.15rem 0 0.35rem; font-size: 0.86rem; color: var(--encre-douce); }
.eval-guide { list-style: none; margin: 0 0 0.5rem; padding: 0; display: grid; gap: 0.2rem; font-size: 0.84rem; }
.eval-guide .works strong { color: #1d6b45; }
.eval-guide .not-yet strong { color: var(--rouge-fonce); }
.eval-example { display: grid; gap: 0.2rem; margin-top: 0.45rem; font-size: 0.84rem; color: var(--encre-douce); }
.eval-example input { width: 100%; min-height: 44px; }
.eval-verso { display: grid; gap: 0.6rem; margin-top: 1rem; }
.eval-verso textarea { width: 100%; }
.eval-verso input.eval-self-total { width: 8rem; max-width: 100%; }
.eval-objective { margin: 0.35rem 0 0; font-size: 0.9rem; }
.eval-form { display: grid; gap: 1rem; border-top: 1px solid var(--filet); padding-top: 1rem; }
.eval-date-block { display: grid; gap: 0.3rem; }
.eval-date-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.5rem 0.75rem; }
.eval-date-row .field { max-width: 16rem; }
.eval-today { min-height: 2.75rem; }
.eval-reminder { margin: 0; padding: 0.6rem 0.85rem; background: var(--ambre-pale); border-radius: var(--rayon); font-size: 0.9rem; }
.eval-part { display: grid; gap: 0.75rem; }
.eval-part-total { font-family: var(--corps); font-size: 0.9rem; color: var(--encre-douce); }
.eval-criterion { border: 0; margin: 0; padding: 0; min-width: 0; }
.eval-criterion legend { padding: 0; margin-bottom: 0.4rem; font-weight: 600; color: var(--encre); font-size: 0.95rem; }
.eval-code { display: inline-block; min-width: 2.1rem; font-size: 0.78rem; font-weight: 700; color: var(--encre-douce); }
.eval-live-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); gap: 0.35rem 1rem; margin: 0; }
.eval-live-grid dt { color: var(--encre-douce); font-size: 0.78rem; }
.eval-live-grid dd { margin: 0; font-family: var(--titre); font-weight: 600; font-size: 1.1rem; color: var(--encre); }
.eval-live-grid .cote dd { color: var(--rouge-fonce); }
.eval-live-grid .cote.pending dd { color: var(--encre-douce); font-family: var(--corps); font-size: 0.9rem; font-weight: 500; }
.eval-switch-note { font-weight: 400; font-size: 0.85rem; }
.eval-live-grid .missed dd { color: var(--ambre); }
.eval-live .eval-hint { margin-top: 0.35rem; }
.eval-form-errors:empty { display: none; }
.eval-form-errors ul { margin: 0.25rem 0 0; padding-left: 1.2rem; }
/* « Non observé » : une absence d'observation, pas une note (pointillé, jamais la couleur d'une note). */
/* État d'enregistrement de la fiche : confirmé par le serveur, en attente, ou à régler. */
.eval-save-status { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0.35rem 0 0; min-height: 1.4rem; font-size: 0.86rem; color: var(--encre-douce); }
.eval-save-status:empty { display: none; }
/* « Pourquoi cette hausse » : la règle appliquée, étape par étape. */
.eval-why { margin-top: 0.5rem; border-top: 1px solid var(--filet); padding-top: 0.35rem; }
.eval-why summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 600; color: var(--encre); }
.eval-why summary:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; }
.eval-why ol { display: grid; gap: 0.3rem; margin: 0.15rem 0 0.35rem; padding-left: 1.3rem; font-size: 0.9rem; color: var(--encre); }
.eval-save-status.ok { color: var(--sauge); }
.eval-save-status.warn { color: var(--ambre); }
.eval-save-status.bad { color: var(--rouge-fonce); font-weight: 600; }
/* Saisie restaurée et conflit : la saisie reste affichée, la version enregistrée vient à côté. */
.eval-hint[hidden] { display: none; }
.eval-fields { display: grid; gap: 1rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.eval-restored { margin: 0 0 0.9rem; }
.eval-conflict { margin: 0 0 0.9rem; padding: 0.85rem 1.1rem; border: 1px solid var(--rouge-fonce); border-radius: var(--rayon); background: var(--papier); max-width: 80ch; }
.eval-conflict ul { margin: 0.3rem 0; padding-left: 1.3rem; font-size: 0.9rem; }
.eval-conflict .row-actions { margin-top: 0.6rem; }
.eval-theirs { margin: 0.2rem 0 0; padding: 0.5rem 0.7rem; border-left: 3px solid var(--filet); white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .eval-chips { justify-content: flex-start; }
  .eval-pay-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eval-live-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .eval-live-grid > div { grid-column: span 2; }
  .eval-live-grid > .cote, .eval-live-grid > .mins { grid-column: span 3; }
  .eval-date-row .field { max-width: none; flex: 1 1 10rem; }
}

/* Revue de l'ensemble du 4 nov. 2026 : sur grand écran, la page se centre à droite de la barre (avant : collée à
   gauche avec une bande vide à droite); au téléphone, le logo et « Se déconnecter » tiennent sur une ligne. */
main { margin-inline: auto; }
@media (max-width: 480px) { .brand span { display: none; } }
/* Téléphone : la rangée de la barre ne s'étire plus pour remplir l'écran (53 px de vide au-dessus d'une page courte). */
@media (max-width: 860px) { .shell { align-content: start; } }
/* Le courriel du compte tient sur une ligne (avant : coupé au milieu, « …veterinaire.co / m »); il reste lisible en entier au survol. */
.rail-foot .rail-account { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }

/* Page Appels : sources du téléphone à l'analyse, toujours visibles en tête. */
.call-sources { margin: 0 0 1.25rem; }
.call-sources h2 { font-size: 1rem; margin: 0 0 0.5rem; }
/* Même mise en page pour les trois sources : nom, texte d'aide, puis pastille dessous. À côté de la pastille, le nom et l'aide se coupaient sur deux lignes dans la tuile la plus étroite. */
.call-sources .status-list li { flex-direction: column; align-items: flex-start; gap: 0.35rem; }

/* Fournisseurs : fiches lisibles d'un coup d'œil; appel et courriel au pouce (44 px). */
.totals dd .sub { display: block; margin-top: 0.15rem; font-family: var(--corps); font-size: 0.82rem; font-weight: 400; color: var(--encre-douce); }
/* Fournisseurs : gestion opérationnelle hiérarchique (catégories, sous-catégories, fiche dépliable, CSV) ---- */
.sup-export-btn { display: inline-flex; align-items: center; gap: 0.38rem; }
.sup-ico { flex: none; vertical-align: middle; }
.sup-kpi-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.65rem; margin: 0.85rem 0; }
.sup-kpi-tile { all: unset; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-start; gap: 0.18rem; padding: 0.75rem 0.9rem; background: var(--papier); border: 1px solid var(--filet); border-radius: var(--rayon); cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease; }
.sup-kpi-tile:hover { border-color: var(--encre-douce); background: #fcfaf7; }
.sup-kpi-tile:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; }
.sup-kpi-tile.active { border-color: var(--rouge); background: var(--rouge-pale); }
.sup-kpi-label { font-size: 0.74rem; font-weight: 600; line-height: 1.25; min-height: 2.5em; text-transform: uppercase; letter-spacing: 0.03em; color: var(--encre-douce); }
.sup-kpi-tile.active .sup-kpi-label { color: var(--rouge-fonce); }
.sup-kpi-value { font-family: var(--titre); font-size: 1.32rem; font-weight: 700; line-height: 1.15; color: var(--encre); font-variant-numeric: tabular-nums; }
.sup-kpi-sub { font-size: 0.76rem; color: var(--encre-douce); line-height: 1.3; }

.sup-filter-panel { background: var(--papier); border: 1px solid var(--filet); border-radius: var(--rayon); padding: 0.85rem 1rem; margin-bottom: 1rem; display: grid; gap: 0.7rem; }
.sup-filter-panel [hidden], .sup-status-bar [hidden] { display: none !important; }
.sup-cat-bar { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.sup-subcat-bar { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; padding: 0.48rem 0.65rem; border-radius: var(--rayon); background: var(--craie); border: 1px solid var(--filet-doux); }
.sup-subcat-label { font-size: 0.75rem; font-weight: 600; color: var(--encre-douce); margin-right: 0.15rem; }
.sup-subcat-chip { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; padding: 0.22rem 0.58rem; min-height: 1.85rem; border-radius: 999px; border: 1px solid var(--filet); background: var(--papier); font-size: 0.77rem; font-weight: 600; color: var(--encre-douce); cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease; }
.sup-subcat-chip:hover { border-color: var(--encre-douce); color: var(--encre); }
.sup-subcat-chip.active { background: var(--encre); border-color: var(--encre); color: #fff; }
.sup-subcat-chip:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; }

.sup-toolbar { display: grid; grid-template-columns: minmax(14rem, 1.6fr) repeat(4, minmax(9.2rem, 1fr)) auto; gap: 0.6rem; align-items: end; }
.sup-search-field { min-width: 0; }
.sup-view-field { display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; }
.sup-field-label { font-size: 0.85rem; font-weight: 600; color: var(--encre); line-height: 1.25; }
.sup-view-switch { display: inline-flex; align-self: flex-start; border: 1px solid var(--filet); border-radius: var(--rayon); overflow: hidden; background: var(--craie); }
.sup-view-btn { all: unset; box-sizing: border-box; padding: 0.45rem 0.85rem; min-height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; font-size: 0.84rem; font-weight: 600; color: var(--encre-douce); cursor: pointer; }
.sup-view-btn + .sup-view-btn { border-left: 1px solid var(--filet); }
.sup-view-btn.active { background: var(--papier); color: var(--encre); }
.sup-view-btn:focus-visible { outline: 3px solid var(--bleu); outline-offset: -3px; }
.sup-status-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem; padding-top: 0.35rem; border-top: 1px solid var(--filet-doux); }
.sup-status-line { margin: 0; font-size: 0.83rem; font-variant-numeric: tabular-nums; }
.sup-status-actions { display: inline-flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }

.sup-groups-holder { display: grid; gap: 1rem; }
.sup-group { background: var(--papier); border: 1px solid var(--filet); border-radius: var(--rayon); overflow: hidden; }
summary.sup-group-head { list-style: none; cursor: pointer; user-select: none; }
summary.sup-group-head::-webkit-details-marker { display: none; }
summary.sup-group-head:focus-visible { outline: 3px solid var(--bleu); outline-offset: -3px; }
.sup-group-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 0.85rem; padding: 0.65rem 1rem; background: var(--post-bg, var(--craie)); border-bottom: 1px solid var(--post-border, var(--filet)); }
details.sup-group:not([open]) > summary.sup-group-head { border-bottom: 0; }
.sup-group-head > .sup-ico, .sup-group-metrics > .sup-ico { transition: transform 0.16s ease; color: var(--post-sub, var(--encre-douce)); }
details.sup-group:not([open]) > summary.sup-group-head .sup-ico { transform: rotate(-90deg); }
.sup-group-title { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.sup-group-title h2 { margin: 0; font-size: 0.96rem; font-weight: 700; color: var(--post-ink, var(--encre)); }
.sup-group-metrics { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; font-variant-numeric: tabular-nums; }
.sup-group-p0 { display: inline-flex; align-items: center; padding: 0.08rem 0.45rem; border-radius: 999px; background: rgba(255, 255, 255, 0.78); border: 1px solid rgba(180, 95, 6, 0.3); font-size: 0.72rem; font-weight: 700; color: #7c4200; }
.sup-group-paid { font-size: 0.78rem; font-weight: 700; color: var(--post-ink, var(--encre)); padding: 0.08rem 0.48rem; border-radius: 999px; background: rgba(255, 255, 255, 0.68); border: 1px solid rgba(19, 19, 19, 0.1); }
.sup-group-count { font-size: 0.78rem; font-weight: 600; color: var(--post-sub, var(--encre-douce)); }

.sup-group.mode-table .sup-cards-wrap, .sup-group.mode-table > .sup-cards-grid { display: none; }
.sup-group.mode-cards .sup-table-wrap { display: none; }
.sup-cards-wrap { display: grid; gap: 0.85rem; padding: 0.85rem; }
.sup-group > .sup-cards-grid { padding: 0.85rem; }
.sup-cards-subblock { display: grid; gap: 0.55rem; }
.sup-cards-subhead { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.35rem 0.6rem; border-radius: 6px; background: #f6f3ed; border: 1px solid var(--filet-doux); }

.sup-table-wrap { border: 0; border-radius: 0; margin: 0; }
.sup-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.sup-table thead th { background: #faf8f4; color: var(--encre-douce); font-size: 0.73rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; padding: 0.5rem 0.85rem; border-bottom: 1px solid var(--filet); text-align: left; }
.sup-table thead th.num, .sup-table thead th.sup-col-actions { text-align: right; }
.sup-table tbody td { padding: 0.62rem 0.85rem; border-bottom: 1px solid var(--filet-doux); vertical-align: top; }
.sup-table tbody tr:last-child td { border-bottom: 0; }
.sup-table tbody tr.sup-row:hover { background: #fdfbf8; }
.sup-table tbody tr.sup-row.is-expanded td { border-bottom-color: transparent; background: #faf7f2; }

.sup-subcat-row th { background: #f6f3ed; padding: 0.38rem 0.85rem; border-bottom: 1px solid var(--filet-doux); text-align: left; }
.sup-subcat-head { display: flex; align-items: center; gap: 0.45rem; }
.sup-subcat-title { font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.035em; color: var(--encre); }
.sup-subcat-count { display: inline-flex; align-items: center; justify-content: center; min-width: 1.35rem; padding: 0.04rem 0.38rem; border-radius: 999px; background: var(--papier); border: 1px solid var(--filet); font-size: 0.71rem; font-weight: 700; color: var(--encre-douce); font-variant-numeric: tabular-nums; }

.sup-col-main { width: 35%; min-width: 14rem; }
.sup-col-account { width: 20%; min-width: 9.5rem; }
.sup-col-contact { width: 23%; min-width: 12rem; }
.sup-col-paid { width: 13%; min-width: 8rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sup-col-actions { width: 9%; white-space: nowrap; text-align: right; }

.sup-title-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.32rem 0.42rem; }
.sup-name-btn { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 0.28rem; min-height: 1.5rem; cursor: pointer; border-radius: 4px; color: var(--encre); }
.sup-name-btn:hover .sup-name { color: var(--bleu); text-decoration: underline; text-underline-offset: 2px; }
.sup-name-btn:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; }
.sup-name-btn .sup-ico { width: 13px; height: 13px; color: var(--encre-douce); transition: transform 0.15s ease; }
.sup-name-btn[aria-expanded="true"] .sup-ico { transform: rotate(180deg); color: var(--bleu); }
.sup-name { font-size: 0.92rem; font-weight: 600; color: var(--encre); line-height: 1.3; }
.sup-sites { display: inline-flex; flex-wrap: wrap; gap: 0.25rem; }
.sup-site-tag { display: inline-flex; align-items: center; padding: 0.08rem 0.42rem; border-radius: 999px; background: var(--craie); border: 1px solid var(--filet); font-size: 0.69rem; font-weight: 600; color: var(--encre-douce); white-space: nowrap; }

.sup-taxonomy-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.45rem; margin-top: 0.22rem; }
.sup-cat-tag { display: inline-flex; align-items: center; gap: 0.28rem; padding: 0.08rem 0.45rem; border-radius: 999px; background: var(--post-bg, var(--craie)); border: 1px solid var(--post-border, var(--filet)); font-size: 0.7rem; font-weight: 600; color: var(--post-ink, var(--encre)); }
.sup-subcat-inline { font-size: 0.74rem; font-weight: 600; color: var(--encre-douce); }
.sup-notes-compact { margin: 0.22rem 0 0; font-size: 0.79rem; line-height: 1.36; color: var(--encre-douce); max-width: 38rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.sup-account-btn { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 0.4rem; max-width: 100%; padding: 0.2rem 0.5rem; border-radius: 6px; background: var(--craie); border: 1px solid var(--filet); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.75rem; color: var(--encre); cursor: pointer; }
.sup-account-btn:hover { border-color: var(--bleu); background: #f2f6ff; }
.sup-account-btn:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; }
.sup-account-code { overflow-wrap: anywhere; }
.sup-copy-hint { flex: none; font-family: var(--corps); font-size: 0.7rem; font-weight: 600; color: var(--bleu); }
.sup-missing-tag { display: inline-flex; align-items: center; padding: 0.12rem 0.45rem; border-radius: 6px; background: #fff8eb; border: 1px solid #ead2a2; font-size: 0.72rem; font-weight: 600; color: #7c4a03; }
.sup-terms { display: block; margin-top: 0.22rem; font-size: 0.77rem; color: var(--encre-douce); line-height: 1.32; }
.sup-channel-hint { display: inline-block; font-size: 0.76rem; color: var(--encre-douce); line-height: 1.32; }

.sup-contacts-cell { display: flex; flex-wrap: wrap; align-items: center; gap: 0.28rem 0.38rem; }
.sup-action-pill { display: inline-flex; align-items: center; gap: 0.3rem; min-height: 1.85rem; max-width: 100%; padding: 0.15rem 0.52rem; border-radius: 6px; border: 1px solid #c5d6f5; background: #eef4ff; color: #163e8f; font-size: 0.76rem; font-weight: 600; text-decoration: none; overflow-wrap: break-word; }
.sup-action-pill:hover { background: #dfebff; border-color: #96b7f0; }
.sup-action-pill:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; }
.sup-rep-line { display: block; width: 100%; font-size: 0.77rem; color: var(--encre); }
.sup-meta-inline { font-size: 0.77rem; }

.sup-paid-box { display: grid; gap: 0.08rem; justify-items: end; }
.sup-paid-amount { font-size: 0.9rem; font-weight: 700; color: var(--encre); }
.sup-paid-sub { font-size: 0.73rem; color: var(--encre-douce); }
.sup-paid-shared { font-size: 0.7rem; color: var(--ambre); white-space: normal; text-align: right; max-width: 13rem; }
.sup-card-paid .sup-paid-shared { text-align: left; max-width: none; }
.sup-row-btns { display: inline-flex; align-items: center; justify-content: flex-end; gap: 0.3rem; }
.sup-sheet-btn.active { background: var(--craie-forte); color: var(--encre); border-color: var(--encre-douce); }

.sup-detail-row td { background: #faf7f2; padding: 0.2rem 0.85rem 0.9rem; border-bottom: 1px solid var(--filet); }
.sup-detail-sheet { background: var(--papier); border: 1px solid var(--filet); border-radius: var(--rayon); padding: 0.85rem 1rem; display: grid; gap: 0.7rem; }
.sup-sheet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem 1.25rem; }
.sup-sheet-col { display: grid; gap: 0.38rem; align-content: start; min-width: 0; }
.sup-sheet-heading { margin: 0 0 0.15rem; font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--encre-douce); }
.sup-sheet-kv { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0.45rem; align-items: baseline; font-size: 0.82rem; }
.sup-sheet-k { font-weight: 600; color: var(--encre-douce); font-size: 0.77rem; }
.sup-sheet-v { color: var(--encre); overflow-wrap: anywhere; }
.sup-payee-codes { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.74rem; color: var(--encre-douce); }
.sup-sheet-notes { margin: 0; padding-top: 0.55rem; border-top: 1px solid var(--filet-doux); font-size: 0.83rem; line-height: 1.45; color: var(--encre); max-width: 68ch; }
.sup-sheet-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; padding-top: 0.55rem; border-top: 1px solid var(--filet-doux); }

.supplier-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 0.75rem; list-style: none; margin: 0; padding: 0; }
.supplier-list > li { min-width: 0; }
.supplier-card { display: flex; flex-direction: column; gap: 0.55rem; height: 100%; background: var(--papier); border: 1px solid var(--filet); border-radius: var(--rayon); padding: 0.85rem 1rem; }
.sup-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 0.35rem 0.6rem; }
.sup-card-head h3 { margin: 0; font-size: 0.96rem; line-height: 1.28; }
.sup-card-notes { margin: 0; font-size: 0.82rem; color: var(--encre-douce); line-height: 1.4; }
.sup-card-meta { display: grid; gap: 0.35rem; padding: 0.5rem 0.65rem; border-radius: 6px; background: var(--craie); border: 1px solid var(--filet-doux); }
.sup-meta-item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.5rem; }
.sup-meta-k { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: var(--encre-douce); min-width: 4.5rem; }
.sup-meta-v { font-size: 0.82rem; color: var(--encre); }
.sup-card-foot { margin-top: auto; padding-top: 0.5rem; border-top: 1px solid var(--filet-doux); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem; }
.sup-card-paid { display: grid; gap: 0.05rem; font-size: 0.8rem; }
.supplier-registry-note { margin: 0 0 1rem; font-size: 0.86rem; }

@media (max-width: 1380px) {
  .sup-toolbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1020px) {
  .sup-kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sup-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sup-search-field { grid-column: 1 / -1; }
  .sup-sheet-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .sup-view-field { display: none; }
  .sup-cat-bar, .sup-subcat-bar { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 0.2rem; scrollbar-width: thin; }
  .sup-cat-bar > button, .sup-subcat-bar > button, .sup-subcat-label { flex: none; white-space: nowrap; }
  details.sup-group[open] .sup-table-wrap, section.sup-group .sup-table-wrap { display: none !important; }
  details.sup-group[open] .sup-cards-wrap { display: grid !important; padding: 0.75rem; }
  section.sup-group > .sup-cards-grid { display: grid !important; padding: 0.75rem; }
  .sup-action-pill { min-height: 2.35rem; padding: 0.25rem 0.65rem; }
}
@media (max-width: 520px) {
  .sup-kpi-strip { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .sup-kpi-tile { padding: 0.65rem 0.75rem; }
  .sup-kpi-value { font-size: 1.12rem; }
  .sup-toolbar { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .sup-search-field { grid-column: 1 / -1; }
  /* « Dossier » et « Tri » ont des choix longs : une rangée chacun, pour ne jamais couper le choix affiché. */
  .sup-toolbar > .field:nth-child(n+4) { grid-column: 1 / -1; }
  .sup-sheet-kv { grid-template-columns: 1fr; gap: 0.1rem; }
}

/* Pouls de l'équipe (Tableau de bord) ------------------------------------- */
.pulse-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0.75rem; margin: 0.75rem 0; }
.pulse-stat { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.75rem 1rem; border: 1px solid var(--filet); border-radius: var(--rayon); background: var(--papier); }
.pulse-stat strong { font-family: var(--titre); font-size: 1.75rem; color: var(--encre); font-variant-numeric: tabular-nums; }
.pulse-labels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 1rem; }
.pulse-label { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.9rem 1rem; border: 1px dashed #888; font-size: 0.85rem; break-inside: avoid; }
.pulse-label code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.35rem; font-weight: 700; letter-spacing: 0.1em; color: var(--encre); }
@media (max-width: 600px) { .pulse-labels { grid-template-columns: 1fr; } }
@media print {
  body:has(dialog[open] .pulse-sheet) .shell,
  body:has(dialog[open] .pulse-sheet) .toasts { display: none !important; }
  dialog[open]:has(.pulse-sheet) {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
  }
  dialog[open]:has(.pulse-sheet)::backdrop,
  dialog[open]:has(.pulse-sheet) > header button,
  dialog[open]:has(.pulse-sheet) .actions { display: none !important; }
  dialog[open] .pulse-sheet .muted { color: #000; }
}

/* Évaluations 2026 : liste compacte, fiche seule (mode rencontre), barre d'état, impression ------------------ */
.eval-banner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1rem; padding: 0.55rem 1rem; margin-bottom: 0.75rem; }
.eval-banner strong { display: inline; }
.eval-banner-text { flex: 1 1 18rem; min-width: 0; font-size: 0.9rem; }
.eval-more summary { cursor: pointer; font-size: 0.86rem; color: var(--ambre); text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 2rem; }
.eval-more p { margin: 0.35rem 0 0; font-size: 0.88rem; }
.eval-calendar { margin: 0 0 1rem; }

.eval-progress { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; margin: 0 0 1rem; padding: 0.85rem 1rem; background: var(--craie); border: 1px solid var(--filet-doux); border-radius: var(--rayon); }
.eval-progress-main { flex: 1 1 16rem; min-width: 0; }
.eval-progress-text { margin: 0 0 0.45rem; font: 600 1.05rem/1.3 var(--titre); color: var(--encre); }
.eval-meter { height: 0.55rem; border-radius: var(--pilule); background: var(--craie-forte); overflow: hidden; }
.eval-meter > span { display: block; height: 100%; background: var(--sauge); border-radius: var(--pilule); }
.eval-progress-done { margin: 0; }
.eval-direction-toggle[aria-pressed="true"] { background: var(--encre); border-color: var(--encre); color: #fff; }
.eval-direction-toggle[aria-pressed="true"]:hover:not(:disabled) { background: #333; border-color: #333; color: #fff; }

.eval-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--filet); }
.eval-rows > li { border-bottom: 1px solid var(--filet); }
.eval-row { display: grid; grid-template-columns: minmax(10rem, 1.6fr) minmax(8rem, 1fr) minmax(12rem, 1.4fr) minmax(8rem, 1fr) auto; align-items: center; gap: 0.35rem 1rem; padding: 0.6rem 0.25rem; min-height: 3.5rem; }
.eval-row-id { display: grid; gap: 0.05rem; min-width: 0; }
.eval-row-id .muted { font-size: 0.82rem; }
.eval-row-name { font-family: var(--titre); font-size: 1.02rem; color: var(--encre); font-weight: 600; }
.eval-row-evaluator, .eval-row-date { font-size: 0.86rem; }
.eval-row-state { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.eval-row-state .chip { white-space: normal; }
.eval-row-go .btn { min-width: 7.5rem; }
.eval-row-pay { grid-column: 1 / -1; background: var(--craie); border: 1px solid var(--filet-doux); border-radius: var(--rayon); padding: 0.6rem 0.9rem; margin-bottom: 0.4rem; }
.eval-row-pay .eval-pay-grid { margin: 0; }
.eval-row-pay .eval-flags, .eval-row-pay .eval-note { margin-top: 0.4rem; }

.eval-sheet-mode { max-width: 60rem; }
html:has(main.eval-sheet-mode) { scroll-padding-bottom: 6rem; scroll-padding-top: 1rem; }
.eval-sheet-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem; margin: 0 0 0.75rem; }
.eval-back, .eval-reveal { min-height: 2.75rem; }
.eval-reveal { color: var(--encre-douce); }
.eval-sheet-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 0.35rem 1rem; margin: 0 0 1rem; }
.eval-sheet-title { font-size: 1.9rem; line-height: 1.15; }
.eval-sheet-head .eval-meta { margin-top: 0.3rem; font-size: 0.95rem; }
.eval-pay-host:empty { display: none; }
.eval-pay-host { margin: 0 0 1rem; }
.eval-form { border-top: 0; padding-top: 0; gap: 0; }
.eval-fields { gap: 1.1rem; padding-bottom: 1rem; }
/* Les conteneurs vides (saisie restaurée, conflit, erreurs) ne prennent aucune place, pas même un interstice de la grille. */
.eval-fields > div:empty { display: none; }
.eval-part h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0; font: 600 1.15rem/1.3 var(--titre); color: var(--encre); border-bottom: 1px solid var(--filet); padding-bottom: 0.3rem; }
.eval-verso h2 { margin: 0; font: 600 1.15rem/1.3 var(--titre); color: var(--encre); border-bottom: 1px solid var(--filet); padding-bottom: 0.3rem; }
.eval-reminder { font-size: 0.86rem; padding: 0.45rem 0.75rem; }

/* Rangée de puces A1…B6 */
.eval-crit-nav { display: grid; gap: 0.3rem; }
.crit-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.crit-chip { display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem; min-width: 3.1rem; min-height: 2.75rem; padding: 0 0.7rem; border-radius: var(--pilule); border: 1px solid #b9bec4; background: var(--papier); color: var(--encre); font-weight: 600; font-size: 0.86rem; cursor: pointer; }
.crit-chip:hover { background: var(--craie-forte); }
.crit-chip.noted { background: var(--encre); border-color: var(--encre); color: #fff; }
.crit-chip.below { background: var(--ambre-pale); border-color: var(--ambre); color: var(--ambre); }
.crit-chip.na { border-style: dashed; color: var(--encre-douce); }
.crit-chip.not-applicable { background: var(--craie-forte); border-color: #9da4ad; color: var(--encre-douce); }
.crit-mark { font-weight: 700; min-width: 0.6rem; text-align: center; }
.crit-legend { margin: 0; }

/* Contrôle de note: choisi = rempli, franc, avec une coche; non choisi = neutre */
.segments { display: flex; flex-wrap: wrap; gap: 0.45rem; max-width: 44rem; }
.seg { position: relative; display: block; flex: 1 1 3.6rem; min-width: 3.6rem; cursor: pointer; }
.seg.na { flex: 1.8 1 7.6rem; }
.seg.na.not-applicable { flex: 2.1 1 8.8rem; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg-face { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 3.4rem; padding: 0.25rem 0.4rem; border: 1px solid #b9bec4; border-radius: var(--rayon); background: var(--papier); color: var(--encre); line-height: 1.1; }
.seg-value { font-family: var(--titre); font-weight: 600; font-size: 1.3rem; }
.seg-tag { margin-top: 0.1rem; font-size: 0.7rem; font-weight: 500; color: var(--encre-douce); }
.seg:hover .seg-face { background: var(--craie-forte); }
.seg input:focus-visible + .seg-face { outline: 3px solid var(--bleu); outline-offset: 2px; }
.seg input:checked + .seg-face { background: var(--encre); border-color: var(--encre); color: #fff; }
.seg input:checked + .seg-face .seg-tag { color: #d8dce0; }
.seg input:checked + .seg-face .seg-value::before { content: "✓\00a0"; font-size: 0.95rem; }
.seg.low input:checked + .seg-face { background: var(--ambre-pale); border: 2px solid var(--ambre); color: var(--ambre); }
.seg.low input:checked + .seg-face .seg-tag { color: var(--ambre); }
.seg.na .seg-face { background: transparent; border-style: dashed; color: var(--encre-douce); }
.seg.na.not-applicable .seg-face { background: var(--craie); border-style: solid; border-color: #adb3ba; color: var(--encre); }
.seg.na .seg-value { font-family: var(--corps); font-size: 0.86rem; font-weight: 500; text-align: center; }
.seg.na input:checked + .seg-face { background: var(--craie-forte); border: 2px solid var(--encre); color: var(--encre); }
.seg.na input:checked + .seg-face .seg-tag { color: var(--encre-douce); }
.seg.na input:checked + .seg-face .seg-value::before { content: "✓\00a0"; }
.eval-below { margin-left: 0.2rem; }
.eval-below[hidden], .eval-need[hidden], .eval-example-note[hidden] { display: none; }
.eval-need { display: inline-block; margin-left: 0.4rem; padding: 0 0.55rem; border-radius: var(--pilule); background: var(--rouge-pale); color: var(--rouge-fonce); font-size: 0.76rem; font-weight: 600; }
.eval-criterion { scroll-margin-top: 1rem; scroll-margin-bottom: 6rem; padding: 0.85rem 0 1rem; border-bottom: 1px solid var(--filet-doux); }
.eval-example.needed { padding: 0.5rem 0.65rem; border-left: 3px solid var(--ambre); background: var(--ambre-pale); border-radius: 0 var(--rayon) var(--rayon) 0; color: var(--encre); }
.eval-example-note { font-weight: 600; color: var(--ambre); }

/* Barre collante: une ligne repliée (≤ 56 px), détail sur demande; elle ne recouvre aucun contrôle (marge basse + scroll-padding) */
.eval-bar { position: sticky; bottom: 0; z-index: 5; background: var(--papier); border: 1px solid var(--filet); border-radius: var(--rayon) var(--rayon) 0 0; box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08); margin-top: 0.5rem; }
.eval-bar-line { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; min-height: 3.25rem; padding: 0.25rem 0.5rem 0.25rem 0.9rem; }
.eval-bar-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.9rem; flex: 1 1 auto; min-width: 0; font-size: 0.9rem; line-height: 1.25; overflow-wrap: anywhere; }
.eval-bar-progress { font-weight: 600; color: var(--encre); }
.eval-bar-status { min-width: 0; font-size: 0.84rem; color: var(--encre-douce); }
.eval-bar-status.ok { color: var(--sauge); }
.eval-bar-status.warn { color: var(--ambre); font-weight: 600; }
.eval-bar-status.bad { color: var(--rouge-fonce); font-weight: 600; }
.eval-bar-toggle { flex: none; }
.eval-bar-detail { border-bottom: 1px solid var(--filet-doux); padding: 0.6rem 0.9rem; max-height: 50vh; overflow: auto; }
.eval-bar-detail[hidden] { display: none; }
.eval-live { position: static; padding: 0; border: 0; box-shadow: none; }

/* Fin de rencontre */
.eval-done { max-width: 36rem; margin: 1rem 0; padding: 1.5rem; background: var(--papier); border: 1px solid var(--sauge); border-radius: var(--rayon-carte); }
.eval-done-who { margin: 0.4rem 0 1rem; font-size: 1.05rem; }
.eval-done-result { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin: 0 0 1rem; }
.eval-done-result dt { font-size: 0.82rem; color: var(--encre-douce); }
.eval-done-result dd { margin: 0; font: 600 1.5rem/1.2 var(--titre); color: var(--encre); }
.eval-done-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.5rem; }

.eval-print { display: none; }

@media (min-width: 861px) {
  .eval-row.no-evaluator { grid-template-columns: minmax(10rem, 1.6fr) minmax(12rem, 1.4fr) minmax(8rem, 1fr) auto; }
}
@media (max-width: 860px) {
  .eval-row { grid-template-columns: minmax(0, 1fr) auto; }
  .eval-row-evaluator, .eval-row-state, .eval-row-date { grid-column: 1 / -1; }
  .eval-row-go { grid-column: 2; grid-row: 1; }
  .eval-sheet-mode { max-width: none; }
}
@media (max-width: 600px) {
  .eval-sheet-title { font-size: 1.5rem; }
  .seg.na, .seg.na.not-applicable { flex: 1 1 calc(50% - 0.3rem); min-width: 8rem; }
  .eval-bar-text { flex-direction: column; align-items: flex-start; gap: 0; }
  .eval-bar-status { font-size: 0.8rem; }
  .eval-criterion { scroll-margin-bottom: 8.5rem; }
  .eval-bar-line { padding-left: 0.7rem; }
  .eval-progress .btn { width: 100%; }
  .seg-face { min-height: 3.1rem; }
}

@page { size: letter; margin: 14mm; }
@media print {
  /* La liste (Vue direction allumée ou non) n'imprime jamais taux, coûts, cotes, notes de la direction ni export. */
  .eval-row-pay, .eval-summary-host, .eval-direction-toggle, .eval-export, .eval-pay-host, .eval-pay { display: none !important; }
  /* Fiche seule: ni navigation, ni rémunération, ni note de la direction. */
  main.eval-sheet-mode { max-width: none; padding: 0; margin: 0; }
  main.eval-sheet-mode .eval-screen { display: none !important; }
  main.eval-sheet-mode .eval-print { display: block; }
  .eval-paper { color: #000; font: 400 10.5pt/1.4 Georgia, "Times New Roman", serif; }
  .eval-paper h1 { font: 700 17pt/1.2 Georgia, serif; color: #000; margin: 0 0 8pt; }
  .eval-paper h2 { font: 700 12pt/1.3 Georgia, serif; color: #000; margin: 12pt 0 3pt; }
  .eval-paper h3 { font: 700 10.5pt/1.3 Georgia, serif; color: #000; margin: 6pt 0 1pt; }
  .eval-paper p { max-width: none; margin: 0 0 4pt; }
  .eval-paper-id { display: grid; grid-template-columns: 1fr 1fr; gap: 3pt 18pt; margin: 0 0 10pt; padding-bottom: 6pt; border-bottom: 1.5pt solid #000; }
  .eval-paper-id dt { font-size: 8.5pt; text-transform: none; color: #000; font-weight: 700; }
  .eval-paper-id dd { margin: 0; min-height: 1.2em; border-bottom: 0.5pt solid #000; }
  .eval-paper-table { width: 100%; border-collapse: collapse; margin: 0 0 8pt; }
  .eval-paper-table th, .eval-paper-table td { border: 0.75pt solid #000; padding: 3pt 5pt; text-align: left; vertical-align: top; font-size: 9.5pt; }
  .eval-paper-table th { background: #fff; font-weight: 700; }
  .eval-paper-table tr { break-inside: avoid; }
  .eval-paper-text { white-space: pre-wrap; }
  .eval-paper section { break-inside: avoid; }
  .eval-paper-sign { display: grid; grid-template-columns: 1fr 1fr 0.6fr; gap: 20pt; margin-top: 34pt; break-inside: avoid; }
  .eval-paper-sign .line { display: block; border-bottom: 0.75pt solid #000; height: 22pt; }
  .eval-paper-sign p { font-size: 9pt; margin-top: 2pt; }
}

/* ── Honoraires (comparaison au rapport UniVet 2026) ── */
.pricing { min-width: 0; }
.pricing-source p { margin: 0.3rem 0 0; }
.pricing-warnings-box summary { cursor: pointer; margin-top: 0.5rem; font-weight: 600; font-size: 0.85rem; min-height: 1.5rem; }
.pricing-warnings { margin: 0.5rem 0 0; padding-left: 1.2rem; font-size: 0.85rem; }
.pricing-help { max-width: 80ch; margin: 0 0 1rem; color: var(--encre); }
.pricing-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.pricing-tile { display: flex; flex-direction: column; gap: 0.15rem; align-items: flex-start; text-align: left; padding: 0.9rem 1.1rem; border: 1px solid var(--filet); border-radius: var(--rayon-carte); background: var(--papier); box-shadow: var(--ombre-douce); cursor: pointer; font: inherit; color: var(--texte); min-height: 2.75rem; }
.pricing-tile:hover { border-color: #c9c9c9; }
.pricing-tile:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; }
.pricing-tile.on { border-color: var(--encre); box-shadow: inset 0 0 0 1px var(--encre); }
.pricing-tile-n { font: 600 2rem/1.1 var(--titre); color: var(--encre); }
.pricing-tile.above .pricing-tile-n { color: #1f43a3; }
.pricing-tile.within .pricing-tile-n { color: var(--sauge); }
.pricing-tile.below .pricing-tile-n { color: var(--ambre); }
.pricing-tile-label { font-weight: 600; font-size: 0.9rem; }
.pricing-ask { margin: 0 0 1.25rem; }
.pricing-ai-block header, .pricing-top-list header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.pricing-ai-meta { margin: 0.5rem 0 0; font-size: 0.85rem; }
.pricing-wait { margin: 0.75rem 0 0; }
.pricing-cards { display: grid; gap: 0.9rem; margin-top: 1rem; }
.pricing-card { border: 1px solid var(--filet); border-radius: var(--rayon); padding: 0.9rem 1.1rem; background: var(--craie); min-width: 0; }
.pricing-card-head { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; margin-bottom: 0.4rem; }
.pricing-card p { margin: 0.3rem 0; }
.pricing-finding { font-weight: 600; color: var(--encre); }
.pricing-card-table { margin-top: 0.6rem; background: var(--papier); }
.pricing-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.pricing-top-list ol { list-style: none; margin: 0.75rem 0 0; padding: 0; }
.pricing-top-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.15rem 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--filet-doux); }
.pricing-top-list li > div:first-child { flex: 1 1 12rem; }
.pricing-top-list li > div { min-width: 0; }
.pricing-top-figures { text-align: right; flex: 0 1 auto; margin-left: auto; white-space: nowrap; }
.pricing-top-figures .sub, .pricing-top-list li .sub { display: block; }
.pricing-controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; margin: 0.9rem 0 0.5rem; }
.pricing-controls label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.8rem; font-weight: 600; color: var(--encre-douce); min-width: 0; }
/* Le tri par liste ne sert qu'au téléphone, où les fiches n'ont pas d'en-têtes de colonne à toucher. */
.pricing-controls label.pricing-sort { display: none; }
@media (max-width: 640px) { .pricing-controls label.pricing-sort { display: flex; } }
.pricing-controls select, .pricing-controls input { min-height: 2.75rem; padding: 0.4rem 0.7rem; border: 1px solid var(--filet); border-radius: var(--rayon); background: var(--papier); font: 400 0.9rem var(--corps); color: var(--texte); width: 100%; min-width: 0; }
.pricing-count { margin: 0.25rem 0 0.6rem; font-size: 0.85rem; }
.pricing-table-wrap { max-width: 100%; }
.pricing-table td, .pricing-table th { padding: 0.5rem 0.7rem; }
.pricing-table td:first-child { min-width: 12rem; }
.pricing-table th, .pricing-table td.num { white-space: nowrap; }
.pricing-note { max-width: 36ch; white-space: normal; }
.pricing-section-row th { background: var(--craie-forte); position: static; color: var(--encre); font-size: 0.88rem; }
.pricing-section-row th { display: table-cell; }
.pricing-section-cell { position: sticky; left: 0.7rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 1rem; width: max-content; max-width: min(100%, 52rem); }
.pricing-section-name { margin-right: 0; }
.pricing-section-actions { display: inline-flex; gap: 0.25rem; flex-wrap: wrap; vertical-align: middle; }
/* Sans section ouverte, les en-têtes n'ont aucune colonne dessous : ils restent lisibles pour un lecteur d'écran, invisibles à l'écran. */
.pricing-table thead.pricing-head-off { position: absolute; width: 1px; height: 1px; overflow: visible; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 900px) {
  .pricing-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .pricing-tiles { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
  .pricing-tile { flex-direction: row; align-items: baseline; gap: 0.15rem 0.6rem; flex-wrap: wrap; padding: 0.55rem 0.95rem; }
  .pricing-tile-n { font-size: 1.5rem; }
  /* Un acte par ligne dans les deux palmarès : le nom et son écart sur la première, les deux prix dessous. La section
     et la page du rapport restent dans le tableau complet, plus bas. */
  .pricing-top-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.1rem 0.75rem; align-items: baseline; }
  .pricing-top-list li > div { display: contents; }
  .pricing-top-list li > div:first-child > .sub { display: none; }
  .pricing-top-figures > .sub { grid-column: 1 / -1; white-space: normal; text-align: left; }
  .pricing-controls { grid-template-columns: minmax(0, 1fr); }
  .pricing-table td:first-child { min-width: 11rem; }
}
@media (max-width: 640px) {
  /* Tableau en fiches (cardTable) : les rangées de section restent des bandeaux pleine largeur, et le classement ferme la fiche. */
  .pricing-table.as-cards thead { overflow: visible; clip: rect(0 0 0 0); clip-path: inset(50%); }
  .pricing-table.as-cards .pricing-section-row { display: block; padding: 0.35rem 0.85rem; }
  .pricing-table.as-cards .pricing-section-row th { display: block; padding: 0; border: 0; white-space: normal; }
  .pricing-table.as-cards .pricing-section-cell { position: static; width: auto; max-width: none; }
  .pricing-table.as-cards td:first-child { min-width: 0; }
  .pricing-table.as-cards .pricing-note { font-weight: 400; }
  .pricing-table.as-cards td:nth-child(7) { grid-column: 1 / -1; order: 1; }
  .pricing-table.as-cards td.num { white-space: normal; }
}
@media print {
  .pricing-controls, .pricing-ask, .pricing-tiles, .pricing-ai-block, .pricing-top, .pricing-section-actions, .pricing-count { display: none !important; }
  .pricing-table-wrap { overflow: visible; border: 0; }
  .pricing-table { font-size: 8.5pt; }
  .pricing-table td, .pricing-table th { padding: 2pt 4pt; }
  .pricing-table thead th { position: static; }
  .pricing-table tr { break-inside: avoid; }
  .pricing-section-row { break-after: avoid; }
  .pricing-table .chip { border: 0; padding: 0; background: none; color: #000; }
  .pricing-table-block { border: 0; padding: 0; }
  .pricing-source { break-inside: avoid; background: #fff; }
}
/* Planifié contre pointé (page Horaire) ------------------------------------------ */
.actuals-lead { margin: 0 0 1rem; color: var(--encre); }
.actuals-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.85rem; margin: 0 0 1rem; }
.actuals-tile { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; padding: 0.85rem 1rem; border: 1px solid var(--filet); border-radius: var(--rayon); background: var(--craie); }
.actuals-tile-label { font-size: 0.82rem; font-weight: 600; color: #494c4f; }
.actuals-tile-value { font-family: var(--titre); font-size: 1.7rem; line-height: 1.15; color: var(--encre); }
.actuals-tile-sub { font-size: 0.82rem; overflow-wrap: anywhere; }
.actuals-table table { min-width: 34rem; }
.actuals-table th[scope="row"] { text-align: left; font-weight: 500; font-size: 0.9rem; color: var(--texte); background: transparent; position: static; white-space: nowrap; }
.actuals-day th, .actuals-day td { border-bottom: 0; padding-bottom: 0.2rem; }
.actuals-detail td { padding-top: 0; padding-bottom: 0.5rem; }
.actuals-detail summary { cursor: pointer; font-size: 0.78rem; color: var(--encre-douce); }
.actuals-groups { list-style: none; margin: 0.4rem 0 0; padding: 0; }
.actuals-groups li { display: flex; flex-wrap: wrap; gap: 0.15rem 1rem; padding: 0.3rem 0; border-top: 1px solid var(--filet-doux); font-size: 0.85rem; }
.actuals-groups li strong { flex: 1 1 100%; font-weight: 600; }
.actuals-week th, .actuals-week td { background: var(--craie); font-weight: 600; border-top: 1px solid var(--filet); }
.actuals-total th, .actuals-total td { font-weight: 700; background: var(--craie-forte); }
.actuals-apart { margin-top: 0.75rem; }
.actuals-people-zone { margin-top: 1rem; }
.actuals-people { margin-top: 0.75rem; min-width: 0; }
.actuals-people-note { margin: 0 0 0.75rem; padding: 0.6rem 0.9rem; border-left: 3px solid var(--ambre); background: var(--ambre-pale); border-radius: 0 var(--rayon) var(--rayon) 0; font-size: 0.9rem; max-width: 70ch; }
@media (max-width: 600px) {
  .actuals-tiles { grid-template-columns: 1fr; }
  .actuals-tile-value { font-size: 1.5rem; }
  /* Les cinq colonnes tiennent dans 390 px : l'écart et le débordement se lisent sans faire défiler le tableau. */
  .actuals-table table { min-width: 0; }
  .actuals-table th, .actuals-table td { padding: 0.5rem 0.3rem; font-size: 0.8rem; }
  .actuals-table thead th { white-space: normal; vertical-align: bottom; }
  .actuals-table th[scope="row"] { white-space: normal; font-size: 0.8rem; }
  .actuals-detail td { padding-left: 0.3rem; }
}
/* Enveloppe des hausses (Vue direction, comptes complets): jamais imprimée. */
.eval-envelope-table tbody th { font-weight: 600; color: var(--encre); white-space: nowrap; }
.eval-envelope-table thead th:not(:first-child) { text-align: right; }
.eval-envelope-table tbody th .sub { display: block; font-weight: 400; white-space: normal; }
.eval-envelope-excluded { margin: 0.6rem 0 0; font-size: 0.88rem; }
.eval-envelope-how { margin-top: 0.4rem; }
@media print {
  .eval-envelope, .eval-envelope-table, .eval-envelope-excluded, .eval-envelope-how { display: none !important; }
}

/* Polish (audit) */
/* Iris: one toggle folds the dashboard and employee-360 panels so the missions and the composer stay visible. */
.iris-chat .iris-panels[hidden] { display: none; }
.iris-chat .iris-panels-toggle { display: inline-flex; margin-bottom: 0.4rem; min-height: 2.25rem; max-width: 100%; text-align: left; white-space: normal; }
/* Home, week ahead table: short headers on a phone, the full label stays in title and aria-label. */
.week-table .th-short { display: none; }
@media (max-width: 600px) {
  .week-table .th-full { display: none; }
  .week-table .th-short { display: inline; }
  .week-table th, .week-table td { padding: 0.5rem 0.35rem; font-size: 0.82rem; }
  .week-table thead th { white-space: normal; }
}

/* Menu à six entrées et barre d'onglets (même composant pour Équipe, Clinique et finances, Suivi) ---------------- */
.content { min-width: 0; }
.tabbar-host:empty { display: none; }
.tabbar { max-width: 1280px; padding: 0.75rem clamp(1rem, 3vw, 2.5rem) 0; }
.tabbar-scroll { display: flex; align-items: flex-end; gap: 0.25rem; overflow-x: auto; overscroll-behavior-x: contain; border-bottom: 1px solid var(--filet); scrollbar-width: thin; }
.tabbar .tab { flex: none; display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.5rem 0.9rem; margin-bottom: -1px; border-bottom: 3px solid transparent; color: var(--encre-douce); font-size: 0.9rem; font-weight: 600; line-height: 1.3; text-decoration: none; white-space: nowrap; }
.tabbar .tab:hover { color: var(--rouge); }
.tabbar .tab[aria-current="page"] { color: var(--rouge); border-bottom-color: var(--rouge); font-weight: 700; }
.tabbar-tools { flex: none; display: inline-flex; align-items: center; gap: 0.15rem; margin-left: auto; padding-left: 1.25rem; }
.tabbar-tools-label { color: var(--encre-douce); font-size: 0.78rem; padding-right: 0.25rem; white-space: nowrap; }
.tabbar .tab-tool { min-height: 2.75rem; padding: 0.5rem 0.55rem; font-size: 0.8rem; font-weight: 500; }
.tabbar-host:not(:empty) + main { padding-top: 1.25rem; }
/* Fiche d'évaluation seule: ni menu ni onglets. */
.content:has(main.eval-sheet-mode) > .tabbar-host { display: none; }
@media print { .tabbar-host { display: none !important; } }

/* Accueil: « Ma journée » et le repli « Plus » ------------------------------------------------------------------- */
.my-day[hidden] { display: none; }
.my-day-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.my-day-list li[hidden] { display: none; }
.my-day-list a, .my-day-list .link-btn { box-sizing: border-box; display: block; width: 100%; padding: 0.6rem 0.75rem; border-radius: var(--rayon); color: var(--encre); font-size: 1rem; font-weight: 600; text-align: left; text-decoration: none; background: var(--craie); border: 1px solid var(--filet-doux); }
.my-day-list a:hover, .my-day-list .link-btn:hover { background: var(--rouge-pale); color: var(--rouge-fonce); }
.my-day-list .muted-line { color: var(--encre-douce); font-weight: 500; }
.home-more { margin: 0 0 1.5rem; }
.home-more > summary { cursor: pointer; min-height: 2.75rem; display: flex; align-items: center; gap: 0.5rem; padding: 0 0.25rem; font-weight: 600; color: var(--encre-douce); list-style: none; }
.home-more > summary::-webkit-details-marker { display: none; }
.home-more > summary::before { content: '▸'; flex: none; transition: transform 0.15s ease; }
.home-more[open] > summary::before { transform: rotate(90deg); }
.home-more > summary:hover { color: var(--encre); }
@media (prefers-reduced-motion: reduce) { .home-more > summary::before { transition: none; } }

/* Profils de poste (brouillon tiré des listes de tâches) ---------------------- */
.profile-page { min-width: 0; }
.profile-banner .profile-note { display: block; margin-top: 0.35rem; font-weight: 500; }
.profile-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1rem; }
.profile-tab { min-height: 2.75rem; padding: 0.45rem 1.1rem; border: 1px solid var(--filet); border-radius: var(--pilule); background: var(--papier); color: var(--texte); font: inherit; font-size: 0.875rem; font-weight: 500; line-height: 1.25; cursor: pointer; text-align: center; transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
.profile-tab:hover { background: var(--craie); border-color: #c9c9c9; }
.profile-tab[aria-selected="true"] { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.profile-tab:focus-visible, .profile-panel:focus-visible, .profile-search:focus-visible { outline: 2px solid var(--bleu); outline-offset: 2px; }
.profile-tab-count { font-weight: 400; opacity: 0.85; }
.profile-panel { min-width: 0; background: var(--papier); border: 1px solid var(--filet-doux); border-radius: var(--rayon-carte); box-shadow: var(--ombre-douce); padding: 1.25rem 1.5rem 1.5rem; }
.profile-print-head { display: none; }
.profile-head { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.profile-head h2 { margin: 0; }
.profile-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.5rem 1.5rem; margin: 0 0 0.9rem; }
.profile-facts div { min-width: 0; }
.profile-facts dt { font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--encre-douce); }
.profile-facts dd { margin: 0.1rem 0 0; overflow-wrap: anywhere; }
.profile-mission { max-width: 75ch; margin: 0 0 1.25rem; font-size: 1.02rem; }
.profile-missing { color: var(--ambre); font-style: italic; }
.profile-panel section { margin-top: 1.4rem; }
.profile-panel h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.profile-panel h4 { margin: 1rem 0 0.3rem; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--encre-douce); }
.profile-panel ul { margin: 0; padding-left: 1.2rem; }
.profile-panel li { margin: 0.2rem 0; overflow-wrap: anywhere; }
.profile-resp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 0.75rem 1.5rem; flex-wrap: wrap; }
.profile-find { display: grid; gap: 0.25rem; flex: 1 1 18rem; max-width: 26rem; }
/* Même hauteur que le champ : le titre et le texte saisi tombent sur la même ligne de base. */
.profile-resp-head h3 { margin: 0; line-height: 2.75rem; }
.profile-find label { font-size: 0.82rem; color: var(--encre-douce); }
.profile-search { width: 100%; min-height: 2.75rem; padding: 0.5rem 0.9rem; border: 1px solid var(--filet); border-radius: var(--rayon); font: inherit; }
.profile-count { margin: 0.4rem 0 0; font-size: 0.85rem; }
.profile-note { color: var(--ambre); font-weight: 500; }
.profile-levels dl { display: grid; grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr); gap: 0.6rem 1rem; margin: 0; }
.profile-levels dt { font-weight: 600; font-family: var(--titre); }
.profile-levels dd { margin: 0; overflow-wrap: anywhere; }
.profile-notes { margin-top: 1rem !important; color: var(--encre-douce); }
.profile-range { padding: 0.9rem 1.1rem; border: 1px solid var(--filet); border-radius: var(--rayon); background: var(--craie); }
.profile-range p { margin: 0.3rem 0; }
.profile-steps { list-style: none; padding-left: 0 !important; display: grid; gap: 0.15rem; }
.profile-sources { color: var(--encre-douce); font-size: 0.88rem; }
.profile-source-line { margin: 0.6rem 0 0; font-size: 0.85rem; }
@media (max-width: 600px) {
  .profile-panel { padding: 1rem; }
  /* Deux colonnes, toutes les rangées à la hauteur de la plus longue étiquette; un nombre impair laisse le dernier poste sur toute la largeur. */
  .profile-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 0.35rem; }
  .profile-tab { padding: 0.45rem 0.6rem; }
  .profile-tab:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .profile-resp-head h3 { line-height: 1.3; }
  .profile-levels dl { grid-template-columns: 1fr; gap: 0.1rem; }
  .profile-levels dd { margin-bottom: 0.6rem; }
  .profile-find { max-width: none; flex-basis: 100%; }
}
@media print {
  /* Un seul profil, sans menu, sans recherche ni onglets, et sans montant (le papier peut être remis à l'équipe). */
  .profile-tabs, .profile-find, .profile-count, .profile-banner, .profile-range, .profile-panel .state { display: none !important; }
  .profile-panel { border: 0; box-shadow: none; padding: 0; background: #fff; }
  .profile-print-head { display: block; margin: 0 0 8pt; padding-bottom: 6pt; border-bottom: 1pt solid #000; font-size: 9pt; color: #000; }
  .profile-panel, .profile-panel a { color: #000; }
  .profile-panel section, .profile-group { break-inside: avoid; }
  .profile-panel h4 { color: #000; }
  .profile-missing { color: #000; }
}

/* Matrice RACI (brouillon) ----------------------------------------------------- */
.profile-modes { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1rem; }
.profile-mode { min-height: 2.75rem; padding: 0.45rem 1.2rem; border: 1px solid var(--filet); border-radius: var(--rayon); background: var(--papier); color: var(--texte); font: inherit; font-family: var(--titre); font-size: 0.95rem; font-weight: 600; cursor: pointer; }
.profile-mode:hover { background: var(--craie); border-color: #c9c9c9; }
.profile-mode[aria-selected="true"] { background: var(--encre); border-color: var(--encre); color: #fff; }
.profile-mode:focus-visible, .raci-toggle:focus-visible, .raci-select:focus-visible { outline: 2px solid var(--bleu); outline-offset: 2px; }
.raci-view { min-width: 0; page: raci; }
.raci-title { margin: 0 0 0.6rem; font-size: 1.15rem; }
.raci-print-head { display: none; }
.raci-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.5rem 1.25rem; margin: 0 0 0.9rem; }
.raci-legend div { display: flex; align-items: flex-start; gap: 0.6rem; min-width: 0; }
.raci-legend dt { flex: none; }
.raci-legend dd { margin: 0; font-size: 0.88rem; color: var(--encre-douce); }
.raci-notes { margin: 0 0 1rem; padding-left: 1.2rem; max-width: 80ch; color: var(--encre-douce); font-size: 0.88rem; }
.raci-notes li { margin: 0.2rem 0; }
.raci-find { display: grid; gap: 0.25rem; max-width: 20rem; margin: 0 0 0.5rem; }
.raci-find label { font-size: 0.82rem; color: var(--encre-douce); }
.raci-select { min-height: 2.75rem; }
.raci-summary { margin: 0.25rem 0 0.75rem; font-size: 0.88rem; }
.raci-wrap { position: relative; max-width: 100%; }
.raci-table { min-width: 44rem; border-collapse: separate; border-spacing: 0; }
.raci-table th, .raci-table td { border-bottom: 1px solid var(--filet-doux); }
.raci-table thead th { position: sticky; top: 0; z-index: 2; text-align: center; vertical-align: bottom; white-space: normal; }
.raci-table thead th.raci-corner { text-align: left; left: 0; z-index: 3; }
.raci-short { display: none; }
.raci-activity, .raci-corner { position: sticky; left: 0; z-index: 1; background: var(--papier); min-width: 15rem; max-width: 22rem; text-align: left; font-weight: 500; box-shadow: 1px 0 0 var(--filet); }
.raci-corner { background: var(--craie); }
.raci-table tbody tr:hover .raci-activity { background: var(--craie); }
.raci-group th { background: var(--craie-forte); font-family: var(--titre); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--encre); padding: 0.5rem 0.85rem; text-align: left; position: static; }
.raci-toggle { all: unset; box-sizing: border-box; display: block; width: 100%; min-height: 2.75rem; padding: 0.35rem 0; cursor: pointer; color: var(--encre); line-height: 1.3; }
.raci-toggle::before { content: "+"; display: inline-block; width: 1.1rem; color: var(--encre-douce); font-weight: 600; }
.raci-toggle[aria-expanded="true"]::before { content: "−"; }
.raci-toggle:hover { text-decoration: underline; }
.raci-tbd { display: inline-block; margin: 0 0 0.35rem 1.1rem; font-size: 0.78rem; }
.raci-td, .raci-role { text-align: center; vertical-align: middle; min-width: 4.5rem; }
.raci-td { padding: 0.25rem 0.4rem; }
.raci-enc { background: var(--craie); }
.raci-focus { background: var(--ambre-pale) !important; }
.raci-cell { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; padding: 0 0.5rem; border: 2px solid var(--encre); border-radius: var(--rayon); background: var(--papier); color: var(--encre); font-family: var(--titre); font-weight: 700; font-size: 0.95rem; line-height: 1; }
.raci-cell.r { background: var(--sauge-pale); border-color: var(--sauge); color: var(--sauge); }
.raci-cell.a { background: var(--rouge-pale); border-color: var(--rouge); color: var(--rouge-fonce); }
.raci-cell.c { background: #e8efff; border-color: var(--bleu); color: var(--bleu); }
.raci-cell.i { background: var(--craie); border-color: var(--encre-douce); color: var(--encre-douce); }
.raci-cell.proposed { border-style: dashed; }
.raci-detail td { padding: 0.5rem 0.85rem 0.9rem 2rem; background: var(--craie); text-align: left; }
.raci-detail[hidden] { display: none; }
.raci-detail ul { margin: 0; padding-left: 1.1rem; }
.raci-detail li { margin: 0.25rem 0; overflow-wrap: anywhere; font-size: 0.88rem; max-width: 90ch; }
@media (max-width: 600px) {
  .raci-full { display: none; }
  .raci-short { display: inline; }
  .raci-activity, .raci-corner { min-width: 11rem; max-width: 12rem; }
  .raci-table { min-width: 36rem; }
  .raci-find { max-width: none; }
  .profile-mode { flex: 1 1 calc(50% - 0.4rem); padding: 0.45rem 0.6rem; }
}
.raci-approvals { margin-top: 2rem; }
.raci-approvals h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.raci-approvals-source { margin: 0 0 0.75rem; font-size: 0.88rem; max-width: 80ch; }
.raci-approvals-table { min-width: 40rem; }
.raci-approvals-table th, .raci-approvals-table td { text-align: left; vertical-align: top; }
.raci-approvals-table tbody th { font-weight: 600; min-width: 11rem; }
.raci-approvals-table td p { margin: 0 0 0.35rem; max-width: 70ch; overflow-wrap: anywhere; font-size: 0.9rem; }
.raci-approvals-missing { margin: 0.75rem 0 0; max-width: 90ch; font-size: 0.9rem; color: var(--encre-douce); }
@page raci { size: landscape; margin: 12mm; }
@media print {
  /* Matrice : ni sélecteur, ni bandeau, ni boutons; légende, notes et tableau restent, pointillé conservé. */
  .profile-modes, .raci-find, .raci-banner, .raci-summary, .profile-page-raci .state { display: none !important; }
  .raci-print-head { display: block; margin: 0 0 8pt; padding-bottom: 6pt; border-bottom: 1pt solid #000; font-size: 9pt; color: #000; }
  .raci-wrap { overflow: visible; border: 0; }
  .raci-table { min-width: 0; font-size: 8.5pt; }
  .raci-table th, .raci-table td { padding: 2pt 4pt; border-bottom: 0.5pt solid #000; }
  .raci-table thead th, .raci-activity, .raci-corner { position: static; box-shadow: none; }
  .raci-full { display: inline; }
  .raci-short { display: none; }
  .raci-toggle { min-height: 0; padding: 0; color: #000; }
  .raci-toggle::before { content: none; }
  .raci-tbd { color: #000; }
  .raci-detail { display: none !important; }
  .raci-focus, .raci-enc, .raci-group th { background: #fff !important; }
  .raci-group th { border-top: 1pt solid #000; color: #000; }
  .raci-cell { min-width: 0; min-height: 0; padding: 1pt 5pt; background: #fff !important; color: #000 !important; border-color: #000 !important; border-width: 1pt; }
  .raci-cell.proposed { border-style: dashed; }
  .raci-table tr { break-inside: avoid; }
  .raci-legend dd, .raci-notes { color: #000; }
  .raci-approvals { break-before: page; }
  .raci-approvals .table-wrap { overflow: visible; border: 0; }
  .raci-approvals-table { min-width: 0; font-size: 8.5pt; }
  .raci-approvals-source, .raci-approvals-missing, .raci-approvals .profile-note { color: #000; }
}

/* Qui porte quoi (profils de poste, 3e vue) ----------------------------- */
.mandate-view { min-width: 0; page: mandates; }
.mandate-title-main { margin: 0 0 0.6rem; font-size: 1.15rem; }
.mandate-print-head { display: none; }
.mandate-banner .profile-note { display: block; margin-top: 0.35rem; }
.mandate-summary { margin: 0 0 1rem; font-family: var(--titre); font-weight: 600; color: var(--encre); overflow-wrap: anywhere; }
.mandate-view h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.mandate-orphans { margin: 0 0 1.25rem; padding: 0.9rem 1.1rem; border: 1px solid #f2b6ba; border-left: 4px solid var(--rouge); border-radius: var(--rayon); background: var(--rouge-pale); max-width: 80ch; }
.mandate-orphans h3 { color: var(--rouge-fonce); }
.mandate-orphans p { margin: 0 0 0.5rem; }
.mandate-find { display: grid; gap: 0.25rem; max-width: 26rem; margin: 0 0 0.25rem; }
.mandate-find label { font-size: 0.82rem; color: var(--encre-douce); }
.mandate-search { width: 100%; min-height: 2.75rem; padding: 0.5rem 0.9rem; border: 1px solid var(--filet); border-radius: var(--rayon); font: inherit; }
.mandate-search:focus-visible { outline: 2px solid var(--bleu); outline-offset: 2px; }
.mandate-count-line { margin: 0.25rem 0 1rem; font-size: 0.85rem; }
.mandate-team { margin: 0 0 1.5rem; }
.mandate-team > h3 { padding-bottom: 0.3rem; border-bottom: 1px solid var(--filet); }
.mandate-people { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 0.85rem; align-items: start; }
.mandate-person { min-width: 0; }
.mandate-card { min-width: 0; height: 100%; background: var(--papier); border: 1px solid var(--filet-doux); border-radius: var(--rayon-carte); box-shadow: var(--ombre-douce); padding: 0.95rem 1.1rem 1.1rem; }
.mandate-card-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.1rem 0.75rem; align-items: baseline; margin-bottom: 0.6rem; }
.mandate-card-head h4 { margin: 0; font: 600 1.02rem/1.3 var(--titre); color: var(--encre); overflow-wrap: anywhere; }
.mandate-title { grid-column: 1; margin: 0; font-size: 0.85rem; color: var(--encre-douce); overflow-wrap: anywhere; }
.mandate-count { grid-column: 2; grid-row: 1; margin: 0; font-size: 0.82rem; font-weight: 500; color: var(--encre-douce); white-space: nowrap; }
.mandate-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.mandate-item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.5rem; min-width: 0; overflow-wrap: anywhere; }
.mandate-label { font-weight: 500; }
.mandate-with, .mandate-older { font-size: 0.82rem; color: var(--encre-douce); }
.mandate-sole { font-size: 0.74rem; font-weight: 500; padding: 0.05rem 0.55rem; border-radius: var(--pilule); border: 1px solid var(--filet); background: var(--craie); color: var(--encre); }
.mandate-matrix { flex: 1 0 100%; font-size: 0.78rem; color: var(--encre-douce); }
.mandate-dropped { color: var(--encre-douce); }
.mandate-dropped .mandate-label { font-weight: 400; text-decoration: line-through; text-decoration-thickness: 1px; }
.mandate-dropped-note { font-size: 0.85rem; font-style: italic; }
.mandate-unlisted, .mandate-sources { margin-top: 1.5rem; max-width: 80ch; }
.mandate-names { margin: 0; padding-left: 1.2rem; columns: 2 12rem; }
.mandate-notes, .mandate-versions { margin: 0 0 0.75rem; padding-left: 1.2rem; font-size: 0.88rem; color: var(--encre-douce); }
.mandate-notes li, .mandate-versions li { margin: 0.25rem 0; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .mandate-find { max-width: none; }
  .mandate-orphans { padding: 0.8rem 0.9rem; }
  .mandate-card { padding: 0.85rem 0.9rem 1rem; }
  .mandate-card-head { grid-template-columns: 1fr; }
  .mandate-count { grid-column: 1; grid-row: auto; }
}
@page mandates { margin: 12mm; }
@media print {
  /* Répartition : ni recherche ni bandeau; cartes entières, texte noir, mandats abandonnés restent barrés. */
  .mandate-find, .mandate-count-line, .mandate-banner, .profile-page-mandates .state { display: none !important; }
  .mandate-print-head { display: block; margin: 0 0 8pt; padding-bottom: 6pt; border-bottom: 1pt solid #000; font-size: 9pt; color: #000; }
  .mandate-people { display: block; }
  .mandate-person { margin: 0 0 8pt; }
  .mandate-card, .mandate-orphans, .mandate-team > h3, .mandate-unlisted, .mandate-sources, .mandate-item { break-inside: avoid; }
  .mandate-team > h3 { break-after: avoid; }
  .mandate-card { border: 0.5pt solid #000; box-shadow: none; padding: 6pt 8pt; background: #fff; }
  .mandate-orphans { border: 1pt solid #000; background: #fff; }
  .mandate-orphans h3, .mandate-card-head h4 { color: #000; }
  .mandate-title, .mandate-count, .mandate-with, .mandate-older, .mandate-matrix, .mandate-dropped, .mandate-notes, .mandate-versions { color: #000; }
  .mandate-sole { background: #fff; border-color: #000; color: #000; }
  .mandate-view .profile-note { color: #000; }
}

/* Initiatives ----------------------------------------------------------- */
.initiative-headline { margin: 0 0 1rem; font: 600 1.15rem/1.3 var(--titre); color: var(--encre); }
.initiative-filters { margin-bottom: 0.5rem; }
.initiative-filters .field { min-width: 11rem; }
.initiative-filters .btn[hidden] { display: none; }
.initiative-list { align-items: stretch; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr)); gap: 0.85rem; list-style: none; margin: 0; padding: 0; }
.initiative-list > li { min-width: 0; }
.initiative-card { display: flex; flex-direction: column; gap: 0.6rem; height: 100%; background: var(--papier); border: 1px solid var(--filet); border-radius: var(--rayon); padding: 0.95rem 1.1rem; }
.initiative-card[data-status="to_decide"] { border-left: 4px solid var(--ambre); padding-left: calc(1.1rem - 3px); }
.initiative-group + .initiative-group { margin-top: 1.5rem; }
.initiative-group-title { display: flex; align-items: baseline; gap: 0.45rem; margin: 0 0 0.6rem; font: 600 1.05rem/1.3 var(--titre); color: var(--encre); }
.initiative-group-count { font: 600 0.82rem/1 var(--corps); color: var(--encre-douce); }
.initiative-title { margin: 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.initiative-question { margin: 0; overflow-wrap: anywhere; }
.initiative-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.55rem; margin: 0; color: var(--encre-douce); font-size: 0.82rem; }
.initiative-updated { margin: 0; color: var(--encre-douce); font-size: 0.8rem; }
.initiative-summary { margin: 0; overflow-wrap: anywhere; }
.initiative-facts { display: grid; gap: 0.4rem; margin: 0; }
.initiative-facts > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0.5rem; align-items: baseline; }
.initiative-facts dt { color: var(--encre-douce); font-size: 0.82rem; }
.initiative-facts dd { margin: 0; overflow-wrap: anywhere; }
.initiative-facts .sub { display: block; color: var(--encre-douce); font-size: 0.82rem; }
.initiative-note { white-space: pre-line; }
.initiative-overdue { color: var(--rouge-fonce); font-weight: 600; }
.initiative-estimate { margin: 0; padding: 0.5rem 0.7rem; background: var(--craie); border-radius: var(--rayon); font-size: 0.88rem; overflow-wrap: anywhere; }
.initiative-estimate .sub { display: block; color: var(--encre-douce); font-size: 0.78rem; }
.initiative-verify h4, .initiative-sources h4 { margin: 0 0 0.2rem; font: 600 0.82rem/1.3 var(--corps); color: var(--encre); }
.initiative-verify h4 { color: var(--ambre); }
.initiative-verify ul { margin: 0; padding-left: 1.1rem; font-size: 0.88rem; }
.initiative-verify li { overflow-wrap: anywhere; }
.initiative-sources ul { margin: 0; padding-left: 1.1rem; font-size: 0.85rem; }
.initiative-sources li { margin-bottom: 0.4rem; overflow-wrap: anywhere; }
.initiative-source-title { display: block; color: var(--encre-douce); }
.initiative-quote { display: block; font-style: italic; }
.initiative-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.4rem 0.75rem; }
.initiative-foot .btn { margin-left: auto; }
/* Au repos, les cartes d'une rangée ont la même hauteur et leurs actions s'alignent; dès qu'un contexte est déplié, chacune reprend sa hauteur. */
.initiative-foot { margin-top: auto; }
.initiative-list:has(.initiative-detail:not([hidden])) { align-items: start; }
.initiative-toggle { color: var(--encre); font-size: 0.85rem; font-weight: 600; }
.initiative-toggle::before { content: '▸'; display: inline-block; margin-right: 0.4rem; color: var(--encre-douce); transition: transform 0.15s ease; }
.initiative-toggle[aria-expanded="true"]::before { transform: rotate(90deg); }
.initiative-toggle:hover { text-decoration-color: currentColor; }
.initiative-detail { display: grid; gap: 0.65rem; padding-top: 0.7rem; border-top: 1px solid var(--filet-doux); }
.initiative-detail[hidden] { display: none; }
.initiative-form { display: grid; gap: 0.8rem; min-width: min(36rem, 100%); }
.initiative-form textarea { width: 100%; min-height: 4.5rem; resize: vertical; }
.initiative-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.8rem; }
.initiative-error { margin: 0; color: var(--rouge-fonce); font-weight: 600; }
.initiative-dialog-message .banner { margin-bottom: 0; max-width: none; }
.initiative-dialog-message ul { margin: 0.3rem 0; padding-left: 1.1rem; }
.initiative-conflict-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0.4rem 0 0; }
@media (max-width: 480px) { .initiative-facts > div { grid-template-columns: 1fr; gap: 0.1rem; } .initiative-filters .field { min-width: 0; flex: 1 1 40%; } .initiative-card { padding: 0.85rem 0.95rem; } .initiative-card[data-status="to_decide"] { padding-left: calc(0.95rem - 3px); } }
@media (prefers-reduced-motion: reduce) { .initiative-toggle::before { transition: none; } }
@media print {
  .initiative-filters, .initiative-foot { display: none !important; }
  .initiative-group-title { font-size: 12pt; break-after: avoid; }
  .initiative-detail { border-top: 0; padding-top: 0; }
  .initiative-list { display: block; }
  .initiative-list > li { break-inside: avoid; margin-bottom: 10pt; }
  .initiative-card { border: 0.75pt solid #000; border-radius: 0; padding: 6pt 8pt; break-inside: avoid; }
  .initiative-card[data-status="to_decide"] { border-left: 3pt solid #000; }
  .initiative-estimate { background: none; border: 0.5pt dashed #000; }
  .initiative-headline { font-size: 14pt; }
}

/* Finitions du 10 novembre : cibles tactiles confortables au doigt (boutons de tri, liens-boutons, liens de documents). */
@media (pointer: coarse), (max-width: 640px) {
  thead th button { min-height: 2.25rem; }
  .link-btn { display: inline-flex; align-items: center; min-height: 2.25rem; }
  .statement-link { display: inline-flex; align-items: center; min-height: 2.25rem; }
  .track .dot::after { content: ''; position: absolute; inset: -12px; }
}

/* Finitions du 10 novembre : totaux en plage sur une seule ligne, plage d'une famille sous son nom, navigation de semaine au doigt. */
.totals { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.totals dd { font-size: 1.3rem; white-space: nowrap; }
@media (max-width: 640px) {
  .totals dd { white-space: normal; }
  .page-head .tools > .muted { flex: 1 0 100%; }
  .page-head .tools .btn.primary { flex: 1 0 100%; }
}

/* Finitions du 10 novembre : actions d'une ligne sur une seule ligne; au téléphone, trois boutons de semaine égaux et un journal sans colonne redondante. */
td .row-actions .btn.small { white-space: nowrap; }
/* Contrats à l'ordinateur : les quatre actions s'empilaient sur 167 px par ligne. Deux par rangée, des marges
   de cellule plus serrées pour que le nom tienne, et le fond blanc des autres tableaux. */
.table-wrap:has(> .contracts-table) { background: var(--papier); }
@media (min-width: 641px) {
  .contracts-table th, .contracts-table td { padding-inline: 0.6rem; }
  .contracts-table th:first-child, .contracts-table td:first-child { padding-left: 0.85rem; min-width: 10rem; }
  .contracts-table td .row-actions { gap: 0.1rem 0.15rem; min-width: 10.5rem; }
  .contracts-table td .row-actions .btn.quiet { padding-inline: 0.5rem; min-height: 1.9rem; }
}
td .chip { white-space: nowrap; }
@media (max-width: 640px) {
  .page-head .tools .btn.small { flex: 1 1 0; padding-left: 0.4rem; padding-right: 0.4rem; white-space: nowrap; }
  .journal-table th:nth-child(2), .journal-table td:nth-child(2) { display: none; }
  /* Le journal en fiches (12 nov.) : la date et le statut sur une ligne, le résumé en pleine largeur dessous. À 390 px,
     la colonne « Résumé » ne faisait que 100 px et une ligne en prenait huit. */
  .journal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .journal-table, .journal-table tbody { display: block; }
  .journal-table tr { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 0.75rem; padding: 0.75rem 0.85rem; border-bottom: 1px solid var(--filet-doux); }
  .journal-table tr:last-child { border-bottom: 0; }
  .journal-table td { display: block; padding: 0; border: 0; }
  .journal-table td:nth-child(1) { color: var(--encre-douce); font-size: 0.82rem; }
  .journal-table td:nth-child(3) { grid-column: 1 / -1; grid-row: 2; }
  .journal-table td:nth-child(4) { grid-column: 2; grid-row: 1; justify-self: end; }
  /* Les contrats en fiches (12 nov.) : le tableau de neuf colonnes laissait « Actions » hors écran et des lignes de
     215 px. Ordre de la fiche : nom et pastille, document et date, quatre conditions étiquetées, puis les actions. */
  .contracts-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .contracts-table, .contracts-table tbody { display: block; }
  .contracts-table tr { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.4rem 0.75rem; padding: 0.9rem 0.85rem; border-bottom: 1px solid var(--filet-doux); }
  .contracts-table tr:last-child { border-bottom: 0; }
  .contracts-table td { display: block; padding: 0; border: 0; text-align: left; }
  .contracts-table td:nth-child(1) { order: 1; flex: 1 1 55%; font-weight: 600; }
  .contracts-table td:nth-child(1) .sub { font-weight: 400; }
  .contracts-table td:nth-child(8) { order: 2; flex: 0 0 auto; margin-left: auto; }
  .contracts-table td:nth-child(2) { order: 3; flex: 0 0 auto; }
  .contracts-table td:nth-child(3) { order: 4; flex: 1 1 40%; color: var(--encre-douce); }
  /* Chaque condition prend la largeur de son texte : « 3 semaines » ne touche plus le bord de la fiche. */
  .contracts-table td[data-label] { order: 5; flex: 1 1 auto; min-width: 3.4rem; white-space: nowrap; }
  .contracts-table td[data-label]::before { content: attr(data-label); display: block; font-size: 0.72rem; font-weight: 600; color: var(--encre-douce); }
  .contracts-table td:nth-child(9) { order: 9; flex: 1 1 100%; }
  .contracts-table td .row-actions { display: flex; flex-wrap: wrap; gap: 0.25rem; }
  /* Les quatre actions tiennent sur une rangée de 390 px : les liens discrets perdent leur marge de côté, pas leur hauteur de doigt. */
  .contracts-table td .row-actions .btn.quiet { padding-inline: 0.5rem; }
}

/* ── Horaire : grille de la semaine & palette haute clarté par équipe / poste ───────────────── */
/* Palette sémantique : Équipe chirurgie unifiée (Turquoise CHX) + 6 postes distincts (contraste ≥ 7:1) */
.post-surgery { --post-bg: #d7f4f1; --post-border: #5bc2ba; --post-dot: #08756f; --post-ink: #063b38; --post-sub: #0b5450; }
.post-vet { --post-bg: #e2f4e8; --post-border: #7fc59a; --post-dot: #166534; --post-ink: #0d3b23; --post-sub: #185736; }
.post-tech { --post-bg: #e4edfe; --post-border: #8baef6; --post-dot: #1d4ed8; --post-ink: #102a6b; --post-sub: #1b3f99; }
.post-aide { --post-bg: #fdebe4; --post-border: #ea9f84; --post-dot: #b33e19; --post-ink: #541b09; --post-sub: #7d2b10; }
.post-reception { --post-bg: #fef1d6; --post-border: #e3b55c; --post-dot: #945706; --post-ink: #4a2a02; --post-sub: #6e4005; }
.post-lead { --post-bg: #f1e8fc; --post-border: #ba99ea; --post-dot: #6832b3; --post-ink: #32145c; --post-sub: #4f238c; }
.post-ops { --post-bg: #edf0f4; --post-border: #b8c2cf; --post-dot: #475569; --post-ink: #1e293b; --post-sub: #334155; }

.shift-dot { display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 999px; background: var(--post-dot, var(--sauge)); flex: none; }
.sched-post-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0 0 0.75rem; padding: 0.55rem 0.7rem; background: var(--craie); border: 1px solid var(--filet); border-radius: var(--rayon); }
.sched-post-bar-label { font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--encre-douce); margin-right: 0.2rem; }
.post-filter-chip { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 0.38rem; min-height: 2rem; padding: 0.25rem 0.65rem; border-radius: 999px; border: 1px solid var(--post-border, var(--filet)); background: var(--post-bg, var(--papier)); color: var(--post-ink, var(--encre)); font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: transform 0.1s ease, box-shadow 0.12s ease; }
.post-filter-chip.all { background: var(--papier); border-color: var(--filet); color: var(--encre); }
.post-filter-chip:hover { box-shadow: var(--ombre); }
.post-filter-chip:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; }
.post-filter-chip.active { box-shadow: 0 0 0 2px var(--post-dot, var(--rouge)); font-weight: 700; }
.post-filter-chip.all.active { background: var(--encre); border-color: var(--encre); color: var(--papier); box-shadow: none; }

.sched-narrow { display: none; }
.sched-grid { width: 100%; min-width: 62rem; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.sched-grid th, .sched-grid td { vertical-align: top; padding: 0.42rem; border-bottom: 1px solid var(--filet-doux); border-right: 1px solid var(--filet-doux); white-space: normal; }
.sched-grid thead th { position: sticky; top: 0; z-index: 2; background: var(--craie); text-align: left; font-weight: 400; }
.sched-grid .sched-corner, .sched-grid tbody th[scope="row"] { width: 14rem; position: sticky; left: 0; z-index: 1; background: var(--papier); text-align: left; font-weight: 400; }
.sched-grid .sched-corner { z-index: 3; background: var(--craie); font-weight: 600; }
.sched-day > span { display: block; }
.sched-day-name { font-family: var(--titre); font-weight: 600; font-size: 1rem; color: var(--encre); text-transform: capitalize; }
.sched-day-total, .sched-day-cover, .sched-day-load { font-size: 0.74rem; color: var(--encre-douce); line-height: 1.35; }
.sched-day .sched-chx-day { display: inline-flex; align-items: center; gap: 0.28rem; margin: 0.2rem 0 0.12rem; padding: 0.1rem 0.44rem; border-radius: 999px; background: #d7f4f1; border: 1px solid #5bc2ba; color: #063b38; font-size: 0.69rem; font-weight: 700; white-space: nowrap; --post-dot: #08756f; }
.sched-chx-day.warn { background: #fef1d6; border-color: #e3b55c; color: #4a2a02; --post-dot: #945706; }
.sched-day-summary .sched-chx-day { display: inline-flex; align-items: center; gap: 0.28rem; padding: 0.1rem 0.45rem; border-radius: 999px; background: #d7f4f1; border: 1px solid #5bc2ba; color: #063b38; font-size: 0.72rem; font-weight: 700; --post-dot: #08756f; vertical-align: middle; }
.sched-day .chip { margin-top: 0.2rem; font-size: 0.7rem; }
.sched-grid .today { background: #fffaf0; }
.sched-grid thead .today { box-shadow: inset 0 3px 0 var(--rouge); }
.sched-grid tbody th strong { display: block; font-weight: 600; color: var(--encre); line-height: 1.25; }
.sched-grid tbody th .sub { display: block; }
.emp-role-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.28rem; margin-top: 0.22rem; }
.emp-post-badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.08rem 0.44rem; border-radius: 999px; background: var(--post-bg, var(--craie)); border: 1px solid var(--post-border, var(--filet)); color: var(--post-ink, var(--encre)); font-size: 0.7rem; font-weight: 600; line-height: 1.3; }
.emp-chx-pill { display: inline-flex; align-items: center; padding: 0.08rem 0.38rem; border-radius: 999px; background: #086963; color: #ffffff; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.03em; }
.sched-group th { position: static; padding: 0.35rem 0.55rem; background: var(--craie); border-top: 1px solid var(--filet); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--encre); }
.sched-group-dot { display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 999px; background: var(--tone, var(--encre-douce)); margin-right: 0.45rem; vertical-align: middle; }
.sched-grid tbody .sched-group th .sub { display: inline; margin-left: 0.6rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.sched-group.vet, .sched-day-group.vet { --tone: #166534; }
.sched-group.tech, .sched-day-group.tech { --tone: #1d4ed8; }
.sched-group.aide, .sched-day-group.aide { --tone: #b33e19; }
.sched-group.reception, .sched-day-group.reception { --tone: #945706; }
.sched-group.other, .sched-day-group.other { --tone: #475569; }
.sched-open th, .sched-open td { background: #fff6f6; }
.sched-grid td { position: relative; }
.week-hours { margin-top: 0.32rem; }
.week-hours-text { display: block; font-size: 0.73rem; color: var(--encre-douce); }
.week-hours-bar { display: block; height: 4px; margin-top: 0.2rem; border-radius: 2px; background: var(--craie-forte); overflow: hidden; }
.week-hours-bar > span { display: block; height: 100%; background: var(--sauge); }
.week-hours.over .week-hours-text { color: var(--rouge-fonce); font-weight: 600; }
.week-hours.over .week-hours-bar > span { background: var(--rouge); }
.shift-pill { all: unset; box-sizing: border-box; display: block; width: 100%; margin-bottom: 0.28rem; padding: 0.28rem 0.42rem; border: 1px solid var(--post-border, var(--filet)); border-radius: 6px; background: var(--post-bg, var(--papier)); font-size: 0.77rem; line-height: 1.28; color: var(--post-ink, var(--encre)); cursor: pointer; transition: opacity 0.15s ease, box-shadow 0.12s ease; }
.shift-pill:hover { box-shadow: var(--ombre); }
.shift-pill:focus-visible, .shift-add:focus-visible, .sched-pick:focus-visible { outline: 3px solid var(--bleu); outline-offset: 1px; }
.shift-pill.dimmed, .shift-draft.dimmed { opacity: 0.28; }
.shift-head { display: flex; align-items: center; gap: 0.28rem; }
.shift-time { font-weight: 700; font-variant-numeric: tabular-nums; }
.shift-head { min-width: 0; }
.shift-chx-tag { display: inline-block; padding: 0.03rem 0.28rem; border-radius: 4px; background: #086963; color: #ffffff; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.03em; line-height: 1.25; flex: none; }
.shift-position { display: flex; align-items: center; gap: 0.26rem; flex-wrap: wrap; margin-top: 0.12rem; font-size: 0.7rem; font-weight: 600; color: var(--post-sub, var(--encre-douce)); line-height: 1.25; }
.shift-state { display: block; margin-top: 0.08rem; font-size: 0.7rem; font-weight: 700; color: var(--post-sub, var(--ambre)); }
.shift-pill.draft { border-style: dashed; border-width: 1.5px; }
.shift-pill.leave { border-color: #c5d1e3; background: #eef2f7; color: #334155; }
.shift-pill.open { box-shadow: inset 0 0 0 1px rgba(179, 38, 30, 0.22); }
.shift-draft { position: relative; }
.shift-draft input { position: absolute; right: 0.35rem; bottom: 0.5rem; margin: 0; }
.shift-draft .shift-state { padding-right: 1.2rem; }
.shift-add { all: unset; box-sizing: border-box; display: block; width: 100%; min-height: 1.5rem; border: 1px dashed transparent; border-radius: 6px; text-align: center; font-size: 0.9rem; line-height: 1.5rem; color: transparent; cursor: pointer; }
.sched-row:hover .shift-add, .shift-add:focus-visible { border-color: var(--filet); color: var(--encre-douce); }
.shift-add:hover { border-color: var(--rouge) !important; color: var(--rouge) !important; background: var(--rouge-pale); }
.sched-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0 0 0.6rem; }
.sched-legend-title { font-size: 0.76rem; font-weight: 600; color: var(--encre-douce); }
.sched-legend .shift-pill { width: auto; margin: 0; cursor: default; font-size: 0.72rem; padding: 0.2rem 0.5rem; }
.sched-legend .shift-pill:hover { box-shadow: none; }
.sched-legend .shift-pill.draft { border-color: var(--encre-douce); }
.shift-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-top: 0.85rem; }
.shift-impact { margin: 0.75rem 0 0; min-height: 1.4em; }
.sched-picker { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.25rem; }
.sched-pick { all: unset; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 3.5rem; border: 1px solid var(--filet); border-radius: var(--rayon); background: var(--papier); font-size: 0.72rem; color: var(--encre-douce); cursor: pointer; text-transform: capitalize; }
.sched-pick strong { font-family: var(--titre); font-size: 1.05rem; color: var(--encre); }
.sched-pick.today { box-shadow: inset 0 3px 0 var(--rouge); }
.sched-pick.on { border-color: var(--rouge); background: var(--rouge-pale); color: var(--rouge-fonce); }
.sched-pick.on strong { color: var(--rouge-fonce); }
.sched-day-summary { margin: 0.9rem 0 0.5rem; line-height: 1.5; }
.sched-day-group { margin-top: 0.85rem; }
.sched-day-group h3 { display: flex; align-items: center; margin: 0 0 0.35rem; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.sched-day-group ul { list-style: none; margin: 0; padding: 0; }
.sched-day-group li { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid var(--filet-doux); }
.sched-who { min-width: 0; flex: 1 1 auto; }
.sched-who strong, .sched-who .sub { display: block; }
.sched-who .emp-post-badge { margin: 0.18rem 0; }
.sched-pills { flex: 0 0 9.8rem; }
.sched-day-group li > .shift-pill, .sched-day-group li > .shift-draft { flex: 0 0 9.8rem; width: 9.8rem; }
.sched-narrow .shift-draft input { width: 1.25rem; height: 1.25rem; bottom: 0.7rem; }
.sched-narrow .shift-pill { min-height: 2.75rem; padding: 0.45rem 0.55rem; font-size: 0.85rem; }
.sched-narrow > .sched-day-list > .btn { width: 100%; margin-top: 1rem; }
@media (max-width: 860px) {
  .sched-wide { display: none; }
  .sched-narrow { display: block; }
}
@media print {
  .shift-add, .sched-legend, .sched-narrow, .shift-draft input, .sched-post-bar { display: none !important; }
  .sched-wide { display: block !important; overflow: visible; }
  .sched-grid { min-width: 0; font-size: 8pt; }
  .sched-grid thead th, .sched-grid .sched-corner, .sched-grid tbody th[scope="row"] { position: static; }
  .shift-pill, .emp-post-badge, .shift-chx-tag, .sched-chx-day { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Remplaçants d'un quart (page Horaire, lecture seule) */
.repl-open { min-height: 2.75rem; padding-inline: 0.9rem; }
.repl-open:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; }
dialog.repl-panel { width: min(34rem, calc(100vw - 2rem)); overflow-y: auto; overflow-wrap: anywhere; }
.repl-panel header h2 { min-width: 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.repl-panel header button { flex: none; white-space: nowrap; overflow-wrap: normal; }
.repl-list { list-style: none; margin: 0; padding: 0; }
.repl-item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; padding: 0.65rem 0; border-bottom: 1px solid var(--filet-doux); }
.repl-name { flex: 1 1 10rem; min-width: 0; font-family: var(--titre); }
.repl-hours { flex: 0 1 auto; color: var(--encre-douce); font-variant-numeric: tabular-nums; }
.repl-flags { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.repl-excluded { margin: 0.85rem 0 0; }
.repl-note { margin: 0.5rem 0 0; font-size: 0.85rem; }
.repl-flags .chip { white-space: normal; }
/* ── Densité (10 novembre) : avertissement sur une ligne, blocs repliés, sections d'honoraires repliées ── */
details.notice { padding: 0; }
details.notice > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.55rem 1rem; cursor: pointer; list-style: none; font-size: 0.92rem; }
details.notice > summary::-webkit-details-marker { display: none; }
details.notice > summary strong.inline { font-weight: 600; }
.notice-more::after { content: 'Détails'; font-size: 0.82rem; text-decoration: underline; text-underline-offset: 3px; color: var(--encre-douce); white-space: nowrap; }
details.notice[open] .notice-more::after { content: 'Masquer'; }
details.notice > summary:focus-visible, details.fold > summary:focus-visible, .pricing-section-toggle:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; }
.notice-body { padding: 0 1rem 0.75rem; }
.notice-body > :last-child { margin-bottom: 0; }
section.block.folded { padding-top: 0; padding-bottom: 0; }
/* Flèche, titre puis résumé : le résumé se range toujours sous le titre, à son retrait, quelle que soit la longueur du titre. */
details.fold > summary { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0.15rem 1rem; padding: 1rem 0; cursor: pointer; list-style: none; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::before { content: '▸'; grid-row: 1 / span 2; align-self: center; color: var(--encre-douce); transition: transform 0.15s ease; }
details.fold[open] > summary::before { transform: rotate(90deg); }
details.fold > summary h2 { grid-column: 2; margin: 0; }
details.fold > summary:hover h2 { color: var(--rouge-fonce); }
.fold-summary { grid-column: 2; font-size: 0.9rem; }
details.fold[open] { padding-bottom: 1.25rem; }
.fold-tools { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.pricing-section-toggle { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2rem; font-weight: 600; }
.pricing-section-toggle::before { content: '▸'; color: var(--encre-douce); transition: transform 0.15s ease; }
.pricing-section-toggle[aria-expanded="true"]::before { transform: rotate(90deg); }
.pricing-section-toggle[disabled] { cursor: default; }
.pricing-section-tally { font-size: 0.82rem; font-weight: 400; }
.pricing-section-row:not(.opened) th { background: var(--papier); }
.comp-table td:not(:first-child):not(:last-child) .sub { display: none; }
/* Les précisions sous un chiffre passent à la ligne entre deux éléments (« 122 304 $ – / 174 720 $ ») : le tableau de neuf
   colonnes tient ainsi dans la page à 1 366 px, sans défilement de côté. */
.comp-table td .sub-compact { display: block; font-size: 0.76rem; color: var(--encre-douce); white-space: normal; font-variant-numeric: tabular-nums; }
.comp-table th, .comp-table td { padding-left: 0.55rem; padding-right: 0.55rem; }
.comp-table thead th { white-space: normal; vertical-align: bottom; line-height: 1.25; }
.comp-table td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Neuf colonnes ne tiennent pas à 1 366 px : la colonne « Employé » reste en place pendant le défilement et garde une
   largeur lisible (le nom tenait sur 100 px, le poste sur cinq lignes). */
.comp-table th:first-child, .comp-table td:first-child { position: sticky; left: 0; z-index: 1; min-width: 10rem; background: var(--papier); box-shadow: 1px 0 0 var(--filet-doux); }
.comp-table thead th:first-child { z-index: 2; background: var(--craie); }
.comp-table tbody tr:hover td:first-child { background: var(--craie); }
.comp-table tbody tr[data-open="true"] td:first-child { background: var(--rouge-pale); }
.comp-audit-pills { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0 0 0.85rem; }
.comp-audit-pills[hidden] { display: none; }
.comp-pill-btn { min-height: 2.75rem; padding: 0.35rem 0.85rem; border: 1px solid var(--filet); border-radius: var(--pilule); background: var(--papier); font: inherit; font-size: 0.84rem; color: var(--texte); cursor: pointer; transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
.comp-pill-btn:hover { background: var(--craie); }
.comp-pill-btn[aria-pressed="true"] { background: var(--encre); border-color: var(--encre); color: #fff; font-weight: 600; }
.comp-pill-btn:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; }
.comp-cards-mobile { display: none; }
@media (max-width: 820px) {
  .comp-table-desktop { display: none; }
  .comp-cards-mobile { display: grid; gap: 0; border-top: 1px solid var(--filet-doux); }
  .comp-card { padding: 0.9rem 0; border-bottom: 1px solid var(--filet-doux); display: grid; gap: 0.65rem; }
  .comp-card:last-child { border-bottom: 0; padding-bottom: 0.2rem; }
  .comp-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; }
  .comp-card-head > .chip { flex: none; }
  .comp-card-name { display: block; font: 600 1.02rem/1.3 var(--titre); color: var(--encre); }
  .comp-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem 0.85rem; margin: 0; }
  .comp-card-grid dt { font-size: 0.78rem; color: var(--encre-douce); }
  .comp-card-grid dd { margin: 0; font-size: 0.9rem; font-weight: 500; color: var(--encre); font-variant-numeric: tabular-nums; }
  .comp-card-actions .btn.small { min-height: 2.75rem; padding: 0.4rem 0.95rem; font-size: 0.84rem; }
}
@media (max-width: 640px) { .pricing-section-cell { max-width: calc(100vw - 5.5rem); } details.fold > summary h2 { font-size: 1.1rem; } }
@media (prefers-reduced-motion: reduce) { details.fold > summary::before, .pricing-section-toggle::before { transition: none; } }
@media print { details.notice > summary .notice-more, details.fold > summary::before { display: none; } .comp-table td .sub { display: block !important; } }

/* ── Échelles: la règle graduée ── */
.scale-toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: center; margin: 0 0 0.75rem; }
.scale-toolbar .scale-year { margin: 0; }
.scale-projection-note { margin: 0 0 0.85rem; padding: 0.55rem 0.85rem; background: var(--craie); border: 1px solid var(--filet); border-radius: var(--rayon); font-size: 0.88rem; color: var(--encre); }
.scale-projection-note[hidden] { display: none; }
.scale-empty-families { margin: 0.85rem 0 0; font-size: 0.85rem; }
.scale-lead { margin: 0 0 0.4rem; font: 500 1.05rem/1.4 var(--titre); color: var(--encre); }
.scale-missing { margin: 0 0 1rem; padding: 0.55rem 0.85rem; background: var(--ambre-pale); border-radius: var(--rayon); font-size: 0.9rem; color: var(--encre); }
.scale-families { display: grid; gap: 1.6rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.scale-family { container-type: inline-size; padding-top: 1.1rem; border-top: 1px solid var(--filet-doux); }
.scale-family:first-child { border-top: 0; padding-top: 0; }
.scale-family-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.9rem; margin-bottom: 0.4rem; }
.scale-family-head h3 { margin: 0; font: 600 1.1rem/1.3 var(--titre); color: var(--encre); }
.scale-family-head .muted { font-size: 0.85rem; }
.scale-family-body { display: grid; gap: 0.9rem 1.5rem; grid-template-columns: minmax(0, 1fr); }
@container (min-width: 46rem) { .scale-family-body { grid-template-columns: minmax(0, 1fr) 15rem; align-items: start; } }
.scale-ruler { min-width: 0; padding: 0 0.6rem; }
.ruler-stage { position: relative; padding-top: 1.9rem; }
.ruler-field { position: relative; height: calc(var(--lanes, 1) * 30px + 22px); }
.ruler-strip { position: relative; height: 1.9rem; border-radius: 4px; background: var(--craie-forte); overflow: hidden; border-bottom: 2px solid var(--encre); }
.ruler-band { position: absolute; top: 0; bottom: 0; left: calc(var(--from) * 1%); width: calc((var(--to) - var(--from)) * 1%); display: flex; align-items: center; gap: 0.35rem; padding: 0 0.4rem; background: var(--craie-forte); font-size: 0.72rem; color: var(--encre-douce); white-space: nowrap; overflow: hidden; }
.ruler-band.alt { background: #e2e5e8; }
.ruler-band b { color: var(--encre); font-weight: 600; }
/* Le nom des niveaux se lit une fois dans la légende au-dessus des règles : une bande ne porte que son code (N2), jamais
   un nom présent ici et absent là selon sa largeur. */
.ruler-band-name { display: none; }
.ruler-legend { margin: 0 0 0.9rem; font-size: 0.85rem; }
.ruler-tick { position: absolute; bottom: 0; width: 1px; height: 7px; margin-left: -0.5px; left: calc(var(--pos) * 1%); background: var(--encre-douce); }
.ruler-tick.major { height: 14px; background: var(--encre); }
.ruler-ends { display: flex; justify-content: space-between; gap: 0.5rem; margin-top: 0.3rem; font-size: 0.78rem; color: var(--encre-douce); }
.ruler-market { position: absolute; top: 0; bottom: 0; left: calc(var(--pos) * 1%); width: 0; border-left: 2px solid var(--encre); pointer-events: none; z-index: 1; }
.ruler-market::after { content: ""; position: absolute; bottom: -5px; left: -7px; width: 10px; height: 10px; transform: rotate(45deg); background: var(--papier); border: 2px solid var(--encre); }
.ruler-market-label { position: absolute; top: 0; left: 6px; padding: 0.1rem 0.45rem; background: var(--encre); color: #fff; border-radius: 4px; font-size: 0.76rem; font-weight: 500; white-space: nowrap; transform: translateY(-100%); }
.ruler-market.end .ruler-market-label { left: auto; right: -2px; }
.ruler-market.middle .ruler-market-label { left: 50%; transform: translate(-50%, -100%); }
.ruler-market.start .ruler-market-label { left: -2px; }
.scale-dot { position: absolute; z-index: 2; width: 44px; height: 44px; margin: 0 0 0 -22px; padding: 0; left: calc(var(--pos) * 1%); bottom: calc(var(--lane) * 30px - 10px); display: grid; place-items: center; background: none; border: 0; border-radius: 50%; cursor: pointer; }
.scale-dot-mark { display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--rouge); border: 2px solid var(--papier); box-shadow: 0 0 0 1px var(--rouge-fonce); transition: transform 0.12s ease; }
.scale-dot.assumed .scale-dot-mark { background: var(--ambre); box-shadow: 0 0 0 1px var(--ambre); }
.scale-dot.outside .scale-dot-mark { background: var(--encre); box-shadow: 0 0 0 1px var(--encre); }
.scale-dot:hover .scale-dot-mark { transform: scale(1.25); }
.scale-dot.on { z-index: 4; }
.scale-dot.on .scale-dot-mark { transform: scale(1.5); box-shadow: 0 0 0 3px var(--papier), 0 0 0 5px var(--encre); }
.scale-dot:focus-visible { outline: 3px solid var(--bleu); outline-offset: -4px; }
@media (prefers-reduced-motion: no-preference) {
  .scale-dot-mark { animation: scale-land 0.5s ease-out both; animation-delay: calc(var(--i, 0) * 25ms); }
  @keyframes scale-land { from { transform: translateY(-14px); opacity: 0; } to { transform: none; opacity: 1; } }
}
.scale-card-slot { min-height: 0; }
.scale-card { position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.5rem 1rem; margin-top: 0.7rem; padding: 0.7rem 0.9rem; background: var(--papier); border: 1px solid var(--encre); border-radius: var(--rayon); box-shadow: var(--ombre); }
.scale-card::before { content: ""; position: absolute; top: -7px; left: calc(var(--pos) * 1%); width: 12px; height: 12px; margin-left: -6px; transform: rotate(45deg); background: var(--papier); border-top: 1px solid var(--encre); border-left: 1px solid var(--encre); }
@media (prefers-reduced-motion: no-preference) { .scale-card { animation: scale-card-in 0.16s ease-out; } @keyframes scale-card-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } } }
.scale-card-main { display: grid; gap: 0.2rem; min-width: 0; flex: 1 1 16rem; }
.scale-card-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.6rem; }
.scale-card-role { font-size: 0.84rem; }
.scale-card-name { font: 600 1.05rem/1.3 var(--titre); color: var(--encre); }
.scale-card-rate { font: 600 1.35rem/1.2 var(--titre); color: var(--encre); font-variant-numeric: tabular-nums; }
.scale-card-level { font-size: 0.9rem; color: var(--encre); }
.scale-card-metrics { margin: 0.1rem 0 0; font-size: 0.84rem; font-variant-numeric: tabular-nums; }
.scale-card-flags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.2rem; }
.scale-card-source { font-size: 0.8rem; }
.scale-card-actions { align-items: center; }
.scale-card-actions .btn.small { min-height: 2.75rem; padding: 0.35rem 0.9rem; }
.scale-card-close { min-height: 2.75rem; }
.univet-live-panel { margin-top: 1.35rem; padding-top: 1.1rem; border-top: 1px solid var(--filet); display: grid; gap: 0.75rem; }
.univet-live-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 1rem; }
.univet-live-head h3 { margin: 0; font: 600 1rem/1.3 var(--titre); }
.observed-tables { display: grid; gap: 1.25rem; }
.observed-tables h3 { margin: 0 0 0.45rem; font: 600 0.98rem/1.3 var(--titre); color: var(--encre); }
.scale-people { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.scale-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0 0.6rem; width: 100%; min-height: 2.75rem; padding: 0.2rem 0.5rem; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--filet-doux); font: inherit; font-size: 0.9rem; color: var(--texte); cursor: pointer; }
.scale-row:hover { background: var(--craie); }
.scale-row.on { background: var(--craie-forte); font-weight: 600; color: var(--encre); }
.scale-row:focus-visible { outline: 3px solid var(--bleu); outline-offset: -3px; }
.scale-row-dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--rouge); }
.scale-row-dot.assumed { background: var(--ambre); }
.scale-row-dot.outside { background: var(--encre); }
.scale-row-name { overflow-wrap: anywhere; }
.scale-row-rate { font-variant-numeric: tabular-nums; white-space: nowrap; }
.scale-row-flag { grid-column: 2 / -1; font-size: 0.76rem; }
.scale-legend-note { margin: 0.3rem 0 0; font-size: 0.82rem; }
.legend { margin-top: 1.4rem; }

/* Grille par famille */
.scale-year { display: inline-flex; margin: 0 0 0.6rem; border: 1px solid var(--filet); border-radius: var(--pilule); overflow: hidden; max-width: 100%; }
.scale-year-btn { min-height: 2.75rem; padding: 0.4rem 1rem; border: 0; background: var(--papier); font: inherit; font-size: 0.88rem; color: var(--texte); cursor: pointer; }
.scale-year-btn + .scale-year-btn { border-left: 1px solid var(--filet); }
.scale-year-btn[aria-pressed="true"] { background: var(--encre); color: #fff; font-weight: 600; }
.scale-year-btn:focus-visible { outline: 3px solid var(--bleu); outline-offset: -3px; }
.scale-next-note { margin: 0 0 0.6rem; font-size: 0.88rem; }
.scale-next-note[hidden] { display: none; }
.scale-table th[scope="row"] { text-align: left; font-weight: inherit; }
.scale-grid-cards { display: none; }
@media (max-width: 639px) {
  .scale-grid-table { display: none; }
  .scale-grid-cards { display: grid; gap: 0.75rem; }
  .scale-grid-card { padding: 0.75rem 0.9rem; border: 1px solid var(--filet); border-radius: var(--rayon); background: var(--papier); }
  .scale-grid-card header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.1rem 0.75rem; margin-bottom: 0.4rem; }
  .scale-grid-card h3 { margin: 0; font: 600 1rem/1.3 var(--titre); }
  .scale-grid-card header .muted { font-size: 0.82rem; }
  .scale-grid-card dl { display: grid; gap: 0.3rem; margin: 0; }
  .scale-grid-card dl > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0.5rem; padding: 0.3rem 0; border-top: 1px solid var(--filet-doux); font-size: 0.88rem; }
  .scale-grid-card dt { color: var(--encre-douce); }
  .scale-grid-card dd { margin: 0; font-variant-numeric: tabular-nums; }
}

/* Onglets du haut: défilables, onglet actif visible, fondu de bord */
.tabbar { position: relative; }
.tabbar-scroll { position: relative; -webkit-overflow-scrolling: touch; }
.tabbar::before, .tabbar::after { content: ""; position: absolute; top: 0.75rem; bottom: 1px; width: 2.2rem; pointer-events: none; opacity: 0; transition: opacity 0.15s ease; z-index: 2; }
.tabbar::before { left: clamp(1rem, 3vw, 2.5rem); background: linear-gradient(to right, var(--craie), rgba(248, 249, 250, 0)); }
.tabbar::after { right: clamp(1rem, 3vw, 2.5rem); background: linear-gradient(to left, var(--craie), rgba(248, 249, 250, 0)); }
.tabbar.can-left::before, .tabbar.can-right::after { opacity: 1; }

/* ── Évaluations: bande de campagne, barre compacte, résumé d'erreurs, fin de rencontre ── */
.eval-band { display: flex; gap: 3px; height: 0.7rem; margin: 0.15rem 0 0.5rem; }
.eval-band-seg { min-width: 0.5rem; border-radius: var(--pilule); background: var(--filet); }
.eval-band-seg.done { background: var(--sauge); }
.eval-band-seg.draft { background: var(--ambre); }
.eval-band-seg.todo { background: #a9b3c9; }
.eval-band-seg.blocked { background: var(--rouge); }
.eval-band-legend { display: flex; flex-wrap: wrap; gap: 0.15rem 1.1rem; margin: 0; padding: 0; list-style: none; font-size: 0.86rem; color: var(--encre); }
.eval-band-legend li { display: inline-flex; align-items: center; gap: 0.4rem; }
.eval-band-legend i { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--filet); }
.eval-band-legend .done i { background: var(--sauge); }
.eval-band-legend .draft i { background: var(--ambre); }
.eval-band-legend .todo i { background: #a9b3c9; }
.eval-band-legend .blocked i { background: var(--rouge); }
.eval-rows .btn, .eval-sheet-mode .btn, .eval-progress .btn, .eval-toolbar .btn, .toolbar .btn { min-height: 2.75rem; }
.eval-none-yet { font: 400 0.95rem/1.3 var(--corps); color: var(--encre-douce); }
.eval-pay-pending { margin: 0.35rem 0 0; font-size: 0.88rem; }
.eval-envelope-blocked { margin-top: 0.2rem; }

/* Barre collante: une ligne */
html:has(main.eval-sheet-mode) { scroll-padding-bottom: 5rem; }
.eval-fields { padding-bottom: 4.5rem; }
.eval-criterion { scroll-margin-bottom: 5rem; }
.eval-bar-line { min-height: 3.25rem; flex-wrap: nowrap; gap: 0.4rem; padding: 0.25rem 0.5rem 0.25rem 0.9rem; }
.eval-bar-text { flex: 1 1 auto; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 0.8rem; min-width: 0; }
.eval-bar-action { flex: none; min-height: 2.75rem; padding-inline: 0.9rem; }
.eval-bar-toggle { flex: none; min-height: 2.75rem; }
@media (max-width: 600px) {
  .eval-bar-text { flex-direction: row; }
  .eval-bar-line { padding-left: 0.7rem; gap: 0.3rem; }
  .eval-bar-progress .bar-total { display: inline; font-weight: 500; }
  .eval-bar-action { padding-inline: 0.7rem; font-size: 0.82rem; }
  .eval-bar-toggle { padding-inline: 0.5rem; font-size: 0.82rem; }
  .eval-bar-status:not(.warn):not(.bad) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .eval-bar-status.warn, .eval-bar-status.bad { flex-basis: 100%; }
  .eval-criterion { scroll-margin-bottom: 5rem; }
}

/* Résumé des manques */
.eval-form-errors { scroll-margin: 1rem; }
.eval-form-errors:focus { outline: 3px solid var(--bleu); outline-offset: 2px; border-radius: var(--rayon); }
.eval-error-link { display: inline-block; min-height: 1.6rem; color: var(--rouge-fonce); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.eval-advisories { margin-top: 0.6rem; }
.eval-advisories p { margin: 0 0 0.2rem; font-size: 0.86rem; }
.eval-field-error { margin: 0.2rem 0 0; font-size: 0.86rem; font-weight: 600; color: var(--rouge-fonce); }
.eval-field-error[hidden] { display: none; }
.eval-date-block input[aria-invalid="true"], .eval-criterion input[aria-invalid="true"] + .seg-face { border-color: var(--rouge); }
.eval-form textarea[aria-invalid="true"], .eval-form input[type="number"][aria-invalid="true"] { border-color: var(--rouge); box-shadow: 0 0 0 1px var(--rouge); }
.eval-criterion:has(input[aria-invalid="true"]) { border-left: 3px solid var(--rouge); padding-left: 0.7rem; }

/* Fin de rencontre */
.eval-done { --tone: var(--encre-douce); max-width: none; margin: 0.5rem 0; padding: 1.6rem 1.75rem; border: 1px solid var(--filet); border-top: 6px solid var(--tone); }
.eval-done.tone-low { --tone: var(--ambre); }
.eval-done.tone-mid { --tone: var(--bleu); }
.eval-done.tone-good { --tone: var(--sauge); }
.eval-done.tone-top { --tone: #17513b; }
.eval-done-kicker { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.3rem; font-size: 0.92rem; font-weight: 600; color: var(--sauge); }
.eval-done-check { display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--sauge); }
.eval-done-check::after { content: ""; width: 0.35rem; height: 0.65rem; margin-top: -2px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.eval-done .eval-sheet-title { margin: 0; }
.eval-done-who { margin: 0.2rem 0 1.1rem; font-size: 0.95rem; }
.eval-done-cote { display: flex; align-items: center; gap: 1.1rem; margin: 0 0 1rem; }
.eval-done-num { flex: none; display: grid; place-items: center; width: 5.2rem; height: 5.2rem; border-radius: 50%; background: var(--tone); color: #fff; font: 700 2.9rem/1 var(--titre); }
.eval-done-label { margin: 0; font: 600 1.55rem/1.2 var(--titre); color: var(--tone); }
.eval-done-label span { color: var(--encre); }
.eval-done-total { margin: 0.2rem 0 0; font-size: 0.95rem; color: var(--encre-douce); }
.eval-done-minimums { margin: 0 0 1rem; padding: 0.7rem 0.9rem; background: var(--ambre-pale); border-radius: var(--rayon); font-size: 0.92rem; }
.eval-done-minimums ul { margin: 0.3rem 0 0; padding-left: 1.2rem; }
.eval-done-minimums p { margin: 0.2rem 0 0; }
.eval-done-recall { margin: 0 0 1.1rem; border-top: 1px solid var(--filet-doux); }
.eval-done-recall summary { display: flex; align-items: center; min-height: 2.75rem; cursor: pointer; font-weight: 600; color: var(--encre); }
.eval-done-recall ul { list-style: none; margin: 0; padding: 0; }
.eval-done-recall li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.1rem 1rem; padding: 0.5rem 0; border-top: 1px solid var(--filet-doux); font-size: 0.92rem; }
.eval-done-score { font-weight: 600; white-space: nowrap; }
.eval-done-example { grid-column: 1 / -1; font-size: 0.86rem; overflow-wrap: anywhere; }
.eval-done-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.eval-done-actions .btn { min-height: 2.75rem; }
.eval-done-end { margin: 0.8rem 0 0; }
@media (prefers-reduced-motion: no-preference) {
  .eval-done-num { animation: eval-pop 0.32s cubic-bezier(0.22, 1, 0.36, 1) both; }
  @keyframes eval-pop { from { transform: scale(0.92); opacity: 0; } to { transform: none; opacity: 1; } }
}
@media (max-width: 600px) {
  .eval-done { padding: 1.1rem 1rem; }
  .eval-done-num { width: 4.2rem; height: 4.2rem; font-size: 2.3rem; }
  .eval-done-label { font-size: 1.25rem; }
  .eval-done-actions .btn { flex: 1 1 100%; }
}

/* Fiche imprimable: polices du hub, en-tête de marque, une page */
@page { size: letter; margin: 12mm; }
@media print {
  .eval-paper { font: 400 9.5pt/1.35 var(--corps); color: #000; }
  .eval-paper h1 { font: 700 16pt/1.15 var(--titre); margin: 0; }
  .eval-paper h2 { font: 600 11pt/1.3 var(--titre); margin: 8pt 0 2pt; }
  .eval-paper h3 { font: 600 9.5pt/1.3 var(--titre); margin: 4pt 0 1pt; }
  .eval-paper-brand { display: flex; align-items: center; gap: 12pt; margin: 0 0 8pt; padding-bottom: 6pt; border-bottom: 2pt solid #d6101d; }
  .eval-paper-brand img { width: 26mm; height: auto; }
  .eval-paper-clinic { margin: 0; font: 500 9pt/1.2 var(--corps); letter-spacing: 0; }
  .eval-paper-id { margin: 0 0 7pt; padding-bottom: 4pt; }
  .eval-paper-table th, .eval-paper-table td { padding: 2pt 4pt; font-size: 8.8pt; }
  .eval-paper-sign { margin-top: 22pt; }
  .eval-paper-sign .line { height: 18pt; }
  .eval-paper { break-inside: avoid; page-break-after: avoid; }
}
@media screen { .eval-paper-brand img { max-width: 7rem; } }
details.notice > summary, .block > header .btn.small, details.fold > .fold-tools .btn.small { min-height: 2.75rem; }
.ruler-stage { padding-top: 2rem; }
.ruler-market-label { top: 0.1rem; transform: none; left: 6px; }
.ruler-market.middle .ruler-market-label { left: 50%; transform: translateX(-50%); }
.ruler-field { height: calc(var(--lanes, 1) * 30px + 14px); }
.scale-dot { bottom: calc(var(--lane) * 30px - 8px); }
.scale-table th .sub, .scale-table td .sub { display: block; }
.scale-table tbody th { background: transparent; text-transform: none; letter-spacing: 0; font-size: inherit; }
.scale-dot { -webkit-tap-highlight-color: transparent; }
.scale-dot:hover, .scale-dot:active { background: none; }
.scale-dot::before { content: ""; position: absolute; left: 50%; top: 30px; width: 1px; height: calc(var(--lane) * 30px + 6px); background: rgba(19, 19, 19, 0.35); pointer-events: none; }
.toolbar select, .toolbar input:not([type=checkbox]) { min-height: 2.75rem; }
.eval-error-link { display: inline; }
.eval-form-errors li { padding: 0.2rem 0; }
/* ── Petits graphiques (10 novembre) : une teinte par mesure, la valeur toujours écrite à côté de la marque ── */
.chart { margin: 0 0 1rem; }
.chart-caption { margin-bottom: 0.5rem; font-family: var(--titre); font-weight: 600; font-size: 0.95rem; color: var(--encre); }
.chart-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1.25rem 2.5rem; align-items: start; }
.chart-pair .chart { margin: 0; }
.bar-list ul, .eval-by-evaluator ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.bar-list li, .eval-by-evaluator li { display: grid; grid-template-columns: minmax(7rem, 11rem) minmax(4rem, 1fr) auto; align-items: center; gap: 0.75rem; font-size: 0.88rem; }
.bar-label { min-width: 0; color: var(--encre); line-height: 1.25; }
.bar-label .sub { display: block; }
.bar-value { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--encre); font-weight: 600; text-align: right; }
.eval-by-evaluator .bar-value { font-weight: 400; color: var(--encre-douce); }
.bar-track { display: block; height: 0.6rem; border-radius: 4px; background: var(--craie-forte); overflow: hidden; }
.bar-fill { display: block; height: 100%; min-width: 2px; border-radius: 0 4px 4px 0; background: #47607a; }
.share-track { display: flex; gap: 2px; height: 0.75rem; border-radius: 4px; background: var(--craie-forte); overflow: hidden; }
.share-part { display: block; height: 100%; min-width: 3px; }
.share-part.good, .share-key.good { background: var(--sauge); }
.share-part.warn, .share-key.warn { background: #c7861a; }
.share-part.info, .share-key.info { background: var(--bleu); }
.share-part.bad, .share-key.bad { background: var(--rouge); }
.share-part.muted, .share-key.muted { background: #b9c0c7; }
.share-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; margin: 0.5rem 0 0; padding: 0; font-size: 0.85rem; color: var(--texte); }
.share-legend li.none { color: var(--encre-douce); }
.share-key { display: inline-block; width: 0.7rem; height: 0.7rem; margin-right: 0.3rem; border-radius: 2px; vertical-align: -1px; }
.share-key.series-a, .paired-plot .series-a { background: #b9c0c7; fill: #b9c0c7; }
.share-key.series-b, .paired-plot .series-b { background: #47607a; fill: #47607a; }
.eval-by-evaluator { margin: 0.9rem 0 0; flex: 1 0 100%; }
.eval-by-evaluator .share-track { height: 0.6rem; }
.range-meter { display: block; margin-top: 0.3rem; }
.range-track { position: relative; display: block; height: 4px; width: 100%; min-width: 3.5rem; max-width: 6rem; border-radius: 2px; background: var(--craie-forte); box-shadow: inset 2px 0 0 #9aa3ab, inset -2px 0 0 #9aa3ab; }
.range-dot { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--sauge); box-shadow: 0 0 0 2px var(--papier); }
.range-meter.below .range-dot { background: #c7861a; border-radius: 2px; }
.range-meter.above .range-dot { background: var(--bleu); border-radius: 2px; }
.diverging-meter { position: relative; display: block; height: 6px; width: 100%; min-width: 3.5rem; max-width: 6rem; margin: 0.3rem 0 0 auto; border-radius: 3px; background: linear-gradient(to right, var(--craie-forte) calc(50% - 1px), #9aa3ab calc(50% - 1px), #9aa3ab calc(50% + 1px), var(--craie-forte) calc(50% + 1px)); }
.diverging-fill { position: absolute; top: 0; bottom: 0; }
.diverging-meter.pos .diverging-fill { background: var(--bleu); border-radius: 0 3px 3px 0; }
.diverging-meter.neg .diverging-fill { background: #c7861a; border-radius: 3px 0 0 3px; }
.paired-bars { margin: 1rem 0; }
.paired-bars .share-legend { margin: 0 0 0.5rem; }
.paired-plot { display: block; overflow: visible; }
.paired-base { stroke: var(--filet); stroke-width: 1; }
.paired-axis { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 0.25rem 0 0; padding: 0; font-size: 0.7rem; color: var(--encre-douce); text-align: center; }
.paired-axis li { overflow: hidden; white-space: nowrap; }
@media (max-width: 640px) {
  .bar-list li, .eval-by-evaluator li { grid-template-columns: minmax(0, 1fr) auto; }
  .bar-list .bar-track, .eval-by-evaluator .share-track { grid-column: 1 / -1; order: 3; }
  .paired-axis li:nth-child(even) { visibility: hidden; }
  /* The label kept takes the room of the hidden one next to it, instead of being cut (« mer 2 » for « mer 28 »). */
  .paired-axis li:nth-child(odd) { overflow: visible; }
}
@media print { .bar-fill, .share-part, .range-dot, .diverging-fill, .paired-plot rect { print-color-adjust: exact; -webkit-print-color-adjust: exact; } }


/* ── Horaire : à régler cette semaine, et Iris par-dessus la page ── */
.sched-todo { margin: 0 0 1rem; padding: 0.85rem 1rem; border: 1px solid #e8cf9a; border-radius: var(--rayon); background: #fffdf7; }
.sched-todo h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.sched-todo ul { list-style: none; margin: 0; padding: 0; }
.sched-todo li { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem 1.25rem; flex-wrap: wrap; padding: 0.55rem 0; border-top: 1px solid var(--filet-doux); }
.sched-todo li p { flex: 1 1 24rem; margin: 0; max-width: none; }
.sched-todo > .muted { margin: 0.5rem 0 0; font-size: 0.82rem; max-width: none; }
dialog.iris-inline-dialog { width: min(52rem, calc(100vw - 2rem)); }
.iris-inline-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem 1rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.iris-inline-suggestions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }
.iris-inline-transcript { max-height: min(52vh, 34rem); overflow-y: auto; padding-right: 0.25rem; }
.iris-inline-turn { margin-bottom: 0.9rem; }
.iris-inline-turn.user p { display: inline-block; margin: 0; padding: 0.5rem 0.8rem; border-radius: var(--rayon); background: var(--craie-forte); color: var(--encre); }
.iris-inline-steps { list-style: none; margin: 0 0 0.4rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; font-size: 0.8rem; color: var(--encre-douce); }
.iris-inline-reply .body > :last-child { margin-bottom: 0; }
.iris-inline-reply .body ul, .iris-inline-reply .body ol { padding-left: 1.25rem; }
.iris-inline-cards > * { margin-top: 0.75rem; }
.iris-inline-composer { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.iris-inline-composer input { flex: 1 1 auto; min-width: 0; }

/* ── Révision complète (10 novembre) ── */
.page-head .tools input[type="date"] { width: auto; }
.kpi-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.my-day-list a, .my-day-list .link-btn { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }
.my-day-list a::after, .my-day-list .link-btn::after { content: '›'; flex: none; font-size: 1.25rem; line-height: 1; color: var(--encre-douce); }
.my-day-list a:hover::after, .my-day-list .link-btn:hover::after { color: var(--rouge-fonce); }
details.home-more > summary { cursor: pointer; padding: 0.5rem 0; font-weight: 600; color: var(--encre); }
/* ── Évaluations: préparation, barème, calibration ── */
.eval-prep { margin: 0 0 0.75rem; padding: 0.6rem 1rem; display: grid; gap: 0.25rem; }
.eval-prep p { margin: 0; max-width: none; font-size: 0.92rem; }
.eval-prep a { color: var(--rouge-fonce); text-decoration: underline; text-underline-offset: 2px; display: inline-flex; align-items: center; min-height: 2.75rem; }
.eval-prep-ok { margin: 0 0 0.6rem; font-size: 0.86rem; }
.eval-rules { margin: 0 0 0.9rem; font-size: 0.92rem; }
.eval-rules summary { cursor: pointer; display: flex; align-items: center; min-height: 2.75rem; font-weight: 600; color: var(--encre); }
.eval-rules p { margin: 0.2rem 0 0; max-width: 46rem; line-height: 1.5; }
.eval-rules-line { margin: 0 0 0.5rem; font-size: 0.88rem; line-height: 1.45; color: var(--encre); }
.bar-where { font-weight: 400; color: var(--encre); }
.share-part.deep, .share-key.deep { background: #1d4a38; }
.eval-calibration-rows { list-style: none; margin: 0 0 0.75rem; padding: 0; display: grid; gap: 0.9rem; }
.eval-calibration-row .chart { margin: 0.3rem 0 0; }
.eval-calibration-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.9rem; font-size: 0.9rem; }
.eval-calibration-row:last-child { padding-top: 0.7rem; border-top: 1px solid var(--filet); }
.eval-calibration-avg { font-variant-numeric: tabular-nums; color: var(--encre); }
.eval-calibration p { max-width: 46rem; }
.eval-calibration-compare, .eval-calibration-self, .eval-calibration-wait, .eval-calibration-empty { margin: 0.4rem 0 0; }

/* Repère du marché: l'étiquette se pose à côté du losange, dans la zone réservée au-dessus de la règle, jamais sur l'en-tête ni sur un point. */
.ruler-stage { padding-top: 2.1rem; }
.ruler-market-label { top: 0.15rem; transform: none; left: 6px; right: auto; max-width: none; }
.ruler-market.start .ruler-market-label { left: 6px; right: auto; }
.ruler-market.end .ruler-market-label { left: auto; right: 6px; }
.ruler-market.middle .ruler-market-label { left: 6px; transform: none; }
.rm-short { display: inline; }
.rm-full { display: none; }
@container (min-width: 30rem) { .rm-short { display: none; } .rm-full { display: inline; } }
@media (max-width: 520px) {
  .eval-bar-line { flex-wrap: wrap; row-gap: 0.15rem; padding-top: 0.4rem; }
  .eval-bar-text { flex: 1 1 100%; }
  .eval-bar-where { display: inline; }
}
/* Le trait du repère du marché passe derrière le nom du niveau, jamais à travers les lettres. */
.ruler-band b, .ruler-band-name { position: relative; z-index: 2; background: inherit; }
.ruler-band b { padding-right: 0.15rem; }

/* ── Finition (10 novembre, soir) ── */
.explorer-list .verb { min-width: 4.4rem; text-transform: none; letter-spacing: 0; }
.explorer-list .locked { color: var(--encre-douce); }
.explorer-list .locked-note { font-size: 0.8rem; }
@media (max-width: 860px) {
  .block > header > a, .profile-facts dd > a, main p > a:only-child { display: inline-block; padding-block: 0.4rem; }
}

/* ── Objectifs de la clinique (accueil) ── */
.goals[hidden] { display: none; }
.goals-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.25rem 2rem; align-items: start; }
/* Une tuile seule (compte qui ne voit que l'équipe) ne s'étire pas sur toute la largeur. */
.goal { min-width: 0; max-width: 30rem; border-top: 3px solid var(--filet); padding-top: 0.6rem; }
.goal.ok { border-top-color: var(--sauge); }
.goal.off { border-top-color: #c7861a; }
/* Le titre, puis la pastille dessous, pour les trois tuiles : un titre long (« Rentabilité (BAIIA) ») ne décale plus son
   chiffre par rapport à ceux des tuiles voisines. */
.goal-head { display: grid; justify-items: start; align-content: start; gap: 0.3rem; min-height: 3.3rem; }
.goal-head h3 { margin: 0; font-family: var(--corps); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--encre-douce); }
.goal-value { margin: 0.35rem 0 0; font-family: var(--titre); font-size: 2.1rem; font-weight: 600; line-height: 1.1; color: var(--encre); font-variant-numeric: tabular-nums; }
.goal-what { margin: 0.15rem 0 0; font-size: 0.9rem; color: var(--texte); }
.goal-meter { position: relative; display: block; height: 0.5rem; margin: 0.6rem 0 0.4rem; border-radius: 4px; background: var(--craie-forte); }
.goal-meter-fill { display: block; height: 100%; min-width: 2px; border-radius: 4px; background: #47607a; }
.goal-meter-target { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--encre); }
.goal-target { margin: 0; font-size: 0.85rem; color: var(--encre-douce); }
.goal-next { margin: 0.6rem 0 0; padding-top: 0.5rem; border-top: 1px solid var(--filet-doux); font-size: 0.92rem; }
.goal-next-label { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--encre-douce); }
.goal-next a { display: inline-block; padding-block: 0.2rem; font-weight: 600; color: var(--encre); text-decoration: none; }
.goal-next a::after { content: ' ›'; color: var(--encre-douce); }
.goal-next a:hover, .goal-next a:focus-visible { color: var(--rouge-fonce); text-decoration: underline; }
.goal-next span:not(.goal-next-label) { font-weight: 600; color: var(--encre); }
.goal-note { margin: 0.4rem 0 0; font-size: 0.8rem; }
/* Téléphone : le chiffre et son libellé sur une ligne, la consigne à côté de son étiquette, des liens assez hauts pour le doigt. */
@media (max-width: 600px) {
  .goals-grid { gap: 1rem; }
  .goal-head { min-height: 0; }
  .goal-value { display: inline; font-size: 1.7rem; }
  .goal-what { display: inline; margin-left: 0.5rem; }
  .goal-next { margin-top: 0.45rem; padding-top: 0.4rem; }
  .goal-next a { padding-block: 0.45rem; }
  .goal-note { margin-top: 0.2rem; }
}
@media print { .goal { break-inside: avoid; } }
/* ── Bandeaux KPI, copilotes IA, Pouls en direct, Équipe 360° et Clinique 2.0 ── */
main, section.block { min-width: 0; max-width: 100%; }
.sched-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 0.75rem; margin: 0 0 1.25rem; }
.sched-kpi-card { display: grid; grid-template-rows: 1fr; grid-auto-rows: auto; gap: 0.35rem; background: var(--papier); border: 1px solid var(--filet); border-radius: var(--rayon-carte); padding: 0.85rem 1rem; box-shadow: var(--ombre-douce); min-width: 0; }
/* L'en-tête prend la hauteur libre : un libellé sur deux lignes ne descend plus son chiffre sous ceux des tuiles voisines. */
.sched-kpi-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; align-self: start; gap: 0.35rem; }
.sched-kpi-label { font-size: 0.78rem; font-weight: 600; color: var(--encre-douce); text-transform: uppercase; letter-spacing: 0.02em; }
.sched-kpi-val { font-family: var(--titre); font-size: 1.55rem; font-weight: 700; color: var(--encre); line-height: 1.15; font-variant-numeric: tabular-nums; }
.sched-kpi-sub { font-size: 0.78rem; color: var(--encre-douce); }
.sched-kpi-pills { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.15rem; }

.sched-ai-block { border: 1px solid #f2b6ba; background: var(--papier); }
.sched-ai-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.65rem; }
.sched-ai-head p { margin: 0.2rem 0 0; }
.sched-ai-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.sched-ai-item { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.65rem; padding: 0.65rem 0.85rem; border: 1px solid var(--filet); border-radius: var(--rayon); background: var(--papier); }
.sched-ai-item.prio-urgent { border-color: #f2b6ba; background: #fffafb; }
.sched-ai-item.prio-important { border-color: #e8cf9a; background: #fffdf7; }
.sched-ai-item.prio-info { border-color: #bccdf5; }
.sched-ai-main { display: grid; gap: 0.2rem; min-width: 0; flex: 1 1 16rem; }
.sched-ai-badges { display: flex; flex-wrap: wrap; gap: 0.3rem; }

.supplier-ai-strip { display: grid; gap: 0.6rem; }
.supplier-foot { margin-top: 0.35rem; padding-top: 0.5rem; border-top: 1px solid var(--filet-doux); display: flex; flex-wrap: wrap; gap: 0.4rem; }

.home-cockpit { margin-bottom: 1.35rem; }
.home-cockpit .cockpit-summary-title { font-size: 1.35rem; }
/* Le titre « En direct » s'aligne sur celui des autres blocs de l'accueil (il rentrait de 12 px). */
.home-cockpit .cockpit-summary { padding-inline: 0.5rem; }
@media (max-width: 600px) { .home-cockpit .cockpit-details { padding-inline: 0.8rem; } .home-cockpit .cockpit-summary { padding-inline: 0; } }
.home-cockpit .cockpit-details { background: var(--papier); border: 1px solid var(--filet-doux); border-radius: var(--rayon-carte); box-shadow: var(--ombre-douce); padding: 0.65rem 1rem 0.9rem; }
@media (min-width: 1200px) {
  .home-cockpit .cockpit-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.7rem; padding: 0 0.2rem 0.15rem; }
  .home-cockpit .cockpit-card { padding: 0.75rem 0.85rem 0.65rem; }
}

.equipe-shortcuts { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0 0 1.25rem; }
.equipe-workspace { display: grid; grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr); gap: 1.25rem; align-items: start; min-width: 0; }
.equipe-roster-pane, .equipe-detail-pane { margin-bottom: 0; min-width: 0; max-width: 100%; }
.equipe-detail-pane .e360-profile, .equipe-detail-pane .e360-section { min-width: 0; max-width: 100%; }
.equipe-detail-pane .week-grid { max-width: 100%; overflow-x: auto; }
.equipe-filters { display: grid; gap: 0.65rem; margin-bottom: 0.65rem; }
.equipe-count { font-size: 0.82rem; margin: 0 0 0.5rem; }
.equipe-roster-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; max-height: 68vh; overflow-y: auto; }
.equipe-member-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; text-align: left; padding: 0.6rem 0.75rem; min-height: 2.75rem; border: 1px solid var(--filet); border-radius: var(--rayon); background: var(--papier); cursor: pointer; transition: background-color 0.15s, border-color 0.15s; }
.equipe-member-btn:hover { background: var(--craie); border-color: #c9c9c9; }
.equipe-member-btn.is-active { background: var(--rouge-pale); border-color: #f2b6ba; }
.equipe-member-main { display: grid; gap: 0.1rem; min-width: 0; }
.equipe-member-main strong { font-size: 0.9rem; color: var(--encre); }
.equipe-member-main .sub { font-size: 0.78rem; }
.equipe-detail-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 0.75rem; padding-bottom: 0.85rem; margin-bottom: 0.85rem; border-bottom: 1px solid var(--filet-doux); }
.equipe-detail-head p { margin: 0.2rem 0 0; }
.equipe-coaching-area:not(:empty) { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--filet); display: grid; gap: 0.65rem; }
.equipe-coaching-title { font-size: 1rem; margin: 0; }
@media (max-width: 900px) {
  .equipe-workspace { grid-template-columns: minmax(0, 1fr); }
  /* La liste défile dans son cadre : un fondu au bas dit qu'elle continue, et la marge laisse le dernier nom entier. */
  .equipe-roster-list { max-height: 20rem; padding-bottom: 1.25rem; -webkit-mask-image: linear-gradient(#000 calc(100% - 2rem), transparent); mask-image: linear-gradient(#000 calc(100% - 2rem), transparent); }
  /* La fiche amenée à l'écran s'arrête sous la barre du haut. */
  .equipe-detail-pane { scroll-margin-top: 4.5rem; }
}

.clinic-date-nav { display: inline-flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.clinic-date-nav .clinic-date-input { width: auto; min-width: 9.5rem; min-height: 2.25rem; padding: 0.25rem 0.55rem; font-size: 0.85rem; }
.clinic-levers, .clinic-satisfaction { display: grid; gap: 0.85rem; }
.clinic-kpis-compact { margin-bottom: 0; }
.cap-inline-cell { display: inline-flex; align-items: center; justify-content: flex-end; gap: 0.5rem; }
.cap-inline-track { display: inline-block; width: 3.75rem; height: 0.4rem; background: var(--craie-forte); border-radius: var(--pilule); overflow: hidden; }
.cap-inline-fill { display: block; height: 100%; background: var(--sauge); border-radius: var(--pilule); }
.cap-inline-fill.is-tight { background: var(--ambre); }
.cap-inline-fill.is-over { background: var(--rouge); }
/* Capacité des vétérinaires sur un téléphone : le tableau de cinq colonnes défilait de côté et la date se cassait sur
   trois lignes. Chaque jour devient une fiche : la date, les trois mesures côte à côte, puis le signal s'il y en a un. */
@media (max-width: 640px) {
  .capacity-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .capacity-table, .capacity-table tbody { display: block; }
  .capacity-table tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.3rem 0.75rem; align-items: start; padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--filet-doux); }
  .capacity-table tr:last-child { border-bottom: 0; }
  .capacity-table td, .capacity-table td.num { display: block; padding: 0; border: 0; text-align: left; }
  .capacity-table td:first-child { grid-column: 1 / -1; font-weight: 600; white-space: nowrap; }
  .capacity-table td:last-child { grid-column: 1 / -1; }
  .capacity-table td:last-child:empty { display: none; }
  .capacity-table td[data-label]::before { content: attr(data-label); display: block; font-size: 0.75rem; font-weight: 600; color: var(--encre-douce); }
  .capacity-table .cap-inline-cell { justify-content: flex-start; }
  .capacity-table .cap-inline-track { width: 2.5rem; }
}

/* ── Référentiels opérationnels & grilles tarifaires OneDrive VETA ── */
.od-docs { display: grid; gap: 0.75rem; min-width: 0; }
.od-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.6rem 1rem; margin-bottom: 0.15rem; }
.od-search { flex: 1 1 15rem; max-width: 28rem; min-width: 0; }
.od-toolbar-meta { display: inline-flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.od-count { font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.od-list-host { display: grid; gap: 0.65rem; min-width: 0; }
.od-card { border: 1px solid var(--filet); border-radius: var(--rayon-carte); background: var(--craie); min-width: 0; transition: border-color 0.15s, background-color 0.15s; }
.od-card[open] { background: var(--papier); border-color: #cccccc; box-shadow: var(--ombre-douce); }
.od-summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 0.65rem; min-height: 2.85rem; padding: 0.65rem 1rem; font-weight: 600; color: var(--encre); user-select: none; }
.od-summary::-webkit-details-marker { display: none; }
.od-summary:hover { background: rgba(0, 0, 0, 0.02); }
.od-chevron { flex: 0 0 auto; width: 0.5rem; height: 0.5rem; border-right: 2px solid var(--encre-douce); border-bottom: 2px solid var(--encre-douce); transform: rotate(-45deg); transition: transform 0.16s ease, border-color 0.16s ease; margin-right: 0.15rem; }
.od-card[open] > .od-summary .od-chevron { transform: rotate(45deg); border-color: var(--rouge); }
@media (prefers-reduced-motion: reduce) { .od-card, .od-chevron { transition: none; } }
.od-title { flex: 1 1 12rem; min-width: 0; line-height: 1.35; }
.od-summary > .chip { flex: 0 0 auto; }
.od-body { padding: 0 1rem 1rem 2.15rem; display: grid; gap: 0.7rem; min-width: 0; border-top: 1px solid var(--filet-doux); }
.od-meta { margin: 0.65rem 0 0; font-size: 0.82rem; max-width: none; }
.od-note { margin: 0; font-size: 0.85rem; max-width: 74ch; }
.od-section { display: grid; gap: 0.3rem; }
.od-heading { display: block; font-size: 0.9rem; color: var(--encre); line-height: 1.35; }
.od-items { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.25rem; font-size: 0.9rem; }
.od-table-wrap { min-width: 0; }
.od-table th { white-space: normal; position: static; vertical-align: bottom; }
.od-table th.num { white-space: nowrap; }
.od-table td.od-price { white-space: normal; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; min-width: 7.5rem; color: var(--encre); }
.od-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; padding-top: 0.2rem; }
@media (max-width: 560px) {
  .od-summary { flex-wrap: wrap; padding: 0.65rem 0.85rem; }
  .od-title { flex: 1 1 calc(100% - 2rem); }
  .od-summary > .chip { margin-left: 1.3rem; }
  .od-body { padding: 0 0.85rem 0.9rem; }
  .od-table th, .od-table td { padding: 0.5rem 0.6rem; font-size: 0.84rem; }
  .od-table th.num { white-space: normal; min-width: 6.25rem; }
  .od-table td.od-price { min-width: 6.25rem; }
}

/* ── Vagues 1–3 UI/UX Max : Identité, Palette ⌘K, Tiroir Iris, Horaire par plateau, Check-lists & Mobile 390 px ── */
[hidden] { display: none !important; }

/* Rail : icônes fines, bouton ⌘K et carte d'identité humaine */
.rail { gap: 1rem; scrollbar-width: thin; }
.nav-link-main { display: inline-flex; align-items: center; gap: 0.55rem; min-width: 0; }
.nav-ico { flex: none; opacity: 0.82; }
.nav a[aria-current="page"] .nav-ico, .mobile-nav a[aria-current="page"] .nav-ico { opacity: 1; }

.cmdk-trigger { display: flex; align-items: center; gap: 0.5rem; width: 100%; min-height: 2.45rem; padding: 0.4rem 0.65rem; border: 1px solid var(--filet); border-radius: var(--rayon); background: var(--craie); color: var(--encre-douce); font-size: 0.84rem; font-weight: 500; cursor: pointer; text-align: left; transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease; }
.cmdk-trigger:hover { background: var(--papier); border-color: #b9c0c7; color: var(--encre); }
.cmdk-trigger-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-kbd { flex: none; font: 600 0.7rem/1.2 var(--corps); padding: 0.15rem 0.4rem; border-radius: 5px; border: 1px solid var(--filet); background: var(--papier); color: var(--encre-douce); }

.rail-viewer { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.rail-avatar { flex: none; display: grid; place-items: center; width: 2.15rem; height: 2.15rem; border-radius: 50%; background: var(--rouge-pale); border: 1px solid #f2b6ba; color: var(--rouge-fonce); font: 700 0.78rem/1 var(--titre); letter-spacing: 0.02em; }
.rail-viewer-meta { display: grid; gap: 0.05rem; min-width: 0; }
.rail-account { display: block; font-size: 0.84rem; font-weight: 600; color: var(--encre); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-role { display: block; font-size: 0.73rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-signout { width: 100%; justify-content: center; margin-top: 0.55rem; border-color: var(--filet-doux); }

/* Squelette de transition zéro-CLS entre les routes */
.route-skeleton { display: grid; gap: 1rem; padding-top: 0.15rem; }
.skel-head, .skel-card { border-radius: var(--rayon-carte); background: linear-gradient(90deg, #eff1f3 0%, #f7f8f9 50%, #eff1f3 100%); background-size: 200% 100%; border: 1px solid var(--filet-doux); }
.skel-head { height: 4.1rem; }
.skel-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.skel-card { height: 5.4rem; }
.skel-card.skel-tall { height: 15rem; }
@media (prefers-reduced-motion: no-preference) {
  .skel-head, .skel-card { animation: skel-shimmer 1.4s ease-in-out infinite; }
  @keyframes skel-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
}

/* Pastilles interactives dans Équipe 360° */
.chip-btn, .chip-link { cursor: pointer; text-decoration: none; transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease; }
button.chip-btn { font-family: inherit; }
.chip-btn:hover, .chip-link:hover { border-color: #9aa3ab; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); color: var(--encre); }
.chip-btn.is-selected { background: var(--rouge-pale); border-color: var(--rouge); color: var(--rouge-fonce); font-weight: 600; }

/* Palette de commandes universelle ⌘K */
dialog.cmdk-dialog { padding: 0; width: min(38rem, calc(100vw - 1.5rem)); max-height: min(32rem, calc(100dvh - 3rem)); border-radius: 12px; border: 1px solid var(--filet); overflow: hidden; box-shadow: 0 18px 48px rgba(19, 19, 19, 0.22); }
dialog.cmdk-dialog::backdrop { background: rgba(19, 19, 19, 0.38); }
.cmdk-head { display: flex; align-items: center; gap: 0.6rem; padding: 0.65rem 0.85rem; border-bottom: 1px solid var(--filet); background: var(--papier); color: var(--encre-douce); }
.cmdk-head .cmdk-input { border: 0; box-shadow: none; padding: 0.25rem 0.15rem; min-height: 2.1rem; font-size: 0.95rem; color: var(--encre); background: transparent; }
.cmdk-head .cmdk-input:focus { border: 0; box-shadow: none; outline: none; }
.cmdk-esc { flex: none; font-size: 0.73rem; padding: 0.2rem 0.6rem; min-height: 1.85rem; border-color: var(--filet); }
.cmdk-results { max-height: min(22rem, calc(100dvh - 9.5rem)); overflow-y: auto; padding: 0.45rem; background: var(--papier); display: grid; gap: 2px; }
.cmdk-group-label { padding: 0.45rem 0.55rem 0.2rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--encre-douce); }
.cmdk-item { all: unset; box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; width: 100%; padding: 0.55rem 0.65rem; border-radius: var(--rayon); cursor: pointer; color: var(--encre); }
.cmdk-item.is-selected, .cmdk-item:hover { background: var(--rouge-pale); }
.cmdk-item-main { display: grid; gap: 0.08rem; min-width: 0; }
.cmdk-item-title { font-size: 0.88rem; font-weight: 600; color: var(--encre); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-item.is-selected .cmdk-item-title { color: var(--rouge-fonce); }
.cmdk-item-sub { font-size: 0.76rem; color: var(--encre-douce); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Au téléphone, la description d'un résultat a droit à deux lignes avant d'être coupée. */
@media (max-width: 767px) { .cmdk-item-sub { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; white-space: normal; } }
.cmdk-item-enter { flex: none; font-size: 0.78rem; color: var(--encre-douce); opacity: 0; }
.cmdk-item.is-selected .cmdk-item-enter { opacity: 1; color: var(--rouge-fonce); }
.cmdk-empty { margin: 0; padding: 1.25rem 0.75rem; text-align: center; font-size: 0.88rem; }
.cmdk-foot { display: flex; gap: 1rem; align-items: center; padding: 0.45rem 0.85rem; border-top: 1px solid var(--filet-doux); background: var(--craie); font-size: 0.74rem; }

/* Tiroir latéral non bloquant d'Iris (bureau : à droite sans voile modal; mobile : feuille inférieure) */
.iris-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(26.5rem, 100vw); z-index: 55; background: var(--papier); border-left: 1px solid var(--filet); box-shadow: -8px 0 28px rgba(19, 19, 19, 0.09); display: grid; grid-template-rows: auto auto auto minmax(0, 1fr) auto; gap: 0.55rem; padding: 1rem 1.1rem calc(1rem + env(safe-area-inset-bottom, 0px)); }
.iris-drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.65rem; padding-bottom: 0.55rem; border-bottom: 1px solid var(--filet-doux); }
.iris-drawer-titles { display: grid; gap: 0.25rem; min-width: 0; }
.iris-drawer-titles h2 { font-size: 1.12rem; line-height: 1.25; }
.iris-drawer-context { display: inline-flex; align-items: center; gap: 0.38rem; font-size: 0.75rem; color: var(--encre-douce); font-weight: 500; }
.iris-drawer-context-dot { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--sauge); flex: none; }
.iris-drawer .iris-inline-top { margin-bottom: 0; }
.iris-drawer .iris-inline-suggestions { margin-bottom: 0; gap: 0.35rem; }
.iris-starter-chip { font-size: 0.75rem; min-height: 2rem; padding: 0.25rem 0.7rem; background: var(--craie); }
.iris-drawer .iris-inline-transcript { max-height: none; min-height: 0; overflow-y: auto; padding-right: 0.2rem; }
.iris-drawer .iris-inline-composer { margin-top: 0; padding-top: 0.55rem; border-top: 1px solid var(--filet-doux); }
@media (min-width: 1180px) {
  body.has-iris-drawer .content { padding-right: 26.5rem; }
}

/* Horaire : commutateur « Par employé | Par plateau » */
.sched-top-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; margin: 0 0 0.75rem; }
.sched-top-controls .sched-post-bar { flex: 1 1 28rem; margin: 0; }
.sched-mode-switch { display: inline-flex; align-items: center; padding: 0.2rem; border: 1px solid var(--filet); border-radius: var(--rayon); background: var(--craie); gap: 0.15rem; flex: none; }
.sched-mode-btn { all: unset; box-sizing: border-box; cursor: pointer; padding: 0.35rem 0.75rem; min-height: 2rem; display: inline-flex; align-items: center; border-radius: 6px; font-size: 0.8rem; font-weight: 600; color: var(--encre-douce); white-space: nowrap; transition: background-color 0.15s ease, color 0.15s ease; }
.sched-mode-btn:hover { color: var(--encre); }
.sched-mode-btn:focus-visible { outline: 3px solid var(--bleu); outline-offset: 1px; }
.sched-mode-btn.active { background: var(--papier); color: var(--rouge-fonce); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.shift-member { display: block; font-size: 0.76rem; font-weight: 700; color: var(--encre); margin-bottom: 0.1rem; line-height: 1.2; }
.sched-plateau-status { margin-bottom: 0.32rem; }
.sched-plateau-status .chip { font-size: 0.68rem; padding: 0.08rem 0.5rem; }

/* Check-lists cliniques cochables et imprimables (Chirurgie & Laboratoire IDEXX) */
.od-items.od-checklist { list-style: none; padding-left: 0; gap: 0.35rem; }
.od-check-row { display: flex; align-items: flex-start; gap: 0.55rem; padding: 0.35rem 0.5rem; border-radius: 6px; cursor: pointer; transition: background-color 0.12s ease; }
.od-check-row:hover { background: var(--craie); }
.od-check-box { width: 1.05rem; height: 1.05rem; min-height: 0; margin: 0.18rem 0 0; flex: none; accent-color: var(--sauge); cursor: pointer; }
.od-checklist li.is-checked .od-check-row span { color: var(--encre-douce); text-decoration: line-through; }

/* Navigation au pouce mobile (< 860 px) & compression au-dessus de la ligne de flottaison */
.equipe-member-btn > .chip { flex: none; white-space: nowrap; overflow-wrap: normal; }

@media (max-width: 860px) {
  .rail { position: sticky; top: 0; z-index: 40; flex-wrap: nowrap; padding: 0.4rem 0.75rem; min-height: 2.9rem; gap: 0.5rem; background: var(--papier); }
  .brand { padding: 0; gap: 0.45rem; min-width: 0; }
  .brand img { width: 4.6rem; }
  .brand span { font-size: 0.74rem; white-space: nowrap; }
  .cmdk-trigger { order: 2; width: auto; min-height: 2.75rem; padding: 0.3rem 0.7rem; margin-left: auto; background: var(--craie); }
  .cmdk-kbd { display: none; }
  .rail-foot { order: 3; margin: 0; gap: 0.35rem; }
  .rail .rail-signout.btn.small { width: auto; margin: 0; padding: 0.3rem 0.7rem; min-height: 2.75rem; font-size: 0.76rem; }

  .mobile-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 48; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.15rem; padding: 0.25rem 0.35rem calc(0.25rem + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, 0.98); border-top: 1px solid var(--filet); box-shadow: 0 -2px 12px rgba(19, 19, 19, 0.06); }
  body:has(main.eval-sheet-mode) .mobile-nav { display: none; }
  .mobile-nav a, .sections-toggle { flex-direction: column; gap: 0.14rem; min-height: 3.05rem; padding: 0.25rem 0.15rem; font-size: 0.7rem; font-weight: 600; border-color: transparent; background: transparent; border-radius: var(--rayon); }
  .mobile-nav .nav-ico, .sections-toggle .nav-ico { width: 18px; height: 18px; }

  .nav[data-expanded="true"] { position: fixed; left: 0; right: 0; bottom: calc(3.55rem + env(safe-area-inset-bottom, 0px)); max-height: min(68dvh, 30rem); overflow-y: auto; z-index: 49; background: var(--papier); border-top: 1px solid var(--filet); padding: 0.85rem; box-shadow: 0 -12px 32px rgba(19, 19, 19, 0.14); grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: 0.5rem; }

  main { padding: 0.75rem 0.8rem calc(5.2rem + env(safe-area-inset-bottom, 0px)); }
  main.eval-sheet-mode { padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); }
  .toasts { bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px)); }

  /* Empêche le zoom forcé de Safari iOS sur les champs < 16 px tout en gardant des contrôles lisibles. */
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea,
  .cmdk-head .cmdk-input,
  .clinic-date-nav .clinic-date-input,
  .pricing-controls select,
  .pricing-controls input {
    font-size: 1rem;
  }

  .iris-drawer { top: auto; left: 0; right: 0; bottom: 0; width: 100%; height: min(80dvh, 40rem); z-index: 70; border-left: 0; border-top: 1px solid var(--filet); border-radius: 16px 16px 0 0; box-shadow: 0 -12px 36px rgba(19, 19, 19, 0.18); }
}

@media (max-width: 767px) {
  .brand span { display: none; }
  .cmdk-trigger-label { font-size: 0.78rem; }
  .page-head { padding-bottom: 0.45rem; margin-bottom: 0.6rem; gap: 0.35rem; }
  .page-head h1 { font-size: 1.3rem; }
  .page-head > div > p { display: none; }
  .page-head .tools { gap: 0.3rem; width: 100%; }
  .page-head .tools > .muted { font-size: 0.78rem; flex-basis: 100%; }
  .page-head .tools .btn { min-height: 2.15rem; padding: 0.25rem 0.65rem; font-size: 0.75rem; }
  section.block { padding: 0.65rem 0.75rem 0.85rem; margin-bottom: 0.75rem; }
  section.block > header { margin-bottom: 0.4rem; }
  section.block > header h2 { font-size: 1.08rem; }
  .toolbar { gap: 0.4rem; margin-bottom: 0.5rem; }
  .toolbar .btn { min-height: 2.2rem; padding: 0.25rem 0.75rem; font-size: 0.76rem; }

  /* Bandeau KPI Équipe 360° condensé en 3 colonnes sur téléphone pour garder l'effectif au-dessus du pli */
  .equipe-kpis.sched-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.35rem; margin-bottom: 0.55rem; }
  .equipe-kpis .sched-kpi-card { padding: 0.45rem 0.5rem; gap: 0.15rem; }
  .equipe-kpis .sched-kpi-label { font-size: 0.6875rem; line-height: 1.15; }
  .equipe-kpis .sched-kpi-val { font-size: 0.92rem; line-height: 1.2; }
  .equipe-kpis .sched-kpi-sub, .equipe-kpis .sched-kpi-pills { display: none; }
  .equipe-filters { grid-template-columns: 1fr 1fr; gap: 0.45rem; margin-bottom: 0.45rem; }
  .equipe-filters input, .equipe-filters select { font-size: 1rem; padding-inline: 0.55rem; }

  /* Filtres d'horaire sur une seule rangée défilable au doigt */
  .sched-top-controls { flex-wrap: nowrap; overflow-x: auto; gap: 0.35rem; margin-bottom: 0.45rem; scrollbar-width: none; }
  .sched-top-controls::-webkit-scrollbar, .sched-post-bar::-webkit-scrollbar { display: none; }
  .sched-top-controls .sched-post-bar { flex: 0 0 auto; flex-wrap: nowrap; padding: 0.25rem 0.4rem; gap: 0.28rem; }
  .sched-post-bar-label { display: none; }
  .sched-todo { padding: 0.55rem 0.7rem; margin-bottom: 0.55rem; }
  .skel-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  dialog:not(.cmdk-dialog) { margin: auto 0 0 0; width: 100vw; max-width: 100vw; max-height: 88dvh; border-radius: 16px 16px 0 0; padding: 1.15rem 1rem calc(1.15rem + env(safe-area-inset-bottom, 0px)); }
}

@media print {
  .cmdk-trigger, .iris-drawer, .mobile-nav, .sched-top-controls, .od-toolbar, .od-actions { display: none !important; }
  .od-card-checkable[open] { border: 1px solid #999; box-shadow: none; break-inside: avoid; }
  body.is-printing-checklist .rail,
  body.is-printing-checklist .tabbar-host,
  body.is-printing-checklist main > :not(:has([data-print-target="true"])),
  body.is-printing-checklist section.block:has([data-print-target="true"]) > header,
  body.is-printing-checklist .od-card:not([data-print-target="true"]) {
    display: none !important;
  }
  body.is-printing-checklist main {
    padding: 0 !important;
    max-width: 100% !important;
  }
  body.is-printing-checklist section.block:has([data-print-target="true"]) {
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  body.is-printing-checklist .od-card[data-print-target="true"] {
    border: 1px solid #888 !important;
    box-shadow: none !important;
    margin: 0 !important;
  }
  .inspector-nav, .equipe-bridges, .equipe-head-actions { display: none !important; }
}

/* ── Vague 4 : Navigation d'inspection fluide (‹ Précédent | Suivant › | Échap) & ponts inter-modules ── */
.inspector-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 0.85rem; padding: 0 0 0.65rem; margin: 0 0 0.75rem; border-bottom: 1px solid var(--filet-doux); }
.inspector-pos { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.inspector-btns { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; }
.inspector-btns .btn.small { min-height: 2rem; padding: 0.2rem 0.7rem; font-size: 0.76rem; }

.equipe-detail-title-col { display: grid; gap: 0.25rem; min-width: 0; }
.equipe-bridges { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.25rem; }
.equipe-head-actions { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }

.sched-plateau-status { margin: 0 0 0.35rem; max-width: 100%; }
.sched-plateau-status .chip { display: inline-block; max-width: 100%; white-space: normal; line-height: 1.25; border-radius: 0.45rem; padding: 0.2rem 0.45rem; font-size: 0.7rem; }

.kpi-list dd, .totals dd, .score-value strong, .sup-kpi-value, .sup-paid-amount { font-variant-numeric: tabular-nums; }

/* ── Finition du 12 novembre 2026 (audit axe-core + revue des captures) ─────────────────────────────────────────── */

/* Cases à cocher : une case de 16 px dans une zone de 24 px, sur tous les écrans (WCAG 2.2, critère 2.5.8). La bordure
   transparente agrandit la zone cliquable sans grossir la case. Les interrupteurs (role="switch") gardent leur dessin. */
input[type="checkbox"]:not([role="switch"]) {
  -webkit-appearance: none; appearance: none; box-sizing: border-box; flex: none;
  width: 1.5rem; height: 1.5rem; min-width: 1.5rem; min-height: 0; margin: 0; padding: 0;
  border: 0.25rem solid transparent; border-radius: 0.5rem;
  background: #fff padding-box; box-shadow: inset 0 0 0 1.5px #6b7480;
  cursor: pointer; vertical-align: middle;
}
input[type="checkbox"]:not([role="switch"]):focus { border-color: transparent; box-shadow: inset 0 0 0 1.5px #6b7480; }
input[type="checkbox"]:not([role="switch"]):hover { box-shadow: inset 0 0 0 1.5px var(--encre); }
input[type="checkbox"]:not([role="switch"]):checked {
  background-color: var(--check, var(--rouge)); box-shadow: inset 0 0 0 1.5px var(--check, var(--rouge));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.4 6.4l2.4 2.4 4.8-5.3' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 0.72rem;
}
input[type="checkbox"]:not([role="switch"]):focus-visible { outline: 3px solid var(--bleu); outline-offset: -3px; }
input[type="checkbox"]:not([role="switch"]):disabled { opacity: 0.5; cursor: not-allowed; }
input[type="checkbox"].od-check-box { --check: var(--sauge); }
.shift-draft input[type="checkbox"] { right: 0.1rem; bottom: 0.25rem; }
.shift-draft .shift-state { padding-right: 1.6rem; }
@media print, (forced-colors: active) {
  input[type="checkbox"]:not([role="switch"]) { -webkit-appearance: auto; appearance: auto; width: 1rem; height: 1rem; min-width: 0; border: 0; box-shadow: none; background: none; }
}

/* Cibles : aucun contrôle sous 24 px de haut (titres repliables, liens-boutons, pastilles cliquables). */
summary { min-height: 1.5rem; }
a.chip, button.chip, .touch-link, .warn-tip, .financial-statements .statement-link { display: inline-flex; align-items: center; min-height: 1.5rem; }
@media (max-width: 640px), (pointer: coarse) {
  .sup-account-btn { min-height: 2rem; padding-block: 0.35rem; }
  .sup-name-btn { min-height: 2rem; }
}

/* Un tableau plus large que l'écran : l'ombre du bord dit qu'il se fait défiler (classe posée par scroll-regions.js,
   qui rend aussi la zone accessible au clavier). L'ombre disparaît au bout de la course. */
.table-wrap.can-scroll {
  background:
    linear-gradient(90deg, var(--papier) 40%, rgba(255, 255, 255, 0)) 0 0 / 2.25rem 100% no-repeat local,
    linear-gradient(270deg, var(--papier) 40%, rgba(255, 255, 255, 0)) 100% 0 / 2.25rem 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(19, 19, 19, 0.24), rgba(19, 19, 19, 0)) 0 0 / 0.8rem 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(19, 19, 19, 0.24), rgba(19, 19, 19, 0)) 100% 0 / 0.8rem 100% no-repeat scroll;
}
.table-wrap.can-scroll:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; }

/* Palette de commandes : sur un écran tactile, « Fermer » remplace « Échap » et les raccourcis clavier disparaissent. */
.cmdk-esc-touch { display: none; }
@media (pointer: coarse), (max-width: 640px) {
  .cmdk-esc-key, .cmdk-foot { display: none; }
  .cmdk-esc-touch { display: inline; }
  .cmdk-esc { min-height: 2.5rem; padding-inline: 0.85rem; }
}

/* ── Relecture du 12 novembre 2026 (soir) ── */
/* Flèches de date de la page Clinique : 44 px de large au doigt, comme leur hauteur. */
@media (pointer: coarse), (max-width: 767px) { .clinic-date-nav > .btn { min-width: 2.75rem; padding-inline: 0.6rem; } }
/* Un tableau large devient une fiche par ligne sur un téléphone (cardTable dans _shared.js) : la première cellule en
   titre, les autres sur trois colonnes avec l'en-tête de leur colonne. Avant : défilement de côté, dates cassées sur
   trois lignes et colonnes hors de l'écran. */
@media (max-width: 640px) {
  .as-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .as-cards, .as-cards tbody, .as-cards tfoot { display: block; }
  .as-cards tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.3rem 0.75rem; align-items: start; padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--filet-doux); }
  .as-cards tbody tr:last-child { border-bottom: 0; }
  .as-cards tfoot tr { background: var(--craie); border-bottom: 0; }
  .as-cards td, .as-cards td.num { display: block; padding: 0; border: 0; text-align: left; min-width: 0; overflow-wrap: anywhere; }
  .as-cards td:first-child { grid-column: 1 / -1; font-weight: 600; }
  .as-cards td.wide { grid-column: 1 / -1; }
  .as-cards td.wide2 { grid-column: span 2; }
  .as-cards td[data-label]::before { content: attr(data-label); display: block; font-size: 0.75rem; font-weight: 600; color: var(--encre-douce); }
}


/* ── Par où commencer (17 novembre) : étapes numérotées, chacune avec son « comment » et son bouton ── */
.start-here > header p { margin: 0.15rem 0 0; }
.start-steps { list-style: none; margin: 0.75rem 0 0; padding: 0; counter-reset: start-step; display: grid; gap: 0.6rem; }
.start-steps > li[hidden] { display: none; }
.start-step { counter-increment: start-step; display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: 0.75rem; align-items: start; padding: 0.75rem; border: 1px solid var(--filet); border-radius: var(--rayon); background: var(--papier); }
.start-step::before { content: counter(start-step); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--rouge-pale); color: var(--rouge-fonce); font-weight: 700; }
.start-step-what { margin: 0.2rem 0 0; font-weight: 600; color: var(--encre); }
.start-step-how { margin: 0.3rem 0 0; color: var(--encre-douce); font-size: 0.92rem; line-height: 1.45; }
.start-step-action { align-self: center; }
.start-step-action .btn { white-space: nowrap; }
.start-empty { margin: 0.75rem 0 0; }
.start-guide { margin-top: 1rem; border-top: 1px solid var(--filet); padding-top: 0.75rem; }
.start-guide > summary { cursor: pointer; font-weight: 600; color: var(--encre); min-height: 2.75rem; display: flex; align-items: center; }
.start-guide h3 { margin: 1rem 0 0.4rem; font-size: 0.95rem; }
.start-guide dl { display: grid; grid-template-columns: minmax(9rem, max-content) minmax(0, 1fr); gap: 0.35rem 1rem; margin: 0.5rem 0 0; }
.start-guide dt { font-weight: 600; }
.start-guide dd { margin: 0; color: var(--encre-douce); }
@media (max-width: 640px) {
  .start-step { grid-template-columns: 2rem minmax(0, 1fr); }
  .start-step-action { grid-column: 2; }
  .start-guide dl { grid-template-columns: 1fr; gap: 0.1rem; }
  .start-guide dd { margin-bottom: 0.5rem; }
}

/* ── Priorités du trimestre (17 novembre) : trois cartes, la personne connectée d'abord ── */
.priorities > header p { margin: 0.15rem 0 0; }
.priority-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 0.75rem; margin-top: 0.75rem; }
.priority-card { border: 1px solid var(--filet); border-radius: var(--rayon); padding: 0.85rem; background: var(--papier); display: flex; flex-direction: column; gap: 0.45rem; }
.priority-card.mine { border-color: var(--rouge); box-shadow: inset 3px 0 0 var(--rouge); }
.priority-card > header { display: flex; gap: 0.6rem; align-items: flex-start; }
.priority-num { flex: none; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--rouge-pale); color: var(--rouge-fonce); font-weight: 700; }
.priority-head h3 { margin: 0; font-size: 1rem; line-height: 1.3; }
.priority-head p { margin: 0.3rem 0 0; display: flex; flex-wrap: wrap; gap: 0.3rem; }
.priority-card p { margin: 0; }
.priority-metric { font-size: 0.92rem; color: var(--encre-douce); }
.priority-metric strong { color: var(--encre); }
.priority-meter { height: 0.45rem; border-radius: var(--pilule); background: var(--craie-forte); overflow: hidden; }
.priority-meter > div { height: 100%; background: var(--sauge); }
.priority-note { font-size: 0.88rem; }
.priority-week > summary, .priority-more > summary { cursor: pointer; font-weight: 600; min-height: 2.5rem; display: flex; align-items: center; }
.priority-week ol { margin: 0.25rem 0 0.4rem; padding-left: 1.25rem; display: grid; gap: 0.3rem; }
.priority-obligations, .priority-owner { margin-top: 0.75rem; padding: 0.65rem 0.8rem; border-radius: var(--rayon); background: var(--ambre-pale); }
.priority-owner ul { margin: 0.3rem 0 0; padding-left: 1.2rem; }
.priority-more { margin-top: 0.75rem; border-top: 1px solid var(--filet); padding-top: 0.25rem; }
.priority-more dl { display: grid; grid-template-columns: minmax(10rem, max-content) minmax(0, 1fr); gap: 0.35rem 1rem; margin: 0.25rem 0 0.5rem; }
.priority-more dt { font-weight: 600; }
.priority-more dd { margin: 0; color: var(--encre-douce); }
.priority-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 0.75rem; margin: 0.25rem 0 0.5rem; }
.priority-role h4 { margin: 0 0 0.3rem; font-size: 0.95rem; }
.priority-role p { margin: 0.2rem 0 0; font-size: 0.92rem; }
@media (max-width: 640px) { .priority-more dl { grid-template-columns: 1fr; gap: 0.1rem; } .priority-more dd { margin-bottom: 0.5rem; } }
