/* ERP Para Global Distribution — charte sobre, bleu marine #1F3864 */
:root {
  --bleu: #1F3864; --bleu-clair: #2e4f8a; --fond: #f4f6fa; --blanc: #fff; --texte: #1d1d1f;
  --gris: #6b7280; --bord: #d9dee7; --vert: #15803d; --rouge: #b91c1c; --orange: #b45309;
  --menu-l: 230px;
}
* { box-sizing: border-box; }
html { font-size: 15px; }
body { margin: 0; font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; color: var(--texte);
       background: var(--fond); line-height: 1.45; }
a { color: var(--bleu); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.5rem; margin: 0 0 1rem; color: var(--bleu); }
h2 { font-size: 1.15rem; margin: 1.5rem 0 .6rem; color: var(--bleu); }
h1 small, h2 small { color: var(--gris); font-weight: normal; font-size: .8em; }

/* Disposition : menu latéral + contenu */
.app { display: flex; min-height: 100vh; }
.menu { width: var(--menu-l); background: var(--bleu); color: #fff; padding: 1rem 0; flex-shrink: 0; }
.menu .marque { padding: 0 1rem .8rem; font-weight: 700; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.2); }
.menu .marque small { display: block; font-weight: normal; opacity: .7; font-size: .8rem; }
.menu a, .menu span.inactif { display: flex; gap: .6rem; align-items: center; color: #fff; padding: .5rem 1rem; }
.menu a:hover { background: var(--bleu-clair); text-decoration: none; }
.menu a.actif { background: #fff; color: var(--bleu); font-weight: 600; }
.menu span.inactif { opacity: .45; cursor: default; }
.menu span.inactif em { font-size: .7rem; margin-left: auto; font-style: normal; }
.menu .bas { margin-top: auto; padding: 1rem; font-size: .85rem; opacity: .85; border-top: 1px solid rgba(255,255,255,.2); }
.menu nav { display: flex; flex-direction: column; min-height: calc(100vh - 6rem); }
.contenu { flex: 1; padding: 1.5rem 2rem; max-width: 1200px; min-width: 0; }
.bouton-menu { display: none; }

/* Cartes et indicateurs */
.carte { background: var(--blanc); border: 1px solid var(--bord); border-radius: 8px; padding: 1rem 1.2rem; margin-bottom: 1rem; }
.indicateurs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.indicateur { background: var(--blanc); border: 1px solid var(--bord); border-radius: 8px; padding: .8rem 1rem; }
.indicateur .libelle { color: var(--gris); font-size: .85rem; }
.indicateur .valeur { font-size: 1.35rem; font-weight: 700; color: var(--bleu); white-space: nowrap; }
.indicateur.alerte .valeur { color: var(--rouge); }

/* Tableaux */
table { width: 100%; border-collapse: collapse; background: var(--blanc); font-size: .95rem; }
th, td { padding: .45rem .6rem; border-bottom: 1px solid var(--bord); text-align: left; vertical-align: top; }
th { background: #eef1f7; color: var(--bleu); font-weight: 600; white-space: nowrap; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr:hover td { background: #f8fafc; }
.tableau { overflow-x: auto; background: var(--blanc); border: 1px solid var(--bord); border-radius: 8px; }
.ok { color: var(--vert); font-weight: 600; }
.ecart, .retard { color: var(--rouge); font-weight: 600; }
.partiel { color: var(--orange); font-weight: 600; }
.gris { color: var(--gris); }
.badge { display: inline-block; padding: .1rem .5rem; border-radius: 999px; font-size: .8rem; background: #e5e9f2; color: var(--bleu); }
.badge.rouge { background: #fee2e2; color: var(--rouge); }
.badge.vert { background: #dcfce7; color: var(--vert); }
.badge.orange { background: #fef3c7; color: var(--orange); }

/* Formulaires */
form p { margin: 0 0 .8rem; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .2rem; }
input[type=text], input[type=number], input[type=email], input[type=date], input[type=password], select, textarea {
  width: 100%; padding: .45rem .6rem; border: 1px solid var(--bord); border-radius: 6px; font: inherit; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--bleu-clair); border-color: var(--bleu-clair); }
input[type=checkbox] { width: auto; margin-right: .4rem; }
.helptext { display: block; color: var(--gris); font-size: .8rem; }
.errorlist { color: var(--rouge); margin: .2rem 0; padding-left: 1.2rem; font-size: .85rem; }
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 1.2rem; }
.btn { display: inline-block; padding: .5rem 1rem; border-radius: 6px; border: 1px solid var(--bleu); background: var(--bleu);
       color: #fff; font: inherit; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--bleu-clair); text-decoration: none; }
.btn.secondaire { background: #fff; color: var(--bleu); }
.btn.petit { padding: .25rem .6rem; font-size: .85rem; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin: 1rem 0; }
.barre { display: flex; gap: .6rem; flex-wrap: wrap; align-items: end; margin-bottom: 1rem; }
.barre input, .barre select { width: auto; min-width: 180px; }
.messages { list-style: none; padding: 0; margin: 0 0 1rem; }
.messages li { padding: .6rem 1rem; border-radius: 6px; margin-bottom: .4rem; background: #dcfce7; color: var(--vert); }
.messages li.error { background: #fee2e2; color: var(--rouge); }
.messages li.warning { background: #fef3c7; color: var(--orange); }
.entete-page { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem; }
dl.fiche { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: 0; }
dl.fiche dt { color: var(--gris); font-weight: 600; }
dl.fiche dd { margin: 0; }
.connexion { max-width: 380px; margin: 10vh auto; }
.connexion h1 { text-align: center; }
input.prix-rapide { width: 110px; text-align: right; }
.formset-ligne { display: grid; grid-template-columns: 2fr 1.5fr 1.5fr 2fr auto auto auto; gap: .5rem; align-items: center; margin-bottom: .4rem; }
.formset-ligne label { display: inline; font-weight: normal; font-size: .85rem; }

/* Téléphone */
@media (max-width: 800px) {
  .app { flex-direction: column; }
  .menu { width: 100%; padding: .5rem 0; }
  .menu nav { display: none; min-height: 0; }
  .menu.ouvert nav { display: flex; }
  .menu .marque { display: flex; justify-content: space-between; align-items: center; border: 0; padding: .3rem 1rem; }
  .bouton-menu { display: inline-block; background: none; border: 1px solid #fff; color: #fff; border-radius: 6px; padding: .3rem .6rem; font-size: 1rem; }
  .contenu { padding: 1rem; }
  .formset-ligne { grid-template-columns: 1fr 1fr; }
  html { font-size: 14px; }
}
@media print { .menu, .actions, .barre, .btn { display: none !important; } .contenu { padding: 0; } }

/* Saisie des lignes de BL */
.suggestions { position: absolute; left: 0; right: 0; top: 100%; z-index: 10; background: #fff; border: 1px solid var(--bord); border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,.08); max-height: 240px; overflow-y: auto; }
.suggestions .sugg { padding: .35rem .6rem; cursor: pointer; }
.suggestions .sugg.sel, .suggestions .sugg:hover { background: #eef1f7; }
/* Référence interne produit (10xx, 20xx) : écrans internes uniquement, jamais sur les documents client */
.ref-produit { display: inline-block; min-width: 2.6rem; font-size: .78em; font-variant-numeric: tabular-nums; color: var(--gris); background: #f1f3f7; border: 1px solid var(--bord); border-radius: 4px; padding: 0 .3rem; text-align: center; line-height: 1.4; }
td.ref, th.ref { width: 4.2rem; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--gris); }
#lignes input.produit { min-width: 150px; }
#lignes td { vertical-align: middle; }
#lignes select.unite { width: 100%; min-width: 5.5rem; }

/* Tableau de bord */
a.indicateur { color: inherit; text-decoration: none; display: block; }
a.indicateur:hover { border-color: var(--bleu-clair); }
.petit-montant { font-size: .8rem; font-weight: normal; color: var(--gris); }
.grille-large { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 0 1rem; }
.graphique { display: flex; align-items: flex-end; gap: 4px; height: 200px; padding-top: .5rem; }
.graphique .colonne { flex: 1; display: flex; flex-direction: column; align-items: stretch; height: 100%; min-width: 0; }
.graphique .barres { flex: 1; display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid var(--bord); }
.graphique .barre { flex: 1; min-height: 1px; border-radius: 3px 3px 0 0; }
.barre.facture, .pastille.facture { background: var(--bleu); }
.barre.encaisse, .pastille.encaisse { background: #5fa8d3; }
.graphique .etiquette { font-size: .7rem; color: var(--gris); text-align: center; margin-top: 3px; white-space: nowrap; overflow: hidden; }
.legende { font-size: .85rem; color: var(--gris); }
.pastille { display: inline-block; width: .8rem; height: .8rem; border-radius: 2px; vertical-align: middle; margin: 0 .2rem 0 .8rem; }
.jauge { background: #eef1f7; border-radius: 3px; height: .6rem; }
.jauge div { background: var(--bleu); height: 100%; border-radius: 3px; }
table.top td { border: 0; padding: .3rem .4rem; }
h3 { font-size: 1rem; margin: .8rem 0 .3rem; color: var(--bleu); }
ul { margin: 0; padding-left: 1.2rem; }
pre.message { white-space: pre-wrap; background: #f8fafc; border: 1px solid var(--bord); border-radius: 6px; padding: .6rem; font-size: .85rem; }
.a-faire { columns: 2 300px; column-gap: 2rem; }
.a-faire h3 { break-after: avoid; }
.a-faire ul, .a-faire p { break-inside: avoid; }
.a-faire h3:first-child { margin-top: 0; }
table.top td:first-child { min-width: 9rem; }
ol.etapes { padding-left: 1.2rem; margin: 0 0 .6rem; }
ol.etapes li { margin-bottom: .2rem; }
details.carte summary { cursor: pointer; color: var(--bleu); }
#lignes input[readonly] { background: #f3f5f9; color: var(--gris); border-color: transparent; }
.onglets { display: flex; gap: .3rem; border-bottom: 1px solid var(--bord); margin-bottom: 1rem; flex-wrap: wrap; }
.onglets a { padding: .45rem .9rem; border: 1px solid transparent; border-bottom: 0; border-radius: 6px 6px 0 0; color: var(--gris); }
.onglets a.actif { background: #fff; border-color: var(--bord); color: var(--bleu); font-weight: 600; margin-bottom: -1px; }

/* Saisie des lignes sur téléphone : une carte par ligne au lieu d'un tableau trop large */
@media (max-width: 700px) {
  #lignes thead { display: none; }
  #lignes, #lignes tbody, #lignes tfoot { display: block; }
  #lignes tbody tr { display: grid; grid-template-columns: 1fr 1fr 2.4rem; gap: .35rem .5rem; padding: .6rem .5rem;
                     border-bottom: 1px solid var(--bord); position: relative; }
  #lignes tbody td { border: 0; padding: 0; display: block; text-align: left; }
  #lignes tbody td.n { display: none; }
  #lignes tbody td:nth-child(2) { grid-column: 1 / 3; grid-row: 1; }
  #lignes tbody td.c-suppr { grid-column: 3; grid-row: 1; }
  #lignes tbody td.c-unite { grid-column: 1; }
  #lignes tbody td.c-qte { grid-column: 2 / 4; }
  #lignes tbody td.c-prix { grid-column: 1; }
  #lignes tbody td.total { grid-column: 2 / 4; }
  #lignes input.produit { min-width: 0; width: 100%; }
  #lignes input.prix-rapide { width: 100%; }
  #lignes td.total { align-self: center; font-weight: 600; text-align: right; }
  #lignes td.total::before { content: "Total "; font-weight: normal; color: var(--gris); }
  #lignes tfoot tr { display: flex; justify-content: space-between; padding: .6rem .5rem; }
  #lignes tfoot th { border: 0; }
  #lignes tfoot th:last-child:empty { display: none; }
  .tableau:has(#lignes) { overflow: visible; }
}

/* Fenêtre de confirmation des suppressions */
dialog.dialogue { border: 1px solid var(--bord); border-radius: 10px; padding: 1.2rem 1.4rem; width: min(440px, 92vw);
                  box-shadow: 0 10px 40px rgba(0,0,0,.2); }
dialog.dialogue::backdrop { background: rgba(31,56,100,.35); }
.btn.danger { background: var(--rouge); border-color: var(--rouge); }
.btn.danger:hover { background: #991b1b; }
.btn-ligne { background: none; border: 0; cursor: pointer; color: var(--gris); font-size: 1rem; padding: 0 .3rem; }
.btn-ligne:hover { color: var(--rouge); }
.zone-danger { margin-top: 1.5rem; border-top: 1px dashed var(--bord); padding-top: .8rem; }
.zone-suppression { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; font-size: .85rem; }

/* Suivi de consommation */
.synthese-conso { border-left: 4px solid var(--bleu); font-size: 1.02rem; }
.synthese-conso p { margin: .2rem 0; }
.graphique.conso { height: 230px; }
.graphique.conso .colonne { border-radius: 4px; padding: 0 1px; }
.graphique.conso .colonne.zone-ref { background: #eef6ee; }
.graphique.conso .colonne.zone-comp { background: #fdf3e3; }
.graphique .barres.empilees { flex-direction: column-reverse; align-items: stretch; justify-content: flex-start; gap: 0; }
.graphique .barres.empilees .barre { flex: none; border-radius: 0; min-height: 0; }
.graphique .barres.empilees .barre:first-child { border-radius: 0; }
.graphique.conso .indice { font-size: .7rem; text-align: center; color: var(--bleu); font-weight: 600; height: 1rem; }
.barre.cat1, .pastille.cat1 { background: #2e7d32; }
.barre.cat2, .pastille.cat2 { background: #e0a030; }
.barre.cat3, .pastille.cat3 { background: #5fa8d3; }
.pastille.zone-ref-p { background: #eef6ee; border: 1px solid #c8e0c8; }
.pastille.zone-comp-p { background: #fdf3e3; border: 1px solid #f0d9b0; }
tr.ligne-ref td { background: #f6fbf6; }
tr.ligne-comp td { background: #fefaf2; }
.indicateur.hausse .valeur, .hausse-txt { color: #2e7d32; font-weight: 600; }
.barre select { min-width: 140px; }
.graphique .barre { margin: 0; display: block; gap: 0; }

/* Graphiques SVG */
.graphique-svg { width: 100%; height: auto; display: block; }
.bascule { display: inline-flex; border: 1px solid var(--bleu); border-radius: 6px; overflow: hidden; }
.bascule button { background: #fff; color: var(--bleu); border: 0; padding: .3rem .7rem; font: inherit; font-size: .85rem; cursor: pointer; }
.bascule button.actif { background: var(--bleu); color: #fff; }
.trait-moyenne { display: inline-block; width: 1.4rem; border-top: 2px dashed var(--bleu); vertical-align: middle; margin: 0 .2rem 0 .8rem; }
.petit-texte { font-size: .82rem; margin: .2rem 0; }

/* Page détail de consommation */
.form-periodes { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: flex-end; }
.form-periodes fieldset { border: 1px solid var(--bord); border-radius: 6px; padding: .3rem .6rem .5rem; margin: 0; display: flex; gap: .4rem; align-items: center; }
.form-periodes legend { font-size: .85rem; font-weight: 600; color: var(--bleu); padding: 0 .3rem; }
.form-periodes select { width: auto; min-width: 9rem; }
.form-periodes .client select { width: auto; }
.form-periodes .raccourcis, .form-periodes .petit-texte { flex-basis: 100%; margin: 0; font-size: .88rem; }
.raccourcis a.actif { font-weight: 700; text-decoration: underline; }
.kpi-ligne { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .6rem; margin-bottom: .4rem; }
.kpi-ligne .valeur { font-size: 1.15rem; }
.bloc-conso h3 small { font-weight: normal; }
table.table-conso { table-layout: fixed; width: 100%; font-size: .88rem; }
table.table-conso th, table.table-conso td { padding: .35rem .4rem; overflow-wrap: anywhere; }
table.table-conso th { white-space: normal; }
col.c-produit { width: 20%; } col.c-unite { width: 6%; } col.c-q { width: 9%; } col.c-evol { width: 9%; } col.c-prix { width: 9%; } col.c-impact { width: 11%; } col.c-spark { width: 18%; }
.sparkline { display: block; width: 100%; max-width: 110px; height: 24px; }
details.replie { margin-top: .8rem; }
details.replie summary { cursor: pointer; color: var(--bleu); font-weight: 600; padding: .3rem 0; }
@media (max-width: 1100px) { .kpi-ligne { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .kpi-ligne { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-masque { display: none; }
  table.table-conso col.c-unite, table.table-conso col.c-prix, table.table-conso col.c-spark { width: 0; }
  col.c-produit { width: 34%; }
}
.graphe-moyen { max-width: 760px; }
.graphe-large { max-width: 900px; }
.top10 { max-width: 760px; }

/* =====================================================================
   Mise en forme (novembre 2026) : menu, couleurs, tableaux, filtres, téléphone
   ===================================================================== */
:root {
  --c-fl: #2e7d32; --c-agro: #e0a030;                         /* types de BL */
  --c-livre: #1F3864; --c-facture: #3b6fb6; --c-encaisse: #9cc3e6;  /* livré / facturé / encaissé */
  --c-retard: #b91c1c; --c-a-faire: #b45309;
}
.pastille.c-livre { background: var(--c-livre); } .pastille.c-facture { background: var(--c-facture); }
.pastille.c-encaisse { background: var(--c-encaisse); }

/* Menu : sections, icônes, une seule entrée active */
.menu { position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.menu nav { min-height: calc(100vh - 5rem); }
.menu-titre { font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; color: #9fb6da; padding: .85rem 1rem .2rem; }
.menu nav a { display: flex; align-items: center; gap: .65rem; color: #e3eaf6; padding: .42rem 1rem .42rem calc(1rem - 3px);
              border-left: 3px solid transparent; font-size: .93rem; }
.menu nav a .icone { flex-shrink: 0; opacity: .9; }
.menu nav a:hover { background: var(--bleu-clair); color: #fff; text-decoration: none; }
.menu nav a.actif, .menu nav a.actif:hover { background: #fff; color: var(--bleu); font-weight: 600; border-left-color: #85B7EB; }
.menu nav a.actif .icone { opacity: 1; }
.badge-menu { margin-left: auto; min-width: 1.45rem; text-align: center; border-radius: 999px; font-size: .72rem; font-weight: 600;
              padding: .05rem .4rem; line-height: 1.3; }
.badge-menu.ambre { background: #FAC775; color: #633806; }
.badge-menu.rouge { background: #F7C1C1; color: #791F1F; }
.menu .bas { margin-top: auto; padding: .8rem 1rem; font-size: .82rem; }
.menu .bas .utilisateur { display: flex; align-items: center; gap: .4rem; margin-bottom: .4rem; }
.menu .marque { padding-bottom: .6rem; }

/* Tableau de bord */
.indicateurs.kpi-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 1280px) { .indicateurs.kpi-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.indicateurs.kpi-6 .valeur { font-size: 1.2rem; }
.mini-kpi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin: .2rem 0 .6rem; }
.mini-kpi div { background: #f6f8fc; border-radius: 6px; padding: .5rem .7rem; }
.mini-kpi .libelle { display: block; color: var(--gris); font-size: .8rem; }
.mini-kpi strong { font-size: 1.05rem; color: var(--bleu); }
.carte-conso .synthese-conso { padding-left: .6rem; margin: 0; }

/* Tableaux : pas de retour à la ligne pour codes, types, dates ; nombres à droite ; en-tête collant */
.tableau { overflow-x: clip; overflow-y: visible; }
td.nw, th.nw, td.num, th.num { white-space: nowrap; }
td.num, th.num { text-align: right; }
.tableau table tr:first-child th, .tableau table thead th { position: sticky; top: 0; z-index: 2; box-shadow: 0 1px 0 var(--bord); }
.badge { padding: .18rem .6rem; font-size: .8rem; font-weight: 600; border: 1px solid #cdd6e6; white-space: nowrap; }
.badge.vert { border-color: #9fd3a8; } .badge.rouge { border-color: #f1aaaa; } .badge.orange { border-color: #f2cf8a; }

/* Filtres : cases à cocher collées à leur libellé */
.barre label:has(> input[type=checkbox]), label:has(> input[type=checkbox]) {
  display: inline-flex; align-items: center; gap: .35rem; font-weight: normal; white-space: nowrap; }
.barre label:has(> input[type=checkbox]) input { margin: 0; }
.barre label:has(> input[type=date]), .barre label:has(> select) { display: inline-flex; align-items: center; gap: .35rem; font-weight: normal; }

/* Page Consommation : filtres sur une ligne */
.form-periodes { flex-wrap: wrap; align-items: center; }
@media (min-width: 1100px) {
  .form-periodes { flex-wrap: nowrap; }
}
.ligne-raccourcis { margin: -.4rem 0 1rem; font-size: .88rem; }
.ligne-raccourcis .raccourcis { margin: 0; }
.form-periodes .btn { flex-shrink: 0; }
.ligne-raccourcis .petit-texte { margin: .2rem 0 0; }
.form-periodes fieldset { padding: .25rem .5rem .4rem; }
.form-periodes select { min-width: 8.5rem; }
.form-periodes .client { display: inline-flex; align-items: center; gap: .35rem; }

/* Listes vides */
.vide { text-align: center; padding: 2.2rem 1rem; }
.vide p { max-width: 560px; margin: 0 auto 1rem; color: #4b5563; }
.vide .icone { color: var(--bleu-clair); margin-bottom: .4rem; }

/* Fiche BL : statut dans le titre, corbeilles en mode modification */
h1 .badge { font-size: .85rem; vertical-align: middle; margin-left: .4rem; }
.lignes-verrouillees .btn-ligne { display: none; }

/* Téléphone (< 768 px) */
@media (max-width: 767px) {
  .actions .btn, .actions > form, .actions > form .btn, .actions > a { width: 100%; text-align: center; }
  .actions { flex-direction: column; align-items: stretch; }
  .indicateurs.kpi-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu { position: static; height: auto; }
  .menu nav { min-height: 0; }
  /* listes en cartes */
  table.liste, table.liste tbody { display: block; }
  table.liste tr:first-child:has(th), table.liste thead { display: none; }
  table.liste tr { display: grid; grid-template-columns: 1fr auto; gap: .1rem .8rem; padding: .7rem .8rem;
                   border-bottom: 1px solid var(--bord); }
  table.liste td { border: 0; padding: 0; white-space: normal; }
  table.liste td.secondaire { display: none; }
  table.liste td.cle-num { font-weight: 700; }
  table.liste td.cle-ref { grid-column: 1 / -1; width: auto; font-size: .78rem; color: var(--gris); }
  table.liste td.cle-montant, table.liste td.cle-statut { text-align: right; }
  table.liste td.cle-date::before, table.liste td.cle-client::before { content: ""; }
  table.liste td.cle-date, table.liste td.cle-client { color: var(--gris); font-size: .88rem; }
  .tableau:has(table.liste) { overflow: visible; }
  /* saisie des lignes : prix utilisable */
  #lignes tbody tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 2.4rem; }
  #lignes tbody td.c-prix { grid-column: 1 / 3 !important; }
  #lignes tbody td.c-prix input { width: 100%; min-width: 0; }
  #lignes tbody td.total { grid-column: 1 / 4 !important; }
  #lignes tbody td.c-prix::before { content: "Prix unitaire HT"; display: block; font-size: .75rem; color: var(--gris); }
  #lignes tbody td.c-qte::before { content: "Quantité"; display: block; font-size: .75rem; color: var(--gris); }
  #lignes tbody td.c-unite::before { content: "Unité"; display: block; font-size: .75rem; color: var(--gris); }
}
@media (max-width: 800px) { .menu { position: static; height: auto; } }
@media (max-width: 767px) {
  .entete-page { flex-direction: column; align-items: stretch; }
  .entete-page > .actions, .entete-page > .btn, .entete-page > a.btn { width: 100%; margin: .2rem 0; text-align: center; }
  .barre select, .barre input { flex: 1 1 140px; min-width: 0; }
}
.form-periodes select, .form-periodes .client select { min-width: 0; width: 8.2rem; padding-left: .4rem; padding-right: .2rem; }
.form-periodes fieldset { gap: .3rem; }
.form-periodes { gap: .5rem .8rem; }
