/*
 * Estilos de las gráficas. Ver graficas.js.
 * Prefijo .bzg- porque esto se carga dentro de páginas con hojas propias.
 */

.bzg-titulo {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #dfe6e9);
}

.bzg-pie {
  margin: 8px 0 0;
  font-size: 11px;
  opacity: 0.65;
}

.bzg-vacia {
  padding: 26px 14px;
  text-align: center;
  font-size: 12px;
  opacity: 0.6;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 8px;
}

.bzg-svg {
  width: 100%;
  height: 200px;
  display: block;
  overflow: visible;
}

.bzg-guia { stroke: rgba(255, 255, 255, 0.08); stroke-width: 1; }
.bzg-eje { fill: rgba(223, 230, 233, 0.55); font-size: 10px; }
.bzg-linea { fill: none; stroke: #2e8fa8; stroke-width: 2; stroke-linejoin: round; }
.bzg-area { fill: rgba(46, 143, 168, 0.16); stroke: none; }
.bzg-punto { fill: #2e8fa8; }
.bzg-punto:hover { fill: #ffd666; r: 4; }

/* --- barras --- */

.bzg-barras { display: flex; flex-direction: column; gap: 6px; }

.bzg-fila {
  display: grid;
  grid-template-columns: minmax(90px, 30%) 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.bzg-etiqueta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.8;
}

.bzg-barra {
  display: block;
  height: 14px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.bzg-barra i {
  display: block;
  height: 100%;
  border-radius: 7px;
  background: #2e8fa8;
  transition: width 0.25s ease;
}

.bzg-bien i { background: #7fb98a; }
.bzg-medio i { background: #e0a94a; }
.bzg-flojo i { background: #c96a5a; }

.bzg-valor {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.bzg-valor small { opacity: 0.5; }

/* --- rosco --- */

.bzg-rosco {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.bzg-rosco svg { width: 160px; height: 160px; flex: 0 0 auto; }
.bzg-centro { fill: var(--text, #dfe6e9); font-size: 20px; font-weight: 600; }

.bzg-leyenda {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 160px;
  font-size: 12px;
}

.bzg-leyenda li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
}

.bzg-leyenda i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex: 0 0 auto;
}

.bzg-leyenda span {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.8;
}

.bzg-leyenda b { font-variant-numeric: tabular-nums; }
