#manager-app .manager-statistics-distribution { display:grid; grid-template-columns:160px minmax(0,1fr); gap:24px; align-items:center; padding:8px 24px 20px; }
#manager-app .statistics-donut { position:relative; width:160px; height:160px; }
#manager-app .statistics-donut svg { display:block; width:100%; height:100%; overflow:visible; }
#manager-app .statistics-donut circle { stroke-linecap:butt; }
#manager-app .statistics-donut-total { position:absolute; inset:0; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:4px; pointer-events:none; }
#manager-app .statistics-donut-total strong { font-size:28px; font-weight:600; line-height:1.2; color:#1F2937; }
#manager-app .statistics-donut-total span { font-size:12px; color:#64748B; }
#manager-app .statistics-donut-legend { list-style:none; padding:0; margin:0; min-width:0; display:grid; gap:16px; }
#manager-app .statistics-donut-legend li { display:grid; grid-template-columns:8px minmax(0,1fr) auto 48px; align-items:baseline; gap:10px; font-size:13px; line-height:1.5; }
#manager-app .statistics-legend-dot { width:8px; height:8px; border-radius:50%; align-self:start; margin-top:6px; }
#manager-app .statistics-legend-name { color:#334155; overflow-wrap:anywhere; }
#manager-app .statistics-donut-legend strong { font-weight:600; color:#1F2937; font-variant-numeric:tabular-nums; }
#manager-app .statistics-legend-share { color:#64748B; text-align:right; font-variant-numeric:tabular-nums; }
#manager-app .manager-statistics-chart { overflow:visible; padding:8px 24px 12px; }
#manager-app .manager-statistics-chart svg { min-width:0; width:100%; }
#manager-app .manager-statistics-chart svg text { fill:#64748B; font-family:inherit; font-size:13px; font-weight:400; stroke:none; }
#manager-app .manager-statistics-chart svg rect { stroke:none; }
#manager-app .manager-statistics-chart svg line { stroke:#E5EAF2; stroke-width:1; }
#manager-app .manager-statistics-panel > .desktop-panel-head h2 { font-size:14px; font-weight:600; }
/* Patient statistics match the dashboard card headings. */
#manager-app .manager-statistics-patient-count > .desktop-panel-head h2,
#manager-app .manager-statistics-registration > .desktop-panel-head h2 { margin:0; font-size:1.125rem; font-weight:600; line-height:1.3; color:#1f2937; letter-spacing:0; }
#manager-app .manager-statistics-data summary { font-size:12px; }
@media (min-width:1001px) and (max-width:1350px) {
 #manager-app .manager-statistics-distribution { grid-template-columns:1fr; justify-items:center; gap:20px; }
 #manager-app .statistics-donut-legend { width:100%; }
}
@media (max-width:600px) {
 #manager-app .manager-statistics-distribution { grid-template-columns:1fr; justify-items:center; gap:20px; padding:8px 16px 16px; }
 #manager-app .statistics-donut-legend { width:100%; }
 #manager-app .manager-statistics-chart { padding:4px 12px 12px; }
 #manager-app .manager-statistics-chart svg { min-height:150px; }
 #manager-app .manager-statistics-chart svg text { font-size:26px; }
}

/* Help bubbles may extend beyond short patient statistics cards. */
#manager-app .manager-statistics-patient-count,
#manager-app .manager-statistics-registration { overflow:visible; }
#manager-app .manager-statistics-patient-count > .desktop-panel-head,
#manager-app .manager-statistics-registration > .desktop-panel-head { position:relative; }
#manager-app .manager-statistics-patient-count .manager-heading-help,
#manager-app .manager-statistics-registration .manager-heading-help { position:static; }
#manager-app .manager-statistics-patient-count .manager-heading-help-tooltip,
#manager-app .manager-statistics-registration .manager-heading-help-tooltip {
  left:1rem; right:auto; top:calc(100% - .5rem); width:280px;
  max-width:calc(100% - 2rem); z-index:50;
}


/* Keep the date typography while using the existing heading-help control. */
#manager-app .manager-statistics-screen .manager-selected-period p { position:relative; display:flex; align-items:center; gap:8px; }
#manager-app .manager-statistics-screen .manager-selected-period .manager-heading-help { position:static; }
#manager-app .manager-statistics-screen .manager-selected-period .manager-heading-help-tooltip {
 box-sizing:border-box; left:0; top:calc(100% + 8px); width:300px; max-width:min(300px,calc(100vw - 64px));
 background:#172b4d; border-color:#172b4d; color:#fff; text-align:left; z-index:50;
}
