@red: #fe2728;

@-webkit-keyframes "disappear" {
	0% {
		height: 70px;
		margin-bottom: 50px;
		-webkit-transform: translateY(0px);
	}
	80% {
		height: 70px;
		margin-bottom: 50px;
		-webkit-transform: translateY(0px);
	}
	100% {
		height: 0;
		-webkit-transform: translateY(-20px);
	}
}
@keyframes "disappear" {
	0% {
		height: 70px;
		margin-bottom: 50px;
		transform: translateY(0px);
	}
	80% {
		height: 70px;
		margin-bottom: 50px;
		transform: translateY(0px);
	}
	100% {
		height: 0;
		transform: translateY(-20px);
	}
}
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	text-decoration: none;
	-webkit-text-size-adjust: 100%;
	text-rendering: optimizelegibility;
	-moz-osx-font-smoothing: grayscale;
	line-height: inherit;
	outline: none;
	font-weight: inherit;
}
body {
	background-color: #f6f6f6;
	color: #000;
	line-height: 1em;
	padding: 60px 70px 100px 320px;
	&.login {
		padding: 60px 70px 100px;
		max-width: 650px;
		margin: 0 auto;
	}
}
body, input, textarea, select, button {
	font-family: 'basier', sans-serif;
	font-size: 14px;
}
.bold() {
	font-family: 'basier_bold', sans-serif;
}
input {
	display: block;
	padding: 5px 8px;
}
input[type=checkbox] {
	display: inline-block;
	cursor: pointer;
	& + span {
		margin-left: 10px;
	}
}
a {
	color: inherit;
}
strong {
	font-weight: 600;
}
nav {
	display: block;
	position: fixed;
	left: 0;
	top: 0;
	height: 100%;
	width: 250px;
	background-color: @red;
	color: #fff;
	padding: 30px;
	img {
		display: block;
		width: 50px;
	}
	#pageName {
		display: block;
		margin: 30px 0 20px;
		font-size: 16px;
		font-weight: 600;
	}
	a {
		display: block;
		padding: 8px 0;
		&:hover {
			text-decoration: underline;
		}
	}
}
header {
	a {
		float: right;
		display: block;
		padding: 6px 11px 8px;
		background-color: #000;
		color: #fff;
		&:hover {
			text-decoration: underline;
		}
		& + a {
			margin-right: 20px;
		}
	}
	&:after {
		clear: both;
		display: block;
		content: '';
	}
}
h1 {
	font-size: 28px;
	line-height: 1em;
	margin-bottom: 50px;
	display: block;
	float: left;
}
.list {
	display: table;
	width: 100%;
	& > * > * {
		padding-right: 30px;
	}
	.th {
		display: table-row;
		text-transform: uppercase;
		font-size: 14px;
		letter-spacing: 1px;
		> div {
			display: table-cell;
			font-weight: 600;
		}
	}
	.row {
		display: table-row;
		& > div {
			height: 60px;
			background-color: #fff;
			display: table-cell;
			vertical-align: middle;
			line-height: 1.3em;
		}
		& > div:first-child:not(.mainImage):not(.url) {
			padding-left: 20px;
		}
		& > div:not(.alt):not(.caption):not(.title):not(.label):not(.username) {
			width: 1px;
			white-space: nowrap;
		}
		.priority {
			text-align: right;
		}
		.button {
			display: inline-block;
			padding: 3px 5px 5px;
			background-color: #ccc;
			color: #fff;
			transition: all 0.2s ease;
			cursor: pointer;
		}
		.button:hover,
		a:hover {
			text-decoration: underline;
		}
		&:hover .button {
			background-color: #555;
			color: #fff;
		}
	}
	img {
		width: 80px;
		height: 80px;
	}
	.separator {
		height: 12px;
		display: table-row;
	}
}


.edit {
	display: table;
	width: 100%;
	>.field {
		display: table-row;
		&.checkboxes {
			label:hover span {
				text-decoration: underline;
			}
			label {
				margin-right: 20px;
				cursor: pointer;
				display: inline-block;
				padding: 5px 0;
			}
		}
		>div {
			display: table-cell;
			border-bottom: 1px solid #ddd;
			padding: 20px 0;
			vertical-align: middle;
			line-height: 1.3em;
			&:first-child {
				width: 180px;
				padding: 25px 20px 25px 0;
				vertical-align: top;
			}
			&:last-child {
				width: 100%;
			}
		}
		&:hover {
			background-color: #fff;
		}
		a:hover {
			text-decoration: underline;
		}
		select[name="bookings"] {
			margin-right: 10px;
		}
		div.images {
			padding-bottom: 5px;
			.imageContainer {
				display: inline-block;
				width: 330px;
				margin-bottom: 15px;
			}
			.addImage {
				display: block;
				width: 100px;
				height: 100px;
				position: relative;
				float: left;
				margin-right: 10px;
				background-color: #fff;
				background-size: cover;
				background-position: center;
				input, &:after {
					position: absolute;
					left: 0;
					top: 0;
					width: 100%;
					height: 100%;
				}
				input {
					display: block;
					z-index: 2;
					opacity: 0;
					cursor: pointer;
				}
				&:after {
					width: 98px;
					height: 98px;
					position: absolute;
					border: 1px solid #ddd;
					content: '+';
					font-size: 30px;
					color: rgba(0,0,0,.4);
					z-index: 1;
					text-align: center;
					line-height: 100px;
					background-color: rgba(255,255,255,.6);
				}
				&:hover:after {
					border-color: #bbb;
					color: #222;
				}
			}
			input[type="text"],input[type="email"],input[type="password"],input[type="date"],input[type="time"] {
				width: 200px;
				display: block;
				& + input {
					margin-top: 4px;
				}
			}
		}
	}
	img {
		margin-bottom: 10px;
		width: 200px;
	}
}
input[type="submit"] {
	width: 210px;
	background-color: @red;
	padding: 17px 0 22px;
	font-size: 21px;
	border: 0;
	color: #fff;
	cursor: pointer;
	margin-top: 50px;
	&:hover {
		text-decoration: underline;
	}
}
input.remove,
button {
	background-color: @red;
	color: #fff;
	-webkit-appearance: none;
	padding: 5px 8px;
	border: 0;
	font-size: 13px;
	cursor: pointer;
	&:hover {
		text-decoration: underline;
	}
}
input.remove {
	margin-top: 40px;
	background-color: #888;
}
.success {
	line-height: 68px;
	height: 0;
	background-color: #000;
	color: #fff;
	text-align: center;
	letter-spacing: 1px;
	overflow: hidden;
	-webkit-animation-duration: 3s;
	-moz-animation-duration: 3s;
	-ms-animation-duration: 3s;
	-o-animation-duration: 3s;
	-webkit-animation-iteration-count: 1;
	-moz-animation-iteration-count: 1;
	-ms-animation-iteration-count: 1;
	-o-animation-iteration-count: 1;
	-webkit-animation-timing-function: ease;
	-moz-animation-timing-function: ease;
	-ms-animation-timing-function: ease;
	-o-animation-timing-function: ease;
	-webkit-animation-name: disappear;
	-moz-animation-name: disappear;
	-ms-animation-name: disappear;
	-o-animation-name: disappear;
}
.filters {
	margin-bottom: 50px;
	select {
		display: inline-block;
		margin-left: 10px;
	}
}
table {
	width: 100%;
	td {
		padding: 20px 0;
		letter-spacing: 0.5px;
		border-top: 1px solid #eee;
		width: 16.666%;
	}
	th {
		padding: 20px 0;
		letter-spacing: 0.5px;
		text-align: left;
		text-transform: uppercase;
		font-size: 13px;
		letter-spacing: 0.7px;
	}
	a {
		text-decoration: underline;
	}
}
input[type="text"], input[type="password"], input[type="date"], textarea {
	border: 1px solid #ddd;
	background-color: #fff;
	&:hover {
		border-color: #bbb;
	}
}
input[type="text"], input[type="password"], textarea {
	width: 100%;
}
input[type="date"],
select {
	cursor: pointer;
	height: 30px;
}
textarea {
	height: 120px;
	resize: vertical;
	padding: 8px;
}

.alert {
	background-color: #ffcaca;
	color: #b03b3b;
	padding: 20px 30px;
	margin: 50px 0;
}

.user {
	margin-top: 30px;
	color: lighten(@red, 25%);
	span {
		margin-top: 5px;
		color: #fff;
	}
	a {
		display: inline-block;
		color: #fff;
	}
}


.table {
	display: table;
	width: 100%;
	.row {
		display: table-row;
		div {
			padding-bottom: 10px;
		}
	}
	.dz-drag-hover {
		background-color: #eee;
	}
	& > div > div {
		display: table-cell;
		vertical-align: middle;
	}
	& > div > div:not(:first-child) {
		padding-left: 10px;
	}
	.slim {
		width: 1px;
	}
	.photo {
		width: 30px;
	}
	.dragged {
		opacity: 0.5;
	}
	input[type="date"] {
		width: 100%;
	}
	.thumb {
		display: inline-block;
		vertical-align: middle;
		height: 30px;
		width: 30px;
		margin-bottom: 0;
		&.progress {
			text-align: center;
			font-size: 10px;
			line-height: 30px;
			color: #ddd;
			background-color: #666;
			&:after {
				content: '%';
				display: inline;
			}
		}
	}
}

.move {
	&:before {
		height: 28px;
		line-height: 28px;
		width: 28px;
		display: block;
		content: '⇅';
		cursor: move;
		cursor: grab;
		cursor: -webkit-grab;
		cursor: -moz-grab;
		font-size: 16px;
		text-align: center;
		border: 1px solid #888;
		color: #888;
		opacity: 0.6;
	}
	&:hover:before {
		opacity: 1;
	}
	&:active:before {
		cursor: grabbing;
    cursor: -moz-grabbing;
    cursor: -webkit-grabbing;
	}
}

.delete {
	&:before {
		display: block;
		content: '✕';
		cursor: pointer;
		font-size: 16px;
		text-align: center;
		border: 1px solid @red;
		color: @red;
		height: 28px;
		width: 28px;
		line-height: 28px;
		opacity: 0.6;
	}
	&:hover:before {
		opacity: 1;
	}
}


.tree {
	ul {
		list-style: none;
	}
	ul ul {
		font-weight: normal;
		margin-top: 5px;
		background: url('/images/line.svg') no-repeat left bottom;
		li {
			background: url('/images/sub.svg') no-repeat left top;
			padding-left: 16px;
		}
	}
	ul {
		margin-left: 10px;
		li {
			line-height: 1.2em;
			padding: 5px 0;
			a:hover {
				text-decoration: underline;
			}
		}
		.add {
			color: @red;
		}
	}
	& > ul {
		margin-left: 0;
		& > li + li {
			margin-top: 15px;
		}
	}
	.invisible {
		color: #aaa;
	}
	.hide-in-url {
		.bold;
	}
	.need-check {
		color: blue;
	}
	.hide-in-tree:after {
		display: inline-block;
		margin-left: 8px;
		background-color: #ddd;
		color: #222;
		content: 'Ukryte';
		text-transform: uppercase;
		padding: 3px 7px 2px;
		font-size: 10px;
		line-height: 1em;
	}
}

.hidden { display:none; }


#room {
	margin: 40px 0;
	text.description,
	text.label,
	.seat text {
		fill: #000;
		font-family: sans-serif;
		font-size: 0.5px;
		transform: translate(0.5px, 0.7px);
		text-anchor: middle;
	}
	text.label {
		opacity: 0.3;
		font-size: 0.3px;
	}
	text.description {
		font-size: 0.7px;
	}
	line {
		stroke: #000;
		stroke-width: 0.04px;
	}
	.exit {
		opacity: 0.3;
	}
	.seat {
		cursor: pointer;

		rect {
			width: 1px;
			height: 1px;
			stroke: #444;
			fill: rgba(0, 0, 0, 0);
			stroke-width: 0.02px;
			transition: fill 0.2s ease;
		}
		&:hover rect {
			fill: #ccc;
		}
		&.selected rect {
			fill: #f00;
		}
		&.selected text {
			fill: #fff;
		}
		&.selected:hover rect {
			fill: #e00;
		}
		&.taken rect,
		&.taken:hover rect {
			fill: #ccc;
		}
		&.taken text,
		&.taken:hover text {
			fill: #888;
		}
		&.locked rect,
		&.locked:hover rect {
			fill: #888;
		}
		&.locked text,
		&.locked:hover text {
			fill: #ccc;
			text-decoration: line-through;
		}
	}
	&.list {
		margin-bottom: 70px;

		.seat {
			cursor: default;

			&:hover rect {
				fill: rgba(0, 0, 0, 0);
			}
			&.taken rect {
				cursor: pointer;
				fill: #333;
			}
			&.taken:hover rect {
				fill: #e00;
			}
			&.taken text,
			&.taken:hover text {
				cursor: pointer;
				fill: #fff;
			}
			&.locked:hover rect {
				cursor: pointer;
				fill: #844;
			}
			&.locked text {
				fill: #ccc;
				cursor: pointer;
			}
		}
	}
}

.noselect {
	-webkit-touch-callout: none;
	  -webkit-user-select: none;
	   -khtml-user-select: none;
	     -moz-user-select: none;
	      -ms-user-select: none;
	          user-select: none;
}
