/* Gráfico «Actividad» (1314): los colores de serie salen de SERIES en grafico.js (--color-<serie>) */
.graf {
  --g-rejilla: var(--borde);
  position: relative; min-width: 0;
}
.graf .g-leyenda { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 8px; padding: 0; list-style: none;
  font-size: .8125rem; color: var(--texto-2); }
.graf .g-leyenda li { display: inline-flex; align-items: center; gap: 6px; }
.graf .g-muestra { width: 10px; height: 10px; border-radius: 2px; background: var(--c); flex: none; }
.graf .g-area { position: relative; outline: none; border-radius: 6px; }
.graf .g-area:focus-visible { outline: 2px solid var(--texto); outline-offset: 2px; }
.graf svg { display: block; width: 100%; height: auto; overflow: visible; }
.graf .g-linea { stroke: var(--g-rejilla); stroke-width: 1; shape-rendering: crispEdges; fill: none; }
.graf .g-eje { stroke: var(--borde-fuerte); }
.graf .g-txt { fill: var(--texto-3); font: 12px var(--fuente, system-ui, sans-serif); }
.graf .g-banda { fill: var(--superficie-3); opacity: 0; }
.graf .g-banda.on { opacity: 1; }
.graf .g-ll { fill: var(--color-llamadas); }
.graf .g-re { fill: var(--color-reuniones); }
.graf .g-hit { fill: transparent; cursor: default; }
.graf .g-tip { position: absolute; z-index: 2; pointer-events: none; padding: 8px 10px; border-radius: 8px;
  background: var(--superficie); color: var(--texto); border: 1px solid var(--borde-fuerte);
  box-shadow: var(--sombra-2); font-size: .8125rem; line-height: 1.35; white-space: nowrap; }
.graf .g-tip[hidden] { display: none; }
.graf .g-tip-f { color: var(--texto-2); margin-bottom: 4px; }
.graf .g-tip-r { display: flex; align-items: center; gap: 6px; }
.graf .g-tip-r b { font-weight: 700; color: var(--texto); min-width: 2ch; }
.graf .g-tip-r span { color: var(--texto-2); }
.graf .g-tip-r i { width: 10px; height: 3px; border-radius: 2px; background: var(--c); flex: none; }
.graf .g-vacio { margin: 0; padding: 32px 0; text-align: center; color: var(--texto-2); }
.graf .g-ver { margin-top: 8px; font: inherit; font-size: .8125rem; color: var(--texto-2); background: none;
  border: 1px solid var(--borde); border-radius: 8px; padding: 6px 12px; cursor: pointer; min-height: 32px; }
.graf .g-ver:hover { background: var(--superficie-3); }
.graf .g-tabla-caja { margin-top: 8px; }
.graf .g-tabla-caja[hidden] { display: none; }
.graf table { width: 100%; border-collapse: collapse; font-size: .8125rem; color: var(--texto); }
.graf th, .graf td { padding: 4px 6px; border-bottom: 1px solid var(--borde); text-align: right; }
.graf th:first-child, .graf td:first-child { text-align: left; }
.graf th { color: var(--texto-2); font-weight: 600; }
.graf .g-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .graf .g-ll, .graf .g-re { transform-box: fill-box; transform-origin: 50% 100%;
    animation: g-crece .45s cubic-bezier(.2, .7, .3, 1) both; }
  .graf .g-banda { transition: opacity .12s; }
}
@keyframes g-crece { from { transform: scaleY(0); } to { transform: scaleY(1); } }
