/* reset */
body,
div,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
input,
p,
tr,
th,
td,
span,
a,
header,
footer,
i {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
}
li {
  list-style: none;
}
em,
i,
u {
  font-style: normal;
}
input {
  outline: none;
  border: none;
  background: rgba(245, 245, 245, 1);
  font-family: $--font-family;
}
input::-webkit-input-placeholder,
input::-moz-placeholder,
input:-ms-input-placeholder,
input:-moz-placeholder {
  font-size: 12px;
  font-weight: bold;
  color: $--color-text-gray-4;
}
button,
textarea {
  font-family: $--font-family;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 100%;
}
fieldset,
img {
  border: 0;
}
abbr {
  border: 0;
  font-variant: normal;
}
a {
  text-decoration: none;
  color: inherit;
  *color: $--color-text-gray-3;
}
img {
  vertical-align: middle;
}

/* common-style */
input:-webkit-autofill {
  box-shadow: 0 0 0 1000px white inset;
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus {
  box-shadow: 0 0 0 1000px white inset;
}

/* browse style */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background: transparent;
}
::-webkit-scrollbar-button {
  display: none;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: #666;
}
::-webkit-scrollbar-corner {
  background: transparent;
}
::-webkit-scrollbar-resizer {
  background: transparent;
}

body {
  font-family: $--font-family;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: $--font-size-base;
  color: $--color-text-dark-1;
}

/* part */
.part-box {
  margin-bottom: 20px;
  background-color: #fff;
  border-radius: $--border-radius;

  &-border {
    border: 1px solid $--color-border;
  }
  &-border-bold {
    border: 1px solid $--color-border-bold;
  }
  &-pad {
    padding: 20px;
  }

  &-filter {
    padding: 20px 20px 5px 20px;

    .el-form-item {
      margin-bottom: 15px;
    }
    .el-form-item__label {
      display: none;
    }
  }
  &-gray {
    background-color: $--color-text-gray-7;
  }

  &-flex {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
  }

  &-action {
    padding-bottom: 15px;
    white-space: nowrap;
    display: flex;
    align-items: flex-end;
  }
  &-tips {
    font-size: 16px;
    line-height: 25px;
    color: $--color-text-dark-1;
    margin-bottom: 15px;
  }

  &-head {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    min-height: 30px;
    margin: -10px 0 10px -10px;
    color: $--color-text-dark;

    > h3 {
      font-size: 17px;
    }
    .el-icon-question {
      margin-left: 10px;
      font-size: 16px;
      color: $--color-text-gray-5;
      cursor: pointer;

      &:hover {
        color: #fe8652;
      }
    }
  }
}
.part-title {
  font-size: 16px;
  font-weight: bold;
  padding: 15px 20px;
  line-height: 30px;
  overflow: hidden;

  h2 {
    float: left;
  }
  &-infos {
    float: right;
  }
}
.part-body {
  padding: 25px;
}
.part-page {
  margin-top: 15px;
  text-align: right;
}
.part-none {
  padding: 100px;
  font-size: 20px;
  color: $--color-text-gray-3;
  text-align: center;
}
// box-justify
.box-justify {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

// page-head
.page-head {
  margin-bottom: 20px;
  color: $--color-text-dark;
  &-flex {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
  }

  > h2 {
    font-size: 20px;
  }
  .el-icon-question {
    margin-left: 10px;
    font-size: 16px;
    color: $--color-text-gray-5;
    cursor: pointer;

    &:hover {
      color: #fe8652;
    }
  }
}

/* table */
.table {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
  text-align: left;

  &.table-white {
    background-color: #fff;
  }

  th {
    padding: 12px;
    line-height: 1.2;
    letter-spacing: 1px;
    color: $--color-text-gray-2;
    border: 1px solid $--color-border;
  }
  td {
    padding: 14px;
    line-height: 1.2;
    color: $--color-text-dark;
    border: 1px solid $--color-border;

    &.td-link {
      span {
        cursor: pointer;
        &:hover {
          color: $--color-text-gray;
        }
      }
    }
  }
  .td-th {
    font-weight: 600;
    color: $--color-text-gray;
  }

  &--border {
    border: 1px solid $--color-border;
    border-radius: 10px;
    th {
      background-color: #fcfcfd;
      border: none;
      border-bottom: 1px solid $--color-border;
    }
    td {
      border: none;
      border-bottom: 1px solid $--color-border;
    }
  }
}

/* list */
.list-lr-right {
  float: right;
  width: 300px;
}
.list-lr-left {
  margin-right: 320px;
}

.vlcode {
  height: 36px;
}
.vlcode-left {
  margin-right: 135px;
}
.vlcode-right {
  float: right;
  width: 120px;
}

// color
.color-primary {
  color: $--color-primary !important;
}
.color-success {
  color: $--color-success;
}
.color-warning {
  color: $--color-warning;
}
.color-danger {
  color: $--color-danger;
}
.color-info {
  color: $--color-text-gray-1;
}
.color-dark {
  color: $--color-dark;
}
.color-gray {
  color: $--color-text-gray;
}
.color-gray-2 {
  color: $--color-text-gray-2;
}
.color-white {
  color: #fff;
}

// text
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}
.text-prewrap {
  white-space: pre-wrap;
}

// other
.btn-danger {
  &.el-button--text:not(.is-disabled) {
    color: $--color-danger !important;

    &:hover {
      font-weight: 600;
      color: mix(#000, $--color-danger, 20%) !important;
    }
  }
  &.is-disabled {
    color: $--color-text-gray-4;
  }
}
.btn-primary {
  &.el-button--text:not(.is-disabled) {
    color: $--color-text-dark-1 !important;
    &:hover {
      font-weight: 600;
      color: $--color-primary !important;
    }
  }
}

.btn-white {
  background-color: #fff !important;
  color: #999 !important;
}
.font-bold {
  font-weight: bold;
}
.table-head-bg {
  th {
    background-color: #f6f6f6;
    color: $--color-text-gray;
  }
}

.tab-btns {
  .el-button {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;

    &:first-child {
      border-bottom-left-radius: 8px;
    }

    &:last-child {
      border-bottom-right-radius: 8px;
    }
  }

  .el-button + .el-button {
    margin-left: 10px;
  }
}

.cont-link {
  color: $--color-primary;
  cursor: pointer;
  &:hover {
    color: $--color-success;
  }
}
.ml-1 {
  margin-left: 5px;
}
.ml-2 {
  margin-left: 10px;
}
.mr-1 {
  margin-right: 5px;
}
.mr-2 {
  margin-right: 10px;
}
.mr-4 {
  margin-right: 20px;
}
.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: 5px;
}
.mb-2 {
  margin-bottom: 10px;
}
.mb-4 {
  margin-bottom: 20px;
}
.mlr-1 {
  margin-left: 5px;
  margin-right: 5px;
}
.width-full {
  width: 100%;
}
.width-400 {
  width: 400px;
}
.width-80 {
  width: 80px;
}
.width-200 {
  width: 200px;
}

// other
.tips-info {
  font-size: 14px;
  line-height: 20px;
  color: $--color-text-gray-2;
}
.tips-dark {
  color: $--color-text-gray;
}
.tips-error {
  color: $--color-danger;
}
.tips-icon {
  display: inline-block;
  vertical-align: middle;
  color: $--color-text-gray-3;
  font-size: 18px;
  margin: 0 10px;
  cursor: pointer;
}
.form-item-content {
  color: $--color-text-gray-2;
}
.inline-block {
  display: inline-block;
  vertical-align: top;
}
.custom-tree-node {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  padding-right: 8px;
}
