/* ----- Legend ---- */

ul.chart-legend,
ul.chart-legend li {
  list-style-type: none;
}

.recharts-legend-wrapper {
  padding: 0em 0 2em 0;
}

ul.chart-legend {
  display: flex;
  align-items: center;
}

div.chart-legend.table-container.vertical {
  min-height: 8em;
  display: flex;
  flex-direction: column;
  justify-content: end;
}
table.chart-legend.vertical {
  margin-left: auto;
  margin-right: auto;
}

li.chart-legend-i {
  display: flex;
  align: center;
  align-items: center;
  margin: 0 1em 0 0;
  padding: 0.4em 0.8em;
}
td.chart-legend-i {
  /*display: flex;*/
  /*align:center;*/
  /*align-items: center;*/
  margin: 0 1em 0 0;
  padding: 0.4em 0.8em;
}

tr.chart-legend-i.vertical {
  align-items: end;
  align: bottom;
  margin: 0 0 0 0;
  padding: 0.4em 0.8em;
}
.chart-legend-i-color {
  width: 1em;
  height: 1em;
  border-radius: 0.5em;
  border: solid 0.1rem black;
  display: inline-block;
  text-align: center;
  margin: 0.5em auto;
  box-shadow: 0 0 0.4em #fff;
}

.chart-legend-i-label {
  font-weight: 500;
  padding: 0 0 0 0.5em;
  color: light-dark(#3a3a3a, #d4d4d4);
}
.with-background .chart-legend-i-label {
  color: #f5f5f5;
}
.chart-legend-i-label-info {
  font-weight: 500;
  padding: 0 0 0 2em;
  color: var(--dark-grey);
}

/* ----- Tooltip ---- */

.chart-tooltip {
  background-color: var(--dark-grey);
  color: #fff;
  padding: 0.5em;
  transform-origin: bottom left;
  transform: translate(0, -100%) translateX(-30px) translateY(-20px);
  border-radius: var(--inner-border-radius);
  z-index: 100;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
}

.chart-tooltip::before {
  position: absolute;
  content: '';
  bottom: 0;
  left: 14px;
  width: 2em;
  height: 2em;
  border-radius: var(--inner-border-radius);
  background: linear-gradient(
    -45deg,
    var(--dark-grey) 50%,
    rgba(0, 0, 0, 0) 51%
  );
  transform: translateX(0%) translateY(45%) scale3d(0.6, 1, 1) rotate(45deg);
  z-index: 0;
}

.chart-tooltip-timeframe-label {
  width: 100%;
  text-align: center;
  display: block;
  font-weight: 500;
  font-size: 1em;
  opacity: 0.66;
  padding-bottom: 0.5em;
}

.chart-tooltip-line {
  display: block;
  padding: 0 0.5em 0.5em 0;
}

.chart-tooltip-line-label {
  display: block;
  font-weight: 500;
  font-size: 0.8em;
}

.chart-tooltip-line-value {
  display: block;
  font-weight: 800;
  font-size: 1.2em;
  font-family: var(--display-font);
}
.chart-tooltip-unit {
  opacity: 0.66;
  margin: 0 0 0 0.1em;
  font-weight: 500;
}

.bubble-chart {
  display: flex;
  margin-left: 30%;
  margin-top: 4em;
}
