/* Mise en page propre au web. Uniquement des variables du thème (voir css/composants.css). */
.entete {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
  padding: var(--space-md) var(--space-xl); background: var(--color-surface); border-bottom: 1px solid var(--color-border);
}
.marque { color: var(--color-primary-text); display: inline-flex; align-items: center; gap: var(--space-sm); }
.logo-marque { height: 1.6em; width: auto; }
.logo-connexion { display: block; width: 96px; height: auto; margin: 0 auto var(--space-md); }
.contenu { max-width: 1040px; margin: var(--space-xl) auto; padding: 0 var(--space-lg); display: grid; gap: var(--space-xl); }
.auth { max-width: 440px; margin: var(--space-xxl) auto; padding: 0 var(--space-lg); }
.stack-form { display: grid; gap: var(--form-gap); }

/* Créneaux horaires : jour, début et fin sur une seule ligne. */
.ligne-creneau { flex-wrap: nowrap; }
/* créneaux : libellés réservés au téléphone (voir plus bas) */
.valeur-libelle { display: none; }
.ligne-creneau .input { width: auto; min-width: 0; }
.ligne-creneau select.input { flex: 1 1 auto; max-width: 180px; }

/* Enregistrement d'une transaction : tuiles de type, récapitulatif */
.tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-md); }
.tuile {
  display: grid; gap: var(--space-xs); justify-items: center; text-align: center; cursor: pointer;
  padding: var(--space-xl) var(--space-md); font: inherit; color: var(--color-text);
  background: var(--color-surface); border: 2px solid var(--color-border); border-radius: var(--card-radius);
}
/* la couleur de fond vient du type (CMS ou propriétaire) : le survol se voit par un contour */
.tuile:hover, .tuile:focus-visible { outline: 3px solid var(--color-text); outline-offset: 2px; }
.tuile-symbole { font-size: var(--text-display-size); line-height: 1; color: inherit; }
.tuile-libelle { font-size: var(--text-subtitle-size); font-weight: var(--text-subtitle-weight); }
.tuile:disabled { opacity: .5; cursor: not-allowed; }
.recap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 280px); gap: var(--space-lg); align-items: start; }
.recap-image { width: 100%; border: 1px solid var(--color-border); border-radius: var(--radius); }
@media (max-width: 859px) { .recap { grid-template-columns: 1fr; } }

/* Ancrage visuel : bandeau aux couleur et nom du type choisi, des étapes 2 à 4 */
.bandeau-type { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-md) var(--space-lg); border-radius: var(--card-radius); }
.bandeau-type-symbole { font-size: var(--text-display-size); line-height: 1; }
.bandeau-type-libelle { font-size: var(--text-title-size); font-weight: var(--text-title-weight); }
#carte-transaction { border-width: 3px; }

.tuile-effets { font-size: var(--text-caption-size); opacity: .9; }

/* Espace connecté : menu à gauche, une page par élément (comme le CMS) */
.cms { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: calc(100vh - 64px); }
.menu { background: var(--color-surface); border-right: 1px solid var(--color-border); padding: var(--space-lg) 0; }
.menu a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm);
  padding: var(--space-sm) var(--space-xl); color: var(--color-text);
  text-decoration: none; font-size: var(--label-size); font-weight: var(--label-weight);
}
.menu a:hover { background: var(--color-surface-muted); }
.menu a.actif { background: var(--color-primary-soft); color: var(--color-primary-text); }
.cms .contenu { max-width: none; margin: 0; padding: var(--space-xl); display: grid; gap: var(--space-xl); align-content: start; }
.cms .contenu > [data-section] { display: grid; gap: var(--space-xl); }
.cms .contenu > [data-section].cache { display: none; }
/* Sous le palier « large » (860 px) : menu au-dessus du contenu. */
@media (max-width: 859px) {
  .cms { grid-template-columns: 1fr; }
  .menu { border-right: 0; }
}
.ecart-negatif { color: var(--color-danger); font-weight: var(--label-weight); }
/* Compte marchand : informations, puis actions toujours sur leur propre ligne (même disposition pour tous
   les comptes, quelle que soit la longueur du texte). */
.compte-ligne { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-sm);
  padding: var(--space-sm) 0; border-bottom: 1px solid var(--color-border); }
.compte-ligne > .actions-ligne { justify-content: flex-start; }
.compte-ligne:last-child { border-bottom: 0; }
/* Type d'une opération : son symbole dans un carré à sa couleur (carré seul si pas de symbole) */
.type-operation { display: inline-flex; align-items: center; gap: var(--space-sm); }
.symbole-type { display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 1.75em; height: 1.75em; border-radius: var(--radius-sm, 4px); font-weight: var(--label-weight); line-height: 1; }
/* Reçu : vignette dans le détail ; visionneuse plein écran au clic (pleine résolution) */
.vignette-recu { display: inline-flex; flex-direction: column; align-items: center; gap: var(--space-xs); width: 140px; padding: var(--space-xs);
  border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface-muted); cursor: zoom-in; }
.vignette-recu img { width: 100%; height: 180px; object-fit: cover; object-position: top; border-radius: var(--radius); }
.vignette-recu:hover { border-color: var(--color-primary); }
dialog.visionneuse { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: var(--space-lg);
  border: 0; background: var(--color-overlay); display: flex; flex-direction: column; align-items: center; gap: var(--space-sm); }
dialog.visionneuse::backdrop { background: var(--color-overlay); }
.visionneuse-fermer { position: fixed; top: var(--space-md); right: var(--space-md); z-index: 1; }
.visionneuse-cadre { flex: 1; width: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: auto; }
.visionneuse-cadre img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in;
  background: var(--color-surface); border-radius: var(--radius); }
dialog.visionneuse.taille-reelle .visionneuse-cadre { align-items: flex-start; justify-content: flex-start; }
dialog.visionneuse.taille-reelle .visionneuse-cadre img { max-width: none; max-height: none; cursor: zoom-out; }
.visionneuse-aide { color: var(--color-on-primary); }

/* Totaux par type d'opération (selon les filtres) */
.totaux-operations { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--space-sm); margin-bottom: var(--space-md); }
.total-type { display: flex; flex-direction: column; gap: var(--space-xs); padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface-muted); }

/* Suivi des opérations : filtres en ligne (ordinateur), les uns sous les autres (téléphone) */
.filtres-operations { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-sm);
  align-items: end; margin-bottom: var(--space-md); }
.filtres-operations > .row { grid-column: 1 / -1; }   /* boutons sous les filtres, sur toute la largeur */
/* Agences : le contenu de chaque colonne reste en haut, quelle que soit la hauteur de l'autre */
.table-agences td { vertical-align: top; }
@media (max-width: 859px) {
  /* petit écran : l'agence puis ses comptes, chacun sur toute la largeur (pas deux colonnes étroites) */
  .table-agences thead { display: none; }
  .table-agences tr, .table-agences td { display: block; width: 100%; }
  .table-agences td + td { padding-top: 0; }
  .table-agences .badge { white-space: normal; }
}
/* Accordéon (accès des gérants) : détails visibles au clic sur le nom */
.accordeon { border: 1px solid var(--color-border); border-radius: var(--radius); }
.accordeon > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm);
  padding: var(--space-md); cursor: pointer; list-style: none; }
.accordeon > summary::-webkit-details-marker { display: none; }
.accordeon > summary::after { content: "▸"; color: var(--color-text-muted); }
.accordeon[open] > summary::after { content: "▾"; }
.accordeon-corps { padding: 0 var(--space-md) var(--space-md); }

/* Contrôle du total : montants sur une ligne, alignés à droite */
.table-controle td:last-child { white-space: nowrap; text-align: right; }

/* Page Caisses : soldes compacts (nom à gauche, montant à droite) ; en-tête de carte (agence + actions) */
.ligne-solde { display: flex; align-items: center; gap: var(--space-sm); }
.ligne-solde .montant { margin-left: auto; white-space: nowrap; }
.table-cartes td { vertical-align: top; }
/* Téléphone : chaque ligne de tableau devient une carte pleine largeur (plus de colonnes écrasées) */
@media (max-width: 640px) {
  .table-cartes thead { display: none; }
  .table-cartes, .table-cartes tbody, .table-cartes tr, .table-cartes td { display: block; width: auto; }
  .table-cartes tr { border: 1px solid var(--color-border); border-radius: var(--radius); padding: var(--space-sm) var(--space-md); margin-bottom: var(--space-md); }
  .table-cartes td { border-bottom: none; padding: var(--space-xs) 0; }
  .table-cartes td:empty { display: none; }
  /* cartes : colonnes réservées à l'ordinateur ; ligne cliquable (détails) */
  .table-cartes .masquer-telephone { display: none !important; }
  .table-gerants td { padding: 2px 0; }
  /* caisses : la carte reprenant l'application mobile remplace le tableau */
  #table-caisses { display: none; }
  .cartes-caisses { display: flex; flex-direction: column; gap: var(--space-md); }
  .table-cartes td.masquer-mobile { display: block; }
  .table-cartes td[data-libelle]::before { content: attr(data-libelle) " : "; color: var(--color-text-muted); font-size: var(--text-caption-size); }
}

/* Caisses : actions en libellés listés verticalement (ordinateur) ; carte du téléphone (comme l'app mobile) */
.liens-actions { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-xs); }
.liens-actions .text-link, .lien-carte, .lien-action { background: none; border: none; padding: var(--space-xs) 0; text-align: left; }
/* libellés d'action : sans soulignement */
.liens-actions .text-link, .lien-carte, .lien-action { text-decoration: none; }
.lien-carte { align-self: center; }
@media (min-width: 641px) { .cartes-caisses { display: none; } }
.carte-caisse { border: 1px solid var(--color-border); border-radius: var(--radius); padding: var(--space-md); background: var(--color-surface); }
.carte-caisse .bouton-plein { width: 100%; }
.montant-negatif { color: var(--color-danger); }
.montant-entree { color: var(--color-success-text); }
/* Contrôle du total : rubriques (lignes principales) qui se déroulent sur leur détail, en retrait et plus discret */
.rubriques-controle { display: flex; flex-direction: column; }
.ligne-controle { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); padding: var(--space-sm) 0; }
.rubrique-controle { border-bottom: 1px solid var(--color-border); }
.rubrique-controle > summary { cursor: pointer; list-style: none; }
.rubrique-controle > summary::-webkit-details-marker { display: none; }
.rubrique-controle > summary .titre-rubrique > strong::before { content: "▸"; margin-right: var(--space-xs); color: var(--color-text-muted); }
.rubrique-controle[open] > summary .titre-rubrique > strong::before { content: "▾"; }
.titre-rubrique { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-xs); }
.titre-rubrique .text-caption { flex-basis: 100%; }
.detail-controle { margin: 0 0 var(--space-sm) var(--space-md); padding-left: var(--space-md); border-left: 3px solid var(--color-border);
  color: var(--color-text-muted); font-size: var(--label-size); }
.detail-controle .ligne-controle { padding: var(--space-xs) 0; }
.ligne-controle > strong, .ligne-controle > span:last-child { white-space: nowrap; }
.detail-controle .text-link { font-size: inherit; }
.totaux-controle { background: var(--color-surface-muted); border-radius: var(--radius); padding: var(--space-xs) var(--space-md); }
.operation-caisse { display: inline-flex; align-items: center; gap: var(--space-xs); }
.symbole-point { background: var(--color-surface-muted); color: var(--color-text); }

.ligne-cliquable { cursor: pointer; }
/* Anomalies : statut à sa taille ; écart d'un seul tenant */
#liste-anomalies .badge { align-self: flex-start; justify-self: start; }
#liste-anomalies .montant-negatif, #liste-anomalies .montant-entree { white-space: nowrap; }
/* Anomalies : transactions oubliées sur une ligne à part (ordinateur) ou dans la carte (téléphone) */
.trace-carte { display: none; }
@media (max-width: 640px) {
  .table-cartes td.trace-carte { display: block; }
  .table-cartes tr.ligne-trace { display: none; }
}
/* Date d'une ligne : jour et heure insécables chacun ; l'heure passe sous le jour si la place manque */
.date-jour, .date-heure { display: inline-block; white-space: nowrap; }
@media (max-width: 640px) {
  /* listes en cartes (opérations, points et opérations, mouvements) : opération à gauche, date à droite, texte réduit */
  .liste-compacte { zoom: 0.75; }
  .table-cartes tr.carte-grille { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-sm); align-items: start; }
  .table-cartes tr.carte-grille > td { grid-column: 1 / -1; }
  .table-cartes tr.carte-grille > td.carte-titre { grid-column: 1; grid-row: 1; }
  .table-cartes tr.carte-grille > td.carte-date { grid-column: 2; grid-row: 1; text-align: right; color: var(--color-text-muted); }
}
/* Points et opérations : « ‹ Suivant · n / N · Précédent › » sur une seule ligne, téléphone compris */
.navigation-points { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: var(--space-sm); }
.navigation-points .lien-action { white-space: nowrap; }
.navigation-points .lien-action:disabled { opacity: 0.35; cursor: default; }
/* Filtres repliables (js/filtres.js) : sur téléphone, repliés sous « Filtrer » ; sur ordinateur, toujours visibles */
.bouton-filtrer { display: none; }
@media (max-width: 859px) {
  .bouton-filtrer { display: inline-flex; align-self: flex-start; justify-self: start; width: auto; margin-bottom: var(--space-sm); }
  .filtres-repliables:not(.ouvert) { display: none; }
}
/* Points et opérations : mouvement de caisse aux couleurs du type (fond et texte : données du type) */
.mouvement-type { display: inline-block; padding: 2px var(--space-sm); border-radius: var(--radius); font-weight: var(--label-weight); white-space: nowrap; }
/* Astuce au premier besoin : carte en bas à droite, ne bloque pas la page */
.carte-conseil { position: fixed; right: var(--space-lg); bottom: var(--space-lg); z-index: 50; max-width: 380px;
  display: flex; flex-direction: column; gap: var(--space-sm); border-left: 4px solid var(--color-primary);
  background: var(--color-surface); }
@media (max-width: 600px) { .carte-conseil { left: var(--space-sm); right: var(--space-sm); bottom: var(--space-sm); max-width: none; } }
/* Guide « Bien démarrer » */
.guide { border-left: 4px solid var(--color-primary); display: flex; flex-direction: column; gap: var(--space-sm); }
.guide-barre { height: 6px; border-radius: 3px; background: var(--color-surface-muted); overflow: hidden; }
.guide-barre > span { display: block; height: 100%; background: var(--color-primary); }
.guide-etape { display: flex; flex-direction: column; gap: var(--space-sm); }
.guide-liste ol { margin: var(--space-xs) 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-xs); }
.guide-item { display: flex; align-items: center; gap: var(--space-sm); }
.guide-coche { width: 1.4em; height: 1.4em; border-radius: 50%; border: 1px solid var(--color-border); display: inline-flex;
  align-items: center; justify-content: center; font-size: var(--label-size); flex-shrink: 0; }
.guide-faite .guide-coche { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-on-primary); }
.guide-faite > span:not(.guide-coche) { color: var(--color-text-muted); text-decoration: line-through; }
.guide-operateur { border: 1px solid var(--color-border); border-radius: var(--radius); padding: var(--space-sm) var(--space-md); }
.input-court { width: 5em; }
/* Suivi des incidents : ligne de total, personne choisie, incidents dans le détail d'une opération */
.ligne-total td { background: var(--color-surface-muted); }
.ligne-choisie td { background: var(--color-surface-muted); font-weight: var(--label-weight); }
.ligne-choisie td:first-child { box-shadow: inset 3px 0 0 var(--color-primary); }
.liste-incidents { margin: 0; padding-left: var(--space-md); display: flex; flex-direction: column; gap: var(--space-xs); }

/* Créneaux, téléphone : jour à gauche, heures, poubelle à droite ; libellés qui deviennent des champs au toucher */
@media (max-width: 640px) {
  .ligne-creneau { align-items: center; gap: var(--space-sm); }
  .ligne-creneau .champ-jour { flex: 1 1 auto; min-width: 0; }
  .ligne-creneau [data-retirer-creneau] { margin-left: auto; flex-shrink: 0; }
  .champ-libelle .input { display: none; }
  .champ-libelle.edition .input { display: block; max-width: none; }
  .champ-libelle.edition .valeur-libelle { display: none; }
  .valeur-libelle { display: inline; background: none; border: none; padding: var(--space-xs) 0; color: var(--color-text);
    font: inherit; font-size: var(--text-body-size); text-align: left; cursor: pointer; white-space: nowrap; }
}

/* Créneaux : saisie rapide sur plusieurs jours */
.saisie-rapide > summary { cursor: pointer; list-style: none; }
.saisie-rapide > summary::-webkit-details-marker { display: none; }
.saisie-rapide > .stack { margin-top: var(--space-sm); }
.jours-rapides { flex-wrap: wrap; gap: var(--space-sm); }
.saisie-rapide .input[type=time] { width: auto; }

/* Champ de montant qui n'est pas un nombre : signalé, boutons du formulaire grisés (js/montants.js) */
.input[aria-invalid] { border-color: var(--color-danger); }
.aide-montant { color: var(--color-danger); }

/* Authentification : Google / Apple, séparateur « ou », code de vérification (js/inscription.js) */
.bouton-google { display: flex; justify-content: center; min-height: 44px; }
.bouton-apple { width: 100%; max-width: 320px; min-height: 40px; padding-top: 0; padding-bottom: 0; font-size: var(--font-size-comment); margin: 0 auto; background: var(--color-text); color: var(--color-background); border-color: var(--color-text); }
.separateur-ou { display: flex; align-items: center; gap: var(--space-md); color: var(--color-text-muted); font-size: var(--font-size-caption); margin: 0; }
.separateur-ou::before, .separateur-ou::after { content: ""; flex: 1; border-top: 1px solid var(--color-border); }
.champ-code { font-size: 1.6rem; letter-spacing: 0.5em; text-align: center; font-variant-numeric: tabular-nums; }
#zone-inscription .lien-action { justify-self: start; }

/* Abonnement (js/abonnement.js) : formules, facture à payer, restrictions, pages suspendues */
.grille-formules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
@media (max-width: 760px) { .grille-formules { grid-template-columns: 1fr; } }
.carte-formule { display: grid; gap: var(--space-sm); align-content: start; border: 1px solid var(--color-border); border-radius: var(--radius); padding: var(--space-lg); background: var(--color-surface); }
.carte-formule-actuelle { border-color: var(--color-primary); box-shadow: 0 0 0 1px var(--color-primary); }
.prix-formule { margin: 0; font-size: 1.6rem; font-weight: 800; color: var(--color-text); }
.lignes-formule { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); }
.lignes-formule li { display: flex; justify-content: space-between; gap: var(--space-md); font-size: var(--font-size-comment); color: var(--color-text-muted); border-bottom: 1px dashed var(--color-border); padding-bottom: var(--space-xs); }
.facture-a-payer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-md); background: var(--color-warning-soft); border-radius: var(--radius); padding: var(--space-md) var(--space-lg); }
.liste-restrictions { margin: 0; padding-left: 1.2em; display: grid; gap: var(--space-xs); }
.liste-restrictions .en-vigueur { color: var(--color-danger-text); font-weight: 600; }
.choix-operateurs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); }
#bandeau-abonnement { margin-bottom: var(--space-md); }
.section-suspendue > :not([data-suspendu]) { display: none !important; }

/* Enregistrements soumis (js/soumissions.js) et reprise par le gérant */
.grille-soumission { display: grid; grid-template-columns: minmax(0, 220px) 1fr; gap: var(--space-lg); align-items: start; }
@media (max-width: 640px) { .grille-soumission { grid-template-columns: 1fr; } }
.reprise { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm); }

/* ---- États imprimables (web/js/etats.js) ----
   Sur papier, toujours noir sur blanc quel que soit le thème choisi : couleurs nommées, pas celles du thème. */
.boutons-etat { gap: var(--space-sm); flex-wrap: wrap; align-items: center; }
.etats-fenetre { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-lg); margin: var(--space-sm) 0; }
.etats-fenetre .button { min-height: 0; padding: var(--space-xs) var(--space-sm); font-size: .875em; }   /* fenêtres : boutons discrets */
.boutons-etat .button { display: inline-flex; align-items: center; gap: var(--space-xs); }
.boutons-etat .icone { width: 1.1em; height: 1.1em; }
#zone-impression { display: none; }

@media print {
  @page { size: A4 landscape; margin: 12mm 10mm 14mm;
    @bottom-right { content: "Page " counter(page) " / " counter(pages); font: 9pt system-ui, sans-serif; color: dimgray; } }
  body.impression-etat { background: white !important; color: black !important; }
  body.impression-etat > *:not(#zone-impression) { display: none !important; }
  body.impression-etat #zone-impression { display: block; font: 9pt/1.3 system-ui, -apple-system, "Segoe UI", sans-serif; color: black; }
  .etat-entete { margin-bottom: 4mm; }
  .etat-entete h1 { font-size: 15pt; margin: 0 0 2mm; }
  .etat-marque { font-size: 8.5pt; letter-spacing: .08em; text-transform: uppercase; color: dimgray; margin: 0; }
  .etat-criteres { display: flex; flex-wrap: wrap; gap: 1mm 7mm; margin: 0 0 1.5mm; }
  .etat-criteres div { display: flex; gap: 1.5mm; }
  .etat-criteres dt { font-weight: 600; }
  .etat-criteres dt::after { content: " :"; }
  .etat-criteres dd { margin: 0; }
  .etat-edite { color: dimgray; margin: 0; font-size: 8.5pt; }
  .etat-alerte { border: 1px solid black; padding: 1.5mm 2.5mm; margin: 2mm 0 0; font-weight: 600; }
  .etat-table { width: 100%; border-collapse: collapse; }
  .etat-table thead { display: table-header-group; }          /* en-tête répété à chaque page */
  .etat-table tr { break-inside: avoid; }
  .etat-table th { text-align: left; font-weight: 600; border-bottom: 1.5px solid black; padding: 1.2mm 2mm; }
  .etat-table td { border-bottom: .5px solid silver; padding: 1mm 2mm; vertical-align: top; }
  .etat-table tbody tr:nth-child(even) td { background: whitesmoke; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .etat-serre { white-space: nowrap; }
  .etat-nombre { text-align: right !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .etat-totaux { margin-top: 5mm; break-inside: avoid; }
  .etat-totaux h2 { font-size: 11pt; margin: 0 0 1.5mm; }
  .etat-totaux .etat-table { width: auto; min-width: 45%; }
  .etat-totaux tfoot td { font-weight: 700; border-top: 1.5px solid black; border-bottom: 0; }
}

/* Paiement Wave : lien vers l'app et QR code renvoyés par SycaPay (fond blanc : lisible par l'appareil photo, même en thème sombre) */
.paiement-wave { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-sm); }
.qr-wave { width: 220px; height: 220px; padding: var(--space-sm); background: white; border-radius: var(--space-sm); image-rendering: pixelated; }
