/* نمودارهای سبک (بدون وابستگی به کتابخانه خارجی؛ مناسب سرور بدون اینترنت) */
.chart-empty { padding: 1.25rem; text-align: center; color: var(--bs-secondary-color, #6c757d); font-size: .9rem; }
.chart-dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; margin-inline-end: .35rem; vertical-align: middle; }
.chart-legend-inline { display: flex; flex-wrap: wrap; gap: .9rem; font-size: .8rem; margin-bottom: .6rem; color: var(--bs-secondary-color, #6c757d); }

.chart-donut { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.chart-donut-svg { width: 190px; max-width: 100%; flex: 0 0 auto; }
.chart-donut-total { font-size: 15px; font-weight: 700; fill: currentColor; }
.chart-donut-unit { font-size: 7px; fill: currentColor; opacity: .65; }
.chart-legend { list-style: none; margin: 0; padding: 0; flex: 1 1 200px; display: grid; gap: .45rem; font-size: .88rem; }
.chart-legend li { display: flex; align-items: center; gap: .5rem; }
.chart-legend-label { flex: 1 1 auto; }

.chart-bar-row { display: grid; grid-template-columns: minmax(90px, 160px) 1fr minmax(70px, auto); align-items: center; gap: .6rem; padding: .3rem 0; }
.chart-bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; }
.chart-bar-track { display: flex; height: 16px; border-radius: 8px; background: rgba(128, 128, 128, .16); overflow: hidden; }
.chart-bar-fill { height: 100%; transition: width .4s ease; }
.chart-bar-value { font-size: .82rem; font-weight: 600; text-align: end; white-space: nowrap; }

.chart-line-svg { width: 100%; height: auto; max-height: 280px; }
.chart-axis { font-size: 10px; fill: currentColor; opacity: .7; }
