.screen .tab {
    position: absolute;
    right: 0;
    top: 0;
    width: calc(100% - 16px);
    height: 100%;
    background-color: #f1f1f1;
    -webkit-box-shadow: -1px 0 2px 1px rgba(0,0,0,0.3);
    box-shadow: -1px 0 2px 1px rgba(0,0,0,0.3);
    visibility: hidden;
    overflow-x: hidden;

    transform: translateX(100%);
    transition: transform 0.5s, visibility 0.5s;
    z-index: 2;
}

.screen .tab.active {
    transform: translateX(0);
}

.screen.active .tab.active {
    visibility: visible;
}

.screen .tab .wrapper {
    max-width: 1024px;
    padding-left: 32px;
    padding-right: 32px;
    padding-bottom: 8px;
    height: calc(100% - 8px);
    overflow-y: auto;
}

.screen > .tab {
    width: calc(100% - 64px);
}

.tab > .wrapper > h3:not(:nth-child(2)) {
    padding-top: 16px;
}

.tab > .wrapper > h3:nth-child(2) {
    margin-top: 0;
}

.tab .header {
    display: flex;
	justify-content: space-between;
	align-items: center;
}

.tab .header .buttons .button {
	position: relative;
}

.tab .header .buttons .button + .button {
	margin-left: 16px;
}

.tab .header .button[data-action='save'] {
	border: 1px solid #6DA300;
	color: #6DA300;
}

body.observing .tab .header .buttons {
	display: none;
}

.tab .header .button[data-action='save']:hover,
.tab .header .button[data-action='save'].busy {
	background-color: #6DA300;
}

.tab .header .button[data-action='restore'] {
	border: 1px solid #EB9100;
	color: #EB9100;
}

.tab .header .button[data-action='restore']:hover,
.tab .header .button[data-action='restore'].busy {
	background-color: #EB9100;
}

.tab .header .button[data-action='delete'] {
	border: 1px solid red;
	color: red;
}

.tab .header .button.hidden {
	display: none;
}

.tab .header .button[data-action='delete']:hover,
.tab .header .button[data-action='delete'].busy {
	background-color: red;
}

.tab .header .button.busy {
	color: white;
}

.tab .header .button[data-action='delete'] .text {
	position: relative;
	z-index: 2;
}

.tab .header .button[data-action='delete'] .hard-delete {
	position: absolute;
	left: 0;
	width: 0%;
	bottom: 0;
	height: 100%;
	background-color: white;
	z-index: 1;
	height: 4px;
	border-radius: 0px 0px 2px 2px;
}

.tab .header .button[data-action='delete'].hard-deleting .hard-delete {
	-webkit-animation: hard-delete-animation 2s 0.2s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
	-moz-animation:    hard-delete-animation 2s 0.2s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
	-o-animation:      hard-delete-animation 2s 0.2s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
	animation:         hard-delete-animation 2s 0.2s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

.tab .table-big {
	margin-bottom: 20px;
}

.tab .table-big.hidden {
	display: none;
}

.tab .table-big tr.warning {
	background-color: #FFE9A6;
}

.tab .table-big tr.failure {
	background-color: #FFA6A6;
}

.tab .table-big input,
.tab .table-big th,
.tab .table-big td {
	text-align: center !important;
	padding-left: 0px !important;
	padding-right: 0px !important;
	width: auto;
}

.tab .table-big th:last-child {
	width: 128px;
}

.tab .table-big input {
	width: 100% !important;
}

.tab .logs .table-big tr th:first-child,
.tab .logs .table-big tr td:first-child,
.tab .logs .table-big tr th:nth-child(2),
.tab .logs .table-big tr td:nth-child(2),
.tab .logs .table-big tr th:nth-child(3),
.tab .logs .table-big tr td:nth-child(3) {
	min-width: 96px;
	width: 128px;
	text-align: center;
}

.tab .logs .table-big tr td,
.logs-table tbody tr td {
	height: 82px;
	max-height: 82px;
}

.tab .logs .table-big tr td:nth-child(4) {
	text-align: left !important;
}

body.observing .tab .table-big th:last-child,
body.observing .tab .table-big tr:not(.no-data) td:last-child,
.logs-table tbody tr:not(.no-data) td:last-child {
	text-align: left !important;
}

.tab .wrapper > div:not(.logs) .table-big td:last-child {
	cursor: pointer;
}

body.observing .tab .wrapper > div:not(.logs) .table-big:not(.logs-table) th:last-child,
body.observing .tab .wrapper > div:not(.logs) .table-big:not(.logs-table) td:last-child {
	display: none;
}

.tab .logs .table-big pre,
.logs-table pre {
	width: calc(100% - 40px);
	padding-left: 20px;
	padding-right: 20px;
	margin: 0;
	white-space: pre-wrap;
	max-height: 58px;
	overflow: hidden;
}

.tab .wrapper .general-settings label,
.tab .wrapper .credentials-settings label,
.tab.user-action .wrapper div label {
	display: block;
}

.tab.user-action .wrapper > label {
    margin-top: 0px;
}

.tab .wrapper .general-settings input[type='text'],
.tab .wrapper .credentials-settings input[type='text'] {
	width: 100%;
	max-width: 1024px;
}

.tab .floaters > * {
	float: left;
	margin-right: 32px;
	min-width: 120px;
}

.tab .floaters select,
.tab .floaters input {
	min-width: 120px;
}

.tab .floaters input {
	width: 120px !important;
}

.tab .floaters:after {
	content: "";
	display: table;
	clear: both;
}

.tab .button {
	padding: 8px 16px;
	border: 1px solid #009ee1;
	color: #009ee1;
	border-radius: 3px;
	display: inline-block;
	transition: color 0.2s, background-color 0.2s;
	cursor: pointer;
	min-width: 88px;
	text-align: center;
}

.tab .button:hover, .tab .header .button:hover {
	color: white;
	background-color: #009ee1;
}

body.observing .tab .button.add-schedule,
body.observing .tab .button.add-parameter,
body.observing .tab .button.add-header {
	display: none;
}


.tab .button.all-logs.hidden {
    display: none;
}

@keyframes hard-delete-animation {
	0% {
		width: 0%;
	}

	100% {
		width: 100%;
	}
}

.tab-overlay {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s, background-color 0.1s;
    top: 0;
    left: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
	cursor: pointer;
	pointer-events: none;
}

.tab-overlay:hover {
	background-color: rgba(0,79,112,0.5);
}

.tab-overlay > div {
	position: absolute;
	width: 64px;
	left: 0px;
	top: 50%;
	transform: translateY(-50%);
	color: white;
	text-align: center;
    font-weight: bold;
	text-shadow: 0 0 2px #000000,
				 0 0 2px #000000,
                 0 0 2px #000000;
}

.tab-overlay .fa-times {
	font-size: 32px;
}

.tab.active ~ .tab-overlay {
	opacity: 1;
}

.screen.active .tab.active ~ .tab-overlay {
	pointer-events: auto;
    visibility: visible;
}

.tab.log-details .wrapper {
    max-width: none;
}

.tab.logs-overview .logs-table tbody tr.dataTables_empty td {
    text-align: center !important;
    max-height: auto !important;
    height: auto !important;
}

.table-big .dataTables_empty {
    cursor: default !important;
}

.tab.user-action pre {
	margin: 0;
	overflow-y: auto;
	white-space: pre;
	font-size: 16px;
	position: relative;

	background-color: white;
	box-sizing: border-box;
	border: 2px solid #d1d1d1;
	padding: 12px;
	margin-bottom: 16px;
}
