// cover some element-ui styles

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}


// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block
  }
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}

// 对话框

.el-dialog {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  width: 90%;
  height: auto;
  max-height: 90%;
  border-radius: 4px;
  position: absolute;
  top:50%;
  left: 50%;
  margin: 0 !important;
  transform: translate(-50%, -50%);
  .el-dialog__header{
    padding: 15px;
    margin-bottom: 0;
    border-bottom: 1px solid #ddd;
    .el-dialog__title{
      font-size: 14px;
      font-weight: bold;
    }
    .el-dialog__headerbtn{
      font-weight: normal;
      //display: none;
    }
  }
  .el-dialog__body{
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: hidden;
    padding: 0;
    .el-dialog__condition{
      padding: 15px 20px;
      border-bottom: 1px solid #ddd;
    }
    .el-dialog__content{
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow-y: auto;
      padding: 15px 20px 15px;
      .el-table__body-wrapper{
        margin-bottom: 0 !important;
      }
    }
    .el-divider{
      margin: 0 0 15px;
    }
    .el-dialog__footer{
      padding: 15px 0;
      text-align: center;
    }
    .el-dialog__content-only-table{
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow-y: hidden;
      padding: 0;
      .el-table__body-wrapper{
        margin-bottom: 0 !important;
      }
    }
    .el-dialog__footer-only-table{
      padding: 15px 0;
      text-align: center;
      border-top: none;
    }
  }
  .el-dialog__footer{
    border-top: 1px solid #ddd;
    padding: 15px 20px 15px;
    position: relative;
  }
}

.el-tabs {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: hidden;
  height: 100%;
  border: none;
  //tabͷ
  .el-tabs__header {
    background-color: #FFF;
    margin: 0;
    .el-tabs__nav-wrap {
      padding-left: 10px;
    }
    .el-tabs__item{
      // min-width: 100px;
      padding: 0 10px;
      text-align: center;
    }
  }
  .el-tabs__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: hidden;
    padding: 0px !important;
    height: 100%;
    .el-tab-pane {
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow-y: hidden;
      height: 100%;
    }
  }
}
