html {
	font-family: 'Open Sans', sans-serif;
}

body {
	background-color: #f1f1f1;
	padding: 0;
	margin: 0;
}

body.loading #top-bar,
body.loading #menu,
body.loading .screen:not([data-screen='login']) {
	display: none !important;
}

input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
}

span.underline {
	text-decoration: underline;
}

h1, h2 {
	font-weight: 600;
}

#loading-overlay {
	position: fixed;
	top: 64px;
	left: 80px;
	width: calc(100% - 80px);
	height: calc(100% - 64px);
	background-color: rgba(0,0,0,0.8);
	color: white;
	z-index: 2;

	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s, visibility 0.2s;
	pointer-events: none;
}

#loading-overlay.active {
	transition: opacity 0.2s 0.5s, visibility 0.2s 0.5s;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

#loading-overlay div {
	position: absolute;
	top: calc(50% - 32px);
	left: 0;
	transform: translateY(-50%);
	width: calc(100% - 40px);
	padding-left: 20px;
	padding-right: 20px;
	text-align: center;
	font-size: 24px;
	font-weight: bold;
	text-shadow: 0 0 5px #000000;
}

.preload * {
	-webkit-transition: none !important;
	-moz-transition: none !important;
	-ms-transition: none !important;
	-o-transition: none !important;
}

.screen {
	position: fixed;
	top: 64px;
	left: 80px;
	padding-left: 32px;
	padding-right: 32px;
	width: calc(100% - 144px);
	height: calc(100% - 96px);
	background-color: #f1f1f1;
	overflow-y: auto;
	overflow-x: hidden;
	padding-bottom: 32px;
	margin-left: 33%;

	opacity: 0;
	visibility: hidden;
}

.screen.active {
	opacity: 1;
	visibility: visible;
	margin-left: 0px;
}

.screen.transitioning {
	transition: opacity 0.3s, visibility 0.3s, margin-left 0.3s;
	z-index: 2;
}

.home-block-container {
	clear: both;
}

.home-block-container:not(:first-child) {
	padding-top: 2px;
}

.home-block {
	float: left;
	margin-bottom: 16px;
	width: 352px;
	padding: 16px;
	padding-bottom: 32px;
	text-align: center;
	margin-right: 16px;

	font-weight: 600;
	font-size: 20px;
	color: #828282;
}

.home-block-container:last-child .home-block {
	margin-bottom: 0px;
}

.home-block header {
	font-size: 64px;
	font-weight: 600;
	margin-bottom: 8px;
	color: #009ee1;
}

.table-big {
	border-collapse: collapse;
	width: 100% !important;
	box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}

.table-big tbody tr:not(.no-data):not(.dataTables_empty) {
	transition: background-color 0.08s, color 0.08s;
	cursor: pointer;
}

.table-big tbody tr.invalid {
	background-color: rgba(255,0,0,0.5) !important;
	color: black !important;
}

.table-big tbody tr td {
	position: relative;
}

.table-big tbody tr td .button-label {
	position: absolute;
	top: 50%;
	right: 0;
	left: auto;
	transform: translateY(-50%);
	opacity: 1;
	visibility: visible;
	z-index: 2;
	max-width: 10px;
	overflow: hidden;
	color: transparent !important;
	transition: max-width 0.3s, color 0.3s;
}

.table-big tbody tr td .button-label .fa-exclamation-triangle {
	color: #FF9100 !important;
}

.table-big tbody tr td:hover .button-label {
	max-width: 316px;
	color: white !important;
}

.schedules .table-big tbody tr[data-type="chain"] td {
	height: 40px;
}

.schedules .table-big tbody tr[data-type="chain"] td:first-child {
	text-align: left !important;
	padding-left: 32px !important;
	padding-right: 32px !important;
}

.table-big tbody tr.invalid td i {
	color: black !important;
}

.table-big tbody tr.no-chain,
.table-big tbody tr.no-chain:hover {
	background-color: rgba(255,0,0,0.5) !important;
	color: black !important;
	cursor: default;
}

.table-container table tbody tr.no-chain td i {
	color: black !important;
}

.table-big .fa-refresh {
	color: #FF8800;
}

.table-big .fa-times,
.table-big .fa-chain-broken {
	color: red;
}

.table-big .fa-chain-broken {
	font-weight: bold;
}

#unchain {
	position: fixed;
	bottom: 0;
	left: 50%;
	margin-left: -256px;
	width: 512px;
	height: 128px;
	background: url('../images/task/unchain.jpg') top center no-repeat;
	background-size: cover;
	-webkit-box-shadow: 0 -1px 2px 1px rgba(0,0,0,0.3);
	box-shadow: 0 -1px 2px 1px rgba(0,0,0,0.3);
	transform: translateY(100%);
	visibility: hidden;
	transition: visibility 0.2s, transform 0.2s ease-in;
}

#unchain.active {
	visibility: visible;
	transform: translateY(0%);
}

.table-big .fa-check, .table-big .fa-ship {
	color: #81C200;
}

.table-big .fa-play-circle {
	color: #009ee1;
}

.table-big thead tr:nth-child(odd), .table-big tbody tr:nth-child(even) {
	background-color: white;
}

.table-big thead tr {
	border-bottom: 2px solid #DBDBDB;
}

.table-big td, .table-big th {
	padding-top: 12px;
	padding-bottom: 12px;
	font-size: 16px;
	text-align: center;
}

.table-big tr td:nth-child(1), .table-big tr th:nth-child(1) {
	text-align: left;
	padding-left: 16px;
	padding-right: 16px;
}

table tr.no-data td, .dataTables_empty {
	text-align: center !important;
}

.header-wrapper {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.material-container, .prompt, .home-block, .popup > div {
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
	background-color: white;
}

.material-container, .prompt, .popup > div {
	box-shadow: 1px 8px 32px rgba(0,0,0,0.12),
				1px 8px 16px rgba(0,0,0,0.24);
}

.popup.new {
	position: absolute;
}

.popup.new.fixed {
	position: fixed;
}

.popup {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999;
	background-color: rgba(0,0,0,0.8);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s, visibility 0.3s;
	transform: translateZ(0);
	color: black;
}

.popup.active {
	opacity: 1;
	visibility: visible;
}

.screen:not(.active) .popup.active {
	visibility: hidden;
}

/*Prompt start*/
.prompt, .popup > div {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translateX(-50%) translateY(-50%);
	width: 320px;
	max-width: 100%;
	overflow: hidden;
}

.prompt header, .popup header {
	padding: 20px;
	font-size: 18px;
	text-align: center;
	border-bottom: 1px solid #DBDBDB;
	font-weight: 600;
}

.prompt footer, .popup footer {
	padding: 20px 10px;
	margin-top: 20px;
	background-color: #009ee1;
	display: flex;
	justify-content: space-between;
}

.popup footer {
	display: none;
}

.popup.footer footer {
	display: flex;
}

.prompt > div, .popup > div .body {
	padding: 0px 20px;
}

.popup > div .body {
	padding: 20px;
	font-weight: 600;
	text-align: center;
}

.popup footer {
	margin-top: 0px;
}

.popup footer:after {
	content: "";
	display: table;
	clear: both;
}

.popup footer .button {
	float: left;
}

.popup footer .button, .prompt footer .button {
	margin-left: 10px;
	margin-right: 10px;
}

.popup .body label:first-child {
	margin-top: 0px;
}

input[type='text'], input[type='password'], input[type='search'] {
	padding: 8px 0px;
	width: 100%;
	border: none;
	border-bottom: 1px solid #DBDBDB;
	font-size: 16px;
	font-family: 'Open Sans', sans-serif;
	font-weight: 300;
}

input[type='text']:focus, input[type='password']:focus, input[type='search']:focus {
	border-bottom: 1px solid #009ee1;
}

input[type='text'].error, input[type='password'].error, input[type='search'].error {
	border-bottom: 1px solid red !important;
}

label {
	display: inline-block;
	margin-top: 20px;
	margin-bottom: 4px;
	font-weight: bold;
	font-size: 11px;
	text-transform: uppercase;
	color: #828282;
}

.prompt .button, .popup .button {
	padding: 8px 0px;
	width: 100%;
	border-radius: 2px;
	background-color: white;
	text-align: center;
	font-weight: bold;
	font-size: 11px;
	text-transform: uppercase;
	color: #009ee1;
	cursor: pointer;
}

.prompt .button:active, .popup .button:active {
	box-shadow: inset 0 3px 5px rgba(0,0,0,0.125);
}
/*Prompt end*/

#pi {
	position: fixed;
	bottom: 4px;
	right: 8px;
	color: white;
	z-index: 99999;
	cursor: pointer;
}

#unauthorized-access {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translateX(-50%) translateY(-50%);
	text-align: center;
	color: white;
	background-color: red;
	padding: 32px;
	font-size: 64px;
	font-weight: bold;
	z-index: 99999;

	animation: unauthorized-access 1s steps(1, end) infinite;
}

@keyframes unauthorized-access {
	0% {
		opacity: 0;
	}

	50% {
		opacity: 1;
	}

	100% {
		opacity: 0;
	}
}

h3 .fa-question-circle {
	color: #828282;
	font-size: 11px;
}

.fa-question-circle {
	color: inherit;
	transition: color 0.2s;
	position: relative;
}

.fa-question-circle:hover {
	color: black;
}

.fa-question-circle .explanation {
	position: absolute;
	font-family: "Open Sans", sans-serif;
	top: 100%;
	left: 0;
	transform: translateY(8px) translateX(-50%);
	width: auto;
	height: auto;
	background-color:rgba(0,0,0,0.8);
	padding: 8px;
	margin-left: 8px;
	font-size: 14px;
	text-transform: none;
	white-space: nowrap;
	line-height: normal;
	color: white;
	border-radius: 3px;
	z-index: 2;

	visibility: hidden;
	opacity: 0;

	transition: opacity 0.3s, visibility 0.3s;
}

.fa-question-circle .explanation.no-center {
	transform: translateY(8px) translateX(-8px);
}

.fa-question-circle:hover .explanation {
	visibility: visible;
	opacity: 1;
}

.text-output-overlay {
	position: fixed;
	top: 64px;
	left: 80px;
	width: calc(100% - 80px);
	height: calc(100% - 64px);
	background-color: rgba(0,0,0,0.6);
	z-index: 3;

	visibility: hidden;
	opacity: 0;
	transition: opacity 0.3s, visibility 0.3s;
}

.text-output-overlay.active {
	visibility: visible;
	opacity: 1;
}

.text-output-overlay .wrapper {
	position: absolute;
	top: 80px;
	left: 80px;
	width: calc(100% - 160px);
	height: calc(100% - 160px);
	background-color: white;
	border-radius: 8px;
	overflow: hidden;
	font-size: 16px;

	box-shadow: 1px 8px 32px rgba(0,0,0,0.12),
				1px 8px 16px rgba(0,0,0,0.24);

	transform: scale(0.9);
	transition: transform 0.3s;
}

.text-output-overlay.active .wrapper {
	transform: scale(1.0);
}

.text-output-overlay .wrapper .header {
	height: 48px;
	line-height: 48px;
	background-color: #009ee1;
	color: white;
	font-size: 20px;
}

.text-output-overlay .wrapper .output {
	position: absolute;
	display: block;
	top: 48px;
	width: calc(100% - 32px);
	height: calc(100% - 80px);
	padding: 16px;
	margin: 0;
	overflow-y: auto;
}

.text-output-overlay .wrapper .header > * {
	height: 48px;
	line-height: 48px;
}

.text-output-overlay .wrapper .header > .title {
	float: left;
	font-weight: bold;
	padding-left: 16px;
}

.text-output-overlay .wrapper .header > .close {
	float: right;
	width: 48px;
	text-align: center;
	cursor: pointer;
}

.text-output-overlay .wrapper .header > .close i {
	line-height: 48px;
}

.text-output-overlay .wrapper .output h1:first-child {
	margin-top: 8px;
}

.text-output-overlay .wrapper .output h1:not(:first-child) {
	margin-top: 64px;
	padding-top: 64px;
	border-top: 1px solid lightgray;
}

.text-output-overlay .wrapper .output ul {
	margin-top: 0;
}

.text-output-overlay .wrapper .output h1 {
	text-transform: uppercase;
	font-weight: bold;
	color: #364760;
	margin-bottom: 0px;
}

.text-output-overlay .wrapper .output a {
	color: inherit;
}

.text-output-overlay .wrapper .output h2 {
	text-transform: uppercase;
	background-color: #009ee1;
	color: white;
	display: inline-block;
	padding: 8px;
	font-weight: bold;
	border-radius: 3px;
	padding-top: 4px;
	padding-bottom: 4px;
	font-size: 20px;
}

.text-output-overlay .wrapper .output h2 + p {
	margin-top: 0px;
}

.text-output-overlay .wrapper .output ul {
	list-style-type: square;
}

.text-output-overlay .wrapper .output ul > li {
	font-weight: 700;
	color: #364760;
}

.text-output-overlay .wrapper .output ul > li ul,
.text-output-overlay .wrapper .output ul > li ul li {
	font-weight: normal;
	color: black;
}


.text-output-overlay .wrapper .output > ul {
	margin-bottom: 1em;
}

.text-output-overlay .wrapper .output > ul > li:not(:first-child) {
	margin-top: 0.8em;
}

.text-output-overlay .wrapper .output > ul > li > ul li {
	margin-top: 0.3em;
}