.bootcn-chart {
  position: relative;
  min-width: 0;
  margin: 0;
  color: var(--bootcn-foreground);
}

.bootcn-chart__caption {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.bootcn-chart__plot {
  position: relative;
  width: 100%;
}

.bootcn-chart__svg {
  display: block;
  overflow: visible;
}

.bootcn-chart__grid line,
.bootcn-chart__grid polygon {
  fill: none;
  stroke: var(--bootcn-border-color);
}

.bootcn-chart__grid line {
  stroke-dasharray: 3 3;
}

.bootcn-chart__tick {
  fill: var(--bootcn-muted-foreground);
  font-size: 12px;
}

.bootcn-chart__line {
  fill: none;
  stroke-width: 2;
  stroke-linejoin: round;
}

.bootcn-chart__dot {
  fill: var(--bootcn-background);
  stroke-width: 2;
}

.bootcn-chart__radar {
  fill-opacity: 0.3;
  stroke-width: 2;
}

.bootcn-chart__track {
  fill: var(--bootcn-muted);
}

.bootcn-chart__bar,
.bootcn-chart__slice {
  transition: opacity var(--bootcn-transition);
}

.bootcn-chart__slice {
  stroke: var(--bootcn-background);
  stroke-width: 1;
}

.bootcn-chart .is-dimmed {
  opacity: 0.35;
}

.bootcn-chart__cursor {
  stroke: var(--bootcn-muted-foreground);
  stroke-width: 1;
  pointer-events: none;
}

.bootcn-chart__cursor--band {
  fill: var(--bootcn-muted);
  stroke: none;
  opacity: 0.6;
}

.bootcn-chart__center-value {
  fill: var(--bootcn-foreground);
  font-size: 28px;
  font-weight: 700;
}

.bootcn-chart__center-label {
  fill: var(--bootcn-muted-foreground);
  font-size: 12px;
}

.bootcn-chart__tooltip {
  position: absolute;
  z-index: 10;
  min-width: 8rem;
  padding: 0.375rem 0.625rem;
  border: var(--bootcn-border-width) solid var(--bootcn-border-color);
  border-radius: var(--bootcn-radius-lg);
  background-color: var(--bootcn-background);
  box-shadow: var(--bootcn-shadow-md);
  font-size: 0.75rem;
  pointer-events: none;
}

.bootcn-chart__tooltip[hidden] {
  display: none;
}

.bootcn-chart__tooltip-title {
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.bootcn-chart__tooltip-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bootcn-chart__tooltip-name {
  color: var(--bootcn-muted-foreground);
}

.bootcn-chart__tooltip-value {
  margin-left: auto;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.bootcn-chart__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.375rem 1rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.75rem;
}

.bootcn-chart__legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.bootcn-chart__swatch {
  display: inline-block;
  flex: none;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 2px;
}

.bootcn-chart__data {
  margin-top: 0.5rem;
  font-size: 0.75rem;
}

.bootcn-chart__data > summary {
  width: fit-content;
  border-radius: var(--bootcn-radius-sm);
  color: var(--bootcn-muted-foreground);
  cursor: pointer;
}

.bootcn-chart__data > summary:focus-visible {
  outline: 0;
  box-shadow: var(--bootcn-focus-ring);
}

.bootcn-chart__table {
  width: 100%;
  margin-top: 0.5rem;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.bootcn-chart__table caption {
  caption-side: top;
  padding: 0 0 0.25rem;
  color: var(--bootcn-muted-foreground);
  text-align: left;
}

.bootcn-chart__table th,
.bootcn-chart__table td {
  padding: 0.25rem 0.5rem;
  border-bottom: var(--bootcn-border-width) solid var(--bootcn-border-color);
  text-align: right;
}

.bootcn-chart__table th:first-child {
  text-align: left;
}

.bootcn-chart__table thead th {
  font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
  .bootcn-chart__bar,
  .bootcn-chart__slice {
    transition: none;
  }
}
