﻿/********************
* Management
********************/
.table > thead > tr > th {
    border-bottom: 2px solid #2d78ae;
}

.btn.loading:after {
	animation: 0.6s linear 0s normal none infinite running rotation;
	border-color: rgba(255, 255, 255, 0.8) rgba(255, 255, 255, 0.15) rgba(255, 255, 255, 0.15);
	border-radius: 100%;
	border-style: solid;
	border-width: 4px;
	display: inline-block;
	height: 16px;
	position: relative;
	vertical-align: middle;
	width: 16px;
	margin-left: 5px;
	content: "";
}
.btn.btn-default.loading:after {
	border-color: rgba(51, 51, 51, 0.8) rgba(51, 51, 51, 0.15) rgba(51, 51, 51, 0.15);
}

.form-group.has-error .control-label {
	position: relative;
}

.form-group.has-error .control-label::before {
	font-family: FontAwesome;
	content: "\f06a";
	position: absolute;
	left: -1.2em;
	display: inline-block;
	font-weight: normal;
}

.form-group:not(.has-error) .show-on-error {
	display: none;
}

.has-error.form-control {
	border-color: #a94442;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
}
.has-error.form-control:focus {
	border-color: #843534;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483;
}

.form-control.checkbox-inline
{
	width: auto;
	height: auto;
}

.save-modal-in-progress .save-modal-show-on-success,
.save-modal-in-progress .save-modal-show-on-fail {
	display: none;
}
.save-modal-success .save-modal-show-on-in-progress,
.save-modal-success .save-modal-show-on-fail {
	display: none;
}
.save-modal-fail .save-modal-show-on-in-progress,
.save-modal-fail .save-modal-show-on-success {
	display: none;
}
.save-modal-in-progress .save-modal-hide-on-in-progress {
	display: none;
}

.animated-ellipsis {
	margin: 10px auto;
	width: 110px;
	text-align: center;
}

.animated-ellipsis > div {
	width: 18px;
	height: 18px;
	background-color: #337ab7;
	box-shadow: 0 0 5px #337ab7;

	border-radius: 100%;
	display: inline-block;
	animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}

.animated-ellipsis > div:nth-child(1) {
	animation-delay: -0.64s;
}
.animated-ellipsis > div:nth-child(2) {
	animation-delay: -0.48s;
}
.animated-ellipsis > div:nth-child(3) {
	animation-delay: -0.32s;
}
.animated-ellipsis > div:nth-child(4) {
	animation-delay: -0.16s;
}

@keyframes sk-bouncedelay {
	0%, 80%, 100% { 
		transform: scale(0);
		opacity: 0;
	} 40% { 
		transform: scale(1.0);
		opacity: 1;
	}
}

.loader {
	text-indent: -9999em;
	width: 25px;
	height: 25px;
	border-radius: 50%;
	background: #0080ff;
	background: linear-gradient(to right, #0080ff 10%, rgba(0, 128, 255, 0) 42%);
	position: absolute;
	animation: rotation 1s infinite linear;
	transform: translateZ(0);
	font-size: 0;
	display: inline-block;
	vertical-align: middle;
	margin-top: 2px;
}
.loader:before {
	width: 50%;
	height: 50%;
	background: #0080ff;
	border-radius: 100% 0 0 0;
	position: absolute;
	top: 0;
	left: 0;
	content: '';
}
.loader:after {
	background: #ffffff;
	width: 75%;
	height: 75%;
	border-radius: 50%;
	content: '';
	margin: auto;
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
}

.spinner {
	height: 25px;
	width: 25px;
	position: relative;
	animation: rotation .6s infinite linear;
	border-left: 4px solid rgba(0, 128, 255, 0.15);
	border-right: 4px solid rgba(0, 128, 255, 0.15);
	border-bottom: 4px solid rgba(0, 128, 255, 0.15);
	border-top: 4px solid rgba(0, 128, 255, 0.8);
	border-radius: 100%;
	vertical-align: middle;
	display: inline-block;
	font-size: 0;
}

@keyframes rotation {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

.tr-highlight-danger {
	background-color: #ffe5e5 !important;
}

.ui-sortable-handle {
	cursor: move;
}

.ui-sortable-helper {
	display: table;
}
.ui-sortable-helper > td {
	background-color: rgba(236, 255, 188, 0.50);
}

.badge.caption {
	max-width: 100%;
	text-overflow: ellipsis;
	overflow: hidden;
	margin-top: 5px;
	padding: 5px 7px;
}

.badge.caption:hover {
	background-color: #555;
}

.badge.caption:empty {
	display: inline-block;
}

.badge.caption:empty::after {
	content: "Add Caption...";
}