/* Reçu : ticket thermique 58 mm (32 caractères), 80 mm ou A5 */
.recu {
  font-family: "Courier New", Courier, monospace; font-size: 12px; line-height: 1.3; color: #000; background: #fff;
  width: 48mm; margin: 0 auto;
}
.recu.fmt-80mm { width: 72mm; font-size: 13px; }
.recu.fmt-A5 { width: 128mm; font-size: 14px; }
.recu .c { text-align: center; }
.recu .b { font-weight: 700; }
.recu .big { font-size: 1.15em; }
.recu .small { font-size: .85em; }
.recu hr { border: 0; border-top: 1px dashed #000; margin: 4px 0; }
.recu table { width: 100%; border-collapse: collapse; }
.recu th, .recu td { text-align: right; padding: 1px 0; vertical-align: top; }
.recu th.l, .recu td.l { text-align: left; word-break: break-word; }
.recu .row { display: flex; justify-content: space-between; gap: 6px; }
.recu .ligne { margin: 2px 0; }
/* Ligne de détail « 12 bouteilles x 10 000 … 120 000 » : sur une ligne si elle tient,
   sinon le total passe entier à la ligne suivante, aligné à droite (jamais coupé au milieu). */
.recu .ligne .row { flex-wrap: wrap; column-gap: 6px; row-gap: 0; }
.recu .ligne .l-qte { flex: 0 1 auto; min-width: 0; }
.recu .ligne .l-tot { flex: none; margin-left: auto; white-space: nowrap; }
.recu .l-nom { word-break: break-word; }

/* Bon de livraison : le titre et la quantité à livrer doivent se lire d'un coup d'œil (c'est ce que lit le livreur) */
.recu .bl-titre { text-align: center; font-weight: 700; font-size: 1.6em; line-height: 1.15; letter-spacing: .02em; margin: 4px 0; }
.recu .bl-ligne { margin: 6px 0; }
.recu .bl-livrer { font-weight: 700; font-size: 1.35em; line-height: 1.2; word-break: break-word; }

/* Page autonome recu.php */
.recu-page { margin: 0; padding: 8px; background: #fff; }
.recu-page .actions { display: flex; gap: 8px; justify-content: center; margin: 16px; }
.recu-page .actions button { min-height: 44px; padding: 8px 18px; font-size: 16px; }

@media print {
  .no-print { display: none !important; }
  .recu-page { padding: 0; }
  .recu { margin: 0; }
}
