@import '../../assets/styles/colors';
@import '../../assets/styles/rsfonts';

.legend-label {
  &.legend-label--xx-small {
    font-size: 8px;
  }
  &.legend-label--x-small {
    font-size: 10px;
  }
  &.legend-label--small {
    font-size: 12px;
  }
  &.legend-label--medium {
    font-size: 14px;
  }
  &.legend-label--large {
    font-size: 16px;
  }
}
.legend-title {
  @extend .fontPoppinsSemiboldLg;
}
.legend-SubTitle {
  margin-top: 8px;
}
.legend-value {
  @extend .fontPoppinsRegularLg;
  color: $text_color;
}
.title-container {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.collarge {
  overflow-x: auto;
}
.collarge::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.collarge::-webkit-scrollbar-thumb {
  background: $primary;
  border-radius: 10px;
  width: 5px;
}

.legend-allignement {
  display: flex;
  flex-direction: row;
  justify-content: left;
}
.legend_line_border {
  border: 1px solid $grey_8;
  width: 328px;
}

.legend-container {
  overflow-y: auto;
  padding: 0px 10px;
  margin-top: -10px;
  margin-bottom: 14px;
}

.legend-subTitle {
  margin-top: 8px;
  color: $text_color;
}
.legendSubTitleValue {
  margin-left: 3px;
}
.legend-line {
  margin-top: 8px;
}
.legend-item {
  display: grid;
  grid-template-columns: 30px 130px 100px 64px;
  align-items: center;
  height: 25px;
  width: 331px;
  margin-top: 16px;
  &:hover {
    background-color: $alice_blue;
    .tooltip-msg {
      visibility: visible;
      z-index: 1000;
    }
  }

  .tooltip-msg {
    box-sizing: border-box;
    width: 321px;
    border: 1px solid $grey_3;
    white-space: normal;
    background-color: $white;
    visibility: hidden;
    z-index: 1000;
    padding: 8px 15px;
    word-break: break-all;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    box-shadow: 3px 6px 9px #00000029;
    .tooltipLabel {
      color: $text_color;
      @extend .fontPoppinsSemiboldMd;
      width: 288px;
      overflow-wrap: break-word;
    }
    .tooltipEmail {
      @extend .fontPoppinsRegularSm;
      color: $text_color;
      width: 288px;
      word-break: break-all;
    }
  }
  .legendLabelName {
    height: 25px;
    width: 167px;
    white-space: nowrap;
  }
  .label-percent {
    margin-left: 15px;
  }
}

.legend-color {
  width: 20px;
  height: 20px;
  margin-right: 5px;
  border-radius: 20px;
  text-align: left;
}
.legends-data {
  margin-left: 40px;
}

.legend-container-wrapper {
  margin-left: 100px;
  margin-top: 10px;
  position: relative;
  height: 290px;
}

//barChartStyles
.bar-chartBox {
  padding: 20px;
  display: flex;
  position: relative;
  .barchart-container {
    padding-bottom: 5px;
  }
}
.bar-colSmall {
  width: 40px;
}
.barChart-tooltip-label {
  @extend .fontPoppinsSemiboldPageSubHeader;
  color: $text_color;
}
.barChart-tooltip-text {
  @extend .fontPoppinsRegularSm;
  color: $text_color;
}
.barChart-tooltip-count {
  flex-direction: row;
}
.count-value {
  @extend .fontPoppinsRegularLg;
  color: $sky-blue;
}
.count-percent {
  @extend .fontPoppinsSemiboldLg;
  color: $sky-blue;
}
