/*
 * Copyright 2023 Harness, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

.main {
  min-height: var(--page-height);

  > div[class*='PageHeader'],
  [data-testid='page-header'] {
    border-bottom: none !important;
  }
}

.prNumber {
  font-size: 20px;
  font-weight: 400;
  color: var(--grey-500);
  padding-left: var(--spacing-small);
}

.prTitle {
  align-items: center;

  .btn > span {
    background: var(--grey-100);
    border: 1px solid var(--grey-200);
    border-radius: 4px;
  }

  .input {
    margin-top: 0 !important;
    margin-bottom: 0 !important;

    input {
      width: 800px;
      font-weight: 600;
      padding: 0 var(--spacing-small) !important;
      line-height: 22px !important;
    }
  }

  .titleText {
    flex-shrink: 0;
    max-width: calc(var(--page-container-width) - 200px);
  }

  .addDesc {
    white-space: nowrap;
  }
}

.changes {
  padding: 0 var(--spacing-xlarge) var(--spacing-xlarge) !important;
}

.checksCount {
  border: 1px solid var(--grey-100);
  background-color: var(--grey-50) !important;
  display: inline-flex;
  margin-left: 8px !important;
  border-radius: 4px;
  padding: 2px 5px 0 !important;

  .checksCountLayout {
    display: inline-flex;
    height: 18px;
    align-items: center;
    justify-content: center;

    > span {
      padding: 0 !important;
      margin: 0 !important;
      align-self: flex-start;
      line-height: 16px !important;

      &:last-of-type {
        padding-left: 5px !important;
      }
    }
  }
}

.popover {
  :global {
    .bp3-popover-content {
      padding: var(--spacing-medium);
      max-width: 700px;
      word-break: break-all;
    }
  }
}
