/*
 * 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);
  background-color: var(--primary-bg) !important;

  .layout {
    align-items: center;
  }
}

.withError {
  display: grid;
}

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

  .row {
    height: 80px;
    box-shadow: 0px 0px 1px rgba(40, 41, 61, 0.08), 0px 0.5px 2px rgba(96, 97, 112, 0.16);
    overflow: hidden;

    &.noDesc > div {
      height: 44px;
    }
  }
}

.nameContainer {
  position: relative;

  .name {
    flex-grow: 1;
    align-items: baseline !important;
    width: calc(100% - 100px) !important;

    > span {
      width: 100%;
      > span {
        width: 100%;
      }
    }

    & + span:last-of-type {
      align-self: center;
    }
  }

  .pinned {
    transform: rotate(-90deg);
    position: absolute;
    top: 7px;
    left: -43px;
    font-size: var(--font-size-xsmall) !important;
    padding: 6px 14px;
  }

  .repoName {
    max-width: calc(100% - 200px) !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    line-height: 24px !important;
    color: var(--grey-800);
  }

  .desc {
    max-width: calc(100% - 200px) !important;
    color: var(--grey-500);
    font-size: 13px;
    padding-top: var(--spacing-xsmall) !important;
  }
}
