extensions/resource-metrics/resource-metrics-extention/ui/src/Metrics/Chart/Chart.scss
.o11y_legend {
  margin: 1em 2em;
}

.chartYLabel {
  opacity: 0.6;
}

.metrics-charts__legend_wrapper {
  text-align: left;
  font-size: 0.9em;
  position: absolute;
  margin-left: 30px;
  overflow-y: scroll;
  z-index: 999;
  background-color: rgb(0, 0, 0, 0.8);
  color: #fafafa;
  font-weight: 400;
  border-radius: 6px;
  left: 5% !important;

  .legend-content {
    overflow-y: auto;
    max-height: 220px;
    padding-right: 15px;

    &::-webkit-scrollbar {
      width: 0.5em;
      height: 0.5em;
    }

    &::-webkit-scrollbar-thumb {
      background-color: rgba(255, 255, 255, 0.4);
      border-radius: 3px;

      &:hover {
        background: rgba(255, 255, 255, 0.6);
      }
    }
  }
  .l-content {
    display: flex;
    white-space: nowrap;
    .label {
    }
  }
  .metrics-charts__value {
    text-align: right;
    margin-left: auto;
    padding-left: 1em;
    white-space: nowrap !important;
    margin-top: 3px !important;
    position: relative;
  }
}

.metrics-charts__legend_wrapper {
  display: none;
  transition: 0.3s;
  padding: 0.8em 1.2em !important;
  min-width: 50%;
  left: 5% !important;
  font-size: 0.85em;
  padding: 20px;
}

div:hover > div > .metrics-charts__legend_wrapper {
  max-height: 500px;
  display: block;
}

.legendLink {
  color: #ffffff;
  cursor: pointer;
  font-weight: 400;
  &:hover {
    color: #5d9fcb;
  }
}

.metrics-charts {
  &__tooltip_text {
    display: inline-block;
    margin-right: 1em;
  }

  &__tooltip_wrapper {
    padding: 0.5em;
    text-align: left;
    font-size: 0.95em;
    clear: both;
  }

  &__tooltip_title {
    text-align: left;
    font-size: 0.8em;
    padding-bottom: 0.2em;
    text-transform: uppercase;
    color: #ddd;
  }

  &__badge {
    padding: 0.25em 0.5em 0.09em 0.5em;
    background-color: #555;
    border-radius: 100px;
    font-size: 0.8em;
    display: inline-block;
    margin: auto 0.1em;
    line-height: 1em;
    float: right;
    margin-top: 2px;
  }

  &__legend_title {
    text-transform: uppercase;
  }
}

.metrics-charts__tooltip {
  padding: 1em 1.5em;
  z-index: 990;
  font-size: 0.85em;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 4px;
  color: #fff;
  position: relative;
  transform: translate(0%, -100%);
  .label {
    font-weight: 600;
    padding-bottom: 3px;
    padding-right: 1em;
  }
  .item {
    display: flex;
    white-space: nowrap;
    .value {
      margin-left: auto;
      margin-right: 0;
      text-align: right;
      white-space: nowrap;
      padding-left: 1em;
    }
    .colorCircle {
      position: relative;
      margin-right: 0.5em;
      height: 1em;
      width: 1em;
      border-radius: 100px;
      top: 5px;
    }
  }
}

.box-arrow-top {
  margin-top: 0px;
  overflow: visible;
}

.box-arrow-top:after {
  content: " ";
  position: absolute;
  left: 40px;
  top: 0;
  transform: translateY(-99%);
  border-top: none;
  border-right: 7px solid transparent;
  border-left: 7px solid transparent;
  border-bottom: 7px solid rgba(0, 0, 0, 0.8);
}

.label-container {
  display: flex;
  align-items: center;
}

.checkbox-container {
  vertical-align: middle;
  margin-right: 5px;
}

.graph-container {
  border: 1px dashed #dee6eb;
  margin: 2px 0;
}

.chart-input-container {
  display: flex;
  font-size: 16px;
  margin-left: 50px;
  margin-top: 5px;
  letter-spacing: 0.5px;
}
