/*
 * Copyright (c) 2010, 2026 BSI Business Systems Integration AG
 *
 * This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License 2.0
 * which is available at https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 */
.page-field {

  &:has(> .group-box-header.hidden),
  &:has(> .group-box-body > .search-form-field:not(.hidden)) {
    & > .group-box-body {
      // If there is no title, remove top padding
      // If there is a search form, remove top padding
      // -> only show padding if there is a title but no search form
      padding-top: 0;
    }
  }

  & > .group-box-body {
    padding-bottom: 0;

    & > .search-form-field > .form > .root-group-box > .main-menubar.bottom {
      border-top-width: 0;
      min-height: 0;

      & > .menubar-box {
        margin-top: -@menubar-button-margin;
      }
    }
  }
}
