/* Override any theme's attempt to force field/option pairs to not be side-by-side. */
#content .inputs {
	clear: none !important;
}

.table-view-layout-option select {
	width: 160px;
}

.table-view-limit-option select {
	width: 60px;
}

#no-results {
	height: 300px;
}

#no-results p {
	position: absolute;
	margin-top: 0px;
}

#search-filter-form {
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

#search-filter-form .advanced-search-terms {
	margin-top:8px;
}

#content select{
	border-radius: 5px !important;
}

#content input{
	border-radius: 5px !important;
}

#content button{
	border-radius: 5px !important;
}

#search-filter-form input[type=text] {
	border: 1px solid #d8d8d8;
	box-shadow: 0 0 .25em #d6d6d6 inset;
	display: inline-block;
	font-size: 14px;
	height: 30px;
	line-height: 20px;
	max-width: 100%;
	min-height: 2em;
	padding: 0.375em;
	width:100%;
}

#search-filter-form label {
	font-size: 16px;
	margin-right: 0px;
	margin-bottom: 4px;
}

.search-radio-buttons label,
.search-form-view-selector label {
	clear: left;
	float: left;
	font-size: 14px;
	font-weight: normal;
	line-height: 10px;
	padding: 0 0 8px 24px;;
}

#avantsearch-primary .search-radio-buttons {
	line-height: 18px;
	margin: 0 0 8px 0;
	padding: 8px 0;
}

#avantsearch-primary .search-radio-buttons label {
	padding-left: 0;
}

#avantsearch-secondary h2 {
	color:#555;
}

#avantsearch-secondary .search-radio-buttons,
.search-form-view-selector {
	margin-bottom: 8px;
	padding: 8px 0;
}

/* Add field button */
.add_search {
	margin: 0 0;
}

/* Remove field button */
.remove_search {
	margin: 8px 0 16px 0;
}

.remove_search:after {
	content: "";
}


/* === Advanced Search Form ===
--------------------------------------------------------- */
/* Add a little space between a radio button or checkbox and its label */
input[type="radio"] {
  margin-right: 6px;
}

input[type="checkbox"] {
  margin-left: 6px;
}

#search-filter-form {
	margin-left: 0;
	width: 100%;
}

.info-terms{
	display: none;
	font-size: small;
}

.search-autocomplete{
	background-color: white;
	overflow-y: scroll;
	max-height: 300px;
}

/* #avantsearch-container {
	display: grid;
	grid-template-columns: 500px auto;
} */

#avantsearch-site-toggle {
	font-size: 115%;
	padding: 8px 0;
}

#avantsearch-site-toggle a {
	font-weight: bold;
	text-decoration: underline;
}

#avantsearch-site-stats {
	font-size: 115%;
	padding-bottom: 16px;
	text-decoration: underline;
}

#avantsearch-site-stats-help {
	font-size: 110%;
	text-decoration: underline;
}

#avantsearch-primary {
	/* grid-column: 1; */
	box-sizing: border-box;
	margin-top: 0;
	margin-left: 24px;
}

#avantsearch-secondary {
	/* grid-column: 2; */
	border-left: none;
	margin-top: 12px;
	padding: 0 0 1.5em 2em;
	word-wrap: break-word;
}

/* Format the boxed section containing one set of search criteria */
.search-form-section {
	-webkit-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
	-moz-box-shadow:    0 4px 8px 0 rgba(0, 0, 0, 0.2);
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
	border-top: 1px solid #eee;
	float: left;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	line-height: 28px;
	margin: 12px 0 12px 0;
	padding: 12px 16px 12px;
	width: 100%;
	box-sizing: border-box;
}

.search-form-section .avantsearch-label-column {
	float: left;
	width: 24%;
	text-align: right;
	padding-right: 1em;
}

.search-form-section .avantsearch-option-column {
	float: left;
	margin-left: 0;
	width: 70%;
}

.search-form-section .inputs {
	line-height: 28px;
	min-height: 3em;
}

.search-help {
	border: solid 1px #ccc;
	padding: 12px 12px;
	background-color: #eee;
	margin-right: 20px;
	/* max-width: 500px; */
}

.search-help .help-title {
	font-weight: bold;
	font-size: 18px;
	margin-bottom: 8px;
}

.search-help .help-intro {
	font-size: 14px;
}

.search-help > ul {
	padding-left: 0px;
	font-size:13px;
	font-weight: normal;
	margin-top: 4px;
	margin-bottom: 6px;
	list-style-type: none;
}

.search-help > ul > li  {
	padding-top: 14px;
	padding-left: 16px;
}

.search-help > ul > li > span {
	background-color: #f7f7f7;
	padding: 2px 4px;
	font-weight: bold;
}

#search-stats-table {
	text-align: right;
	font-size: 14px;
	width: auto;
}

#search-stats-table-header {
	text-align: center;
	vertical-align: bottom;
}

#search-stats-table tbody > tr > td {
	padding-left: 24px;
}

.contributor-table-organization {
	text-align: left;
	width: 300px;
}

.search-entry:first-of-type .advanced-search-joiner {
  	display: none;
}

.advanced-search-joiner {
  	width: 15%;
}

.avantsearch-year-range > label {
	font-weight: normal;
}

.avantsearch-collection{
	display: flex;
	flex-direction: column;
}

/* Add field button */
.add_search {
	/* background-color: #52690c; */
	border: 1px solid #52690c;
	clear:right;
	margin-top:1em;
}



.add_collection {
	/* background-color: #52690c; */
	border: 1px solid #52690c;
	clear:right;
	margin-top:1em;
}

.collection-entry{
	display: flex;
	justify-content: flex-start;
	flex-wrap: wrap;
	margin-bottom: 1rem;
}


.remove_collection {
	border: 1px solid black;
	height: 36px;
	margin-left: 10px;
}

.remove_collection:hover {
	background-color: #dfdfdf;
}

.add_search:hover. .remove_search:hover {
	background-color: #5f5f5f;
	border: 1px solid #5f5f5f;
}

#year-start,
#year-end {
	width: 154px !important;
	margin-left: 4px;
	margin-right: 16px;
	cursor: pointer;
}

.search-entry:first-of-type select {
  	width:48%;
}

/* Make the width of the select boxes that appear after the joiner dropdown narrower */
.search-entry:not(:first-of-type) select:not(:first-of-type) {
  	width: 40%;
}

/* Date fields */
#date-start,
#date-end {
	margin-right: 1px;
	width: 15%
}

#ui-datepicker-div{
	background-color: white !important;
}

#search-button {
	margin-top: 8px;
	float: right;
}

/* Make the search button appear at the top of the secondary column. */
#search-button input {
	margin-top: 0;
}

.search-radio-buttons,
.search-form-view-selector {
	margin-top: 2px;
}

/* Display 'Clear all search filters' graphic before link */
.search-form-reset-button::after {
	content: "\f00d";
	font-family: "FontAwesome";
	font-size: 16px;
	color: #777;
}

/* Next styles are for 'Clear all search filters' link and 'Go to Advanced Search' link */
.search-form-reset-button a:link,
.search-form-reset-button a:visited {
	color: var(--link-color);
	text-decoration: none;
}

.search-form-reset-button a:hover {
	color: var(--link-hover-color);
}

.search-form-reset-button {
	float: left;
	padding-top: 4px;
}

.back-to-form-button{
	width: fit-content;
	font-size: 13px;
	background-color: #e8e8e8;
	border-color: #bababa;
	color: #666666;
	border: 1px solid #aaa;
	border-radius: 5px;
	padding: 0 6px;
	margin-top: 5px;
	margin-bottom: 10px;

}

/* === Search Results - Common to all Views ===
--------------------------------------------------------- */

.search-result {
	padding-left:4px;
}

.search-relationship-table {
	table-layout: fixed;
	width: 100%;
}

.search-relationship-type {
	width: 110px;
	text-align: right;
	padding-right: 8px !important;
}

.search-relationship-item {
	width:325px;
}

.search-td-relationship {
	width: 55%;
}

.search-contributor {
	color: #777777;
	font-size:12px;
}

.search-title-aka,
.search-relationship,
.search-related-item {
	margin-top: 2px;
}

.search-title-aka {
	color: #777;
}

.search-files-only
{
	color: #777777;
	font-weight: bold;
}

#search-results-title {
	margin: 0 0 8px 0;
	color: #222;
	font-size:15px;
	font-weight:bold;
}

.search-results-message-info {
	font-weight: bold;
	color: #d42e2e;
}

#search-results-title span {
	padding-top: 6px;
}

/* The text that describes the current set of filters */

/* Item filters display */
.search-filter {
	color: #444;
	font-size:13px;
	font-weight: bold;
	padding: 4px 8px 4px 8px;
	margin-right: 6px;
	margin-bottom: 4px;
	display: inline-block;
	background-color: #d1e4f2;
	border: 1px solid #A8B7C4;
	border-radius:5px;
}

.search-filter.search-facet {
	background-color: #d1e4f2;
	border: 2px solid #1a77bd;
}

a.search-reset-link {
	font-size: 12px;
	font-weight: bold;
	padding-left: 6px;
}

a.search-reset-link:link,
a.search-reset-link:visited {
	color: #999;
}

a.search-reset-link:hover {
	color: red;
}


/* Position buttons on search results view */

#search-selector-bar {
	padding: 8px 0;
	margin-left: 2px;
	height: 40px;
}

#search-selectors {
	position:absolute;
}

.search-selector  {
	float:left;
	height: 100%;
	margin-right: 8px;
	margin-bottom: 4px;
}

#search-site-button {
	background-color: #2f99db;
	color: white;
}

.search-selector-button {
	font-size: 13px;
	background-color: #e8e8e8;
	border-color: #bababa;
	color: #666666;
	border-radius: 3px;
	padding: 0 4px;
}

/* Don't show the selector dropdown values on the narrowest devices. */
.search-selector-button-value {
	display: none;
	font-weight: bold;
}

.search-selector-button:hover {
	background-color: #dbdbdb;
}

.search-selector-button {
	text-align: left;
}

.search-selector-button:after {
	content: "\f0d7";
	font-family: "FontAwesome";
	padding-left: 6px;
	float: right;
}

#search-filter-button.images-only-fitler {
	background-color: #d1e4f2;
	border-color: #A8B7C4;
}

.search-selector-options li a {
	background-color: #52690c;
}

.search-selector-options li a.selector-normal:hover {
	background-color: #ccc;
}

.search-selector-options {
	position: relative;
	z-index: 250;
	-webkit-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
	-moz-box-shadow:    0 4px 8px 0 rgba(0, 0, 0, 0.2);
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.search-selector-options ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

.search-selector-options li {
	border-bottom: 1px solid #666;
	position: relative;
}

.search-selector-options li a {
	-moz-appearance: none;
	-webkit-appearance: none;
	border: 0;
	-moz-border-radius: 0;
	-webkit-border-radius: 0;
	border-radius: 0;
	cursor: pointer;
	display: inline-block;
	height: auto;
	line-height: 21px;
	margin: 0;
	padding: 2px 8px;
	width: 100%;
	font-size: 13px;
	font-weight: bold;
}

/* Default colors for selector options dropdown items */

.search-selector-options li a.selector-normal {
	background-color: #ddd;
	color: #666;
	border: 0;
}

.search-selector-options li a.selector-normal:hover {
	background-color: #ddd;
	color: #222;
	border: 0;
}

.search-selector-options li a.selector-selected {
	background-color: #aaa;
	color: #fff;
	border: 0;
}

.search-option-shared::before,
.search-option-shared-option::after,
.search-option-shared {
	content: "\f1e0";
	font-family: "FontAwesome";
	font-weight: normal;
	font-size: 11px;
	color: #185893;
}

.search-option-shared::before {
	padding-right: 8px;
}

.search-option-shared-option::after {
	padding-left: 12px;
}

/* === Pagination controls for Table View ===
--------------------------------------------------------- */
.search-pagination-nav {
	float: right;
	position: relative;
	height: 18px;
}

.search-pagination-nav ul {
  	background-color: #fff;
	clear: both;
	display: inline-block;
  	margin: 0 0 .5em 0;
	padding-left: 0;
	vertical-align: top;
}

.search-pagination-nav:not(:first-of-type) {
	margin-top: .5em;
}

.search-pagination-next a:hover::after,
.search-pagination-previous a:hover::after {
	color: var(--link-hover-color);
}

.search-pagination li {
	color: #666666;
	float: left;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 14px;
	font-weight: normal;
	height: 25px;
	line-height: 22px;
	list-style-type: none;
	min-width: 25px;
	text-align: center;
}

.search-pagination li:last-child {
  	margin-right: 0;
}

.search-pagination li a {
	background: #f8f8f8;
	background: -webkit-linear-gradient(top, #f8f8f8, #e2e2e2);
	background: -moz-linear-gradient(top, #f8f8f8, #e2e2e2);
	background: -o-linear-gradient(top, #f8f8f8, #e2e2e2);
	background: linear-gradient(to bottom, #f8f8f8, #e2e2e2);
	border: 1px solid #D8D8D8;
	-webkit-box-shadow: 1px 1px 2px rgba(0,0,0,.1), 0 -1px 0 0 rgba(0,0,0,.07) inset;
	-moz-box-shadow: 1px 1px 2px rgba(0,0,0,.1), 0 -1px 0 0 rgba(0,0,0,.07) inset;
	box-shadow: 1px 1px 2px rgba(0,0,0,.1), 0 -1px 0 0 rgba(0,0,0,.07) inset;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	display: block;
	height: 100%;
}

.search-pagination-next {
	margin: 0 0 0 8px;
}

.search-pagination-next a,
.search-pagination-previous a {
	font-weight: bold;
	height: 24px;
	padding: 0 10px;
	position: relative;
	text-indent: -9999px;
	width: 24px;
}

.search-pagination-next a:after {
	content: "\2192";
	text-indent: 0;
}

.search-pagination-next a:after,
.search-pagination-previous a:after {
	color: var(--link-color);
	font-family: "FontAwesome";
	height: 24px;
	left: 0;
	position: absolute;
	text-align: center;
	top: 0;
	width: 24px;
}

.search-pagination-previous {
	margin: 0 8px 0 0;
}

.search-pagination-previous a:after {
	content: "\2190";
	text-indent: -3px;
}

.search-pagination .search-page-input input[type=text] {
	border: .07143em solid #ddd;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	display: inline-block;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 14px;
	height: 24px;
	line-height: 18px;
	margin: 0 5px 0 0;
	max-width: 100%;
	min-height: 1.9em;
	padding: 0;
	text-align: center;
	width: 28px;
}

/* === SQL Search Results - Table View ===
--------------------------------------------------------- */
.search-results-detail {
	display: grid;
	border-top: 1px dotted;
	grid-template-columns: 1fr;
	grid-gap: 8px;
	grid-template-areas:
		"title"
		"thumbnail"
		"metadata"
		"description";
}

.item-image {
	grid-area: thumbnail;
}

.search-results-metadata {
	grid-area: metadata;
	display: grid;
	grid-template-columns: 100%;
	grid-auto-rows: min-content;
	grid-gap: 2px;
}

.search-results-metadata-row {
	display: grid;
	grid-template-columns: 90px 1fr;
	grid-gap: 8px;
	grid-template-areas:
			"elementcol	valuecol";
}

.search-results-metadata-element {
	grid-area: elementcol;
	text-align: right;
}

.search-results-metadata-text {
	grid-area: valuecol;
	color: #000;
}

.search-results-metadata-text b{
	background-color: yellow;
}

.search-results-metadata-text ul,
td.search-result ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

.search-results-metadata-text li,
td.search-result ul li {

	padding-bottom: 2px;
}

td.search-result ul li {
	margin-right: 16px;
}

.search-results-metadata-text ul li.multiple-values,
td.search-result ul li.multiple-values {
	padding-top: 0px;
	border-top: solid 1px #dedede;
}

.search-results-metadata-element,
.search-results-detail-element {
	color: #333;
	font-variant: small-caps;
	text-decoration: underline;
}

.search-results-metadata div {
	padding-bottom: 2px;
}

.search-results-title {
	grid-area: title;
}

.detail-description {
	grid-area: description;
	padding: 0 8px;
}

#search-table-view {
	border-top: 1px solid #e8e8e8;
}

#search-table-view tr {
	display: flex;
	flex-direction: column;
	width: 100%;
}



#search-table-view tbody{
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

#search-table-view td, #search-table-view th {
    vertical-align: top;
}

/* To stripe the search results table rows */
/*#search-table-view tbody tr:nth-child(odd) {
  	background: #f6f6f6;
}*/

#search-table-view td {
	width : 100%;
	font-size:90%;
}

#search-table-view a:link,
#search-table-view a:visited {
	text-decoration: underline;
}

#search-table-view a:hover {
	color: var(--link-hover-color);
}

.search-td-image img,
.search-td-image-fallback img
{
	margin: 2px 12px 4px 4px;
	max-width: 100%;
	max-height: 200px;
	border: 1px solid #ccc;
	padding: 3px;
	background-color: #fff;
}

.search-td-image-fallback img {
	width: 70px;
}

div.grid-view-cell .fallback-image {
	width: 70px;
}

.item-preview .item-img.fallback-image {
	width: 100px;
}

.search-td-image .item-preview-header {
	padding-left: 8px;
	width: 140px;
}

.search-td-title-detail {
	margin-top: 4px;
	padding-left: 4px;
}

.search-td-title {
	width: 350px;
}

.search-td-date {
    width: 80px;
}

.search-results-title {
	border-bottom: 1px dotted #ccc;
	font-size: 120%;
	padding-left: 8px;
}

.search-results-title a b{
	font-size: large;
}

.search-results-detail-table {
	margin: 0 0 8px 0;
}

.search-results-detail-table tr td {
	border: none;
}

.search-results-detail-col1,
.search-results-detail-col2 {
	width: 35%;
}

.search-results-detail-col3 {
	width: 35%;
}

.search-results-detail-col2,
.search-results-detail-col3 {
	padding-left: 6px;
}

.search-results-detail-col3 {
	padding-right: 6px;
}

.search-results-detail-row {
	background-color: transparent !important;
}

.search-results-detail-row td
{
	font-size: 85% !important;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	padding-bottom: 0px !important;
	padding-top: 0px  !important;
}

.search-more-text {
	display: none;
}

.search-show-more {
	color: var(--link-color);
	cursor: pointer;
}

.grid-view {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
}

.grid-view-cell {
	padding: 0 8px 12px 8px;
}

.grid-view-cell .element-text {
	font-size: 13px;
}

.grid-view-cell .contributor-id {
	color: #000;
	font-weight: normal;
	font-size: 11px
}

.grid-view-cell .item-img img {
	background: #fff;
	border: 1px solid #ccc;
	box-shadow: 4px 4px 6px 0 rgba(0,0,0,0.25);
	box-sizing:border-box;
	padding: 2px;
	max-height: 200px;
	max-width: 100%;
}

.grid-view-cell a:link,
.grid-view-cell a:visited {
	color: var(--link-color);
	text-decoration: none;
}

.grid-view-cell a:hover {
	color: var(--link-hover-color);
}

/* === Search Results - Index View ===
--------------------------------------------------------- */
/* The whole index view */
#search-index-view-headings {
	clear: both;
	column-count: 1;
	margin-bottom: 12px;
}

/* Index letter heading */
.search-index-view-heading {
	background: #f8f8f8; /* default for browsers w/o gradients */
	background: -webkit-linear-gradient(to right, #e2e2e2, #f8f8f8, #ffffff);
	background: -moz-linear-gradient(to right, #e2e2e2, #f8f8f8, #ffffff);
	background: -o-linear-gradient(to right, #e2e2e2, #f8f8f8, #ffffff);
	background: linear-gradient(to right, #e2e2e2, #f8f8f8, #ffffff);
	border-radius: 3px;
	color: #777;
	margin-top:16px;
	margin-bottom: 8px;
	padding: 4px 0 4px 8px;
}

.search-index-view-heading:first-of-type {
	margin-top: 0;
}

/* An individual item in the index */
.search-index-view-record {
	font-size: 95%;
	margin-top:0px;
	margin-bottom: 6px;
	margin-left: 12px;
}

.search-index-view-record a:hover {
	color: var(--link-hover-color);
}

.search-index-view-record a:visited {
	color: var(--link-color);
}

/* count */
.search-index-view-count {
	color: #777;
}

/* Search List Index - letters across the top and bottom */
.search-index-view-index {
    float: none;
    margin-bottom: 16px;
    height: 25px;
	font-size: 12px;
	display: none;
}

.search-index-view-index li {
	color: #666666;
	float: left;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	height: 25px;
	line-height: 22px;
	list-style-type: none;
	min-width: 25px;
	padding-right: 2px;
	text-align: center;
}

.search-index-view-index li:last-child {
  	margin-right: 0;
}

.search-index-view-index li a {
	background: #f8f8f8;
	background: -webkit-linear-gradient(top, #f8f8f8, #e2e2e2);
	background: -moz-linear-gradient(top, #f8f8f8, #e2e2e2);
	background: -o-linear-gradient(top, #f8f8f8, #e2e2e2);
	background: linear-gradient(to bottom, #f8f8f8, #e2e2e2);
	border: 1px solid #D8D8D8;
	border-radius: 3px;
	-webkit-box-shadow: 1px 1px 2px rgba(0,0,0,.1), 0 -1px 0 0 rgba(0,0,0,.07) inset;
	-moz-box-shadow: 1px 1px 2px rgba(0,0,0,.1), 0 -1px 0 0 rgba(0,0,0,.07) inset;
	box-shadow: 1px 1px 2px rgba(0,0,0,.1), 0 -1px 0 0 rgba(0,0,0,.07) inset;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	height: 100%;
	padding: 0 7px;
}

.search-index-view-index li a:hover {
    background-color: #c2c2c2;
	background: -webkit-linear-gradient(top, #f8f8f8, #c2c2c2);
	background: -moz-linear-gradient(top, #f8f8f8, #c2c2c2);
	background: -o-linear-gradient(top, #f8f8f8, #c2c2c2);
	background: linear-gradient(to bottom, #f8f8f8, #c2c2c2);
}

.search-index-view-index li a:visited {
	color: var(--link-color);
}

.search-index-view-index li span {
    border: 1px solid transparent;
}

#search-index-view-index-top ul,
#search-index-view-index-bottom ul {
	margin: 0;
	padding-left: 0;
}


/* === Search Results - Tree View ===
--------------------------------------------------------- */
/* The whole index view */
.search-tree-headings {
	margin-left: 24px;
}

.search-tree-headings ul {
	border-left: 1px dotted #aaa;
	cursor: default;
	list-style-type: none;
	margin: 0 0 0 16px;
	padding: 0;
	position: relative;
}

.search-tree li {
  	margin: 0 0 0 10px;
  	position: relative;
  	padding: 3px 0 3px 2px;
}

/* For hiding sub-tree */
.search-tree ul {
  	display: none;
}

/* extend a line to the list item */
.search-tree li:before {
  	border-left: none;
  	border-top: 1px dotted #aaa;
  	content: ' ';
  	height: 1px;
  	left: -9px;
  	position: absolute;
  	top: 12px;
  	width: 10px;
}

/* erase all lines for last item */
.search-tree li:last-child:after {
  	background-color: white;
  	bottom: 0;
 	 content: ' ';
  	left: -13px;
  	position: absolute;
  	top: 17px;
  	width: 7px;
}

.search-tree a:hover {
	color: var(--link-hover-color);
}

.search-tree a:visited {
	color: var(--link-color);
}

/* count and empty entries in tree */
.search-tree span,
.search-tree-empty {
	color: #777;
}

/* add expander widget */
.search-tree .expander {
  	background: #fff url(../images/tree-expander.png) no-repeat scroll;
  	background-position: -64px -4px; /* Position to the plus symbol in the image png */
  	cursor: pointer;
  	height: 9px; width: 9px;
  	left: -15px;
 	position: absolute;
  	top: 8px;
}

.search-tree .expander:hover {
	background-color: #ccc;
}

.search-tree .expander.expanded {
	background-position: -78px -4px; /* Position to the minus symbol in the image png */
}

.search-tree ul.expanded {
	display: block;
}

/* Search results header row */

#search-table-view th {
	color: #29536b;
	font-size: 14px;
	font-variant: small-caps;
	font-weight: bold;
	padding: 0 0 2px 4px;
}

#search-table-view th a:after {
	width: 10px;
	height: 10px;
	display: inline-block;
	line-height: 10px;
	margin: 0 0 0 5px;
	content: url('../images/placeholder.png');
}

#search-table-view th.desc a:after {
	content: url('../images/sorted-desc.png');
}

#search-table-view th.asc a:after {
	content: url('../images/sorted-asc.png');
}

#search-table-view th a:hover:after {
	content: url('../images/asc.png');
}

#search-table-view th.asc a:hover:after {
	content: url('../images/desc.png');
}

#search-table-view th.desc a:hover:after {
	content: url('../images/asc.png');
}

#search-table-view th a:link,
#search-table-view th a:visited {
	color: #29536b;
}

#search-results {
	margin:12px 0;
}

#search-metadata {
	margin-bottom: 0;
	margin-top: 0;
}

#search-metadata .search-item-row {
	border: 0 none;
	padding-top: 0;
}

/* Relationships View */

.relationships-table-view .search-td-identifier {
	padding-right: 8px;
}

.relationships-table-view .search-td-title {
	width: 30%;
}

.relationships-table-view .search-td-title .item-preview-header a {
	padding-right: 106px;
}

.relationships-table-view .search-td-title .item-preview-header span {
	visibility: hidden;
}

.relationships-table-view .search-td-title .item-img,
.relationships-table-view .search-td-title .element-text {
	width: 180px;
}

.relationships-table-view .search-td-title .item-img,
.relationships-table-view .search-td-title .item-img img {
	max-height: none;
}

.relationships-table-view .search-td-relationship {
	padding-left: 20px;
	width: 64%;
}

#elasticsearch-results-container {
	display: grid;
	grid-template-columns: 1fr;
	grid-template-areas:
			"title"
			"message"
			"filter"
			"facets"
			"results"
			"bottom";
}

#sqlsearch-results-container {
}

#search-results-title {
	grid-area: title;
}

#search-filters-message {
	grid-area: message;
}

#search-selector-bar {
	grid-area: filter;
}

#search-facets {
	grid-area: facets;
}

#search-facet-sections {
	display: none;
}

#search-facet-title {
	display: none;
}

#elasticsearch-results {
	grid-area: results;
}

#search-table-view {
	grid-area: results;
}

#search-pagination-bottom {
	grid-area: bottom;
	margin-top: 6px;
	margin-bottom: 6px;
}

#search-facet-button {
	display: block;
}

/* Don't show these selectors on the narrowest devices. */
#search-layout-selector {
	display: none;
}

#search-sort-selector {
	display: none;
}

.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	justify-content: center;
	align-items: center;
	display: none;
	z-index: 1000;
}

.loader {
	position: sticky;
	top: 50%;
	left: 50%;
	width: 48px;
	height: 48px;
	border: 5px solid black;
	border-bottom-color: transparent;
	border-radius: 50%;
	display: inline-block;
	box-sizing: border-box;
	animation: rotation 1s linear infinite;
}

@keyframes rotation {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

@media screen and (min-width: 500px) {
	/* Display search selectors that are hidden on the narrowest devices. */
	#search-layout-selector {
		display: block;
	}

	#search-sort-selector {
		display: block;
	}

	#search-filter-selector {
		display: block;
	}

	.grid-view {
		grid-template-columns: 1fr 1fr 1fr;
	}
}

@media screen and (min-width: 600px) {
	#elasticsearch-results-container {
		grid-template-columns: minmax(220px, 12%) 1fr;
		grid-template-areas:
				"title	 title"
				"message message"
				"filter	 filter"
				"facets	 results"
				".		 bottom";
	}

	.search-results-detail {
		grid-template-columns: minmax(140px, 25%) 1fr;
		grid-template-areas:
				"title	title"
				"thumbnail metadata"
				"description description";
	}

	.search-results-metadata-row {
		grid-template-columns: 140px 1fr;
	}

	#search-facet-sections {
		display: block;
	}

	#search-facet-title {
		display: block;
	}

	#search-facet-button {
		display: none;
	}
}

@media screen and (min-width: 825px) {
	/* Display the value of search selector dropdowns. At narrower widths, values are hidden to save horizontal space. */
	.search-selector-button-value {
		display: inline-block;
	}

	.grid-view {
		grid-template-columns: 1fr 1fr 1fr 1fr;
	}
}

@media screen and (min-width: 960px) {
	.search-results-detail {
		grid-template-columns: max(15%,50px) 1fr 1fr;
		grid-gap: 8px;
		grid-template-areas:
				"title 	   title	title"
				"thumbnail metadata description";
	}

	#search-index-view-headings {
		column-count: 2;
	}

	/* Only show alphabet search list index on wider devices */
	.search-index-view-index {
		display: block;
	}

	.grid-view {
		grid-template-columns: repeat(5, 1fr);
	}
}

@media screen and (min-width: 1200px) {
	.grid-view {
		grid-template-columns: repeat(6, 1fr);
	}
}

@media screen and (min-width: 1400px) {
	.grid-view {
		grid-template-columns: repeat(7, 1fr);
	}
}

@media screen and (min-width: 1600px) {
	.search-results-detail {
		grid-template-columns: minmax(140px, 15%) 1fr 1fr;
	}

	.grid-view {
		grid-template-columns: repeat(8, 1fr);
	}
}
@media screen and (min-width: 1800px) {
	.grid-view {
		grid-template-columns: repeat(8, 1fr);
	}
}

@media screen and (min-width: 2000px) {
	.grid-view {
		grid-template-columns: repeat(10, 1fr);
	}
}

@media screen and (min-width: 2200px) {
	.grid-view {
		grid-template-columns: repeat(11, 1fr);
	}
}

@media screen and (min-width: 2400px) {
	.grid-view {
		grid-template-columns: repeat(12, 1fr);
	}
}

/* === CSS for Width less than 844px ===
--------------------------------------------------------- */
@media screen and (max-width: 844px) {
	.add_search {
		clear: both;
		float: left;
	}

	#search-entry .advanced-search-joiner {
	    	width: 30%;
	}
}

/* === CSS for Width between 844 and 768px (Tablet Portrait) ===
--------------------------------------------------------- */
@media screen and (max-width: 768px) {
	#avantsearch-container {
		grid-template-columns: 400px auto;
	}

	.search-form-section .avantsearch-option-column {
		margin-left: 0;
		width: 100%;
	}
}

/* === CSS for Width < 600px ===
--------------------------------------------------------- */
@media screen and (max-width: 600px) {
	#avantsearch-secondary {
		grid-column: 1;
	}

	.search-td-title {
		width: 100px;
	}

	#search-entry .advanced-search-joiner {
		width: 30%;
	}

	#search-form-section {
		width: 100%;

	}
	/* Advanced Search form */
	#search-filter-form .eight.columns {
		width: 92%;
	}
}

/* === CSS for Width < 480px ===
--------------------------------------------------------- */
@media screen and (max-width: 480px) {
	.search-entry {
		margin-bottom: 1.5em;
	}

	.search-entry select,
	.search-entry input[type=text] {
		display: block;
		width: 100%;
	}

	.search-entry:first-of-type select {
	  width:100%;
	}

	.search-entry:not(:first-of-type) select:not(:first-of-type) {
		width:100%;
	}

	/* Advanced Search form */
	.search-filter-form .seven.columns {
		width: 95%;
	}

	.search-filter-form .avantsearch-label-column,
	.search-filter-form .avantsearch-option-column {
		width: 100%;
	}

	.search-filter-form input[type=text] {
		width: 100%;
	}
}

