body.dlgBody {
	background-color: #FFF;
	margin: 0;
	overflow: hidden;
	height: 100%;
}

div#dlgmDlg {
	font-family: var(--font-base);
}

div#header {
	position: absolute;
	top: 0;
	bottom: auto;
	height: 59px;
	left: 0px;
	right: 0px;
	width: auto;
	background-color: #FFF;
	border-style: solid;
	border-width: 1px;
	border-color: #FFFFFF #808080 #808080 #FFFFFF;
}

div#headerBg {
	height: 59px;
	background-color: var(--dialog-top);
	color: #FFF;
	text-shadow: 1px 1px 3px #000;
}

div#dlgmContainer div#headerBg {
	cursor: move;
}

div#headerError {
	position: absolute;
	top: 2px;
	left: 17px;
	width: auto;
	right: 5px;
	color: #C00;
	font-weight: bold;
	text-shadow: none;
	font-size: 12px;
	z-index: 1;
}

#headerError div.errStr {
	max-height: 27px;
	overflow-y: hidden;
	padding-right: 20px;
}

div#headerTitle {
	position: absolute;
	top: 18px;
	left: 20px;
	height: 100%;
	font-weight: bold;
	font-size: 1rem;
}

#headerTitle2 {
	font-weight: normal;
}

div#operOhje {
	background-color: #FFF;
	position: absolute;
	top: 26px;
	right: 20px;
	font-weight: bold;
}

div#headerWait {
	display: none;
	position: absolute;
	top: 6px;
	right: 15px;
	left: auto;
	font-weight: bold;
	font-size: 1rem;
	opacity: 0;
	animation-name: headerWait;
	animation-duration: 1s;
	animation-iteration-count: infinite;
	animation-timing-function: linear;
}

@keyframes headerWait {
	0%	{ opacity: 0; }
	25%	{ opacity: 1; }
	75%	{ opacity: 1; }
}

div#content {
	position: absolute;
	top: 61px;
	bottom: 61px;
	height: auto;
	left: 0px;
	right: 0px;
	width: auto;
	overflow-x: hidden;
	overflow-y: overlay;
	background-color: #FFF !important;
	border-style: solid;
	border-width: 1px;
	border-color: #FFF #999 #999 #FFF;
}

div#passwordBoxContainer {
	position: absolute;
	left: 0;
	right: 0;
	width: auto;
	top: 0;
	bottom: 0;
	padding: 0px 20px;
}

div#content2 {
	position: absolute;
	left: 0px;
	right: 0px;
	width: auto;
	margin: 20px;
}

div#content2 fieldset {
	margin-bottom: 5px; padding-bottom: 5px;
	border: 1px solid;
}

div#footer {
	position: absolute;
	bottom: 0px;
	height: 61px;
	left: 0px;
	right: 0px;
	width: auto;
	background-color: var(--dialog-bottom);
}

div#footerBg {
	height: 61px;
	width: 100%;
}

div#footer input:hover:enabled {
	background-color: var(--button-primary-hover-bg);
}

div#contentTab { position: absolute; right: 20px; top: 0px; }
.contentTabTr { height: 21px; padding: 0; margin: 0; }
.contentTabTr td { padding: 0; }

.tabLeft {
	right: 0;
	top: 0;
	background-repeat: no-repeat;
	width: 10px;
	cursor: pointer;
}

.tabMid {
	right: 0;
	top: 0;
	background-repeat: no-repeat;
	width: 10px;
	cursor: pointer;
}

.tabFill {
	right: 0;
	top: 0;
	background-repeat: repeat-x;
	cursor: pointer;
}

.tabText {
	font-style: normal;
	line-height: normal;
	font-weight: bold;
	text-decoration: none;
	white-space: nowrap;
	color: #000;
	vertical-align: middle;
}
.tabText.oper {
	color: #F70;
}
.tabText.selected {
	border-bottom: 1px solid;
	padding-bottom: 5px;
}
.tabText.error {
	color: #F00 !important;
}

div#contentSaved {
	position: absolute;
	top: 50%;
	width: 100%;
}

span.errStr {
	color: #F00;
	font-weight: bold;
}

td.errTd {
	overflow: visible;
	white-space: nowrap;
}

span.errStrTd {
	color: #F00;
	font-weight: bold;
}

[name].dlg_val_error {
	background-color: #F00 !important;
	color: #FFF;
}

div#dlgmAlpha {
	position: fixed;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
	z-index: 99999;
	display: none;
}

div#dlgmContainer {
	position: fixed;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
	z-index: 100000;
	visibility: hidden;
	display: none;
}

div#dlgmWait {
	width: 80px;
	height: 40px;
	text-align: center;
	line-height: 40px;
	position: fixed;
	top: 0px;
	left: 0px;
	background-color: var(--theme-brand);
	color: #FFF;
	border: 1px solid #000;
	box-shadow: #000 0px 0px 20px;
	padding: 10px;
	z-index: 99998;
	visibility: hidden;
	display: none;
}

.dlgmWait {
	width: 80px;
	height: 40px;
	text-align: center;
	line-height: 40px;
	position: fixed;
	top: 0px;
	left: 0px;
	background-color: var(--theme-brand);
	color: #FFF;
	border: 1px solid #000;
	box-shadow: #000 0px 0px 20px;
	padding: 10px;
	z-index: 99998;
	visibility: hidden;
	display: none;
}

#errFlow {
	position: fixed;
	z-index: 1000;
	right: 1px;
	top: 0px;
	width: 100px;
	padding: 1em;
	background-image: linear-gradient(right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.fakeField {
	position: fixed;
	top: 0;
	left: 0;
	z-index: -100;
}

.vaiheJana {
	position: relative;
	top: -10px;
	margin-left: -20px;
	margin-right: -20px;
	width: 105%;
}

.jana {
	font-size: 1.5em;
	font-weight: bold;
	color: #D6D3CE;
	text-shadow: 0px 0px 1px #000;
	background-image: linear-gradient(rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, 0.5) 52%, rgba(255, 255, 255, 0.5) 53%, rgba(255, 255, 255, 0.5) 53.1%, rgba(255, 255, 255, 0.5) 56%, rgba(0, 0, 0, 0) 55%);
}

.vaiheJana .vaiheet td, .vaiheJana .jana {
	padding: 0 1% 0 1%;
	width: 10%;
	text-align: center;
	text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.5);
	color: #666;
}

.vaiheJana .jana {
	width: 10%;
	font-weight: bold;
	font-size: 1.5em;
	color: #AAA;
}

.vaiheJana .vaiheet .sel {
	color: #000;
	text-shadow: none;
	font-weight: bold;
}

.jana .sel {
	color: #1196F6;
	text-shadow: 0px 1px 1px #13C;
}

input[type=number] {
	background-color: #FFF;
	border: 1px solid #666;
}

#iprajoitus {
	position: absolute;
	margin-bottom: 50px;
	width: 90% !important;
}


form#dlgm_form td.btn {
	margin-right: .5rem !important;
}

.dlgBody input:not([type="button"]), .dlgBody textarea {
	background-color: #FBFBFB;
}

#content2 #accountmanager .btn {
	background-color: var(--theme-brand);
}

.dlgBody label input[type="checkbox"], #dlgmContainer label input[type="checkbox"],
.dlgBody label input[type="radio"], #dlgmContainer label input[type="radio"] {
	bottom: 0;
}

span#lisatty {
	color: #FFF;
	font-weight: bold;
	margin-left: 100px;
}

label.oper {
	color: #F70;
}
