/* Bilan avant / après d'un pilote : page /agents/bilan-pilote/ et tableaux des fiches agents. */

/* Tableau de lecture affiché sur chaque fiche agent (sans saisie). */
.do-bilan table{width:100%;min-width:680px;background:#fff;font-size:.82rem;line-height:1.45}
.do-bilan th,.do-bilan td{padding:12px 14px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}
.do-bilan tbody tr:last-child th,.do-bilan tbody tr:last-child td{border-bottom:0}
.do-bilan tbody th{font-weight:700;color:var(--ink);width:26%}
.do-bilan td{color:var(--muted)}
/* Un paragraphe qui suit une rangée de cartes respire un peu. */
.grid + p{margin-top:18px}
.do-bilan-suite{margin:14px 0 0;font-size:.84rem}
.do-bilan-suite a{font-weight:700}

/* Page du bilan. */
.bp{margin:28px 0 0;padding:24px;background:#fff;border:1px solid var(--line);border-radius:14px}
.bp h2{margin-top:0}
.bp-agents{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 4px}
.bp-agent{appearance:none;border:1px solid var(--line-strong,#cbd6dd);background:#fff;color:var(--ink);border-radius:999px;padding:9px 16px;font:700 .82rem/1.2 inherit;font-family:inherit;cursor:pointer}
.bp-agent:hover{border-color:var(--teal)}
.bp-agent[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:#fff}
.bp-entete{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:6px 18px;margin:18px 0 0}
.bp-entete strong{font:700 1.02rem 'Lexend',sans-serif}
.bp-entete a{font-size:.8rem;font-weight:700}
.bp-meta{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px;margin:16px 0 18px}
.bp-meta label,.bp-notes label{display:block;margin-bottom:5px;font-size:.78rem;font-weight:700}
.bp-meta input,.bp-notes textarea{width:100%;padding:10px 12px;border:1px solid var(--line-strong,#cbd6dd);border-radius:9px;background:#F9FCFC;color:var(--ink);font:inherit;font-size:.9rem}
.bp-notes{margin:18px 0 0}
.bp-notes textarea{min-height:84px;resize:vertical}

.bp-table{width:100%;border-collapse:collapse;background:#fff;font-size:.84rem;line-height:1.4}
.bp-table th,.bp-table td{padding:12px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}
.bp-table thead th{font-size:.7rem;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);background:var(--soft)}
.bp-table tbody tr:last-child th,.bp-table tbody tr:last-child td{border-bottom:0}
.bp-table tbody th{width:30%;font-weight:700}
.bp-table small{display:block;margin-top:5px;font-size:.74rem;font-weight:400;line-height:1.4;color:var(--muted)}
.bp-saisie{display:flex;align-items:center;gap:7px}
.bp-saisie input{width:100%;min-width:0;max-width:130px;padding:9px 10px;border:1px solid var(--line-strong,#cbd6dd);border-radius:8px;background:#F9FCFC;color:var(--ink);font:inherit;font-variant-numeric:tabular-nums}
.bp-saisie input[aria-invalid="true"]{border-color:var(--coral);background:#FDF1F3}
.bp-unite{font-size:.74rem;color:var(--muted);white-space:nowrap}
.bp-ecart{font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.bp-pastille{display:inline-block;padding:4px 10px;border:1px solid var(--line-strong,#cbd6dd);border-radius:999px;font-size:.74rem;font-weight:700;white-space:nowrap;color:var(--muted);background:#fff}
.bp-pastille[data-etat="vide"]{border-style:dashed}
.bp-pastille[data-etat="mieux"]{border-color:var(--teal);background:#E7F4F1;color:#0B5548}
.bp-pastille[data-etat="moins-bien"]{border-color:var(--coral);background:#FDF1F3;color:#8E2238}
.bp-pastille[data-etat="stable"],.bp-pastille[data-etat="contexte"]{background:var(--soft);color:var(--ink)}
.bp-synthese{margin:16px 0 0;padding:12px 14px;border-left:4px solid var(--gold);border-radius:0 10px 10px 0;background:#FFF4DE;color:#5F5137;font-size:.86rem;max-width:none}
.bp-actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 0}
.bp-actions button{appearance:none;border:1px solid var(--ink);border-radius:9px;padding:11px 16px;background:var(--ink);color:#fff;font:700 .82rem/1.2 inherit;font-family:inherit;cursor:pointer}
.bp-actions button.bp-discret{background:#fff;color:var(--ink);border-color:var(--line-strong,#cbd6dd)}
.bp-memoire{margin:12px 0 0;font-size:.76rem;color:var(--muted);max-width:none}
.bp-impression{display:none}

@media(max-width:760px){
  .bp{padding:18px 16px}
  .bp-meta{grid-template-columns:1fr}
  .bp-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .bp-table,.bp-table tbody,.bp-table tr,.bp-table th,.bp-table td{display:block;width:auto}
  .bp-table tbody tr{padding:14px 0;border-bottom:1px solid var(--line)}
  .bp-table tbody tr:last-child{border-bottom:0}
  .bp-table tbody th,.bp-table td{padding:5px 0;border-bottom:0}
  .bp-table tbody th{width:auto}
  .bp-table td::before{content:attr(data-label);display:block;margin-bottom:4px;font-size:.68rem;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:var(--muted)}
  .bp-saisie input{max-width:none}
  .bp-actions button{width:100%}
}

@media print{
  .seo-header,.seo-hero,.fil-ariane,.answer,.bp-agents,.bp-actions,.bp-memoire,.bp-ecran,.cta,.bp-entete a,.bp [data-vide="true"],.cookie-notice,#cookie-notice{display:none!important}
  main{padding:0!important;max-width:none!important}
  .bp{border:0;padding:0;margin:0}
  .bp h2{font-size:16pt;margin:0 0 4pt}
  .bp-impression{display:block;margin:0 0 10pt;padding-bottom:6pt;border-bottom:1px solid #999;font-size:9.5pt;font-weight:700;max-width:none}
  .bp-meta{display:flex;flex-wrap:wrap;gap:4pt 28pt;margin:8pt 0 10pt}
  .bp-meta input,.bp-notes textarea,.bp-saisie input{border:0!important;background:none!important;padding:0!important;color:#000!important;box-shadow:none!important}
  .bp-saisie input{width:5em!important;max-width:none}
  .bp-notes textarea{min-height:0;resize:none}
  .bp-table{font-size:9.5pt}
  .bp-table th,.bp-table td{padding:6px 8px}
  .bp-table tbody tr{break-inside:avoid}
  .bp-pastille{border:0;padding:0;background:none!important;color:#000!important}
  .bp-synthese{border:1px solid #999;border-radius:0;background:none;color:#000}
}
