.wgt-home-interactive-dashboards {
  --chart-selector-bg-color: var(--background-white);
  --chart-selector-border-color: var(--primary-color-14);
  --chart-icon-bg-color: var(--background-white);
  --chart-icon-bg-color-active: var(--primary-color-14);
  --chart-icon-border-color: var(--border-default-grey);
  --chart-icon-border-color-hover: var(--chart-light-active);
  --chart-icon-border-color-active: var(--primary-color-14);
  --main-text-color: var(--text-title);
  --description-text-color: var(--text-body);

  position: relative;
  isolation: isolate;
  overflow: visible;
  padding-top: 48px;
  padding-bottom: 80px;
  color: var(--main-text-color);
  background: linear-gradient(to top, var(--background-gray) 0%, var(--background-gray) 52%, var(--background-white) 100%);
}

.wgt-home-interactive-dashboards.dark-theme {
  --chart-selector-bg-color: var(--neutral-color-02);
  --chart-selector-border-color: #3e3e3e;
  --chart-icon-bg-color: var(--neutral-color-02);
  --chart-icon-bg-color-active: var(--neutral-color-02);
  --chart-icon-border-color: #363636;
  --chart-icon-border-color-hover: #272727;
  --chart-icon-border-color-active: var(--primary-color-01);
  --main-text-color: var(--text-white);
  --description-text-color: var(--neutral-color-06);
  --highcharts-background-color: #1d1d1d;
  --highcharts-neutral-color-100: #ffffff;
  --highcharts-neutral-color-80: #ffffff;
  --highcharts-neutral-color-60: #8796ad;
  --highcharts-neutral-color-40: #8796ad;
  --highcharts-neutral-color-20: #3e3e3e;
  --highcharts-neutral-color-10: #2a2a2a;
  --highcharts-neutral-color-5: #2a2a2a;
  --highcharts-neutral-color-3: #1d1d1d;
  --highcharts-highlight-color-80: #ffffff;
}

.wgt-home-interactive-dashboards .home-grid-bg {
  z-index: 0;
}

.wgt-home-interactive-dashboards .home-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--gap-2xl-42);
  align-items: stretch;
}

.home-interactive-dashboards-desktop {
  display: flex;
  flex-direction: column;
  gap: var(--gap-2xl-42);
  align-items: stretch;
  width: 100%;
}

.home-interactive-dashboards-head {
  display: flex;
  gap: var(--gap-xl-32);
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}

.home-interactive-dashboards-head-text {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: var(--gap-md-12);
  align-items: flex-start;
  max-width: 800px;
}

.home-interactive-dashboards-head-cta {
  flex-shrink: 0;
  min-width: 240px;
}

.wgt-home-interactive-dashboards .home-section-title,
.wgt-home-interactive-dashboards .home-section-title :is(h1, h2, h3, h4, h5, h6, p) {
  font-size: clamp(1.625rem, 1.4733rem + 0.6472vw, 2.25rem);
  font-weight: var(--font-weight-medium);
}

.wgt-home-interactive-dashboards .home-section-title :is(em, i) {
  font-style: italic;
}

.wgt-home-interactive-dashboards .home-interactive-dashboards-head .home-section-description,
.wgt-home-interactive-dashboards .home-interactive-dashboards-head .home-section-description p {
  max-width: 678px;
  margin: 0;
  color: var(--description-text-color);
  font-size: clamp(0.875rem, 0.8447rem + 0.1294vw, 1rem);
}

.home-interactive-dashboards-stage {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg-24);
  align-items: stretch;
  width: 100%;
}

.home-interactive-dashboards-body {
  display: flex;
  gap: var(--gap-xl-32);
  align-items: flex-start;
  width: 100%;
  padding-right: 64px;
}

.home-interactive-dashboards-body:not(:has(.home-interactive-dashboards-comments)) {
  justify-content: center;
}

.home-interactive-dashboards-comments {
  flex: 0 0 373px;
  width: 373px;
}

.home-interactive-dashboards-comments-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-header);
}

.home-interactive-dashboards-caption {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--gap-md-12);
  align-self: flex-start;
  max-width: 377px;
}

.home-interactive-dashboards-caption-title,
.home-interactive-dashboards-caption-title :is(h1, h2, h3, h4, h5, h6, p) {
  margin: 0;
  color: var(--text-title);
  font-size: 1.25rem;
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
}

.home-interactive-dashboards-caption-description,
.home-interactive-dashboards-caption-description p {
  margin: 0;
  color: var(--description-text-color);
  font-size: 0.875rem;
  line-height: 1.4;
}

.home-interactive-dashboards-arrow {
  position: absolute;
  top: -40px;
  right: -45px;
  z-index: 6;
  width: 64px;
  height: 90px;
  object-fit: contain;
  pointer-events: none;
}

.home-interactive-dashboards-chart {
  position: relative;
  flex: 1 1 0;
  width: 100%;
  min-width: 0;
}

.wgt-home-interactive-dashboards .highcharts-figure {
  display: none;
  width: 100%;
  height: 452px;
  margin: 0;
  padding: var(--padding-lg-24);
  border: 1px solid var(--primary-color-14);
  border-radius: var(--radius-card);
  background: var(--background-white);
  box-shadow: var(--shadow-header);
}

.wgt-home-interactive-dashboards .highcharts-figure.visible {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 5;
}

.wgt-home-interactive-dashboards .highcharts-figure > div {
  flex: 1;
  min-height: 0;
}

.wgt-home-interactive-dashboards .highcharts-figure .subtitle {
  margin: 0 0 var(--gap-md-12);
  padding-bottom: var(--gap-md-12);
  border-bottom: 1px solid var(--chart-border-cards-default);
  color: var(--text-body);
  font-size: var(--font-size-body-sm);
}

.wgt-home-interactive-dashboards .highcharts-title {
  font-size: var(--font-size-heading-h4);
  font-weight: var(--font-weight-semi-bold);
  fill: var(--text-title);
}

.wgt-home-interactive-dashboards .highcharts-subtitle {
  display: none;
}

.wgt-home-interactive-dashboards .chart-selector,
.wgt-home-interactive-dashboards .chart-selector.draggable {
  position: absolute;
  top: 244px;
  left: auto;
  right: -64px;
  z-index: 8;
  width: fit-content;
  padding: 1.375rem;
  border: 1px solid var(--chart-selector-border-color);
  border-radius: var(--radius-card);
  background-color: var(--chart-selector-bg-color);
  box-shadow: var(--shadow-header);
  cursor: grab;
  user-select: none;
}

.wgt-home-interactive-dashboards .chart-selector.is-clicked,
.wgt-home-interactive-dashboards .chart-selector.is-dragging {
  cursor: grabbing;
  z-index: 12;
}

.wgt-home-interactive-dashboards .chart-selector::before {
  content: "";
  display: block;
  width: 52px;
  height: 2px;
  margin: auto;
  border-radius: 2px;
  background-color: var(--chart-black-default);
  cursor: grab;
}

.wgt-home-interactive-dashboards .chart-icons-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.875rem;
  margin: 1.375rem 0;
}

.wgt-home-interactive-dashboards .chart-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--chart-icon-border-color);
  border-radius: 4px;
  background-color: var(--chart-icon-bg-color);
}

.wgt-home-interactive-dashboards .chart-icon > .active {
  display: none;
}

.wgt-home-interactive-dashboards .chart-icon:hover {
  border-color: var(--chart-icon-border-color-hover);
}

.wgt-home-interactive-dashboards .chart-icon.active {
  background-color: var(--chart-icon-bg-color-active);
  border-color: var(--chart-icon-border-color-active);
}

.wgt-home-interactive-dashboards .chart-icon.active > .active {
  display: block;
}

.wgt-home-interactive-dashboards .chart-icon.active > .normal {
  display: none;
}

.wgt-home-interactive-dashboards .chart-icon img {
  width: 24px;
  height: 24px;
}

.wgt-home-interactive-dashboards .form-check-label {
  font-size: var(--font-size-body-sm);
  color: var(--description-text-color);
}

.wgt-home-interactive-dashboards.dark-theme .highcharts-title {
  fill: var(--main-text-color) !important;
}

.wgt-home-interactive-dashboards.dark-theme .highcharts-figure {
  background: var(--chart-selector-bg-color);
  border-color: var(--chart-selector-border-color);
}

.wgt-home-interactive-dashboards.dark-theme .highcharts-figure .subtitle {
  color: var(--description-text-color);
  border-bottom-color: var(--chart-selector-border-color);
}

.wgt-home-interactive-dashboards.dark-theme .highcharts-container {
  background: #1d1d1d !important;
}

.wgt-home-interactive-dashboards.dark-theme .highcharts-background,
.wgt-home-interactive-dashboards.dark-theme .highcharts-plot-background,
.wgt-home-interactive-dashboards.dark-theme .highcharts-plot-border {
  fill: #1d1d1d !important;
}

.wgt-home-interactive-dashboards.dark-theme .highcharts-title,
.wgt-home-interactive-dashboards.dark-theme .highcharts-title tspan,
.wgt-home-interactive-dashboards.dark-theme .highcharts-axis-labels text,
.wgt-home-interactive-dashboards.dark-theme .highcharts-axis-labels tspan,
.wgt-home-interactive-dashboards.dark-theme .highcharts-data-label text,
.wgt-home-interactive-dashboards.dark-theme .highcharts-data-label tspan,
.wgt-home-interactive-dashboards.dark-theme .highcharts-label text,
.wgt-home-interactive-dashboards.dark-theme .highcharts-label tspan,
.wgt-home-interactive-dashboards.dark-theme .highcharts-data-label text,
.wgt-home-interactive-dashboards.dark-theme .highcharts-tooltip text,
.wgt-home-interactive-dashboards.dark-theme .highcharts-tooltip tspan {
  fill: var(--main-text-color) !important;
  color: var(--main-text-color) !important;
}

.wgt-home-interactive-dashboards.dark-theme .highcharts-axis-line,
.wgt-home-interactive-dashboards.dark-theme .highcharts-tick {
  stroke: #3e3e3e;
}

.wgt-home-interactive-dashboards.dark-theme .highcharts-grid-line,
.wgt-home-interactive-dashboards.dark-theme .highcharts-yaxis-grid .highcharts-grid-line {
  stroke: #2a2a2a;
}

.wgt-home-interactive-dashboards.dark-theme .highcharts-tooltip-box {
  fill: var(--chart-selector-bg-color);
  stroke: var(--chart-selector-border-color);
  stroke-width: 1px;
}

.wgt-home-interactive-dashboards.dark-theme .highcharts-legend-item > text,
.wgt-home-interactive-dashboards.dark-theme .highcharts-legend-item tspan {
  fill: var(--description-text-color) !important;
}

.wgt-home-interactive-dashboards.dark-theme .highcharts-pie-series .highcharts-point,
.wgt-home-interactive-dashboards.dark-theme .highcharts-column-series rect.highcharts-point,
.wgt-home-interactive-dashboards.dark-theme .highcharts-bar-series rect.highcharts-point {
  stroke: var(--chart-selector-bg-color);
}

.wgt-home-interactive-dashboards.dark-theme .highcharts-data-label-connector {
  stroke: var(--description-text-color);
}

.home-interactive-dashboards-cta {
  display: flex;
  justify-content: center;
}

.home-interactive-dashboards-cta .home-btn {
  min-width: 276px;
}

.home-interactive-dashboards-collapsed {
  display: none;
  flex-direction: column;
  gap: var(--gap-xl-32);
  align-items: center;
  width: 100%;
}

.home-interactive-dashboards-collapsed .home-section-head {
  width: 100%;
}

.home-interactive-dashboards-collapsed .home-section-description,
.home-interactive-dashboards-collapsed .home-section-description p {
  max-width: 293px;
  margin: 0 auto;
  color: var(--description-text-color);
  font-size: 0.875rem;
}

.home-interactive-dashboards-collapsed-visual {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: transparent;
}

.home-interactive-dashboards-collapsed-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.home-interactive-dashboards-collapsed-cta {
  width: 100%;
  min-width: 0;
}

@media (max-width: 991px) {
  .wgt-home-interactive-dashboards {
    padding-top: var(--padding-xl-40);
    padding-bottom: var(--padding-xl-40);
    background: var(--background-white);
  }

  .home-interactive-dashboards-desktop {
    display: none;
  }

  .home-interactive-dashboards-collapsed {
    display: flex;
  }
}

/* Highcharts 10 css/highcharts.css hardcodes .highcharts-color-N fills.
   SVG stylesheet fill beats JS presentation attributes, so the palette
   must be applied on the same classes — CSS variables are ignored. */
.wgt-home-interactive-dashboards .highcharts-color-0 { fill: #9382ff; stroke: #9382ff; }
.wgt-home-interactive-dashboards .highcharts-color-1 { fill: #9e8fff; stroke: #9e8fff; }
.wgt-home-interactive-dashboards .highcharts-color-2 { fill: #a99bff; stroke: #a99bff; }
.wgt-home-interactive-dashboards .highcharts-color-3 { fill: #b3a8ff; stroke: #b3a8ff; }
.wgt-home-interactive-dashboards .highcharts-color-4 { fill: #beb4ff; stroke: #beb4ff; }
.wgt-home-interactive-dashboards .highcharts-color-5 { fill: #c9c0ff; stroke: #c9c0ff; }
.wgt-home-interactive-dashboards .highcharts-color-6 { fill: #d4cdff; stroke: #d4cdff; }
.wgt-home-interactive-dashboards .highcharts-color-7 { fill: #dfdaff; stroke: #dfdaff; }
.wgt-home-interactive-dashboards .highcharts-color-8 { fill: #e5e1ff; stroke: #e5e1ff; }
.wgt-home-interactive-dashboards .highcharts-color-9 { fill: #e9e6ff; stroke: #e9e6ff; }
.wgt-home-interactive-dashboards .highcharts-color-10 { fill: #ece9ff; stroke: #ece9ff; }
.wgt-home-interactive-dashboards .highcharts-color-11 { fill: #f4f3ff; stroke: #f4f3ff; }
.wgt-home-interactive-dashboards .highcharts-color-12 { fill: #f6f5ff; stroke: #f6f5ff; }

.wgt-home-interactive-dashboards .highcharts-pie-series .highcharts-point,
.wgt-home-interactive-dashboards .highcharts-column-series rect.highcharts-point,
.wgt-home-interactive-dashboards .highcharts-bar-series rect.highcharts-point {
  stroke: #fff;
}

.wgt-home-interactive-dashboards #column-chart .highcharts-color-0,
.wgt-home-interactive-dashboards #bar-chart .highcharts-color-0 {
  fill: #9382ff66;
  stroke: #9382ff66;
}
