html {
  min-height: 100%;
}

body {
	font-size: 14px;
	line-height: 1.5;
	min-height: 100%;
	display: flex;
	flex-direction: column;
}

body.modal-open .page-wrap {
    -webkit-filter: blur(1px);
    -moz-filter: blur(1px);
    -o-filter: blur(1px);
    -ms-filter: blur(1px);
    filter: blur(1px);
    transition: all 0.1s ease;
    -webkit-transition: all 0.1s ease;
}

/* page pre-loader */

.pre-loader {
	background: url(../images/loading-icon.gif) center center no-repeat #ffffff;
	position: fixed;
	width: 100%;
	height: 100%;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	z-index: 9000;
}

/* general styles */

.mtop-5 {
	margin-top: 5px;
}

.mtop-8 {
	margin-top: 8px;
}

.mtop-10 {
	margin-top: 10px;
}

.mtop-15 {
	margin-top: 15px;
}

.mtop-20 {
	margin-top: 20px;
}

.mtop-30 {
	margin-top: 30px;
}

.mtop-40 {
	margin-top: 40px;
}

img {
	max-width: 100%;
}

label {
	font-weight: 600;
	color: $secondaryBlue;
	margin-bottom: .3rem;
	
		&.body-label {
			color: $bodyText;
		}
}

h1, h2, h3, h4, h5 {
	font-weight: 700;
}

.red-text {
	color: #da1414!important;
}

.green-text {
	color: #2EB197!important;
}

strong {
	font-weight: 700;
}

.text-strong {
	font-weight: 600;
}

.text-subtle {
	opacity: 0.7;
}

.gray-link, .gray-link:visited {
	color: #868686;
}

.body-text-link, .body-text-link:visited {
	color: $bodyText;
}

.inline {
	display: inline-block;
	vertical-align: middle;
	margin-right: 12px;
	
		&:last-child {
			margin-right: 0;
		}
		
		&.inline-top {
			vertical-align: top;
		}
}

.tooltip-inner {
	white-space: nowrap;
	max-width: none;
}

.truncate-text {
	text-overflow: ellipsis;
	overflow: hidden;
	max-width: 250px;
	white-space: nowrap;
}

.white-text {
	color: #ffffff;
	
		a, a:visited, a:hover {
			color: #ffffff;
		}
}

.hide {
	display: none!important;
}

.form-control {
	font-size: 0.9rem;
	
		&.dark-input {
			background: rgba(30,42,64,0.97);
			border: none;
			border-radius: 0;
			color: #e7e7e7;
		}
}

.label-placeholder {
	position: relative;
	@include transition();
	
		label {
			position: absolute;
			top: 7px;
			left: 8px;
		}
		
		input:focus + label {
			top: -26px;
			left: 0;
		}
}

.form-control.white {
	background: #fff;
}

.tagify {
	background: #f8f9fa;
	@include borderRadius(3px);
}

.filter-tags {
    margin: 0;
    padding: 0;
    
    	li {
	    	display: inline-block;
		    margin: 0 5px 5px 0;
		    color: #ffffff;
		    background: #88979a;
		    -webkit-border-radius: 3px;
		    -moz-border-radius: 3px;
		    -o-border-radius: 3px;
		    border-radius: 3px;
		    padding: 3px 8px;
		    cursor: pointer;
		    font-size: 13px;
		    cursor: pointer;
		    
		    	&:hover {
			    	.remove-tag {
			    		color: #ffffff;
			    	}
		    	}
		    
		    	.fa {
			    	margin-right: 0;
		    	}
		    
		    	.remove-tag {
				    color: #e3e3e3;
				    margin-left: 12px;
				    font-size: 14px;
		    	}
		    	
		    	&.none {
			    	opacity: 0.5;
		    	}
    	}
}

.modal-body {
	max-height: 69vh;
	overflow: auto;
	
		&.gray {
			background: #eff1f3;
		}
}

.actions-row {
	align-items: center;
	
	.actions {
		@include flexbox();
		justify-content: flex-end;
		align-items: center;
	}
	
}

.title-actions {
	@include flexbox();
	justify-content: space-between;
	align-items: center;
}

/* headings */

h4 {
    color: $primaryPurple;
    font-weight: 600;
    text-transform: uppercase;
}

/* custom bootstrap gutters */

// 80px gutter
.gutter-80 > [class^="col-"], .gutter-80 > [class^=" col-"] {
  padding-right: 40px;
  padding-left: 40px;
}

// 60px gutter
.gutter-60 > [class^="col-"], .gutter-60 > [class^=" col-"] {
  padding-right: 30px;
  padding-left: 30px;
}

// 40px gutter
.gutter-40 > [class^="col-"], .gutter-40 > [class^=" col-"] {
  padding-right: 20px;
  padding-left: 20px;
}

// 20px gutter
.gutter-20 > [class^="col-"], .gutter-20 > [class^=" col-"] {
  padding-right: 10px;
  padding-left: 10px;
}

// 10px gutter
.gutter-10 > [class^="col-"], .gutter-10 > [class^=" col-"] {
  padding-right: 5px;
  padding-left: 5px;
}

// 0px gutter
.gutter-0 > [class^="col-"], .gutter-0 > [class^=" col-"]{
  padding-right: 0;
  padding-left: 0;
}

/* borders */

.border {
	border: 1px solid #efefef!important;
}

.border-top {
	border-top: 1px solid #efefef!important;
}

.border-bottom {
	border-bottom: 1px solid #efefef!important;
}

.border-right {
	border-right: 1px solid #efefef!important;
}

.border-left {
	border-left: 1px solid #efefef!important;
}

/* containers */

.container-100 {
	max-width: 100%;
	
		.row {
			margin-left: 0;
			margin-right: 0;
		}
		
		.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, .col, .col-auto, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm, .col-sm-auto, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-md, .col-md-auto, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg, .col-lg-auto, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl, .col-xl-auto {
			padding-left: 0;
			padding-right: 0;
		}
}

.container.full {
	padding: 0;
	
		&.wide {
			max-width: 96%;
		}
}

.container-fluid {
	
		&.narrow {
			padding-left: 40px;
			padding-right: 40px;
		}
		
		&.xs {
			padding-left: 60px;
			padding-right: 60px;
		}
}

.card.opaque {
	background: rgba(255,255,255, 0.75);
}

/* buttons */

.gradient-info-bg {
	/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#49c5e0+37,3ab3cd+68 */
	background: rgb(73,197,224); /* Old browsers */
	background: -moz-linear-gradient(top, rgba(73,197,224,1) 37%, rgba(58,179,205,1) 68%); /* FF3.6-15 */
	background: -webkit-linear-gradient(top, rgba(73,197,224,1) 37%,rgba(58,179,205,1) 68%); /* Chrome10-25,Safari5.1-6 */
	background: linear-gradient(to bottom, rgba(73,197,224,1) 37%,rgba(58,179,205,1) 68%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#49c5e0', endColorstr='#3ab3cd',GradientType=0 ); /* IE6-9 */
	color: #fff;
	
		&:hover, &:focus, &:active {
			background: #49c5e0;
		}
}

.btn-round {
	@include borderRadius(40px);
}

.btn-xs {
	font-size: 1em;
    padding: 0.4rem 0.4rem 0.2rem 0.4rem;
}

.btn-shadow {
	box-shadow: 0 0 5px rgba(0,0,0,0.2)!important;
	-webkit-box-shadow: 0 0 5px rgba(0,0,0,0.2)!important;
}

.btn-success.disabled, .btn-success:disabled {
	color: #fff;
}

a.btn:hover {
	text-decoration: none;
}

.btn-lg {
	padding: 0.8rem 1rem;
}

.btn-success {
	color: #fff;
}

.hvr-grow {
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px transparent;
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-property: transform;
  transition-property: transform;
}

.hvr-grow:hover, .hvr-grow:focus, .hvr-grow:active {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}

.avatar-xl {
	@include avatar(100px);
	background-size: cover;
	background-repeat: no-repeat;
}

.avatar-lg {
	@include avatar(45px);
	font-size: 1.2em;
	background-size: cover;
	background-repeat: no-repeat;
}

.avatar-md {
	@include avatar(40px);
	background-size: cover;
	background-repeat: no-repeat;
}

.avatar-md.filled, .avatar-lg.filled, .avatar-xl.filled {
	background: $primaryPurple;
	color: #fff;
}

.action-circle {
	@include transition();
	background: #eaeaea;
	border: 1px solid #eaeaea;
	@include borderRadius(50%);
	width: 30px;
	height: 30px;
	display: inline-block;
	vertical-align: middle;
	line-height: 29px;
	color: #343434;
	margin-right: 5px;
	text-align: center;
	
		&:last-child {
			margin-right: 0;
		}
	
		&.small {
			width: 28px;
			height: 28px;
			line-height: 28px;
		}
	
		.fa {
			margin-right: 0;
		}
		
		.fa, svg {
			color: $bodyText;
		}
		
		&:hover {
			background: #fff;
			box-shadow: 0px 0px 8px 0 rgba(79, 79, 79, 0.1); 
			-webkit-box-shadow: 0px 0px 8px 0 rgba(79, 79, 79, 0.1); 
			
			.fa, svg {
				color: $secondaryBlue;
			}
		}
}

.dropdown-toggle::after {
    vertical-align: middle;
}

.no-round {
	border-radius: 0;
}

ul.pagination {
	margin: 0;
	
		.page-link {
			color: $bodyText;
		}
}

/* tables */

.table th, .table td {
	border: none;
}

td.actions, th.actions {
	text-align: right;
}

.dataTables_wrapper.container-fluid {
	padding: 0;
}

.table-striped>tbody>tr:nth-of-type(even) {
	background-color: #F5F8FF;
}

.table-striped>tbody>tr:nth-of-type(odd) {
	background-color: #ffffff;
}

table, table.dataTable {
	border-collapse: collapse!important;
	margin: 0!important;
	width: 100%!important;
}

thead {
	background: #467996;
	color: #ffffff;
	
	th {
		font-weight: 600;
	}
	
}


table.table {
	
	&.align-middle {
		
		td {
			vertical-align: middle;
		}
		
	}
	
	thead th {
		padding: 16px 20px;
		border-bottom: 1px solid #eaeaea;
		font-size: 0.85rem;
	}
	
	tr {
		@include transition();
	}
	
	tbody tr:hover {
		background: lighten($secondaryBlue, 43%);
	}
		
}

.page-link {
	line-height: inherit;
}

/* admin */

.dropdown-menu {
    -webkit-box-shadow: 1px 0px 20px rgba(0, 0, 0, 0.3);
    box-shadow: 1px 0px 20px rgba(0, 0, 0, 0.3);
    font-size: 1em;
}

.page-wrap {
	min-height: 100vh;
	//display: -ms-grid;
	display: grid;
	grid-template-columns: 1fr;
	-ms-grid-columns: 1fr;
	grid-template-rows: 55px 1fr auto;
	-ms-grid-rows: 55px 1fr auto;
	grid-template-areas: 
	"adminHeader"
	"contentWrap"
	"adminFooter";
}

#admin-menu {
	position: fixed;
	width: 130px;
	height: 100vh;
	background: url(../images/menu-bg.jpg) no-repeat center bottom $secondaryBlue;
	background-size: contain;
	box-shadow: 0px 0px 10px 3px rgba(79, 79, 79, 0.2);
	-webkit-box-shadow: 0px 0px 10px 3px rgba(79, 79, 79, 0.2);
	color: #fff;
	
		a, a:visited {
			color: #fff;
		}
		
		.logo {
			padding: 20px 8px;
		}
		
		ul {
			margin: 0;
			padding: 0;
			
				.icon {
					font-size: 1.6em;
					line-height: 1.4;
				}
			
				a {
					display: block;
					padding: 6px 4px;
					text-align: center;
					@include transition();
					
						&:hover {
							background: darken($secondaryBlue, 3%);
						}
						
						&.active {
							background: #118CE0;
							
								&:before {
									content: "";
									width: 3px;
									height: 100%;
									position: absolute;
									top: 0;
									left: 0;
								}
						}
				}
		}
		
		li {
			list-style-type: none;
			position: relative;
			margin-bottom: 8px;
		}
				
		.menu-text {
			display: block;
			text-transform: uppercase;
			font-size: 0.9em;
		}
}

#mobile-menu-btn, .mobile-menu-close {
	display: none;
}

.mobile-menu-close {
	font-size: 2em;
	position: absolute;
	top: 5px;
	right: 20px;
}

#admin-header {
	grid-area: adminHeader;
	height: 55px;
	background: #fff;
	box-shadow: 0px 1px 6px 0.1px rgba(79, 79, 79, 0.18);
	-webkit-box-shadow: 0px 1px 6px 0.1px rgba(79, 79, 79, 0.18);
	
		.header-wrap {
			display: grid;
			display: -ms-grid;
			grid-template-columns: 130px 0.9fr 0.2fr;
			-ms-grid-columns: 130px 0.9fr 0.2fr;
			grid-template-rows: auto;
			-ms-grid-rows: 1;
			-ms-grid-column: 3;
			grid-template-areas: ". title user";
			align-items: center;
			-ms-align-items: center;
		}
	
		a, a:visited {
			color: $bodyText;
		}
		
		a:hover {
			color: $secondaryBlue;
		}
		
		.header-left {
			grid-area: title;
			-ms-grid-row: auto; 
			-ms-grid-column: 2;
			-ms-grid-column-span: 1;
			padding-left: 20px;
			
				h1 {
					margin: 0;
					color: #7C889D;
					line-height: 55px;
				}
		}
				
		.user-header {
			grid-area: user;
			-ms-grid-row: auto; 
			-ms-grid-column: 3;
			-ms-grid-column-span: 1;
			
				.dropdown-menu {
					min-width: 100%;
					top: -23px!important;
				}
		}
		
		.user-actions-drop {
			padding: 7px 15px;
			@include flexbox();
			align-items: center;
			background: #fff;
			position: relative;
			z-index: 8000000;
			justify-content: center;
			
				.user-name {
					margin-left: 10px;
					font-weight: 700;
					font-size: 1.1em;
					max-width: 200px;
				}
		}
}

.page-container {
	padding-left: 130px;
	margin: 1.8rem 2.3% 0 2.3%;
	grid-area: contentWrap;
	-ms-grid-row: 1; 
    -ms-grid-column: 1;
    max-width: calc(100vw - 4.6%);
    flex: 1 0 auto;
}

#admin-footer {
	flex-shrink: 0;
	grid-area: adminFooter;
	margin-top: 2rem;
	padding-left: 130px;
	grid-area: adminFooter;
	-ms-grid-row: 1; 
    -ms-grid-column: 1;
    background: #E4E6ED;
    text-align: right;
    color: #7C889D;
    padding: 15px;
    
    	a, a:visited {
	    	color: #7C889D;
    	}
    
}

/* cards */

.card {
	-webkit-box-shadow: 1px 0px 20px rgba(0, 0, 0, 0.05);
	box-shadow: 1px 0px 20px rgba(0, 0, 0, 0.05);
	margin-bottom: 2rem;
	
		&.bottom-shadow {
			box-shadow: 0 4px 2px -2px rgba(0, 0, 0, 0.05);
		}
	
		.card {
			box-shadow: 0px 0px 8px 0 rgba(79, 79, 79, 0.1); 
			-webkit-box-shadow: 0px 0px 8px 0 rgba(79, 79, 79, 0.1); 
		}
		
		&.dragable {
			cursor: move;
			
				&:hover {
					box-shadow: 0px 0px 8px 0 rgba(79, 79, 79, 0.5); 
					-webkit-box-shadow: 0px 0px 8px 0 rgba(79, 79, 79, 0.5);
				}
		}
}

.card-footer {
	background-color: #fff;
}

.header-card {
	margin: -32px -2.6% 2.4rem -2.6%;
	box-shadow: 2px 5px 13px 0px rgba(0, 0, 0, 0.04);
	-webkit-box-shadow: 2px 5px 13px 0px rgba(0, 0, 0, 0.04);
}

.card-header {
	background: none;
	border-bottom: 1px solid #eeeeee;
}

.card-blue {
	background: #f0fbfd;
}

.card-gray {
	background: #f0fbfd;
}

.centered-card {
	max-width: 50%;
	margin: auto;
}

.no-bullets {
	padding: 0;
	
		li {
			list-style-type: none;
			margin-bottom: 8px;
			
				&:last-child {
					margin-bottom: 0;
				}
		}
	
}

.inline-list {
	padding: 0;
	display: flex;
	
		li {
			margin-right: 8px;
			list-style-type: none;
			
				&:last-child {
					margin-right: 0;
				}
		}
}

.tab-card {
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}

.nav-pills.styled {
	
	.nav-link {
		background-color: #A3AFC4;
		color: #fff;
		
			.arrow {
				display: none;
			}
		
			&.active {
				background-color: #fff;
				font-weight: 700;
				border-bottom-left-radius: 0;
				border-bottom-right-radius: 0;
				color: $primaryPurple;
				
					.arrow {
						display: block;
						color: #dedede;
			        	margin: 0 auto;
			        	text-align: center;
					}
			}
	}
	
	.nav-item {
		margin-right: 12px;
		
			&:last-child {
				margin-right: 0;
			}
	}
	
	&.large {
		font-size: 1.01rem;
	}
}

div.invalid-tooltip, div.valid-tooltip {
	top: 82%;
}

.badge {
	line-height: inherit;
}

.modal-tabs {
	
	.nav-tabs {
		background: #f7f8f8;
		height: 100%;
		border-bottom: none;
	}	
	
	.nav .nav-item .nav-link {
		padding: 1rem 0.7rem;
		display: block;
		border-top: 1px solid #ededed;
		border-bottom: 1px solid #ededed;
		border-left: 0;
		border-right: 0;
		border-top: 0;
		border-radius: 0;
		
			&.active {
				font-weight: 600;
				background: lighten($primaryPurple, 10%);
				color: #fff;
			}
		
			&:hover {
				background: lighten($primaryPurple, 69%);
			}
	}
	
}

.hidden-file-input {
    position: relative;
    display: inline-block;
    
    	input {
	    	opacity: 0;
		    position: absolute;
		    width: 100%;
		    height: 100%;
		    left: 0;
		    right: 0;
		    bottom: 0;
		    top: 0;
		    z-index: 10;
		    cursor: pointer;
    	}
}

.animation{
	-webkit-animation-duration: 0.2s;
	animation-duration: 0.2s;
	-webkit-animation-fill-mode: both;
	animation-fill-mode: both;
}

@-webkit-keyframes slideDownIn {
	 0% {
		 
		 -webkit-transform: translateY(-5px);
	 }
	 100% {
		 
		 -webkit-transform: translateY(100%);
	 }
	 
	 0% {
		 -webkit-transform: translateY(-5);
	 }
}

@keyframes slideDownIn {
	0% {
		transform: translateY(-5px);
	}
	100% {
		transform: translateY(100%);
	}
	0% {
		transform: translateY(-5px);
	}
}

.slideDownIn {
	-webkit-animation-name: slideDownIn;
	animation-name: slideDownIn;
}

.actions-card {
	@include flexbox();
	justify-content: space-between;
	align-items: center;
	
		.order {
			@include flexbox();
			margin-right: 10px;
			width: 50px;
			
				a {
					padding: 0 2px;
					opacity: 0.5;
					
						&:hover {
							opacity: 1;
						}
				}
		}
	
		.content {
			padding: 12px 15px;
			@include flex(1 0 auto);
		}
	
		.actions {
			padding: 12px 15px;
			@include flexbox();
		}
	
}

.select2-styled {
	
	.select2-container--default .select2-selection--single {
		background-color: #f8f9fa;
		border: 1px solid #eceff2;
		font-size: 0.9rem;
		height: calc(2.25rem + 2px);
	}
	
	.select2-container--default .select2-selection--single .select2-selection__rendered {
		line-height: 2.6;
	}
	
	.select2-container--default .select2-selection--single .select2-selection__arrow {
		height: calc(2.25rem + 2px);
	}
	
}

.select2-dropdown {
	border: 1px solid #dedede;
}

.select2-results {
	box-shadow: 0px 5px 11px rgba(0, 0, 0, 0.2);
	-webkit-box-shadow: 0px 5px 11px rgba(0, 0, 0, 0.2);
}

.select2-results__message {
	padding: 11px;
}

sup {
	top: -.15em;
	font-size: 100%;
	margin-left: 3px;
}

.contatiner-full {
	margin: 0 3.5%;
}

.search-wrap {
	
	.form-control {
		padding: 0.6rem 0.75rem 0.475rem 3rem;
		background: #dce0e6;
		@include borderRadius(20px);
	}
	
	.dark-search {
		background: #c8d8d3;
		border-color: #c8d8d3;
	}
	
	.search-icon {
		position: absolute;
		top: 10px;
		left: 18px;
		font-size: 1.25em;
		
			svg {
				color: #333333;
			}
	}
	
	.search-remove {
		position: absolute;
		right: 10px;
		top: 10px;
		color: #5b636f;
		cursor: pointer;
		
			&:hover {
				color: #e70b0b;
			}
	}
	
}

.large-type {
	font-size: 1.3em;
}