
.horizontal-stats-chart {
  background: linear-gradient(180deg, #FFFFFF 0%, #F9FAFB 100%);
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);

  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.chart-header {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px 4px;
}

.chart-title {
  font-size: 10px;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

.loading-badge {
  font-size: 9px;
  font-weight: 600;
  color: #92400E;
  background: #FEF3C7;
  padding: 2px 6px;
  border-radius: 999px;
}


.chart-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 8px 6px;
}

.chart-body > div {
  width: 100%;
  height: 120px;         
  max-height: 120px;
  min-height: 120px;
  overflow: hidden;
}

.uplot {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.uplot canvas {
  image-rendering: crisp-edges;
  text-rendering: optimizeLegibility;
}

.uplot .u-axis text {
  fill: #475569;
  font-size: 9px;
  font-weight: 500;
}

.uplot .u-grid {
  display: none;
}

.uplot .u-axis path,
.uplot .u-axis line {
  stroke: #CBD5E1;
}

.chart-loading-state,
.chart-empty-state {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: #64748B;
  background: #F8FAFC;
  border: 1px dashed #CBD5E1;
  border-radius: 8px;
}

.loading-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #E5E7EB;
  border-top: 2px solid #2563EB;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 720px) {
  .chart-body {
    padding: 0 6px 6px;
  }

  .chart-body > div,
  .chart-loading-state,
  .chart-empty-state {
    height: 120px;
    max-height: 120px;
  }
}
