﻿p {
	margin-top: 0.8em;
	margin-bottom: 0.8em
}

/* 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;
}

.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: collapse;
	border: 1px solid #e6e6e6;
}

/*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: 1px solid #e6e6e6;
}

tr.TopHeader:first-child th {
	/*ylimmän otsikkorivin alareuna*/
	border-top: 1px solid #e6e6e6;
	border-bottom: none;
}

/* otsikkorivin nurkkasolu, jossa excel-painike */
tr.TopHeader:first-child th:first-child {
	border-right: 1px solid #e6e6e6;
	border-bottom: 1px solid #e6e6e6;
}

td {
	min-width: 60px;
	text-align: right;
	border-left: 1px solid #e6e6e6;
	white-space: nowrap;
}


/* 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: bold;
}

/*summarivin datasolu*/
tr.RowLevel0 td {
	/*korostus taustavärillä*/
	background-color: #f1f1f1;
}

/* tunnusväritys taulukoissa */
/*--*/
body.quarterly-report tr.RowLevel0 td {
	background-color: #e7e7ec;
}

/*body.learning-report tr.RowLevel0 td {
	background-color: green;
}*/
/*--*/

tr.RowLevel1 th {
	padding-left: 15px;
}

tr.RowLevel2 th {
	padding-left: 20px;
}

tr.RowLevel3 th {
	padding-left: 25px;
	font-size: 0.9em;
}

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: 20px;
	border-top: 1px solid #e6e6e6;
	border-bottom: 1px solid #e6e6e6;
	/*piilotetaan taulukkoa ympäröivät viivat SpacerLine:n kohdalta*/
	/*--*/
	border-left: 1px solid #fff;
	border-right: 1px solid #fff;
	/*--*/
}
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(../img/info.svg) !important;
	background-repeat: no-repeat !important;
	background-size: 100% 100% !important;
	border: 1px solid #222 !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: #6d328f;
	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: 50px;
}

/* Näytä/piilota taulukko*/
/*--*/
.table-toggler {
	display: inline-block;
	padding: 10px 0;
}

.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-top: 0.7em;
	padding-bottom: 4px;
	padding-left: 1.1em;
	padding-right: 2em;
	background: #d1d1d1;
}

.generic-report-guide p:first-child {
	margin-top: 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 {
	margin-top: 1.1em;
	margin-bottom: 0.5em;
	padding-top: 0.7em;
	padding-bottom: 4px;
	padding-left: 1.1em;
	padding-right: 1em;
	background: #f1f1f1;
}

.priority-box p:first-child {
	margin-top: 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;
}

.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:before,
.top-report-link-next:after {
	content: '';
	display: inline-block;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	background-position: 0 1px;
	width: 15px;
	height: 15px;
}

.top-report-link-prev {
	margin-right: 5px;
}

.top-report-link-next {
	margin-left: 5px;
}

.top-report-link-prev:before {
	/*https://icons.getbootstrap.com/icons/*/
	background-image: url(/img/chevron-left.svg);
	margin-right: 5px;
}

.top-report-link-next:after {
	/*https://icons.getbootstrap.com/icons/*/
	background-image: url(/img/chevron-right.svg);
	margin-left: 5px;
}

/* -- 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 */