@scrollbarWidth:17px;
@headerHeight:50px;
@activeColor:#1890ff;

@borderColor:#f1f1f1;
@border:1px solid @borderColor;

@formActiveColor:#f6f7ff;

// 产品
@input_bg_color:#F5F6F6;
@disabled_bg_color:#D9D9D9;
@disabled_color:#666;

.full_width(){
  width: 100%;
}

.full_height(){
  height: 100%;
}

.full(){
  .full_width();
  .full_height();
}

.size_full(){
  .full();
}

.bg_full(){
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.flex_parent(){
  display: flex;
  flex-direction: row;
}

.flex_parent_column(){
  .flex_parent();
  flex-direction: column;
  height: 100%;
}

.flex_child(){
  flex:1;
  width: 0;
}

.flex_child_column(){
  .flex_child();
  height: 0;
  width: auto;
}

.flex_center(){
  .flex_parent();
  align-items: center;
  justify-content: center;
}

.flex_parent_wrap(){
  .flex_parent();
  flex-wrap: wrap;
}

.flex_hor_center(){
  .flex_parent();
  justify-content: center;
}

.flex_vertical_center(){
  .flex_parent();
  align-items: center;
}

.flex_column_hor_center(){
  .flex_parent_column();
  align-items: center;
}

.flex_column_vertical_center(){
  .flex_parent_column();
  justify-content: center;
}

.body_content(){
  background-color: #fff;
  border-radius: .10rem;
  overflow: auto;
  height: 100%;
}

.div_bg(){
  background:center no-repeat;
  background-size: contain;
}

.div_bg_full(){
  background-size: 100% 100%;
}

.text_ellipsis(){
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.theme_afc_input_style(){
  height: 34px;
  width: 100%;
  background: @input_bg_color;
  border: 0;
  outline: 0 !important;
  box-shadow: none !important;
  border-radius:18px;
  min-height: 32px;


  &[disabled]{
    .input_disabled_style();
  }
}

.input_style(){
  .theme_afc_input_style();
}

.input_disabled_style(){
  background-color:@disabled_bg_color;
  border-color: @disabled_bg_color;
  color:@disabled_color;
  cursor: not-allowed;
}

.pos_abs(){
  position: absolute;
  left:0;
  top: 0;
}


.pos_abs_center(){
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
}
