/* Facturation : formulaire à lignes, document papier, impression. */
.fa-ligne { display: grid; grid-template-columns: minmax(160px, 3fr) 70px 70px 100px 70px 90px 100px 36px; gap: 6px; align-items: center; margin-bottom: 6px; }
.fa-ligne .saisie { min-width: 0; height: 36px; }
.fa-total-ligne { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.fa-totaux { margin-left: auto; max-width: 360px; display: grid; gap: 4px; }
.fa-totaux > div { display: flex; justify-content: space-between; gap: 16px; font-variant-numeric: tabular-nums; }
.fa-totaux .fa-ttc { border-top: 1px solid var(--border); padding-top: 6px; margin-top: 2px; font-size: 1.1em; }
@media (max-width: 760px) {
  .fa-ligne { grid-template-columns: 1fr 1fr 1fr; }
  .fa-ligne .fa-desc { grid-column: 1 / -1; }
}

.facture-papier { background: #fff; color: #1b1b1b; border: 1px solid var(--border); border-radius: var(--r-md); padding: 28px; font-size: 13.5px; line-height: 1.45; }
.facture-papier header { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.facture-papier h2 { margin: 0 0 4px; font-size: 20px; letter-spacing: .04em; }
.facture-papier h3 { margin: 0 0 4px; font-size: 17px; }
.facture-papier p { margin: 2px 0; }
.facture-papier .fa-num { text-align: right; }
.facture-papier .fa-client { margin: 0 0 18px auto; width: 48%; padding: 12px 14px; border: 1px solid #ddd; border-radius: 8px; }
.facture-papier .fa-client small { display: block; color: #777; text-transform: uppercase; font-size: 10.5px; letter-spacing: .06em; }
.facture-papier table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.facture-papier th { background: #f3f3f3; text-align: right; padding: 7px 8px; font-size: 12px; }
.facture-papier td { padding: 7px 8px; border-bottom: 1px solid #e5e5e5; text-align: right; vertical-align: top; }
.facture-papier th:first-child, .facture-papier td:first-child { text-align: left; }
.facture-papier .fa-bas { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.facture-papier .fa-reglement { flex: 1; font-size: 12px; color: #444; }
.facture-papier .fa-mentions { color: #777; font-size: 11px; white-space: pre-line; }
.facture-papier .fa-totaux { min-width: 250px; margin: 0; }
.facture-papier .fa-ttc { font-weight: 700; }

#zone-impression { display: none; }
@media print {
  body.impression-facture > *:not(#zone-impression) { display: none !important; }
  body.impression-facture { background: #fff !important; }
  body.impression-facture #zone-impression { display: block; }
  body.impression-facture .facture-papier { border: 0; padding: 0; border-radius: 0; font-size: 12px; }
  @page { margin: 14mm; }
}
.fa-entete { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
@media (max-width: 760px) { .fa-entete { display: none; } }
