/*
 * 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'] {
      [class*='variation-table-headers'] {
        text-transform: none;
        color: var(--grey-400);
        font-weight: 500;
        font-size: 13px;
      }
    }

    .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;

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

        > div[class*='Avatar'] {
          margin-left: 0 !important;
          cursor: default !important;
        }
      }
    }
  }

  .label {
    svg path {
      fill: var(--grey-300);
    }
  }
}

.refreshIcon {
  padding-left: var(--spacing-xsmall) !important;
  padding-right: var(--spacing-xsmall);
}

.fileButton {
  svg {
    > path:first-child {
      fill: unset !important;
    }
  }
}

.layout {
  height: 22px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--grey-200);
  background-color: var(--grey-50) !important;
  border-radius: 4px;
  padding-left: var(--spacing-small) !important;

  &.noCopy {
    padding-right: var(--spacing-small) !important;
  }

  a span {
    font-size: 13px !important;
    color: var(--primary-7);
    font-family: var(--font-family-mono) !important;
  }

  span#commitFileButton {
    --button-height: 22px !important;
    border-radius: 0 !important;
    border-right: 1px solid var(--grey-200) !important;
    padding-right: 4px !important;
    padding-bottom: 2px !important ;
    cursor: pointer;
  }
  button#commitRepoButton {
    padding-bottom: 2px !important;
    padding-right: 4px !important;
  }
}

.historyBtnLayout {
  height: 22px;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--grey-200);
  background-color: var(--grey-50) !important;
  border-radius: 4px;
  padding: 0 var(--spacing-xsmall) !important;
  margin-left: var(--spacing-small) !important;
}
