/* ########## CORE STYLES ########## */

html {height: 100%;}

body {
	margin: 0;
	padding: 0;
	font-size: 16px;
	background-color: rgb(249, 249, 252) !important;
	background-image: url('../images/bg-main.jpg');
	background-repeat: repeat;
	background-position: center center;
	background-attachment: fixed;
	position: relative;
	min-height: 100%;
	height: 100%;
	font-family: 'Open Sans', sans-serif !important;
} 

body.offcanvasmenu {
	overflow-x: hidden;
}

/* ########## LOGIN PAGE STYLES ########## */

body.splash .shell {
	background: linear-gradient(to right bottom,#2b103d,#5045b8 50%,#0052c7);
	color: #fff;
} 

body.splash .shell {
	background-image: url('../images/bg-login.jpg');
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	background-attachment: fixed;	
	display: table;
	width: 100%;
	height: 100%;
}

body.splash .wrapper {
	margin: 0 auto;
	width: 100%;
	height: 100%;
	vertical-align: middle;
	text-align: center;
	position: relative;
	display: table-cell;
	padding-bottom: 5em;
	box-sizing: border-box;	
}

body.splash .wrapper-inner {
	width: 90%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 2em 0;
}

body.splash .logo {
    max-width: 400px;
    -webkit-filter: drop-shadow( 0 0 5px rgba(0,0,0,0.5));
    filter: drop-shadow( 0 0 5px rgba(0,0,0,0.5));
}

.splash-box {
	background: rgba(0,0,0,0.70);
	border: 1px solid rgba(0,0,0,0.5);
	padding: 2em;
	border-radius: 0.5em;
	max-width: 400px;
	margin: 2em auto 0 auto;
	border-bottom: 5px solid rgba(0,119,192,1);
	font-size: 0.9em !important;
	color: rgb(113,120,143);
}

.splash-box a:link, .splash-box a:visited {color: rgb(113,120,143); text-decoration: none; font-size: 1em !important;}
.splash-box a:hover, .splash-box a:active {color: rgb(0,119,192); text-decoration: underline;}

.splash-box h1 {
	font-weight: 400;	
}

.splash-box hr {
	background: rgba(113,120,143,0.5);
	height: 1px;
	border: none;
	width: 100%;
	margin: 2em auto;
	padding: 0;
	clear: both;
}

.splash-box .form-control {
	font-size: 1rem !important;
}
.splash-box .form-control::placeholder {
	color: rgba(113,120,143);
	opacity: 0.5;
}

/* ########## HEADER STYLES ########## */

header {
	background: linear-gradient(to right bottom,#454a58 0,#323641 50%);
    position: fixed;
	display: block;
	width: 100%;
	height: 4em;
	color: rgba(255,255,255,1);
	z-index: 100;
	box-sizing: border-box;
}

.offcanvasmenu header {
	left: 70%;	
}

@media (min-width: 576px) {
	.offcanvasmenu header {
		left: 250px;	
	}
}
	
#inside-header {
	/*background: #454a58;*/
	background: #fff;	
	position: fixed;
	top: 4em;
	left: 0;
	right: 0;
	box-sizing: border-box;
	padding: 0;
	font-weight: 400;
	box-shadow: 0 0 0.5em rgba(0,0,0,0.2);
	font-size: 0.85rem;
	z-index: 100;
	width: 100%;
}

.offcanvasmenu #inside-header {
	left: 70%;	
}

@media (min-width: 576px) {
	.offcanvasmenu #inside-header {
		left: 250px;	
	}
}

@media (min-width: 768px) {
	#inside-header {
		left: 250px;
		top: 0;
		width: auto;
	}
}

.menu-btn {
	cursor: pointer;
}


/* ########## USER MENU STYLES ########## */

.avatar {
	width: 40px;
	height: 40px;
	max-height: 100%;		
}

.usermenu {	
}
	
@media (min-width: 576px) {
	.usermenu {
		width: 300px;
		float: right;	
	}
}
@media (min-width: 768px) {
	.avatar {
		width: 50px;
		height: 50px;		
	}
}

/* ########## SIDEBAR STYLES ########## */

#sidebar {
    background: linear-gradient(to right bottom,#454a58 0,#323641 50%);
    position: fixed;
    -webkit-transition: all .2s ease-out;
    transition: all .2s ease-out;
	height: 100%;
	box-shadow: 0 0 0.5em rgba(0,0,0,0.4);
	z-index: 999;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	left: 0;
	top: 0;
	display: none;
	width: 70%;
}

.offcanvasmenu #sidebar {
	display: block;	
}

@media (min-width: 576px) {
	.offcanvasmenu #sidebar {
		width: 250px;
	}
}

@media (min-width: 768px) {
	#sidebar {
		width: 250px;
		display: block;
		z-index: 10;
	}
}


#sidebar.light {
	background: #fff;
}

#sidebar .logo {
	margin: 2rem auto;
	display: block;	
    max-width: 90%;
}

#sidebar nav {
	
}

#sidebar nav .heading {
	text-transform: uppercase;
	padding: 0 0 0.5rem 0;
	margin: 1rem;
	border-bottom: 1px solid rgba(255,255,255,0.10);
	display: block;
	color: rgba(255,255,255,0.5);
	font-weight: 600;
	font-size: 0.8em;
}

#sidebar nav a {
	display: block;
	padding: 0.5rem 1rem;
	margin: 0 0.5rem;
	color: rgba(255,255,255,0.65);
	text-decoration: none;
}

#sidebar nav a:hover {
	color: rgba(255,255,255,1);	
}

#sidebar nav a.active {
	background: rgba(0,0,0,0.15);
	border-radius: 0.5rem;
	color: rgba(255,255,255,1);
}

#sidebar nav a.active:hover {
	background: rgba(0,0,0,0.2);
}

#sidebar nav a i {
	width: 15%;	
}


/* ########## MAIN CONTENT STYLES ########## */
	
#main {
	box-sizing: border-box;
	position: relative;
	min-height: 100%;
	margin-left: 0;
	padding: 9rem 2rem 6rem 2rem;
	overflow: hidden;
}

.offcanvasmenu #main {
	left: 70%;	
}

@media (min-width: 576px) {
	.offcanvasmenu #main {
		left: 250px;	
	}
}

@media (min-width: 768px) {
	.offcanvasmenu #main,
	#main {
		margin-left: 250px;
		padding-top: 6rem;
		left: 0;
	}
}

/* ########## FOOTER STYLES ########## */

footer {
	position: absolute;
	bottom: 0;
	box-sizing: border-box;
	width: 100%;
	margin: 0 -2rem;
	padding: 1rem;
	color: rgba(132,135,148,1);
	font-weight: 400;
	font-size: 0.8em;
	background: rgba(255,255,255,0.5);
}


/* ########## GENERAL STYLES ########## */

.actions {
	white-space: nowrap;
	font-size: 1.3em;	
}

.actions a {
	opacity: 0.75;	
}

.actions a:hover {
	opacity: 1;	
}

.statistic {
	font-size: 4rem;	
}

.file-popover,
.focus-field {
	cursor: pointer;	
}

button:disabled {
  cursor: not-allowed;
  pointer-events: all !important;
}


.processing {
	position: fixed;
	z-index: 999;
	width: 20%;
	height: 50%;
	padding: 2em;
	overflow: show;
	margin: auto;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	box-sizing: border-box;
	display: none;
}

.processing:before {
	content: '';
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.5);
}

textarea {
	height: calc(10.25rem + 2px) !important;
}

/* ########## BOOTSTRAP OVERRIDE STYLES ########## */

.alert, .card {
	box-shadow: 0 0 0.5em rgba(0,0,0,0.05);
	border: none !important;
}

.card-title {	
	font-weight: 600;
}

@media only screen and (max-width: 767px) {
  .table>tbody>tr>td,
  .table>tbody>tr>th,
  .table>tfoot>tr>td,
  .table>tfoot>tr>th,
  .table>thead>tr>td,
  .table>thead>tr>th {
    display: inline-block;
    min-width: 100%!important;
	border-top: none;
	padding: 0.25rem 0.75rem;
  }
  .table>tbody>tr>td:first-child {
	padding-top: 1rem;  
  }
  .table>tbody>tr>td:last-child {
	padding-bottom: 1rem;  
  }  
  .table>tbody>tr {
	border-bottom: 1px solid #dee2e6;
  }
  .table>thead>tr>th {
    display: none;
  }
  
  .table .filterBody span {
    display:block;
  }
}