.echarts-gl-formatter-first-row {
  font-size: 12px;
  color: var(--o-text-color-tertiary);
  letter-spacing: 0;
  line-height: 14px;
}
$color-list: (
  '0062dc',
  '3DB6FC',
  '81BA06',
  '3DCFD4',
  '6D47F5',
  '2DB47C',
  'BD45E8',
  '9EA8B9',
  'FF5432',
  'EC4F83',
  'FF7D63',
  '5328BF',
  '279C6E',
  '75A105',
  '9ECBFF',
  'EBBC00',
  '0077FF',
  '37A4E3',
  '73A409',
  '30B7BB',
  '613DE4',
  '29A370',
  'A843CD',
  '4E5865',
  'E05034',
  'DA4576',
  'CD362B',
  '9073F7',
  '60C594',
  'A1D13C',
  '66ADFF',
  'EBBC00',
);
@each $var in $color-list {
  .color-#{$var} {
    background-color: ##{$var};
  }
}
.echarts-gl-formatter-other-row-value-box {
  width: 256px;
  background: var(--o-bg-color-light);
  padding: 0px;
  font-family: PingFangSC;
  text-align: left;
  font-size: 12px;
  color: var(--el-color-black);
  font-weight: Regular;
  padding-bottom: 16px;
  .echarts-gl-formatter-title {
    height: 23px;
    padding: 8px auto 8px 16px;
    margin-left: 12px;
    font-size: 14px;
    line-height: 23px;
    font-family: HarmonyOS_Sans_SC_Bold;
    font-weight: bolder;
  }
  .echarts-gl-formatter-line {
    display: inline-block;
    border-top: 1px solid var(--o-border-color-light);
    width: 100%;
  }
  .echarts-gl-formatter-block {
    padding-left:16px;
    .echarts-gl-formatter-block-item1 {
      height: 18px;
      margin-top: 16px;
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      .echarts-gl-formatter-block-label {
        padding-right: 24px;
        color: var(--o-text-color-secondary);
      }
    }
    .echarts-gl-formatter-block-item2 {
      height: 18px;
      margin-bottom: 8px;
      .echarts-gl-formatter-block-label2 {
        padding-right: 30px;
        color: var(--o-text-color-secondary);
      }
    }
    .echarts-gl-formatter-block-item3 {
      display: flex;
      flex-wrap: wrap;
      width: 250px;
      height: auto;
      .echarts-gl-formatter-block-label3 {
        padding-right: 18px;
        color: var(--o-text-color-secondary);
      }
      .echarts-gl-formatter-sub-item {
        display:flex;
        flex-wrap:wrap;
        .echarts-gl-formatter-sub-label{
          margin-left:8px;
        }
      }
    }
    .echarts-gl-formatter-block-content {
      display: flex;
      align-items: center;
    }
    .echarts-gl-formatter-tag-ok {
      border-radius: 2px;
      line-height: 14px;
      height: 16px;
      margin-left: 8px;
      padding: 0px 16px;
      background-color: var(--o-color-state-primary);
      color: var(--o-text-color-fourth);
    }
    .echarts-gl-formatter-tag-nr {
      border-radius: 2px;
      line-height: 14px;
      height: 16px;
      margin-left: 8px;
      padding: 0px 16px;
      background-color: var(--o-color-danger);
      color: var(--o-text-color-fourth);
    }
    .echarts-gl-formatter-tag-cr {
      border-radius: 2px;
      line-height: 14px;
      height: 16px;
      margin-left: 8px;
      padding: 0px 16px;
      background-color: var(--o-color-major);
      color: var(--o-text-color-fourth);
    }
    .echarts-gl-formatter-tag-nc {
      border-radius: 2px;
      line-height: 14px;
      height: 16px;
      margin-left: 8px;
      padding: 0px 16px;
      background-color: var(--o-color-warning);
      color: var(--o-text-color-fourth);
    }

    &.color-E32020{
      background-color: #E32020;
    }
    &.cpu {
      background-color: #0062DC;
    }
    &.default-color {
      background-color: #07f;
    }
    &.sec-color{
      background-color: #29A370;
    }
    &.third-color {
      background-color: #A843CD;
    }
    &.red {
      background-color: #E32020;
    }
  }
  .echarts-gl-formatter-pointer {
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--o-bg-color-light);
    border-bottom: 1px solid var(--o-bg-color-light);
    border-right: 1px solid var(--o-bg-color-light);
    left: 128px;
    top: 93%;
    transform: translate(-50%, 0);
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
  }

  .echarts-gl-formatter-key {
    margin-left: 8px;
    font-size: 12px;
    color: var(--o-text-color-secondary);
    &.mr-8 {
      margin-right: 8px;
    }
  }

  .echarts-gl-formatter-value {
    flex: 1;
    text-align: right;
    font-size: 16px;
    color: var(--o-text-color-primary);
    font-weight: 500;
    letter-spacing: 0;
    line-height: 24px;
  }
}
