/* ============ Screen 5 — Clinic analytics ============ */

.stat-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:20px}
.scard{
  background:linear-gradient(120deg,#1d4ed8,#3b82f6);
  color:#fff;border-radius:12px;padding:14px 16px;
  box-shadow:0 8px 20px rgba(37,99,235,.22);
}
.scard b{font-size:22px;font-weight:700;display:block;font-variant-numeric:tabular-nums}
.scard span{font-size:11px;opacity:.85}

.an-card{padding:20px 22px;margin-bottom:18px}
.an-card .section-head{align-items:center}

/* visit outcomes */
.donut-row{display:flex;align-items:center;gap:44px;margin-top:16px;padding-left:6px}
.donut{position:relative;width:150px;height:150px;flex:0 0 auto}
.donut .center{
  position:absolute;inset:0;display:grid;place-items:center;
  font-size:21px;font-weight:600;
}
.legend{display:grid;gap:10px;font-size:12.5px;min-width:230px}
.legend .li{display:flex;align-items:center;gap:9px}
.legend .li i{width:9px;height:9px;border-radius:3px;flex:0 0 auto}
.legend .li b{margin-left:auto;font-weight:600;font-variant-numeric:tabular-nums}

/* service stages */
.stages{margin-top:14px}
.stage-row{display:grid;grid-template-columns:120px 1fr 56px;align-items:center;gap:14px;padding:7px 0;font-size:12.5px}
.stage-row .name{display:flex;align-items:center;gap:8px;color:#3d4a5f;font-weight:500}
.stage-row .name svg{color:var(--muted)}
.stage-row .bar{height:8px;border-radius:99px;background:#eef2f8;overflow:hidden}
.stage-row .bar i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#2563eb,#38bdf8)}
.stage-row .v{text-align:right;font-weight:600;font-size:12px;font-variant-numeric:tabular-nums}

/* patient mix */
.mix-bar{display:flex;height:14px;border-radius:99px;overflow:hidden;margin:18px 0 16px;background:#eef2f8}
.mix-bar i{display:block;height:100%}
.mix-legend{display:grid;grid-template-columns:1fr 1fr;gap:9px 48px;font-size:12px;max-width:640px}
.mix-legend .li{display:flex;align-items:center;gap:9px}
.mix-legend .li i{width:9px;height:9px;border-radius:3px;flex:0 0 auto}
.mix-legend .li b{margin-left:auto;font-weight:600;font-variant-numeric:tabular-nums}

/* collapsed / empty sections */
.placeholder{border:1px dashed var(--line);border-radius:10px;height:120px;margin-top:16px;background:#fafbfd}
.chev{margin-left:auto;color:var(--faint);font-size:16px}
