// cover some element-ui styles

.el-button {
  [class^='el-icon-'],
  [class*=' el-icon-'] {
    vertical-align: top;
  }
}

.el-input.el-input--small {
  line-height: 30px;
}

.top-search {
  .el-input,
  .el-select {
    width: 240px;
  }

  .el-date-editor--daterange.el-input__inner {
    width: 240px;
  }
}

.el-tag + .el-tag {
  margin-right: 10px;
}
.el-tag:nth-of-type(2) {
  margin-left: 10px;
}

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

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

.el-upload__input {
  display: none;
}

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

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

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

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

.el-table {
  background-color: transparent;
}
.el-table__body {
  border-spacing: 0 10px;
}
.el-table .el-table__header-wrapper th,
.el-table .el-table__fixed-header-wrapper th,
.el-table .el-table__header-wrapper tr {
  background-color: transparent !important;
}
.el-table .el-table__body-wrapper tr {
  box-shadow: 0px 0px 5px 0px rgba(195, 195, 195, 0.35);
  height: 50px;
}
.el-table th.is-leaf,
.el-table td {
  border-bottom: 0;
}
.el-table tr td {
  &:first-child,
  &:last-child {
    border-radius: 4px;
  }
}

.el-form-item {
  margin: 0 !important;
  padding: 10px;
  &:hover {
    background: #e5f1fc;
    border-radius: 10px;
  }
}
