// 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;
}

.cell {
  .el-tag {
    margin-right: 0px;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0px;
    }
  }
}

// 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;
  }
}

// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
  display: inline-flex !important;
}

.el-tree--highlight-current .el-tree-node.is-current > .el-tree-node__content {
  background-color: #4ea2ef;
  color: #fff;
}

$tblBorderColor: #bbcedd;

.el-table--border {
  border-color: $tblBorderColor;

  th {
    border-color: $tblBorderColor;
  }
  td {
    border-color: $tblBorderColor;
  }
  // td:last-child {
  //   border-right: none;
  // }
}

// .el-table__header-wrapper {
//   background-color: #4692d7;
// }

.el-table--border.el-table::before,
.el-table--border.el-table--group::after,
.el-table--border::after {
  background-color: $tblBorderColor;
}

.el-table {
  color: #444;

  thead {
    color: rgb(0, 123, 255);

    th {
      // background: #4692d7; /* fallback for old browsers */
      // background: -webkit-linear-gradient(
      //   to top,
      //   #4692d7,
      //   #4692d7,
      //   #2785da,
      //   #005db1
      // ); /* Chrome 10-25, Safari 5.1-6 */
      // background: linear-gradient(
      //   to top,
      //   #4692d7,
      //   #4692d7,
      //   #2785da,
      //   #005db1
      // ); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
      background-color: #f7f7f7 !important;
      // background-color: #006ed3;
    }
  }

  .el-button {
    margin-left: 2px;
    margin-top: 3px;
  }
}

.el-tag {
  background-color: #4ea2ef;
  border-color: #4ea2ef;
  color: #fff;
}

.el-tag.el-tag--success {
  background-color: #34bb70;
  border-color: #34bb70;
  color: #fff;
}

.el-tag.el-tag--warning {
  background-color: #ff9800;
  border-color: #ff9800;
  color: #fff;
}

.el-tag.el-tag--danger {
  background-color: #f16d6d;
  border-color: #e25a5a;
  color: #fff;
}

.el-dialog__body {
  padding: 15px 20px;
  .el-form-item {
    margin-bottom: 18px;
  }
}

.vue-treeselect .vue-treeselect__placeholder {
  color: #a8a8a8;
}

.el-date-editor .el-range-separator {
  width: 6%;
}

$inputBorderColor: #d0d0d0;
.el-input__inner {
  border-color: $inputBorderColor !important;
}

.vue-treeselect__control {
  border-color: $inputBorderColor !important;
}

.el-textarea__inner {
  border-color: $inputBorderColor !important;
}

.el-button--primary {
  border-color: #0086ff;
}
.el-button--success {
  border-color: #00bd54;
}
.el-button--danger {
  border-color: #ff6464;
}

.el-table--medium th,
.el-table--medium td {
  padding: 6px 0;
}

.el-table--small th,
.el-table--small td {
  padding: 4px 0;
}

.el-table .ascending .sort-caret.ascending {
  border-bottom-color: #086fc7;
}

.el-table .descending .sort-caret.descending {
  border-top-color: #086fc7;
}

.el-input.is-disabled .el-input__inner {
  background-color: #ffffff;
  color: #8c8c8c;
}

.el-textarea.is-disabled .el-textarea__inner {
  background-color: #ffffff;
  color: #8c8c8c;
}
