/* Documents imprimés (facture, proforma, reçu). Papier toujours blanc, encre presque noire :
   tout doit rester net sur une imprimante noir et blanc. Les gris clairs (fonds de lignes) s'impriment légers. */
.paper.dm{-webkit-print-color-adjust:exact;print-color-adjust:exact;color:#111;line-height:1.45}
.dm .dm-logo{width:240px;max-width:100%;display:block}
.dm .dm-coord{margin-top:8px;color:#4b555a}
.dm .dm-gris{color:#4b555a}
.dm .dm-fort{font-weight:800;font-size:15px}
.dm .dm-ent{font-size:12px;line-height:1.35}
.dm .dm-num{font-weight:800;font-size:15px}
.dm .dm-ref{font-size:10px;color:#6b7378}
.dm table{width:100%;border-collapse:collapse;font-size:12.5px}
.dm table th{font-size:10px;letter-spacing:.12em;text-transform:uppercase;font-weight:700;padding:8px 10px}
/* Papier toujours clair : en mode nuit (logiciel, espace client) les titres du tableau ne prennent pas le fond sombre des tableaux de l écran (densite.css) */
.dm table th,:root[data-theme="dark"] .dm table th{background:transparent;color:#1c2428}
.dm table td{padding:8px 10px;vertical-align:top}
.dm .dm-mention{border:1.5px solid #1c2428;padding:8px 12px;font-weight:700}
.dm .dm-mention.leger{border-style:dashed;font-weight:500}
.dm .dm-mention.petit{padding:5px 9px;font-size:11px}
.dm .dm-ligne-remise{text-align:right;font-weight:600}
/* Accord du client sous le total (repris de la proforma signée) : cadre fin, majuscules, lisible en noir et blanc */
.dm .dm-signature{margin-left:auto;width:fit-content;max-width:100%;border:1.5px solid #1c2428;border-left-width:5px;padding:6px 12px;font-size:11.5px;font-weight:700;letter-spacing:.06em;text-align:right}
.dm .k{font-size:10px;text-transform:uppercase;letter-spacing:.14em;color:#4b555a;font-weight:700}

/* --- Reçus (tickets de caisse) --- */
.ticket.dm-recu{color:#111}
.ticket.dm-recu .dm-gris{color:#4b555a;font-size:10px}
.ticket.dm-recu .dm-recu-total{font-weight:800;font-size:14px}
.ticket.dm-recu .dm-recu-signature{font-size:.85em;font-weight:700;text-align:center;border:1px dashed #1c2428;padding:3px 4px}
.ticket.dm-58{width:220px;font-size:10px;padding:12px 8px;gap:6px}
.ticket.dm-58 img{width:64px}
.ticket.dm-58 .dm-recu-total{font-size:12px}

/* --- Écran Paramètres : documents imprimés --- */
.dm-reglages{display:flex;flex-direction:column;gap:10px;max-width:760px}

/* --- Impression : A4 pour facture / proforma, rouleau pour les tickets --- */
@media print{
  html,body{background:#fff!important}
  @page dmA4{size:A4;margin:12mm}
  @page dmRouleau{margin:2mm}
  #impression .paper.dm{page:dmA4;box-shadow:none;min-width:0;max-width:none;padding:0}
  #impression .ticket.dm-recu{page:dmRouleau;box-shadow:none;margin:0}
  #impression .ticket.dm-80{width:74mm;font-size:11.5px}
  #impression .ticket.dm-58{width:54mm;font-size:9.5px;padding:0}
  #impression .ticket.dm-58 img{width:40mm}
}

/* --- À l'écran sur téléphone : page A4 réduite (documents.js, dmAjusterPapiers) --- */
.paperwrap.dm-reduit{padding:8px;overflow:hidden}
.paperwrap.dm-reduit.dm-grand{overflow-x:auto;justify-content:flex-start;-webkit-overflow-scrolling:touch}
.dm-zoom{display:flex;justify-content:flex-end;margin:0 0 6px}
.dm-zoom[hidden]{display:none}
.dm-zoom .btn{min-height:36px}
/* Coordonnées du garage une par ligne ; bas du document : paiements acceptés et mentions légales */
.dm .dm-coord{line-height:1.45;font-size:12px}
.dm .dm-legal{margin-top:14px;padding-top:8px;border-top:1px solid #d5d0c4;font-size:11px;line-height:1.5;color:#4b555a;text-align:center}
.dm .dm-legal b{color:#1f2a2e}
.dm .dm-conditions{margin-top:8px;font-size:8.5px;line-height:1.35;color:#5b6468;text-align:justify}
/* Facture / proforma : la feuille A4 entière ; slogan + cachet en fin de document, puis le vrai pied de page collé en bas de la feuille
   (paiements acceptés, mentions légales, conditions générales) */
.paper.dm-a4{min-height:1046px}
.dm .dm-fin{border-top:0;padding-top:0}
/* Slogan : écriture manuscrite, en noir (choix de l'utilisateur), petits traits de chaque côté (police Dancing Script chargée dans index / espace / relevé) */
.dm-slogan{display:flex;align-items:center;justify-content:center;gap:14px;font-family:'Dancing Script',cursive;font-size:24px;font-weight:700;color:#1f2a2e;line-height:1.2;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.dm-slogan::before,.dm-slogan::after{content:"";flex:0 0 46px;height:1px;background:#1f2a2e;opacity:.45}
.dm .dm-bas{margin-top:auto}
.dm .dm-bas .dm-slogan{margin-bottom:8px}
.dm .dm-basdepage{border-top:1px solid #d5d0c4;padding-top:8px}
.dm .dm-basdepage .dm-legal{margin-top:0;padding-top:0;border-top:0}
@media print{ #impression .paper.dm-a4{min-height:272mm} }
