@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700');

$base-spacing-unit: 24px;
$half-spacing-unit: $base-spacing-unit / 2;

$color-alpha: #1772FF;
$color-form-highlight: #EEEEEE;
/*
*, *:before, *:after {
	box-sizing:border-box;
}

body {
	padding:$base-spacing-unit;
	font-family:'Source Sans Pro', sans-serif;
	margin:0;
}

h1,h2,h3,h4,h5,h6 {
	margin:0;
}*/

.custom_container {
	max-width: 1000px;
	margin-right:auto;
	margin-left:auto;
	display:flex;
	justify-content:center;
	align-items:center;
	min-height:100vh;
}

.custom_table {
	width:100%;
	border:1px solid $color-form-highlight;	
}

.custom_table-header {
	display:flex;
	width:100%;
	background:#999;
	font-weight: bold;
	padding:($half-spacing-unit * 1.5) 0;	
}

.custom_table-row {
	display:flex;
	width:100%;
	padding:($half-spacing-unit * 1.5) 0;
	background: white;
	
	&:nth-of-type(odd) {
		background:$color-form-highlight;
	}
}

.custom_table-row-alt {
	display:flex;
	width:100%;
	background: #f5f5f5;
	padding:($half-spacing-unit * 1.5) 0;	
	
	&:nth-of-type(odd) {
		background:$color-form-highlight;
	}
}

.custom_table-data {
	flex: 1 1 20%;
	text-align: center;
	display: table-cell;
	vertical-align: middle;
	padding: 10px 5px 10px 5px; 
}

.custom_table-data img {
	width: 22px;
	height: 22px;
	padding: 0px 0px 0px 0px;
	margin: 0px 5px 0px 0px;
	vertical-align: top;
}

.custom_header__item {
	flex: 1 1 20%;
	text-align:center;
	padding: 15px 5px 15px 5px; 
}

.custom_header__item {
	text-transform:uppercase;
}

.custom_filter__link {
	color:white;
	text-decoration: none;
	position:relative;
	display:inline-block;
	font-weight: bold; 
	padding-left:$base-spacing-unit;
	padding-right:$base-spacing-unit;
	
	&::after {
		content:'';
		position:absolute;
		right:-($half-spacing-unit * 1.5);
		color:white;
		font-size:$half-spacing-unit;
		top: 50%;
		transform: translateY(-50%);
	}
	
	&.custom_desc::after {
		content: '(desc)';
	}

	&.custom_asc::after {
		content: '(asc)';
	}
	
}

.custom_table-title {
	flex: 1 1 20%;
	text-align: left;
	padding: 2px 20px 2px 20px; 
	display:flex;
	width:100%;
	background: #fdd301;
	font-weight: bold;	
	color: #264E86;
	text-decoration: none;
	position:relative;
	display:inline-block;	
	font-size: 32px;
}

.custom_table-title img {
	padding: 0px 0px 0px 0px;
	height: 45px;
	width: 45px;
	margin: 0px 5px 0px 0px;	
}

/* Auto Refresh Toggle: */

.onoffswitch {
    position: relative; width: 96px;
	-webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;	
	margin: auto;
}
.onoffswitch-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.onoffswitch-label {
    display: block; overflow: hidden; cursor: pointer;
    border: 2px solid #999999; border-radius: 20px;
}
.onoffswitch-inner {
    display: block; width: 200%; margin-left: -100%;
    transition: margin 0.3s ease-in 0s;
}
.onoffswitch-inner:before, .onoffswitch-inner:after {
    display: block; float: left; width: 50%; height: 30px; padding: 0; line-height: 30px;
    font-size: 14px; color: white; font-family: Trebuchet, Arial, sans-serif; font-weight: bold;
    box-sizing: border-box;
}
.onoffswitch-inner:before {
    content: "ON";
    padding-left: 10px;
    background-color: #83CC61; color: #FFFFFF;
}
.onoffswitch-inner:after {
    content: "OFF";
    padding-right: 10px;
    background-color: #EEEEEE; color: #999999;
    text-align: right;
}
.onoffswitch-switch {
    display: block; width: 20px; margin: 7px 6px 6px 6px;
    background: #FFFFFF;
    position: absolute; top: 0; bottom: 0;
    right: 56px;
    border: 2px solid #999999; border-radius: 20px;
	transition: all 0.3s ease-in 0s; 
	height: 20px;	
}
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
    margin-left: 0;
}
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
    right: 0px; 
}

/* Custom Styles for Error Messages */

.vld_ErrorMessages {
	color: #fdd301;
	font-weight: bold;	
	width: 300px;
	margin: auto;
	padding: 0px;
	font-size: 20px;
}

.successMessage {	
	color: white; 
	width: 100%;	
	background-color: #83CC61;
	margin-bottom: 35px;
	padding: 5px 10px 5px 10px;
	font-size: 20px;
	font-weight: bold;	
}

.successMessage-home {	
	position: relative;	
	color: white; 
	width: 100%;	
	background-color: #83CC61;
	margin-bottom: 35px;
	padding: 5px 10px 5px 10px;
	margin-top: 15px;
	font-size: 20px;		
	z-index: 5;
}

.successMessage-empty {	
	position: relative;	
	color: #264E86; 
	width: 100%;	
	background-color: #fdd301;
	margin-bottom: 35px;
	padding: 5px 10px 5px 10px;
	margin-top: 15px;
	font-size: 20px;		
	z-index: 5;
}

.errorMessage {	
	color: white; 
	width: 100%;	
	background-color: #fb2e25;
	margin-bottom: 35px;
	padding: 5px 10px 5px 10px;
	font-size: 20px;
	font-weight: bold;	
}