@font-size: 13px;

.transform (@rotate: 90deg, @scale: 1, @skew: 1deg, @translate: 10px) {
	-webkit-transform: rotate(@rotate) scale(@scale) skew(@skew) translate(@translate);
	-moz-transform: rotate(@rotate) scale(@scale) skew(@skew) translate(@translate);
	-o-transform: rotate(@rotate) scale(@scale) skew(@skew) translate(@translate);
	-ms-transform: rotate(@rotate) scale(@scale) skew(@skew) translate(@translate);
	transform: rotate(@rotate) scale(@scale) skew(@skew) translate(@translate);
}
.bg-linear-gradient2 (@origin: left, @color1: #ffffff, @color2: #000000) {
	background-color: @color2;
	background-image: -webkit-linear-gradient(@origin, @color1, @color2);
	background-image: -moz-linear-gradient(@origin, @color1, @color2);
	background-image: -o-linear-gradient(@origin, @color1, @color2);
	background-image: -ms-linear-gradient(@origin, @color1, @color2);
	background-image: linear-gradient(@origin, @color1, @color2);
}

.selection-mode (@m: none) {
	-webkit-touch-callout: @m;
	-webkit-user-select: @m;
	-khtml-user-select: @m;
	-moz-user-select: @m;
	-ms-user-select: @m;
	user-select: @m;
}

.box-sizing (@bs: content-box) {
	box-sizing: @bs;
	-moz-box-sizing: @bs;
	-webkit-box-sizing: @bs;
}

p.success {
	color: #005200;
	font-weight: bold;
}
p.error {
	color: #b80000;
	font-weight: bold;
}
body.intra.fooldal {
	position: relative;
	.logout {
		cursor: pointer;
		position: absolute;
		right: 20px;
		top: 20px;
	}
}

.main, .zfs_dump, .sql_dump {
	* {
		font-size: 16px;
	}
}

.main, .zfs_dump, .sql_dump {
	* {
		font-family: "Times New Roman", Times, serif;
	}
	h3 {
		margin: 40px auto 0;
		text-align: center;
		font-size: 20px !important;
	}
	h5 {
		display: block;
		margin: 10px auto 10px;
		width: 80%;
	}
	ul {
		border-radius: 3px;
		list-style-type: none;
		margin: auto;
		padding: 0;
		width: 80%;
	}
	li:not(.lock):hover, .list-item:not(.lock):hover {
		.bg-linear-gradient2(left, #FFCE64, #FFF7E5);
		filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFCE64', endColorstr='#FFF7E5', GradientType=1); /* for IE */
		box-shadow: 2px 2px #FFF3D8;
	}
	.lock {
		cursor: default;
	}
	li, .list-item {
		.bg-linear-gradient2(left, #c5d4dd, #f6fbfa);
		filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#c5d4dd', endColorstr='#f6fbfa', GradientType=1); /* for IE */
		border-bottom: 1px solid #e1e1e1;
		border-radius: 4px;
		box-shadow: 2px 2px #E0E9EC;
		cursor: pointer;
		padding: 0;
		margin: 3px auto;
		label {
			cursor: pointer;
			display: inline-block;
			padding: 10px 5px;
		}
	}
	li.disabled, .main li.disabled * {
		opacity: 0.6;
		filter: alpha(opacity=60);
		cursor: default;
	}
	a {
		color: #747474;
		display: inline-block;
		font-weight: bold;
		padding: 2px;
		text-decoration: none;
		vertical-align: middle;
		width: 100%;
	}
	.icon {
		display: inline-block;
		height: 32px;
		margin-left: 2px;
		width: 32px;
		vertical-align: middle;
	}
}

body.bejelentkezes, body.jelszovaltas {
	background: none;
	font-size: @font-size;
	padding: 0;

	* {
		.box-sizing(border-box);
		color: #000000;
		font-family: Verdana,Arial,sans-serif;
	}
	.background-outer {
		position: relative;
		overflow: hidden;
	}
	.background {
		font-size: @font-size * 3;
		line-height: @font-size * 5;
		margin: auto;
		position: fixed;
		top: -50%;
		bottom: -50%;
		left: -50%;
		right: -50%;
		.transform(-25deg, 1, 1deg, 0px);
		.selection-mode(none);
	}
	input[type=text], input[type=password], select, textarea {
		border: 1px solid #d3d3d3;
		padding: 4px;
		margin: 2px 0;
		background-color: #ffffff;
	}
	.ui-dialog.login {
		background-color: #ece9d8;
		border-radius: 0;
		border-left-color: transparent;
		border-top-color: transparent;
		padding: 0;

		.ui-dialog-titlebar {
				display: none;
		}
		.ui-dialog-content {
			background-color: inherit;
		}
		.title {
			margin: 3px 0;
			width: 100%;
			.img {
				width: 35px;
			}
			h1 {
				background: transparent;
				border-bottom: 1px solid #d3d3d3;
				font-size: @font-size;
				font-weight: bold;
				margin: 0;
				padding: 2px;
				text-align: left;
			}
		}
		form {
			margin: 7px 0;
			table {
				border-collapse: collapse;
				list-style-type: none;
				margin: 10px auto;
				width: 100%;
				td {
					padding: 1px 3px;
					input {
						width: 100%;
					}
				}
				td:first-of-type, td:last-of-type {
					width: 28%;
				}
				.a-right {
					text-align: right;
				}
			}
		}
		button {
			min-width: 50px;
			width: 100%;
		}
	}
}

body.zfs_dump, body.sql_dump, {
	button.dump_unlock {
		padding: 6px;
		margin-top: 8px;
		background: #D3F8D3;
		border-radius: 4px;
		border: 1px solid #747474;
		cursor: pointer;
	}
	button.dump_unlock:hover {
		background: #aef5ae;
	}
	h3 {
		border-bottom: 1px solid #747474;
		margin: 40px auto 10px;
		padding-bottom: 10px;
	}
	.snapshot-list {
		display: block;
		margin: auto;
		padding-top: 20px;
		width: 80%;

		ul {
			width: 100%;
		}
	}
	.snapshots {
		label {
			display: block;
			padding: 5px;
			input, span {
				display: inline-block;
				vertical-align: middle;
			}
		}
	}

	.output {
		border: 1px solid #747474;
		border-radius: 4px;
		margin: 15px auto 5px;
		padding: 4px;
		width: 80%;

		table.dump-log, table.active-clients {

			border-collapse: collapse;
			table-layout: auto;
			width: 100%;

			th {
				background-color: #ededed;
			}
			th, td {
				border: 1px dotted #cccccc;
				padding: 2px;
			}
		}
	}

	.bg_cover {
		top: 0;
		left: 0;
		position: absolute;
		z-index: 100;
		background-color: #404040;
		opacity: 0.5;
		width: 100%;
		height: 100%;
		overflow: hidden;
	}

	.dump_lock_box {
		display: none;
		width: 350px;
		height: 350px;
		position: absolute;
		transform: translate(-50%, -50%);
		top: 50%;
		left: 50%;
		background-color: #fff;
		z-index: 200;
		padding: 16px;

		.time {
			text-align: center;
			button {
				margin: 8px 0 16px 0;
			}
		}

		.foot {
			text-align: center;
			position: absolute;
			bottom: 0;
			left: 0;
			width: 100%;
			button {
				margin: 24px 0;
			}
		}

		input, textarea{
			border: 1px solid #d3d3d3;
			margin: 8px auto;
			display: block;
			resize: none;
			width: 90%;
		}

		button {
			padding: 4px 6px;
			cursor: pointer;
		}
	}

}

body.upgrade {
	margin: 0;

	* {
		font-family: "Times New Roman", Times, serif;
	}
	h1 {
		background-color: #EEEEEE;
		color: #747474;
		margin: 0 0 10px 0;
		padding: 20px 2px;
		text-align: center;
		text-decoration: none;
	}
	.upgrade-hosts {
		margin: 10px auto;
		width: 80%;

		.host.progress {
			label {
				background-image: url('img/loading.gif');
			}
		}
		.host.error {
			label {
				background-image: url('img/error.png');
				color: #ff0000;
			}
		}
		.host.success {
			label {
				background-image: url('img/success.png');
			}
		}
		.host {
			.box-sizing(border-box);

			border: 1px solid #aaaaaa;
			border-radius: 3px;
			display: block;
			margin: 5px;
			width: 100%;

			.client-version {
				min-width: 190px;
			}

			.daemon-version {
				min-width: 190px;
				padding-left: 10px;
			}

			.debian-version {
				min-width: 90px;
				padding-left: 10px;
			}

			label {
				.box-sizing(border-box);
				background-color: #ddd;
				background-position: right;
				background-repeat: no-repeat;
				border-radius: 3px 3px 0 0;
				display: block;
				padding: 5px;
				width: 100%;

				span {
					display: inline-block;
				}
				.info {
					float: right;
					padding-right: 20px;

					.error {
						color: #ff0000;
					}
					.steps {
						font-weight: bold;
						padding-left: 5px;
					}
				}
			}
			.details {
				padding: 5px;

				button[name=start], button[name=continue] {
					background-color: #cbf5a3;
					background-image: none;
					border: 1px solid #c0e7a7;
				}
				button[name=start_lite] {
					background-color: #00b0ff;
					background-image: none;
					border: 1px solid #007bb2;
				}
				button[name=start_kliens] {
					background-color: #ffea00;
					background-image: none;
					border: 1px solid #b2a300;
				}
				button[name=start]:hover, button[name=continue]:hover {
					background-color: #dbf8bf;
				}
				button[name=stop] {
					background-color: #f8c1bf;
					background-image: none;
					border: 1px solid #e09096;
				}
				button[name=stop]:hover {
					background-color: #f6d1d0;
				}

				.progress-info {
					ul {
						list-style-type: none;
						padding-left: 0;

						li {
							display: table-row;
							span {
								display: table-cell;
								min-width: 100px;
								padding-left: 24px;
							}
							.stdout {
								color: #006400;
								cursor: pointer;
							}
							.stderr {
								color: #8B0000;
								cursor: pointer;
							}
						}
						li.progress .command {
							background: url('img/loading.gif') no-repeat;
							font-weight: bold;
						}
						li.success .command {
							background: url('img/success.png') no-repeat;
						}
						li.error .command {
							background: url('img/error.png') no-repeat;
							color: #ff0000;
							font-weight: bold;
						}
					}
				}
			}
		}

		.list-item.success, .list-item.success:hover {
			.bg-linear-gradient2(left, #c9ffb8, #e8ffe0);
			filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#c9ffb8', endColorstr='#e8ffe0', GradientType=1); /* for IE */
			box-shadow: 2px 2px #c9ffb8;
			cursor: default;

			label {
				border-bottom: 1px dotted #bbbbbb;
				cursor: default;
				margin-bottom: 2px;
				padding-bottom: 2px;
			}
		}
	}
	.stdout .ui-dialog-title {
		color: #006400;
	}
	.stderr .ui-dialog-title {
		color: #8B0000;
	}
}

body.admin {
	table.upload-log {

		border-collapse: collapse;
		table-layout: auto;
		width: 100%;

		th {
			background-color: #ededed;
		}
		th, td {
			border: 1px dotted #cccccc;
			padding: 2px;
		}
	}
}

.noty_type_error {
	.noty_text {
		color: #ffffff;
	}
}
