html {
	height: 100%;
}

body {
	height: 100%;
	position: relative;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;

	-ms-flex-direction: column;
	-webkit-flex-direction: column;
	flex-direction: column;
}

section[role=body] {
	-ms-flex: 1 1 auto;
	-webkit-flex: 1 1 auto;
	flex: 1 1 auto;
	position: relative;

	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;

	-ms-flex-direction: row;
	-webkit-flex-direction: row;
	flex-direction: row;
}

/*
 * Global add-ons
 */
.sub-header {
	padding-bottom: 10px;
	border-bottom: 1px solid #eee;
}

/*
 * Top navigation
 * Hide default border to remove 1px line.
 */
.navbar-fixed-top {
	border: 0;
	-ms-flex: 0 0 auto;
	-webkit-flex: 0 0 auto;
	flex: 0 0 auto;
	
	position: relative;
	margin-bottom: 0px;	
}

/*
 * Sidebar
 */

/* Hide for mobile, show later */
.sidebar {
	display: none;
}

@media ( min-width : 768px) {
	.sidebar {
/*		position: fixed;
		top: 41px;
		bottom: 0;
		left: 0; */
		-ms-flex: 0 0 auto;
		-webkit-flex: 0 0 auto;
		flex: 0 0 auto;
		
		z-index: 900;
		display: block;
		padding: 20px;
		overflow-x: hidden;
		overflow-y: auto;
		/* Scrollable contents if viewport is shorter than content. */
		background-color: #f5f5f5;
		border-right: 1px solid #eee;
		width: 250px;
	}

	.sidebar-right {
/*		position: fixed;
		top: 41px;
		bottom: 0;
		right: 0;*/
		
		-ms-flex: 0 0 auto;
		-webkit-flex: 0 0 auto;
		flex: 0 0 auto;
		z-index: 900;
		display: block;
		overflow-x: hidden;
		overflow-y: hidden;
		/* Scrollable contents if viewport is shorter than content. 
		background-color: #f5f5f5;
		border-right: 1px solid #eee;
		*/
	}
	
	.sidebar-details {
		width: 350px;
	}
}

@media ( min-width : 1024px) {
	.sidebar-details {
		width: 400px;
	}
	
}

@media ( min-width : 1280px) {
	.sidebar-details {
		width: 450px;
	}	
}


.sidebar-details {
	padding: 0px;
	border: 1px solid #cccccc;
	border-radius: 10px;
	margin-top: 15px;
	margin-bottom: 15px;

	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;

	-ms-flex-direction: column;
	-webkit-flex-direction: column;
	flex-direction: column;
}

.include-details {
	-ms-flex: 0 0 auto;
	-webkit-flex: 0 0 auto;
	flex: 0 0 auto;
	
}

.sidebar-details>.navbar {
/*
	top: 0px;
	position: absolute;
	left: 0px;
	right: 0px;*/
	-ms-flex: 0 0 auto;
	-webkit-flex: 0 0 auto;
	flex: 0 0 auto;
	border-radius: 0px;
	margin-bottom: 10px;
}

.leave-room-for-details {
/*	margin-right: 450px;*/
	
}

/* Sidebar navigation */
.nav-sidebar {
	margin-right: -21px; /* 20px padding + 1px border */
	margin-bottom: 20px;
	margin-left: -20px;
}

.nav-sidebar.team-users {
	margin-bottom: 0px;
}

.nav-sidebar>li>a {
	padding-right: 35px;
	padding-left: 20px;
}
.nav-sidebar>li>.nav-sidebar {
	margin-right: 0px;
	margin-left: 0px;
	
}

.nav-sidebar>.active>a, .nav-sidebar>.active>a:hover, .nav-sidebar>.active>a:focus
	{
	color: #fff;
	background-color: #428bca;
}

/*
 * Main content
 */
.main {
	padding: 20px;
}

@media ( min-width : 768px) {
	.main {
		padding-right: 40px;
		padding-left: 40px;
	}
}

.main .page-header {
	margin-top: 0;
}

/*
 * Placeholder dashboard ideas
 */
.placeholders {
	margin-bottom: 30px;
	text-align: center;
}

.placeholders h4 {
	margin-bottom: 0;
}

.placeholder {
	margin-bottom: 20px;
}

.placeholder img {
	display: inline-block;
	border-radius: 50%;
}

.form-control-feedback-error {
	position: absolute;
	top: 25px;
	right: 0;
	width: 34px;
	height: 34px;
	line-height: 34px;
	text-align: center;
	display: none;
}

.has-error .form-control-feedback-error {
	display: block;
	color: #b94a48;
}

td.has-error .form-control-feedback-error {
	top: 5px;
}

.has-feedback .form-control {
	padding-right: 4px;
}

td.has-feedback.has-error .form-control {
	padding-right: 20px;	
}

.table > tbody > tr > td.form-label {
	padding-top: 12px;
}


.project-heading > ag-project-menu > div > a > span.glyphicon {
	color: white;
	margin-left: 4px;
	vertical-align: baseline;
	font-size: 70%;
}

.project-heading:hover > ag-project-menu > div > a > span.glyphicon {
	color: #cccccc;
}

.project-heading > ag-project-menu > div {
	display: inline;
}

.section-project > ag-project-menu > span > a > span.glyphicon,
a.sidebar-project > ag-project-menu > span > a > span.glyphicon
{
	display: none;
}

.section-project:hover > ag-project-menu > span > a > span.glyphicon,
a.sidebar-project:hover > ag-project-menu > span > a > span.glyphicon
{
	display: inline;
}

a.sidebar-team {
	outline: none;
}

a.sidebar-team > span.glyphicon {
	margin-left: -15px;
	margin-right: 5px;
}

.nav > li > a.team-settings {
	position: absolute;
	top: 11px;
	right: 27px;
	padding: 0px;
}

.nav > li > .dropdown  {
	position: absolute;
	top: 11px;
	right: 10px;
	padding: 0px;
}

.sidebar-project-menu > .dropdown  {
	position: absolute;
	top: 11px;
	right: 10px;
	padding: 0px;
}


.task-projects {
	position: absolute;
	right: 0;
	top: 0;
	z-index: 100;
}

.details-projects,
.details-template {
	padding-left: 30px;
	text-align: left;
	position: relative;
	border-bottom: 1px solid #eee;
	padding-bottom: 10px;
}

.details-template {
	padding-left: 44px;
	font-weight: bold;
	margin-top: 10px;
}

.details-projects > div {
	clear: left;
}

.details-projects > div.details-project .glyphicon {
	color: white;
	top: 3px;
	margin-left: 4px;
}

.details-projects > div.details-project:hover .glyphicon {
	color: #cccccc;
	top: 3px;
	margin-left: 4px;
}

.details-data {
	margin-top: 10px;
	border-bottom: 1px solid #eee;
	padding-bottom: 10px;
}

.details-data > div {
	margin-left: 30px;
}

.details-data > span.glyphicon {
	margin-left: 15px;
	top: 9px;
	float: left; 
}

.details-pills,
.details-subtasks {
	border-bottom: 1px solid #eee;
}

.details-subtasks > ol > li {
	font-weight: bold;
}

.details-events {
	margin-top: 10px;
	border-bottom: 1px solid #eee;
	padding-bottom: 10px;
	text-align: left;
	overflow: auto;
}

.details-comment {
	padding-left: 30px;
	margin-top: 10px;
	border-bottom: 1px solid #eee;
	padding-bottom: 10px;
	text-align: left;
}

.details-events p.info {
	margin-left: 30px;
	font-size: 0.8em;
	color: #888888;
}

.details-events div.comment p {
	margin-left: 30px;
}

.details-events div.comment span.sender {
	font-weight: bold;
	color: #333333;
	font-size: 1.25em;
}

.details-events div.comment span.glyphicon {
	margin-top: 2px;
	margin-left: 5px;
	float: left;	
}

.details-name {
	font-size: 1.3em;
	font-weight: bold;
}

.details-marker {
	color: #337ab7; 
	padding: 10px 15px; 
	float: left;
}

textarea {
	resize: none;
}

.details-data .details-state .form-control {
	border: 1px solid rgb(204,204,204);
}

.details-data > .details-name > .form-control,
.details-data > .details-notes > .form-control
 {
	border-color: transparent;
	box-shadow: none;	
	-webkit-box-shadow: none;
}

.details-data .form-control:focus {
	border-color: #66afe9;
	outline: 0;
	-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, 0.6);
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, 0.6);
}

.details-data .has-error .form-control:focus {
	border-color: #b94a48;
}

.details-projects-add {
	float: right;
	position: relative;
	padding-right: 5px;
}

.details-projects-list {
	width: 300px;
	position: absolute;
	top: 0px;
	left: -310px;
	z-index: 100;
	padding: 0px;
	border: 1px solid #cccccc;
	border-radius: 10px;
	background-color: white;
}

.details-projects-list > div {
	padding: 0px 3px;
	cursor: pointer;
}

.details-projects-list > div:hover {
	background-color: #eeeeee;
}

.details-owner > span.glyphicon,
.details-due-date > span.glyphicon-remove {
	color: rgb(248, 248, 248);
	top: 3px;
	margin-left: 4px;
	position: absolute;
	top: 3px;
	right: 0px;
	color: #c6c6c6;
	display: none;
	font-size: 8pt;
}

.details-owner:hover > span.glyphicon,
.details-due-date:hover > span.glyphicon-remove {
	display: inline;	
}

.details-owner,
.details-due-date {
	border-right: 1px solid #e7e7e7;
}

.details-due-date > .glyphicon {
	margin-right: 4px;
}

.details-user .dropdown-menu,
.details-user input.form-control {
	width: 300px;
}

.details-container {
/*	text-align: center;*/
	overflow-y: auto;
	padding-top: 5px;
	-ms-flex: 1 1 auto;
	-webkit-flex: 1 1 auto;
	flex: 1 1 auto;
}

.followers-bar {
/*	position: absolute;
	bottom: 0px;
	min-height: 40px;
	left: 0px;
	right: 0px;*/
	-ms-flex: 0 0 auto;
	-webkit-flex: 0 0 auto;
	flex: 0 0 auto;
	background-color: #f8f8f8;
	border-top: 1px solid #e7e7e7;
	
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	
	align-items: stretch;
}

.followers-icon {
	width: 27px; 
	height: 27px;
	border: 1px solid #c5c5c5;
	border-radius: 3px;	
	background-color: #e7e7e7;
	text-align: center;
	margin: 6px;
	padding-top: 5px;
	-ms-flex: 0 0 auto;
	-webkit-flex: 0 0 auto;
	flex: 0 0 auto;
}

.followers-label {
	border-right: 1px solid #e7e7e7;
	padding-top: 12px;
	padding-right: 20px;
	-ms-flex: 0 0 auto;
	-webkit-flex: 0 0 auto;
	flex: 0 0 auto;
}

.followers-initials {
	border-radius: 3px;	
	text-align: center;
	margin: 6px 1px;
	padding-top: 6px;
	height: 27px;
	width: 27px; 
	flex: 0 0 auto;
	position: relative;
}

.followers-initials > a > span.glyphicon {
	position: absolute;
	top: 0px;
	right: 0px;
	color: #c6c6c6;
	font-size: 8pt;
	display: none;
}

.followers-initials:hover > a > span.glyphicon {
	display: inline;
}

.followers-user-initials {
	height: 23px;
	width: 23px;
	border: 1px solid;
	border-radius: 3px;	
	text-align: center;
	margin: 0px 1px;
	padding-top: 2px;
	float: left;
}

.followers-user-container {
	-ms-flex: 1 1 auto;	
	-webkit-flex: 1 1 auto;	
	flex: 1 1 auto;
	margin-left: 4px;	

	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;

	flex-wrap: wrap;	
}

.followers-user {
	height: 27px;
	border: 1px solid #c6c6c6;
	border-radius: 3px;
	padding-top: 1px;
	clear: right;
	vertical-align: middle;
	margin-top: 6px;
	margin-left: 1px;
	
	flex: 0 0 auto;
}

.followers-user > a > span.glyphicon {
	margin: 3px;
	color: #c6c6c6;
}

.followers-name {
	float: none;
}

.followers-add-user > input.form-control {
	width: 280px;
	margin-top: 5px;
}

.followers-user-container > a > span.glyphicon {
	color: #c6c6c6;
	align: right;
	margin-left: 20px;
	margin-top: 14px;
}

.followers-add-user {
	margin-bottom: 5px;
}

.task-data {
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	
	-ms-align-items: flex-start;
	-webkit-align-items: flex-start;
	align-items: flex-start;
	
	-ms-flex-wrap: wrap-reverse;
	-webkit-flex-wrap: wrap-reverse;
	flex-wrap: wrap-reverse;
}

.task-name {
	flex: 1 1 auto;
}

.task-data > .badge-project,
.task-data > .task-show-details,
.task-data > .task-number,
.task-data > .dropdown > .task-owning-state,
.task-data > .task-alerts {
	flex: 0 0 auto;
}

.task-data > .task-number {
	padding-right: 4px;
	margin-bottom: 3px;
}

.task-data > .dropdown > .task-owning-state {
	height: 14px;
	width: 14px;
	margin: 3px 5px;
	border-radius: 50%;
}

.task-data > .dropdown > .task-owning-state {
	border: 2px solid #44C1F1;
	background-color: transparent;
}

.task-data > .dropdown > .task-owning-state.task-owning-state-inbox {
	background-color: rgb(151, 219, 245);
	border: 2px solid rgb(151, 219, 245);
}

.task-data > .dropdown > .task-owning-state.task-owning-state-inbox:hover {
	background-color: #44C1F1;
	border: 2px solid rgb(151, 219, 245);
}
.task-data > .dropdown > .owning-state-menu {
	right: 0px;
	left: auto;
}

/*
table.table-tasks {
	margin-bottom: 83px;
}
*/

.task-data > .task-alerts {
	color: rgb(255, 205, 0);
}

.task-data input.task-name {
	border-color: transparent;
	-webkit-box-shadow: none;
	box-shadow: none;
	background-color: transparent;
}

.task-data .form-control:focus {
	border-color: transparent;
	-webkit-box-shadow: none;
	box-shadow: none;
}


.details-dropdown {
	font-weight: bold;
	text-align: center;
	width: 23px;
	padding-top: 4px;
	margin-top: 8px;
	height: 23px;
	vertical-align: middle;
}

.remove-time-entry .glyphicon {
	color: red;
}

.due-date-missing { /* like dark-red */
	color: rgb(199, 63, 39); 
}

.task-due-date {
	padding: 0px 3px 2px;
}

.task-late-due-date {
	color: rgb(199, 63, 39);
}

.project-menu-color {
	width: 23px;
	height: 23px;
	margin: 1px 2px;
	padding-top: 4px;
	text-align: center;
	float: left;
	border: 1px solid white;
}

.project-menu > li > div {
	padding: 3px 20px;
	width: 215px;
}

.sidebar-project- {
	border-left: 5px solid white;
	position: relative;
}

.sidebar-project a {
	outline: none;
}

.sidebar-project-visibility {
	border-left: 5px solid transparent;
}

.section-project {
	border-radius: 10px;
	padding: 2px 10px;
	margin-left: 4px;
	float: left;
}

.badge-project {
	border-radius: 8px;
	padding: 1px 8px 2px;
	margin-left: 2px;
}

.search-project {
	border-radius: 8px;
	padding: 2px 8px;
	margin-left: 25px;
	text-overflow: ellipsis;
	overflow: hidden;
}

.dropdown-menu > li > a.search-item {
	padding: 3px 10px;
}

.badge-initials {
	border-radius: 50%;
	font-size: 11px;
	font-weight: bold;
	text-align: center;
	width: 23px;
	padding-top: 4px;
	height: 23px;
	vertical-align: middle;
	
}

.details-badge-initials,
.team-badge-initials {
	border-radius: 50%;
	font-size: 11px;
	font-weight: bold;
	text-align: center;
	width: 23px;
	padding-top: 4px;
	margin-top: 8px;
	height: 23px;
	vertical-align: middle;
}

.team-badge-initials {
	margin-left: 2px;
}

.team-users {
	margin-left: 20px;
	margin-bottom: 4px;
}

.team-members table  {
	table-layout: fixed;
}

.team-members table .team-badge-initials {
	margin-top: 0px;
}

.team-members {
	max-height: 300px;
}

.team-member-add,
.team-member-invite {
	margin-top: 10px;
	padding-top: 5px;
	border-top: 1px solid #e5e5e5;
}

.team-member-invite > div {
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
}

.team-member-invite > div > div {
	-ms-flex: 1 1 auto;
	-webkit-flex: 1 1 auto;
	flex: 1 1 auto;
}

.team-member-invite-email {
	padding-right: 5px;
}

div.team-member-invite > div.checkbox {
	display: flex;
}

div.checkbox > button {
	margin-left: auto;
}

.nav-sidebar.team-projects {
	position: relative;
	margin-bottom: 0px;
}

.team-projects-title {
	font-size: 85%;
	font-weight: bold;
}

.nav > li.team-projects-title > a {
	padding-bottom: 0px;
	outline: none;
}

.nav > li.team-badge-initials > a {
	padding: 0px;
	outline: none;
}

.nav > li.team-badge-initials > a > .glyphicon{
	top: -1px;
}

.badge-initials abbr.initials {
	line-height: 1;
}

.badge-project-details {
	border-radius: 8px;
	padding: 1px 8px;
	margin-left: 2px;
	margin-bottom: 2px;
	float: left;
}

.badge-project-missing {
	color: #dddddd;
}

a.task-typeahead-row > span {
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	
	-ms-align-items: flex-start;
	-webkit-align-items: flex-start;
	align-items: flex-start;
}

a.task-typeahead-row > span > span.task-typeahead-label {
	text-overflow: ellipsis; 
	overflow: hidden; 
	flex: 1 1 auto;
}

a.task-typeahead-row > span > span.badge-project {
	flex: 0 0 auto;
}

input#srch-term {
	width: 500px;
}

.body-view {
	flex: 1 1 auto;
	overflow-y: hidden;
	margin: 0px 10px; 

	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	
	
}

.body-table {
	-ms-flex: 1 1 auto;
	-webkit-flex: 1 1 auto;
	flex: 1 1 auto;
	
	margin-right: 10px;
	position: relative;

	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;

	-ms-flex-direction: column;
	-webkit-flex-direction: column;
	flex-direction: column;
	
	/* fix flex behaviour in explorer 11 */
	width: 0px;
}

.body-table > h2.sub-header {
	flex: 0 0 auto;
}

.body-table > nav.navbar-default {
	flex: 0 0 auto;
}

.body-table > .table-responsive {
	flex: 1 1 auto;
	
	/* fix flex behaviour in firefox */
	height: 0px;
}

/*
.body-table > .table-responsive {
	position: absolute;
    bottom: 15px;
    top: 127px;
}
*/

.navbar-header	 {
	width: 235px;
}

.project-filter > span {
	margin-left: 5px;
}

a.badge-initials-click:hover {
	text-decoration: none;
}

div.body-project-status {
	width: 500px;
		
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;

	-ms-flex-direction: column;
	-webkit-flex-direction: column;
	flex-direction: column;
}

div.body-project-status > h2,
div.body-project-status > nav,
div.body-project-status > div
{
	flex: 0 0 auto;
}

div.body-project-status > div.details-events {
	flex: 1 1 auto;
}

.dndDraggingSource {
	display: none;
}

.nav li.sidebar-project.dndDraggingSource {
	display: none;
}

li.dndPlaceholder {
	border-top: 1px solid blue;
	background-color: #337ab7;	
}

li.dndPlaceholder > a.sidebar-project {
	color: white;
}

.table-tasks > tbody > tr.dndPlaceholder {
/*	background-color: #667ab7;	
	border-top: 1px solid blue;
	border-bottom: 1px solid blue; */
	font-weight: bold;
}

.table-tasks > tbody {
	position: relative;
}

.table-tasks > tbody > tr {
	position: relative;
}