/* ===========================================================================
   ÉCRAN « ABSENCES & JUSTIFICATIFS » (/app/paie/absences-justificatifs, CNG-03) — .abj-*

   Maquette « Absences & justificatifs » (canevas du 2026-09-28, versée dans
   docs/modeles/design_handoff_absences_justificatifs/). Ce que cette feuille pose :
     · les cellules à deux lignes (nom + matricule, dates + jours, pièce + fichier) ;
     · le pied qui mène à la décision et à la GED ;
     · le référentiel des types, une ligne par type qui se range sur la largeur.
   Les onglets sont au gabarit (.mx-vues), comme la liste en cartes sous 1024 px
   (.mx-liste-cartes). AUCUNE COULEUR EN DUR : tout par --et-*.
   =========================================================================== */

.abj-vues             { margin: 4px 0 16px; }

.abj-nom, .abj-type-cell, .abj-periode, .abj-piece {
    display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px;
}
.abj-sous             { font-size: 12px; font-weight: 400; color: var(--et-muted); }
.tbl-alerte .abj-sous { color: var(--et-ink); }
.abj-dates            { white-space: nowrap; }
.abj-piece .ep-pastille { white-space: nowrap; }
.abj-fichier          { max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.abj-pied             { margin: 10px 2px 20px; font-size: 13px; line-height: 1.5; color: var(--et-muted); }
.abj-pied strong      { color: var(--et-ink); }

/* ---- Le référentiel des types ------------------------------------------------ */
.abj-types-liste      { list-style: none; margin: 0; padding: 0; }
.abj-type             { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
                        padding: 10px 14px; border-top: 1px solid var(--et-hairline); }
.abj-type:first-child { border-top: 0; }
.abj-type-id          { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; flex: 1 1 260px; min-width: 0; }
.abj-type-code        { font-family: var(--et-font-mono); font-size: 12px; color: var(--et-muted); min-width: 6ch; }
.abj-type-nature      { font-size: 12px; color: var(--et-muted); }
.abj-type-n           { flex: 0 0 auto; min-width: 11ch; text-align: right; font-size: 13px; color: var(--et-muted); }
/* Le type orphelin : un filet d'avertissement, l'encre de son rang pour le compte. */
.abj-type.est-orphelin { box-shadow: inset 3px 0 0 var(--et-avertissement-mark); }
.abj-type.est-orphelin .abj-type-n { font-weight: 600; color: var(--et-avertissement-ink); }

@media (max-width: 1024px) {
    .abj-nom          { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
    .abj-type-cell    { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
    .abj-pied a       { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 640px) {
    .abj-type-n       { flex: 1 1 100%; text-align: left; min-width: 0; }
}
