/* B-CLOSE Fleet Platform v0.7.0 - telemetry */
.telemetry-summary{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
    padding:16px;
}
.telemetry-kpi{
    border:1px solid #e3e9ef;
    border-radius:10px;
    background:#fafcfe;
    padding:13px 14px;
    min-width:0;
}
.telemetry-kpi span{
    display:block;
    color:#6e7e90;
    font-size:11px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.03em;
    margin-bottom:5px;
}
.telemetry-kpi strong{
    display:block;
    font-size:13px;
    overflow-wrap:anywhere;
}
.telemetry-events{border-top:1px solid #edf1f4}
.telemetry-empty{padding:0 16px 16px}
.telemetry-count{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:28px;
    height:28px;
    padding:0 8px;
    border-radius:999px;
    background:#edf4fa;
    color:#285c82;
    font-size:12px;
    font-weight:800;
}
.telemetry-json{
    max-width:620px;
    max-height:320px;
    overflow:auto;
    white-space:pre-wrap;
    overflow-wrap:anywhere;
    background:#f5f7f9;
    border:1px solid #e2e7ec;
    border-radius:8px;
    padding:10px;
    font-size:11px;
}
.telemetry-filter{align-items:end}
.telemetry-filter label{min-width:155px}
@media(max-width:900px){
    .telemetry-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
    .telemetry-summary{grid-template-columns:1fr}
}

.command-latest{margin-top:1rem;padding:.85rem 1rem;border:1px solid var(--border,#d9dde3);border-radius:10px}
.telemetry-kpi small{display:block;margin-top:.3rem;opacity:.7}
.diagnostic-card summary{cursor:pointer}

.tracker-state-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:.75rem;
  margin-top:1rem;
}
.tracker-state-card{
  border:1px solid var(--border,#d9dde3);
  border-radius:10px;
  padding:.85rem 1rem;
}
.tracker-state-card>span{
  display:block;
  font-size:.82rem;
  opacity:.72;
  margin-bottom:.45rem;
}
.state-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:76px;
  padding:.3rem .65rem;
  border-radius:999px;
  font-weight:700;
  font-size:.82rem;
  letter-spacing:.02em;
}
.state-on{
  background:#dff6e7;
  color:#176a34;
  border:1px solid #8dd3a5;
}
.state-off{
  background:#fde3e3;
  color:#9f1d1d;
  border:1px solid #efaaaa;
}

.state-unknown{
  background:#eceff3;
  color:#4f5965;
  border:1px solid #c9cfd6;
}
.status-raw{white-space:pre-wrap;margin:0;font:inherit}
