/*
 * Kapela — Style : analyse de la carte et prévisions (familles, nuage de points, barres, commandes)
 * Auteur : Jacks Ngalangala
 */
.an-familles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.an-famille {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  border-top: 4px solid var(--fc);
}
.an-famille.on {
  outline: 2px solid var(--fc);
  outline-offset: -2px;
}
.an-pastille {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--fc);
}
.an-n {
  font-size: 28px;
  line-height: 1;
}
.an-nuage,
.an-barres {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.an-nuage svg,
.an-barres svg {
  width: 100%;
  height: auto;
  display: block;
}
.an-grille {
  stroke: var(--line);
  stroke-width: 1;
}
.an-seuil {
  stroke: var(--ink);
  stroke-width: 1.2;
  stroke-dasharray: 5 5;
  opacity: 0.55;
}
.an-axe {
  font-size: 11px;
  fill: var(--muted);
  font-family: var(--f-ui);
}
.an-jour {
  fill: var(--ink);
  font-weight: 700;
}
.an-titre-axe {
  font-size: 12px;
  fill: var(--muted);
  font-weight: 600;
  font-family: var(--f-ui);
}
.an-coin {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  fill: var(--gold);
  font-family: var(--f-ui);
}
.an-point {
  stroke: var(--surf);
  stroke-width: 2;
  cursor: pointer;
  transition: r 0.1s;
}
.an-etiquette {
  font-size: 11px;
  font-weight: 600;
  fill: var(--ink);
  font-family: var(--f-ui);
  paint-order: stroke;
  stroke: var(--surf);
  stroke-width: 3px;
}
.an-bulle {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: baseline;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surf2);
  min-height: 42px;
}
.an-bulle small {
  flex-basis: 100%;
  color: var(--muted);
}
.an-tri {
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  padding: 0;
  min-height: 32px;
}
.an-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.an-tag::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--fc);
}
.an-conseil {
  font-size: 13px;
  color: var(--muted);
  min-width: 260px;
}
.an-barre {
  fill: var(--dark);
  opacity: 0.85;
}
.an-barre.auj {
  fill: var(--acc);
  opacity: 1;
}
.an-fourchette {
  stroke: var(--gold);
  stroke-width: 1.6;
}
.an-passe {
  fill: var(--surf);
  stroke: var(--acc);
  stroke-width: 2.4;
}
.an-legende {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 12px;
  color: var(--muted);
}
.an-legende span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.an-legende i {
  display: inline-block;
}
.l-barre {
  width: 12px;
  height: 12px;
  background: var(--dark);
  border-radius: 2px;
}
.l-fourchette {
  width: 2px;
  height: 14px;
  background: var(--gold);
}
.l-passe {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2.4px solid var(--acc);
}
.an-ratios {
  align-items: flex-end;
}
.an-ratios .field {
  width: 220px;
}
.an-commandes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}
.an-commande {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surf2);
}
.banner.warn-b {
  background: var(--warn-bg);
  color: var(--warn);
  border-color: transparent;
}

.an-filtre {
  width: auto;
  min-width: 220px;
  max-width: 280px;
}
