/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/

.property-grid-react-panel-header {
  display: grid;
  grid-template-areas: "title tools";

  .property-grid-react-header-back-button {
    margin-right: var(--iui-size-xs);
  }

  .header-title {
    display: flex;
    justify-content: flex-start;
    grid-area: title;
    padding-block: 5px;
    align-items: center;
    overflow: hidden;
  }

  .header-tools {
    grid-area: tools;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    overflow: visible;
  }

  .debounced-search-bar-input {
    box-sizing: border-box;
  }

  .expandable-search-bar {
    overflow: hidden;

    &.contracted::before {
      border: none;
    }
  }

  &.search-bar-expanded {
    display: grid;
    grid-template-areas:
      "tools"
      "title";

    .header-tools {
      overflow: hidden;
    }
  }
}
