@import "./variables.scss";
@import "./mixin.scss";
@import "./transition.scss";
@import "./element-ui.scss";
@import "./sidebar.scss";
@import "./btn.scss";

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
    Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

// aside {
//   background: #eef1f6;
//   padding: 8px 24px;
//   margin-bottom: 20px;
//   border-radius: 2px;
//   display: block;
//   line-height: 32px;
//   font-size: 16px;
//   font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
//     Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
//   color: #2c3e50;
//   -webkit-font-smoothing: antialiased;
//   -moz-osx-font-smoothing: grayscale;

//   a {
//     color: #337ab7;
//     cursor: pointer;

//     &:hover {
//       color: rgb(32, 160, 255);
//     }
//   }
// }

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center;
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(
    90deg,
    rgba(32, 182, 249, 1) 0%,
    rgba(32, 182, 249, 1) 0%,
    rgba(33, 120, 241, 1) 100%,
    rgba(33, 120, 241, 1) 100%
  );

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

// 自定义全局样式
.flex-box {
  display: flex !important;
  flex-direction: row;
  align-items: center;
}

.a-link {
  color: #0081ff;
  &:hover {
    color: #0081ff;
    text-decoration: underline;
  }
}

.text-cl1 {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.text-cl2 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

ul,
li {
  list-style: none;
  padding: 0;
  margin: 0;
}

.app-container {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #f5f5f5;
  padding: 16px 24px;
  box-sizing: border-box;
  overflow: auto;
  .el-input__inner {
    border-color: #d9d9d9;
    color: #232323;
    &::placeholder {
      color: rgba(35, 35, 35, 0.4);
    }
  }
  .el-input__inner::placeholder {
    color: rgba(35, 35, 35, 0.4) !important;
  }
  .el-select .el-input .el-select__caret {
    color: #232323;
  }
  .el-cascader .el-input .el-icon-arrow-down {
    color: #232323;
  }
  .custom-money-select .el-input .el-icon-arrow-down {
    color: #232323;
    font-size: 14px;
  }
  .custom-time-select .el-input .el-icon-arrow-down {
    color: #232323;
    font-size: 14px;
  }
  .query-box {
    justify-content: space-between;
  }
  .query-params {
    .form-content-width {
      //width: 160px;
    }
    .el-form {
      &.el-form--inline .el-form-item {
        margin-right: 16px;
      }
      .el-form-item--mini.el-form-item,
      .el-form-item--small.el-form-item {
        margin-bottom: 8px;
        margin-top: 8px;
      }
    }
  }
  .query-ability {
    .total {
      display: flex !important;
      flex-direction: row;
      align-items: center;
      &:before {
        content: "";
        display: inline-block;
        width: 2px;
        height: 2px;
        background: rgba(35, 35, 35, 0.4);
        margin-right: 4px;
      }
    }
    span {
      font-size: 14px;
      color: #232323;
      line-height: initial;
      margin-left: 20px;
      cursor: pointer;
      &:hover {
        color: #0081ff;
      }
      &:first-child {
        margin-left: 0;
      }
      img {
        width: 18px;
        height: 18px;
        margin-right: 5px;
      }
    }
  }
}

.container-box {
  padding: 16px;
}

.table-item {
  width: 100%;
  .el-table {
    width: 100%;
    height: 100%;
    font-size: 14px;
    color: #232323;
    th {
      font-size: 13px !important;
      font-weight: 400 !important;
    }
    td {
      font-size: 14px;
    }
    .cell {
      padding-right: 12px;
      padding-left: 12px;
      line-height: 18px;
    }
    thead {
      color: rgba(35, 35, 35, 0.7);
    }
    .sort-caret.ascending {
      border-bottom-color: rgba(0, 129, 255, 0.5);
    }
    .ascending .sort-caret.ascending {
      border-bottom-color: #0081ff;
    }
    .sort-caret.descending {
      border-top-color: rgba(0, 129, 255, 0.5);
    }
    .descending .sort-caret.descending {
      border-top-color: #0081ff;
    }
    .el-table__header-wrapper {
      th {
        background: #f0f3fa;
      }
    }
    .el-table__fixed-header-wrapper {
      th {
        background: #f0f3fa;
      }
    }
    .is-scrolling-left + .el-table__fixed,
    .is-scrolling-middle + .el-table__fixed,
    .is-scrolling-right + .el-table__fixed {
      //box-shadow:none;
      //-webkit-box-shadow: 2px 0px 1px -2px #C3CBD5;
      box-shadow: 2px 0 8px -7px #202020;
      //border-right: 1px solid #C3CBD5;
      height: auto !important;
      bottom: 16px !important;
    }
    .el-table__body tr.current-row > td.el-table__cell {
      background: none;
    }
    .caret-wrapper {
      width: 10px;
    }
    .el-table__body-wrapper {
      &::-webkit-scrollbar {
        width: 16px; //竖轴宽度
        height: 16px; //横轴宽度
      }
      &::-webkit-scrollbar-track {
        background-color: #f3f4f5;
        border-radius: 0;
      }
      &::-webkit-scrollbar-thumb {
        background-color: rgba(98, 110, 126, 0.2);
        border: 4px solid #f3f4f5;
        border-radius: 10px;
      }
      &::-webkit-scrollbar-corner {
        background: #f3f4f5;
        /*border-left: 1px solid #E0EAF2;*/
      }
      tr {
        &.current-row > td {
          background-color: initial;
        }
        &:nth-child(2n) {
          background: #f8fbff;
        }
      }
      tr:hover > td.el-table__cell {
        background: #dcebff;
      }
    }
    .el-table__body tr.hover-row > td.el-table__cell {
      background: #dcebff;
    }
    .el-table__fixed {
      //bottom:0 !important;
      .el-table__body {
        padding-bottom: 16px;
      }
      tr:nth-child(2n) {
        background-color: #f8fbff;
      }
    }
    ::-webkit-scrollbar-track-piece {
      //滚动条凹槽的颜色，还可以设置边框属性
      background-color: #f3f4f5;
      height: 16px;
      padding: 0 4px;
    }
    //滚动条的宽度
    ::-webkit-scrollbar {
      width: 8px;
      height: 16px;
      background-color: #f3f4f5;
      border-radius: 6px;
    }
    //滚动条的滑块
    ::-webkit-scrollbar-thumb {
      border-radius: 8px;
      height: 8px;
      margin: 0 4px;
      background: rgba(98, 110, 126, 0.2);
      border: 4px solid #f3f4f5;
      &:hover {
        background: #566380;
      }
    }
    .el-scrollbar {
      height: 16px;
      .el-scrollbar__bar.is-horizontal {
        height: 8px;
      }
      .el-scrollbar__thumb {
        background: rgba(98, 110, 126, 0.4);
        &:hover {
          background: #566380;
        }
      }
    }
  }
}

// 封装组件样式
.table-list-com-ins {
  .table-item {
    .el-table {
      width: 100%;
      height: auto;
      font-size: 14px;
      color: #232323;

      .cell {
        padding-right: 12px;
        padding-left: 12px;
        line-height: 21px;
        font-size: 12px;
        font-weight: 400;
      }

      th {
        height: 40px;
        padding: 9px 0px;
        .cell {
          color: rgba(35, 35, 35, 0.8);
        }
      }

      td {
        padding: 9px 0px;
        .cell {
          color: #232323;
        }
      }

      .sort-caret.ascending {
        border-bottom-color: rgba(0, 129, 255, 0.5);
      }
      .ascending .sort-caret.ascending {
        border-bottom-color: #0081ff;
      }
      .sort-caret.descending {
        border-top-color: rgba(0, 129, 255, 0.5);
      }
      .descending .sort-caret.descending {
        border-top-color: #0081ff;
      }
      .el-table__header-wrapper {
        box-sizing: border-box;
        th {
          background: #f0f3fa;
        }
      }
      .el-table__fixed-header-wrapper {
        th {
          background: #f0f3fa;
        }
      }
      .is-scrolling-left + .el-table__fixed,
      .is-scrolling-middle + .el-table__fixed,
      .is-scrolling-right + .el-table__fixed {
        box-shadow: 2px 0 8px -7px #202020;
        height: auto !important;
        bottom: 16px !important;
      }
      .el-table__body tr.current-row > td.el-table__cell {
        background: none;
      }
      .caret-wrapper {
        width: 10px;
      }
      .el-table__body-wrapper {
        &::-webkit-scrollbar {
          width: 16px; //竖轴宽度
          height: 16px; //横轴宽度
        }
        &::-webkit-scrollbar-track {
          background-color: #f3f4f5;
          border-radius: 0;
        }
        &::-webkit-scrollbar-thumb {
          background-color: rgba(98, 110, 126, 0.2);
          border: 4px solid #f3f4f5;
          border-radius: 10px;
        }
        &::-webkit-scrollbar-corner {
          background: #f3f4f5;
          /*border-left: 1px solid #E0EAF2;*/
        }
        tr {
          &.current-row > td {
            background-color: initial;
          }
          &:nth-child(2n) {
            background: #f8fbff;
          }
        }
        tr:hover > td.el-table__cell {
          background: #dcebff;
        }
      }
      .el-table__body tr.hover-row > td.el-table__cell {
        background: #dcebff;
      }
      .el-table__fixed {
        //bottom:0 !important;
        .el-table__body {
          padding-bottom: 16px;
        }
        tr:nth-child(2n) {
          background-color: #f8fbff;
        }
      }
      ::-webkit-scrollbar-track-piece {
        //滚动条凹槽的颜色，还可以设置边框属性
        background-color: #f3f4f5;
        height: 16px;
        padding: 0 4px;
      }
      //滚动条的宽度
      ::-webkit-scrollbar {
        width: 8px;
        height: 16px;
        background-color: #f3f4f5;
        border-radius: 6px;
      }
      //滚动条的滑块
      ::-webkit-scrollbar-thumb {
        border-radius: 8px;
        height: 8px;
        margin: 0 4px;
        background: rgba(98, 110, 126, 0.2);
        border: 4px solid #f3f4f5;
        &:hover {
          background: #566380;
        }
      }
      .el-scrollbar {
        height: 16px;
        .el-scrollbar__bar.is-horizontal {
          height: 8px;
        }
        .el-scrollbar__thumb {
          background: rgba(98, 110, 126, 0.4);
          &:hover {
            background: #566380;
          }
        }
      }
    }
  }
}

.el-table__body tr.hover-row > td.el-table__cell {
  background-color: #dcebff;
}
.common-title {
  border-left: 2px solid #445781;
  padding-left: 8px;
  font-size: 16px;
  height: 16px;
  line-height: 16px;
  font-weight: 700;
  color: #232323;
}

.pagination-box {
  text-align: right;
  padding: 16px 0;
  .el-pagination {
    font-weight: normal;
    padding: 0;
    button,
    span:not([class*="suffix"]) {
      height: 24px;
      line-height: 24px;
    }
    &.is-background .btn-next,
    &.is-background .btn-prev,
    &.is-background .el-pager li {
      height: 24px;
      line-height: 24px;
      min-width: 24px;
      padding: 0 6px;
      margin: 0 4px;
      font-size: 12px;
      color: rgba(35, 35, 35, 0.7);
      background-color: #f3f4f5;
    }
    &.is-background .el-pager li:not(.disabled):hover {
      background-color: rgba(0, 129, 255, 0.3);
      color: #ffffff;
    }
    &.is-background {
      .el-pager {
        li:not(.disabled) {
          &.active {
            background-color: $systemColor;
            color: #ffffff;
          }
        }
      }
      .el-pagination__jump {
        margin-left: 8px;
        color: #3d3d3d;
        .el-input {
          font-size: 12px;
        }
        .el-pagination__editor {
          height: 24px;
          margin: 0 8px;
        }
        .el-pagination__editor.el-input .el-input__inner {
          height: 24px;
          border-color: #cdd1d9;
          border-radius: 2px;
        }
      }
    }
  }
}

.el-drawer {
  .el-drawer__header {
    padding: 16px 2px 16px 16px;
    margin-bottom: 0;
    border-bottom: 1px solid #e1e1e1;
  }
  .el-drawer__body {
    overflow-y: auto;
    &::-webkit-scrollbar {
      width: 16px; //竖轴宽度
      height: 16px; //横轴宽度
    }
    &::-webkit-scrollbar-track {
      background-color: #f3f4f5;
      border-radius: 0;
    }
    &::-webkit-scrollbar-thumb {
      background-color: rgba(98, 110, 126, 0.2);
      border: 4px solid #f3f4f5;
      border-radius: 10px;
    }
    &::-webkit-scrollbar-corner {
      background: #f3f4f5;
      /*border-left: 1px solid #E0EAF2;*/
    }
  }
}

//组件公用样式
//
// 无边框、阴影card
.el-card.noborder {
  border: 0;
  box-shadow: none;
  //margin-bottom: 12px;
  color: #232323;
  .el-card__body {
    padding: 0;
  }
}
//el-tabs
.tabpane {
  &.w100 {
    .el-tabs__nav-scroll {
      padding-left: 16px;
    }
    .el-tabs__content {
      padding: 16px;
    }
  }
  .el-tabs__header {
    margin: 0;
  }
  .el-tabs__nav-wrap::after {
    background-color: #efefef;
    height: 1px;
  }
  .el-tabs__item {
    font-size: 16px;
    color: #232323;
    line-height: 50px;
    height: 50px;
  }
  .is-active {
    color: #0081ff;
    font-weight: bold;
  }
}
.el-tabs__item.is-disabled {
  color: #c0c4cc;
  cursor: not-allowed;
}
//按钮
.btn {
  margin-left: 8px;
  border-radius: 4px;
  display: inline-block;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  &.h28 {
    height: 28px;
    padding: 0 10px;
  }
  &.h32 {
    height: 32px;
    padding: 0 16px;
  }
  &.h34 {
    width: 80px;
    height: 34px;
  }
  .img {
    height: 100%;
    float: left;
    width: 16px;
  }
}
.btnsmall {
  display: inline-block;
  font-size: 12px;
  border-radius: 2px;
  width: 72px;
  text-align: center;
  margin: 0 4px;
  cursor: pointer;
}
.btn_default {
  border: 1px solid #0081ff;
  color: #0081ff;
  background: #ffffff;
  &.h28 {
    line-height: 26px;
  }
  &.h32 {
    line-height: 30px;
  }
  &.h34 {
    line-height: 32px;
  }
  &:hover {
    color: #006ad1;
    border-color: #006ad1;
  }
}
.btn_primary {
  background-color: #0081ff;
  color: #fff;
  &.btn_disabled {
    background: #d3d3d3;
    cursor: auto;
    &:hover {
      background: #d3d3d3;
    }
  }
  &.btn_shallow {
    color: #0081ff;
    background: rgba(0, 129, 255, 0.16);
    &:hover {
      background: #0081ff;
      color: #fff;
    }
  }
  &.h28 {
    line-height: 28px;
  }
  &.h32 {
    line-height: 32px;
  }
  &.h34 {
    line-height: 34px;
  }
  &.h36 {
    line-height: 36px;
  }
  &:hover {
    background-color: #006ad1;
  }
}
.btn_cancel {
  border: 1px solid #cccccc;
  color: #4f4f4f;
  &.h28 {
    line-height: 26px;
  }
  &.h32 {
    line-height: 30px;
  }
  &.h34 {
    line-height: 32px;
  }
  &:hover {
    color: #4f4f4f;
    border-color: #cccccc;
    background-color: #f4f4f4;
  }
}

//搜索框
.searchInput {
  width: 590px;
  height: 32px;
  border-radius: 2px 0px 0px 2px;
  opacity: 1;
  border: 1px solid #efefef;
  position: relative;
  overflow: hidden;
  .el-input {
    margin-top: -1px;
    //line-height: 32px;
    .el-input__inner {
      line-height: 32px;
      height: 32px;
      border: 0;
    }
    .el-input__suffix {
      margin-top: -1px;
    }
  }
  .btn {
    background: #f5f5f5;
    color: #0081ff;
    cursor: pointer;
    width: 60px;
    line-height: 32px;
    height: 32px;
    text-align: center;
    position: absolute;
    right: 0;
    top: 0;
    border-radius: 0;
    &:hover {
      color: #ffffff;
      background: #0081ff;
    }
  }
}
//无边框搜索框
.newSearch {
  width: 238px;
  height: 32px;
  border-radius: 4px;
  .el_input {
    height: 32px !important;
  }
  .el-input__prefix {
    left: 12px;
    .el-input__icon {
      img {
        float: left;
        margin-top: 7px;
      }
    }
  }
  .el-input__inner {
    padding-left: 36px;
    border-color: #fff !important;
    height: 32px !important;
  }
}
//导出EXCEL
.btn-export {
  display: inline-block;
  color: #232323;
  font-size: 14px;
  height: 24px;
  line-height: 24px;
  cursor: pointer;
  img {
    margin-right: 5px;
    float: left;
    width: 18px;
    height: 18px;
    margin-top: 2px;
  }
  &:hover {
    color: #0081ff;
  }
}
//有链接字体颜色
.wordprimary {
  color: #0081ff;
  cursor: pointer;
}
//分割线
.el-divider--horizontal {
  margin: 0;
}
.el-divider {
  background-color: #efefef;
}

.flex {
  display: flex;
}
//消息提示框
.el-message {
  border-radius: 0;
  padding: 10px;
}
//固定列的阴影问题
.el-table__fixed {
  box-shadow: 4px 0 9px -5px rgba(0, 0, 0, 0.12);
  -webkit-box-shadow: 4px 0 9px -5px rgba(0, 0, 0, 0.12);
}
//下拉选项样式
.el-select-dropdown {
  box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.08);
  border: 0;

  .el-select-dropdown__list {
    padding: 0;

    .el-select-dropdown__item {
      padding: 0 16px;
    }
  }
}

.min1370 {
  min-width: 1370px;
}

// 重置全局 溢出弹出提示宽度

.el-tooltip__popper {
  max-width: 70%;
}
