#header {
  background-color: $color-background;
  color: $color-text;
  padding: 0 0.5*$box-margin;
  //@extend %pseudo-afterlight;
  h1 {
	padding: 0 $box-padding;
	font-weight: normal;
	font-size: 1em;
	line-height: $base-line-height;
	margin: $gap 0;
	@include respond-to(min-menu-collapse) {
	  //line-height: $gap + $breadcrumb-height;
	  padding: 0.75*$box-padding $box-padding;
	  margin: 0;
	}
	a{
	  font-weight: bold;
	  color: $color-text;
	}
	.self{
	  span{
		@extend %indicator;
	  }
	}
  }

  #main_menu_top_project{
	display: none;
	@extend %list-style-none;
	@include respond-to(min-menu-collapse) {
	  display: block;
	  margin-top: 2*$gap;

		//position: absolute;
	  	float: right;
		z-index: z($z-priority, newissue);
		//right: $gap;
		//top: $gap;
		//bottom: 0;
		//left: auto;
		margin-top: $gap;
		padding: 0 0.5*$box-padding;
		min-width: $sidebar-width;
		li {
		  float: right;
		  &:only-child{
			float: none;
		  }
		  & + li {
			margin-right: 0.5*$gap;
		  }
		}

	  //width: ($sidebar-width - 2*$gap);
	  a{
		//@extend %button-small;
		display: block;
		margin-bottom: 0;
	  }
	}
  }
  #main_menu_scroll_buttons {
		@extend %control-menu-buttons;
		top: inherit;
		a{
			&:first-child{
			//margin-left: -$gap - 1;
			}
			&:last-child{
			///margin-right: -$gap - 1;
			}
			&:before{
			bottom: -0.5em !important;
			}
		}
  }
}

#main-menu{
  @extend %pills-parent;
  //@include tab-parent($color-foreground,$header-color-border, $color-background, $color-important, $color-text, $mainmenu-height, $gap);
  //padding: 0 0.5*$box-padding;
  a{
	margin-bottom: 0 !important;
  }
  position: relative;
  padding-bottom: $box-padding;
  margin: 0 $box-padding (-$box-padding) $box-padding;
  .ps-scrollbar-x-rail{
	bottom:  ($box-padding - $scrollbar-width) /2;
	display: none !important;
  }
  &:hover{
	.ps-scrollbar-x-rail{
	  display: inherit;
	}
  }
}

#mobile-actions{
	@extend %list-reset;
	@extend %flex;
	@extend %flex-wrap-wrap;
	@extend %justify-content-center;
	margin-top: $gap;
	@include respond-to(min-sidebar-collapse) {
	  display: none;
	}
	a{
		margin: 3px;
	}
}
