/* Copie de Widgets/5014_budget/static/budget_enveloppes.css (application Almanach), faite par outils/site_almanach/construire_site.py : ne pas modifier ici. */
/* Enveloppes par catégorie (LOT7_BUDGET §13) : disposition seulement, couleurs par jetons. */
.env-tete{margin:0 0 1rem}.env-tete h2{margin:0 0 .2857rem}.env-tete p{margin:0;max-width:72ch}
.env-alerte .s-link{margin-left:.4286rem}
.env-grille{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.7fr);gap:.8571rem;margin:0 0 .8571rem;align-items:start}
.env-synthese .s-chiffre{margin:.2857rem 0 .4286rem}.env-synthese p{margin:0 0 .4286rem}
.env-graphe{min-width:0}
.env-carte{margin:0 0 .8571rem}
.env-ligne{flex-wrap:wrap;align-items:flex-start}
.env-texte{flex:1 1 18.5714rem;min-width:0}.env-texte p{overflow-wrap:anywhere}.env-texte small{font-variant-numeric:tabular-nums}
.env-meter{max-width:30rem}
.env-ligne[data-niveau=depassee] .env-meter span{background:var(--s-red)}
.env-badge{color:var(--s-red)}
.env-reglage>summary{list-style:none}.env-reglage>summary::-webkit-details-marker{display:none}
.env-forms{display:flex;flex-wrap:wrap;gap:.5714rem;margin-top:.5714rem}
.env-forms .s-input{width:9.5em}
.env-sans p{color:var(--s-muted)}
.env-gerer{margin:0}.env-gerer .s-row{flex-wrap:wrap}
.env-actions{display:flex;flex-wrap:wrap;gap:.4286rem;justify-content:flex-end}
.env-actions .s-input{width:11em}
.env-proposees{display:flex;flex-wrap:wrap;align-items:center;gap:.7143rem;justify-content:center;margin:0 0 .4286rem}
.env-ajout{max-width:30rem}
.bl-carte-cat .bl-sans span:first-child{color:var(--s-muted)}
@media(max-width:900px){.env-grille{grid-template-columns:minmax(0,1fr)}}
@media(max-width:640px){.env-actions{justify-content:flex-start}.env-forms .s-input,.env-actions .s-input{flex:1 1 8em;min-height:3.1429rem}.env-forms .s-btn,.env-actions .s-btn,.env-reglage>summary{min-height:3.1429rem}}
@media(min-width:641px){.br-quick:has([data-categorie]){grid-template-columns:auto minmax(7.8571rem,11.4286rem) minmax(0,1fr) minmax(8.5714rem,12.1429rem) auto}}
@media(max-width:640px){.br-quick [data-categorie]{grid-column:1/-1}}
/* LOT7_BUDGET §20 bis : la carte « Par catégorie » est dans la grille, placée sous les deux autres comme avant. En mode pages, tout s'empile : synthèse et jauges d'abord, ligne à ligne, puis le graphique en pleine largeur sur la sous-page suivante, sans vide. */
.env-synthese{grid-column:1;grid-row:1}.env-graphe{grid-column:2;grid-row:1}.env-grille>.env-carte{grid-column:1/-1;grid-row:2;margin:0}
@media(max-width:900px){.env-synthese,.env-graphe,.env-grille>.env-carte{grid-column:1;grid-row:auto}}
html.sous-pages-voulues .env-grille{display:flex;flex-direction:column;align-items:stretch;gap:.8571rem}
/* LOT7_BUDGET §21 : report d'une période à l'autre (case dans le réglage) et historique des périodes closes (B4). */
.env-grille>.env-historique{grid-column:1/-1;grid-row:3;margin:0}
@media(max-width:900px){.env-grille>.env-historique{grid-column:1;grid-row:auto}}
.env-case{display:inline-flex;align-items:center;gap:.4286rem;font-size:.8571rem;color:var(--s-muted)}.env-case input{width:1.2857rem;height:1.2857rem;accent-color:var(--s-accent)}
.env-report{color:var(--s-accent);font-weight:600}
.env-histo th[scope=row]{font-weight:600;white-space:nowrap}.env-histo th[scope=col]{white-space:nowrap}
.env-case-histo strong{display:block;font-variant-numeric:tabular-nums}.env-case-histo small{display:block;color:var(--s-muted);font-size:.7857rem;margin-top:2px}
.env-case-histo[data-niveau=proche] strong{color:var(--s-ink)}.env-case-histo[data-niveau=depassee] strong{color:var(--s-red)}.env-case-histo[data-niveau=ok] strong{color:var(--s-accent)}
