@import '~scss/variables';
@import '~scss/mixins';

.title {
  position: relative;
  width: 100%;
  min-height: 52px;
  padding: 10px 20px;
  background-color: $light-color01;
  letter-spacing: normal;
  color: #36435c;
  outline: none;
  display: flex;

  .focus {
    border-color: $light-color06 !important;
    background: #fff !important;
  }

  .search {
    display: flex;
    flex: 1 1;
    padding: 6px 12px;
    min-height: 32px;
    margin-right: 12px;
    background: $light-color02;
    border-radius: 18px;
    border: 1px solid transparent;
    transition: all 0.3s ease-in-out;

    &:hover {
      border-color: $light-color06;
    }

    .clearIcon {
      cursor: pointer;

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

    .hideIcon {
      display: none;
    }

    .searchInput {
      flex: 1 1 auto;
      border: none;
      min-height: 20px;
      background: none;
      line-height: 20px;

      & > span {
        line-height: 24px;
        margin-top: -2px;
        height: 24px;
      }

      input {
        background: none;
      }
    }
  }

  @at-root {
    .filter {
      display: grid;
      grid-gap: 12px;
      grid-template-columns: repeat(4, auto);
      height: 32px;

      @at-root {
        .filterButton {
          display: inline-block;
          border-radius: 4px;
          background: #2a354b;
          cursor: pointer;
          color: #fff;
          line-height: 32px;
          padding: 0 12px;
        }

        .exportBtn,
        .pollingBtn {
          display: inline-block;
          width: 34px;
          text-align: center;
          padding: 0;
        }

        .frequencyOpts {
          border-radius: 3px;
          background-color: #2a354b;
          width: 200px;
          padding: 0;

          :global {
            .select-control {
              color: #fff;
              font-weight: 400;
              border: none;
              background: transparent !important;

              &:hover {
                background: transparent;
              }
            }

            .icon {
              svg {
                color: #fff;
              }
            }

            .option-selected-area {
              display: none;
            }

            .select-value,
            .select-value {
              color: #fff !important;
            }

            .select-menu {
              padding: 0;
            }
          }
        }
      }
    }

    .searchBar {
      border-radius: 4px;
      background-color: #2a354b;
      line-height: 32px;
      display: grid;
      grid-template-columns: 42px 1fr;
      max-width: 340px;
      flex: 1;
      margin-left: 6px;

      @at-root {
        .icon {
          place-self: center;
        }

        .input {
          background: transparent;
          outline: none;
          border: none;
          color: #fff;
        }
      }
    }
  }
}

.dropdownClass {
  background: $dark-color07;
  color: #fff;
  font-size: 12px;
  padding: 0;
  border-radius: 4px;

  & > div:hover {
    background-color: $dark-color06;
  }
}

.body {
  height: 720px;
  border-radius: 4px;
  background-color: #ffffff;
  flex: 1;
  overflow: hidden;
  @at-root {
    .logItem {
      flex: 3.8;
      white-space: pre-line;
    }
    .bodyClassName {
      & > div > div > div {
        & > div:nth-child(even) {
          background: #f9fbfd;
        }
      }
    }
    .headerClassName {
      & > div {
        padding: 0 12px;
      }
    }
    .trCLassName {
      padding: 8px 0;
      & > div {
        padding: 0 12px;
      }
    }
  }
}

.emptyText {
  text-align: center;
  margin-top: 10%;

  & > div {
    @include TypographyTitleH5();
  }

  & > p {
    margin-top: 4px;
    @include TypographyParagraph($dark-color01);
  }

  @at-root {
    .emptyTipIcon {
      width: 60px;
      height: 60px;
      border-radius: 50% 0 50% 50%;
      background: $light-color02;
      display: inline-block;
      line-height: 50px;
      margin-bottom: 20px;
    }
  }
}

.action {
  color: $blue-color03;
  padding: 0 4px;
  cursor: pointer;
  font-weight: $font-bold;
}

.hightLightMatch {
  background: $yellow-color02;
}
