:root {
  --map-text-large: 1.25rem;
}

.page-node-type-graph-element #header {
  position: static;
}

.page-node-type-graph-element .graph-element {
  width: 1120px;
  margin: auto;
  margin-top: 200px;
}

.highcharts-title tspan {
  font-family: var(--title-font);
  font-size: 18px;
  line-height: 28px;
}

.highcharts-subtitle tspan {
  font-family: var(--title-font);
  font-size: 12px;
}

/*.graph-type-donut .highcharts-tooltip .d-name,
.graph-type-pie .highcharts-tooltip .d-name{
  display: none;
}*/

.graph-type-donut .highcharts-tooltip {
  background-color: red !important;
}

.graph-type-donut .highcharts-data-label tspan.d-name,
.graph-type-pie .highcharts-data-label tspan.d-name {
  display: block;
}

.graph-type-pie .highcharts-legend-item tspan.d-description,
.graph-type-donut .highcharts-legend-item tspan.d-description,
.graph-type-donut .highcharts-data-label .d-description {
  display: none;
}

.graph-type-donut .highcharts-data-label .d-name {
  font-size: 16px;
  font-weight: normal;
  font-family: var(--title-font);
  /* white-space: break-spaces; */
  line-height: 20px;
  display: block;
  min-width: 70px;
}

.graph-type-donut .highcharts-title {
  font-family: var(--title-font);
  font-size: 14px !important;
  line-height: 14px;
}

.graph-type-donut .highcharts-subtitle tspan {
  font-size: 20px !important;
  line-height: 32px;
  font-family: var(--title-font) !important;
  font-weight: 550;
}

.graph-type-donut .highcharts-subtitle {
  display: block;
  max-width: 350px;
  font-size: 20px !important;
  line-height: 24px;
  font-family: var(--title-font) !important;
  font-weight: normal;
  /* white-space: break-spaces !important; */
  height: 20px;
  left: 0 !important;
  top: 1rem !important;
  overflow: visible;
}

/* Bubble */
.graph-type-bubble,
.graph-type-bubble > div {
  overflow: visible !important;
  z-index: 2;
  position: relative;
}

.bc-tooltip,
div.bc-tooltip-container {
  width: 20rem;
}

g.bc-tooltip-container {
  display: none;
}

div.bc-tooltip-container > span {
  display: block;
  white-space: normal !important;
  max-height: 35rem;
  overflow-y: auto;
  background-color: #fff;
  padding: 35px 26px;
  box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
}

div.bc-tooltip-container .bc-tooltip p {
  font-size: var(--font-body-medium);
  line-height: var(--line-height-medium);
  padding: 0.5rem 0;
}

.bc-close {
  position: absolute;
  top: 4px;
  right: 4px;
  border: 0;
  background-color: transparent;
  background-image: url("../images/close.svg");
  width: 1.5rem;
  height: 1.5rem;
  background-size: cover;
  background-repeat: no-repeat;
}

.graph-type-bubble.text-x-axis .highcharts-xaxis .highcharts-axis-title,
.graph-type-bubble.text-y-axis .highcharts-yaxis .highcharts-axis-title {
  display: flex !important;
}

.graph-type-bubble.text-x-axis .highcharts-xaxis .highcharts-axis-title {
  left: var(--chart-axes-left) !important;
  width: var(--chart-box-width);
}

.graph-type-bubble.text-y-axis .highcharts-yaxis .highcharts-axis-title {
  transform-origin: 0 0 !important;
  left: calc(var(--chart-axes-left) - 2rem) !important;
  top: var(--chart-axes-top) !important;
  width: var(--chart-box-height);
}

.graph-type-bubble .highcharts-xaxis-grid > path:last-child,
.graph-type-bubble .highcharts-yaxis-grid > path:last-child {
  display: none;
}

/* .bc-tooltip-container.highcharts-label.highcharts-tooltip .main-action.javali-buttons{
  margin-bottom: -10px;
} */

@media all and (max-width: 1119px) {
  .page-node-type-graph-element .graph-element {
    width: 100%;
  }
}

@media all and (max-width: 767px) {
  div.bc-tooltip-container {
    left: 0 !important;
    right: 0 !important;
    margin: auto;
  }

  div.bc-tooltip-container > span {
    box-sizing: border-box;
    width: 20rem !important;
  }

  .bc-tooltip {
    width: 100%;
  }
}

.highcharts-legend-item,
.highcharts-label,
.highcharts-axis-labels,
.highcharts-axis-title {
  font-family: var(--title-font);
}

@media screen and (min-width: 1921px) {
  .graph-type-donut .highcharts-title {
    font-size: 1rem !important;
    line-height: 1.2rem;
  }

  .graph-type-donut .highcharts-data-label tspan.d-name,
  .graph-type-pie .highcharts-data-label tspan.d-name {
    font-size: var(--font-body-small) !important;
    line-height: var(--line-height-small) !important;
  }

  .bc-tooltip,
  div.bc-tooltip-container {
    width: 28rem;
  }

  .bc-tooltip div.bc-tooltip-container > span {
    box-sizing: border-box;
    width: 100% !important;
  }
}

@media screen and (min-width: 3840px) {
  .graph-element {
    --map-text-large: 2rem;
  }

  .highcharts-title {
    font-size: 3.5rem !important;
    line-height: 4rem !important;
  }

  .graph-type-donut .highcharts-title {
    font-size: 2.5rem !important;
  }

  .graph-type-donut .highcharts-label {
    visibility: visible !important;
  }

  .graph-type-donut .highcharts-data-label .d-name {
    min-width: 350px;
    font-size: var(--font-body-medium) !important;
    line-height: var(--line-height-medium) !important;
  }

  .graph-type-donut .highcharts-subtitle {
    font-size: 3.5rem !important;
    line-height: 4.5rem;
    max-width: 900px;
  }

  .graph-type-donut .highcharts-data-label tspan.d-name,
  .graph-type-pie .highcharts-data-label tspan.d-name,
  .graph-type-donut .highcharts-data-label tspan.d-description,
  .graph-type-pie .highcharts-data-label tspan.d-description {
    font-size: var(--font-body-large) !important;
    line-height: var(--line-height-large) !important;
  }

  .graph-element.graph-type-pie,
  .graph-element.graph-type-pie .highcharts-container,
  .graph-element.graph-type-pie .highcharts-root {
    overflow: visible !important;

    height: 800px;
  }

  .highcharts-tooltip-container {
    transform: scale(2) !important;
  }
  .highcharts-button-symbol,
  .highcharts-button-box {
    height: 100px;
    width: 100px;
  }
  .highcharts-legend-item,
  .highcharts-label,
  .highcharts-axis-labels,
  .highcharts-axis-title {
    font-size: var(--font-body-medium);
    line-height: var(--line-height-medium);
  }

  .bc-tooltip,
  div.bc-tooltip-container {
    width: 35rem;
  }

  .bc-tooltip div.bc-tooltip-container > span {
    box-sizing: border-box;
    width: 100% !important;
  }

  div.bc-tooltip-container > span {
    max-height: 55rem;
  }
}
