@import './variables.scss';
// 重置样式
* {
  margin: 0;
  padding: 0;
}

html,
body,
#app {
  height: 100%;
}

body {
  color: #000;
  background: #fff;
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 微软雅黑, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: none;
  font-size: 14px;
}

ol,
ul,
li {
  list-style: none;
}

/* 滑动条 */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background-color: #cccccc;
  border-radius: 8px;
}

::-webkit-scrollbar-track-piece {
  background-color: transparent;
  border-radius: 8px;
}

a:focus,
input:focus {
  outline: none;
}

/* 一些共用的样式 */
.main-container {
  height: 100%;
  overflow: hidden;
  background: #f5f6fa;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  .container-left {
    background-color: #fff;
    border-radius: 8px;
    margin-right: 16px;
    height: 100%;
    flex-shrink: 0;
    position: relative;

    .pick-left {
      position: absolute;
      width: 28px;
      height: 79px;
      right: -16px;
      top: 50%;
      margin-top: -34px;
      cursor: pointer;
    }
    .west-tree-box {
      /* 左侧树盒子 */
      width: 260px;
      height: 100%;
      // overflow-x: scroll;
      position: relative;
      transition: all 0.5s;
      .west-tree-content {
        position: absolute;
        width: 100%;
        height: 100%;
        padding: 0;
        overflow-x: hidden;
        overflow-y: auto;
        box-sizing: border-box;
      }
    }
  }
  .container-right {
    flex: 1;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;

    .container-page-hd {
      margin-bottom: 16px;
      background-color: #fff;
      border-top-left-radius: 8px;
      border-top-right-radius: 8px;

      .page-hd-others {
        padding: 0 20px;
      }
    }
    .bd {
      height: 0;
      flex: 1;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }
  }
  .pick-right {
    position: absolute;
    width: 28px;
    height: 79px;
    right: -33px;
    top: 50%;
    margin-top: -34px;
    cursor: pointer;
  }
  .hd {
    // height: 44px;
    background: #fff;
    display: flex;
    padding: 20px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f1f1f1;
    border-radius: 8px 8px 0 0;
    -webkit-border-radius: 8px 8px 0 0;
    -moz-border-radius: 8px 8px 0 0;
    -ms-border-radius: 8px 8px 0 0;
    -o-border-radius: 8px 8px 0 0;
    > h2 {
      font-size: 14px;
      margin: 0;
      color: $header-color;
      font-weight: 700;
    }
    > .hd-right {
      color: $header-color;
      display: flex;
      align-items: center;
    }
  }
  .bd {
    box-sizing: border-box;
    // 内容页的背景，内容页自己加
    // background: linear-gradient(to bottom, #f5f6fa, #fff 52px);
    // border-bottom-left-radius: 8px;
    // border-bottom-right-radius: 8px;
    .con-main {
      height: 100%;
      .con-scroll-wrapper {
        height: 100%;
        overflow: hidden;
      }
    }
    .east-content {
      /* 右侧表格内容区域盒子 */
      background-color: #fff;
      border-radius: 0px 0px 8px 8px;
      padding: 20px;
      height: 100%;
      box-sizing: border-box;
      transition: all 0.5s;
      position: relative;
      &.no-padding {
        padding: 0;
      }
    }
  }
  .tab-content-container {
    // tab的内容区域
    height: calc(100% - 64px);
    overflow: hidden;
    background: #fff;
    display: flex;
    &.no-left {
      display: block;
    }
    .west-tree-box {
      /* 左侧树盒子 */
      width: 260px;
      height: 100%;
      background: #fff;
      // border-right: 1px solid #e3e3e3;
      // overflow-x: scroll;
      position: relative;
      transition: all 0.5s;
      border-radius: 0px 0px 8px 8px;
      margin-right: 16px;
      .pick-left {
        position: absolute;
        width: 121px;
        height: 63px;
        right: -80px;
        top: 50%;
        margin-top: -32px;
        cursor: pointer;
        transform: rotate(90deg);
        z-index: 10;
      }
    }
    .east-content {
      /* 右侧表格内容区域盒子 */
      height: 100%;
      transition: all 0.5s;
      background-color: #fff;
      position: relative;
      border-radius: 0px 0px 8px 8px;
      .pick-right {
        position: absolute;
        width: 121px;
        height: 63px;
        left: -40px;
        top: 50%;
        margin-top: -32px;
        cursor: pointer;
        transform: rotate(90deg);
        z-index: 100;
      }
    }
    .tab-bd {
      /* 还是需要改成 calc计算的方式 vxe-table的max-height才会生效有滚动条*/
      height: calc(100% - 0px);
      padding: 4px 20px 10px;
      box-sizing: border-box;
      background-color: #fff;
      .tab-search {
        height: 46px;
        display: flex;
        justify-content: space-between;
      }
      .tab-main {
        height: calc(100% - 46px);
        &.footer-btns {
          height: calc(100% - 96px);
        }
        .tab-scroll-wrapper {
          height: 100%;
          overflow: hidden;
        }
      }
      .tab-footer-btns {
        padding-top: 16px;
        text-align: center;
      }
    }
  }
  .subpage-container {
    // 子页面布局
    height: 100%;
    &.no-head {
      .sub-bd {
        height: 100%;
      }
    }
    .sub-hd {
      display: flex;
      padding: 20px;
      align-items: center;
      justify-content: space-between;
      background-color: #fff;
      > h2 {
        font-size: 14px;
        margin: 0;
        color: $header-color;
        font-weight: 700;
      }
    }
    .sub-bd {
      height: calc(100% - 44px);
      box-sizing: border-box;
      background-color: #fff;
      .sub-main {
        height: calc(100% - 0px);
        .sub-scroll-wrapper {
          height: 100%;
          overflow: hidden;
        }
      }
    }
  }
  .el-textarea {
    position: relative;
    .txtCount {
      position: absolute;
      right: 10px;
      bottom: 5px;
      color: #afbacb;
    }
  }
}
.syswin-page-tabs {
  .el-tabs__header {
    margin-bottom: 0;
    .el-tabs__nav-wrap::after {
      height: 0;
    }
  }
}
.bg-white {
  background-color: #fff;
}
.page-content-bg {
  background-color: #fff;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}
.page-content-bg-linear {
  background: linear-gradient(180deg, #f5f6fa, #fff 52px);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.title-tabs,
.syswin-top-tabs {
  // 自定义的tabs
  &.el-tabs {
    height: 22px !important;
    .el-tabs__header {
      margin: 0;
      .el-tabs__active-bar {
        display: none;
      }
      .el-tabs__item {
        height: 22px;
        line-height: 22px;
        font-weight: 400;
        font-size: 16px;
        color: #333;
        position: relative;
        font-weight: 600;
        &::after {
          content: '';
          width: 1px;
          height: 12px;
          background-color: #888;
          position: absolute;
          right: 0;
          top: 5px;
        }
        &.is-active,
        &:hover {
          // font-weight: 600;
          color: $primary-color;
        }
        &:last-child::after {
          display: none;
        }
      }
      .el-tabs__nav-wrap::after {
        background-color: transparent;
      }
    }
    .el-tab-pane {
      height: 0 !important;
    }
  }
}

// 简单搜栏样式
.header-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  // padding-top: 6px;
  margin-bottom: 16px;
  .el-input-group__append {
    background-color: $primary-color !important;
    border: 1px solid $primary-color !important;
    .el-button {
      padding-left: 12px;
      padding-right: 10px;
      color: #fff;
      border-color: transparent !important;
      background-color: transparent !important;
    }
  }
  .el-input__icon {
    line-height: 32px;
  }
  .header-filter-btns {
    // min-height: 40px;
    .el-button--text {
      color: $primary-color;
    }
  }
  .el-input__inner {
    height: 32px !important;
    line-height: 32px !important;
    border-radius: 0px !important;
  }
}

.dialog-inner-content {
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 40px 20px 10px;
  position: relative;
  box-sizing: border-box;
  > h3 {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: 40px;
    line-height: 40px;
    background-color: rgba(0, 0, 0, 0.08);
    padding-left: 20px;
    color: $primary-color;
    font-weight: 600;
  }
}

.vxe-modal--wrapper.type--modal.no-body-scroll .vxe-modal--body .vxe-modal--content {
  overflow: hidden;
}

.dialog-footer-btns {
  text-align: center;
}

.accessory {
  // 上传附件的样式
  .title {
    height: 40px;
    line-height: 40px;
    .label {
      float: left;
      font-size: 14px;
      color: #777e8c;
    }
    .upload {
      float: right;
    }
  }
}

// 弹出选择窗口
.el-input-group__append.select-append {
  padding: 0 8px;
  .el-button {
    margin: 0 -8px;
    padding: 0 5px;
  }
}

/* 自定义分页样式 */
.el-pagination {
  padding: 12px 20px !important;
  background: #fff !important;
}
.el-pagination__total {
  color: #888888 !important;
}
.el-pagination__sizes,
.el-pagination__jump {
  color: #282828 !important;
}
.el-pagination.cus-pagination .el-input__inner {
  padding-left: 0px !important;
}

.cus-pagination.el-pagination span:not([class*='suffix']),
.el-pagination button {
  padding: 0 6px;
}

.cus-pagination.el-pagination.is-background .btn-prev:disabled,
.el-pagination.is-background .btn-next:disabled {
  background-color: transparent !important;
  border: 1px solid #eaedf1;
}

.el-pagination.is-background .btn-prev,
.el-pagination.is-background .btn-next,
.el-pagination.is-background .el-pager li {
  margin: 0 2px;
}

.el-pagination.is-background.cus-pagination .btn-prev,
.el-pagination.is-background.cus-pagination .btn-next {
  background-color: transparent !important;
  border: 1px solid #eaedf1;
}
.el-pagination.is-background .el-pager li:not(.disabled):hover {
  background: #eeeff3;
  color: #888888;
}
.el-pagination.is-background.cus-pagination .btn-prev,
.el-pagination.is-background.cus-pagination .btn-next,
.el-pagination.is-background.cus-pagination .el-pager li {
  background-color: transparent;
  // border: 1px solid #eaedf1;
  color: #888888;
  border-radius: 2px;
}
.el-pagination__total {
  color: #282828;
}
.el-pagination.is-background .el-pager li:not(.disabled).active {
  background: --primary-color;
}
.el-pagination.is-background.cus-pagination .el-pager li:not(.disabled).active {
  border-radius: 2px;
  border-color: transparent;
}
.el-table__fixed-footer-wrapper tbody td.el-table__cell {
  border-top: none;
}
.cus-pagination .el-pagination__jump {
  margin-left: 0;
}

.cus-pagination .el-input__inner {
  height: 28px !important;
  line-height: 28px !important;
  color: #282828;
}

// 使表格树的单元格radio不显示
.vxe-table .select-disable .vxe-cell--radio {
  &.is--disabled {
    color: #666;
  }
  padding-left: 0;
  .vxe-radio--icon {
    display: none;
  }
}

/* 对 element-ui 样式的一些扩展 及自定义样式*/

.el-button {
  .iconfont {
    // .el-button下使用iconfont图标
    font-size: 14px;
    + span {
      margin-left: 5px;
    }
  }
  + .el-dropdown {
    // 此样式主要是searchbar 右侧的下拉按钮
    margin-left: 10px;
  }
}

// 表格的操作按钮样式
.operation-a {
  color: $primary-color;
  cursor: pointer;
}

.operation-a + .operation-a {
  margin-left: 10px;
}

.search-condition-list {
  // 搜索条件的标签列表
  .el-tag {
    margin-bottom: 10px;
  }

  .tags:not(:first-child) {
    margin-left: 6px;
  }
  .tags.clearall {
    cursor: pointer;
  }
}

// 右上角的选择年份
.drop-select-year {
  position: relative;
  .el-input--prefix .el-input__inner {
    font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 微软雅黑, Arial, sans-serif;
    padding-left: 10px;
    padding-right: 10px;
    border: none;
    background: none;
    cursor: pointer;
    color: #000;
    font-weight: 600;
  }
  .el-input__inner {
    line-height: 32px;
    height: 32px;
  }
  .el-input__icon {
    width: 0;
    display: none;
  }
  .right-p {
    position: absolute;
    top: 9px;
    right: -2px;
    color: #000;
  }
}

.sy-btn-ellipsis {
  .el-button {
    outline: none !important;
    &.el-button--text {
      color: $primary-color;
    }
  }
}

.el-button.el-button--primary {
  color: #ffffff;
  background: #027aff !important;
  border-color: #027aff !important;
}
.el-button.el-button--primary:hover {
  color: #ffffff;
  background: #3595ff !important;
  border-color: #3595ff !important;
}
.el-button.el-button--primary:active,
.el-button.el-button--primary:focus {
  color: #ffffff;
  background-color: #026ee6 !important;
  border-color: #026ee6 !important;
}
.el-button.el-button--default {
  color: #535353;
  background-color: #ffffff !important;
  border-color: #dcdfe6 !important;
}
.el-button.el-button--default:hover {
  color: #3595ff;
  background: #f5faff !important;
  border-color: #3595ff !important;
}
.el-button.el-button--default:active,
.el-button.el-button--default:focus {
  color: #026ee6;
  background: #ecf6ff !important;
  border-color: #026ee6 !important;
}
