.echarts-chart--line {
  width: 100%;
  min-height: 360px;
  height: 480px;
}

.line-profile-controls .mappa-metrics-scroll {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.line-profile-controls .mappa-metrics-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.line-profile-controls .mappa-metrics-scroll-wrap {
  position: relative;
  overflow: hidden;
}

.line-profile-select-wrap {
  position: relative;
  max-width: 14rem;
}

.line-profile-select-wrap--header {
  max-width: none;
  margin-bottom: 0.15rem;
}

.line-profile-select {
  width: 100%;
  min-height: 2.1rem;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  color: var(--secondary);
  font-family: var(--font-heading, "Quicksand", sans-serif);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0 1.15rem 0 0;
  box-shadow: none;
}

.line-profile-select:hover,
.line-profile-select:focus-visible {
  outline: none;
  box-shadow: none;
}

.line-header-with-select {
  pointer-events: auto;
  max-width: min(280px, 58%);
  padding: 0.45rem 0.55rem;
}

.line-header-with-select .line-profile-select {
  min-height: 1.3rem;
  font-size: 0.78rem;
  padding: 0 1rem 0 0;
}

.line-header-with-select .setech-header-subtitle {
  pointer-events: none;
  font-size: 0.8rem;
}

.line-profile-button {
  white-space: nowrap;
  flex: 0 0 auto;
  scroll-snap-align: start;
  border-radius: 999px;
  border-color: rgba(10, 26, 67, 0.2);
  background-color: var(--white);
  color: var(--secondary);
  font-family: var(--font-heading, "Quicksand", sans-serif);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0.36rem 0.9rem;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.line-profile-button:hover,
.line-profile-button:focus-visible {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  outline: none;
}

.line-profile-button.is-active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.line-profile-controls .mappa-metrics-scroll-gradient {
  background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff);
}

.line-profile-controls .mappa-metrics-scroll-gradient--left {
  background: linear-gradient(to left, rgba(255, 255, 255, 0), #fff);
}

@media (max-width: 767px) {
  .line-profile-select-wrap {
    max-width: none;
  }

  .line-header-with-select {
    max-width: calc(100% - 2rem);
  }
}

.echarts-line-legend {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
  padding: 0.9rem 1.25rem 1.5rem;
}

.echarts-line-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--gray, #6b7280);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.25;
  white-space: nowrap;
}

.echarts-line-legend__marker {
  display: inline-block;
  flex: 0 0 auto;
}

.echarts-line-legend__item--line .echarts-line-legend__marker {
  width: 1.6rem;
  height: 0;
  border-top: var(--legend-line-width, 3px) var(--legend-line-style, solid) var(--legend-line, #1f4f82);
}

.echarts-line-legend__item--vertical .echarts-line-legend__marker {
  width: 0;
  height: 1.1rem;
  border-top: 0;
  border-left: var(--legend-line-width, 3px) var(--legend-line-style, solid) var(--legend-line, #1f4f82);
}

.echarts-line-legend__item--band .echarts-line-legend__marker {
  width: 1.15rem;
  height: 0.72rem;
  border: var(--legend-border-width, 0) solid var(--legend-border, transparent);
  background: var(--legend-fill, #f5c2c7);
  border-radius: 0.2rem;
}
