@import "../../../style/theme/default/index";
@import "../../../style/mixins/index";

@steps-prefix-cls: ~"@{idoll-prefix}-steps";

.@{steps-prefix-cls} {
  .reset-component;
  font-size: 0;
  width: 100%;
  display: flex;
}

.@{steps-prefix-cls}-item {
  position: relative;
  display: inline-block;
  vertical-align: top;
  flex: 1;
  min-height: 70px;
  overflow: hidden;
  .@{steps-prefix-cls}-finish-icon {
    color: @finish-icon-color;
  }
  .@{steps-prefix-cls}-error-icon {
    color: @error-icon-color;
  }
  &:last-child {
    flex: none;
  }

  &:last-child &-tail,
  &:last-child &-title:after {
    display: none;
  }

  &-icon,
  &-content {
    display: inline-block;
    vertical-align: top;
  }

  .@{steps-prefix-cls}  &-icon {
    border: @border-width-base @border-style-base @wait-icon-color;
    width: @steps-icon-size;
    height: @steps-icon-size;
    line-height: @steps-small-icon-size + 6;
    text-align: center;
    color: @primary-color;
    border-radius: @steps-icon-size;
    font-size: @font-size-lg;
    margin-right: @steps-dot-size;
    transition: background-color 0.3s, border-color 0.3s;
    font-family: @font-family;

    > .@{steps-prefix-cls}-icon {
      line-height: 1.2;
      top:-1px;
      position: relative;
    }
  }

  &-tail {
    position: absolute;
    left: 0;
    width: 100%;
    top: 16px;
    padding: 0 @steps-current-dot-size;

    &:after {
      content: ' ';
      display: inline-block;
      background: @border;
      height: 1px;
      border-radius: 1px;
      width: 100%;
      transition: background 0.3s;
    }
  }

  &-error {
  .@{steps-prefix-cls}-item-icon {
    border-color: @error-icon-color;
    color: @error-icon-color;
  }
 .@{steps-prefix-cls}-item-content {
  .@{steps-prefix-cls}-item-title,
  .@{steps-prefix-cls}-item-description {
    color: @error-icon-color;
  }
 }
}

  &-title {
    font-size: @font-size-lg;
    color: @text-color;
    display: inline-block;
    padding-right: @padding-md ;
    position: relative;
    line-height: @steps-icon-size;

    &:after {
      content: ' ';
      height: 1px;
      width: 9999px;
      background: @wait-icon-color;
      display: block;
      position: absolute;
      top: @steps-icon-size / 2;
      left: 100%;
    }
  }

  &-description {
    font-size: @font-size-base;
    color: @text-color-secondary;
  }

  .step-item-status(wait);
  .step-item-status(process);

  &-process &-icon {
    background: @process-icon-color;

    > .@{steps-prefix-cls}-icon {
      color: @process-icon-text-color;
    }
  }

  &-process &-title {
    font-weight: 500;
  }

  .step-item-status(finish);
  .step-item-status(error);

  &.@{steps-prefix-cls}-next-error .@{steps-prefix-cls}-item-title:after {
    background: @error-icon-color;
  }
}

.@{steps-prefix-cls}-label-vertical {
  .@{steps-prefix-cls}-title {
    font-size: @font-size-lg;
    color: @text-color;
    display: inline-block;
    padding-right: @padding-md ;
    position: relative;
    line-height: @steps-icon-size;

    &:after {
      content: ' ';
      height: 1px;
      width: 9999px;
      background: @wait-icon-color;
      display: block;
      position: absolute;
      top: @steps-icon-size / 2;
      left: 100%;
    }
  }
}

.@{steps-prefix-cls}-horizontal:not(.@{steps-prefix-cls}-label-vertical) {
  .@{steps-prefix-cls}-item {
    margin-right: @steps-current-dot-size + 6;
    white-space: nowrap;

    &:last-child {
      margin-right: 0;
    }

    &:last-child .@{steps-prefix-cls}-item-title {
      padding-right: 0;
    }

    &-tail {
      display: none;
    }

    &-description {
      max-width: @steps-description-max-width;
      white-space: normal;
    }
  }
}

.step-item-status(@status) {
  @icon-color: '@{status}-icon-color';
  @title-color: '@{status}-title-color';
  @description-color: '@{status}-description-color';
  @tail-color: '@{status}-tail-color';
  &-@{status} &-icon {
    background-color: @steps-background;
    border-color: @@icon-color;
    > .@{steps-prefix-cls}-icon {
      color: @@icon-color;
      .@{steps-prefix-cls}-icon-dot {
        background: @@icon-color;
      }
    }
  }
  &-@{status} > &-container > &-content > &-title {
    color: @@title-color;
    &::after {
      background-color: @@tail-color;
    }
  }
  &-@{status} > &-container > &-content > &-description {
    color: @@description-color;
  }
  &-@{status} > &-container > &-tail::after {
    background-color: @@tail-color;
  }
}
@import 'progress-dot';
@import 'small';
@import 'vertical';
@import 'label-placement';
@import 'custom-icon';




















