/* Resumen + energy charts */
.trends {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 12px;
}
.tplot {
  margin: 0;
  min-width: 0;
}
.tplot figcaption {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}
.tplot figcaption span {
  font-variant-numeric: tabular-nums;
}
.tplot .plot.big,
.hours {
  box-sizing: border-box;
  height: 230px;
}
.tplot .plot.big svg {
  height: 180px;
}
.hours {
  display: flex;
  gap: 6px;
  align-items: stretch;
  padding: 10px;
  border: 1px solid var(--hud-border);
  border-radius: 8px;
  background: #fff;
}
.hours > div {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  max-width: 80px;
  min-width: 0;
  font-size: 11px;
}
.hours i {
  width: 70%;
  height: var(--pct);
  min-height: 2px;
  border-radius: 4px 4px 0 0;
  background: #2f7fd0;
}
.hours b {
  margin-bottom: 4px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.hours span {
  margin-top: 4px;
  color: var(--hud-muted);
}
.sev {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  background: #eef2f4;
  color: var(--hud-muted);
}
.sev.sev-critical {
  background: #fde0e0;
  color: #9e1b1a;
}
.sev.sev-warning {
  background: #fbf0d6;
  color: #7a5400;
}
.kpis .kpi-alarm {
  border-color: #e7a3a2;
  background: #fdf1f1;
}
.grid.systems td:last-child {
  font-size: 12px;
}
@media (max-width: 760px) {
  .grid.systems th:last-child,
  .grid.systems td:last-child {
    display: none;
  }
}
