/*
 * 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.
 */

.container {
  .table {
    background-color: var(--white) !important;

    [class*='TableV2--header'] {
      box-shadow: 0px 0px 1px rgb(40 41 61 / 8%), 0px 0.5px 2px rgb(96 97 112 / 16%);
      border-bottom: 1px solid var(--grey-100);

      [class*='variation-table-headers'] {
        text-transform: none;
        color: var(--grey-400);
        font-weight: 500;
        font-size: 13px;
      }

      [role='columnheader']:nth-child(2) p {
        width: 150px;
        text-align: center;
      }
    }

    .row {
      justify-content: center;
      padding-top: 0;
      padding-bottom: 0px;
      height: 40px;
      box-shadow: 0px 0px 1px rgba(40, 41, 61, 0.08), 0px 0.5px 2px rgba(96, 97, 112, 0.16);
      overflow: hidden;
      border-radius: 0;
      margin-bottom: 0;

      &.odd {
        background-color: var(--grey-50);
      }

      &:hover {
        background-color: #0092e40a !important;
      }

      .rowText {
        font-size: 13px;
        font-weight: 400;

        &.defaultBranch .commitLink {
          font-weight: 600;
        }

        .spacer {
          display: inline-block;
          width: 6px;
        }
      }

      .commitLink {
        font-weight: 400;
        font-size: 13px;
        color: var(--black);

        &:hover {
          color: var(--primary-8);
        }
      }
    }
  }
}

.warningMessage {
  order: 3;
  display: flex !important;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1rem !important;
}

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