.PopUpEditor{
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 10;
	text-align: center;
	background-color: rgba(0,0,0,0.5);
	
	cursor: default;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	user-select: none;
	
	display: -webkit-flex;
	display: flex;
	-webkit-justify-content: center;
	justify-content: center;	
}

.PopUpEditor #wrapper{
	-webkit-flex: 1 1 100%;
	flex: 1 1 100%;
		
	margin: 1em;
	max-width: 80em;
	
	background-color: #fff;
	
	overflow: hidden;
	
	position: relative;
}
.content_mini .PopUpEditor #wrapper,
.content_wrap .PopUpEditor #wrapper{
	margin: .25em;
}

.PopUpEditor #container{
	position: absolute;
	display: block;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	
	margin: 0;
	padding: 0;
	
	overflow: hidden;
	
	display: -webkit-flex;
	display: flex;
	-webkit-flex-direction: column-reverse;
	flex-direction: column-reverse;
}

/* SISALTO */
.PopUpEditor #sisalto{
	-webkit-flex: 1 1 100%;
	flex: 1 1 100%;
	
	position: relative;
	
	display: block;
	text-align: left;
	background-color: #fff;
	
	overflow: hidden;

	z-index: 1;
}


.PopUpEditor #vasen_palsta{
	position: absolute;
	left: 0;
	top: 0;
	width: 50%;
	height: 100%;
	overflow-x: hidden;
	overflow-y: auto;
	
	background-color: var(--grey-light);
	-webkit-overflow-scrolling: touch;
}

.PopUpEditor #vasen_palsta.ladataan *, .PopUpEditor #oikea_palsta.ladataan *{
	visibility: hidden !important;
}

.PopUpEditor #vasen_palsta tbody{
	border: none;
}

.PopUpEditor #vasen_palsta td{
	padding: 0.15em;
}


.PopUpEditor #oikea_palsta{
	position: absolute;
	left: 50%;
	top: 0;
	width: 50%;
	height: 100%;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.PopUpEditor #oikea_palsta #valitut_container{
	margin: .25em;
	padding: 0;
	overflow: hidden;
}

.PopUpEditor #oikea_palsta #valitut_container #valitut_content{
	display: inline-block;
	vertical-align: top;
}

.PopUpEditor #oikea_palsta #valitut_container #valitut_content #valitut_taulu{
	margin: 0;
	padding: 0;
	border-collapse: collapse;
}

.PopUpEditor #oikea_palsta #valitut_taulu tr{
	border: none;
}

.PopUpEditor #oikea_palsta #valitut_taulu td{
	padding: 0.15em;
	vertical-align: top;
	text-align: left;
}

.PopUpEditor .tehtava_valilehti_nimi{
	display: inline-block;
	line-height: 1.4;
	font-size: .7em;
	padding: 0 .7em;
	color: #fff;
	background-color: var(--color-1);
}
.PopUpEditor .tehtava_valilehti{
	position: relative;
	background-color: #fff;
	padding: .25em;
	
	border: 1px solid var(--grey);
	border-radius: 1px;
}

.PopUpEditor .tehtava_valilehti .poistaValittuTehtavaB{
	position: absolute;
	top: .2em;
	right: .2em;
	font-size: .75em;
}
.PopUpEditor .tehtavawrapper{
	border-width: 0;
}

.PopUpEditor #vasen_palsta .tehtava_valilehti{
	cursor: pointer;
}
.no-touch .PopUpEditor #vasen_palsta .tehtava_valilehti:hover{
	border-color: #000;
}


/* HEADER */
.PopUpEditor .header{
	-webkit-flex: 0 0 auto;
	flex: 0 0 auto;
	
	position: relative;
	z-index: 3;
	
	background-color: #fff;
	text-align: left;
	white-space: nowrap;
	
	line-height: 2;
	
	box-shadow: 0 0 0.5em rgba(0,0,0,.25);
	
	padding: 0 .5em .3em;
}
.PopUpEditor .header .otsikko{
	font-size: .9em;
	background-color: #fff;
	font-weight: bold;
	color: var(--color-1);
}


.PopUpEditor .palsta_otsikot{
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: flex-end;
}
.content_wrap .PopUpEditor .palsta_otsikot{
	flex-direction: column;
	align-items: stretch;
}
.PopUpEditor .header .oikea_palsta_o,
.PopUpEditor .header .vasen_palsta_o{
	-webkit-flex: 1 0 50%;
	flex: 1 0 50%;
	
	font-size: .8em;

	display: flex;
	justify-content: flex-start;
	flex-wrap: wrap;
}
.PopUpEditor .header .oikea_palsta_o{
	width: 50%;
	flex: 0 0 auto;
}
.content_wrap .PopUpEditor .header .oikea_palsta_o{
	align-self: flex-end;
}

.PopUpEditor .header .vasen_palsta_o > div{
	margin-right: .5em;
}
.content_wrap .PopUpEditor .header .vasen_palsta_o > #koe_valinta{
	flex: 1 1 auto;
}
.PopUpEditor .header .oikea_palsta_o div{
	padding-left: .65em;
}

/* FOOTER */
.PopUpEditor .footer{
	-webkit-flex: 0 0 auto;
	flex: 0 0 auto;
	
	position: relative;
	line-height: 2;
	
	background-color: #fff;
	padding: .5em;
	
	display: -webkit-flex;
	display: flex;
	-webkit-justify-content: flex-end;
	justify-content: flex-end;
	
	z-index: 3;
	box-shadow: 0 0 0.5em rgba(0,0,0,.25);
}
.PopUpEditor .painikkeet{
	-webkit-flex: 0 0 auto;
	flex: 0 0 auto;
	
	/* font-size: .8em; */
	white-space: nowrap;
	
	display: -webkit-flex;
	display: flex;
}

.PopUpEditor .painikkeet > *{
	-webkit-flex: 0 0 auto;
	flex: 0 0 auto;
}
.PopUpEditor .painikkeet > *:not(:last-child){
	margin-right: .25em;
}