/* ===========================================================================
   ÉCRAN — VISITES TERRAIN d'EasyCRM, /app/crm/terrain (.ter-*)

   Un écran de téléphone d'abord : une carte par visite, empilées, regroupées par jour ;
   des gestes de 44 px au moins, à toutes les largeurs (on pointe au pouce, debout, dehors).
   Aucune couleur écrite : surfaces, filets et encres sont ceux de la charte.
   =========================================================================== */

.appgrid .ter-jour {
    margin: var(--et-sect-ecart) 0 var(--et-form-sect-b);
    font-size: var(--et-fs-tete);
    font-weight: 600;
    color: var(--et-ink);
}

.appgrid .ter-liste {
    display: flex;
    flex-direction: column;
    gap: var(--et-carte-ecart);
}

.appgrid .ter-carte {
    background: var(--et-surface);
    border: 1px solid var(--et-hairline);
    border-left: 4px solid var(--et-form-blue);
    padding: var(--et-carte-corps-py) 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.appgrid .ter-carte.est-faite { border-left-color: var(--et-succes); }
.appgrid .ter-carte.est-sur-place { border-left-color: var(--et-avertissement-mark); }

.appgrid .ter-entete {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.appgrid .ter-heure { font-weight: 600; min-width: 5ch; }
.appgrid .ter-client { font-weight: 600; }

.appgrid .ter-gestes {
    display: flex;
    flex-wrap: wrap;
    gap: var(--et-outils-gap);
    margin-top: 4px;
}

/* Au pouce : chaque geste fait 44 px, quelle que soit la largeur. */
.appgrid .ter-gestes .mx-btn {
    min-height: 44px;
    min-width: 44px;
}

.appgrid .ter-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.appgrid .ter-apercu {
    display: block;
    max-width: 100%;
    max-height: 60vh;
    margin: 0 auto;
}

.appgrid .ter-commercial { width: 220px; }

@media (max-width: 640px) {
    .appgrid .ter-commercial { width: 100%; }
    .appgrid .ter-gestes .mx-btn { flex: 1 1 auto; }
}
