/* Règlement groupé : fenêtre « Encaisser plusieurs factures » et reçu du règlement */
.rg-liste{max-height:min(46vh,420px);overflow:auto;border:1px solid var(--line);border-radius:var(--r-btn)}
.rg-liste thead th{position:sticky;top:0;background:var(--panel);z-index:1}
.rg-liste input[type=checkbox]{width:18px;height:18px;accent-color:var(--cuivre-fonce, currentColor);cursor:pointer}
.rg-liste tbody tr{cursor:pointer}
.rg-tout{display:inline-flex;align-items:center;gap:6px;cursor:pointer;font-weight:inherit}
.rg-total{display:flex;justify-content:space-between;align-items:baseline;gap:12px;color:var(--muted)}
.rg-total b{font-size:var(--t-chiffre);color:var(--ink)}
.rg-alerte{color:var(--bad);font-weight:600}
#rgRepartition:empty{display:none}
.ticket.rg-recu .l span:first-child{min-width:0;overflow-wrap:anywhere}
.rg-lien{background:none;border:0;padding:0;font:inherit;color:var(--cuivre-fonce, var(--info));text-decoration:underline;cursor:pointer}

/* Téléphone : une petite fiche par facture au lieu d'un tableau large */
@media (max-width:640px){
  .rg-liste{overflow-x:hidden}
  .rg-liste table,.rg-liste thead,.rg-liste tbody{display:block;width:100%}
  .rg-liste thead tr{display:flex}
  .rg-liste thead th{display:none}
  .rg-liste thead th:first-child{display:block;flex:1;text-align:left;padding:10px 12px}
  .rg-liste tbody tr{display:grid;grid-template-columns:28px minmax(0,1fr) auto;grid-template-areas:"c f r" "c m m";align-items:center;gap:2px 10px;padding:10px 12px;border-top:1px solid var(--line)}
  .rg-liste tbody td{display:block;padding:0;border:0;white-space:normal;background:transparent}
  .rg-liste tbody td:nth-child(1){grid-area:c}
  .rg-liste tbody td:nth-child(2){grid-area:f;font-weight:var(--g-fort)}
  .rg-liste tbody td:nth-child(3){display:none}
  .rg-liste tbody td:nth-child(4){grid-area:m;font-size:var(--t-petit);color:var(--muted)}
  .rg-liste tbody td:nth-child(5){grid-area:r;font-weight:var(--g-fort)}
  .rg-liste input[type=checkbox]{width:22px;height:22px}
}
