﻿p {
	margin-top: 0.8em;
	margin-bottom: 0.8em
}

.priority-box p,
.priority-box ol,
.priority-box ul,
.priority-box li {
	margin-top: 0.3em;
	margin-bottom: 0.3em
}

/* Debug-moodi */
body.preview .site-header::after {
	content: 'Esikatselu- ja muokkaustila';
	background: white;
	top: 3px;
	left: 3px;
	position: absolute;
	color: white;
	background-color: red;
	z-index: 999;
	font-size: 10px;
	width: auto;
	padding: 3px;
}

#singleReportDiv a,
.ReportLinkList a {
	text-decoration: none;
}

/*#singleReportDiv a {
	position: absolute;
	bottom: 1rem;
	left: 1rem;
}*/

.ReportLinkList a {
	color: var(--sky-black);
}

	.ReportLinkList a:hover {
		text-decoration: underline;
		text-underline-offset: 2px;
	}

	.ReportLinkList a::after {
		content: "";
		display: inline-block;
		width: 10px;
		height: 10px;
		background-color: currentColor;
		mask-image: url("/assets/icons/ui/chevron-right.svg");
		mask-repeat: no-repeat;
		mask-position: center;
		mask-size: contain;
		align-self: center;
		margin-left: 2px;
	}

	.ReportLinkList .sky__reportlinklist-archive {
		color: var(--sky-base-01);
		font-weight: 700;
	}

	.ReportLinkList .sky__reportlinklist-archive {
		font-size: 14px;
	}

	@media screen and (min-width:320px) {
		.ReportLinkList .sky__reportlinklist-archive {
			font-size: calc(14px + 6 * ((100vw - 320px)/ 1600));
		}
	}

	@media screen and (min-width:1920px) {
		.ReportLinkList .sky__reportlinklist-archive {
			font-size: 20px;
		}
	}

	.ReportLinkList h4 {
		color: var(--sky-base-01);
		font-weight: 700;
		margin-bottom: 0;
	}

	.ReportLinkList .sky__reportlinklist-header {
		color: var(--sky-base-01);
		font-weight: 700;
	}

.ReportLinkList a[target=_blank]:after {
	display: inline-block;
	content: '';
	/*https://icons.getbootstrap.com/icons/*/
	background-image: url(../img/arrow-up-right.svg);
	background-repeat: no-repeat;
	background-size: 100% 100%;
	width: 15px;
	height: 15px;
	margin-left: 10px;
}

p.DataInfo, p.DataInfo span {
}

p.ActionInfo {
}

ul.disc {
	list-style-type: disc;
}

ul.circle {
	list-style-type: circle;
}

ul.square {
	list-style-type: square;
}

li {
	margin-top: 0.5em;
	margin-bottom: 0.5em;
}

table {
	border-collapse: separate;
	/*border: var(--sky-table-border);*/
	background-color: var(--sky-white);
	table-layout: auto;
}

/*excel-painike*/
tr.TopHeader:first-child th input[type=image] {
	margin-left: 8px;
}

td, th {
	padding: 3px 10px;
	height: auto;
	color: #222;
	empty-cells: show;
	text-align: left;
}

th {
	font-weight: normal;
	/*background-color: #fafafa;*/
}

tr.TopHeader th {
	color: #222 !important;
	font-weight: 400;
	/*alimman otsikkorivin alareuna*/
	border-bottom: var(--sky-td-border-light);
	font-size: 12px;
	text-align: center;
	min-width: 85px;
}

tr.TopHeader:first-child th {
	/*ylimmän otsikkorivin alareuna*/
	border-top: var(--sky-table-header-border-darker);
	border-bottom: var(--sky-td-border-light);
	font-size: 14px;
	font-weight: 700;
	background-color: var(--sky-main-bg);
	padding: 8px 10px;
	border-right: var(--sky-table-header-border-darker);
}

/* otsikkorivin nurkkasolu, jossa excel-painike */
tr.TopHeader:first-child th:first-child {
	border-right: var(--sky-td-border-light);
	border-left: var(--sky-table-header-border-darker);
	border-bottom: var(--sky-td-border-light);
	max-height: 100px;
	height: 70px;
	background-color: var(--sky-white);
}

td {
	min-width: 60px;
	text-align: center;
	border: var(--sky-td-border-light);
	border-bottom: none;
	white-space: nowrap;
	font-size: 14px;
}

tbody, td, tfoot, th, thead, tr {
	border: var(--sky-td-border-light);
}

/* tunnusväritys taulukoissa */
/*--*/
/*body.quarterly-report th {
	background-color: #f4f4f8;
}*/

/*body.quarterly-report table,
body.quarterly-report tr.TopHeader th,
body.quarterly-report tr.TopHeader:first-child th,
body.quarterly-report tr.TopHeader:first-child th:first-child,
body.quarterly-report td {
	border-color: #d6d6d6;
}*/
/*--*/

td.percent {
	font-style: italic;
}

/* jätetty, koska ei tiedossa vielä, tarvitaanko */
/*--*/

/*mikä tämä on?*/
td.Qu13 {
	min-width: 45px;
	text-align: right;
	color: pink !important;
}

/*mikä tämä on?*/
td.NewSystem {
	background-color: #ffff00;
	color: pink !important;
}

/*mikä tämä on?*/
td.OldSystem {
	background-color: #c5d9f1;
	color: pink !important;
}

/*mikä tämä on?*/
tr.Collected th, tr.Collected td {
	padding-left: 15px;
	font-weight: normal;
	color: pink !important;
}

/*mikä tämä on?*/
th.Sum {
	color: pink !important;
}

/*mikä tämä on?*/
th.GroupHeader {
	color: pink !important;
}

/*mikä tämä on?*/
div.graphColorBox {
	display: inline-block;
	border: solid 1px black;
	width: 7px;
	height: 7px;
	margin-right: 5px;
	border: 10px solid pink;
}
/*--*/

/*summarivin otsikkosolu*/
tr.RowLevel0 th {
	font-weight: 700;
	height: 44px;
	max-height: 44px;
	white-space: nowrap;
	font-size: 12px;
	background-color: var(--sky-th-top-row-bg);
	min-width: 192px;
}

/*summarivin datasolu*/
tr.RowLevel0 td {
	/*korostus taustavärillä*/
	background-color: var(--sky-td-top-row-bg);
}

/* tunnusväritys taulukoissa */
/*--*/
body.quarterly-report tr.RowLevel0 td {
	background-color: var(--sky-td-top-row-bg);
}

/*body.learning-report tr.RowLevel0 td {
	background-color: green;
}*/
/*--*/

tr.RowLevel1 th {
	padding-left: 15px;
	height: 44px;
	max-height: 44px;
	white-space: nowrap;
	font-size: 12px;
	background-color: var(--sky-white);
}

tr.RowLevel2 th {
	padding-left: 20px;
	height: 44px;
	max-height: 44px;
	white-space: nowrap;
	font-size: 12px;
	background-color: var(--sky-white);
}

tr.RowLevel3 th {
	padding-left: 25px;
	font-size: 0.9em;
	height: 44px;
	max-height: 44px;
	white-space: nowrap;
	font-size: 12px;
	background-color: var(--sky-white);
}

tr th a.subrow-expander {
	text-decoration: none;
	color: #222;
}

tr th a.subrow-expander:after {
	display: inline-block;
	content: '';
	/*https://icons.getbootstrap.com/icons/*/
	background-image: url(../img/chevron-down.svg);
	background-repeat: no-repeat;
	background-size: 100% 100%;
	width: 10px;
	height: 10px;
	margin-left: 10px;
}

tr th a.subrow-expander.expanded:after {
	background-image: url(../img/chevron-up.svg);
}

/*debug: korostetaan rivit, joita ei huomioida*/
/*--*/
body.debug-mode-table tr[class*='ChartIgnore'] th {
	color: red;
}
/*--*/

/*osasumman erottajaviiva*/
tr.SeparatorLine td {
	border-top: 1px solid #ccc;
	padding: 0px;
}

/* tunnusväritys taulukoissa */
/*--*/
body.quarterly-report tr.SeparatorLine td {
	border-color: #bbb;
}
/*--*/

tr.SpacerLine td {
	/*border: none;*/
	height: 5px;
	/*border-top: 1px solid #e6e6e6;*/
	/*border-bottom: 1px solid #e6e6e6;*/
	/*piilotetaan taulukkoa ympäröivät viivat SpacerLine:n kohdalta*/
	/*--*/
	border-left: 1px solid var(--sky-main-bg);
	border-right: 1px solid var(--sky-main-bg);
	background-color: var(--sky-main-bg);
	/*--*/
}
tr.HeadingLine th {
	border: none;
	height: 20px;
	font-weight: bold;
}

/* -- Bootstrap-tooltip -- */
.btn-help-tooltip {
	width: 20px !important;
	height: 20px !important;
	padding: 2px !important;
	border-radius: 50% !important;
	margin-left: 10px;
	background-color: #fff !important;
	background-image: url(../assets/icons/ui/info.svg) !important;
	background-repeat: no-repeat !important;
	background-size: 100% 100% !important;
	opacity: 0.4;
	/*viilataan paikkaa hieman johtuen selaineroista*/
	/*--*/
	position: relative;
	top: 1px;
	/*--*/
	/*siirretään solun oik. reunaan*/
	float: right;
}

.btn-help-tooltip:hover {
	opacity: 1;
}
.btn-help-tooltip:focus
{
	outline: 0;

}

.tooltip {
	font-size: 1.5rem;
}

.tooltip.show {
	opacity: 1;
}

.tooltip-inner {
	padding: 6px 12px;
	background-color: var(--sky-select-bg);
	color: var(--sky-white);
	border-radius: 0;
	text-align: left;
}

@media (min-width: 768px) {
	/*leveässä näkymässä tooltip saa olla leveämpi*/
	.tooltip-inner {
		max-width: 500px;
	}
}

.bs-tooltip-right, .bs-tooltip-auto[x-placement^="right"] {
	padding: 0 0.8rem;
}

.bs-tooltip-right .arrow, .bs-tooltip-auto[x-placement^="right"] .arrow {
	left: 1px;
	width: 0.8rem;
	height: 1.6rem;
}

.bs-tooltip-right .arrow::before, .bs-tooltip-auto[x-placement^="right"] .arrow::before {
	right: 0;
	border-width: 0.8rem 0.8rem 0.8rem 0;
	border-right-color: #6d328f;
}

.popover * {
	font-size: 1.5rem;
}

.popover-header {
	margin-top: 0;
}
/* -- Bootstrap-tooltip: loppu -- */

table.TightTable td {
	min-width: 83px;
}

/* Näytä/piilota taulukko*/
/*--*/
.table-toggler {
	display: inline-block;
	padding: 10px 0;
	color: var(--sky-base-04);
	font-weight: 700;
}
	.table-toggler:hover {
		color: var(--sky-base-04);
	}

.table-hidden .table-wrapper {
	display: none;
}
/*--*/

/*sarakkeiden piilotus vuosivalinnan perusteella, vain 5 vuotta näkyy*/
.cell-hidden {
	display: none !important;
}

/*sarakkeiden piilotus taulukon lytistämisellä*/
.cell-collapsed {
	display: none;
}

.table-expander {
	display: inline-block;
}

.table-expanded .cell-collapsed {
	display: table-cell;
}

/*debug: näytetään piilotetut solut, mutta hieman eri ulkoasulla*/
/*--*/
body.debug-mode-table-expand .cell-hidden {
	display: table-cell !important;
	box-shadow: inset 0 0 20px #000000;
}

body.debug-mode-table-expand .cell-collapsed {
	display: table-cell;
	opacity: 0.4;
}

body.debug-mode-table-expand .table-expanded .cell-collapsed {
	opacity: 1;
}
/*--*/

/* Säädetään ohjesisällön ulkoasua */
/* -- */
p .br-small {
	display: block;
	margin-bottom: 0.7em;
}

.generic-report-info {
	margin-top: 0.8em;
	margin-bottom: 0.8em;
}

.generic-table-info {
	margin-top: 20px;
}
/* -- */

/* -- Suljettava yleinen ohjelaatikko -- */
/* tieto sulkemisesta tallennetaan selaimen muistiin */
.generic-report-guide {
	position: relative;
	margin-top: 1.1em;
	margin-bottom: 0.5em;
	padding: 35px;
	border-radius: var(--sky-radius-3);
	background-color: var(--sky-report-guide-bg);
}

.generic-report-guide p:first-child {
	margin: 0;
}

.generic-report-guide .hide-button {
	display: block;
	position: absolute;
	top: 0;
	right: 0;
	/*https://icons.getbootstrap.com/icons/*/
	background-image: url(/img/x.svg);
	background-repeat: no-repeat;
	background-size: 100% 100%;
	width: 40px;
	height: 40px;
}

/* -- Suljettava yleinen ohjelaatikko: loppu -- */

/* -- Ohjeita lukujen tulkintaan -boksi -- */
.priority-box {
	background: var(--sky-base-05);
	border-radius: var(--sky-radius-3);
	padding: 20px;
	/*max-width: 520px;*/
/*	margin-top: 1.1em;
	margin-bottom: 0.5em;
	padding-top: 0.7em;
	padding-bottom: 4px;
	padding-left: 1.1em;
	padding-right: 1em;*/
}

.priority-box p:first-child {
	margin-top: 0;
}

#Quarterly-Info .priority-box h2 {
	color: var(--sky-priority-box-header-color);
	margin: 0;
}

#LearningMaterial-Info .priority-box h2 {
	color: var(--sky-priority-box-header-color);
	margin: 0;
}

#SpecialReportDescription .priority-box h2 {
	color: var(--sky-priority-box-header-color);
	margin: 0;
}

.DataInfo .priority-box h2 {
	color: var(--sky-priority-box-header-color);
	margin: 0;
}

/* -- Ohjeita lukujen tulkintaan -boksi: loppu -- */

/* -- Edelllinen/seuraava raportti -linkit sivun yläreunaan Vuositilastossa -- */

.top-report-links-wrapper {
}

.top-report-links-wrapper .container {
	padding-top: 1rem !important;
	padding-bottom: 0 !important;
}

.top-report-links-separator {
	margin: 0 5px;
	color: var(--sky-base-07);
}

.top-report-links-wrapper a {
	/*display: inline-block;*/
	line-height: 20px;
	text-decoration: none;
}

.top-report-links-wrapper a:hover {
	text-decoration: none;
}

.top-report-link-prev,
.top-report-link-next {
	display: inline-flex;
	align-items: center;
}

	.top-report-link-prev::before,
	.top-report-link-next::after {
		content: "";
		display: inline-block;
		width: 20px;
		height: 20px;
		background-color: currentColor;
		mask-image: url("/assets/icons/ui/chevron-left.svg");
		mask-repeat: no-repeat;
		mask-position: center;
		mask-size: contain;
		flex-shrink: 0;
	}

	.top-report-link-prev::before {
		margin-right: 5px;
	}

	.top-report-link-next::after {
		margin-left: 5px;
		transform: scaleX(-1);
		transform-origin: center;
	}

@media (max-width: 767.98px) {

	.top-report-link-prev,
	.top-report-link-next {
		font-size: 0; 
		line-height: 0;
	}

		.top-report-link-prev::before {
			margin-right: 0;
		}

		.top-report-link-next::after {
			margin-left: 0;
		}

		.top-report-link-prev::before, .top-report-link-next::after {
			width: 26px;
			height: 26px;
		}
}


/* -- Edelllinen/seuraava raportti -linkit sivun yläreunaan Vuositilastossa: loppu -- */

/* Editori... */
.editHtmlButton {
	width: 32px;
	height: 32px;
	border: 1px solid #813db2;
	border-radius: 5px;
	background-color: #8436b0;
	color: #fff;
	font-size: 28px;
	line-height: 28px;
	padding: 0px;
	padding-top: 4px;
	text-align: center;
	/*display: block;*/
	display: none;
	position: absolute;
	top: 8px;
	right: 8px;
	cursor: pointer;
}

.editHtmlButton.Save {
	right: 60px;
}

.editHtmlButton.Close {
	right: 20px;
}

body.preview .editorEditable:hover {
	outline: 1px dashed lightgray;
}
.editHtmlButton:hover {
	background-color: #441b5d;
}
.editorEditable:hover:not(.editing) .editHtmlButton.Open,
.editorEditable.editing .editHtmlButton.Save,
.editorEditable.editing .editHtmlButton.Close {
	display: block;
	z-index: 10;
}

.editorEditable.editing .editHtmlButton.Open {
	display: none;
}

.editorEditable.editing {
	color: transparent;
}

.editorEditable textarea.editTextarea {
	display: block;
	position: absolute;
	left: 0px;
	right: 0px;
	top: 0px;
	bottom: 0px;
	resize: none;
	outline: none;
	padding: 0;
	font-family: monospace;
	z-index: 9;
}

/* ...editori */

:root {
	--table-section-border: #222;
	--table-divider-border: #888;
}

table.sky__table,
table.TightTable {
	border: 0;
	border-collapse: collapse;
}

/*-- Uudet taulukoiden tyylit alkaa --*/

/* left outer edge for logical section rows */
tr.RowLevel0 > th:first-child,
tr.RowLevel0 > td:first-child,
tr.RowLevel1 > th:first-child,
tr.RowLevel1 > td:first-child,
tr.RowLevel2 > th:first-child,
tr.RowLevel2 > td:first-child {
	border-left: 2px solid var(--table-section-border);
	border-right: none !important;
}

/* true last DOM cell */
tr.RowLevel0 > .history-row-last-cell,
tr.RowLevel1 > .history-row-last-cell,
tr.RowLevel2 > .history-row-last-cell {
	border-right: 2px solid var(--table-section-border) !important;
}

/* last visible collapsed-state cell */
tr.RowLevel0 > .history-row-last-donthide-cell,
tr.RowLevel1 > .history-row-last-donthide-cell,
tr.RowLevel2 > .history-row-last-donthide-cell {
	border-right: 2px solid var(--table-section-border) !important;
}

/* top edge for first section in table */
tbody > tr.RowLevel0:first-of-type > th,
tbody > tr.RowLevel0:first-of-type > td {
	border-top: 2px solid var(--table-section-border);
}

/* lighter top edge for sections that start after a spacer
   this is typically where total rows begin */
tr.SpacerLine + tr.RowLevel0 > th,
tr.SpacerLine + tr.RowLevel0 > td {
	border-top: 2px solid var(--table-divider-border) !important;
}

/* bottom edge for last logical RowLevel0 row in the table,
   even if hidden nested rows still exist after it */
/* default: last RowLevel0 gets the bottom border */
tbody > tr.RowLevel0:not(:has(~ tr.RowLevel0)) > th,
tbody > tr.RowLevel0:not(:has(~ tr.RowLevel0)) > td {
	border-bottom: 2px solid var(--table-section-border);
}

/* but not if that last RowLevel0 is followed by visible child rows */
tbody > tr.RowLevel0:not(:has(~ tr.RowLevel0)):has(+ tr.RowLevel1:not([style*="display: none"]), + tr.RowLevel2:not([style*="display: none"])) > th,
tbody > tr.RowLevel0:not(:has(~ tr.RowLevel0)):has(+ tr.RowLevel1:not([style*="display: none"]), + tr.RowLevel2:not([style*="display: none"])) > td {
	border-bottom: 0 !important;
}

/* when the last logical RowLevel0 is expanded, its bottom border moves to the last open child row */
tbody > tr.RowLevel0.last-logical-row-expanded > th,
tbody > tr.RowLevel0.last-logical-row-expanded > td {
	border-bottom: 0 !important;
}

tbody > tr.section-tail-open > th,
tbody > tr.section-tail-open > td {
	border-bottom: 2px solid var(--table-section-border);
}

/* bottom edge when a nested row is truly the last row in the table */
tr.RowLevel1:last-of-type > th,
tr.RowLevel1:last-of-type > td,
tr.RowLevel2:last-of-type > th,
tr.RowLevel2:last-of-type > td {
	border-bottom: 2px solid var(--table-section-border);
}

/* spacer / separator rows act as visual dividers, not boxed sections */
tr.SpacerLine > td,
tr.SpacerLine > th,
tr.SeparatorLine > td,
tr.SeparatorLine > th {
	padding: 0;
	border-left: 0 !important;
	border-right: 0 !important;
	border-bottom: 0 !important;
	border-top: 2px solid var(--table-divider-border) !important;
}

/* avoid double top edge after separator rows */
tr.SeparatorLine + tr.RowLevel0 > th,
tr.SeparatorLine + tr.RowLevel0 > td {
	border-top: 0;
}

/* year / quarter separator on the true visible group end */
th.history-group-last-donthide-cell:not([style*="display: none"]),
td.history-group-last-donthide-cell:not([style*="display: none"]) {
	border-right: var(--sky-table-cell-border-darker) !important;
}

/* fallback for states where the real last DOM cell is also visible */
th.history-group-last-cell:not([style*="display: none"]),
td.history-group-last-cell:not([style*="display: none"]) {
	border-right: var(--sky-table-cell-border-darker) !important;
}

/*-- Uudet taulukoiden tyylit loppuu --*/
