/* 历史告警模块 - 最底层样式 */
.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;
    }
  }

  /* 历史告警模块 - 列表卡片样式 */
  .ant-tabs-card {
    height: 100%;

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

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

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

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

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

      }
    }

    .ant-tabs-bar {
      margin-bottom: 0;
      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;

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

              &:hover {
                cursor: pointer;
              }
            }
          }

          .delete-alarm-label {
            top: -1px;
            left: 0;
            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;
        }
      }
    }
  }
}
