.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.legend i {
  background: var(--accent);
}

.chart-empty {
  margin: 42px 0;
  text-align: center;
  color: var(--subtle);
  font-size: 12px;
}

.dash-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50vh;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.dash-hint {
  font-size: 11px;
  color: var(--faint);
}

.kpis-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.view-note {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--hairline-soft);
  font-size: 11px;
  line-height: 1.55;
  color: var(--subtle);
}

.view-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.kv {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kv-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 8px;
  border-top: 1px solid var(--hairline-soft);
  font-size: 11.5px;
  line-height: 1.45;
}

.kv-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.kv-row span {
  color: var(--muted);
}

.kv-row strong {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  color: var(--ink);
  text-align: right;
  overflow-wrap: anywhere;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--faint);
  vertical-align: middle;
}

.status-dot.ok {
  background: var(--green);
}

.status-dot.bad {
  background: var(--rose);
}

.view-empty {
  margin: 0;
  padding: 18px 0;
  color: var(--subtle);
  font-size: 12px;
}

@media (max-width: 1180px) {
  .kpis-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 440px) {
  .kpis-4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.dash-error {
  color: var(--rose);
}

.dash-button {
  padding: 8px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.dash-button:hover {
  background: var(--surface-2);
}

.empty-cell {
  padding: 20px 8px;
  text-align: center;
  color: var(--subtle);
  font-size: 12px;
}
