.customized-legend {
  padding-left: 0;
  margin: 0 !important;
  list-style: none !important;
  background-color: #FFF;
  &.horizontal {
    text-align: left;
  }
  .recharts-legend-item {
    vertical-align: middle;
    &.horizontal {
      display: inline-block;
      padding-right: 5px;
      white-space: nowrap;
      max-width: 100%;
      height: 23px;
    }
    &:not(.horizontal) {
      display: flex;
      justify-content: space-between;
      .recharts-legend-item-text {
        flex: 2;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
      }
      .recharts-legend-item-value {
        flex: 1;
      }
  }
    .recharts-legend-icon-container {
      display: inline-block;
      vertical-align: top;
      .chart-legend-icon {
        font-size: 10px;
        text-align: center;
        vertical-align: top;
      }
    }
    .recharts-legend-item-text {
      display: inline-block;
    }
    .recharts-legend-item-value {
      flex: 1;
      text-align: right;
      &.percentage {
        text-align: center;
      }
      &.minimal {
        margin-left: 6px;
        display: inline-block;
        float: none;
        vertical-align: top;
      }
    }
    .recharts-legend-item-percentage {
      padding-left: 5px;
    }
  }
}
