/* ═══════════════════════════════════════
   components.css — Composants partagés
   ═══════════════════════════════════════ */

/* ── Badges priorité ── */
.badge-priorite {
  font-size: 12px; font-weight: 700;
  padding: 2px 8px; border-radius: 9999px; white-space: nowrap;
}
.badge-rouge  { background: var(--color-error,#FA0000); color: #fff; }
.badge-orange { background: #f59e0b; color: #fff; }
.badge-vert   { background: #00b27e; color: #fff; }

/* ── Statut pills — Norton ISM Universal ── */
.statut-pill {
  font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 9999px;
  color: #fff; white-space: nowrap;
}
.statut-actif_fy27  { background: var(--color-nav,#0050FF); }   /* À traiter */
.statut-reactiver   { background: var(--color-accent,#4D9EFF); } /* En cours  */
.statut-inactif_fy27{ background: var(--color-error,#FA0000); }  /* Bloqué    */
.statut-newbiz      { background: var(--color-cta,#FF6D68); }    /* Intégré   */
.statut-churn       { background: var(--color-error,#FA0000); }
.statut-fidelise    { background: var(--color-nav,#0050FF); }

/* ── Barre filtres ── */
.barre-filtres {
  padding: 10px 12px; background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  display: flex; flex-direction: column; gap: 8px;
}
.filtres-flags { display: flex; gap: 6px; overflow-x: auto; }
.btn-filtre {
  padding: 6px 12px; border-radius: 99px;
  border: 1.5px solid var(--c-border);
  font-size: 13px; font-weight: 500; white-space: nowrap;
  background: var(--c-bg); cursor: pointer;
}
.btn-filtre.actif { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.filtres-statut { display: flex; align-items: center; gap: 10px; }
.filtres-statut select { border: 1px solid var(--c-border); border-radius: var(--radius-sm); padding: 6px 10px; font-size: 13px; flex: 1; }
.toggle-label { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }

/* ── FAB ── */
.fab {
  position: fixed; bottom: 90px; right: 20px;
  width: 56px; height: 56px; border-radius: 50%;
  font-size: 28px; line-height: 1;
  background: var(--c-primary); color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(0,80,255,.30);
  cursor: pointer; z-index: 101;
  display: flex; align-items: center; justify-content: center;
}

/* ── Graphique CA barres ── */
.graphique-ca { display: flex; flex-direction: column; gap: 8px; padding: 4px 0; }
.barre-ligne  { display: flex; align-items: center; gap: 8px; }
.barre-label  { font-size: 12px; color: var(--c-text-2); width: 36px; flex-shrink: 0; }
.barre-ca     { height: 10px; border-radius: 5px; min-width: 4px; flex: 1; max-width: 180px; transition: width .4s ease; }
.barre-valeur { font-size: 12px; color: var(--c-text); white-space: nowrap; }

/* ── Barre actions fixe bas ── */
.barre-actions-fixe {
  position: fixed; bottom: 0; left: 0; right: 0;
  display: flex; gap: 8px; padding: 12px 16px;
  padding-bottom: calc(12px + var(--safe-bottom));
  background: var(--c-surface);
  box-shadow: 0 -2px 12px rgba(0,0,0,.1); z-index: 100;
}
.btn-action {
  flex: 1; padding: 12px 6px; border-radius: var(--radius);
  font-weight: 600; font-size: 12px; border: none; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.btn-visite   { background: var(--c-primary); color: #fff; }
.btn-appel    { background: var(--c-success);  color: #fff; }
.btn-planning { background: var(--c-warning);  color: #fff; }
