/* ======================================================================
   LexperDesk — style strony: statystyki.
   ====================================================================== */

/* ---------- dashboard SLA ---------- */
.ld-scope {
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.ld-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.ld-kpi {
    padding: 16px;
    border: 1px solid var(--ld-border);
    border-radius: 12px;
    background: var(--ld-surface);
}

.ld-kpi__label {
    /* Bez wersalików — kafelki KPI na Statusie klientów są pisane normalnie
       i dwie różne konwencje w tej samej roli się gryzły. */
    font-size: 13px;
    font-weight: 500;
    color: var(--ld-text-muted);
}

.ld-kpi__value {
    margin-top: 6px;
    font-size: 26px;
    font-weight: 700;
    color: var(--ld-text-strong);
}

.ld-kpi__value--ok { color: var(--ld-c-green-600);
}

.ld-kpi__value--warn { color: var(--ld-c-amber-600);
}

.ld-kpi__value--over { color: var(--ld-danger);
}

.ld-kpi__hint {
    margin-top: 2px;
    font-size: 12px;
    color: var(--ld-text-muted);
}

.ld-sla-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 170px;
}

.ld-sla-bar {
    overflow: hidden;
    height: 6px;
    border-radius: 999px;
    background: var(--ld-c-slate-bg);
}

.ld-sla-bar__fill {
    display: block;
    height: 100%;
    border-radius: 999px;
}

.ld-sla-bar__fill--ok { background: var(--ld-ok);
}

.ld-sla-bar__fill--warn { background: var(--ld-warn);
}

.ld-sla-bar__fill--over { background: var(--ld-danger);
}

.ld-sla-cell__txt {
    font-size: 12px;
    color: var(--ld-text-muted);
}

.ld-kpi__unit {
    margin-left: 2px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ld-text-muted);
}
