/* ==========================================================================
   BIZWAVE ERP — CHARTS (Pure CSS & SVG Charts — No External Libraries)
   ========================================================================== */

.erp-chart-container {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Donut Chart */
.erp-donut-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-5);
  flex-wrap: wrap;
}

.erp-donut-chart {
  position: relative;
  width: 160px;
  height: 160px;
}

.erp-donut-chart svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.erp-donut-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.erp-donut-center-value {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  color: var(--c-text);
  line-height: 1.1;
}

.erp-donut-center-label {
  font-size: var(--fs-xs);
  color: var(--c-text-2);
}

.erp-chart-legend {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.erp-chart-legend-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--c-text);
}

.erp-chart-legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* Horizontal & Vertical Bar Charts */
.erp-bar-group {
  margin-bottom: var(--sp-3);
}

.erp-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-xs);
  margin-bottom: var(--sp-1);
}

.erp-bar-track {
  height: 12px;
  background-color: var(--c-bg);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.erp-bar-fill {
  height: 100%;
  border-radius: var(--r-pill);
  background-color: var(--c-primary);
  transition: width 0.5s ease;
}

/* Progress Meter */
.erp-progress-meter {
  height: 8px;
  background-color: var(--c-border-light);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.erp-progress-fill {
  height: 100%;
  background-color: var(--c-primary);
  border-radius: var(--r-pill);
}
