/*
* @subsection   Progress Bar
*/

.progress-bar-wrap{
  max-width: 100%;
  width: 210px;


  @media (min-width: $screen-xs-min) and (max-width: $screen-sm-min - 1) {
    max-width: 120px;
  }

  @media (min-width: $screen-sm-min) {
    max-width: 150px;
  }
}

.progress-bar-custom {
  position: relative;
  width: 100%;
  //margin: 23px 0;
  margin-bottom: 23px;

  .progress-bar__body {
    position: absolute;
    right: 50%;
    width: 100%;
    top: 50%;
    padding: 0;
    margin: 0;
    text-align: center;
    white-space: nowrap;
    font-family: $font-family-base;
    font-size: 43px;
    font-weight: 400;
    line-height: 1;
    color: $gray-dark;

    &:after{
      content: '%';
    }
  }

  .progress-bar__stroke,
  .progress-bar__trail{
    stroke-linejoin: round;
  }
}

.progress-bar-horizontal{
  text-align: left;
  > svg{
    margin-top: 7px;
    box-shadow: $box-shadow-key-small;
  }

  .progress-bar__body{
    width: auto!important;
    top: -5px;
    right: 0;
  }
}

.progress-bar-radial{
  position: relative;
  padding-bottom: 100%;

  > svg{
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    border-radius: 5px;
    overflow: hidden;
  }

  .progress-bar__stroke,
  .progress-bar__trail{
    stroke-location: outside;
  }

  .progress-bar__body{
    @include transform(translate(50%, -50%));
  }
}

.progress-bar-default {
  .progress-bar__stroke{
    stroke: $text-color;
  }

  .progress-bar__trail{
    stroke: rgba($text-color, 0.05);
  }
}

.progress-bar-primary {
  .progress-bar__stroke{
    stroke: $brand-primary;
  }

  .progress-bar__trail{
    stroke: rgba($text-color, 0.05);
  }
}

.progress-bar-secondary-2 {
  .progress-bar__stroke{
    stroke: $brand-danger;
  }

  .progress-bar__trail{
    stroke: rgba($text-color, 0.05);
  }
}


.progress-bar-secondary-1 {
  .progress-bar__stroke{
    stroke: $brand-primary;
  }

  .progress-bar__trail{
    stroke: rgba($text-color, 0.05);
  }
}

.progress-bar-secondary-3 {
  .progress-bar__stroke{
    stroke: $brand-success;
  }

  .progress-bar__trail{
    stroke: rgba($text-color, 0.05);
  }
}

.progress-bar-secondary-4 {
  .progress-bar__stroke{
    stroke: $brand-info;
  }

  .progress-bar__trail{
    stroke: rgba($text-color, 0.05);
  }
}


