.wrapper, #layout-header, #wrapper {
  clear: both;
  margin: 0 auto;
  min-width: $layout-wrapper-min-width;
  max-width:  $layout-wrapper-max-width;
  background-color: $wrapper-color;
  height: 100%;
  padding-left: 2%;
  padding-right: 2%;
}

#border {
  //@include border-radius(6px);
  position: relative;
  background: $content-background;
  border-top: 1px solid $border-color;
  border-bottom: 1px solid $border-color;
  padding: 24px 24px 48px 24px;
  text-align: left;
  min-height: 500px;
}

#nav {
  height: auto;
  //@include pie-clearfix;
}

/* layer7 fix - those are applied only in BCMS admin pages */
#scale {

  background-image: none;

  #wrap, #nav, .wrap {
    width: auto !important;
  }

  ul#second_nav li a {
    font-size: 12px;
    font-weight: normal !important;
  }

  ul#tabs {
    width: auto;
    height: 17px;
    margin: 4px 10px 13px 10px;
    padding: 0px;
  }

  .self_clear {
    clear: none;
  }

  /* HACKS for BCMS layout */
  #functions a {
    color: $link-color;
  }

/*

 This was breaking Multitenant - take care to resolve both things if

 li a {
 padding: 0px !important;
}
*/
}
