/* search.css */

.facet-chbox-list li {
	margin-bottom: 0.4em;
}

@-moz-document url-prefix() {
	.facet-chbox-list input[type=checkbox] {
	  -webkit-appearance: none;
	  -moz-appearance: none;
	  margin-right: 0.35em;
	  /* background: #dedede;*/
	  background-image: linear-gradient(#efefef, #dedede);
	}
	.facet-chbox-list input[type=checkbox]::-ms-check {
	  display: none;
	}
	.facet-chbox-list input[type=checkbox] {
	  position: relative;
	  width: 1.05em;
	  height: 1.05em;
	  border: 1px solid #b5b5b5;
	  /* Adjusts the position of the checkboxes on the text baseline */ 
	  vertical-align: -2px;
	  /* Set here so that Windows' High-Contrast Mode can override */
	  /* color: green; */
	  border-radius: 3px;
	}
	.facet-chbox-list input[type=checkbox]::before {
	  content: "\2714";
	  position: absolute;
	  font-size: 0.9em;
	  font-weight: bold;
	  left: 0.05em;
	  top: -0.2em;
	  visibility: hidden;
	}
	.facet-chbox-list input[type=checkbox]:checked::before {
	  /* Use `visibility` instead of `display` to avoid recalculating layout */
	  visibility: visible;
	}
	.facet-chbox-list input[type=checkbox]:disabled {
	  border-color: #999;
	  background: #EAE8E6; /* #ccc */
	  color: gray;
	}
}

@media (max-width: 768px) { 
	body {
		font-size: 16px;
	}
	.jstree-default .jstree-node {		/* make tree nodes further apart */
   	min-height: 30px;
    	line-height: 30px;
    	margin-left: 15px;
    	min-width: 30px;
	}	
}


main {
	border-top: 1px solid #ccc;
	padding-top: 20px;
}



/* === search results === */
#search-filter-toggle {
  /* display: none; */
  margin: 1em 0;
  text-decoration: none;
}

.search-pod {
	background-color: #f0ede9;
	padding: 0 12px;
	margin: 0px 0 20px 0;
	border-radius:4px;
	border: 1px solid #f0ede9;
  	display: block;
}

.search-pod h2 {
	color: #4a5458; 
	font-size: 22px;
	font-weight:500;
	margin-top: 10px;
	padding-top: 15px;
	padding-bottom: 10px;
	border-bottom: 4px solid #ccc;
	/* text-transform: uppercase; */
}

.search-pod form {
	padding:0;
	margin:0;
}

.search-pod a#search-addon {
	text-decoration: none;
}

.search-pod .searchterm_label {
	margin-bottom:0;
	font-weight: 500;
}

.search-pod ul {
	padding-left:10px; 
	/* padding-left: 5px;*/
}

.search-pod li.facet {
	font-weight:600;
}

.search-pod li.facet li {
	font-weight:normal;
}

.search-pod li {
	list-style: none;
}
.search-pod button {
	margin-left:10px;
}

.search-pod .facet-container a {
	text-decoration: none;
}

.search-pod form .form-group {
	margin-bottom: .5rem;
}


/***
.search-pod label {
  font-size: 1.2em;
}
***/

.search-pod fieldset {
	position: relative;
  	border: 1px solid #ccc;
  	padding: 5px;
  	margin-top:10px;
  	margin-bottom:10px;
}

.search-pod legend {
  	border-bottom: medium none;
  	font-size: 1.2em !important;
  	/*font-weight: bold !important;*/
  	/*margin-top: 15px;*/
  	padding: 0 10px;
  	text-align: left !important;
  	width: auto;
}

.search-pod .expander, 
.search-pod h2 button {
    background-color: #666;
    color: #fff;
    float: right;
    height: 1.4em;
    padding: 0;
    position: relative;
    text-align: center;
    width: 1.4em;
    font-size: 1.5em;
    line-height: 1em;
    position: absolute;
    top: 0;
    right: 10px;
}

@-moz-document url-prefix() { 
  .search-pod .expander, 
	.search-pod h2 button {
     top: -30px;
  }
}

.search-pod h2 button {
    float: right;
    margin: -.25em 0 0 0;
    color: #333;
    background-color: #fff;
  }

.search-pod button.btn-default:focus { 
  outline: thin dotted #2294d2 !important;
  background-color:#2294d2 !important;
}

.search-pod button.fullwidth {
	width:100%; 
	margin: 0 10px 10px 0;
}	

.search-pod .facet-chbox-list {
	max-height:250px;
	height:auto;
}

.search-pod .facet-chbox-list label {
	color:#555;
	text-transform:none;
	font-weight:normal;
	margin:0;
}

.search-pod .ghostText {
	color: #999;
	font-style: italic;
	padding-left:10px;
}

.clearSearchSelection > i.fas  {
	margin-left: 6px;
}
.clearSearchTreeSelection > i.fas  {
	margin-left: 6px;
}

ul#currentSearchAllSelections {
	margin-top: 0.5em;
}

ul#currentSearchAllSelections .filterCategory {
	margin-top: 0.7em;
}

ul#currentSearchAllSelections ul {
	margin-top: 0.5em;
}

a#clearAllSelections {
	text-decoration: none;
}

.clearSearchTreeSelection {
	margin: .1rem 0 .1rem 0;
}

/*********************************************************/

.pill-filter-container {
  margin: 1.6em 0;
  padding: 1em;
  width: 100%;
  background-color: #f0ede9;
  border: medium none;
  border-radius: 4px;
  display: block;
}

.search-filterbar {
  margin: 0.75px 0 1.6px;
  padding: 15px 0 8px 0;
  width: 100%;
  background-color: #f0ede9;
  border: medium none;
  border-radius: 4px;
  display: block;
}

.search-filterbar form {
  padding: 0.5em 1em;
  margin:0;
}

.search-filterbar input, 
.search-filterbar select {
    margin-right: 5px;
}

.typeahead-wrap .search-filterbar .typeahead-category {
	 width: 400px;
	 max-width: 100%
}

@media (max-width: 1199px) {
    .form-inline .form-group {
        margin: 5px 0;
    }
}

.modal-body .search-filterbar {
  margin: 0;
}

#search-results .search-filterbar form {
    display: inline;
    height: 2em;
}

#search-results .filterSortControl {
	padding-top: 6px;
}

#search-results .filterQtyControl {
   /* not used */
}

#search-results .filterGoButton {
	margin-left: 2em;
}

.form-inline .has-feedback {
    display: inline-block; 
    margin-left: 5px;
}

/***************** searchResultsContainer ******************/

#searchResultsContainer {
	 /* min-height: 660px; */
}
@media (max-width: 767px) {
	#searchResultsContainer {
		/* min-height: unset; */
	}
}

/****************** pagination js *****************/
.paginationjs-nav {
	color: #666;
}

#search-results h2 {
	color: #4a5458;
}

#search-results ul {
	padding:0;
}
#search-results li.result {
	list-style: none;
	margin-top: 20px;
}

#search-results .search-results-list .title {
	color:#72a0bb;
	font-weight: 600;
	font-size: 18px;
	font-family: "GillSansRegular","Helvetica Neue",Helvetica,Arial,sans-serif;	
}
#search-results .search-results-list a:hover .title {
	text-decoration:underline;
	color:#00498f;
}
#search-results .search-results-list a .result-desc  {
	color:#000;
	font-weight: normal;
	text-decoration:none;
	margin:0;
	font-size: 16px	
}
#search-results .search-results-list .result-metadata {
  color: #656565;
  display: inline-block;
  font-size: 14px;
  margin-bottom: 0;
}
#search-results .search-results-list .result-metadata > span + span {
  border-left: 1px solid #d9d4cc;
  margin-left: 0.75em;
  padding-left: 1em;
}

/* Search Featured Results Styles */
#search-results .search-featured-results {
	border: 1px solid #ccc; /*#f0ede9*/
   border-radius: 8px;
	padding: 0.75em 1.25em 0;
	/* width: 90%; */
	margin-bottom: 20px;
}
#search-results .search-featured-results h4 {
    margin-bottom: 10px;
    color: #4a5458;		/* #004990; */
    font-weight: 500;
    font-size: 22px;
}

#search-results .search-featured-results ul {
	margin-bottom: 15px;
}
#search-results .search-featured-results ul li.result {
	margin-top: 8px;
}
#search-results .search-featured-results ul li.result:first-child {
	margin-top: 0;
}
#search-results .search-featured-results ul li a {
	text-decoration: none;
	color: inherit;
}
#search-results .search-featured-results .title {
	/** font-size: 16px; **/
	font-weight: 500;
}
#search-results .search-featured-results .result-desc {
	line-height: 1.2em;
}
#search-results .search-featured-results .sr_lastline {
	/** font-size: 14px; **/
	font-style: italic;
}

.search-result-group {
  margin: 20px 0 40px 0;
}

/**
.search-result-group ul.results-listing {
	border: 1px solid #cecece; 
   padding: 15px !important;
   border-radius: 3px;
}
ul.results-listing li {
  border-bottom: 1px dotted #dedede;
  padding: 15px 0 5px 0;
}
**/

ul.results-listing li:first-child {
  padding-top: 0;
}

ul.results-listing li:last-child {
  border: none;
}

ul.results-listing li a {
  font-weight: 400;
}

/*
ul.results-listing li a:first-child {
  font-size: 16px;
}
*/

@media (max-width: 979px) {
	#search-results .search-filterbar {
	    padding: 0;
	}
	#search-results .search-filterbar .filterQtyControl {
	    /* not used */
	}
	#search-results .search-filterbar .filterGoButton {
		margin-left: 1em;
	}
	#search-results .search-filterbar form {
		padding-top: 0;
		padding-bottom: 0;
	}
}

@media (max-width: 767px) {
/*	
  #search-filter-toggle {
    display: block;
  }
*/

  .search-filter-options {
    display: none;
  }

  .search-filter-options.active {
    display: block;
  }
}


.search-filter-options label {
   display: inline-block;
	/**		
   font-size: 13px;
	font-family: 'Raleway', sans-serif;
   font-weight: 700;
   letter-spacing: 1px;	
   text-transform: uppercase;	
	**/
   color: #555;
   margin-bottom: 10px;
   cursor: pointer;
}

.search-filter-options .input-group-text {
    background-color: #fff;
}


/*********************************************************/

.btn-primary {
	background-color: #2a3e4c;
	border-color: #243542
}
.btn-primary:hover {
	background-color: #5b86a4;
	border-color: #8caac0;
}
.btn-sm {
	font-size: .75rem
}
.btn-xs {
	font-size: .6rem
	padding: .15rem .5rem;
}


.facet-container .tree-parent-wrap {
	cursor: pointer;
}
.facet-container .tree-parent-wrap:hover {
	text-decoration: underline;
}
.facet-container .tree-parent-wrap > span > svg {
	float: right;
	margin-right: 20px;
	transform: rotate(0deg);
	transition: all .25s;
}
.facet-container .tree-parent-wrap.opened > span > svg {
	transform: rotate(90deg);
	transition: all .25s;
}

.jstree-default .jstree-anchor {
    color: #555;
}
a.jstree-anchor.jstree-disabled {
	opacity: .7;
}
.jstree-default .jstree-disabled>.jstree-icon {
	opacity: .5;
}

.search-pod #currentSearch ul.facet-chbox-list > li {
	width: 50%;
}

@media (min-width: 576px) { 
	.search-pod #currentSearch ul.facet-chbox-list > li {
		width: auto;
		margin-right: 10px;
	}
}



.facet-chbox-list.columns-2 li {
	width: 50%;
	max-width: 50%;
	min-width: 50%;
}
.facet-chbox-list.columns-3 li {
	width: 33.3%;
	max-width: 33.3%;
	min-width: 33.3%;
}
.facet-chbox-list li.disabled {
	opacity: .7;
}

.facet-inner {
    min-height: 75px;
}

.facet-inner.colheight-sm {
   min-height: 95px;	
	height: 95px;
}
.facet-inner.colheight-md {
   min-height: 125px;	
	height: 125px;
}
.facet-inner.colheight-lg {
	min-height: 200px;
	height: 200px;
}


.facet-chbox-list {
	margin-bottom: 0;
}

.bg-info {
	color: #fff;
}

/* search results style */
li.sresult {
	list-style-type: none;
}

li.sresult .sr_title {
	margin-top: 15px;
}
li.sresult a {
    color: #007bff;
    font-size: 16px;
    text-decoration: none;
}

li.sresult .sr_title, 
li.sresult .sr_desc {
   line-height: 1.1em;
	padding-bottom: 5px;	 
}

li.sresult .sr_date {
	font-style: italic;
}

.search-result-group > h2 > i.mr-2.u-line-icon-pro {
	font-size: smaller;
	color: #999;
}

.sr_type {
	text-transform: capitalize;
}
.sr_format {
	text-transform: uppercase; 
}

.sr_lastline {
	color: #666;
} 

li.sresult .sr_title span,
li.result .title span {
	font-size: 0.9em;
}


.search-result-group .sr_lastline .sr_type,
.search-result-group .sr_lastline .sr_bar {
	/* display: block;*/
}

.search-result-group .sr_lastline .sr_type,
.search-result-group .sr_lastline .sr_bar {
	display: none;
}

.search-result-sort-display {
	display: none;
}

/**************************************/
/**  CLEAR/START OVER SEARCH BUTTON  **/
/**************************************/

button.search-clear {
	/*color: #2a3e4c;*/
	color: #4A5457;
	position: absolute;
	border: 1px solid transparent;
	background-color: transparent;
	right: 32px;
	height: 24px;
	/*
	bottom: 10px;
	height: 14px;*/
	margin: auto;
	font-size: 12px;
	cursor: pointer;
	z-index: 10;
}
button.search-clear {
	display: none;
}
button.search-clear:focus, button.search-clear:hover {
    color: #888;
}
button##searchclear {
	top: 15px;
   bottom: 15px;
}

/*************************/
/**   JSTREE OVERRIDES  **/
/*************************/

.facet-container .slimscroll.tree {
	/* width: calc(100% - 15px) !important; */
	width: 96% !important;
}

.facet-container .tree ul.jstree-children {
	padding-left: 0;
}

.facet-container .jstree-node {
	 margin-left: 8px !important
}

.tree-search-wrapper {
	/* border: 1px solid black; */
	width: 94%;	
	padding: 4px 8px 6px 8px;
	margin-bottom: 2px;
	/* text-align: right;*/
	/* margin-right: auto;
	margin-left: auto;*/
	border-bottom: 1px solid #ccc;
}
.tree-search-fld {
	width: 88%;	
	box-shadow:inset 0 0 5px #eee;
	min-width: 100px;
	margin:0;
	padding: 3px 6px;
	border-radius:4px;
	border:1px solid silver;
	font-size: 0.95em;
}

button.tree-search-clear {
	  /* color: #666; */
	 position: relative;
	 float: right;
	 border: 1px solid transparent;
	 background-color: transparent;
	 margin: auto;
	 right: 0;
    top: 0;
	 margin-right: 29px;
    margin-top: -17px;
	 font-size: 11px;
	 cursor: pointer;
	 color: #ccc;
	 display: none;
    z-index: 2;
}

@media (max-width: 768px) { 
	button.tree-search-clear {
		margin-right: 66px;
	   margin-top: -19px;
		font-size: 12px;
	}
}
@media (max-width: 576px) { 
	button.tree-search-clear {
		margin-right: 54px;
		margin-top: -20px;
	}
}
@media (max-width: 320px) { 
	button.tree-search-clear {
		margin-right: 24px;
		margin-top: -20px;
	}
}


/*************************/
/** BOOTSTRAP OVERRIDES **/
/*************************/

#search-results select.form-control-sm:not([size]):not([multiple]) {
    height: calc(1.5rem + 2px);
}
.search-pod .form-control-sm,
#search-results .form-control-sm {
    font-size: .75rem;
    line-height: 1;	
    border-radius: .2rem;
}

.searchFacetCustomMsg {
	font-size: 0.9em;
	font-style: italic;
	display: block;
}