
/* 当前告警模块 - 最底层样式 */
.alarm-root {
  width: 100%;
  height: 100%;

  /* 当前告警模块 - 刷新样式 */
  .alarm-refresh {
    float: right;
    width: 50px;
    height: 50px;
    padding: 12px 0 0 12px;
    background-color: #E3E3E3;
    border-left: 1px solid lightgray;

    &:hover {
      cursor: pointer;
      background-color: lightgray;
    }
  }

  /* 当前告警模块 - 删除按钮样式 */
  .alarm-delete {
    float: right;
    width: 50px;
    height: 50px;
    padding: 12px 0 0 12px;
    background-color: #E3E3E3;
    border-left: 1px solid lightgray;

    &:hover {
      cursor: pointer;
      background-color: lightgray;
    }
  }

  /* 当前告警模块 - 选中数据时样式 */
  .current-alarm-select {
    float: right;
    padding: 10px 10px 0 10px;
    background-color: #E4E4E4;

    .ant-select-selection {
      height: 30px;
      border-color: lightgrey;
      border-radius: 4px;

      .ant-select-arrow {
        &::before {
          position: relative;
          top: -5px;
          left: 7px;
          font-size: 20px;
          font-weight: bold;
          content: '\E61D';
          -webkit-transition: -webkit-transform 0.2s ease;
          transition: -webkit-transform 0.2s ease;
          transition: transform 0.2s ease;
          transition: transform 0.2s ease, -webkit-transform 0.2s ease;
        }
      }
    }
  }

  /* 当前告警 - 输入框 */
  .current-alarm-input {
    float: right;
    padding: 10px 10px 0 10px;
    background-color: #E4E4E4;

    .ant-select-selection {
      height: 30px;
      border-color: lightgrey;
      border-radius: 4px;
    }
  }

  .ant-tabs-card {
    height: 100%;

    .ant-tabs-content {
      height: 100%;

      .ant-tabs-tabpane {
        height: 100%;

        .curent-alarm-root {
          height: 100%;

          .grid-content {
            height: 100%;
          }
        }
      }
    }

    /* 当前告警 - 列表自定义工具栏样式 */
    .ant-tabs-bar {
      margin-bottom: 0;
      background-color: #E4E4E4;
      border-bottom: 1px solid #d9d9d9;

      .ant-tabs-nav-container {
        height: 50px !important;

        .ant-tabs-nav-scroll {
          overflow: hidden;
          white-space: nowrap;
          background-color: #E3E3E3;

          .ant-tabs-nav {
            -webkit-box-sizing: border-box;
            box-sizing: border-box;
            padding-left: 0;
            -webkit-transition: -webkit-transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
            transition: -webkit-transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
            transition: transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
            transition: transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
            position: relative;
            top: 8px;
            left: 20px;
            margin: 0;
            list-style: none;
            float: left;

            .ant-tabs-tab {
              height: 41px;
              width: 150px;
              background: white;
              border-bottom: 2px solid rgb(52, 95, 166);
              text-align: center;
            }

            .ant-tabs-tab-active {
              width: 150px;
              height: 50px;
              background: linear-gradient(rgb(228, 228, 228) 0%, rgb(228, 228, 228) 0%, rgb(242, 242, 242) 100%, rgb(242, 242, 242) 100%);
              border: 1px solid lightgray;
              text-align: center;
            }
          }
        }
      }
    }
  }


  .recent-alarm-table {
    height: 100%;

    .grid-content {
      .oper-bar {
        height: 0;

        .amos-grid-oper-btns {
          .amos-grid-oper-btn {
            float: left;

            .ant-btn {
              margin: 10px;
            }
          }

          .search-upordown-btn {
            float: right;
            margin: 10px;
            font-size: 1.1rem;
            line-height: 2;
            color: #333;
          }
        }
      }

      .other-table-bar {
        .ant-table {
          position: relative;
          min-height: 200px;
          overflow: hidden;
          font-size: 12px;
          color: rgba(0, 0, 0, 0.65);
          border-radius: 4px 4px 0 0;

          .ant-table-title {
            height: 0;
            padding: 0;
            border: 0;
          }

          table {
            border-top: 0;

            .ant-table-thead {
              > tr {
                > th {
                  text-align: center;
                  background-color: #EFEFEF;
                }
              }
            }

            .ant-table-tbody {
              > tr {
                > td {
                  text-align: center;
                }
              }
            }
          }

          .alarm-detail-root {
            position: relative;
            left: 20px;
            z-index: 1;

            label {
              float: left;
              margin-left: 10px;
              font-family: 'Arial Negreta', 'Arial Normal', 'Arial';
              font-style: normal;
              font-weight: 700;
              color: #2d5391;

              &:hover {
                cursor: pointer;
              }
            }
          }

          .clear-alarm {
            position: relative;
            top: -1px;
            left: 0;

            label {
              font-family: 'Arial Negreta', 'Arial Normal', 'Arial';
              font-style: normal;
              font-weight: 700;
              color: #2d5391;

              &:hover {
                cursor: pointer;
              }
            }
          }
        }

        .top-filter-content {
          min-height: 0;
          padding-top: 5px;
        }
      }
    }
  }
}

.alarm-detail-modal {
  .ant-modal-close {
    color: white;
  }

  .ant-modal-header {
    background-color: #345FA6;

    .ant-modal-title {
      color: white;
    }
  }

  .ant-modal-body {
    background: white !important;

    .alarm-detail-content {
      font-family: 'Arial Normal', 'Arial';
      font-weight: 400;
      font-style: normal;
      font-size: 15px;
      color: #333333;
      text-align: left;

      .alarm-detail-source-name {
        height: 40px;
        padding-left: 20px;
        line-height: 40px;
        border: 1px solid lightgray;

        &:hover {
          background-color: #F2F2F2;
        }
      }

      .alarm-detail-source-value {
        height: 40px;
        padding-left: 5px;
        line-height: 40px;
        border-top: 1px solid lightgray;
        border-right: 1px solid lightgray;
        border-bottom: 1px solid lightgray;

        &:hover {
          background-color: #F2F2F2;
        }
      }

      .alarm-detail-descr-name {
        height: 100px;
        padding-left: 20px;
        line-height: 100px;
        border-right: 1px solid lightgray;
        border-bottom: 1px solid lightgray;
        border-left: 1px solid lightgray;

        &:hover {
          background-color: #F2F2F2;
        }
      }

      .alarm-detail-descr-value {
        height: 100px;
        padding-left: 5px;
        overflow: hidden;
        line-height: 32px;
        border-right: 1px solid lightgray;
        border-bottom: 1px solid lightgray;

        &:hover {
          background-color: #F2F2F2;
        }
      }

      .alarm-detail-level-name {
        height: 40px;
        padding-left: 20px;
        line-height: 40px;
        border-right: 1px solid lightgray;
        border-bottom: 1px solid lightgray;
        border-left: 1px solid lightgray;

        &:hover {
          background-color: #F2F2F2;
        }
      }

      .alarm-detail-level-value {
        height: 40px;
        padding-left: 5px;
        line-height: 40px;
        border-right: 1px solid lightgray;
        border-bottom: 1px solid lightgray;

        &:hover {
          background-color: #F2F2F2;
        }
      }

      .alarm-detail-type-name {
        height: 40px;
        padding-left: 20px;
        line-height: 40px;
        border-right: 1px solid lightgray;
        border-bottom: 1px solid lightgray;
        border-left: 1px solid lightgray;

        &:hover {
          background-color: #F2F2F2;
        }
      }

      .alarm-detail-type-value {
        height: 40px;
        padding-left: 5px;
        line-height: 40px;
        border-right: 1px solid lightgray;
        border-bottom: 1px solid lightgray;

        &:hover {
          background-color: #F2F2F2;
        }
      }

      .alarm-detail-status-name {
        height: 40px;
        padding-left: 20px;
        line-height: 40px;
        border-right: 1px solid lightgray;
        border-bottom: 1px solid lightgray;
        border-left: 1px solid lightgray;

        &:hover {
          background-color: #F2F2F2;
        }
      }

      .alarm-detail-status-value {
        height: 40px;
        padding-left: 5px;
        line-height: 40px;
        border-right: 1px solid lightgray;
        border-bottom: 1px solid lightgray;

        &:hover {
          background-color: #F2F2F2;
        }
      }

      .alarm-detail-duration-name {
        height: 40px;
        padding-left: 20px;
        line-height: 40px;
        border-right: 1px solid lightgray;
        border-bottom: 1px solid lightgray;
        border-left: 1px solid lightgray;

        &:hover {
          background-color: #F2F2F2;
        }
      }

      .alarm-detail-duration-value {
        height: 40px;
        padding-left: 5px;
        line-height: 40px;
        border-right: 1px solid lightgray;
        border-bottom: 1px solid lightgray;

        &:hover {
          background-color: #F2F2F2;
        }
      }

      .alarm-detail-count-name {
        height: 40px;
        padding-left: 20px;
        line-height: 40px;
        border-right: 1px solid lightgray;
        border-bottom: 1px solid lightgray;
        border-left: 1px solid lightgray;

        &:hover {
          background-color: #F2F2F2;
        }
      }

      .alarm-detail-count-value {
        height: 40px;
        padding-left: 5px;
        line-height: 40px;
        border-right: 1px solid lightgray;
        border-bottom: 1px solid lightgray;

        &:hover {
          background-color: #F2F2F2;
        }
      }

      .alarm-detail-clear {
        width: 72px;
        height: 30px;
        font-family: 'Arial Negreta', 'Arial Normal', 'Arial';
        font-weight: 700;
        font-style: normal;
        font-size: 15px;
        color: #FFFFFF;
        background-color: #345FA6;
        border-radius: 61px;
        text-align: center;
        line-height: 30px;

        &:hover {
          cursor: pointer;
          background-color: rgb(65, 111, 184);
        }
      }
    }
  }
}

.clear-alarm-modal {
  .ant-modal-close {
    color: white;
  }

  .ant-modal-header {
    background-color: #345FA6;

    .ant-modal-title {
      color: white;
    }
  }

  .alarm-detail-clear {
    width: 72px;
    height: 30px;
    font-family: 'Arial Negreta', 'Arial Normal', 'Arial';
    font-weight: 700;
    font-style: normal;
    font-size: 15px;
    color: #FFFFFF;
    background-color: #345FA6;
    border-radius: 61px;
    text-align: center;
    line-height: 30px;

    &:hover {
      cursor: pointer;
      background-color: rgb(65, 111, 184);
    }
  }

  .alarm-detail-cancel {
    width: 72px;
    height: 30px;
    font-family: 'Arial Negreta', 'Arial Normal', 'Arial';
    font-weight: 700;
    font-style: normal;
    font-size: 15px;
    color: #FFFFFF;
    background-color: #E4E4E4;
    border-radius: 61px;
    text-align: center;
    line-height: 30px;

    &:hover {
      cursor: pointer;
      background-color: lightgray;
    }
  }
}
