.@{css-prefix}progress {
  height: @progress-md-height;
  overflow: hidden;
  position: relative;
  border-radius: (@progress-md-height / 2);

  .bui-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    border-radius: (@progress-md-height / 2);
  }
  .bui-progress-innertext {
    position: absolute;
    top: 0;
    bottom: 0;
    padding: 0 12px;
    font-size: @font-size-sm;
    line-height: @line-height-sm;
    color: @progress-inner-text-color;
    text-align: right;
  }
  &:before {
    content: "";
    display: block;
    background: @progress-bg;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    border-radius: (@progress-md-height / 2);
  }
  &-default,
  &-primary {
    .bui-progress-bar {
      background-color: @primary-color;
    }
  }
  &-info {
    .bui-progress-bar {
      background-color: @info-color;
    }
  }
  &-danger {
    .bui-progress-bar {
      background-color: @danger-color;
    }
  }
  &-warning {
    .bui-progress-bar {
      background-color: @warning-color;
    }
  }
  &-success {
    .bui-progress-bar {
      background-color: @success-color;
    }
  }
  &-xs {
    height: @progress-xs-height;
  }
  &-sm {
    height: @progress-sm-height;
  }
  &-inner {
    height: @line-height-sm;
    &, &:before, .bui-progress-bar {
      border-radius: (@line-height-sm / 2);
    }
  }
}
.@{css-prefix}progress-rtl {
  direction: rtl;
  .bui-progress-bar {
    left: auto;
    right: 0;
  }
  .bui-progress-innertext {
    text-align: left;
  }
  &:before {
    left: auto;
    right: 0;
  }
}
.@{css-prefix}progress-circular {
  position: relative;
  display: inline-block;
  font-size: 0;
  &.info {
    stroke: @progress-info-bg;
  }
  &.danger {
    stroke: @progress-danger-bg;
  }
  &.warning {
    stroke: @progress-warning-bg;
  }
  &.success {
    stroke: @progress-success-bg;
  }
  &-circle{
    transition: 0.2s;
    &-bg{
      stroke: @progress-circular-bg;

    }
    &-content{
      display: flex;
      justify-content: center;
      align-items: center;
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      font-size: @progress-content-font-size;
    }
  }

}
