// Copyright (C) 2023 The Android Open Source Project
//
// 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.

@import "../assets/theme";

.pf-details-shell {
  display: flex;
  flex-direction: column;
  font-family: var(--pf-font-compact);

  .pf-header-bar {
    z-index: 1;

    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
    padding: 8px 8px 5px 8px;
    border-bottom: 1px solid var(--pf-color-border);

    .pf-header-title {
      font-size: var(--pf-font-size-xl);
      min-width: min-content;
      white-space: nowrap;
    }

    .pf-header-description {
      font-size: var(--pf-font-size-m);
      flex-grow: 1;
      flex-shrink: 1;
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
    }

    .pf-header-buttons {
      font-size: var(--pf-font-size-m);
      white-space: nowrap;
      display: flex;
      min-width: min-content;
      gap: 4px;
      align-items: baseline;
    }
  }

  .pf-content {
    flex-grow: 1;
    overflow-x: auto;
  }

  &.pf-fill-height {
    height: 100%;
    overflow-y: hidden;

    .pf-content {
      overflow-y: auto;
    }
  }
}
