/*	
 *	AMMPA Research Library - Styles.
 *	
 *	©2018 - Peppermint Narwhal Creative, LLC
*/

.research-database-results{ position: relative; }

.research-database-results .item-list ul li.tab{
	float: right;
  padding: 0px 20px;
  font-family: "Helvetica", sans-serif;
  font-size: 14px;
  font-weight: bold;
	color: white;
  background: #0074BD;
  line-height: 30px;
  border: 2px solid #0074BD;
  border-radius: 15px;
  display: block;
  transition: all, 0.3s;
	margin: 12px;
	cursor: pointer;
}
.research-database-results .item-list ul li.tab:hover {
  text-decoration: none;
  color: #0074BD;
  background: #fff;
}
.research-database-results .item-list ul li.tab:hover { border-bottom-color: #969696; }
.research-database-results .item-list ul li.tab.active,
.research-database-results .item-list ul li.tab.active:hover {
  text-decoration: none;
  color: #969696;
	border-color: #969696;
  background: #fff;
}

/*	Tabs	*/
.research-database-results .item-list{
	/*margin: 2em -7% 0 -3%;*/
  padding: 0 7% 0 3%;
	border-bottom: 2px solid #969696;
}
.research-database-results .item-list ul.results-nav{ margin: 0; padding: 0; }
.research-database-results .item-list ul.results-nav li.tab{ 
	float: left;
	width: 250px;
	text-align: center;
	margin: 0 0 -2px;
	border-radius: 15px 15px 0 0;
	border-bottomc-color: transparent;	
	position: relative;
	z-index: 2;
}
.research-database-results .item-list ul.results-nav li.tab.active,
.research-database-results .item-list ul.results-nav li.tab.active:hover{
	border-bottom-color: white;
	margin-left: -2px;
	margin-right: -2px;
	z-index: 1;
}

/* Listings */
.research-database-results .research-database-listing{	
	padding: 2em 0;
  transition: all, 0.3s;
	opacity: 0;
	top: 0;
	height: 0;
	overflow: hidden;
	position: absolute;
	z-index: 0;
}
.research-database-results .research-database-listing.active{ 
	opacity: 1;
	height: auto;
	overflow: inherit;
	position: relative;
	z-index: 1;
}

.research-database-listing table{ font-size: 11px; }

.research-database-listing th:nth-child(odd) a{ font-weight: normal; }
.research-database-listing th:nth-child(odd){ background-color: #A9A9A9; color: black; }
.research-database-listing th:nth-child(odd) a{ color: black; }
.research-database-listing th:nth-child(even){ background-color: #0071A7; color: white; }
.research-database-listing th:nth-child(even) a{ color: white; }

.research-database-listing tr{ border: 4px solid white; }
.research-database-listing tr:nth-child(odd) > td:nth-child(odd){ background-color: #edf6fb; }
.research-database-listing tr:nth-child(odd) > td:nth-child(even){ background-color: #d1e7f2; }
.research-database-listing tr:nth-child(even) > td:nth-child(odd){ background-color: #fbfbfb; }
.research-database-listing tr:nth-child(even) > td:nth-child(even){ background-color: #eaf3f8; }


.research-database-listing thead,
.research-database-listing tbody{ border: none; }
.research-database-listing th{ padding: 0 1.5em; vertical-align: middle; height: 4em; }
.research-database-listing td{ padding: 1em 1.5em; vertical-align: top; }
.research-database-listing th:first-child,
.research-database-listing td:first-child{ padding-left: 0.7em; }
.research-database-listing th:last-child,
.research-database-listing td:last-child{ padding-right: 0.7em; }

#rp-year-column-header{ width: auto; }

.research-database-listing.publication-list th:first-child{ width: 36%; }
.research-database-listing.publication-list th{ width: 16%; }


.research-database-listing.project-list th.project-name,
.research-database-listing.project-list th.description{ width: 20%; }
.research-database-listing.project-list th.start-date,
.research-database-listing.project-list th.end-date,
.research-database-listing.project-list th.alliance-lead-institutions{ white-space: nowrap; }
.research-database-listing.project-list th.papers-presentations{ width: 20%; min-width: 200px; }

.research-database-listing th img{ display: none; }
.research-database-listing th a.active .new-arrow {
	border-right: 5px solid transparent;
	border-left: 5px solid transparent;	
	display: inline-block;
	vertical-align: middle;
	border-bottom: 5px solid black;
	margin-left: 0.5em;
}
.research-database-listing th:nth-child(even) a.active .new-arrow { border-bottom-color: white; }
.research-database-listing th a.active .new-arrow.asc {
	border-bottom: none;
	border-top: 5px solid black;	
}
.research-database-listing th:nth-child(even) a.active .new-arrow.asc { border-top-color: white; }



/*	Clean-up submission form	*/
#edit-field-year fieldset,
#edit-field-start-date fieldset,
#edit-field-end-date fieldset{
	margin: 0;
	padding: 0;
	border: none;
	outline: none;
}
#edit-field-year fieldset > legend,
#edit-field-start-date fieldset > legend,
#edit-field-end-date fieldset > legend{ display: none; }
#edit-field-year .date-padding,
#edit-field-year .form-item,
#edit-field-start-date .date-padding,
#edit-field-start-date .form-item,
#edit-field-end-date .date-padding,
#edit-field-end-date .form-item{
	padding: 0;
	float: none;
	margin: 0;
	display: block;
}
#edit-field-start-date .date-clear,
#edit-field-end-date .date-clear{ clear: none; }

#manual-contact-wrapper{ display: none; }

.node-form #reject-button,
.node-form #reject-message{ display: none; }
.node-form #reject-button.show,
.node-form #reject-message.show{ display: block; }
.node-form #reject-message-trigger.hide{ display: none; }
.node-form #reject-message{ clear: both; }



/*	Submission listing	*/
table.research-database-submissions{ font-size: 0.9em; }
table.research-database-submissions td{ padding: 0 0.25em; vertical-align: top; }
table.research-database-submissions td.status{ font-weight: bold; }
table.research-database-submissions td.status .date{ float: right; font-size: 0.9em; }
table.research-database-submissions td.quick-view{ font-size: 0.9em; }
table.research-database-submissions td.rejection-message{ padding: 0 1em 0.5em; }
