.log-center-wrapper {
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: hidden;

  .ant-alert-info {
    margin-bottom: 12px;
    border: none;

    .ant-alert-icon {
      color: #226ee7;
      font-size: 14px;
    }
  }

  .query-condition-wrap {
    .ant-form {
      padding-left: 0 !important;
    }

    .ant-form-item {
      margin: 0;
    }

    .basic-query-box {
      padding: 6px 16px 0;
      background: linear-gradient(180deg,
          rgba(40, 105, 246, 0.1) 0%,
          rgba(40, 105, 246, 0) 104.99%);
      border-radius: 4px 4px 0 0;

      header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 32px;
        margin: 0 0 10px;

        .anticon {
          font-size: 16px;
        }

        h5 {
          display: flex;
          align-items: center;
          margin: 0;
          color: rgba(0, 0, 0, 0.65);
          font-size: 13px;

          .anticon {
            margin-right: 4px;
          }
        }

        .ant-btn {
          align-items: center;

          .anticon {
            margin-left: 4px;
          }
        }
      }

      .query-items {
        padding: 0 0 16px;
        border-bottom: 1px dashed rgba(0, 0, 0, 0.15);

        .items {
          display: flex;
          gap: 16px;
          width: 100%;
        }

        .error {
          display: flex;
          align-items: center;
          width: 100%;
          padding-top: 16px;
          color: #ff4d4f;
          font-size: 12px;

          .anticon {
            margin-right: 2px;
            font-size: 14px;
          }
        }

        .ant-form-item {
          flex: 0 0 auto;
          width: 22%;

          &.workload-form-item {
            flex: 1 1 auto;

            .ant-form-item-control-input-content {
              display: flex;

              .ant-form-item {
                &:first-child {
                  width: 45%;

                  .ant-select:not(.ant-select-customize-input) .ant-select-selector {
                    border-right: none;
                    border-radius: 4px 0 0 4px;
                  }
                }

                &:last-child {
                  width: 55%;

                  .ant-select:not(.ant-select-customize-input) .ant-select-selector {
                    border-radius: 0 4px 4px 0;
                  }
                }
              }
            }
          }
        }

        &.columns-3 {
          .ant-form-item {
            width: 33.33%;
          }
        }

        &.columns-5 {
          .ant-form-item {
            width: 17%;
          }
        }

        &.history-log-query-items {
          display: flex;
          gap: 16px;

          .ant-select-selection-overflow {
            flex-wrap: nowrap;
          }
        }
      }
    }

    .self-query-box {
      position: relative;
      padding: 8px 16px;

      dl,
      dt,
      dd {
        margin: 0;
        padding: 0;
      }

      dl {
        display: flex;
        align-items: center;
        padding: 8px 0;

        dt {
          padding-right: 16px;
          color: rgba(0, 0, 0, 0.5);
          font-weight: 400;
          white-space: nowrap;
        }

        dd {
          display: flex;
          gap: 8px;
          align-items: center;
        }
      }

      .group {
        display: flex;
        gap: 16px;

        dl {
          width: calc(33.33% - 10.66px);

          dd {
            flex: 1 1 auto;
          }
        }

        .ant-form-item {
          width: 100%;
        }
      }

      .oper {
        position: absolute;
        right: 0;
        bottom: 16px;

        .ant-btn {
          margin-right: 16px;

          img {
            display: none;
            height: 11px;
            margin-left: 4px;
          }

          &.ant-btn-loading {
            .ant-btn-loading-icon {
              display: none;
            }

            img {
              display: inline-flex;
            }
          }
        }
      }

      .ant-form-item {
        &.group-form-item {
          .ant-form-item-control-input-content {
            display: flex;

            &>.ant-form-item {
              margin-left: -1px;

              * {
                border-radius: 0;
              }

              &:first-child {
                * {
                  border-radius: 4px 0 0 4px;
                }
              }

              &:last-child {
                * {
                  border-radius: 0 4px 4px 0;
                }

                .ant-input-number {
                  border-top-right-radius: 0;
                  border-bottom-right-radius: 0;

                  * {
                    border-top-right-radius: 0;
                    border-bottom-right-radius: 0;
                  }
                }
              }
            }
          }
        }

        .ant-form-item-label>label {
          color: rgba(0, 0, 0, 0.65);
        }
      }

      .ant-radio-group {
        display: inline-flex;
        flex-wrap: nowrap;
        gap: 3px;
        margin: 0;
        padding: 3px;
        background: rgba(40, 105, 246, 0.1);
        border-radius: 4px;

        .ant-radio-button-wrapper {
          height: 26px;
          padding: 0 12px;
          line-height: 26px;
          background: none;
          border: none;
          border-radius: 4px;

          &::before {
            display: none;
          }

          &:not(.ant-radio-button-wrapper-disabled):focus,
          &:not(.ant-radio-button-wrapper-disabled):hover {
            color: #2869f6;
          }

          &.ant-radio-button-wrapper-checked {
            color: #2869f6;
            font-weight: 500;
            background: #fff;
            box-shadow: 0px 1px 10px 0px rgba(0, 0, 0, 0.08);

            &.ant-radio-button-wrapper-disabled {
              color: rgba(0, 0, 0, 0.25);
              background: #f4f4f4;
            }
          }
        }
      }

      .ant-input-number-group-wrapper {
        width: 100px;
      }
    }
  }

  .files-wrap {
    h4 {
      display: flex;
      align-items: center;
      width: 100%;
      height: 20px;
      margin-bottom: 16px;
      color: rgba(0, 0, 0, 0.65);
      font-weight: 500;
      font-size: 14px;
      line-height: 20px;

      &::before {
        display: block;
        width: 0;
        height: 14px;
        padding-left: 8px;
        border-left: 2px solid #2869f6;
        content: '';
      }
    }

    .ant-tabs {
      &.ant-tabs-top {
        &.ant-tabs-card {
          &>.ant-tabs-nav {
            .ant-tabs-tab {
              border-radius: 4px;
            }
          }
        }

        &>.ant-tabs-nav::before {
          border: none;
        }
      }

      &>.ant-tabs-nav {
        .ant-tabs-nav-list {
          gap: 20px;
        }
      }

      .ant-tabs-tab {
        padding: 12px;
        background: rgba(0, 0, 0, 0.02);
        border: 1px solid transparent;
        border-radius: 4px;

        h5 {
          min-width: 220px;
          margin-bottom: 8px;
          color: rgba(0, 0, 0, 0.65);
          font-weight: 500;
          font-size: 13px;
        }

        p {
          margin-bottom: 4px;
          color: rgba(0, 0, 0, 0.5);

          span {
            color: rgba(0, 0, 0, 0.65);
          }

          &:last-child {
            margin-bottom: 0;
          }
        }

        &+.ant-tabs-tab {
          margin: 0 0 0 20px;
        }

        &.ant-tabs-tab-active {
          background: linear-gradient(90deg,
              rgba(40, 105, 246, 0.1) 0%,
              rgba(40, 105, 246, 0) 100%);
          border-color: #2869f6;

          .ant-tabs-tab-btn {
            text-shadow: none;
          }
        }
      }
    }
  }

  .content-wrap {

    ul,
    li {
      margin: 0;
      list-style: none;
    }

    .header {
      box-sizing: border-box;
      display: flex;
      align-items: center;
      justify-content: space-between;
      min-height: 36px;
      padding: 8px;
      color: #fafafa;
      background: #333;
      border-bottom: 0.5px solid #595959;
      border-radius: 2px 2px 0 0;

      li {
        display: flex;
        gap: 5px;
        align-items: center;

        .ant-btn {
          border: none;

          .anticon {
            color: #fafafa;
            font-size: 14px;
          }
        }
      }
    }

    .history-content {
      height: 480px;
      min-height: calc(100% - 45px);
      overflow: auto;
      background: #252e42;

      &::-webkit-scrollbar-track,
      &::-webkit-scrollbar-corner {
        background-color: #252e42;
      }

      &::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
      }

      p {
        position: relative;
        padding: 8px 4px;
        color: #b7c4d1;
        white-space: pre;
        cursor: pointer;

        &.active {
          color: #5baae1;
        }
      }
    }

    .history-more {
      height: 24px;
      color: rgba(255, 255, 255, 0.3);
      font-weight: 500;
      text-align: center;
      background: #252e42;
      border-radius: 0 0 2px 2px;
      cursor: pointer;

      .anticon {
        transform: rotate(-90deg);
      }

      &:hover,
      &:focus {
        color: rgba(255, 255, 255, 0.6);
      }
    }

    .qkd-terminal-container {
      min-height: 480px;
      background: #272822;

      .operate {
        display: none;
      }
    }
  }

  .log-center-input-addon {
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    color: rgba(0, 0, 0, 0.88);
    font-size: 14px;
    background: #fafafa;
    border: 1px solid #d9d9d9;
    border-left: 0;
    border-radius: 0 6px 6px 0;
  }

  .empty-wrap {
    padding: 100px;
    color: rgba(0, 0, 0, 0.3);
    text-align: center;

    .ant-empty-image {
      height: 80px;
    }
  }
}

.ant-tabs-dropdown {
  &.log-file-list-popup {
    .ant-tabs-dropdown-menu-item {
      border-bottom: 1px dashed rgba(0, 0, 0, 0.1);

      h5 {
        margin-bottom: 4px;
        color: rgba(0, 0, 0, 0.65);
        font-weight: 500;
        font-size: 13px;
      }

      p {
        margin-bottom: 2px;
        color: rgba(0, 0, 0, 0.5);

        span {
          color: rgba(0, 0, 0, 0.65);
        }

        &:last-child {
          margin-bottom: 0;
        }
      }
    }
  }
}

.ant-modal {
  &.log-download-modal {
    .ant-modal-body {
      color: rgba(0, 0, 0, 0.65);
      font-size: 13px;

      h5 {
        margin-bottom: 25px;
        font-weight: 400;
        font-size: 13px;
      }

      p {
        margin-bottom: 8px;
      }

      dl {
        margin: 0;

        dt {
          margin: 0;
          padding: 1px 0;
          font-weight: 400;
        }

        dd {
          margin: 0;
          padding: 1px 0;
          color: rgba(0, 0, 0, 0.3);
          font-size: 12px;
        }
      }

      .ant-checkbox-wrapper,
      .ant-radio-wrapper {
        align-items: flex-start;
        width: 100%;
        margin: 0 0 12px;
      }
    }
  }
}