/* XD Charts - 数据看板图表样式（零依赖，沿用后台主色） */
.xd-chart-svg { display: block; width: 100%; height: auto; }
.xd-grid { stroke: #e2e8f0; stroke-width: 1; stroke-dasharray: 4 4; }
.xd-axis { fill: #94a3b8; font-size: 11px; font-family: inherit; }
.xd-legend { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 8px; }
.xd-lg { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #64748b; }
.xd-lg i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; }
.xd-lg b { color: #334155; font-weight: 600; }
.xd-empty { color: #94a3b8; font-size: 13px; text-align: center; padding: 24px 8px; }

.xd-donut-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.xd-donut { width: 168px; height: 168px; flex: 0 0 auto; }
.xd-donut path { stroke: #fff; stroke-width: 2; }
.xd-donut-total { fill: #1e293b; font-size: 24px; font-weight: 700; }
.xd-donut-label { fill: #94a3b8; font-size: 11px; }
.xd-donut-wrap .xd-legend { flex-direction: column; gap: 8px; margin: 0; justify-content: flex-start; }

.xd-bar-row { display: flex; align-items: center; gap: 10px; margin: 9px 0; }
.xd-bar-name { flex: 0 0 92px; font-size: 12px; color: #334155; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xd-bar-track { flex: 1 1 auto; height: 10px; background: #eef1f6; border-radius: 6px; overflow: hidden; }
.xd-bar-track i { display: block; height: 100%; border-radius: 6px; transition: width .4s ease; }
.xd-bar-value { flex: 0 0 64px; text-align: right; font-size: 12px; color: #64748b; font-weight: 600; }

.xd-chart-card { margin-top: 14px; }
@media (max-width: 720px) {
  .xd-donut-wrap { justify-content: center; }
  .xd-bar-name { flex-basis: 72px; }
  .xd-bar-value { flex-basis: 52px; }
}
