/*
 * 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 {
  --header-height: 80px;
  --heading-height: 58px;
  min-height: var(--page-height);
  background-color: var(--white) !important;
  --generate-pipeline-header: 55px;

  .layout {
    align-items: center;
  }
}

.layout {
  height: inherit;
  overflow: hidden;
}

.extendedHeight {
  height: calc(100vh - var(--header-height)) !important;
}

.editorContainer {
  width: calc(100% - 30vw);
  height: calc(100vh - var(--header-height) - var(--generate-pipeline-header));
  border-right: 1px solid var(--grey-100);
  padding: var(--spacing-small) !important;
}

.pluginsContainer {
  width: 30vw;
  height: calc(100vh - var(--header-height) - var(--generate-pipeline-header));
  background-color: var(--grey-50) !important;
}

.header {
  a {
    font-size: 13px;
    color: var(--primary-7);
  }
}

.breadcrumb {
  align-items: center;
}

.drawer {
  height: calc(100% - 40px);
}

.popover {
  transform: translateY(5px) !important;

  :global {
    .bp3-menu {
      min-width: 162px;
    }
  }
  .menuItem {
    min-width: 146px;

    &:hover p {
      color: var(--white) !important;
    }
  }
}

.generate {
  width: fit-content;
}

.generateHeader {
  border-bottom: 1px solid var(--grey-100);
  background: var(--grey-50) !important;
}

.highlight {
  background: var(--primary-1);
}
