@import 'element-variables.scss';

/* 改变 icon 字体路径变量，必需 */
$--font-path: '~element-ui/lib/theme-chalk/fonts';

@import '~element-ui/packages/theme-chalk/src/index';
@import '../icon/iconfont.css';

@font-face {
  font-family: 'electronicFont';
  src: url('../fonts/CursedTimerUlil-Aznm.ttf');
}

//弹窗样式
.manage-dialog__wrap {
  overflow: unset !important;

  .el-dialog {
    width: 70%;
    height: 72%;

    .el-dialog__header {
      padding: 10px 0;
      margin: 0 20px;
      // height: 24px;
      // line-height: 24px;
      border-bottom: 1px solid #ebeef5;
    }

    .el-dialog__title {
      font-size: 16px;
      color: #333;
    }

    .el-dialog__headerbtn {
      top: 14px;
    }

    .el-dialog__body {
      height: calc(100% - 120px);
      padding-top: 10px;
      padding-bottom: 10px;
      overflow: auto;
      font-size: 12px;

      .el-main {
        padding-top: 0;
        padding-bottom: 0;
      }
    }

    .el-input__inner {
      font-size: 12px;
    }
  }

  .el-dialog__footer {
    padding-top: 0;
  }

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

.manage-dialog__wrap {
  @media (max-width: 1024px) {
    .el-dialog {
      width: 100%;
      height: 90%;
      margin-top: 4vh !important;
    }
  }

  @media (min-width: 1152px) and (max-width: 1400px) {
    .el-dialog {
      width: 90%;
    }
  }
}

// htTable顶部按钮样式
.search-container__col {
  // .el-button-group{
  //   width: calc(100% - 360px);
  // }
}

.el-button--mini {
  padding: 8px 15px !important;
}

.el-button--text {
  padding: 0 5px !important;
}

.ht-table {
  .el-radio {
    .el-radio__label {
      display: none;
    }
  }
}

// 树+表格的边框缩小
.main-ht-table {
  padding: 10px !important;
}

.tooltip-wrapper {
  position: relative;
  display: inline-block;
  padding: 4px 6px;
  top: 10px;
}

.tooltip-wrapper::before {
  content: '';
  position: absolute;
  border-width: 4px 6px 0 6px;
  border-style: solid;
  border-color: transparent;
  border-top-color: black;
  opacity: 0;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.tooltip-wrapper:hover > .msg-log-content {
  opacity: 1;
  position: static;
  display: inline-block;
}

.msg-log-icon {
  position: relative;
  top: -10px;
}

.msg-log-icon:hover + .msg-log-content {
  opacity: 1;
  position: static;
  display: inline-block;
}

.msg-log-content {
  position: absolute;
  background: black;
  text-align: center;
  color: #fff;
  border-radius: 5px;
  padding: 4px 2px;
  min-width: 80px;
  pointer-events: auto;
  opacity: 0;
  left: 50%;
  top: -5px;
  transform: translateX(-50%) translateY(-100%);
}

.tooltip-wrapper:hover::after,
.tooltip-wrapper:hover::before {
  opacity: 1;
}

/* 右侧 */
.tooltip-wrapper:hover[position='right']::before {
  top: 15%;
  left: 8%;
  margin-left: -3px;
  transform: translateY(-50%) rotate(-90deg);
}

.tooltip-wrapper[position='right'] > .msg-log-content {
  top: 50%;
  left: 100%;
  margin-left: 10px;
  transform: translateY(-50%);
}

// 导出按钮的间距
.export-import-container + .export-import-container,
.export-import-container + .el-button,
.el-button + .export-import-container,
.ht-delete-button + .export-import-container {
  margin-left: 10px;
}

/* 设置滚动条的样式  background-color: #0f3a5c;*/
::-webkit-scrollbar {
  width: 10px !important;
  height: 10px !important;
  background-color: #e0e0e0;
  border-radius: 2px;
}

/* 滚动槽 */
::-webkit-scrollbar-track {
  border-radius: 6px;
  background-color: #e0e0e0 !important;
}

/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
  border-radius: 6px;
  background-color: #d1d1d1;
}

html {
  font-family: Metropolis, Avenir Next, Helvetica Neue, Arial, sans-serif;
}

.bbsl-common-page {
  height: 100%;
}

.bbsl-table-search {
  padding: 20px 20px 0 20px;
  background-color: #fff;
  box-shadow: 0px 0px 12px 0 rgba($color: #000000, $alpha: 0.1);
  position: relative;
}

.bbsl-search-more {
  width: calc(50% + 40px);
  padding: 20px 20px 0 20px;
  background-color: #fff;
  box-shadow: 0px 4px 6px 0 rgba($color: #000000, $alpha: 0.1);
  position: absolute;
  z-index: 999;
  right: 0;
  top: 66px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.bbsl-table-content {
  height: calc(100% - 106px);
  margin-top: 10px;
  padding: 20px 20px;
  background-color: #fff;
  box-shadow: 0px 0px 12px 0 rgba($color: #000000, $alpha: 0.1);
  position: relative;
}

.bbsl-btn-content {
  margin-bottom: 10px;
}

.bbsl-pagination {
  // position: absolute;
  // right   : 10PX;
  // bottom  : 10PX;
}

.el-table thead tr,
.el-table thead tr th {
  background-color: #f7f7f7 !important;
}

.el-table td.el-table__cell {
  padding: 13px 0;
}

.el-table--mini th {
  height: 46px;
}

.el-table--mini td {
  height: 41px !important;
  padding-top: 0;
  padding-bottom: 0;
}

.el-table th > .cell {
  font-size: 14px;
  font-weight: bold;
  color: #3c4353;
}

.el-table td > .cell {
  font-size: 14px;
  color: #606266;
}

.el-table--border th,
.el-table--border td {
  // border-right: 1px solid #fff !important;
}

.el-table ::-webkit-scrollbar {
  width: 18px;
  height: 18px;
  background-color: #f6f6f6;
}

.el-table ::-webkit-scrollbar-corner {
  background: #f6f6f6;
}

// // /*定义滚动条轨道 内阴影+圆角*/
// .el-table ::-webkit-scrollbar-track {
//   background: #f6f6f6;
//   border-radius: 2px;
// }
// // /*定义滑块 内阴影+圆角*/
// .el-table ::-webkit-scrollbar-thumb {
//   background: #cdcdcd;
//   border-radius: 2px;
// }

/* 层级 */
.v-modal {
  z-index: 11 !important;
}

/* tab */
.el-tabs {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  //background-color: #fff;
  &.el-tabs--top {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    .el-tabs__content {
      flex: 1;
      overflow: hidden;
      .el-tab-pane {
        height: 100%;
      }
    }
  }
  .el-tabs__header.is-top {
    background: #fff;
    padding: 0 15px 15px 15px;
    border-radius: 4px;
    margin: 0 0 11px;
  }
}

.el-tabs__content {
  width: 100%;
  height: 100%;
}

/* 穿梭框 */
.el-transfer {
  height: 100% !important;
  display: flex;
}

.el-transfer-panel__body {
  height: 100% !important;
}

.el-transfer-panel {
  flex: 1 !important;
  height: 100% !important;
}

// .el-checkbox-group {
//   height: 458px !important;
// }

.el-transfer__buttons {
  width: 10% !important;
  line-height: 584px !important;
}

.el-tree {
  border-right: 1px solid rgb(238, 237, 237);
  border-left: 1px solid rgb(238, 237, 237);
  border-bottom: 1px solid rgb(238, 237, 237);
}

.el-form {
  .el-form-item__content {
    .el-select {
      width: 100%;
    }
  }
}

/* 公用新增修改框分割线 */
.from-title {
  width: 100%;
  height: 30px;
  line-height: 30px;
  color: #409eff;

  span {
    font-size: 16px !important;
    font-weight: 700;
    vertical-align: middle;
  }

  i {
    margin-right: 6px;
    font-size: 16px !important;
    vertical-align: middle;
  }
}

.bbsl-location-dialog {
  .el-dialog__body {
    padding: 10px 20px;
  }
}

.bbsl-tab {
  .el-tabs__item {
    padding: 0 16px !important;
  }
}

.bbsl-scroll-pane {
  display: flex;
  position: relative;

  .bbsl-scroll-step {
    width: 200px;
    height: 300px;
    position: relative;

    .hidden-item {
      position: absolute;
      z-index: 3;
      width: 100%;
      height: 28px;
      border: 1px solid rgb(112, 65, 65);
    }
  }

  .bbsl-scroll-form {
    // 如果要加左边步骤条
    // width        : calc(100% - 220px);
    // 如果要加左边步骤条
    width: calc(100% - 20px);
    height: calc(95vh - 300px);
    overflow-y: auto;
    padding: 0 10px;
  }

  .el-scrollbar .el-scrollbar__wrap {
    overflow-x: hidden !important;
  }

  .el-step.is-vertical .el-step__main {
    padding-left: 2px;
  }

  .el-step__icon-inner[class*='el-icon']:not(.is-status) {
    font-size: 16px;
  }

  .el-step__title {
    font-size: 14px;
  }
}

.el-dropdown {
  .el-button-group {
    .el-button {
      background: transparent !important;
      border-color: #dcdfe6 !important;
      color: $--biz-text-color;
    }

    &:hover {
      .el-button {
        border-color: $--biz-main-color !important;
        color: $--biz-main-color;
      }
    }

    .el-dropdown__caret-button {
      padding-left: 5px !important;
      padding-right: 5px !important;
    }
  }
}

.el-page-header__title,
.el-page-header__content {
  display: flex;
  align-items: center;
}

.el-radio-button {
  margin-right: 10px;
  .el-radio-button__inner {
    border-radius: 4px;
    border: 1px solid #dcdfe6;
  }
  &:last-child {
    margin: 0;
  }

  &:last-child,
  &:first-child {
    .el-radio-button__inner {
      border-radius: 4px;
    }
  }
}

.el-button--text:hover,
.el-button--text:focus {
  color: inherit;
  opacity: 0.6;
}
.el-form {
  .el-divider--horizontal:first-child {
    margin-top: 20px;
  }
  .el-divider--horizontal {
    margin: 28px 0;
  }
  .el-divider__text {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    i[class^='el-icon-'] {
      font-size: 16px !important;
    }
    .divider-top {
      color: rgb(24, 144, 255);
      font-weight: bold;
      font-size: 16px;
    }
  }
}

.el-input-group__append {
  //border-top-left-radius: 0;
  //border-bottom-left-radius: 0;
  background: #1e80ff;
  color: #fff;
  border: 1px solid #1e80ff;
  //padding: 5px 10px;
  button.el-button {
    font-size: 12px !important;
  }
}

::v-deep {
  .el-table {
    .el-table__body-wrapper::-webkit-scrollbar {
      width: 12px;
      height: 10px;
    }
    .el-table__body-wrapper::-webkit-scrollbar-thnmb {
      background-color: #ccc !important;
      border-radius: 5px;
    }

    .el-table-fixed .el-table__body {
      padding-bottom: 12px;
    }
  }
}

.blank-page {
  background-color: #ebeef5;
  .header {
    background-color: #fff;
    height: 60px;
    box-sizing: border-box;
    font-size: 18px;
    font-weight: 500;
    color: #1e2128;
    position: relative;
    padding-left: 24px;
    align-items: center;
    justify-content: flex-start;

    &::before {
      content: '';
      display: block;
      position: absolute;
      left: 15px;
      top: 50%;
      transform: translateY(-50%);
      height: 18px;
      width: 3px;
      background: #1e80ff;
    }
  }
  .footer {
    margin: 15px;
  }
}
