html {
	height: 100%;
	min-height: 100%;
}

.content.editable {
	cursor: pointer;
}

.ilves-site.calculator section .content .data-count .content.editable.foced,
.ilves-site.calculator section .content .data-count .content.editable:hover {
	border-color: rgba(255, 255, 255, 0.35) !important;
	opacity: 0.95;
}

.content.editable .unit {
	caret-color: white;
	outline: 0px solid transparent;
	display: block;
	min-width: 1px;
	text-align: center;
}

.unit:before {
	content: '\200B';
}

.input-cell input {
	border: none;
	background: none;
	color: white;
	text-align: center;
	width: 100%;
	margin: 0;
	padding: 0;
}

.input-cell input::-ms-clear {
	width : 0;
	height: 0;
	display: none;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

input[type=number] {
	-moz-appearance: textfield;
}

div.ix-autocomplete,
.ilves-site.calculator section .content .row.jobs .job-list tr td input[type=number],
.ilves-site.calculator section .content .row.jobs .job-list tr td input[type=text] {
	text-align: center;
	width: 70%;
	margin: 0 0.5em;
	border-radius: 5px;
	padding: 5px;
	border: 1px solid #beb6d3;
}

div.ix-autocomplete .content::-webkit-scrollbar {
	width: 12px;
	height: 10px; }

div.ix-autocomplete .content::-webkit-scrollbar-thumb {
	background: gainsboro !important;
	border: 1px solid gainsboro !important;
	background-clip: padding-box;
	min-height: 100px;
	border-radius: 25px;
}

div.ix-autocomplete .content::-webkit-scrollbar-track {
	-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0);
	box-shadow: inset 0 0 6px rgba(0, 0, 0, 0);
	padding: 10px;
	background-color: white !important;
}

.ilves-site.calculator section .content .row.jobs .job-list tr td:nth-child(1) input[type=number],
.ilves-site.calculator section .content .row.jobs .job-list tr td:nth-child(1) input[type=text] {
	text-align: left;
	width: 100%;
	margin: 0;
}

@media screen and (max-width: 1200px) {
	.ilves-site.calculator section .content .row.jobs .job-list tr td input[type=number],
	.ilves-site.calculator section .content .row.jobs .job-list tr td input[type=text] {
		width: 70%;
	}
	.ilves-site.calculator section .content .row.jobs .job-list tr td:nth-child(1) input[type=number],
	.ilves-site.calculator section .content .row.jobs .job-list tr td:nth-child(1) input[type=text] {
		width: 100%;
	}
}

/* potentiaalilaskuri */

.ilves-site.calculator section .content .row.jobs .job-list th, .ilves-site.calculator section .content .row.jobs .job-list td {
	padding: 0.8em;
}

.job-list td {
	cursor: normal;
	width: 15%;
}

.job-list td:first-of-type {
	width: 50%;
}

.job-list td:last-of-type {
	width: 15%;
}

.job-list td.editable span {
	cursor: pointer;
}

.job-list td span {
	display: block;
	padding: 6px;
	width: 100%;
}

.job-list td.min span:after {
	content: ' min';
}

.job-list td span:first-of-type {
	width: 100%;
}

tr.template {
	display: none;
}

/* autocomplete */

div.ix-autocomplete {
	display: block;
	position: relative;
	font-size: 16px;
	list-style-type: none;
	width: auto;
	position: absolute;
	top: -10000px;
	left: -1000px;
	min-width: 200px;
	max-height: 200px;
	background: white;
	z-index: 9;
	margin: 0;
	margin-top: 2px;
	overflow: hidden;
}

div.ix-autocomplete .content {
	display: -webkit-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	justify-items: start;
	overflow-y: auto;
	overflow-x: hidden;
	max-height: 200px;
	-webkit-overflow-scrolling: touch;
}

@media screen and (max-width: 1200px) {
	div.ix-autocomplete {
		font-size: 1.5vw;
	}
}

.ix-autocomplete dl {
	-webkit-box-orient: vertical;
	-webkit-flex-direction: column;
	-ms-flex-direction: column;
	flex-direction: column;
}

.ix-autocomplete dl,
.ix-autocomplete dl * {
	display: -webkit-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	cursor: default;
	overflow: visible;
	text-align: left;
	margin: 0;
	padding: 2px;
	justify-items: start;
}

.ix-autocomplete dt {
	font-weight: bold;
	padding-top: 8px;
	padding-bottom: 6px;
}

.ix-autocomplete dd {
	flex-wrap: nowrap;
	white-space: nowrap;
	flex: 1 auto;
	flex-shrink: 0;
	line-height: 20px;
	padding: 6px;
	padding-left: 12px;
	padding-right: 12px;
	overflow: hidden;
	cursor: pointer;
	border-radius: 3px;
}

.no-touch .ix-autocomplete dd:hover {
	background: rgba(0,0,0,.075);
}

.no-touch .ix-autocomplete dd.selected {
	background: rgba(0,0,0,.125);
}

.save-dialog {
	top: 0;
	left: 0;
	margin: 0;
	padding: 0;
	position: fixed;
	z-index: 90;
	width: 100%;
	height: 100%;
	display: flex;
	display: -webkit-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	flex-wrap: nowrap;
	background-color: rgba(0,0,0,0.6);
	-webkit-animation: fade .2s ease-in-out;
	animation: fade .2s ease-in-out;
}

.save-dialog .content {
	margin: 0 1em;
	padding: 2em 2em 1em;
	background: #fff;
	border-radius: 15px;
	display: flex;
	display: -webkit-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	flex-wrap: nowrap;
	-webkit-box-orient: vertical;
	-webkit-flex-direction: column;
	-ms-flex-direction: column;
	flex-direction: column;
	text-align: center;
	-webkit-box-shadow: 0 0 20px 10px rgba(0, 0, 0, 0.15);
	box-shadow: 0 0 20px 10px rgba(0, 0, 0, 0.15);
	-webkit-animation: scale .2s ease-in-out;
	animation: scale .2s ease-in-out;
}

.save-dialog .content p input{
	width: 100%;
}

@-webkit-keyframes fade {
	from { opacity:0 }
	to { opacity:1 }
}

@keyframes fade {
	from { opacity:0 }
	to { opacity:1 }
}

@-webkit-keyframes scale {
	from { -webkit-transform: scale(0.8); transform: scale(0.8); opacity:0 }
	to { -webkit-transform: scale(1);	transform: scale(1); opacity:1 }
}

@keyframes scale {
	from { -webkit-transform: scale(0.8); 	transform: scale(0.8); opacity:0 }
	to { -webkit-transform: scale(1);	transform: scale(1); opacity:1 }
}

.save-dialog button,
.save-dialog input {
	border-radius: 5px;
	padding: 7px;
	border: 1px solid #beb6d3;
}

.save-dialog button:focus,
.save-dialog input:focus {
	-webkit-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
		box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
}

.save-dialog button {
	margin: 0;
	padding: 4px 15px 4px 15px;
}

.save-dialog input.eml {
	width: 90%;
	border-color: gainsboro;
	padding: 1em;
	font-family: 'Comfortaa', sans-serif;
	font-size: 1.1em;
}

.save-dialog p {
	line-height: 1.2em;
	font-size: 1.2em;
	width: 100%;
	padding: 16px;
	margin: 0;
}

.save-dialog a:hover {
	text-decoration: underline;
}

@media screen and (max-width: 769px) {
	.save-dialog h2 {
		font-size: 1.6em;
	}
	.save-dialog input.eml {
		font-size: 1em;
	}
}

.loading .load-element {
	top: 0;
	left: 0;
	margin: 0;
	padding: 0;
	position: fixed;
	z-index: 90;
	width: 100%;
	height: 100%;
	display: flex !important;
	display: -webkit-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	flex-wrap: nowrap;
	background-color: rgba(0,0,0,0.6);
	-webkit-animation: fade .2s ease-in-out;
	animation: fade .2s ease-in-out;
}

/* embeddable iframe support - basic mode only, no header/footer */

.ilves-site.calculator.frame-1 .ball,
.ilves-site.calculator.frame-1 .frame-0,
.ilves-site.calculator.frame-1 header,
.ilves-site.calculator.frame-1 footer {
	display: none;
}

.ilves-site.calculator.frame-1 .master-wrapper {
	padding: 20px;
	min-height: 100%;
}

body.ilves-site.calculator.frame-1 {
	height: 100%;
	min-height: 100%;
	overflow-y: auto;
}

.ilves-site.calculator.frame-1 .content.top {
	padding-bottom: 20px;
}

.ilves-site.calculator.frame-1 .content.top h3 {
	margin: 50px;
}
