/* 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-placeholder;
}
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-secondary;
}
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-primary;
  background-color: $--color-background;
}

/* part */
.part-box {
  margin-bottom: 20px;
  background-color: $--color-white;
  border-radius: 20px;
  padding: 30px;
}
.part-box-border {
  border: 1px solid $--color-border;
}

.el-form.part-filter-form {
  padding: 20px 0 5px;

  /* element-ui*/
  .el-form-item {
    margin-bottom: 15px;
    border: 1px solid $--color-border-dark;
    border-radius: 5px;
    display: inline-flex;
    // overflow: hidden;
    justify-content: space-between;
    align-items: center;
    width: 260px;

    &:last-child {
      border: none;
      width: auto;
    }
  }
  .el-form-item__label {
    margin: 0;
    padding: 0 16px 0 12px;
    color: $--color-text-secondary;
    position: relative;
    white-space: nowrap;

    &::after {
      content: "";
      position: absolute;
      height: 16px;
      width: 4px;
      right: 0;
      top: 50%;
      margin-top: -8px;
      background-image: url(../images/icon-split.png);
      background-size: 100% 100%;
    }
  }
  .el-form-item__content {
    flex-grow: 2;
  }
  .el-input__inner,
  .el-select__input {
    border: none;
    padding-left: 9px;
    margin: 0;
  }
  .el-input.is-disabled {
    .el-input__inner {
      background-color: #f0f2f6;
      color: #999;
      border-radius: 0;
    }
  }
  .el-input-number--medium {
    width: 100%;
    .el-input__inner {
      padding-left: 43px;
    }
  }
}

.part-box-title {
  font-size: 20px;
  line-height: 1;
  padding-bottom: 20px;
  border-bottom: 1px solid $--color-border;
  margin: 0;
  font-weight: 500;
}
.part-box-header {
  padding-bottom: 20px;
  border-bottom: 1px solid $--color-border;
  display: flex;
  align-items: center;
  justify-content: space-between;
  .part-box-title {
    font-size: 20px;
    line-height: 1;
    margin: 0;
    padding: 0;
    border: none;
  }
}
.part-box-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid $--color-border;
  padding-top: 20px;
}
.part-page {
  margin-top: 15px;
  text-align: right;
}
.part-none {
  padding: 100px;
  font-size: 20px;
  color: #aaa;
  text-align: center;
}
// ckeditor
.ckeditor {
  line-height: 24px;
  .cke_textarea_inline {
    min-height: 36px;
    border: 1px solid $--color-border-dark;
    border-radius: 5px;
    padding: 5px 10px;
    outline: none;
    overflow: auto;
  }
  .cke_focus {
    border-color: $--color-text-secondary;
  }
  .cke_button__image {
    display: none !important;
  }
  p {
    margin: 0;
  }
}
.area-ckeditor {
  .cke_textarea_inline {
    min-height: 200px;
  }
}
// other
.btn-danger {
  &.el-button--text:not(.is-disabled) {
    color: $--color-danger !important;

    &:hover {
      color: mix(#000, $--color-danger, 20%) !important;
    }
  }
  &.is-disabled {
    color: $--color-text-placeholder;
  }
}

.box-justify {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.box-flex {
  display: flex;
  align-items: center;
}
.body-content {
  margin: 15px;
}
.padding-tb-20 {
  padding: 20px 0;
}
.padding-top-6 {
  padding-top: 6px;
}
.padding-none {
  padding: 0 !important;
}
.margin-right-5 {
  margin-right: 5px;
}
.margin-right-10 {
  margin-right: 10px;
}
.margin-left-10 {
  margin-left: 10px;
}
.margin-top-20 {
  margin-top: 20px;
}
.margin-bottom-15 {
  margin-bottom: 15px;
}
.margin-tb-20 {
  margin: 20px 0;
}
.margin-lr-10 {
  margin: 0 10px;
}
.line-seperator {
  border-bottom: 1px solid $--color-border;
  margin: 15px 0;
}
.text-center {
  text-align: center;
}
.tiny-btn {
  padding: 0;
  height: 28px;
  width: 28px;
  line-height: 28px;
  border-radius: 6px;
  border: none;
  background-color: $--color-border-dark;
  font-weight: 600;
  font-size: 14px;
}
.tips-info {
  color: $--color-text-secondary;
  min-height: 25px;
  line-height: 25px;
}
.tips-error {
  color: $--color-danger;
}
.dialog-input-width {
  width: 200px;
}
.pull_length {
  width: 180px;
}
.select_width {
  width: 150px;
}
.search_width {
  width: 150px;
}
.search_width_80px {
  width: 80px;
}
.search_width_120px {
  width: 120px;
}
.form_width {
  width: 200px;
}
.width-full {
  width: 100%;
}
.margin_top_10 {
  margin-top: 10px;
}
.margin_left_10 {
  margin-left: 10px;
}
.inline-middle {
  display: inline-block;
  vertical-align: middle;
}

.color-primary {
  color: $--color-primary;
}
.color-danger {
  color: $--color-danger;
}
