/* =====================================================================
   telemetry.css — /overview e telas de telemetria (aditivo)
   ===================================================================== */

.tele-section-title {
  font: 800 1.05rem/1.2 'Sora', 'Inter', sans-serif;
  margin: 28px 0 12px;
  letter-spacing: -0.01em;
}

/* ---------- KPIs ao vivo ---------- */
.tele-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.tele-kpi {
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, rgba(15, 23, 42, 0.1));
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-md, 0 1px 3px rgba(15, 23, 42, 0.08));
}
.tele-kpi-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted, #94a3b8); font-weight: 700; }
.tele-kpi-value { font: 800 1.9rem/1.05 'Sora', 'Inter', sans-serif; color: var(--text-primary, #0f172a); }
.tele-kpi-value i { font-style: normal; font-size: 1.1rem; color: var(--text-muted, #94a3b8); font-weight: 600; margin-left: 4px; }
.tele-kpi-value b.is-bad { color: var(--danger, #f87171); }
.tele-kpi-value.tele-money { color: var(--brand, #3b82f6); }
.tele-kpi-foot { font-size: 0.78rem; color: var(--text-muted, #94a3b8); }

/* ---------- Cards por loja com anel de % online ---------- */
.tele-store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.tele-store-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, rgba(15, 23, 42, 0.1));
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-md, 0 1px 3px rgba(15, 23, 42, 0.08));
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.tele-store-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg, 0 10px 24px rgba(15, 23, 42, 0.14)); }
.tele-ring {
  --pct: 0;
  position: relative;
  flex: 0 0 auto;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: conic-gradient(var(--success, #34d399) calc(var(--pct) * 1%), rgba(148, 163, 184, 0.25) 0);
  display: grid;
  place-items: center;
  transition: background 0.5s ease;
}
.tele-ring::before {
  content: "";
  position: absolute; inset: 6px;
  border-radius: 50%;
  background: var(--bg-card, #fff);
}
.tele-ring span { position: relative; z-index: 1; font: 800 0.85rem/1 'Sora', 'Inter', sans-serif; color: var(--text-primary, #0f172a); }
.tele-store-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tele-store-info strong { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tele-store-sub { font-size: 0.82rem; color: var(--text-muted, #94a3b8); }
.tele-store-money { font-size: 0.86rem; font-weight: 700; color: var(--brand, #3b82f6); }

/* ---------- Idade do último ping ---------- */
.tele-age { font-weight: 700; font-size: 0.85rem; }
.tele-age.is-fresh { color: var(--success, #16a34a); }
.tele-age.is-stale { color: var(--warning, #d97706); }
.tele-age.is-dead  { color: var(--text-muted, #94a3b8); }

.tele-health-table .amount { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .col-hide-sm { display: none; }
}
