/* Estimé de la soumission d'un véhicule (2026-10-01) : affichage partagé par la page publique
   /portal/estimate.html et par l'écran « Estimé » du portail (EstimeVue, estimate-view.js).
   Tout est sous .ev et préfixé ev- : aucune collision avec les classes du portail. Les couleurs
   sont les variables que les deux pages définissent déjà (--navy, --gray-*, --green-*…). */
.ev { --ev-radius: 12px; color: var(--gray-700); line-height: 1.45; }
.ev-vehicule { margin-top: 18px; font-size: 1.05rem; font-weight: 700; color: var(--navy); }
.ev-dates { font-size: .8rem; color: var(--gray-500); margin-top: 2px; }
.ev-bandeau { margin-top: 16px; padding: 12px 14px; border-radius: var(--ev-radius); font-size: .9rem; font-weight: 600; }
.ev-bandeau.ev-info { background: var(--yellow-light); color: var(--yellow-text); }
.ev-bandeau.ev-ok { background: var(--green-light); color: var(--green-text); }
.ev-consigne { margin-top: 16px; font-size: .9rem; color: var(--gray-500); }
.ev-carte { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--ev-radius); margin-top: 12px; padding: 14px 16px; }
.ev-tache-tete { display: flex; align-items: flex-start; gap: 12px; }
.ev-tache-titre { flex: 1; min-width: 0; font-weight: 700; color: var(--navy); }
.ev-tache-prix { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ev-tache-prix .ev-ht { font-weight: 700; color: var(--navy); }
.ev-tache-prix .ev-ttc { font-size: .75rem; color: var(--gray-500); }
.ev-lignes { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: .82rem; }
.ev-lignes td { padding: 4px 0; border-top: 1px solid var(--gray-100); }
.ev-lignes td.ev-n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; padding-left: 10px; }
.ev-choix { display: flex; gap: 8px; margin-top: 12px; }
.ev-choix button { flex: 1; padding: 9px 10px; border-radius: 8px; border: 1px solid var(--gray-200); background: var(--white); color: var(--gray-700); font: inherit; font-weight: 600; cursor: pointer; }
.ev-choix button[aria-pressed="true"].ev-oui { background: var(--green-light); border-color: var(--green); color: var(--green-text); }
.ev-choix button[aria-pressed="true"].ev-non { background: var(--red-light); border-color: var(--red); color: var(--red-text); }
.ev-reponse { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; }
.ev-reponse.ev-oui { background: var(--green-light); color: var(--green-text); }
.ev-reponse.ev-non { background: var(--red-light); color: var(--red-text); }
.ev-totaux { margin-top: 16px; }
.ev-totaux > div { display: flex; justify-content: space-between; padding: 3px 0; font-variant-numeric: tabular-nums; }
.ev-totaux .ev-grand { font-size: 1.1rem; font-weight: 700; color: var(--navy); border-top: 1px solid var(--gray-200); margin-top: 6px; padding-top: 8px; }
.ev-totaux .ev-accepte { color: var(--green-text); font-weight: 700; }
.ev-actions { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.ev-btn { padding: 13px 16px; border-radius: 10px; border: none; font: inherit; font-weight: 700; cursor: pointer; text-align: center; text-decoration: none; }
.ev-btn-principal { background: var(--blue); color: var(--white); }
.ev-btn-principal:disabled { opacity: .5; cursor: not-allowed; }
.ev-btn-secondaire { background: var(--white); color: var(--gray-700); border: 1px solid var(--gray-200); }
.ev-note { font-size: .78rem; color: var(--gray-500); text-align: center; }
.ev-contact { margin-top: 22px; font-size: .85rem; color: var(--gray-500); text-align: center; }
.ev-contact a { color: var(--blue); }
/* Signature à l'acceptation (15 oct 2026) */
.ev-signature label { display: block; font-size: .75rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: .4px; margin: 10px 0 6px; }
.ev-signature label:first-child { margin-top: 0; }
.ev-signature input[type="text"] { width: 100%; padding: 10px 12px; border: 1px solid var(--gray-200); border-radius: 8px; font: inherit; color: var(--navy); background: var(--white); }
.ev-pad { position: relative; border: 2px dashed var(--gray-200); border-radius: 10px; background: var(--gray-50); overflow: hidden; touch-action: none; }
.ev-pad canvas { display: block; width: 100%; height: 160px; cursor: crosshair; touch-action: none; }
.ev-pad-indice { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); font-size: .72rem; color: var(--gray-400); pointer-events: none; white-space: nowrap; }
.ev-effacer { margin-top: 6px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--gray-200); background: var(--white); color: var(--gray-500); font: inherit; font-size: .8rem; cursor: pointer; }
.ev-accord { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: .82rem; color: var(--gray-500); }
.ev-accord input { margin-top: 2px; flex-shrink: 0; width: 16px; height: 16px; }
.ev-signee { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ev-signee img { height: 70px; max-width: 260px; object-fit: contain; border-bottom: 1px solid var(--gray-200); }
.ev-signee div { font-size: .85rem; color: var(--gray-500); }
.ev-signee strong { color: var(--navy); }
.ev-erreur { margin-top: 40px; text-align: center; }
.ev-erreur h1 { font-size: 1.2rem; color: var(--navy); margin-bottom: 8px; }
@media print {
  .ev-choix, .ev-actions, .ev-consigne { display: none !important; }
}
