/* Crewvaluation : feuille du lot B — A1, impression (media="print"), papier lettre. N'emploie que les variables du
   thème Signal de style.css (aucune couleur codée en dur).

   - sans navigation ni boutons ni filtres ; bandeau « Confidentiel » en tête (date, qui imprime) ;
   - bandeau bleu et cartes ramenés à du noir sur blanc, bordures fines, aucune ombre ;
   - pastilles de l'échelle imprimées en couleur (print-color-adjust), lisibles aussi en noir et blanc (chiffres) ;
   - tableaux larges imprimés en entier (plus de défilement), cartes non coupées entre deux pages ;
   - graphique : fond blanc, séries marine / bleu / gris pointillé (la luminosité les distingue). */

@page { size: letter; margin: 14mm 13mm 16mm; }

html, body { background: var(--blanc) !important; }
body { font-size: 11pt; line-height: 1.35; color: var(--marine); }

/* Rien d'interactif sur papier */
.entete, nav.menu, .onglets, .avis, dialog, .lien-retour, .bouton, button, .barre-enregistrement,
.ne-pas-imprimer, .filtres, .carte-filtres, .actions-filtres, .graphique-choix, select, input, .bouton-tri .fleche-tri,
.bandeau .bouton { display: none !important; }
.bouton-tri { display: inline !important; padding: 0; margin: 0; min-height: 0; }
/* Fiche à onglets : sur papier, TOUS les panneaux, dans l'ordre, comme la fiche d'avant les onglets (la rangée
   d'onglets, .onglets, est déjà retirée plus haut). */
.panneau-fiche[hidden] { display: block !important; }
/* Formations : TOUJOURS la vue Détail complète sur papier (reçues, prévues faites ou annulées, exemptions avec
   notes), jamais la liste à cocher ni son filtre. */
.formations-bascule, .formations-cocher-zone, .formations-alerte { display: none !important; }
.carte-formations .formations-detail { display: block !important; }
.formations-historique::details-content { display: block !important; content-visibility: visible !important; }
.formations-historique > summary { list-style: none; }

.seulement-impression { display: block !important; }
.bandeau-impression {
  display: flex !important; flex-wrap: wrap; align-items: baseline; gap: 2pt 12pt; margin: 0 0 10pt; padding: 6pt 10pt;
  border: 1.5pt solid var(--marine); border-left-width: 6pt; border-radius: 4pt; color: var(--marine); font-size: 9.5pt;
  break-inside: avoid;
}
.bandeau-impression-titre { font-size: 12pt; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.bandeau-impression-avis { flex-basis: 100%; color: var(--texte-2); font-size: 8.5pt; }
/* Un seul bandeau : celui du contenu (fiche imprimable) ou celui posé avant l'impression. */
.bandeau-impression ~ .bandeau-impression, .page-corps .bandeau-impression + .bandeau-impression { display: none !important; }

.contenu { padding: 0; }
.page { max-width: none; padding: 0; }
.bande { padding: 0 0 8pt !important; background: transparent !important; color: var(--marine) !important; border-bottom: 1.5pt solid var(--marine); }
.bande h1, .bande .sous-titre, .bande a:not(.bouton) { color: var(--marine) !important; }
.bande .sous-titre { color: var(--texte-2) !important; }
.page-corps { margin-top: 10pt !important; }
h1 { font-size: 18pt; }
h2 { font-size: 12.5pt; }
h3 { font-size: 9pt; }

.carte, .tuile, .etat-vide, .chargement {
  margin-top: 9pt; padding: 8pt 10pt; box-shadow: none !important; background: var(--blanc) !important;
  border: 0.75pt solid var(--bordure); border-radius: 6pt; break-inside: avoid;
}
.carte > h2, .barre-carte { margin-bottom: 6pt; }
.carte-aide, .note-bas { font-size: 9pt; }
.tuiles { grid-template-columns: repeat(4, 1fr) !important; gap: 6pt; }
.tuile-valeur { font-size: 16pt; }
.bandeau { background: var(--blanc) !important; color: var(--marine) !important; border: 0.75pt solid var(--marine); border-left-width: 4pt; }
.bandeau-archive { border-left-color: var(--marine); }
.etiquette-archive { border: 0.75pt solid var(--marine); background: var(--blanc) !important; }

/* Tableaux : en entier, sans défilement, en-têtes répétés sur chaque page */
.defilement-horizontal { overflow: visible !important; }
.tableau, .tableau-employes, .tableau-employes.tableau-triable, .tableau-criteres, .tableau-historique, .tableau-progression,
.tableau-analyse, .tableau-comparaison, .tableau-retards, .tableau-fiche-imprimable { min-width: 0 !important; width: 100%; font-size: 9pt; }
.tableau th, .tableau td { padding: 4pt 5pt; border-bottom: 0.5pt solid var(--bordure); }
.tableau thead { display: table-header-group; }
.tableau tr { break-inside: avoid; }
.tableau thead th { font-size: 7.5pt; color: var(--texte-2); white-space: normal; }
.tableau .numerique, .tableau-historique tbody th, .tableau-progression .colonne-type { white-space: normal; }
.tableau-progression .cellule-progression { min-width: 0; }
.cellule-faite { background: var(--bleu-pale) !important; }
.tableau .cellule-actions, .tableau th:last-child:empty { display: none; }
.tableau-historique th:last-child, .tableau-historique td:last-child { display: none; }

/* Couleurs de l'échelle gardées à l'impression ; le chiffre reste lisible sans couleur. */
.pastille-note, .note-1, .note-2, .note-3, .note-4, .note-5, .segment, .cellule-faite, .barre-remplissage, .evolution-note,
.etiquette-retard, .etiquette-a-jour, .badge-type-fond, .ligne-resume > * {
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.pastille-note { height: 18pt; min-width: 28pt; font-size: 9pt; }
.pastille-statut { min-height: 18pt; font-size: 8.5pt; }
.etiquette-retard { border: 0.75pt solid var(--danger); }
.liste-forces li { min-height: 0; padding: 3pt 6pt 3pt 3pt; background: var(--blanc) !important; border: 0.5pt solid var(--bordure); }
.grille-forces { grid-template-columns: 1fr 1fr !important; gap: 8pt 14pt; }
.legende-echelle { grid-template-columns: repeat(5, 1fr) !important; gap: 6pt; font-size: 8.5pt; }
.liste-infos { grid-template-columns: repeat(4, 1fr) !important; gap: 6pt 12pt; }

/* Fiche imprimable d'une évaluation : chaque catégorie peut se couper entre deux pages, ligne par ligne */
.carte-categorie { break-inside: auto; }
.cellule-commentaire, .texte-long { font-size: 9pt; }

/* Graphique : papier blanc, séries distinguées par la luminosité, le tracé et la forme des points */
.carte-graphique { color: var(--marine) !important; }
.carte-graphique h2, .graphique-legende { color: var(--marine) !important; }
.carte-graphique .graphique-aide { color: var(--texte-2) !important; }
.graphique-svg { max-height: 62mm; }
.graphique-svg .ligne-grille { stroke: var(--bordure); stroke-opacity: 1; }
.graphique-svg .axe { stroke: var(--texte-2); stroke-opacity: 1; }
.graphique-svg .graduation, .graphique-svg .etiquette-date { fill: var(--texte-2); }
.graphique-svg .badge-type-fond { fill: var(--bleu-pale); }
.graphique-svg .badge-type-texte { fill: var(--marine); }
.serie-point { stroke: var(--blanc); }
.serie-globale .serie-ligne, .serie-critere .serie-ligne { stroke: var(--marine); }
.serie-globale .serie-point, .serie-critere .serie-point { fill: var(--marine); }
.serie-technique .serie-ligne { stroke: var(--bleu); }
.serie-technique .serie-point { fill: var(--bleu); }
.serie-comportemental .serie-ligne { stroke: var(--texte-2); }
.serie-comportemental .serie-point { fill: var(--texte-2); }

a { color: var(--marine) !important; text-decoration: none !important; }
.tableau-comparaison tr > :first-child, .tableau-triable tr > :first-child { position: static; box-shadow: none; }
