* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-size: 14px;
  background-color: var(--color-bg-1);
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;

  ::-webkit-scrollbar {
    width: 12px;
    height: 4px;
  }

  ::-webkit-scrollbar-thumb {
    border: 4px solid transparent;
    background-clip: padding-box;
    border-radius: 7px;
    background-color: var(--color-fill-3);
  }
}

.echarts-tooltip-diy {
  background: linear-gradient(304.17deg,
      rgba(253, 254, 255, 0.6) -6.04%,
      rgba(244, 247, 252, 0.6) 85.2%) !important;
  border: none !important;
  backdrop-filter: blur(10px) !important;
  /* Note: backdrop-filter has minimal browser support */

  border-radius: 6px !important;

  .content-panel {
    display: flex;
    justify-content: space-between;
    padding: 0 9px;
    background: rgba(255, 255, 255, 0.8);
    width: auto;
    height: 32px;
    line-height: 32px;
    box-shadow: 6px 0px 20px rgba(34, 87, 188, 0.1);
    border-radius: 4px;
    margin-bottom: 4px;
  }

  .tooltip-title {
    margin: 0 0 10px 0;
  }

  p {
    margin: 0;
  }

  .tooltip-title,
  .tooltip-value {
    font-size: 13px;
    line-height: 15px;
    margin-left: 10px;
    display: flex;
    align-items: center;
    text-align: right;
    color: #1d2129;
    font-weight: bold;
  }

  .tooltip-item-icon {
    display: inline-block;
    margin-right: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
  }
}

.general-card {
  border-radius: 4px;
  border: none;

  &>.arco-card-header {
    height: auto;
    padding: 20px;
    border: none;
  }

  &>.arco-card-body {
    padding: 0 20px 20px 20px;
  }

  .mb0 {
    margin-bottom: 0;
  }
}

.split-line {
  border-color: rgb(var(--gray-2));
}

.arco-table-cell {
  .circle {
    display: inline-block;
    margin-right: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgb(var(--blue-6));

    &.pass {
      background-color: rgb(var(--green-6));
    }
  }

  .arco-btn-icon {
    font-size: 16px;
  }

  .operate-text-button {
     position: relative;
    .arco-btn-text,
    .arco-btn-text[type='button'],
    .arco-btn-text[type='submit'] {
      padding: 0 6px;
    }

    .arco-divider-vertical {
      margin: 5px 2px;
    }
  }
}

.tree-select-scrollbar {
  // min-height: 220px;
  padding-bottom: 10px;
}

.arco-transfer-view {
  width: 300px;
  height: 300px;

  .arco-transfer-list-item {
    margin: 10px;
    border: var(--color-border-1) 1px solid
  }
}

.arco-btn-size-medium:not(.arco-btn-only-icon) .arco-btn-icon {
  margin-right: 2px !important
}

.arco-btn+.arco-btn {
  margin-left: 8px;
}

.arco-btn-group .arco-btn+.arco-btn {
  margin-left: 0px;
}

//   }
// }

.editor-descriptions-container {
  display: flex;
  align-items: center;
  position: relative;
  width:100%;

  .editor-descriptions-label {
    display: flex;
    color: rgb(var(--gray-8));
    color: rgb(var(--gray-8));
    padding-right: 10px;
    font-weight: bold;
    // white-space: nowrap;
    min-width: 110px;
    justify-content: end;
  }

  .editor-descriptions-content {
    display: flex;
    align-items: center;
    color: var(--color-text-1);
    font-weight: 400;
    // white-space: nowrap;
    // word-break: break-word;
    position: relative;
    max-width: calc(100% - 110px);
    flex: 1 1 auto;
    height: 30px;
    // border:1px solid
    // overflow-x: hidden;
    // text-overflow: ellipsis;
  }

}
.ribbon-wrapper {
  width: 71px;
  height: 51px;
  overflow: hidden;
  position: absolute;
  top: -9px;
  right: -16px;
}

.ribbon {
  font: bold 15px Sans-Serif;
  line-height: 12px;
  font-size: 12px;
  text-align: center;
  text-transform: uppercase;
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  position: relative;
  padding: 3px 0;
  left: 20px;
  top: 10px;
  // background-color: #165dff;
  color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.5px;
  box-shadow: -3px 5px 6px -5px rgba(0, 0, 0, 0.5);
}

.ribbon:before,
.ribbon:after {
  content: '';
  // border-top: 4px solid #4e7c7d;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  position: absolute;
  bottom: -4px;
}

.ribbon:before {
  content: '';
  position: absolute;
  left: 0px;
  top: 100%;
  // z-index: -1;
  // border-left: 4px solid #4e7c7d;
}

.ribbon:after {
  content: '';
  position: absolute;
  right: 0px;
  top: 100%;
  z-index: -1;
}
.ribbon-add {
  background-color: rgb(var(--success-6));
}
.ribbon-modify {
  background-color: rgb(var(--warning-6));
}
.ribbon-remove {
  background-color: rgb(var(--danger-6));
}
.ribbon-sub-add {
  background-color: rgb(var(--success-1));
}
.ribbon-sub-modify {
  background-color: rgb(var(--warning-1));
}
.ribbon-sub-remove {
  background-color: rgb(var(--danger-1));
}