/* stylelint-disable font-family-no-missing-generic-family-keyword */
[class^="i-"],
[class*=" i-"] {
  font-family: iconfont !important;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  margin: 0;
  box-sizing: border-box;
  font-style: normal;
}

html,
body {
  background-color: #f3f8ff;
  font-family: arial, Helvetica, sans-serif;
  overflow: hidden;
  font-size: 12px;
  line-height: 1;
  color: $--color-text-primary;
}

.copyright::after {
  content: "Copyright@2023北京灏博云天科技有限公司";
  display: block;
  text-align: center;
  position: fixed;
  bottom: 6px;
  left: 0;
  right: 0;
  letter-spacing: 2px;
  font-size: 15px;
  color: #333;
}

textarea {
  font-family: inherit !important;
}

a {
  text-decoration: none;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-thumb {
  background-color: #eee;
  border-radius: 10px;
}

.flex-h {
  display: flex;
}

.flex-v {
  display: flex;
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-center {
  align-items: center;
}

.flex-middle-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-1 {
  flex: 1;
}

.p-12 {
  padding: 12px;
}

.mb-12 {
  margin-bottom: 12px;
}

.mr-12 {
  margin-right: 12px;
}

.ml-12 {
  margin-left: 12px;
}

.mt-12 {
  margin-top: 12px;
}

.w-100 {
  width: 100%;
}

.color-primary {
  color: $--color-primary;
}

.color-white {
  color: #fff;

  &:hover,
  &:focus {
    color: rgba($color: #fff, $alpha: 80%);
  }
}

.color-warning {
  color: $--color-warning;

  &:hover,
  &:focus {
    color: rgba($color: $--color-warning, $alpha: 80%);
  }
}

.el-cascader-node {
  height: fit-content !important;
}

.color-danger {
  color: $--color-danger;

  &:hover,
  &:focus {
    color: rgba($color: $--color-danger, $alpha: 80%);
  }
}

.ellipsis {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  /* stylelint-disable-next-line value-no-vendor-prefix */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  word-wrap: break-word;
}

.ellipsis-1 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ellipsis-2 {
  -webkit-line-clamp: 2;
}

.ellipsis-3 {
  -webkit-line-clamp: 3;
}

.t-left {
  text-align: left;
}

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

.t-right {
  text-align: right;
}

.v-empty {
  margin: 8vh auto 0;
  color: #ccc;
  user-select: none;

  p {
    color: inherit;
  }
}

.v-card {
  border-radius: 4px;
  background-color: #fff;
  box-shadow: 0 2px 8px 0 rgb(16 166 180 / 20%);
}

.v-title {
  padding-left: 6px;
  font-size: 15px;
  border-left: 6px solid $--color-primary;
}

.v-page {
  display: flex;
  height: 100%;
  overflow: hidden;

  .v-menu {
    margin-right: 18px;
    padding-right: 18px;
    display: flex;
    flex-direction: column;
    width: 226px;
    height: inherit;
    border-right: 1px solid #e9e8ee;
  }

  .v-ctx {
    flex: 1;
    height: inherit;
    overflow: hidden overlay;
  }
}

.custom-input {
  input {
    padding-right: 30px;
  }

  .el-input__suffix {
    background-color: white;
    height: calc(100% - 2px);
    right: 3px;
    top: 1px;
  }
}

.self-button {
  height: 20px;
  padding: 0 5px;
}
