@import '../../style/index';
.@{prefix-cls}-alarm {
  &-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  &-rank {
    width: 156px;
    font-family: PingFang SC, PingFang SC;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    background: url('../../imgs/rank_light.png') 100% 100% no-repeat;
    .rankText {
      background: linear-gradient(180deg, #969696 0%, #343434 100%);
      background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    &.dark {
      background: url('../../imgs/rank.png') 100% 100% no-repeat;
      .rankText {
        background: linear-gradient(180deg, #f0f0f0 0%, #777777 100%);
        background-clip: text;
        -webkit-text-fill-color: transparent;
      }
    }
  }

  &-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    &-item {
      height: 146px;
      overflow-y: hidden;
      position: relative;

      > div:first-child {
        padding-bottom: 4px;
        text-align: center;
      }
    }
    &-desc {
      position: absolute;
      left: 50%;
      bottom: 8px;
      transform: translateX(-50%);
      text-align: center;
      color: #9b9fa8;
    }
  }

  &-btns {
    .ant-radio-button-wrapper {
      background: transparent;
      border: 1px solid var(--modal-head-split-line-color);
      color: var(--modal-title-color);

      &::before {
        display: none;
      }
    }
    .ant-radio-button-wrapper:first-child {
      border-top-left-radius: 6px;
      border-bottom-left-radius: 6px;
    }
    .ant-radio-button-wrapper:last-child {
      border-top-right-radius: 6px;
      border-bottom-right-radius: 6px;
    }
    .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {
      border-color: var(--blue-color);
    }
  }

  &-overflow {
    &-rank {
      width: 100%;
      height: 250px;

      &-type {
        width: 56px;
      }
    }
  }
  &-legends {
    position: absolute;
    right: 0;
    top: 6px;
    &-item {
      width: 44px;
      height: 20px;
      line-height: 19px;
      color: #fff;
      text-align: center;

      &.xs {
        background: rgba(34, 154, 239, 0.5);
      }
      &.sm {
        background: #1cc10d;
      }
      &.md {
        background: #009dff;
      }
      &.lg {
        background: #ff9500;
      }
      &.xxl {
        background: #f5222d;
      }
    }
  }
}
