/*----------------*/
/* Helper Classes */
/*----------------*/
.relative { position: relative; }
.inline-block { display: inline-block; }
.no-margin { margin: 0 !important; }
.no-wrap { white-space: nowrap; }
.text-center { text-align: center; }

/*----------*/
/* Framework adjustments */
/*----------*/
/*Ensures the datatable processing indicator shows up in the right place*/
div.dataTables_wrapper div.dataTables_processing {
	position: fixed !important;
}

/*Fixes issue with fixed headers having some display problems*/
table.dataTable.fixedHeader-floating {
	table-layout: auto !important;
}

/*By default, prevent textareas from being resized horizontally*/
textarea {
	resize: vertical;
}

/*Display a loading spinner on selectize*/
.selectize-control.loading::before {
	-moz-transition: opacity 0.2s;
	-webkit-transition: opacity 0.2s;
	transition: opacity 0.2s;
	content: ' ';
	z-index: 2;
	position: absolute;
	display: block;
	top: 50%;
	right: 34px;
	width: 16px;
	height: 16px;
	margin: -8px 0 0 0;
	background: url('/img/spinner-selectize.gif');
	background-size: 16px 16px;
	/*opacity: 0;*/
}

/*----------*/
/* Defaults */
/*----------*/
body {
	font-family: 'Open Sans', "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
}

nav.navbar { margin: 0; z-index: 10; min-height: 25px;}
nav.navbar .navbar-toggle {
    margin: 0;
    height: 50px;
    width: 50px;
    padding: 9px 12px;
    background: #CCC;
    border: none;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
}
nav.navbar.navbar-inverse .navbar-toggle {
    background: #555;
}
nav.navbar .navbar-toggle .icon-bar { width: 100%; }

nav.navbar.navbar-inverse .link-icon { color: #CCC; }
nav.navbar .user-circle {
	position: relative;
	display: inline-block;
	width: 22px;
	height: 22px;
	margin-right: 5px;
	background: #999;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	border-radius: 10px;
	text-align: center;
    overflow: hidden;
    top: 5px;
}
nav.navbar.navbar-inverse .user-circle {
    background: #FFF;
}
nav.navbar i.fa-user {
	position: relative;
	top: 6px;
	font-size: 18px;
    color: #F8F8F8;
}
nav.navbar.navbar-inverse i.fa-user {
    color: #222;
}
nav.navbar li.user-menu > a { margin-top: -7px; color: #000; }
nav.navbar.navbar-inverse li.user-menu > a { color: #FFF; }
nav.navbar .navbar-brand-img  { float: left; }
nav.navbar .navbar-brand {
    font-family: 'Questrial', sans-serif;
}
nav.navbar .navbar-brand {
    color: #000;
}
nav.navbar.navbar-inverse .navbar-brand {
    color: #FFF;
}

.nav-spacer { width: 100%; height: 50px; }

.header {
	position: absolute;
	top: 80px;
	z-index: 3;
	width: 100%;
	background: #FFF;
	padding: 10px 0 0;
	border-bottom: 1px solid #F7F7F7;
}
.header.scrolled {
	position: fixed;
	top: 38px;
	border-bottom: 1px solid #DDD;
	box-shadow: 0 2px 3px rgba(0,0,0,0.1);
}
.header h2 {
	float: left;
	margin: 0 0 10px;
	font-size: 2em;
	font-weight: 300;
}
.header .header-actions {
	position: relative;
	float: right;
    margin: 0 0 10px;
	z-index: 3;
}
.header .surprise-logo {
	position: absolute;
	left: -70px;
	text-align: right;
	opacity: 0;
}

.nav-spacer {
	position: relative;
	z-index: 0;
}

.dropdown-menu {
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
}

.page { margin-top: 50px; }
.page-description { margin: 1em 0 2em; }
.required-reminder{
	margin-bottom: 20px;
	color: red;
}

.page-actions { display: inline-block; }

.page-well {
	padding: 20px;
	margin-bottom: 20px;
	background: #EFEFEF;
}
.page .page-well > h3 { margin: 0 0 15px; }

/*.page h3 { margin: 20px 15px; }*/
.page label { font-weight: 600; }
.page .required { color: red; }

/*.page .form-group, .page .form-control, .page .radio, .page .checkbox { margin-bottom: 20px; }*/

.page .field-description { margin-top: 5px; font-size: 13px; color: #777; }

.page .input-prepend .prepend { color: #777; }
.page input.has-prepend { width: auto; display: inline-block; }

/*.page select { width: auto; }*/

.page .form-label { font-weight: 600; }

.page .checkbox-group, .page .radio-group { margin-bottom: 20px; }
.page .checkbox-group .checkbox, .page .radio-group .radio { margin-bottom: 10px; }

.page .checkbox label, .page .radio label { font-weight: 400; }
.page .checkbox-inline label, .page .radio-inline label { font-weight: 400; }

.page h3.section-heading { margin: 25px 0 20px; padding: 7px 15px; background: #EFEFEF; border-bottom: 1px solid #E3E3E3; font-size: 20px; }
.page .field-group { margin-bottom: 20px; }
.page .field-heading { margin-bottom: 5px; font-weight: 600; color: #000; }
.page .field-value { color: #555; }

.table thead tr th.actions {
    color: #CCC;
}
.table tbody tr td.actions {
    text-align: center;
}

.table tbody  tr td {
    font-size: 12px;
    /*cursor: pointer;*/
}

footer {
	margin: 50px 0 0;
	padding: 30px 0 20px;
	background-color: #777;
	background: url('../img/concrete_wall.png');
	color: #FFF;
}
footer.fixed {
	position: fixed;
	bottom: 0;
	width: 100%;
}

footer .footer-left { float: left; margin-bottom: 10px; }
footer .footer-right { float: right; }
footer .footer-links { margin-top: 5px; }
footer .footer-links li { display: inline-block; margin-left: 20px; }
footer .footer-links li:first-child { margin-left: 0; }
footer .footer-links li a { color: #FFF; }

footer .scroll-to-top {
	position: fixed;
	bottom: -50px;
	right: 30px;
	width: 50px;
	height: 50px;

	padding-top: 2px;

	background-color: #CCC;

	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;

	color: #555;
	font-size: 30px;
	text-align: center;
	cursor: pointer;
}
footer .scroll-to-top:hover { color: #333; }

.btn { font-weight: 200; }

/*-------------------*/
/* Media Query Rules */
/*-------------------*/

/* Large desktop */
@media (min-width: 1200px) { }

/* Portrait tablet to landscape and large desktop */
@media (min-width: 768px) {
	nav.compressed .navbar-nav > li > a,
	nav.compressed a.navbar-brand {
		padding-top: 9px;
        padding-bottom: 8px;
		height: auto;
	}
}

/* Portrait tablet to landscape and desktop */
@media (min-width: 768px) and (max-width: 979px) {
	.header .surprise-logo { display: none !important; }
}

/* Landscape phone to portrait tablet */
@media (max-width: 767px) {
    nav.navbar { border: none; }
	.header h2 {
		font-size: 1.5em;
		padding-top: 5px;
	}
	.header-actions .btn {
		padding: 5px 10px;
		font-size: 12px;
		line-height: 1.5;
		border-radius: 3px;
	}
	.header.scrolled { top: 50px; }
	/*footer { padding: 10px 0 5px; text-align: center; }*/
    footer .footer-left { width: 100%; }
	footer .scroll-to-top { display: none; }
}

/* Landscape phones and down */
@media (max-width: 480px) {
    nav.navbar { border: none; }
	.header h2 {
		font-size: 1.2em;
		padding-top: 3px;
        width: 100%;
        text-align: center;
	}
    .header-actions {
        width: 100%;
        text-align: center;
    }
	.header-actions .btn {
		padding: 5px 10px;
		font-size: 12px;
		line-height: 1.5;
		border-radius: 3px;
	}
	.header.scrolled { top: 50px; }
    .page-actions { width: 100%; text-align: center; }
	footer { padding: 10px 0 5px; }
	footer .scroll-to-top { display: none; }
}

.row-menu {
    position: fixed;
    bottom: -40px;
    width: 100%;
    height: 40px;
    background: #FFF;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid #CCC;
}
.row-menu .row-identifier {
    display: inline-block;
    width: 60%;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    font-size: 16px;
}



/*---------*/
/* Custom  */
/*---------*/

.nav-project-logo {
    position: relative;
    top: 8px;
    height: 35px;
    margin: -15px 10px 0 0;
	border: 2px solid #FFF;
	-webkit-border-radius: 2px;
	-moz-border-radius: 2px;
	border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.navbar.compressed .nav-project-logo {
    height: 30px;
    margin: -13px 5px 0 0;
}
@media (max-width: 480px) {
    .navbar.compressed .nav-project-logo {
        margin: 2px 0 0 0;
    }
}

.waste {
	height: 400px;
}
.table th i.fa { margin-left: 3px; }

#code { min-height: 1200px; }

.pco-label {
	font-size: 100%;
	line-height: 2;
}

.pco-label-remove {
	cursor: pointer;
}

/*--------------*/
/* Alert Box    */
/*--------------*/

@media (min-width: 768px) {
	/*Responsive styling for the alert box*/
	div.js_alert_box {
		width: 262px; /*Got this from span4*/
		position: fixed;
		z-index: 3;
		margin-left: 506px;
	}

	div.js_alert_box div.alert {
		width: 85%;
	}
}

@media (min-width: 992px) {
	/*Responsive styling for the alert box*/
	.container div.js_alert_box {
		width: 340px; /*Got this from span4*/
		position: fixed;
		z-index: 3;
		margin-left: 652px;
	}

	.container-fluid div.js_alert_box {
		width: 370px;
		position: fixed;
		z-index: 3;
		/* margin-left: 830px; */
		right: 100px;
		margin-top: -50px;
	}

	div.js_alert_box div.alert {
		width: 85%;
	}
}

@media (min-width: 1200px) {
	/*Responsive styling for the alert box*/
	.container div.js_alert_box {
		width: 370px; /*Got this from span4*/
		position: fixed;
		z-index: 3;
		margin-left: 830px;
	}

	.container-fluid div.js_alert_box {
		width: 370px;
		position: fixed;
		z-index: 3;
		/* margin-left: 830px; */
		right: 100px;
		margin-top: -50px;
	}

	div.js_alert_box div.alert {
		width: 85%;
	}
}

@media (max-width: 767px) {
	div.js_alert_box {
		width: 100%; /*Got this from span4*/
		position: relative;
		display: block;
		z-index: 3;
	}

	div.js_alert_box div.alert {
		width: 100%;
	}
}

/*--------------------------------*/
/* Table overrides			      */
/*--------------------------------*/

.table tbody td.success {
  background-color: #5cb85c !important;
  color: white !important;
}

.table tbody td.danger, span.label.label-danger.aim_colours {
  background-color: #b94a48 !important;
  color: white !important;
}

.table tbody td.warning, span.label.label-warning.aim_colours {
  background-color: #FFFF00 !important;
  color: black !important;
}

.table tbody td.info, span.label.label-info.aim_colours {
  background-color: #3a87ad !important;
  color: white !important;
}

.center-text{
	text-align: center !important;
}

.pricing-table td, .pricing-table th {
   text-align: center;   
   font-size: 14px !important;
}


/* Commented these out in favour of Yuhiro's styling above
/*table.ava_table_show tbody tr:first-child td{
	border-top-style: none !important;
}

a.js_collapse_toggle{
	outline: 0;
}

*/

/*--------------------------------*/
/* Collision styles			      */
/*--------------------------------*/
.form-control-static.collision{
	padding-left: 13px;
	width: 100%;
}


/*--------------------------------*/
/* Bootstrap Submenus		      */
/*--------------------------------*/
.dropdown-submenu {
    position:relative;
}
.dropdown-submenu>.dropdown-menu {
    top:0;
    left:100%;
    margin-top:-6px;
    margin-left:-1px;
    -webkit-border-radius:0 6px 6px 6px;
    -moz-border-radius:0 6px 6px 6px;
    border-radius:0 6px 6px 6px;
}
.dropdown-submenu:hover>.dropdown-menu {
    display:block;
}
.dropdown-submenu>a:after {
    display:block;
    content:" ";
    float:right;
    width:0;
    height:0;
    border-color:transparent;
    border-style:solid;
    border-width:5px 0 5px 5px;
    border-left-color:#cccccc;
    margin-top:5px;
    margin-right:-10px;
}
.dropdown-submenu:hover>a:after {
    border-left-color:#ffffff;
}
.dropdown-submenu.pull-left {
    float:none;
}
.dropdown-submenu.pull-left>.dropdown-menu {
    left:-100%;
    margin-left:10px;
    -webkit-border-radius:6px 0 6px 6px;
    -moz-border-radius:6px 0 6px 6px;
    border-radius:6px 0 6px 6px;
}

/*--------------------------------*/
/* Misc overrides			      */
/*--------------------------------*/

.status-success {
  color:#5cb85c
}

/*Making the Google org chart work with bootstrap*/
table.google-visualization-orgchart-table {
  border-collapse: separate;
}

.hoverimage {
	position: absolute;
	top: 0;
	left: 0;
	display: none;
}

.screenshot:hover .hoverimage {
	display: block;
}

/*http://stackoverflow.com/questions/18730116/twitter-bootstrap-3-0-how-do-i-badge-badge-important-now*/
.label-as-badge {
    border-radius: 1em;
}

/*Load for only IE 11*/
@media all and (-ms-high-contrast:none)
{
	.selectize-input > input[placeholder] {
		width: 100% !important;
		color:#999;
	}
}

.mce-branding{
	display:none !important;
}

.checkbox{
	margin-top:0.85rem;
}

.btn-sm.btn-xs{
	font-size: 10px;
	line-height: 10px;
}

.content-block p:last-child{
	margin-bottom: 0;
}

/*Styles for profile pictures*/
.team-member{
	margin-bottom:5px;
}

.tiny_profile_pic {
	height: 2em;
	width: 2em;
	overflow: hidden;
	background: url("/img/loading_spinner.gif") center/50% no-repeat;
	margin-top: 4px;
}

.tiny_profile_pic img {
	width: 100%;
}

.team-member .team-member-image a {
	outline: 0;
	padding: 0;
	border: none;
}

.modal .team-member .team-member-image {
	position: absolute;
	top: 15px;
	left: 15px;
}

.team-member .team-member-image {
	max-height: 150px;
	max-width: 150px;
	background: url("/img/loading_spinner.gif") center/50% no-repeat;
}

.scrolled .team-member>.team-member-image {
	height: 65px;
	width: 65px;
}

.team-member .team-member-image img {
	width: 100%;
}

.team-member h3 {
	margin-bottom: 5px;
	margin-top: 3px;
	font-size: 22px;
	/*color: #2b90d9;*/
}

.team-member h3 span {
	font-size: 16px;
}

.team-member .experience {
	/*margin-bottom: 5px;*/
	color: #9BAEC8;
	/*font-style: italic;*/
	font-weight: 400;
}

.team-member .level {
	/*margin-bottom: 5px;*/
	color: #9BAEC8;
	font-style: italic;
	font-weight: 600;
}

.team-member .level-description {
	color: #9BAEC8;
	font-style: italic;
	font-weight: 400;
}

.profile_display_img {
	max-height: 100px;
	display: block;
	max-width: 150px;
}

/*End profile picture styles*/

.dataTables_filter{
	text-align: right !important;
}

.dataTables_wrapper{
	padding-right: 0!important;
}

.has-error .help-block,
.has-error .control-label,
.has-error .radio,
.has-error .checkbox,
.has-error .radio-inline,
.has-error .checkbox-inline,
.has-error.radio label,
.has-error.checkbox label,
.has-error.radio-inline label,
.has-error.checkbox-inline label {
	color: #a94442;
}
.has-error .form-control {
	border-color: #a94442;
	-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
}
.has-error .form-control:focus {
	border-color: #843534;
	-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483;
}
.has-error .input-group-addon {
	color: #a94442;
	background-color: #f2dede;
	border-color: #a94442;
}
.has-error .form-control-feedback {
	color: #a94442;
}

.no-clicky{
	pointer-events: none;
}

/* Shadows for visually distinct panels */
.simple-shadow{
	box-shadow: 8px 8px 5px 0px #C4C4C4;
}

table.file_upload_table{
	margin-top: 0;
}

.file_upload_table thead th{
	border-top: none;
}
