@import "ladder-base";
@flow-line-color:#dfdfe8;
@flow-node-color:@ladder-background-base;
@flow-background-color:#F5F5F7;
html,body{
  height: 100%;
  background-color:@flow-background-color ;
}
.layui-layer-title{
  border-bottom: none!important;
  background-color:#fff!important;
  font-weight:700!important;
}

.ladder-flowinfoheader{
   height: @height-outer+8;
   background-color: @ladder-background-base;
   line-height: @height-outer+8;
   position: fixed;
   top: 0;
   width: 100%;
   z-index: 1002551;
   .ladder-flowinfo{
     padding-left: 10px;
     line-height: @height-outer+8;
     height: @height-outer+8;
     float: left;
     cursor: pointer;
   }
  .ladder-flowinfo input{
    height: @height-outer;
    border: none;
    border-bottom: 1px solid @flow-line-color;
    background-color: transparent;
    outline: none;
    font-size: @font-big;
    color: #fff;
    padding-left: 5px;
    width: auto;
  }
  .ladder-flowinfo .ladderfont{
    font-size: 24px;
    color: @color-base;
    position: relative;
    top: 5px;
    transition: all @transition-time-base linear;
  }
  .ladder-flowinfo .ladderfont:hover{
    color: #fff;
    font-weight: 500;
  }
}



.LadderWorkFlow{
  text-align: center;
  background-color: @flow-background-color;
  font: @font;
  .ladder-flowview{
    height: 100%;
    width: auto;
    display: inline-flex;
    flex-direction:column;
    align-items:center;
    margin: 0 auto;
    text-align: center;
  }
  .ladder-flowview *{
    box-sizing: border-box;
  }
  .flow-row{
    clear: both;
    width: auto;
    transition: all @transition-time-base linear;
  }
  .flow-group{
    display: inline-flex;
    flex-direction:row;
    border-bottom: 2px solid @flow-line-color;
    border-top: 2px solid @flow-line-color;
    position: relative;
    z-index: 3;
    background-color: @flow-background-color;
    transition: all @transition-time-base;
  }
  .flow-group>.flow-unit{
    padding-left: 50px;
    padding-right:  50px;
  }
  .flow-group>.flow-unit:nth-child(2)::before{
    position: absolute;
    content: "";
    background-color: @flow-background-color;
    top: -2px;
    left: -2px;
    bottom: -2px;
    width: 50%;
    z-index: 1;
  }
  .flow-group>.flow-unit:last-child:after{
    position: absolute;
    content: "";
    background-color: @flow-background-color;
    top: -2px;
    right: -2px;
    bottom: -2px;
    width: 50%;
    z-index: 1;
  }
  .flow-unit{
    position: relative;
    z-index: 2;
    padding: 20px 0px 0 0px;
    text-align: center;
    min-height: 200px;
    transition: all @transition-time-base;
  }
  .flow-addsibling{
    position: absolute;
    left: 50%;
    color: #cc8c62;
    font-size: 24px!important;
    margin-left: -12px;
    margin-top: -7px;
    z-index: 3;
    cursor: pointer;
    background-color: @flow-background-color;
  }
  .flow-addsibling:before{
    content: "\e86d";
  }
  .flow-unit .flow-line{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 2px;
    height: 100%;
    background-color: @flow-line-color;
    z-index: 2;
  }
  .flow-line>.flow-add,.flow-midline>.flow-add{
    position: absolute;
    font-size: 24px;
    color: #cc8c62;
    bottom: 18px;
    left: -11px;
    z-index: 3;
    cursor: pointer;
    background-color: @flow-background-color;
  }
  .flow-add:before{
    content: "\e645";
  }
  .flow-midline{
    width: 2px;
    height: 60px;
    background-color: @flow-line-color;
    margin: 0 auto;
    position: relative;
  }
  .flow-midline>.flow-add{
    bottom: 20px;
  }
  .flow-end{
    min-height: 100px;
    padding-top: 0;

  }
  .flow-start{
    padding-top: 0;
    margin-top: 30px;
  }
  .flow-end .flow-node{
    height: 50px;
    line-height: 50px;
    color: #fff;
    //background-color: #0a001f;
    background-color: #314e6f;
  }
}




.LadderWorkFlow .flow-node{
  width: 250px;
  height: 120px;
  background-color: #fff;
  margin: 0 auto;
  position: relative;
  border-radius: 4px;
  transition: all @transition-time-base linear;
  z-index: 100;
  font: @font;
  .shadow-base(2px);
  //box-shadow: 10px 10px 5px #888888;
  //border: 1px solid @background-light;
  cursor: pointer;
  .flow-node-header{
      height:@height-outer;
      //line-height: @height-outer;
      text-align: left;
      padding-left: 5px;
      background-color: @background-gray;
      position: relative;
    .flow-node-title{
      height:@height-outer;
      line-height: @height-outer;
      //font-weight: bolder;
      color: #fff;
      position: relative;
      margin-left: 30px;
    }
    .flow-node-title:before{
      position: absolute;
      content: '\e855';
      left: -25px;
      top: 13px;
      font-family: @icon-font-name;
      font-size:20px;
      line-height: 20px;
    }
    .flow-node-remove{
      position: absolute;
      right: 12px;
      top: 12px;
      color: #fff;
      //font-weight: bolder;
      transition: all @transition-time-base linear;
      opacity: 0.6;
    }
    .flow-node-remove:hover{
      //color: #fff;
      font-weight: bolder;
      opacity: 1;
    }
  }

  .flow-node-body{
      height: 45px;
      line-height: 45px;
      border-bottom: 1px solid #eee;
      margin: 5px;
      overflow: hidden;
      .flow-member-list{
        padding: 0;

      }
  }
  .flow-node-foot{
    height: @height-base;
    text-align: left;
    padding: 0 5px;
    color: @color-lighter;
    position: absolute;
    bottom: 0;
    left: 0;
    .flow-node-field{
        width: 60px;
        height: @height-base;
        text-align: center;
        transition: all @transition-time-base linear;
        font-size: 16px;
    }
    .flow-node-field:hover{
      color: @color-base;
      font-weight: 800;
    }
    .ladderfont{
      position: absolute;
      top: 12px;
      left: 8px;
      line-height: 20px;
      font-size: 20px;
    }
    .node-fieldcount{
      position: absolute;
      left: 30px;
      top: 10px;
    }
  }

}
.LadderWorkFlow .flow-node>.flow-node-header[data-type='write'],
.LadderWorkFlow .flow-node>.flow-node-header[data-type='start']{
  //background-color: #354C66;
  background-color: #5f7c9c;
  .flow-node-title:before{
    content: '\e855';
  }
}
.LadderWorkFlow .flow-node>.flow-node-header[data-type='approve']{
  background-color: #F7AE3B;
  .flow-node-title:before{
    content: '\e8d7';
    font-size: 17px;
    top: 10px;
    left: -24px;
  }
}

.LadderWorkFlow-Settings{
   height: 100%;
  .flow-settings-header{
      height: @height-outer;
      line-height: @height-outer;
      background-color: #F7AE3B;
      .flow-settings-name input{
        border: none;
        height: @height-base;
        line-height: @height-base;
        font-size: @font-big;
        padding-left: 10px;
        background-color: transparent;
        color: #fff;
        outline: none;
        border-bottom: 2px outset #fff;
        width: 300px;
      }
      .flow-settings-name span{
        font-size: @font-normal;
        color: @color-white;
        padding:0 15px;
        position: relative;
      }
      .flow-settings-name span:after{
        position: absolute;
        right: -12px;
        top: -6px;
        color: #fff;
        /* font-weight: bolder; */
        font-family: @icon-font-name;
        content: "\e855";
        font-size: 20px;
      }
      .flow-settings-name,.flow-settings-type{
        height: @height-outer;
        line-height: @height-outer;
      }
      .flow-settings-type{
        position: absolute;
        right: 100px;
        cursor: pointer;
        width: 120px;
        .flow-settings-type-show{
          height: @height-outer;
          line-height: @height-outer;
          color: #fff;
          font-size:@font-normal;
          position: relative;
          width: 100px;
          &:after{
            position: absolute;
            content: "\e97c";
            top: 3px;
            right: 0px;
            height: 35px;
            font-family: @icon-font-name;
          }
        }
        .flow-settings-type-list{
            z-index: 1000;
            list-style: none;
            padding: 5px;
            position: absolute;
            left: -100px;
            background-color: #fff;
            border: 1px solid #ddd;
            box-shadow:10px 10px 10px #ccc;
        }
        .flow-settings-type-list li{
           height: 50px;
           line-height: 50px;
           width: 250px;
           padding: 5px 0 0 5px;
           color:@color-white;
           margin-bottom:3px;
           :first-child{
             font-size: 16px;
             font-weight: bolder;
             padding-top: 5px;
           }
        }

      }
      .flow-settings-remove{
        position: absolute;
        right: 10px;
        top: 13px;
        padding: 4px 6px;
        font-size: @font-big;
        color: @color-white;
        cursor: pointer;
        transition: all @transition-time-base;
        border-left: 1px solid #fff;
        //padding-left: 10px;
        height: 16px;
        opacity: 0.6;
        line-height: 20px;
      }
      .flow-settings-remove:hover{
         opacity: 1;
         //font-weight: bold;
      }

  }
  .flow-settings-approve-type{
    //border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
    height: @height-base;
    line-height: @height-base;
    margin-top: 5px;
  }
  [data-type='start'],[data-type='write']{
    //background-color: #354C66;
    background-color: #5f7c9c;
  }
  [data-type='approve']{
    background-color: #F7AE3B;
  }
  [data-type='cc']{
    background-color: #bbb;
  }
  [data-type='link']{
    background: #6087f3;
    //background-color: rgba(29, 0, 113, 0.98);
  }

  .viewTab{
    height: 50px;
    line-height: 50px;
    //border-bottom: 3px solid #ddd;
    .shadow-base(2px);
    li{
      font-size: @font-base;
      padding: 0 30px;
      height: 50px;
      line-height: 50px;
    }
  }

  .flow-settings-base-row{
    height: 60px;
    line-height: 60px;
    color: #888;
    position: relative;
    margin: 10px;
    border-bottom: 1px solid #ddd;
  }
  .settings-caption{
    margin: 4px 0px;
    font-size: @font-normal;
    position: relative;
    font-weight: bold;
    &:after{
      position: absolute;
      content:attr(data-icon);
      top: 0;
      left: 0;
    }
  }
  .settings-descr{
    font-size: @font-small;
  }
  .settings-switch{
    float: right;
    margin-right: 20px;
    height: 60px;
    line-height: 60px;
    input{
      margin: 0 10px;
    }
  }

}


.LadderWorkFlow-Settings>.flow-settings-condition{
  .flow-settings-condition-addAndBtn{
    margin-left: 15px;
    border-color: @border-color-origin;
  }
  .flow-settings-condition-addOrBtn{
    margin-left: 10px;
    margin-top: 5px;
    border-color: @color-green;
  }
  .flow-settings-condition-block{
    background-color: #F4F5F5;
    margin: 10px 5px;
    padding-bottom: 10px;
  }
  .flow-settings-condition-block li{
    padding: 5px 10px;
    position: relative;
    *{
      outline-width: 1px;
      outline-color: #ddd;
      cursor: pointer;
    }
    select{
      height: @height-base;
      line-height: @height-base;
      width: 100%;
      padding-left: 5px;
    }
    .flow-settings-condition-fieldname{
      display: inline-block;
      height: @height-outer;
      margin-right: 5px;
      width: 150px;
    }
    .flow-settings-condition-op{
      display: inline-block;
      height: @height-outer;
      margin-right: 5px;
      width: 50px;
    }
    .flow-settings-condition-input{
      display: inline-block;
      height: @height-outer;
      input{
        height: @height-base;
        line-height: @height-base;
        width: 250px;
        padding-left: 5px;
      }
    }
    .ladderfont{
      position: relative;
      top: 5px;
      font-size: 24px;
      left: 5px;
      color: #ccc;
      &:hover{
        color: #999;
        font-weight: bolder;
      }
    }
  }
}
.LadderWorkFlow-Settings>.flow-settings-columns{
  .flow-settings-columns-all{
    padding: 10px;
    background-color: #F4F5F5;
    height: @height-outer;
    line-height: @height-outer;
    .flow-settings-columns-all-title{
      float: right;
      font-weight: bolder;
      color: @color-lighter;
      height: @height-outer;
      font-size: @font-normal;
      margin-right: 10px;
      line-height: @height-outer;
    }
  }
  .flow-settings-columns-field{
    display: inline-block;
    float: left;
    height: @height-outer;
    line-height: @height-outer;
    font-weight: bolder;
    color: @color-base;
  }
  .flow-settings-columns-option{
    float: right;
    display: inline-block;
    height: @height-outer;
    line-height: @height-outer;
    input{
      margin-left: 5px;
      margin-right: 10px;
    }
  }
  .flow-settings-columns-block li{
    height: @height-outer;
    line-height: @height-outer;
    padding: 0 10px;
    border-bottom: 1px solid #eee;
  }

}
.flow-member-list{
  padding: 5px 0 5px 0;
  width: auto;
  display: inline-block;
  li{
    width: 0;
    height: 0;
    color: @color-base;
    background-color: @color-base;
    border-radius: 20px;
    border: 20px solid @ladder-background-base;
    display: inline-block;
    margin-right: 5px;
    position: relative;
    cursor: pointer;
    line-height: 40px;
    &:after{
      top: -19px;
      font-size: @font-normal;
      left: -9px;
      position: absolute;
      content:attr(firstname);
      color: #fff;
    }
  }
}
.flow-member-add{
  width: 40px;
  height: 40px;
  display: inline-block;
  border-radius: 20px;
  margin-left: 5px;
  border: 1px solid @border-color-origin;
  position: relative;
  transition: all @transition-time-base linear;
  /* box-shadow: 0px 2px 7px #adadad; */
  cursor: pointer;
  background: #fff;
  &:after{
    font-size: 21px;
    top: 8px;
    left: 10px;
    content: "\e627";
    position: absolute;
    font-family: @icon-font-name;
    color: @border-color-origin;
  }
  &:hover{
    //border-color: @background-light;
    //font-weight: 800;
    background: @border-color-origin;
    &:after{
      color: #fff;
    }
  }
}


