:root {
  --blue: #007bff;
}
html,
body,
#app,
.dashboard_wrap {
  position: relative;
  width: 100vw;
  height: 100vh;
  font-family: "Microsoft YaHei", "微软雅黑" !important;
  color: #253a70;
  font-size: 14px;
  user-select: none;
  background: #ffff;
  box-sizing: border-box;
  overflow: hidden;
  // 设置弥散渐变
  // background-image: url("~@/assets/img/dispersion_gradient.png");
  // background-size: cover;
  // background-repeat: no-repeat;
  // background-position: center;
  /* 第一个方块颜色，第二个轨道颜色(用于更改火狐浏览器样式) */
  // scrollbar-color: #7c8db5 #f3f4fc;
  /* 火狐滚动条无法自定义宽度，只能通过此属性使滚动条宽度变细 */
  // scrollbar-width: thin;
  // -ms-overflow-style: none;
}

// 自定义滚动条样式
::-webkit-scrollbar {
  width: 10px !important;
  height: 10px !important;
  background: #fff;
}
::-webkit-scrollbar-track,
::-webkit-scrollbar-track:hover {
  background: #f3f4fc;
}
::-webkit-scrollbar-thumb {
  border-radius: 5px;
  border-style: dashed;
  background: #7c8db5;
  border-color: transparent;
  border-width: 2px;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  border-radius: 4px;
  background: #7c8db5;
  background-clip: border-box;
}
.theme_color_h:hover {
  cursor: pointer;
  color: #339dff;
}
// iview表格全局自定义样式
.ivu-table {
  color: #798cb5;
  background-color: #ffffff66;
  .ivu-table-header,
  .ivu-table-fixed-header {
    thead tr {
      background-color: #e9f0ff;
      th {
        padding: 12px 0;
        color: #253a70;
        line-height: 1;
        background-color: #e9f0ff;
      }
    }
  }
  .ivu-table-fixed .ivu-table-tbody tr,
  .ivu-table-fixed-right .ivu-table-tbody tr,
  .ivu-table-body .ivu-table-tbody tr {
    &.ivu-table-row-hover {
      color: #253a70;
      background-color: #ffffff;
      box-shadow: 6px 1px 9px 0 #0879cd24;
      td {
        background-color: #ffffff;
        .action_list {
          color: #339dff;
          .action_error,
          .action_del {
            color: #f0153f;
          }
          .action_success {
            color: #52c41a;
          }
        }
      }
    }
    td {
      position: relative;
      background-color: #ffffff66;
      .tree_open_column {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        .tree_column_arrow {
          display: flex;
          justify-content: center;
          align-items: center;
          padding: 6px;
          cursor: pointer;
          .tree_arrow {
            transition: all 0.2s ease-in-out;
            &.tree_arrow_down {
              transform: rotate(90deg);
            }
          }
        }
        .tree_column_content {
          display: flex;
          justify-content: center;
          align-items: center;
          .column_icon {
            padding: 6px;
          }
        }
      }
    }
  }
  .ivu-table-fixed .ivu-table-tbody tr,
  .ivu-table-body .ivu-table-tbody tr {
    &.ivu-table-row-hover {
      td:first-child::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        display: inline-block;
        width: 4px;
        height: auto;
        background-color: #339dff;
        z-index: 1;
      }
    }
  }
  .ivu-table-cell {
    line-height: 1.6;
  }
  .ivu-table-overflowX {
    overflow: visible;
  }
  .ivu-table-tip {
    overflow: hidden;
  }
}
// iview表单全局自定义样式
.ivu-form {
  .ivu-form-item-label {
    color: #253a70;
  }
}
// iview分页全局自定义样式
.ivu-page {
  .ivu-page-total {
    color: #253a70;
    font-weight: bold;
  }
  .ivu-page-item,
  .ivu-page-next,
  .ivu-page-prev {
    border-radius: 8px;
    border-color: #b8c2d9;
  }
  .ivu-page-item-active {
    border-color: #339cff;
    a {
      color: #339cff;
    }
  }
}
//按钮圆角
.ivu-btn,
.ivu-input {
  border-radius: 6px;
}
// 模拟输入框样式
.imitate_input {
  font-size: 14px;
  line-height: 30px;
  padding: 0 7px;
  color: #515a6e;
  border: 1px solid #dcdee2;
  border-radius: 6px;
  background-color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  &.disabled {
    color: #253a70;
    border-color: #d8dce9;
    background-color: #f3f4fc;
    cursor: not-allowed;
  }
}
// 禁用输入框背景色
.ivu-input[disabled],
fieldset[disabled] .ivu-input,
.ivu-select-disabled .ivu-select-selection {
  color: #253a70;
  border-color: #d8dce9;
  background-color: #f3f4fc;
  user-select: none;
}
// 二级路由页面全局样式
.page_root {
  width: 100%;
  height: 100%;
  .page_root_main {
    margin-right: 16px;
    margin-bottom: 16px;
    padding: 16px;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    border-radius: 10px;
    background: #ffffff66;
    border: 2px solid #fff;
    box-shadow: 0 12px 16px 0 #0000000a;
    overflow: auto;
  }
}
// iview颜色拾取器
.color_picker_transfer {
  width: 260px;
}
// 更多菜单弹窗
.more_menu {
  position: fixed;
  left: -999999999999px;
  top: -999999999999px;
  display: none;
  padding: 10px 0;
  width: 152px;
  font-size: 12px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 16px 0 #798cb524;
  border: 1px solid #ced9f2;
  z-index: 9999999;
  .menu_group {
    .group_separator {
      margin: 2px 0;
      width: 100%;
      height: 1px;
      background: #ced9f2;
    }
    &:last-child {
      .group_separator {
        display: none;
      }
    }
    .menu_group_item {
      position: relative;
      line-height: 35px;
      text-align: left;
      cursor: pointer;
      .menu_group_item_pop {
        display: none;
      }
      &:hover {
        background-color: #dbeeffcc;
        .menu_group_item_pop {
          display: block;
          position: absolute;
          top: -10px;
          left: 150px;
          padding: 10px 0;
          width: 152px;
          border-radius: 6px;
          background: #fff;
          box-shadow: 0 12px 16px 0 #798cb524;
          border: 1px solid #ced9f2;
          cursor: pointer;
          .menu_pop_group {
            .menu_pop_group_item {
              position: relative;
              padding: 0 14px;
              line-height: 35px;
              text-align: left;
              cursor: pointer;
              overflow: hidden;
              text-overflow: ellipsis;
              white-space: nowrap;
              &:hover {
                background-color: #dbeeffcc;
              }
            }
            .pop_group_separator {
              margin: 2px 0;
              width: 100%;
              height: 1px;
              background: #ced9f2;
            }
            &:last-child {
              .pop_group_separator {
                display: none;
              }
            }
          }
        }
      }
      .menu_group_item_main {
        display: flex;
        justify-content: space-between;
        align-items: center;
        .menu_title {
          margin-left: 14px;
          width: calc(100% - 28px);
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }
        .menu_dropright {
          display: flex;
          justify-content: center;
          align-items: center;
          width: 14px;
        }
      }
    }
  }
}
// 多选框禁用时选中颜色修改
.ivu-checkbox-indeterminate.ivu-checkbox-disabled,
.ivu-checkbox-disabled {
  &.ivu-checkbox-checked .ivu-checkbox-inner,
  .ivu-checkbox-inner {
    background-color: #d2dbf3;
    border-color: #98aae1;
    &:after {
      border-color: #253a70;
    }
  }
}
// 没有权限禁止操作
.no_auth {
  cursor: not-allowed !important;
}
// 可关闭的错误消息可复制消息
.ivu-message-custom-content.ivu-message-error {
  user-select: text;
}
// 按钮样式
.ivu-modal-confirm-footer .ivu-btn.ivu-btn-primary,
.primary_btn.ivu-btn.ivu-btn-primary {
  border: none;
  border-radius: 8px;
  opacity: 1;
  background: linear-gradient(180deg, #30e5fc 0%, #34a4ff 100%);
  box-shadow: inset 0 1px 2px 0 #ffffffb3, inset 0 -2px 3px 0 #ffffff4d,
    0 3px 5px 0 #339dff80, inset 0 -2px 0 0 #2b89e0;
}
.ivu-modal-confirm-body {
  color: #7c8db5;
  font-size: 16px;
}
.ivu-btn.ivu-btn-default {
  color: #7c8db5;
  border: 1px solid #b8c2d9;
  border-radius: 8px;
}
.ivu-modal-confirm-footer .ivu-btn.ivu-btn-text {
  margin-right: 16px;
  color: #7c8db5;
  border: 1px solid #b8c2d9;
  border-radius: 8px;
}
.main_root {
  margin: 0 16px 10px;
  min-height: calc(100% - 10px);
  border-radius: 15px;
  border: 1px solid #e9f0f9;
  background-color: #fff;
}
// 表格
.table_wrap {
  margin: 0 16px;
  border: 1px solid #e8eaec;
  border-bottom: none;
  .action_list {
    display: flex;
    justify-content: center;
    align-items: center;
    > div {
      margin: 0 4px;
      padding: 0 4px;
      cursor: pointer;
    }
  }
}
.page_wrap {
  padding: 16px;
  text-align: right;
}
// 自定义树选择输入框
.tree_drop_input {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px;
  height: 32px;
  color: #515a6e;
  background-color: #fff;
  border-radius: 6px;
  border: 1px solid #dcdee2;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  &:hover {
    border-color: #57a3f3;
  }
  .tree_drop_selected {
    width: calc(100% - 15px);
    height: 30px;
    line-height: 30px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    &:empty::before {
      content: attr(placeholder);
      color: #c0c4cc;
    }
  }
  .tree_drop_arrow {
    color: #808695;
    transition: all 0.2s ease-in-out;
    &.arrow_down {
      transform: rotate(180deg);
    }
  }
}
// form表单
.ivu-form-item {
  .ivu-form-item-label {
    font-size: 16px;
  }
  .ivu-form-item-content {
    font-size: 16px;
  }
}
