/* =====================================================================
   Lot F1 · Commerce, vente, canaux, clients. Mêmes jetons que identite.css
   (chargée ensuite) ; aucune couleur inventée, aucun !important.
   ===================================================================== */
.v2-vente-focus { display: grid; gap: 8px; }
.v2-vente-focus h4 { margin: 4px 0 0; }
.v2-vente-focus p { margin: 0 0 6px; }
.v2-vente-focus .btn.primary { justify-self: start; }
.v2-vente-etat { display: flex; gap: 8px; flex-wrap: wrap; }
.v2-vente .v2-empile { margin-top: 18px; }
.v2-volet-vente h4 { font-size: 15px; margin: 22px 0 8px; color: hsl(var(--foreground)); }
.v2-volet-vente h4:first-child { margin-top: 0; }
.v2-grille-champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 16px; }
.v2-champ { margin: 10px 0 0; font-size: 13px; }
.v2-champ .fw-command-input { margin: 6px 0 0; font-size: 14px; padding: 10px 12px; box-sizing: border-box; }
.v2-case { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 10px 0; color: hsl(var(--foreground)); }
.v2-case input { width: 18px; height: 18px; accent-color: hsl(var(--primary)); }
.v2-texte-court { min-height: 90px; }
.v2-totaux { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 16px; margin: 18px 0 4px; border-radius: 12px; background: hsl(var(--accent)); border: 1px solid hsl(var(--choisi-cerne) / .45); }
.v2-totaux span { display: block; font-size: 12px; color: hsl(var(--muted-foreground)); }
.v2-totaux strong { font-size: 20px; color: hsl(var(--accent-foreground)); letter-spacing: -.3px; }
.v2-reprises { display: grid; gap: 8px; margin-bottom: 8px; }
.v2-reprise-ligne { display: grid; grid-template-columns: 2fr 1fr 110px auto; gap: 8px; align-items: center; }
.v2-reprise-ligne input, .fw-offer-items input { min-width: 0; border: 1px solid hsl(var(--border)); border-radius: 8px; padding: 10px; font-size: 13px; }
.v2-bloc { border-top: 1px solid hsl(var(--bord)); margin-top: 22px; padding-top: 6px; }
.v2-points-remise { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.v2-point-remise { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border: 1px solid hsl(var(--bord)); border-radius: 10px; background: #fff; font-size: 13px; }
.v2-point-remise input { width: 18px; height: 18px; margin-top: 1px; accent-color: hsl(var(--success)); }
.v2-point-remise small { display: block; font-size: 11px; color: hsl(var(--muted-foreground)); margin-top: 3px; }
.v2-alerte-remise { border: 1px solid hsl(var(--warning-trait)); background: hsl(var(--warning-doux)); color: hsl(var(--warning-fort)); border-radius: 12px; padding: 14px 16px; margin: 10px 0; display: grid; gap: 6px; }
.v2-alerte-remise ul { margin: 0; padding-left: 18px; font-size: 14px; color: hsl(var(--foreground)); }
.v2-photos-livraison { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.v2-photo-choix { border: 1px solid hsl(var(--bord)); background: #fff; border-radius: 10px; padding: 6px; display: grid; gap: 4px; font-size: 12px; color: hsl(var(--muted-foreground)); cursor: pointer; }
.v2-photo-choix img { width: 120px; height: 90px; object-fit: cover; border-radius: 7px; display: block; }
.v2-photo-choix.selected { border-color: hsl(var(--menthe-fort)); box-shadow: 0 0 0 3px hsl(var(--menthe) / .5); color: hsl(var(--menthe-fort)); }
.v2-papier .fw-table td, .v2-papier .fw-table th { font-size: 12px; }
.v2-papier p { font-size: 12px; }
.v2-commerce-onglets { margin: 0 0 14px; }
.v2-commerce-onglets button { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.v2-commerce-onglets .badge { font-size: 11px; padding: 1px 7px; }
.v2-filtres-file { margin: 0 0 10px; padding: 0 12px; gap: 4px; }
.v2-filtres-file button { font-size: 12px; padding: 6px 8px; }
.v2-filtres-file select { font-size: 12px; border: 1px solid hsl(var(--bord)); border-radius: 7px; padding: 5px 6px; background: #fff; max-width: 100%; }
.v2-outil-compose { border: 1px solid hsl(var(--bord)); border-radius: 12px; background: hsl(var(--background) / .5); padding: 10px 12px; margin: 10px 0; display: grid; gap: 8px; max-height: 340px; overflow: auto; }
.v2-reponse-type { background: #fff; border: 1px solid hsl(var(--bord)); border-radius: 10px; padding: 10px 12px; display: grid; gap: 4px; }
.v2-reponse-type p { margin: 0; white-space: pre-line; }
.v2-reponse-type .row { gap: 6px; }
.v2-corbeille .body { display: grid; gap: 10px; }
.v2-courriel { border: 1px solid hsl(var(--bord)); border-radius: 12px; padding: 12px 14px; background: #fff; display: grid; gap: 8px; }
.v2-courriel-tete { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.v2-courriel-tete strong { font-size: 15px; }
.v2-courriel-corps { margin: 0; font-size: 14px; line-height: 1.6; background: hsl(var(--background) / .6); border-radius: 8px; padding: 10px 12px; }
.v2-courriel .row { gap: 8px; flex-wrap: wrap; }
.v2-clients .body, .v2-dossiers-client { display: grid; gap: 8px; }
.v2-client-ligne { display: grid; grid-template-columns: 1.2fr 1.4fr 1.4fr; gap: 10px; align-items: center; text-align: left; border: 1px solid hsl(var(--bord)); border-radius: 10px; background: #fff; padding: 12px 14px; cursor: pointer; font: inherit; color: inherit; }
.v2-client-ligne:hover { border-color: hsl(var(--choisi-cerne)); background: hsl(var(--accent) / .5); }
.v2-dossier-client { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; border: 1px solid hsl(var(--bord)); border-radius: 10px; padding: 10px 12px; background: #fff; }
.v2-dossier-client > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.v2-dossier-client small { color: hsl(var(--muted-foreground)); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.v2-dossier-client .v2-file-photo { width: 64px; height: 48px; border-radius: 8px; overflow: hidden; }
.v2-dossier-client:not(:has(.v2-file-photo)) { grid-template-columns: 1fr auto auto; }
.v2-retour-client { margin-bottom: 12px; }
.v2-fiche-client .body > p { margin: 4px 0 10px; }
@media (max-width: 600px) {
  .v2-totaux { grid-template-columns: 1fr 1fr; }
  .v2-totaux strong { font-size: 17px; }
  .v2-reprise-ligne { grid-template-columns: 1fr 1fr; }
  .v2-reprise-ligne input:first-child { grid-column: 1 / -1; }
  .v2-client-ligne { grid-template-columns: 1fr; gap: 3px; }
  .v2-dossier-client { grid-template-columns: 1fr auto; }
  .v2-dossier-client .v2-file-photo { display: none; }
  .v2-dossier-client .badge { grid-column: 1; justify-self: start; }
  .v2-commerce-onglets { flex-wrap: nowrap; overflow-x: auto; }
  .v2-commerce-onglets button { white-space: nowrap; }
}
.v2-volet-vente .v2-mini-carte { margin-bottom: 8px; }
.v2-volet-vente .v2-mini-carte > span:first-child { flex: 1; min-width: 0; display: grid; gap: 2px; }
.v2-editeur-offre { margin-top: 20px; }
.v2-sous-onglets { margin: 0 0 12px; }
.v2-sous-onglets button { font-size: 13px; }
.v2-service .body { display: grid; gap: 6px; }
.v2-service h4 { font-size: 15px; margin: 16px 0 4px; }
.v2-actions-service { gap: 6px; flex-wrap: wrap; }
.v2-service .fw-table td small { display: block; }
.v2-alertes { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.v2-position { margin: 10px 0; padding-left: 18px; font-size: 14px; display: grid; gap: 4px; }
.v2-gestes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.v2-equipements { margin-top: 0; border-top: 0; margin-bottom: 18px; }
.v2-post-aide pre { white-space: pre-wrap; font: inherit; font-size: 14px; background: hsl(var(--muted)); border-radius: 10px; padding: 12px 14px; margin: 10px 0 4px; }
.fw-two-column > * { min-width: 0; }
.v2-portails { list-style: none; margin: 0; padding: 0; }
.v2-etat-portail { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 0; border-bottom: 1px solid hsl(var(--bord)); font-size: 14px; }
.v2-etat-portail strong { flex: 1 1 110px; font-weight: 600; }
.v2-etat-portail .badge { white-space: normal; }

/* Écrans les plus utilisés (traceurs d'usage, 17/10) : une liste sobre par poste. */
.v2-usage .panel-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.v2-usage-periode { display: inline-flex; gap: 6px; }
.v2-usage-poste { margin-top: 18px; }
.v2-usage-poste h3 { font-size: 15px; margin: 0 0 6px; }
.v2-usage-liste { margin: 0; padding-left: 22px; max-width: 760px; }
.v2-usage-liste li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid hsl(var(--border)); }
.v2-usage-nom { min-width: 0; overflow-wrap: anywhere; }
