body{
	font-size: 20px;
}
@media print {
	body {
		font-size: 20pt;
	}
}

/* .preloader {
	background-image: url('kuvat/preloader.gif');
	background-position: center center;
	background-repeat: no-repeat;
} */
.preloader > *{
	opacity: 0;
	pointer-events: none !important;
}

body > #wrapper{
	position: absolute;
	left: 0; right: 0;
	top: 0; bottom: 0;
	
	overflow: hidden;
	margin: 0;
	padding: 0;
	
	line-height: 1.1;
	
	cursor: default;
	user-select: none;
	
	display: flex;
	flex-direction: column;
}

/*** palkkiYla ***/
#palkkiYla{
	position: relative;
	flex: 0 0 auto;
	
	min-height: 2.5em;
	
	display: flex;

	justify-content: flex-end;
	flex-wrap: wrap-reverse;
	
	background-color: var(--ylapalkki-taustavari);
	color: #000;
	font-weight: 600;
	z-index: 2;
	/* box-shadow: 0 0 0.5em rgba(0,0,0,.25); */
	overflow: hidden;
}
.content_wrap #palkkiYla{
	flex-direction: column-reverse;
}
#palkkiYla .logo{
	position: relative;
	flex: 1 1 auto;
	
	font-size: .8em;
	line-height: 1.2;
	
	display: flex;
	justify-content: flex-start;
	align-items: center;
	flex-wrap: wrap;
	
	min-height: 3.125em;
	padding: .3em .5em .3em 1em;

	z-index: 1;
}
#palkkiYla .logo::after{
	content: '';
	position: absolute;
	height: 6em;
	left: 0;
	right: 0;
	bottom: 100%;
	background-color: var(--grey-light);
}
.content_wrap #palkkiYla .logo{
	padding: .6em 1em;
	max-width: 100%;
}
#palkkiYla .logo > *{
	flex: 0 1 auto;

	max-width: 100%;
}

#palkkiYla .logo .otsikko{
	position: relative;
	display: block;
	padding: .2em 2em .2em 0;
	color: var(--ylapalkki-otsikko);
}
html:not(.content_mini) #palkkiYla .logo .otsikko::after{
	content: '';
	position: absolute;
	top: -.25em;
	right: 1em;
	bottom: -.25em;
	border-left: 1px solid var(--grey);
}

#palkkiYla #palkkiYla_painikkeet{
	position: relative;
	flex: 0 0 auto;
	
	display: flex;
	justify-content: flex-end;
	align-items: stretch;
	z-index: 2;
}
#palkkiYla #palkkiYla_painikkeet > *{
	flex: 0 0 auto;
}

.header-button {
	flex: 0 0 auto;
	width: 2.5em;
	height: 2.5em;
	cursor: pointer;
	color: var(--ylapalkki-painike);
	display: flex;
	align-items: center;
	justify-content: center;
}
html.palkkiYla_wrap .header-button {
	color: var(--ylapalkki-painike-wrap);
}
.header-button > svg {
	width: 24px;
	height: 24px;
}
.header-button.disabled {
	color: var(--painike-vari-disabled);
	pointer-events: none;
}
.header-button.active {
	background-color: var(--opacity-hover);
}
html.no-touch .header-button:not(.disabled):not(.active):hover {
	background-color: var(--opacity-hover);
}

#content-wrapper{
	flex: 1 1 auto;
	
	position: relative;
	z-index: 1;
}

.content_wrap #koevalinta{
	flex: 1 1 auto;
}
select {
	display: block;
	font-size: .8em;
	color: #000;
	line-height: 1.2;
	padding: .5em 2.2em .5em .8em;
	margin: 0;
	border: 1px solid var(--grey);
	-moz-appearance: none;
	-webkit-appearance: none;
	appearance: none;
	background-color: #fff;
	background-image: url('https://sisalto.sanomapro.fi/iioppi/koodit/dom-2019/lib/images/nappi/alas_musta.png');
	background-repeat: no-repeat;
	background-position: right center;
	background-size: auto 90%;

	cursor: pointer;
	outline: none !important;

	font-family: var(--font-main);
}
select::-ms-expand {
	display: none;
}
.no-touch select:hover:not(:focus), 
select:focus {
	border-color: var(--grey-hover);
}


/*** palkkiVasen ***/
#palkkiVasen{
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	
	display: block;
	width: calc(30% - 2em);
	padding-right: 0em;
	
	white-space: nowrap;
	box-sizing: border-box;
	z-index: 2;
}
.content_mini #palkkiVasen{
	width: auto;
	top: auto;
	right: 0;
	height: 0;
}
.tehtavavalikko_piilossa #palkkiVasen{
	display: none !important;
}
html.palkkiVasen-laajennettu #palkkiVasen{
	width: calc(100% - 10em - 2em);
}
html.content_mini.palkkiVasen-laajennettu #palkkiVasen{
	width: auto;
	height: calc(100% - 2em);
}

#laajennusB{
	position: absolute;
	top: 0;
	bottom: 0;
	
	background-color: var(--grey-light);
	cursor: pointer;
	
	right: -2em;
	width: 2em;
	overflow: hidden;

	display: flex;
	justify-content: center;
	align-items: center;
}
.content_mini #laajennusB{
	bottom: auto;
	left: 0;
	right: 0;
	top: -2em;
	width: auto;
	height: 2em;
}
.no-touch #laajennusB:hover{
	background-color: var(--grey);

	transition: background-color .2s linear;
}

#laajennusB > svg{
	flex: 0 0 auto;
	width: 2em;
	height: 2em;
}
.content_mini #laajennusB > svg{
	transform: rotate(-90deg);
}
html.palkkiVasen-laajennettu #laajennusB > svg{
	transform: rotate(180deg);
}
html.content_mini.palkkiVasen-laajennettu #laajennusB > svg{
	transform: rotate(90deg);
}


/*** palkkiOikea ***/
#palkkiOikea{
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 10em;
	overflow: hidden;
	
	box-sizing: border-box;
	
	background-color: #fff;
	
	z-index: 3;

	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: stretch;
}

html.content_mini:not(.toimintovalikko_piilossa) #palkkiOikea{
	box-shadow: 0 0 0.5em rgba(0,0,0,.25);
}
.toimintovalikko_piilossa #palkkiOikea{
	right: -10em;
}


/*** CONTENT ***/
#content{
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	
	padding-left: 30%;
	padding-right: 10em;
	
	white-space: nowrap;
	overflow:hidden;
	box-sizing: border-box;
	z-index: 1;
}
html.content_mini #content{
	padding-left: 0em;
	padding-bottom: 2em;
	padding-right: 0em !important;
}
.tehtavavalikko_piilossa #content{
	padding-left: 0em !important;
	padding-bottom: 0em !important;
}

/*** tehtavavalikko ***/
#tehtavavalikko{
	display: inline-block;
	width: 100%;
	height: 100%;
	background-color: var(--grey-light);
	text-align: left;
	
	padding: 0;
	margin: 0;
	overflow-y: auto;
	overflow-x: hidden;
	vertical-align: top;
	
	-webkit-overflow-scrolling: touch;
}
#palkkiVasen.animate #tehtavavalikko > *{
	opacity: 0;
}

/*** esikatselu ***/
#esikatselu{
	display: inline-block;
	width: 100%;
	height: 100%;
	background-color: var(--black-light);
	text-align: left;
	
	padding: 0;
	margin: 0;
	overflow-y: auto;
	overflow-x: hidden;
	vertical-align: top;
}

html.palkkiVasen-laajennettu #esikatselu{
	visibility: hidden;
}