/* edl-generateur.css — mise en page du PDF d'état des lieux (partagé article + page autonome).
   Le #pdfOutput est construit par edl-generateur.js et rendu en PDF via html2pdf (html2canvas).
   Il reste caché à l'écran (display:none) ; le script le rend visible hors-champ le temps de la capture. */

.pdf-output { display: none; font-family: Arial, sans-serif; font-size: 11px; color: #000; }

/* En-tête PDF */
.pdf-header { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid #000; padding-bottom: 10px; margin-bottom: 14px; }
.pdf-title { font-size: 20px; font-weight: 900; letter-spacing: .05em; }
.pdf-coords { font-size: 10px; line-height: 1.6; text-align: right; }
.pdf-coords strong { font-size: 11px; }

/* Bloc infos */
.pdf-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; border: 1px solid #ccc; border-radius: 4px; padding: 10px 12px; }
.pdf-info-item { font-size: 10px; }
.pdf-info-item .lbl { font-weight: 700; color: #555; font-size: 9px; text-transform: uppercase; }
.pdf-info-item .val { font-size: 11px; font-weight: 700; border-bottom: 1px solid #aaa; min-height: 18px; padding: 2px 0; }

/* Compteurs */
.pdf-compteurs { border: 1px solid #ccc; border-radius: 4px; padding: 8px 12px; margin-bottom: 14px; }
.pdf-compteurs-title { font-weight: 700; font-size: 10px; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .05em; }
.pdf-compteurs table { width: 100%; border-collapse: collapse; font-size: 10px; }
.pdf-compteurs th { background: #f0f0f0; padding: 4px 8px; text-align: left; font-weight: 700; border: 1px solid #ddd; }
.pdf-compteurs td { padding: 6px 8px; border: 1px solid #ddd; min-width: 80px; }

/* Pièce */
.pdf-piece { margin-bottom: 16px; page-break-inside: avoid; }
.pdf-piece-title { background: #1c2740; color: #fff; font-weight: 700; font-size: 12px; padding: 6px 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 0; }

/* Élément de pièce */
.pdf-elem { border: 1px solid #ddd; border-top: none; }
.pdf-elem-name { background: #f5f5f5; font-weight: 700; font-size: 10px; padding: 5px 10px; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid #ddd; }
.pdf-elem-body { padding: 8px 10px; }

/* États N/C/D */
.pdf-etats { display: flex; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.pdf-etat-item { display: flex; align-items: center; gap: 4px; font-size: 10px; }
.pdf-checkbox { width: 12px; height: 12px; border: 1.5px solid #555; border-radius: 2px; display: inline-flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 900; flex-shrink: 0; }
.pdf-checkbox.checked { background: #1c2740; color: #fff; border-color: #1c2740; }

/* Matériaux */
.pdf-materiaux { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.pdf-mat { display: flex; align-items: center; gap: 3px; font-size: 9px; color: #555; }
.pdf-mat-box { width: 10px; height: 10px; border: 1px solid #aaa; border-radius: 1px; flex-shrink: 0; }

/* Équipements */
.pdf-equip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.pdf-equip-item { font-size: 9px; border: 1px solid #ddd; border-radius: 3px; padding: 4px 6px; }
.pdf-equip-name { font-weight: 700; margin-bottom: 3px; }
.pdf-equip-states { display: flex; gap: 6px; }
.pdf-equip-state { display: flex; align-items: center; gap: 2px; font-size: 8px; }

/* Commentaire */
.pdf-commentaire-box { border: 1px solid #ddd; border-radius: 2px; min-height: 24px; padding: 3px 6px; font-size: 10px; margin-top: 2px; }

/* Page finale */
.pdf-final { margin-top: 20px; }
.pdf-final-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; border-bottom: 2px solid #000; margin-bottom: 12px; padding-bottom: 4px; }
.pdf-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.pdf-key-item { font-size: 10px; }
.pdf-key-item .lbl { font-weight: 700; font-size: 9px; text-transform: uppercase; color: #555; }
.pdf-key-item .val { border-bottom: 1px solid #aaa; min-height: 20px; padding: 2px 0; margin-top: 2px; }
.pdf-comment-box { border: 1px solid #aaa; border-radius: 3px; min-height: 60px; padding: 6px 8px; margin-bottom: 16px; font-size: 10px; }
.pdf-signatures { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 20px; }
.pdf-sig { text-align: center; }
.pdf-sig-title { font-weight: 700; font-size: 10px; margin-bottom: 8px; }
.pdf-sig-box { border-bottom: 1px solid #000; min-height: 50px; }
.pdf-sig-sub { font-size: 9px; color: #555; margin-top: 4px; }
.pdf-footer-note { text-align: center; font-size: 8px; color: #aaa; border-top: 1px solid #eee; padding-top: 6px; margin-top: 16px; }

/* Statut d'envoi (affiché sous le bouton) */
.edl-gen-status { display: none; margin-top: 12px; font-size: 13px; font-weight: 600; }
