/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You 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.
 */

#root {
  margin: 0;
  height: 100%;
}

#root {
  display: flex;
  flex-direction: column;
}

.pf-v5-c-toggle-group__button {
  align-items: center;
}

.karavan .pf-v5-c-page__main {
  overflow: hidden;
}

.karavan .login-logo {
  width: 300px;
}

.logo,
.logo svg {
  height: 48px;
  width: unset;
}

.karavan .nav-buttons {
  background: var(--pf-v5-c-page__header--BackgroundColor);
}

.karavan .nav-buttons .logo {
  margin-top: 16px;
  margin-bottom: 16px;
  width: 32px;
  height: 32px;
}

.karavan .nav-buttons .pf-v5-c-button {
  padding: 0;
  width: 64px;
  height: 64px;
  color: var(--pf-v5-global--Color--light-100);
}

.karavan .nav-buttons .pf-v5-c-button svg {
  width: 24px;
}

.karavan .nav-buttons .avatar {
  width: 32px;
  height: 32px;
  margin-bottom: 6px;
  border: solid var(--pf-v5-global--Color--light-100) 1px;
  background-color: var(--pf-v5-global--Color--light-100);
  border-radius: 32px;
  padding: 6px;
}

.karavan .nav-buttons .pf-v5-c-button.pf-m-plain {
  border-left-width: 3px;
  border-left-style: solid;
  border-left-color: transparent;
  border-radius: 0;
}

.karavan .nav-button-selected .pf-v5-c-button.pf-m-plain {
  border-left-color: var(--pf-v5-global--active-color--400);
  background-color: var(--pf-v5-global--BackgroundColor--dark-400);
}

.karavan .integration-card .pf-v5-c-card__footer {
  text-align: end;
}

.karavan .integration-card .running{
  color: green;
  font-weight: bold;
}

.karavan .integration-card .error{
  color: red;
  font-weight: bold;
}

.karavan .integration-card .normal{
  color: initial;
  font-weight: initial;
}

/*Projects*/

.karavan .tools .pf-v5-c-button {
  font-size: 14px;
}

.karavan .projects-page {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.karavan .projects-page .pf-v5-c-table tr {
  --pf-v5-c-table--cell--FontSize: 14px;
}

.karavan .projects-page .icon-td {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.karavan .projects-page .icon {
  height: 21px;
  width: 21px;
  margin-top: 8px;
  position: absolute;
}

.karavan .project-page .badge,
.karavan .projects-page .badge {
  font-size: 14px;
  font-weight: 400;
  padding: 4px 8px 4px 8px;
  min-width: 70px;
}

.karavan .projects-page .runtime-badge {
  min-width: 27px;
  font-size: 14px;
  font-weight: 400;
  padding: 2px 8px 2px 8px;
}

.karavan .projects-page .pf-m-link {
  font-size: 14px;
}

.karavan .project-page {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.karavan .project-page .scrollable-out {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.karavan .project-page .scrollable-in {
  overflow: auto;
  flex-shrink: unset;
  flex-grow: 1;
  background-color: var(--pf-v5-global--BackgroundColor--light-300);
  margin-bottom: 50px;
}

.karavan .project-page .project-title .pf-v5-l-flex.pf-m-column > * {
  margin-bottom: 0;
}

.karavan .project-page .project-title .project-breadcrumb {
  font-size: 20px;
  font-weight: 400;
  height: 30px;
  line-height: 30px;
}

.karavan .project-page .project-tabs {
  background-color: white;
}

.karavan .project-page .pf-v5-c-description-list__group {
  min-height: 30px;
  align-items: center;
}

.karavan .project-page .pf-v5-c-tabs__link,
.karavan .project-page .pf-m-link {
  font-size: 14px;
}

.karavan .project-page .dashboard-card {
  margin-bottom: 16px;
}

.karavan .project-page .dashboard-card .runner-toolbar {
  line-height: 24px;
  row-gap: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.karavan .project-page .dashboard-card .runner-toolbar .row {
  line-height: 24px;
  height: 30px;
}

.karavan .project-page .dashboard-card .pf-v5-c-panel__header {
  padding: 0;
}
.karavan .project-page .dashboard-card .pf-v5-c-panel__main {
  max-height: 212px;
}

.karavan .project-page .project-status {
  margin-bottom: 16px;
}

.karavan .project-page .project-tab-panel .pf-v5-c-panel__header {
  padding-bottom: 0;
}

.karavan .project-log {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.karavan .project-log .buttons {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  border-top: 1px solid var(--pf-v5-global--BorderColor--100);
  padding-right: 6px;
}

.karavan .project-log .buttons button,
.karavan .project-log .buttons .pf-v5-c-check {
  padding: 8px;
}

.karavan .project-log .buttons .pf-v5-c-check .pf-v5-c-check__label{
  font-size: 12px;
  line-height: 20px;
  padding: 0;
}

.karavan .project-log .pf-v5-c-log-viewer__scroll-container {
  /*height: 100% !important;*/
}

.karavan .project-log .pf-v5-c-log-viewer__text {
  font-size: 12px;
}

.karavan .project-log .log-name {
  --pf-v5-c-label__content--before--BorderWidth: 0;
  --pf-v5-c-label--BackgroundColor: transparent;
  margin-right: auto;
  font-size: 12px;
}

.karavan .project-page .project-button {
  width: 100px;
}

.karavan .project-page .badge-env-up {
  background-color: rgb(56, 129, 47);
  color: white;
}

.karavan .project-page .env-chart {
  font-size: 18px;
}

.karavan .project-page .replicas-ready {
  background-color: rgb(56, 129, 47);
  color: white;
}

.karavan .project-page .health-up {
  background-color: rgb(56, 129, 47);
  color: white;
}

.karavan .project-page .project-properties .delete-cell {
  padding: 0;
  margin: 0;
  min-width: 0;
}
.karavan .project-page .project-properties .delete-button {
  padding: 0 0 0 0;
  margin: 0 16px 0 0;
}

.karavan .project-page .pf-v5-c-label__icon {
  height: 16px;
}

.karavan .project-page .pf-v5-c-label__icon svg {
  height: 16px;
}

.karavan .project-page .pf-v5-c-label__icon, .spinner {
  margin-bottom: -2px;
}

.karavan .project-page .pf-v5-c-label__icon, .not-spinner {
  margin-bottom: 3px;
}

.karavan .action-cell {
  padding: 0;
}

.create-file-form .pf-v5-c-form__group {
    grid-template-columns: 80px 1fr !important;
}

.logo-tooltip {
  margin-left: 16px;
}

.karavan .pf-v5-c-code-block__code {
  overflow-wrap: anywhere;
}

/*Dashboard*/
.karavan .dashboard-page .pf-m-link {
  font-size: 14px;
}

.karavan .dashboard-page .icon {
  height: 28px;
  width: 28px;
  margin: auto;
}

.karavan .dashboard-page .badge {
  font-size: 14px;
  font-weight: 400;
  padding: 4px 8px 4px 8px;
}

.karavan .dashboard-page .table-label {
  font-size: 14px;
  padding: 2px 6px 2px 4px;
}

.karavan .dashboard-page .badge-flex-item {
  margin-bottom: 3px;
  margin-top: 3px;
}

.karavan .dashboard-page .camel-label-group .pf-v5-c-label-group__list {
    flex-wrap: nowrap;
}


.karavan .loading-page .spinner {
  position: absolute;
}
.karavan .loading-page .logo-placeholder {
  position: absolute;
  height: 100px;
}

.karavan .loading-page .logo {
  height: 100px;
}

/*Modals*/

.new-project .pf-v5-c-radio,
.new-project .runtime-radio {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.new-project .pf-v5-c-radio__body {
  margin: 0 6px 0 6px;
}

.new-project .runtime-radio .icon {
  width: 24px;
  height: 24px;
}

.new-project .runtime-label {
  font-size: 14px;
  margin-left: 6px;
}

.projects-page .project-action-buttons {
  opacity: 0.5;
}

.karavan .projects-page .labeled-button,
.karavan .project-page .labeled-button {
  padding: 0 5px 0 5px;
}

.karavan .project-page .project-build-panel {
  padding-bottom: 10px;
}

.karavan .project-page .project-images-panel {
  padding-top: 0;
}

.projects-page tr:hover .project-action-buttons {
  opacity: 1;
}

.projects-page .pf-v5-c-table.pf-m-compact tr:not(.pf-v5-c-table__expandable-row) > *:last-child {
  --pf-v5-c-table--cell--PaddingRight: 0;
}

.new-project .icon {
  display: block;
}
