/* Page Elements */
.page-container {
	width: 100%;
	display: table;
	table-layout: fixed;
	position: relative;
}

.page-content {
	display: table-row;
}

.content-wrapper {
	vertical-align: top;
	width: 100%;
}

@media(min-width:415px){
	.content-wrapper {
		display:table-cell
	}
}

.content:first-child {
	padding-top: 20px;
}
.content {
	padding: 0 20px 60px;
}

.has-feedback-left .form-control-feedback {
	right: auto;
	left: 5px;
}
.form-control-feedback {
	width: 38px;
	color: #333;
}

.display-block, label.display-block {
	display: block;
}

a, a:hover, a:focus{
	background: none;
	text-decoration: none;
}

/* Others */
.navbar {
	border: 0;
	border-radius: 3px;
	box-shadow: none;
	padding: 10px 0;
}

.navbar, .navbar.navbar-default {
	background-color: transparent;
	color: #ffffff;
}

.navbar .navbar-toggle {
	position: absolute;
	right: 0;
}

.navbar .navbar-toggle .icon-bar {
	background-color: #888;
	border: none;
}

.form-horizontal .form-group {
	margin-top: 2px;
	margin-right: 5px;
	margin-bottom: 4px;
}

.box {
	display: table;
	width: 100%;
	height: 100%;
	border-spacing: 0;
	table-layout: fixed;
}

.box-row {
	display: table-row;
	height: 100%;
}

.box-row > .box-cell {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: auto;
	display: table-cell;
	-webkit-overflow-scrolling: touch;
}

.box-inner {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

#main-content > form > div.tabs-container {
	margin: -20px;
}

div.validation-errors{
	text-align: left;
	font-family: Roboto, Helvetica, Arial, sans-serif;
}

div.validation-errors ul li{
	list-style: none;
	font-weight: bold;
	color: black;
}

div.validation-errors ul li > ul{
	padding: 0px;
	margin-top: 9px;
	margin-left: 37px;
}

div.validation-errors ul li > ul li{
	color: #820c0c !important;
}

div.validation-errors ul li > ul li{
	list-style-image: url("../img/validation-error.png");
}

/* Image Upload */
.image-upload{
	border: none !important;
}

.image-upload img{
	max-height: 200px;
	width: auto;
}

.image-preview-input {
	position: relative;
	overflow: hidden;
	margin: 0;
	color: #333;
	background-color: #fff;
	border-color: #ccc;
}

.image-preview-input input[type=file] {
	position: absolute;
	top: 0;
	right: 0;
	margin: 0;
	padding: 0;
	font-size: 20px;
	cursor: pointer;
	opacity: 0;
	filter: alpha(opacity=0);
}

.image-preview-input-title {
	margin-left:5px;
}

/* Most of below is to fix Bootstrap, allowing ellipsis overflow */
.fileupload {
	display: flex;
	flex-flow: row nowrap;
}

.fileupload input[type="file"] { display: none; }

.fileupload .form-control {
	display: inline-block;
	flex: 1 1 auto;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
	width: auto;
	float: none;
	cursor: pointer;
}

.fileupload .input-group-addon {
	display: inline-block;
	flex: 0 0 auto;
	width: auto;
	line-height: 1.42857;
	padding: 9px 12px;
	cursor: pointer;
}

.formset .form-control, .formset .input-group-addon {
	cursor: pointer;
}

.formset > select {
	display: none !important;
}

.formset {
	display: flex;
	flex-flow: row nowrap;
}

.formset .form-control {
	display: inline-block;
	flex: 1 1 auto;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
	width: auto;
	float: none;
}

.formset .input-group-addon {
	display: inline-block;
	flex: 0 0 auto;
	width: auto;
	line-height: 1.42857;
	height: 34px;
}

.formset .input-group-addon i{
	margin-top: 3px;
}

span.formset.disabled > label.form-control{
	background: whitesmoke;

}

.formset.disabled .form-control, .formset.disabled  .input-group-addon {
	cursor: not-allowed !important;
}

.loading,.loading>td,.loading>th,.nav li.loading.active>a,.pagination li.loading,.pagination>li.active.loading>a,.pager>li.loading>a{
	background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 0));
	background-size: 40px 40px;
	animation: progress-bar-stripes 2s linear 0s normal none infinite;
	-webkit-animation: progress-bar-stripes 2s linear infinite;
}
.btn.btn-default.loading,input[type="text"].loading,select.loading,textarea.loading,.well.loading,.list-group-item.loading,.pagination>li.active.loading>a,.pager>li.loading>a{
	background-image: linear-gradient(45deg, rgba(235, 235, 235, 0.15) 25%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 50%, rgba(235, 235, 235, 0.15) 50%, rgba(235, 235, 235, 0.15) 75%, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 0));
}

input:-webkit-autofill, input:-webkit-autofill:focus, input:-webkit-autofill:hover {
	-webkit-box-shadow:0 0 0 50px white inset; /* Change the color to your own background color */
	-webkit-text-fill-color: #646464;
}

.thead-inverse th {
	color: #fff;
	background-color: #212529;
}

.exception-modal .modal-header{
	background-color: #c24747;
	color: #ffffff;
}