.survey-editor
{
	border: 1px solid #000;
	width: 100%;
	min-height: 300px;
	display: flex;
	position: relative;
}

.survey-editor .messages
{
	position: absolute;
	display: block;
	right: 4px;
	top: 4px;
}

.survey-editor .messages .save-message
{
	display: block;
	background: #FAF9ED;
	border: 1px solid #999;
	padding: 4px;
	margin: 4px;
	float: right;
	clear: right;
}

.survey-editor .messages .error-message
{
	display: block;
	background: #C43535;
	color: #FFF;
	font-weight: 700;
	border: 1px solid #999;
	padding: 4px;
	margin: 4px;
	float: right;
	clear: right;
}

.survey-editor:after
{
	content: " ";
	display: block;
	clear: both;
}

.survey-editor .navigation
{
	border-right: 1px solid #000;
	float: left;
	width: 30%;
	background: #FBFBFB;
}

.survey-editor .contentPanel
{
	float: left;
	width: 70%;
}

.tree-nav li
{
	list-style: none;
	width: 100%;
}

.tree-nav .item
{
	display: flex;
}

.tree-nav .drag
{
	background: #555;
	color: #fff;
	font-weight: 900;
	width: 24px;
	min-width: 24px;

	display: flex;
	text-align: center;
	align-items: center;
	justify-content: center;
	cursor: move;
}

.tree-nav .drag:hover, .tree-nav .dragging .drag
{
	background: #AAA;
}

.tree-nav .item .content
{
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.tree-nav .item .content .title
{
	padding: 8px;
	font-size: 12pt;
	background: #EFEFEF;
	height: 40px;
	font-weight: 900;
	display: flex;
}


.tree-nav .item .content .title .text
{
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tree-nav .item.add
{
	overflow: hidden;
}

.tree-nav .item.add .drag
{
	background: #666;
}

.tree-nav .item.add .content .title
{
	background: #F9F9F9;
	text-align: center;
	font-weight: 100 !important;
}

.tree-nav .item.add .content .fa-plus-circle
{
	padding-right: 5px;
	line-height: 24px;
}

.tree-nav .item .content .title small
{
	font-weight: 100;
	padding-left: 5px;
	min-width: 0;
	display: block;

	line-height: 24px;

	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	vertical-align: middle;
	flex: 1;
}


.tree-nav .item.dragging > *
{
	pointer-events: none;
}

.tree-nav .item.dragging
{
	opacity: 0.8;
	box-shadow: #000 1px 4px 30px;
	cursor: move;
	z-index: 1000;
}

.tree-nav .item .content .title.active
{
	background: #18A689;
	color: #FFF;
	position: relative;
}

.tree-nav .item .content .title.active:after
{
	left: 100%;
	top: 50%;
	border: solid transparent;
	content: " ";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
	border-left-color: #18A689;
	border-width: 20px;
	margin-top: -20px;
}

.tree-nav .item .content .title.active:hover {
	background: #18A689;
}

.tree-nav .item .content .title:hover
{
	background: #DDD;
	cursor: pointer;
}

.survey-editor .contentPanel .header
{
	width: 100%;
	background: #EFEFEF;
	padding: 16px;
	display: flex;
	justify-content: center;
}

.survey-editor .contentPanel .content
{
	padding: 8px 32px;
}

.survey-editor .contentPanel .content h1,
.survey-editor .contentPanel .content h2,
.survey-editor .contentPanel .content h3,
.survey-editor .contentPanel .content h4,
.survey-editor .contentPanel .content h5 {
	text-align: center;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
}

.survey-editor .contentPanel .content h1:before,
.survey-editor .contentPanel .content h2:before,
.survey-editor .contentPanel .content h3:before,
.survey-editor .contentPanel .content h4:before,
.survey-editor .contentPanel .content h5:before,
.survey-editor .contentPanel .content h1:after,
.survey-editor .contentPanel .content h2:after,
.survey-editor .contentPanel .content h3:after,
.survey-editor .contentPanel .content h4:after,
.survey-editor .contentPanel .content h5:after {
	flex-grow: 1;
	height: 1px;
	content: '\a0';
	background-color: #ddd;
}

.survey-editor .contentPanel .content h1:before,
.survey-editor .contentPanel .content h2:before,
.survey-editor .contentPanel .content h3:before,
.survey-editor .contentPanel .content h4:before,
.survey-editor .contentPanel .content h5:before {
	margin-right:10px;
}

.survey-editor .contentPanel .content h1:after,
.survey-editor .contentPanel .content h2:after,
.survey-editor .contentPanel .content h3:after,
.survey-editor .contentPanel .content h4:after,
.survey-editor .contentPanel .content h5:after {
	margin-left:10px;
}

a.delete-button {
	color: #C00000;
	cursor: pointer;
	font-size: 2em;
	padding: 2px;
	line-height: 0;
	display: flex;
	align-items: center;
	width: 1.5em;
}