/* ============================================================================
   ÉCRANS — LES CINQ ANALYSES COMPTABLES DESSINÉES ICI
   (CPT-12 résultat, CPT-13 charges, CPT-14 qualité, CPT-15 structure,
    CPT-17 recoupements ; CPT-16 « TVA et taxes » complète le rail de six)

   UNE SEULE FEUILLE POUR CINQ ÉCRANS, ET C'EST VOULU. Ce sont les onglets d'un
   même rail : ils partagent le titre de section, la note, le petit tableau de
   fenêtre et la jauge de poids. Cinq feuilles en auraient fait cinq copies —
   exactement ce que la règle du dépôt sur les classes partagées cherche à
   éviter. Chaque onglet garde son préfixe (.rm-, .cn-, .qe-, .sf-, .rc-),
   celui de sa maquette, pour ce qui n'appartient qu'à lui.

   LA SYNTHÈSE (.sy-) A REJOINT LA FEUILLE AU LOT 9 ET L'A QUITTÉE AVEC LE
   RETRAIT DU TABLEAU DE BORD COMPTABLE. Le rail n'a plus d'écran hôte : ce sont
   six analyses à égalité, dont cinq se dessinent ici.

   CE QUI N'EST PAS ICI : le rail d'onglets (.tbd-*, module easycompta-onglets),
   la vignette (.*-fait / .*-faits, module easycompta-vignette) et les fenêtres
   (.xp-*, module easycompta-modal).
   ========================================================================== */

/* ---- COMMUN AUX CINQ ONGLETS ------------------------------------------------ */

.appgrid .cpd-titre { display: flex; align-items: center; gap: 9px; margin: var(--et-form-sect-t) 0 var(--et-form-sect-p); padding-bottom: var(--et-form-sect-p);   /* 18px 0 4px / 5 px jusqu'au 2026-10-26 */
    border-bottom: 2px solid var(--et-filet-fort); }
.appgrid .cpd-titre::before { content: ""; flex: none; width: 3px; height: 14px; background: var(--et-form-blue); }
.appgrid .cpd-titre span { font-family: var(--et-font-mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--et-table-head-encre); }
.appgrid .cpd-note { margin: 6px 0 10px; max-width: 94ch; font-size: 12px; line-height: 1.6; color: var(--et-muted); }
.appgrid .cpd-chip { display: inline-block; padding: 1px 7px; background: var(--et-surface-3); border: 1px solid var(--et-form-border); font-family: var(--et-font-mono); font-size: 12px; font-weight: 600; white-space: nowrap; }
.appgrid .cpd-ligne { cursor: pointer; }
.appgrid .cpd-ligne:hover { background: var(--et-surface-3); }

/* La jauge de poids : la part d'un poste dans son total. */
.appgrid .cpd-jauge { height: 5px; margin-top: 4px; background: var(--et-surface-3); }
.appgrid .cpd-jauge > i { display: block; height: 100%; }

.appgrid .cpd-paire, .xp-corps .cpd-paire { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }

/* ---- CPT-12 · RÉSULTAT ET MARGES ------------------------------------------- */
/* L'histogramme à double barre : produits en vert, charges en rouge, mois par
   mois. L'écart entre les deux EST le résultat du mois — et il se voit sans
   qu'on ait à le lire. */
.appgrid .rm-histo { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: end; gap: 8px; height: 180px; padding: var(--et-graphe-p); background: var(--et-surface); border: 1px solid var(--et-hairline); }
.appgrid .rm-mois { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 5px; }
.appgrid .rm-paire { display: flex; align-items: flex-end; justify-content: center; gap: 3px; width: 100%; height: 100%; }
.appgrid .rm-produits { width: 40%; background: var(--et-succes); }
.appgrid .rm-charges { width: 40%; background: var(--et-danger); }
.appgrid .rm-mois > span { font-family: var(--et-font-mono); font-size: 12px; color: var(--et-muted); }
.appgrid .rm-legende { display: flex; flex-wrap: wrap; gap: var(--et-legende-gap); margin-top: var(--et-legende-ecart); font-size: 12px; color: var(--et-muted); }
.appgrid .rm-legende i { display: inline-block; width: 11px; height: 11px; margin-right: 5px; vertical-align: -1px; }
/* CPT-12 — les colonnes de la table des soldes (gabarit .cpd-tab ci-dessous). Largeurs de
   classe et non de page (docs/conventions-responsive.md) ; la colonne « Solde » prend le reste.
   L'ancienne table (colonnes .rm-col-*, rangée .rm-principal) et sa fenêtre de détail sont
   parties avec la reprise du 2026-09-27 : le détail est désormais le panneau .cpd-detail. */
.appgrid .rm-c-ref { width: 64px; }
.appgrid .rm-c-m { width: 128px; }
.appgrid .rm-c-t { width: 84px; }
.appgrid .rm-c-v { width: 92px; }
/* La série mensuelle : le rail des barres se rapporte à la hauteur du bloc. */
.appgrid .rm-histo { height: 170px; }
/* Sous 560 px, douze « janv. » se chevauchent : l'initiale suffit, le nom reste au survol. */
.appgrid .rm-m-court { display: none; }
@media (max-width: 559px) {
    .appgrid .rm-m-long { display: none; }
    .appgrid .rm-m-court { display: inline; }
    .appgrid .rm-histo { gap: 4px; }
}

/* ---- CPT-13 · CHARGES PAR NATURE ------------------------------------------- */
/* Les colonnes de la table des postes (gabarit .cpd-tab). La barre de répartition, la tendance
   par compte, la pastille de famille et les colonnes des deux anciennes tables (.cn-col-*) sont
   parties avec la reprise du 2026-09-27 : le poids se lit dans la table, les comptes d'un poste
   dans son panneau, la saisonnalité dans « Mois par mois ». */
.appgrid .cn-c-code { width: 72px; }
.appgrid .cn-c-m { width: 128px; }
.appgrid .cn-c-e { width: 112px; }
.appgrid .cn-c-p { width: 72px; }

/* ---- CPT-14 · QUALITÉ DES ÉCRITURES ---------------------------------------- */
/* Une table des contrôles — anomalie, niveau, portée, montant — et le panneau
   « Où la corriger » à côté (gabarit .cpd-maitre / .cpd-detail). Le niveau
   s'écrit en mot ET en encre. Un contrôle PASSÉ reste dans la table, en retrait
   (tr.est-inerte) : « aucune pièce déséquilibrée » ne dit pas la même chose qu'un
   contrôle absent. */
.appgrid .qe-c-n { width: 128px; }
.appgrid .qe-c-p { width: 112px; }
.appgrid .qe-c-m { width: 120px; }
.appgrid .qe-niveau { font-weight: 600; white-space: nowrap; }
/* Portée .appgrid .cpd-bloc : la règle d'encre des cellules (.cpd-tab td) l'emporterait sinon. */
.appgrid .cpd-bloc .qe-bloquant { color: var(--et-danger-ink); }
.appgrid .cpd-bloc .qe-averti { color: var(--et-avertissement-ink); }
.appgrid .cpd-bloc .qe-conforme { color: var(--et-succes-ink); }
.appgrid .cpd-bloc .qe-attente { color: var(--et-avertissement-ink); font-weight: 600; }
.appgrid .qe-montres { margin-top: 8px; font-size: 12px; }
.appgrid .qe-porte { align-self: flex-start; margin-top: 10px; border-color: var(--et-form-blue); }

/* Les deux relevés de la saisie, côte à côte : par journal, puis par qui l'a
   ouverte. Ils ne jugent pas — ils situent. */
.appgrid .qe-deux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--et-tdb-gouttiere); align-items: start; }
.appgrid .qe-deux > .cpd-bloc { margin-bottom: 0; }

/* ---- CPT-15 · STRUCTURE FINANCIÈRE ------------------------------------------ */
/* Reprise du 2026-09-27 sur le gabarit .cpd-* : deux blocs côte à côte (bilan fonctionnel,
   équilibre), puis les ratios et leur calcul. La barre à pourcentages (.sf-part, .sf-barre,
   .sf-detail), l'échelle des ratios (.sf-echelle) et les colonnes .sf-col-* sont parties.

   LES DEUX MASSES RESTENT CÔTE À CÔTE : l'actif dit à quoi l'argent sert, le passif d'où il
   vient ; l'une sous l'autre, la comparaison se perd. Elles ne s'empilent que sous 720 px.

   LE TEXTE D'UNE MASSE N'EST PAS POSÉ SUR SA COULEUR : le blanc sur le vert ou l'ambre tombe sous
   AA, et en sombre les jetons d'état s'éclaircissent. Le bloc de couleur garde sa hauteur à
   l'échelle ; libellé et montant se lisent à côté, en encre, sur la surface. */
.appgrid .sf-deux { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--et-tdb-gouttiere); align-items: stretch; margin-bottom: var(--et-tdb-ecart); }
.appgrid .sf-deux > .cpd-bloc { margin-bottom: 0; }
.appgrid .sf-masses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: var(--et-tdb-bloc-py) var(--et-tdb-bloc-px); }
.appgrid .sf-cote-t { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--et-table-head-encre); }
.appgrid .sf-pile { display: flex; flex-direction: column; gap: 2px; height: 340px; }
/* Le libellé AU-DESSUS du montant : côte à côte, ils se chevauchaient dans une colonne de 270 px
   (capture du banc). Chaque bloc garde de quoi tenir ses deux lignes, même petit. */
.appgrid .sf-masse { display: grid; grid-template-columns: 30% minmax(0, 1fr); grid-template-rows: 1fr auto auto 1fr; flex-basis: 0; min-height: 44px; background: var(--et-surface-3); }
.appgrid .sf-masse-c { grid-row: 1 / -1; }
.appgrid .sf-masse-l { grid-row: 2; padding: 0 10px; font-size: 12px; font-weight: 600; line-height: 1.25; color: var(--et-ink); }
.appgrid .sf-masse-m { grid-row: 3; padding: 0 10px; font-size: var(--et-fs-cell); font-weight: 700; color: var(--et-ink); white-space: nowrap; }
/* Le verdict est une pastille d'état : elle garde son arrondi, et son encre est le rang -ink. */
.appgrid .sf-verdict { padding: 1px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.appgrid .sf-verdict.est-saine { background: var(--et-succes-bg); color: var(--et-succes-ink); }
.appgrid .sf-verdict.est-tendue { background: var(--et-danger-badge-bg); color: var(--et-danger-ink); }
.appgrid .sf-position { font-weight: 700; white-space: nowrap; }
.appgrid .sf-position.est-norme { color: var(--et-succes-ink); }
.appgrid .sf-position.est-surveiller { color: var(--et-avertissement-ink); }
.appgrid .sf-lien-detail { align-self: flex-start; margin-top: 8px; }
.appgrid .sf-c-g { width: 220px; }
.appgrid .sf-c-m { width: 124px; }
.appgrid .sf-c-r { width: 196px; }
.appgrid .sf-c-v { width: 84px; }
.appgrid .sf-c-p { width: 128px; }
@media (max-width: 720px) {
    .appgrid .sf-masses { grid-template-columns: minmax(0, 1fr); }
    .appgrid .sf-pile { height: 300px; }
    .appgrid .sf-c-g { width: 34%; }
    .appgrid .sf-c-m { width: 30%; }
}

/* ---- CPT-16 · TVA ET TAXES --------------------------------------------------- */
/* L'histogramme à double sens : la taxe facturée vers le haut, la taxe récupérable
   vers le bas. L'écart entre les deux barres EST ce qui est dû à l'État — la lecture
   se fait sans additionner de tête, ce qui est tout l'intérêt du dessin. */
.appgrid .tv-histo { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; padding: var(--et-graphe-p); background: var(--et-surface); border: 1px solid var(--et-hairline); }
.appgrid .tv-mois { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.appgrid .tv-haut, .appgrid .tv-bas { display: flex; width: 100%; height: 70px; }
.appgrid .tv-haut { align-items: flex-end; }
.appgrid .tv-haut > i { display: block; width: 46%; margin: 0 auto; background: var(--et-form-blue); }
.appgrid .tv-bas > i { display: block; width: 46%; margin: 0 auto; background: var(--et-avertissement); }
.appgrid .tv-mois > span { font-family: var(--et-font-mono); font-size: 12px; color: var(--et-muted); }
.appgrid .tv-axe { height: 1px; width: 100%; background: var(--et-filet-fort); }
/* Le poste de LIQUIDATION est le résultat, pas une ligne de plus : il se distingue. */
.appgrid .tv-principal td { font-weight: 700; background: var(--et-surface-3); }
/* Une échéance fiscale : un rang, sa date, ce qu'elle coûte si on la manque. */
.appgrid .tv-echeance { display: flex; align-items: center; gap: 11px; padding: 9px 12px; margin-bottom: 7px; background: var(--et-surface); border: 1px solid var(--et-hairline); border-left: 4px solid var(--et-form-blue); }
.appgrid .tv-echeance.proche { border-left-color: var(--et-avertissement-mark); }
.appgrid .tv-echeance.depassee { border-left-color: var(--et-danger-ink); }
.appgrid .tv-echeance .d { flex: none; width: 92px; font-family: var(--et-font-mono); font-size: 13px; font-weight: 600; color: var(--et-ink); }
.appgrid .tv-echeance .l { flex: 1; min-width: 0; }
.appgrid .tv-echeance .l b { display: block; font-size: 13px; color: var(--et-ink); }
.appgrid .tv-echeance .l span { display: block; font-size: 12px; color: var(--et-muted); line-height: 1.45; }
.appgrid .tv-echeance .m { flex: none; font-family: var(--et-font-mono); font-size: 13px; font-weight: 600; }
/* Les largeurs. Elles vivaient EN DUR dans le Razor (style="width:150px" sur
   chaque <th>, style="width:130px" sur le sélecteur de mois) ; une largeur dans une
   page est ce que docs/conventions-responsive.md interdit, et c'est ici qu'un
   palier peut les relâcher. Les td suivent leur th. Base déduite et taxe sont deux
   montants de même largeur : une seule classe. Le `min-width:1080px` de la table
   RESTE dans la page — le garde tools/paliers-responsive.ps1 le lit pour exiger
   l'ancre. Le mois du détail d'un poste est dans la fenêtre, d'où la double portée. */
.appgrid .tv-champ-mois { width: 130px; }
.appgrid .tv-col-poste { min-width: 250px; }
.appgrid .tv-col-compte { width: 110px; }
.appgrid .tv-col-montant { width: 150px; text-align: right; }
.appgrid .tv-col-taux { width: 90px; text-align: right; }
.appgrid .tv-col-raccord { min-width: 230px; }

/* ---- CPT-17 · RECOUPEMENTS CROISÉS ------------------------------------------ */
/* Une table — recoupement, côté comptable, côté source, écart, état — et le panneau
   « Ce que l'écart désigne » à côté (gabarit .cpd-maitre / .cpd-detail). L'état
   s'écrit en mot ET en encre : la couleur seule ne dit rien à qui ne la voit pas. */
.appgrid .rc-c-m { width: 128px; }
.appgrid .rc-c-e { width: 104px; }
.appgrid .rc-c-s { width: 104px; }
.appgrid .rc-etat { font-weight: 600; white-space: nowrap; }
/* Portée .cpd-maitre : la règle d'encre des cellules (.cpd-tab td) l'emporterait sinon. */
.appgrid .cpd-maitre .rc-concorde { color: var(--et-succes-ink); }
.appgrid .cpd-maitre .rc-tolere { color: var(--et-avertissement-ink); }
.appgrid .cpd-maitre .rc-ecart { color: var(--et-danger-ink); }
/* Un contrôle SANS OBJET reste affiché, en retrait : le retirer de la liste
   laisserait croire qu'il a été passé. */
.appgrid .cpd-maitre .rc-inerte { color: var(--et-muted); }
.appgrid .rc-porte { align-self: flex-start; margin-top: 10px; border-color: var(--et-form-blue); }
.appgrid .rc-vide { padding: 14px 12px; }
/* La largeur du champ vivait EN DUR dans le Razor ; c'est ici qu'un palier la relâche. */
.appgrid .rc-champ-tolerance { width: 110px; display: inline-block; margin-left: 6px; }

@media (max-width: 1100px) {
  .appgrid .sf-deux, .appgrid .qe-deux { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1024px) {
  .appgrid .cpd-paire, .xp-corps .cpd-paire { grid-template-columns: minmax(0, 1fr); }
  .appgrid .qe-porte { min-height: 44px; display: inline-flex; align-items: center; }
  .appgrid .rc-champ-tolerance { min-height: 44px; }
  .appgrid .rc-porte { min-height: 44px; display: inline-flex; align-items: center; }
}

/* L'ENCRE SUR UN APLAT COLORÉ EST UN JETON, ELLE AUSSI. Les deux segments colorés
   de cette feuille (.cn-segment et .sf-part, retirés depuis) écrivaient `color: #fff` — la charte
   nomme ce rôle `--et-sur-aplat` (« ink on a branded surface »), et un littéral
   échappe au relevé des couleurs en dur. Corrigé au lot 9, en passant.

   CE QUI N'EST PLUS ICI : LA SYNTHÈSE (.sy-*). Le tableau de bord comptable a été
   retiré du produit, et cette feuille était son seul dessinateur — la ligne de
   « ce qui attend », le point d'état de période et sa pastille partent avec lui.
   Aucune autre feuille ni aucun écran ne lisait ces classes ; vérifié avant de
   les retirer, comme le veut la règle du dépôt sur les classes partagées. */

/* ============================================================================
   LE GABARIT MODERNISÉ DES ONGLETS (2026-09-27, docs/modeles/design_handoff_pilotage_compta)
   Les six onglets de la maquette ont la même charpente : une rangée de vignettes, puis des
   BLOCS (.cpd-bloc) dont le principal porte une table et, à côté, le panneau de ce que forme la
   rangée choisie (.cpd-maitre). Il est écrit ici UNE fois, pour les cinq écrans de la feuille :
   CPT-12 le prend le premier, les autres le reprendront à leur portage.

   LA TABLE DEVIENT DES CARTES SOUS 720 PX, elle ne défile pas : une table de six colonnes
   laissait 428 px hors écran en tablette et 754 en mobile (mesuré au banc d'écran), et pour qui
   lit, une colonne hors écran est une colonne omise. Les deux rendus sont écrits dans la page ;
   la feuille choisit.
   ============================================================================ */
.appgrid .cpd-bloc { background: var(--et-surface); border: 1px solid var(--et-hairline); margin-bottom: var(--et-tdb-ecart); min-width: 0; }
.appgrid .cpd-bloc > .cpd-vide,
.appgrid .cpd-bloc > .rm-histo,
.appgrid .cpd-bloc > .rm-legende { margin: 0 14px 12px; }
.appgrid .cpd-bloc > .rm-histo { margin-top: var(--et-tdb-ecart); padding: 0; border: 0; }
.appgrid .cpd-bloc-t { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; padding: var(--et-carte-tete-py) var(--et-tdb-bloc-px); border-bottom: 1px solid var(--et-hairline); }
.appgrid .cpd-bloc-t > h2 { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 16px; font-weight: 700; color: var(--et-ink); }
.appgrid .cpd-bloc-fin, .appgrid .cpd-periode { font-size: 12px; color: var(--et-muted); }
.appgrid .cpd-periode { white-space: nowrap; }
.appgrid .cpd-bascule { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--et-muted); cursor: pointer; }
.appgrid .cpd-lien { font-size: 13px; font-weight: 600; color: var(--et-lien); text-decoration: none; }
.appgrid .cpd-lien:hover { text-decoration: underline; }

.appgrid .cpd-mono { font-family: var(--et-font-mono); }
.appgrid .cpd-discret { color: var(--et-muted); }
.appgrid .cpd-fort { font-weight: 700; }
.appgrid .cpd-bloc .est-negatif, .appgrid .rm-fait .v.est-negatif { color: var(--et-danger-ink); }
.appgrid .cpd-fort.est-hausse { color: var(--et-succes-ink); }
.appgrid .cpd-fort.est-baisse { color: var(--et-danger-ink); }
.appgrid .cpd-vide { padding: 14px 2px; font-size: var(--et-fs-cell); color: var(--et-muted); }

/* ---- La table et son panneau ------------------------------------------------ */
.appgrid .cpd-maitre { display: flex; align-items: stretch; }
.appgrid .cpd-maitre-l { flex: 1 1 auto; min-width: 0; }
.appgrid .cpd-tab { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: var(--et-fs-cell); }
.appgrid .cpd-tab th { padding: var(--et-cellule-tete-y) 10px; background: var(--et-table-head); color: var(--et-sur-ardoise-plein); font-size: 14px; font-weight: 600; text-align: left; white-space: nowrap; }
.appgrid .cpd-tab td { padding: var(--et-cellule-y) 10px; border-bottom: 1px solid var(--et-rang); color: var(--et-ink); }
.appgrid .cpd-tab .num { text-align: right; white-space: nowrap; }
.appgrid .cpd-tab tbody tr { cursor: pointer; }
.appgrid .cpd-tab tbody tr:hover { background: var(--et-survol); }
.appgrid .cpd-tab tbody tr:focus-visible { outline: 2px solid var(--et-form-blue); outline-offset: -2px; }
.appgrid .cpd-tab tr.est-total td { font-weight: 700; background: var(--et-surface-3); }
.appgrid .cpd-tab tr.est-choisi td { background: var(--et-tint); }
.appgrid .cpd-tab tr.est-choisi td:first-child { box-shadow: inset 3px 0 0 var(--et-form-blue); }
.appgrid .cpd-tab tfoot td { padding: var(--et-cellule-total-y) 10px; border-top: 2px solid var(--et-filet-fort); background: var(--et-surface-3); font-weight: 700; color: var(--et-ink); }
.appgrid .cpd-tab tfoot .est-baisse { color: var(--et-danger-ink); }
.appgrid .cpd-tab tfoot .est-hausse { color: var(--et-succes-ink); }
/* Une table de consultation, sans choix : pas de main au survol. */
.appgrid .cpd-tab tbody tr.est-inerte { cursor: default; }
.appgrid .cpd-tab tbody tr.est-inerte:hover { background: transparent; }
.appgrid .cpd-note-bloc { padding: var(--et-tdb-bloc-py) var(--et-tdb-bloc-px); border-bottom: 1px solid var(--et-hairline); font-size: var(--et-fs-cell); color: var(--et-muted); }

.appgrid .cpd-detail { flex: 0 0 330px; display: flex; flex-direction: column; gap: 6px; padding: var(--et-tdb-bloc-py) var(--et-tdb-bloc-px); border-left: 1px solid var(--et-hairline); background: var(--et-surface-3); min-width: 0; }
.appgrid .cpd-detail-k { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--et-table-head-encre); }
.appgrid .cpd-detail-t { font-size: 16px; font-weight: 700; color: var(--et-ink); }
.appgrid .cpd-detail-s { font-size: 12px; color: var(--et-muted); }
.appgrid .cpd-detail-liste { display: flex; flex-direction: column; margin-top: 4px; }
.appgrid .cpd-detail-l { display: flex; align-items: center; gap: 10px; min-height: 32px; border-bottom: 1px solid var(--et-hairline); font-size: var(--et-fs-cell); color: var(--et-ink); }
.appgrid .cpd-detail-lib { flex: 1; min-width: 0; }
.appgrid .cpd-detail > .cpd-lien { margin-top: 6px; }

.appgrid .cpd-alerte { display: flex; align-items: baseline; gap: 8px; margin: 0; padding: var(--et-alerte-py) 14px; border-top: 1px solid var(--et-hairline); font-size: var(--et-fs-cell); font-weight: 600; color: var(--et-danger-ink); }

/* ---- Les cartes : le rendu mobile de la même table ------------------------------- */
.appgrid .cpd-cartes { display: none; }
.appgrid .cpd-carte { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: var(--et-liste-carte-py) 14px; background: var(--et-surface); border: 0; border-bottom: 1px solid var(--et-hairline); color: var(--et-ink); font: inherit; text-align: left; cursor: pointer; }
.appgrid .cpd-carte.est-total { background: var(--et-surface-3); }
.appgrid .cpd-carte.est-choisi { background: var(--et-tint); box-shadow: inset 3px 0 0 var(--et-form-blue); }
.appgrid .cpd-carte-h { display: flex; align-items: baseline; gap: 10px; }
.appgrid .cpd-carte-h > b { flex: 1; min-width: 0; font-size: 15px; }
.appgrid .cpd-carte-l { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 12px; color: var(--et-muted); }
.appgrid .cpd-carte-l b { font-weight: 600; color: var(--et-ink); }

/* ---- Paliers (docs/conventions-responsive.md) ------------------------------------ */
@media (max-width: 1100px) {
    .appgrid .cpd-maitre { flex-direction: column; }
    .appgrid .cpd-detail { flex: none; border-left: 0; border-top: 1px solid var(--et-hairline); }
}
@media (max-width: 1024px) {
    /* min-width aussi : « Bilan › » tenait en 39 px de large (banc cpt-15, 2026-10-20). */
    .appgrid .cpd-lien, .appgrid .cpd-bascule { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; }
    .appgrid .cpd-carte { min-height: 44px; }
    .appgrid .cpd-tab tbody td { height: 44px; }
}
@media (max-width: 720px) {
    .appgrid .cpd-tab:not(.cpd-tab-garde) { display: none; }
    .appgrid .cpd-cartes { display: block; }
    /* Une table étroite (quatre colonnes) reste une table : elle tient en 358 px, resserrée. */
    .appgrid .cpd-tab-garde th, .appgrid .cpd-tab-garde td { padding-left: 6px; padding-right: 6px; font-size: 12px; }
    /* Un en-tête passe à la ligne plutôt que de toucher le suivant (« Au brouillard », CPT-14). */
    .appgrid .cpd-tab-garde th, .appgrid .cpd-tab-garde th.num { white-space: normal; vertical-align: bottom; }
    .appgrid .cpd-tab-garde tbody td { height: auto; }
    .appgrid .cpd-tab-garde th:first-child, .appgrid .cpd-tab-garde td:first-child { padding-left: 14px; }
    .appgrid .cpd-tab-garde th:last-child, .appgrid .cpd-tab-garde td:last-child { padding-right: 14px; }
}

