/* ══════════════════════════════════════════════════════════════
   TCN STATISTICS — SPA panel styles
   Self-contained — only relies on portal.css's shared --lmm-* tokens
   and base .lmm-* classes (input/btn/table/panel-header).
══════════════════════════════════════════════════════════════ */

.tcn-wrap { display: flex; flex-direction: column; height: 100%; }

.tcn-live-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--lmm-surface2); border: 1px solid var(--lmm-border); border-radius: 20px;
    padding: 6px 14px; font-size: 12.5px; font-weight: 600; color: var(--lmm-text2);
}
.tcn-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lmm-text3); }
.tcn-live-badge.is-oncall .tcn-live-dot { background: var(--lmm-danger); animation: tcn-pulse 1.2s infinite; }
.tcn-live-badge.is-online .tcn-live-dot { background: var(--lmm-green); }
@keyframes tcn-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.tcn-filter-bar { display: flex; gap: 8px; align-items: center; margin: 18px 0 16px; flex-wrap: wrap; }
.tcn-pill {
    padding: 7px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer;
    border: 1px solid var(--lmm-border); background: var(--lmm-surface2); color: var(--lmm-text2); transition: all .15s;
}
.tcn-pill:hover { border-color: var(--lmm-green); color: var(--lmm-text); }
.tcn-pill.is-active { background: var(--lmm-green); border-color: var(--lmm-green); color: #fff; }
.tcn-sync-msg { margin-left: auto; font-size: 12.5px; color: var(--lmm-green-light); }

.tcn-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.tcn-kpi { background: var(--lmm-surface); border: 1px solid var(--lmm-border); border-radius: var(--lmm-radius); padding: 16px 18px; }
.tcn-kpi-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--lmm-text3); margin-bottom: 6px; }
.tcn-kpi-value { font-size: 24px; font-weight: 700; color: var(--lmm-text); }

.tcn-scroll-area { flex: 1; min-height: 0; overflow-y: auto; }

.tcn-rank-badge {
    display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px;
    border-radius: 50%; background: var(--lmm-surface2); font-size: 11.5px; font-weight: 700; color: var(--lmm-text2);
}
.tcn-rank-badge.is-top { background: var(--lmm-green); color: #fff; }
.tcn-status-pill { padding: 3px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 700; }
.tcn-status-oncall { background: rgba(224,82,82,.15); color: var(--lmm-danger); }
.tcn-status-online { background: rgba(82,176,67,.15); color: var(--lmm-green-light); }
.tcn-status-offline { background: var(--lmm-surface2); color: var(--lmm-text3); }

@media (max-width: 900px) {
    .tcn-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
