/*
 *
 * MAIN (STICKY)-LAYOUT 
 *
 */

/* mainnav is fixed to the top by bootstrap; so give the body the proper padding below the fixed main-nav */
body {
  padding-top: 4.5rem;
}

/* the main wrapper, holding all content exept the mainnav */
#mainwrapper, .mainwrapper {
	width: auto !important;
	max-width: 1920px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 15px;
	padding-right: 15px;
}

/* all sticky-top elements need a proper top-position honoring the mainnav */
#sponsors-container,
#utility-container,
#search-result-top-panel {
	top: 4.6rem;
}

/* Exp. Fixing "Top-Pos-Flickering" of Sidebars, when Sidebarcontent has less height than main-content (searchresult) */
#utility-container-wrapper,
#sponsors-container-wrapper {
	top: 0.1rem;
}

/* Fixing z-index to keep the Collection-Menu above the sidebar-containers (and other content), but below the Top-Navigation */
#search-result-top-panel, 
.dropdown-menu {
	z-index: 1025;
}


/* first .card-header (if a card) -> apply non-transparent border on this to avoid borderless sticky-card-header */
/* .card > div:first-of-type { */
.card-header:first-child {
	border-top: 1px solid rgba(223,223,223,1);
	border-left: 1px solid rgba(223,223,223,1);
	border-right: 1px solid rgba(223,223,223,1);
	border-bottom: 1px solid rgba(223,223,223,1);
	border-radius: calc(.25rem - 1px) calc(.25rem - 1px) 0 0;

	margin-top: -1px;
	margin-left: -1px;
	margin-right: -1px;
	margin-bottom: -1px;
}

/* white full-width banner below mainnav-header to overlay scrolling content beneath */
#overlayStripe {
	width: 100%;
	height: 2.1rem;
	background-color: white;
	position: fixed;
	top: 2.5rem;
	z-index: 1020;
}

/* no transparency on card-header´s background, so the can overlap while scrolling "under" sticky elements */
.card-header {
	background-color: rgb(247,247,247);
}

/* slightly push tabs in card-headers down, to prevent a bottom line in Chrome */
.card-header.nav-tabs .nav-item {
	margin-bottom: -2px;
}


/*
 * SEARCHFIELD
 */
#search.input-group {
	flex-wrap: nowrap;	/* for the easy autocompeter fix to work properly: displaying bootsraps input-group with prepending icons properly */
}


/*
 * MAIN ACTION PANEL
 */
 
/* Main Panels leading Title-Icon badges .. cosmetics... */
#main-panel h4 span.badge {
	min-width: 1.75rem;
	padding: .175rem;
}

/*
 * MAIN PANEL COLLECTION MENU 
 */
#main-panel-menu .dropdown-item {
	padding-left: 0.5rem;
}

#main-panel-menu .dropdown-item span.oi {
	width: 1rem;
	text-align: center;
	margin-right: 0.25rem;
}

#main-panel-menu .dropdown-item .custom-control-input {
	// position: inherit;

}

/* 
 * KEYTERM-WIDGET 
 */

.indexletterbutton {
	width: 2rem;	
	padding: .175rem;	
	margin-bottom: 	.35rem;	
}

ul.keytermpanel {
	padding-left: 0px; 
	margin-left: 1.25rem;
}

/* fix same strange order-issues in chrome; ensure the "utilities"-content is underneath the "tab-header" of the utilities */
#utilities {
	z-index: -9999;
}

/*
 * DOCUMENT FILTER
 */
 
div.treelevelwrapper {padding-left: 1rem;}

#documentfilter a, 
#documentfilter p 
{
	/* add/try fonts for docfilter here */
}

#documentfilter p {
	margin-bottom: 0.45rem;
	line-height: 1rem;
	font-weight: bold;
}

#documentfilter span.oi {
	width: 1.1rem;
}

#documentfilter .selector:not(:checked )+ * {
	// opacity: 0.50;
	 opacity: 0.80;
	font-weight: normal;
	}

/*
 * SPONSORS ON SEARCHPAGE
 */

#sponsors-container #sponsors hr {
	margin-top: 0.625rem;
	margin-bottom: 0.625rem;	
}

#sponsors-container #sponsors img {
	max-width: 275px;
}

/*
 * MAIN SEARCH RESULT CONTENT
 */

.nodeentry h1,
.nodeentry h2,
.nodeentry h3,
.nodeentry h4,
.nodeentry h5,
.nodeentry h6 {
	margin-bottom: 0.05rem !important;
}

.nodeentry h2 {
	background-color: grey;
	color: white;
	padding: 0.75rem;
	border-radius: 0.25rem;
}

.nodeentry h2 .highlight.on {
	color: #212529;		/* Searchterm highlighting on dark BG/white Text -> use dark text-color */
}


.nodeentry h3 ~ p {
	border-bottom: 1px solid;
	border-color: rgba(0,0,0,0.25);
}

.nodeentry h3 {
	padding-top: 0.25rem;
	border-top: 1px solid rgba(0,0,0,0.25);
}

.nodeentry .node-path {
	opacity: 0.5;
	margin-bottom: 0.35rem;
	padding-bottom: 0.1rem;
}

.nodeentry .node-content-comments {
	font-size: 80%;
	border-left: 0.5rem solid rgba(0,0,0,0.25);
	padding: 1rem;
	margin: 1rem;
}

.nodeentry img {
	max-width: 100% !important;
	height: auto !important;
}

/*
 * SPECIALS AND EXTRAS
 */

.highlight.on {
	background-color: #ffffcb;
}

.always-hidden {
	display: none !important;
}


/* Bootstrap Toggle v2.2.2 corrections for Bootsrtap 4*/
/* https://github.com/minhur/bootstrap-toggle/issues/186 */
.toggle-off {
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
}
.toggle.off {
    border-color: rgba(0, 0, 0, .25);
}

.toggle-handle {
    background-color: white;
    border: thin rgba(0, 0, 0, .25) solid;
}