/* Document A4 NK Car Rental — compatible navigateur et Dompdf (tableaux, pas de flex/grid)
   Charte : rouge #E8501E, noir #1A1A1A ; titres en Barlow Condensed (typographie condensée du logo). */
@font-face { font-family: "NK Condensed"; font-weight: 600; src: url(fonts/BarlowCondensed-SemiBold.ttf) format("truetype"); }
@font-face { font-family: "NK Condensed"; font-weight: 700; src: url(fonts/BarlowCondensed-Bold.ttf) format("truetype"); }
@font-face { font-family: "NK Condensed"; font-weight: 800; src: url(fonts/BarlowCondensed-ExtraBold.ttf) format("truetype"); }
@page { size: A4; margin: 8mm 13mm 8mm 13mm; }
.doc { font-family: "DejaVu Sans", "IBM Plex Sans", Arial, sans-serif; font-size: 8.6pt; line-height: 1.3; color: #1d1d1f; background: #fff; }
.doc table { border-collapse: collapse; width: 100%; }
.doc td, .doc th { vertical-align: top; }
.doc b { font-weight: bold; }

.d-head { border-bottom: 1.6pt solid #E8501E; margin-bottom: 2.5mm; }
.d-head td { padding: 0 0 1.5mm; }
.d-logo { width: 55%; }
.d-logos { width: auto !important; }
.d-logos td { vertical-align: middle !important; padding: 0; }
.d-logo-nk { width: 44mm; height: auto; }
.d-forthing { padding-left: 4mm !important; border-left: 0.6pt solid #bbb; text-align: center; }
.d-forthing img { width: 27mm; height: auto; display: block; margin: 0 auto 0.8mm; }
.d-forthing div { white-space: nowrap; font-family: "NK Condensed", "DejaVu Sans", sans-serif; font-size: 8.6pt; font-weight: 700; letter-spacing: 0.5pt; text-transform: uppercase; color: #1a1a1a; }
.d-title { text-align: right; vertical-align: middle !important; }
.d-titre { white-space: nowrap; font-family: "NK Condensed", "DejaVu Sans", sans-serif; font-size: 18pt; font-weight: 800; letter-spacing: 0.4pt; color: #1a1a1a; text-transform: uppercase; line-height: 1; }
.d-num { font-family: "NK Condensed", "DejaVu Sans", sans-serif; font-size: 13.5pt; font-weight: 700; letter-spacing: 0.4pt; color: #1a1a1a; margin-top: 0.8mm; white-space: nowrap; }
.d-date { margin-top: 0.8mm; font-family: "NK Condensed", "DejaVu Sans", sans-serif; font-weight: 700; font-size: 10.5pt; letter-spacing: 0.3pt; color: #E8501E; text-transform: uppercase; }

.d-parties { border: 0.8pt solid #1a1a1a; border-top: 2.4pt solid #1a1a1a; margin-bottom: 2.5mm; }
.d-parties td { width: 50%; padding: 2mm 3.5mm; font-size: 8.2pt; line-height: 1.25; }
.d-emetteur div, .d-client div { margin-bottom: 0.4mm; }
.d-rs { font-family: "NK Condensed", "DejaVu Sans", sans-serif; font-weight: 700; font-size: 12.5pt; letter-spacing: 0.2pt; text-transform: uppercase; line-height: 1.1; margin-bottom: 0.8mm !important; }
.d-label { font-family: "NK Condensed", "DejaVu Sans", sans-serif; font-size: 9.5pt; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6pt; color: #E8501E; margin-bottom: 1mm; }
.d-client { border-left: 0.5pt solid #bbb; }

.d-parties td.d-refs { border-top: 0.5pt solid #bbb; padding: 1.4mm 3.5mm; font-size: 8.2pt; }

.d-lignes { margin-bottom: 2mm; }
.d-lignes th { background: #1a1a1a; color: #fff; border: 0.6pt solid #1a1a1a; padding: 1.2mm 2mm; text-align: left; font-family: "NK Condensed", "DejaVu Sans", sans-serif; font-weight: 700; font-size: 10.5pt; text-transform: uppercase; letter-spacing: 0.6pt; }
.d-lignes td { border: 0.6pt solid #8a8a8a; padding: 1.6mm 2mm; }
.d-lignes .c-ref { width: 20mm; font-size: 7.6pt; }
.d-lignes th.c-ref { font-size: 10.5pt; }
.d-lignes .c-num { width: 27mm; text-align: right; white-space: nowrap; }
.d-lignes .c-qte { width: 13mm; text-align: center; }
.d-veh { background: #E8501E; color: #fff; font-weight: bold; padding: 1mm 1.6mm; margin: -0.5mm -0.5mm 1.2mm; }
.d-des { font-weight: bold; margin-bottom: 1mm; }
.d-specs { font-size: 7.8pt; line-height: 1.17; font-weight: bold; color: #222; margin-top: 0.6mm; }
.d-exo { font-size: 7pt; color: #666; font-weight: normal; }

.d-bas { margin: 2mm 0 2.5mm; }
.d-bas-g { width: 52%; padding-right: 5mm; }
.d-bas-d { width: 48%; }
.d-lettres-bloc { font-size: 8.6pt; margin-bottom: 2.5mm; }
.d-totaux td { border: 0.6pt solid #1a1a1a; padding: 1mm 2mm; }
.d-totaux .c-num { text-align: right; white-space: nowrap; }
.d-tot-lab { font-family: "NK Condensed", "DejaVu Sans", sans-serif; font-weight: 800; font-size: 16pt; letter-spacing: 0.6pt; color: #E8501E; text-align: center; vertical-align: middle !important; width: 26mm; border: none !important; }
.d-ttc td { font-weight: bold; font-size: 10pt; background: #1a1a1a; color: #fff; }
.d-net td { font-weight: bold; font-size: 10.5pt; background: #E8501E; color: #fff; }

.d-recu { border: 0.8pt solid #1a1a1a; border-left: 3pt solid #E8501E; margin: 3mm 0 4mm; }
.d-recu td { padding: 4mm 5mm; font-size: 10pt; }
.d-recu p { margin: 0 0 2.5mm; }
.d-recu-montant { font-family: "NK Condensed", "DejaVu Sans", sans-serif; font-size: 28pt; font-weight: 800; color: #E8501E; }
.d-lettres { font-style: italic; }

.d-mentions { margin: 0 0 2mm; font-size: 8.6pt; }
.d-mentions div { margin-bottom: 0.5mm; }
.d-nb { background: #fde9e1; border-left: 2.4pt solid #E8501E; padding: 1.4mm 3mm; font-weight: bold; font-style: italic; font-size: 8.4pt; margin-bottom: 2mm; }
.d-conditions { text-align: justify; font-size: 7.6pt; line-height: 1.3; color: #333; margin-bottom: 1mm; }

.d-sign { margin: 0 0 1.5mm; page-break-inside: avoid; }
.d-sign-g { width: 64%; padding-right: 6mm; }
.d-sign-d { width: 36%; vertical-align: bottom !important; }
.d-sign-d { text-align: center; }
.d-sign-note { font-size: 8.2pt; height: 22mm; }
.d-cachet { height: 20mm; }
.d-cachet img { width: 20mm; height: 20mm; }
.d-sign-titre { font-family: "NK Condensed", "DejaVu Sans", sans-serif; font-weight: 700; font-size: 11.5pt; text-transform: uppercase; letter-spacing: 0.4pt; }
.d-sign-nom { font-family: "NK Condensed", "DejaVu Sans", sans-serif; font-weight: 700; font-size: 11.5pt; text-transform: uppercase; letter-spacing: 0.4pt; }

.d-pied { }
.d-pied-t { margin-bottom: 1mm; }
.d-pied-t td { vertical-align: middle !important; }
.d-marques { margin-top: 2mm; }
.d-pied-banque { width: 70%; }
.d-marques img { height: 7mm; width: auto; }
.d-banque { border: 0.8pt solid #1a1a1a; border-left: 2.4pt solid #E8501E; padding: 0.8mm 3mm; margin-top: 0.5mm; font-size: 7.6pt; line-height: 1.22; white-space: nowrap; }
.d-legal { font-size: 6.6pt; color: #555; text-align: center; border-top: 1.2pt solid #E8501E; padding-top: 1mm; }

/* Écran : feuille A4 */
.paper-frame { overflow-x: auto; }
.paper-frame .doc, body.voir .doc { width: 210mm; min-height: 297mm; box-sizing: border-box; padding: 14mm; margin: 0 auto; box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 8px 30px rgba(0,0,0,.08); }
body.pdf .doc { width: auto; padding: 0; box-shadow: none; }
/* PDF : mentions légales en pied de chaque page */
body.pdf .d-legal { position: fixed; left: 0; right: 0; bottom: -4mm; }
body.pdf .doc { padding-bottom: 3mm; }
