@import "@alifd/next/variables";

.AlarmListPanel {
  // border: none;
  // box-shadow: 0px 0px 6px 1px #F2F7FD;
  width: 360px !important;
  box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.16);
  border-radius: 4px;
  background-color: #FFF;
  border: 1px solid #DCDEE3;


  .card {
    border: none;
  }

  .header {
    margin-top: 12px;
    margin-bottom: 12px;


    .listTitle {
      color: $color-text1-4;
      font-size: 16px;
      font-weight: 500;
      line-height: 20px;
    }

    .listTitleLink {
      font-size: 12px;
      color: $color-brand1-5;
      margin-left: 12px;
      font-weight: 400;
      line-height: 20px;
    }

    .listTitleLink:hover {
      color: $color-brand1-4;
    }
  }

  .content {
    max-height: 230px;
    overflow-y: auto;
    padding: 0;
    margin-top: 0;
  }

  .footer {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  :global {
    .#{$css-prefix}dialog-body {
      padding: 0px;
    }

    .#{$css-prefix}list-header {
      padding: 8px 16px 12px 16px !important;
      border-bottom: none;
      height: 44px;
      box-shadow: 0px 1px 0px 0px #E4E9EE;
    }

    .#{$css-prefix}list-empty {
      padding: 1px;
    }

    .#{$css-prefix}list-item {
      border-bottom: none !important;
      padding: 12px 16px !important;
      color: #4D6277;
      font-weight: 400;
      font-size: 12px !important;

      a {
        color: #4D6277;
      }
    }

    .#{$css-prefix}list-item:hover {
      background-color: #F2F7FD;
    }

    .#{$css-prefix}list-item:last-child {
      border-bottom: none;
    }

    .#{$css-prefix}dialog-close {
      width: 10px;
      height: 10px;
      color: $color-text1-4;
      margin-top: 6px;
    }
  }

  .emptyContent {
    height: 224px;
    color: #586477;
    font-size: 14px;
  }

  //告警级别颜色
  .alarm-color {

    // icon使用
    &-icon-lv4 {
      //信息
      color: #5b5ffa;
    }

    &-icon-lv3 {
      //次要
      color: #ffc300;
    }

    &-icon-lv2 {
      //主要
      color: #ff7843;
    }

    &-icon-lv1 {
      //严重
      color: #fd2626;
    }
  }
}