#pages {
	width: 640px;
	height: 100%;
	padding: 64px 0 0;
	box-shadow: -2px 0px 12px -1px #333;
	background: white;
	position: absolute;
	top: 0;
	left: -460px;
	z-index: 98;
	transition: left 500ms;

	&.active {
		left: 0;
	}

	#pageTemplates {
		width: 459px;
		height: 100%;
		float: left;
		display: inline-block;
		border-right: 1px solid #e1eaed;

		.options {
			padding: 30px;
			border-bottom: 1px solid #e3e7e8;

			h2 {
				@include type(Alright Sans, 2.6, 3, #575f66, 300);
				width: 258px;
				margin: 0;
				padding: 0;
				vertical-align: middle;
				display: inline-block;
			}
		}

		dl {
			width: 458px;
			margin: 0;
			padding: 16px 30px 0;
			display: block;
			position: relative;

			dt {
				@include type(Alright Sans, 1.1, 2.4, #575f66, 700);
				padding: 0 14px;
				display: inline-block;
				float: left;
				cursor: pointer;

				&.active {
					color: white;
					border: 1px solid #575f66;
					border-radius: 12px;
					background: #575f66;
					box-shadow: inset 0px 2px 2px #4d555d;
				}
			}

			dd {
				width: 458px;
				max-height: 450px;
				margin: 0;
				padding: 20px 19px;
				border-top: 1px solid #e3e7e9;
				display: none;
				position: absolute;
				left: 0;
				top: 59px;
				overflow: auto;

				&.active {
					display: block;
				}

				ul {
					list-style-type: none;
					margin: 0;
					padding: 0;

					li {
						width: 120px;
						height: 85px;
						margin: 0 8px 18px;
						padding: 0;
						display: inline-block;
						box-shadow: 0px 1px 1px 0px #afb6b8;
						cursor: -moz-grab;
						cursor: -webkit-grab;
						-webkit-user-select: none;
						-moz-user-select: -moz-none;
						-ms-user-select: none;
						user-select: none;

						&.dragging {
							cursor: -moz-grabbing;
							cursor: -webkit-grabbing;
						}
					}
				}
			}
		}
	}

	#currentPages {
		width: 180px;
		height: 100%;
		text-align: center;
		float: right;
		display: inline-block;

		ul {
			max-height: 85%;
			margin: 0;
			padding: 19px 30px 0;
			list-style-type: none;
			overflow-y: auto;

			li {
				width: 120px;
				height: 85px;
				margin: 0 0 20px;
				padding: 0;
				position: relative;
				box-shadow: 0px 1px 1px 0px #afb6b8;

				&:hover {
					.deletePage {
						display: inline-block;
					}
				}

				&.active {
					box-shadow: 0px 0px 0px 3px #4a39b2;
					border-radius: 1px;
				}

				&.sortable-placeholder {
		            border: 1px dashed #a1adb7;
		            box-shadow: none;
		            background: none;
		        }

				.deletePage {
					padding: 0;
					margin: 0;
					border: none;
					display: none;
					position: absolute;
					top: -13px;
					right: -13px;
					@include sprite($delete);
					background-color: transparent;
				}
			}
		}

		button#btnShowPageTemplates {
			width: 120px;
			height: 85px;
			border: 1px dashed #a1adb7;
			background: white url(/img/system/icons/btn-add-page.png) center center no-repeat;

			.active & {
				display: none;
			}
		}

		button#dropPageHotspot {
			width: 120px;
			height: 85px;
			border: 1px dashed #a1adb7;
			background: white url(/img/system/icons/drop-page-hotspot.png) center center no-repeat;
			display: none;

			.active & {
				display: inline-block;
			}
		}
	}
}