/* Estilos de la capa de graficos */

.g-caja { width: 100%; }
.g-svg { width: 100%; height: auto; display: block; overflow: visible; }

.g-eje {
  font-size: 11px;
  fill: #898781;
  font-variant-numeric: tabular-nums;
  font-family: inherit;
}
.g-eje-fuerte { font-size: 12px; fill: #52514e; font-family: inherit; }
.g-valor { font-size: 11px; fill: #52514e; font-variant-numeric: tabular-nums; font-family: inherit; }
.g-valor-fuerte { font-size: 12px; fill: #0f172a; font-weight: 600; font-variant-numeric: tabular-nums; font-family: inherit; }

.g-marca { transition: opacity .12s; cursor: default; }
.g-caja:hover .g-marca { opacity: .78; }
.g-marca:hover { opacity: 1; }

.g-titulo { font-size: .84rem; color: var(--texto-suave); margin-bottom: 8px; }

.g-leyenda {
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--borde);
  font-size: .8rem; color: var(--texto-suave);
}
.g-leyenda__item { display: inline-flex; align-items: center; gap: 6px; }
.g-leyenda__marca {
  width: 11px; height: 11px; border-radius: 3px; display: inline-block; flex: none;
  box-shadow: 0 0 0 1px rgba(11, 11, 11, .1);
}

.g-tip {
  position: fixed; top: 0; left: 0; z-index: 500; pointer-events: none;
  background: #0f172a; color: #fff; padding: 7px 11px; border-radius: 7px;
  font-size: .78rem; box-shadow: var(--sombra-lg); max-width: 300px; white-space: normal;
}
.g-tip[hidden] { display: none; }

.g-vacio {
  display: grid; place-items: center; text-align: center; color: var(--texto-tenue);
  border: 1px dashed var(--borde-fuerte); border-radius: var(--radio); background: var(--panel-alt);
}
.g-vacio strong { display: block; color: var(--texto-suave); font-size: .9rem; margin-bottom: 3px; }
.g-vacio span { font-size: .8rem; }

.g-medidor { text-align: center; padding: 8px 0; }
.g-medidor__cifra { font-size: 2.2rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.g-medidor__pista {
  height: 9px; background: var(--borde); border-radius: 5px; overflow: hidden; margin: 10px 0 8px;
}
.g-medidor__pista > div { height: 100%; border-radius: 5px; transition: width .4s; }
.g-medidor__etq { font-size: .8rem; color: var(--texto-suave); }

.g-alternar {
  display: flex; gap: 4px; background: var(--panel-alt); padding: 3px;
  border-radius: var(--radio-sm); border: 1px solid var(--borde);
}
.g-alternar button {
  border: 0; background: transparent; padding: 5px 11px; border-radius: 4px;
  font: inherit; font-size: .8rem; color: var(--texto-suave); cursor: pointer;
}
.g-alternar button.activo { background: var(--panel); color: var(--texto); font-weight: 500; box-shadow: var(--sombra); }
