#highcharts-drilldown-container {
  width: 100%;
  height: 600px;
  min-height: 400px;
  max-width: 100%;
  box-sizing: border-box;
}

#hc-custom-legend {
  display: none;
  padding: 12px 16px 8px;
  background: #fff;
}

#hc-custom-legend .hc-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  font-family: greycliff-cf, sans-serif;
  font-size: 13px;
  color: #333333;
}

#hc-custom-legend .hc-legend-swatch {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  display: inline-block;
}

#hc-custom-legend .hc-legend-label {
  line-height: 1.3;
}

#highcharts-drilldown-container .highcharts-drilldown-data-label text {
  color: #000000 !important;
}

#highcharts-drilldown-container.hc-drilldown-active {
  height: auto;
  min-height: 300px;
}

.highcharts-drilldown-wrapper {
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: visible;
  box-sizing: border-box;
}

.highcharts-drilldown-wrapper .container-fluid {
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: visible;
  box-sizing: border-box;
}

/* Chart header (title + back button) */
#hc-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 10px 12px;
  background: #fff;
}

#hc-chart-header .hc-chart-title {
  margin: 0;
  font-family: greycliff-cf, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #000000;
  line-height: 27px;
}

#hc-chart-header .hc-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: #d32737;
  border: 1px solid #d32737;
  border-radius: 0;
  font-family: greycliff-cf, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  line-height: 1.2;
}

#hc-chart-header .hc-back-btn__icon {
  width: 15px;
  height: auto;
  flex: 0 0 auto;
}

#hc-chart-header .hc-back-btn__text {
  white-space: nowrap;
}

#hc-chart-header .hc-back-btn[hidden] {
  display: none;
}

.highcharts-breadcrumbs-group {
  display: none;
}

@media screen and (max-width: 1024px) {
  #hc-chart-header .hc-chart-title {
    font-size: 21px;
    line-height: 27px;
  }
}

@media (max-width: 767px) {
  #hc-chart-header {
    flex-direction: column;
    align-items: flex-start;
  }
  #highcharts-drilldown-container .highcharts-data-label text,
  #highcharts-drilldown-container .highcharts-internal-label text {
    fill: #ffffff !important;
    font-weight: 400 !important;
  }

  #highcharts-drilldown-container {
    height: 350px;
    min-height: 350px;
  }

  #hc-custom-legend {
    display: block;
  }

  #hc-chart-header .hc-chart-title {
    font-size: 18px;
    line-height: 22px;
  }
}
