/* Les échéances de la maison : la liste des dates et ce que chacun recevra.
   S'appuie sur commun.css, app.css, maison.css et papiers.css. */

.ech-barre { margin-top: 26px; }
.ech-barre .section-tete { flex-wrap: wrap; gap: 12px; }
.ech-barre .sous { margin: 2px 0 0; }
.ech-bandeau { margin: 0; }
.ech-bandeau .btn { flex: none; }

.ech-groupe { margin-top: 24px; }
.ech-groupe > h2 { font-size: 1.2rem; margin: 0 0 10px; }

.ech-ligne { justify-content: flex-start; }
.ech-ligne .ligne-corps { flex: 1 1 200px; }
.ech-ligne .ech-doc { justify-content: flex-start; text-align: left; padding-left: 0; padding-right: 0; }
.ech-ligne .ech-doc .ico { flex: none; }
.ech-quand { flex: none; display: grid; justify-items: end; gap: 3px; text-align: right; }
.ech-quand b { font-weight: 700; white-space: nowrap; }
.ech-quand small { color: var(--doux); }
.ech-passee .ech-quand b { color: #B23A37; }
/* Même largeur pour « Modifier » et « Régler » : la colonne des dates reste alignée d'une ligne à l'autre. */
.ech-ligne > .btn { flex: none; min-width: 96px; justify-content: center; text-align: center; }

.ech-note { max-width: 78ch; margin-top: 14px; }

@media (max-width: 760px) {
  .sous-nav a { padding: 8px 4px; gap: 4px; font-size: .8rem; }
  .ech-barre .actions { width: 100%; }
  .ech-barre .actions .btn { flex: 1 1 auto; }
  .ech-ligne { flex-wrap: wrap; gap: 8px 12px; }
  .ech-ligne .ligne-corps { flex: 1 1 0; }
  .ech-quand { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; text-align: left; gap: 4px 10px; padding-left: 54px; }
  .ech-quand .tag { white-space: nowrap; }
  .ech-quand small { flex: 1 1 100%; }
  .ech-ligne > .btn { margin-left: auto; min-width: 0; }
}
/* Cinq liens sur une seule ligne dans un téléphone : les mots seuls, sans leur dessin. */
@media (max-width: 480px) {
  .sous-nav { flex-wrap: nowrap; gap: 0; overflow-x: auto; }
  .sous-nav a { white-space: nowrap; padding: 8px 4px; font-size: .76rem; }
  .sous-nav a .ico { display: none; }
}
