/*
 * Copyright (c) 2010, 2023 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
 */
.wrapped-form-field > .form {
  background-color: transparent;

  /* Reset padding set in GroupBox.css */

  & > .root-group-box > .group-box-body,
  & > .root-group-box > .group-box-header {
    padding-left: 0;
    padding-right: 0;
  }

  /* Reset margin set in GroupBox.css */

  & > .root-group-box {
    overflow: visible; /* allow overflow for the root-group-box for wrapped forms */

    & > .group-box-body {
      & > .scrollbar {
        /* position scrollbar as right as possible to prevent overlapping field parts. */
        #scout.scrollbar-y-padding(8px, 6px);
      }
    }
  }

  /* Reset values set in MenuBar.css */

  & > .root-group-box > .menubar {
    margin-left: @mandatory-indicator-width;
    #scout.menubar-background-color-inherit;

    & > .menubar-box > .menu-item {
      &.first {
        margin-left: 0;
      }

      &.last {
        margin-right: 0;
      }
    }
  }
}
