/* Budget prévu / réel (D16), rappels (D18), rapport du mois (D17). Couleurs : variables de styles.css (thèmes clair
   et sombre). */

.note-budget { color: var(--gris); font-size: 14px; margin: 8px 0 12px; }
.defile { overflow-x: auto; }
.tableau-budget { width: 100%; border-collapse: collapse; background: var(--blanc); border: 1px solid var(--filet);
  border-radius: 12px; font-size: 14px; }
.tableau-budget th, .tableau-budget td { padding: 8px 10px; border-bottom: 1px solid var(--filet); text-align: right;
  white-space: nowrap; }
.tableau-budget th[scope=row], .tableau-budget thead th:first-child { text-align: left; white-space: normal; }
.tableau-budget thead th { color: var(--gris); font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; }
.tableau-budget tr.sous-poste th[scope=row] { padding-left: 28px; font-weight: 400; }
.tableau-budget tfoot th, .tableau-budget tfoot td { font-weight: 700; border-bottom: 0; }
.tableau-budget td.actions { text-align: left; }
.tableau-budget td.actions .btn.lien { padding: 2px 6px; }

.alerte-budget { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px;
  background: var(--survol); color: var(--gris); }
.alerte-budget.a-normal { background: var(--bleu-pale); color: var(--bleu-texte); }
.alerte-budget.a-seuil { background: var(--hors-fond); color: var(--hors-texte); }
.alerte-budget.a-depasse { background: var(--retard); color: var(--blanc); }

.historique-budget { padding-left: 18px; }
.historique-budget li { margin: 6px 0; }
.historique-budget small { color: var(--gris); }

.suivi { margin-top: 14px; }
.pile { display: grid; gap: 14px; align-content: start; }
.rappels h2 small { color: var(--gris); font-weight: 400; }
.rappels h3 { font-size: 14px; margin: 12px 0 6px; }
.liste-rappels { list-style: none; padding: 0; margin: 0; }
.liste-rappels li { padding: 6px 0; border-bottom: 1px solid var(--filet); }
.liste-rappels li:last-child { border-bottom: 0; }
.liste-rappels button { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--encre);
  cursor: pointer; text-align: left; }
.liste-rappels button:hover { color: var(--bleu-texte); text-decoration: underline; }
.liste-rappels li.passe span { color: var(--retard); }

.ligne-rapport { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.etat-rapport { min-height: 1.5em; margin: 10px 0 0; }
.erreur-rapport { color: var(--retard); font-weight: 600; }

.validite { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; color: var(--gris); font-size: 13px; }
.validite input { font: inherit; padding: 2px 4px; border: 1px solid var(--filet); border-radius: 6px;
  background: var(--blanc); color: var(--encre); }

@media (max-width: 760px) {
  .tableau-budget th, .tableau-budget td { padding: 6px 6px; }
  .validite { margin-left: 26px; }
}
