.LogViewerPage {
  display: grid;
  gap: 16px;
  height: 80vh;
  overflow: hidden;

  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;

  margin-top: 16px;

  h3 {
    margin-top: 0;
  }

  &--fileListItems {
    display: flex;
  }

  .LogFile-item {
    &:not(:last-child) {
      margin-right: 4px;
    }
  }

  @media @desktop-up {
    grid-template-columns: 250px 1fr;
    grid-template-rows: 1fr;

    &--fileListItems {
      flex-direction: column;

      height: 100%;
    }

    .LogFile-item {
      &:not(:last-child) {
        margin-right: 0;
        margin-bottom: 4px;
      }
    }
  }

  &--fileList,
  &--container {
    // Prevents grid blowlout when the file content is too long
    min-width: 0;
    min-height: 0;

    display: flex;
    flex-direction: column;
  }

  &--fileListItems {
    overflow: auto;
  }

  .Button--logFile {
    text-align: left;
    width: 100%;

    .icon {
      margin-right: 5px;
    }
  }

  .LogViewerPage--No-File,
  .LogViewerPage--fileContent {
    width: 100%;
    height: 100%;
    padding: 16px;
    overflow: auto;

    background-color: @control-bg;
    border-radius: @border-radius;
    border: 2px solid @primary-color;
    font-family: source-code-pro, Monaco, Consolas, "Courier New", monospace;
    color: @code-color;
    line-height: 1.3;

    pre {
      margin: 0;
      padding: 0;
    }
  }
}
