@import '../_variables';
@import '../_mixins';

.@{prefix}bar-stack-chart-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  .@{prefix}bar-stack-chart-title {
    font-size: 14px;
    font-weight: 600;
  }

  .@{prefix}bar-stack-chart-total {
    font-size: 28px;
    line-height: 36px;
  }

  .@{prefix}bar-stack-chart-top {
    display: inline-flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
  }

  .@{prefix}bar-stack-chart-norm-wrapper {
    display: inline-flex;
    flex-direction: column;

    .@{prefix}bar-stack-chart-norm {
      display: inline-flex;
      align-items: center;
      justify-content: space-between;
      font-size: 12px;
      line-height: 20px;

      &:last-child {
        margin-bottom: 0 !important;
      }
    }

    .@{prefix}bar-stack-chart-norm-label > div {
      display: inline-flex;
      align-items: center;
    }

    .@{prefix}bar-stack-chart-norm-label-dot {
      display: inline-block;
      margin-right: 6px;
      width: 6px;
      height: 6px;
      border-radius: 50%;
    }
  }

  .@{prefix}bar-stack-chart-bar {
    position: relative;
    display: inline-flex;
    overflow: hidden;
    align-items: center;
    justify-content: flex-start;

    .@{prefix}bar-stack-chart-bar-inner {
      height: 100%;
    }
  }
}