
.chart-legend {
  position: relative;
  z-index: 10;
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap;
  margin-top: 30px;
}

@media screen and (max-width: 960px) {
  .chart-legend {
    gap: 10px;
  }
}
@media screen and (min-width: 960px) {
  .chart-legend {
    gap: 5px;
  }
}

.legend-container {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 10px;
}

.legend-group {
  font-weight: 700;
}

.legend-item {
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: opacity 0.2s ease-in-out;
  font-size: .685rem;
}

.legend-item.hidden {
  text-decoration: line-through;
}

.legend-item:hover {
  opacity: 0.7;
}

.legend-color {
  background-color: var(--chartItem-color);
  width: 10px;
  height: 10px;
  aspect-ratio: 1/1;
  margin-right: 8px;
  border-radius: 100%;
}
