/* 
---------------------------------------------------------------------------------------------
Title: 			CSUSM Search Stylesheet
Description:	Defines content styles for campus search 
Author:			IITS ARY
Date:			07/16/2018

Revisions:
- 7/16/18 Migrate to new SB Tool
--------------------------------------------------------------------------------------------
*/

/* GENERAL styles */

.gsc-control-cse table tr.odd, .gsc-control-cse table tr.alt, .gsc-control-cse table tr:nth-of-type(odd), .gsc-control-cse table {
	background-color:white !important;
	border:none !important;
	font-family:"Source Sans Pro", Helvetica, Arial, sans-serif !important;
	font-size:.7rem !important;
	margin-bottom:0 !important;
}

.gsc-control-cse table b {
	font-weight:800;
}

.gs-visibleUrl.gs-visibleUrl-long {
	color: #008000 !important;
	font-size: 14px !important;
    text-decoration: none !important;
    font-family: "Source Sans Pro", Helvetica, ​Arial, ​sans-serif !important;
}

.gs-snippet.gs-bidi-start-align span {
	
	font-size:15.3px;
}

.gsc-resultsHeader {
	visibility:collapse;
}

.gs-title, .gs-title b {
	font-family:"Source Sans Pro", Helvetica, ​Arial, ​sans-serif !important;
	min-height:1.3rem !important;
	height:auto !important;
	font-size:1rem !important;
	color: #0078CC !important;
    line-height: 1.3rem !important;
    text-decoration: none !important;
    /*font-weight: 600 !important;*/
}

.gsc-webResult.gsc-result.gsc-promotion, .gsc-webResult.gsc-result.gsc-promotion:hover{
	background:none !important;
	border-bottom:1px solid #d8d8d8 !important;
	margin-right:-8px;
	
}

.gsc-promotion:last-child {
	border-bottom:1px solid black !important;
}

.gs-promotion-table {
	padding-left:0 !important;
}
	

.gsc-webResult.gsc-result,.gsc-webResult.gsc-result:hover {
	border:none !important;
}

.gsc-cursor, .gsc-cursor-page {
	background-color:white !important;
	font-size:1rem;
	font-family:"Source Sans Pro", Helvetica, ​Arial, ​sans-serif !important;
	padding-right:.3rem;
}

.gsc-table-result .gsc-table-cell-snippet-close {
	padding-top:2px !important;
	padding-bottom:12px !important;
	
}

.gsc-control-cse.gsc-control-cse-en {
	border:1px solid #d8d8d8;
	padding:0 !important;
	
}

table.gsc-above-wrapper-area-container {
	margin-bottom:0 !important;
}

.gsc-result-info {
	padding:0 !important;
}

.gcsc-branding {
	display:none !important;
	
}

.gsc-results .gsc-cursor-box .gsc-cursor-page, .gsc-results .gsc-cursor-box .gsc-cursor-current-page {
	background-color: rgb(0, 120, 204) !important;
    color: white !important;
    position: relative !important;
    display: inline-block!important;
    text-align: center;
    width: 2rem;
    height: 2rem;
    margin-right: 4px !important;
    margin-bottom: 10px !important;
    padding: 10px !important;
    padding-top: 5px !important;
}

.gsc-results .gsc-cursor-box .gsc-cursor-current-page {
	background-color: white !important;
    color: black !important;
    font-size: 1.3rem !important;
    border: 1px solid rgb(0, 120, 204) !important;
    padding: 7px !important;
    height: 3rem;
	cursor:
}

.gsc-results .gsc-cursor-box .gsc-cursor-page, .gsc-results .gsc-cursor-box .gsc-cursor-current-page:hover {
	text-decoration:none !important;
}

.gsc-cursor-box.gs-bidi-start-align {
	text-align:center !important;
}




#sort-rel, #sort-date {
	color:#000;
	font-size:.75rem;
	padding-left:.5rem;
	font-weight:600;
}

#sort-rel {
	padding-right:0.5rem;
}

#sort-rel.active, #sort-date.active {
	color:#0078CC;
	cursor:pointer;
}


#org-banner {
	margin:5px 5px 10px;
}

.kcardtitle {
	padding-bottom:10px; 
}	

a.filetype {
    background-repeat: no-repeat;
    padding-left: 25px;
}

a.filetype.excel {
	background-image: url("../images/xls.png");
}

a.filetype.word {
	background-image: url("../images/doc.png");
}

a.filetype.ppt {
	background-image: url("../images/ppt.png");
}

a.filetype.pdf {
	background-image: url("../images/pdf.png");
}

/* main containers */
#searchcontent {
	margin-bottom:5rem;
}

#large-searchcontent {
	padding-top:10px;
	margin-bottom:10px;
}

#small-searchcontent {
	padding-top:10px;
	background-color:#e6e6ed;
	border-bottom:1px solid #d8d8d8;
	margin-bottom:10px;
}

.gsa-results, .gsa-results-km, .dir-results{
	width:100%;
    border:1px solid #d8d8d8;
    color:#333333;
    margin-bottom:0.3rem;
    padding:0.5em;
	background-color:#fff;
}

.gsa-results-km {
	margin-bottom:1rem;
}

.gsa-result {
	margin-bottom:1.2rem;
	overflow:hidden;
}

.gsa-title, .gsa-url, .gsa-snippet {
	display:block;
}

.gsa-title {
	font-size: 1rem;
	font-weight: 600;
}

.gsa-url {
	font-size: 0.8rem;
	color:green;
}

.gsa-doctype {
	color: #485ebf;
    font-size: 0.65rem;
    padding-right: 0.3rem;
}

.gsa-snippet {
	font-size: 0.8rem;
	line-height: 1rem;
	padding-top:5px;
}

.dir-result {
	text-align:left;
	border-bottom:1px dotted #d8d8d8;
	padding: 10px 5px 10px 10px;
	margin:0 -10px;
	font-size: 0.8rem;
	line-height:1rem
}

.dir-result:last-child {
	border:none;
}

.dir-name {
    font-weight:bold;
	font-size:1rem;
	text-align:left;
	display:block;
	padding-bottom:0.4rem;
}

.dir-email, .dir-title, .dir-phone, .dir-dep, .dir-loc, .dir-web {
    font-size:0.8rem;
	text-align:left;
	display:block;
	line-height:1rem;
}

.dir-contactinfo {
	padding-top:0.4rem;
}



#small-gsa, #small-dir {
	padding:8px;
	margin:0;
}

#small-gsa .gsa-results, #small-gsa .gsa-results-km {
	border:none;
	background:none;
	padding:0;
	margin-bottom:5px;
}

#small-gsa .gsa-result  {
    border:1px solid #d8d8d8;
	background-color:#fff;
	padding:0.5rem;
	margin-bottom:0.4rem;
}

#small-gsa .gsa-keymatch  {
    border:1px solid #d8d8d8;
	background-color:#fff;
	padding:0.5rem;
	margin-bottom:0.4rem;
}

#large-gsa .gsa-keymatch {
	/*
	border-left:1px solid #d8d8d8;
	border-right:1px solid #d8d8d8;
	border-bottom:1px solid #d8d8d8;
	margin:0 -10px 20px -10px;
	padding:0 0 10px 10px;
	*/
	padding-bottom:10px;
}


#small-gsa .gsa-title {
	line-height: 1rem;
	padding-bottom: 0.2rem;
}

#small-gsa .gsa-url {
	overflow:hidden;
	line-height:1rem;
	white-space: nowrap;
	padding-bottom:8px;
}


#small-gsa .gsa-snippet{
	border-top:1px dotted #d8d8d8;
	padding: 8px 5px 0 10px;
	margin:0 -10px;
	font-size: 0.8rem;
}

.gsa-snippet b {
		font-weight:700;
}

#gsa-footer {
	margin-bottom: 2rem;
	text-align:center;
}

#gsa-prev {
	width:40%;
	border-right:1px solid white;
	float:left;
}

#gsa-first {
	width:10%;
	border-right:1px solid white;
	float:left;
}

#gsa-next {
	width:40%;
	border-left:1px solid white;
	float:right;
}

#gsa-last {
	width:10%;
	border-left:1px solid white;
	float:right;
}

#dir-msg, #gsa-msg, #gsa-msg_m {
	padding-bottom:10px;
	font-size:1em;
	position:relative;
}

#gsa-msg {
	//padding-top:1rem;
}

#dir-filter {
    margin-bottom: 10px;
}

.dir-filteroption {
    border: 1px solid #c0c0c0;
	padding: 5px 15px 5px 15px;
	cursor: pointer;
	font-size: 0.8rem;
}

.sub-nav dd[id^='dir-filter-'] {
	margin-left:0;
}

#dir-filter .sub-nav .active a {
	color:#000;
	background-color:#e6e6ed;
	font-weight:bold;
}

.sub-nav dd[id^='dir-filter-'] a {
	color:#485ebf;
}

#small-dir .sub-nav dd[id^='dir-filter-'] a {
	font-size:1rem;
}

#large-dir .sub-nav dd[id^='dir-filter-'] a {
	font-size:0.8rem;
}

#dir-filter  label {
	margin-left: 0.2rem;
	margin-right: 0.6rem;
	color: #000;
}

#label-dir-amount, #label-gsa-amount {
    color: #6a6a6a;
    font-size: 0.7rem;
    font-weight: normal;
    padding-left: 0.6rem;
}

#small-dir .dir-results {
	border:none;
	background:none;
	padding:0;
	margin-bottom:5px;
}

#small-dir .dir-result  {
    border:1px solid #d8d8d8;
	background-color:#fff;
	padding:0.5rem;
	margin: 0 0 0.4rem 0
}
	
#searchcontainer {
	width:260px;
	position:relative;
	float:left;
}

#searchcontainer_m {
	width:100%;
	left: 0;
	position: absolute;
	top: 0;	
}

#searchinput-p, #searchinput-sp {
	width:100%;
	height:50px;
	z-index:100;
}

#searchbutton-p, #searchbutton-sp, #searchbutton-sps {
    position: relative;
    color: #485ebf;
    top: -35px;
    text-align: right;
    float: right;
    z-index: 5000;
}

#searchinput-p_m {
	position:absolute;
    width: 100% !important;
	z-index:100;
	font-size:1.2em;
	height:45px;
	padding-left:15px;
	border: 1px solid #c0c0c0;
	display:none;
}

#searchbutton-p_m {
    color: #485ebf;
    margin: -5px -2px 0 -1px;
    padding: 12px 0 18px 5px;
    position: relative;
    z-index: 200;
}

#searchbutton-sp_m {
    color: #c0c0c0;
    margin: -5px -2px 0 -1px;
    padding: 12px 0 18px 5px;
    position: relative;
	float:right;
    z-index: 200;
}

#searchbutton-sp_m::before {
	font-size:1.6rem;
}

#searchinput-sp_m {
	position:absolute;
    width: 100% !important;
	z-index:100;
	font-size:1.2em;
	height:45px;
	padding-left:15px;
	border: 1px solid #c0c0c0;
}


#searchinput-sp_x {
	position:relative;
    width: 100% !important;
	z-index:100;
	font-size:1rem;
	height:2.944rem;
	border: 1px solid #c0c0c0;
}

#searchbutton-sp_x {
	background-color: #2f3f86;
    color: #ffffff;
    float: right;
    padding: 12px 0 18px 5px;
    position: relative;
    width: 2.8rem;
	top: -3.79rem;
    z-index: 200;
}

#searchinput-hp_m {
	position: absolute;
    float:left;
	z-index: 1;
    left: 0;
	top:0;
    height: 48px;
    font-size: 1rem;
    display: none;
	padding-right:7rem;
}

#searchicon-hp_m {
	float: right;
    position: relative;
	color:#fff;
	margin-right:4rem;
	margin-top:0;
	top:10px;
	cursor:pointer;
	z-index:100;
}

#searchicon-hp_m::before {
	font-size:1.6rem;
}


#search_m {
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

#searchcolumn {
	height:50px;
}

#searchicon {
	cursor:pointer;
	color:#fff;
	z-index:1000;
	margin-top:0.55rem;
}

#searchicon:before {
	font-size: 1.5rem;
}

#dept-options-container {
    visibility:hidden;
	position:relative;
	/*padding-left:0.5rem;*/
	top:-8px;
	width:100%;
	/*height:32px;*/
	height:auto;
	background-color:rgb(237, 237, 237);
	border:1px solid #999999;
	color:#000000;
	z-index:10;
	padding-bottom:0.5rem;
	/*
	-webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
	white-space: nowrap;
    overflow: hidden;
	*/
}

#container-table, #container-table td, #container-table tr, 
#container-table-sp_m, #container-table-sp_m td, #container-table-sp_m tr, 
#container-table_m, #container-table_m td, #container-table_m tr {
	background:none !important;
	border:none;
	margin:0;
	padding:0 0 0 5px;
	margin-bottom: -5px;
}

#container-table_m {
    padding:.5rem .5rem .2rem 0;
    margin-left: -7px;
}


#opt-1-container_m {
	height:1.5rem;
}

#dept-options-container-p_m {
    display:none;
	text-align:left;
	padding-left:1rem;
	position:relative;
	padding-left:0.5rem;
	/*top:44px;*/
	top:-132px;
	/*height:32px;*/
	height:auto;
	background-color:rgb(237, 237, 237);
	border:1px solid #999999;
	color:#000000;
	z-index:10;
	-webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
    overflow: hidden;
	
}

#dept-options-container_m {
    /*visibility:hidden;*/
	display:block;
	position: relative;
    top: 0px;
    height: auto;
	background-color:rgb(237, 237, 237);
	border:1px solid #999999;
	color:#000000;
    /*white-space: nowrap;*/
    float: left;
	z-index:50;
	width:100%;
	overflow:hidden;
	/*
	-webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
	*/
	margin-top:44px;
	
}

#container-table td label {
	padding-top:0.35rem;
}

#container-table-sp_m {
	/*padding:.5rem .5rem .5rem .7rem;*/
	padding-top:.5rem;
	padding-left:.7rem;
}

input#opt-1, input#opt-2 {
	height:auto;
}

#opt-1_m, #opt-2_m {
    margin-left: 8px;
}

#dept-options-container>label  {
	position:relative;
	top:-10px;
}

#dept-options-container_m>label {
	position:relative;
	top:-4px;
	font-size:1rem;
}

.icon-checkbox-checked {
	color:#6C912D;
	cursor:default;
}

.icon-checkbox-unchecked {
	color:#000000;
	cursor:pointer;
}

.icon-checkbox-unchecked>span {
	color:#485ebf;
}

.nowidth {
	width:0%;
}

.fullwidth {
	width:100%;
}

#spinner {
	background: url('../images/ajax-loader.gif') no-repeat;
	position:relative;
	width:24px;
	height:24px;
	position:relative;
}



.active-tab, .inactive-tab {
	height: 2.8125rem;
	padding-top: 0.6rem;
	text-align: center;
	font-weight:bold;
}

.active-tab {
	background: #e6e6ed none repeat scroll 0 0;
	color: #000;
	border-top:1px solid #c0c0c0;
}

.inactive-tab {
	background: #fcfcfc none repeat scroll 0 0;
	color: #485ebf;
	cursor:pointer;
	border-bottom:1px solid #c0c0c0;
	border-top:1px solid #c0c0c0;
}

.inactive-tab:hover {
	color: #485ebf;
}

#tab-gsa.active-tab {
	border-right:1px solid #c0c0c0;
	border-radius: 0 10px 0 0;
}

#tab-gsa.inactive-tab {
	border-radius: 0 10px 0 0;
	border-right:1px solid #c0c0c0;
}

#tab-dir.active-tab{
	border-left:1px solid #c0c0c0;
	border-radius: 10px 0 0 0;
}

#tab-dir.inactive-tab {
	border-radius: 10px 0 0 0;
	border-left:1px solid #c0c0c0;
}

.active-label {
	border-bottom: 3px solid #D30C55;
}

/*
nav.tab-bar {
    border-bottom: 2px solid #ebac28;
}
*/

/* back to top button */
#cd-container {
    float: right;
}

.cd-top {
	border-radius: .5rem 0 0 .5rem;
	position: fixed;
	width: 2.4rem;
	height: 3rem;
	bottom: 4rem;
	left: -2.4rem;
	margin-left:100%;
	padding-left:0;
	padding-top:.5rem;
	display: inline-block;
	text-align:center;
	font-size:0.9rem;
	font-weight:bold;
	line-height:1rem;
	color: white;
	background-color: #2f3f86;
	visibility: hidden;
	overflow: hidden;
	z-index:1000;
	opacity: 0;
	-webkit-transition: opacity .3s 0s, visibility 0s .3s;
	-moz-transition: opacity .3s 0s, visibility 0s .3s;
	transition: opacity .3s 0s, visibility 0s .3s;
}

.cd-top.cd-is-visible, .cd-top.cd-fade-out, .no-touch .cd-top:hover {
  -webkit-transition: opacity .3s 0s, visibility 0s 0s;
  -moz-transition: opacity .3s 0s, visibility 0s 0s;
  transition: opacity .3s 0s, visibility 0s 0s;
}

.cd-top.cd-is-visible {
  /* the button becomes visible */
  visibility: visible;
  opacity: 1;
}

.cd-top.cd-fade-out {
  /* if the user keeps scrolling down, the button is out of focus and becomes less visible */
  opacity: .5;
}

.no-touch .cd-top:hover {
  background-color: #435ED5;
  opacity: 1;
}

@media only screen and (min-width: 768px) {
	.cd-top::after {
		content: "Beginning of Page";
	}
	
	.cd-top {
		height: 30px;
	}
	
}
