/* reset */
body,
div,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
input,
p,
tr,
th,
td,
span,
a,
header,
footer {
  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;
  box-shadow: 100px 100px 100px #fff inset;
  font-family: "Microsoft YaHei", Tahoma, Helvetica, Arial, sans-serif;
  -webkit-appearance: none;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 100%;
  font-weight: normal;
}
fieldset,
img {
  border: 0;
}
abbr {
  border: 0;
  font-variant: normal;
}
a {
  text-decoration: none;
  color: inherit;
  *color: #999;
}
img {
  vertical-align: middle;
}
button {
  outline: 0;
}

/* 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;
}
input,
select {
  -webkit-appearance: none;
}

/* 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: @dark-color-lighter;
}
::-webkit-scrollbar-corner {
  background: transparent;
}
::-webkit-scrollbar-resizer {
  background: transparent;
}

body {
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: @font-size-base;
  color: @font-color-main;
  background-color: @background-color;
}

/* part */
.part-box {
  padding: 20px;
  margin-bottom: 20px;
  background-color: @white;
  border-radius: @box-border-radius;

  &-filter {
    padding-bottom: 10px;
  }

  .ivu-form-item-label {
    text-align: right;
  }

  &-head {
    margin-bottom: 20px;
    &::after {
      content: "";
      display: block;
      visibility: hidden;
      clear: both;
    }

    &-left {
      float: left;
    }
    &-right {
      float: right;
    }
  }
}
.part-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  height: 32px;
  line-height: 32px;
}
.part-title h2 {
  float: left;
  font-weight: 600;
}
.part-title-infos {
  float: right;
  > .ivu-btn:not(:first-child) {
    margin-left: 5px;
  }
}
.part-page {
  margin-top: 15px;
  text-align: center;
}
.part-filter {
  border-bottom: 1px dashed #e0e0e0;
  margin-bottom: 20px;
}
.part-none {
  padding: 100px;
  font-size: 20px;
  color: @dark-color-lighter;
  text-align: center;
}
.part-box-top {
  margin-bottom: 10px;
  text-align: right;
}
// page
.page {
  &-navs {
    margin-bottom: 10px;
  }
}
/* table */
.table {
  width: 100%;
  border-spacing: 0 4px;
  border-collapse: separate;
  margin-bottom: 20px;
  text-align: left;

  tr {
    background-color: @white;
    color: @dark-color-light;
    td,
    th {
      border: none;
      padding: 8px;
      line-height: 20px;
      &:first-child {
        border-radius: @box-border-radius-small 0 0 @box-border-radius-small;
      }
      &:last-child {
        border-radius: 0 @box-border-radius-small @box-border-radius-small 0;
      }
    }
    th {
      padding: 13px 8px;
      color: @dark-color;
      font-weight: 600;
    }
  }
}
.table .td-th {
  font-weight: 600;
  color: @dark-color;
}
tr.row-active td {
  color: @main-color;
}
tr.row-disabled td {
  color: @disabled-color;
}
tr.tr-tips-error td {
  padding: 2px 10px;
  font-size: 13px;
  color: @error-color;
}

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

/* user reset */
h3.account-title {
  text-align: center;
  font-weight: 600;
}
.account-form {
  width: 60%;
  min-width: 600px;
  margin: 50px auto;
}
.vlcode {
  height: 36px;
}
.vlcode-left {
  margin-right: 135px;
}
.vlcode-right {
  float: right;
  width: 120px;
}

// vue-echarts
.echarts {
  height: 100% !important;
  width: 100% !important;
}
.chart-box {
  height: 300px;
  box-shadow: 0 0 1px #e0e0e0;
  background: #fff;
  position: relative;
}
.chart-box .chart-none {
  padding-top: 150px;
  font-size: 30px;
  text-align: center;
}
.chart-box .chart-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  position: absolute;
  top: 10px;
  left: 16px;
  line-height: 30px;
  z-index: 99;
}

// other
.tips-info {
  font-size: 14px;
  height: 25px;
  line-height: 25px;
  color: @dark-color-lighter;
}
.tips-error {
  color: @error-color;
}

.text-center {
  text-align: center;
}
.btn-form-search {
  width: 60px;
}
.btn-disabled {
  cursor: not-allowed !important;
}
.color-primary {
  color: @primary-color;
}
.color-dark {
  color: @dark-color;
}
.color-error {
  color: @error-color;
}

.clear-float {
  &::after {
    content: "";
    display: block;
    clear: both;
    visibility: hidden;
  }
}

// border-randius
.border-radius {
  &-small {
    border-radius: @box-border-radius-small;
  }
  &-large {
    border-radius: @box-border-radius-large;
  }
}
