/* ============================================================
   OminiSis Enterprise — Chart Styles
   ============================================================ */

.chart-container {
  position: relative;
  width: 100%;
}

.chart-canvas {
  display: block;
  width: 100%;
}

/* Donut Chart */
.donut-chart-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
}

.donut-svg { flex-shrink: 0; }

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.legend-dot {
  width: 10px; height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.legend-label { color: var(--text-secondary); flex: 1; }
.legend-value { color: var(--text-primary); font-weight: 600; }
.legend-pct { color: var(--text-muted); }

/* Bar Chart */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 180px;
  padding-top: 16px;
}

.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}

.bar-fill {
  width: 100%;
  border-radius: 4px 4px 0 0;
  transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.bar-fill:hover { filter: brightness(1.2); }

.bar-fill::before {
  content: attr(data-value);
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
}

.bar-label {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Line Chart (SVG) */
.line-chart-container {
  position: relative;
  overflow: hidden;
}

/* Area/Line charts */
.sparkline-svg { overflow: visible; }

/* Gauge */
.gauge-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.gauge-svg { overflow: visible; }
