@import 'mixins/mixins';
@import 'common/var';

$manager-ui-border: 1px solid rgb(244, 244, 244);
@include b(manager-ui) {
  min-width: 500px;
  height: 100%;
  background: #fff;
  @include e(title) {
    position: relative;
    height: 70px;
    line-height: 70px;
    padding-left: 20px;
    font-size: $--notification-title-font-size;
    @include m(tabList) {
      position: absolute;
      top: 2px;
      left: 105px;
    }
  }
  @include e(search_form) {
    border-bottom: 2px solid #379fff;
  }
  @include e(tableInfo) {
    margin: 10px;
    border: $manager-ui-border;
    border-bottom: none;
  }
  @include e(search_form tableInfo) {
    position: relative;
    font-size: $--notification-title-font-size;
  }
  @include e(searchBox) {
    padding: 10px;
    .el-row--flex{
      height: 36px;
    }
    @include m(operation) {
      .el-button {
        border-radius: 0px;
        padding: 8px 30px;
      }
      .el-button--primary{
        background-color: #4c8ae8;
        border-color: #4c8ae8;
      }
      .el-button--primary:hover{
        background: #66b1ff;
        border-color: #66b1ff;
        color: #FFFFFF;
      }
    }
    @include m((config, inputBox)) {
      display: inline-block;
    }
    @include m(config) {
      padding-left: 10px;
      .el-button {
        border-radius: 0px;
        padding: 8.8px 9px;
      }
      .el-button--info {
        color: #999;
        background-color: #fff;
        border-color: #b4b4b4;
      }
      .el-button--info:hover {
        color: #4c8ae8;
        border-color: #4c8ae8;
      }
    }
    @include m(inputBox) {
      width: 480px;
      vertical-align: bottom;
    }
    @include m(text) {
      width: 80%;
      text-align: left;
      line-height: 34px;
      padding-left: 8px;
    }
    @include m(input) {
      outline: none;
      border: 1px solid;
      border-color: #cdcdcd;
      font-size: 14px;
      color: #999;
      height: 34px;
      /* line-height: 40px; */
      background-color: #ffffff;
      // padding: 0 8px;
      position: relative;
      overflow: hidden;
      &:hover{
        border-color: #4c8ae8;
      }
      .el-button--text {
        color: #909399;
      }
      .el-button--text:hover,
      .el-button:focus {
        color: #409eff;
      }
      .el-tag + .el-tag {
        margin-left: 3px;
      }
      .el-tag:nth-child(n+3){
        visibility: hidden;
      }
      @include when(active){
        position: absolute;
        overflow: visible;
        // right: 40px;
        width: 480px;
        top: 0;
        height: auto;
        z-index: 9;
        text-align: left;
        .el-manager-ui__searchBox--inputTag{
          position: relative;
          white-space:unset
        }
        .el-tag:nth-child(n+3){
          visibility: visible;
        }
      }
    }
    @include m(inputTag) {
      position: absolute;
      right: 76px;
      left: 0;
      max-width: 400px;
      text-align: left;
      display: inline-block;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      line-height: 30px;
      padding: 0 3px;
      .el-tag {
        position: relative;
        min-width: 50px;
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .el-tag--dark {
        background-color: #e6ecf4;
        border-color: #e6ecf4;
        vertical-align: middle;
        color: #666666;
      }
      .el-tag__close {
        color: #909399;
        position: absolute;
        right: -2px;
        top: 6px;
      }
      .el-tag__close:hover {
        color: #ffffff;
        background-color: #909399;
      }
    }
    @include m(tools) {
      // float: right;
      position: absolute;
      right: 8px;
      top: -2px;
    }
  }
  @include e(searchHeader) {
    height: 43px;
    line-height: 43px;
    padding: 0 15px;
    background-color: #f6f6f6;
    border-bottom: $manager-ui-border;
    @include m(btns) {
      float: right;
      margin-top: -2px;
    }
  }
  @include e(tableBox) {
    @include m(dropdown) {
      .el-button {
        width: 100%;
      }
      .el-button + .el-button {
        margin-left: 0;
      }
      .el-button--text {
        color: #606266;
      }
      .el-button--text:hover,
      .el-button:focus {
        color: #409eff;
      }
    }
    @include m(title){
      margin-left: 5px;
      font-size: 12px;
      color: #6e859b;
    }
    @include m(tableTabs) {
      padding: 0 10px;
      border-bottom: $manager-ui-border;
      .header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        transition: all 0.6s ease;
      }
      .tableTabs__tools{
        font-size: 14px;
        color: #6e859b;
        vertical-align: middle;
        &--number{
          color: #00aaef;
        }
      }
      .el-button--text{
        font-size: 12px;
        color: #6e859b;
        .fa-icon{
          height: 14px;
          width: 14px;
          vertical-align: -3px;
        }
        &:not(:first-child)::after{
          content: '|';
          margin-left: 5px;
          color: #c9c9c9;
        }
      }
    }
    @include m(tableContent) {
      padding-bottom: 14px;
      border-bottom: $manager-ui-border;
      .el-button--text {
        color: #606266;
      }
      .el-button--text:hover,
      .el-button:focus {
        color: #409eff;
      }
      .el-table__header{
        background-color:rgb(247,248,250)
      }
      .el-table__header-wrapper{
        background-color:rgb(247,248,250)
      }
      .el-table th{
        background-color:rgb(247,248,250)
      }
    }
  }
  .el-table{
    margin-left:-1px;
    margin-right: -1px;
    border-bottom:0;
    td {
      padding: 0;
      .cell{
        font-size: 12px;
      }
    }
    th {
      padding: 2px 0;
      &>.cell{
        font-size: 14px;
        padding-left: 14px;
      }
    }
  }
  .el-pagination {
    text-align: right;
    margin:unset;
    float:unset;
    padding: 10px;
  }
  .el-columns-setting-transfer {
    .el-transfer-panel{
      border: 1px solid #ddd;
    }
    .el-button--primary.is-disabled{
      color: #333;
      background-color: unset;
      border-color: #ddd;
    }
  }
}
.el-manager-ui__searchBox--popover{
  overflow-y: auto;
  .el-form-item{
    margin-bottom: 10px;
  }
}