/* LOGIN-MODUS */
body ._login, body._login ._gast {display:none !important}
body._login ._login {display:inline-block !important}

/* SAVESTATE MODI */
body ._resume, body._resume ._firststart, body ._restore {display:none !important}
body._resume ._resume, body._restore ._restore {display:inline-block !important}

/* PROJEKT-MODUS */
body ._projekt, body._projekt ._planung {display: none !important}
body._projekt ._projekt {display: inline-block !important}
body._projekt i18n._projekt {display: inline !important}

/* refactor pls */
#summary-choices .projekt, #summary-choices.projekt .planung { display: none; }
#summary-choices.projekt .projekt { display: inline-block; }
#summary-choices.projekt i18n.projekt { display: inline; }

/* KONFIGURATION ABGESCHLOSSEN */
body ._abgeschlossen, body._abgeschlossen ._entwurf {display:none !important}
body._abgeschlossen ._abgeschlossen {display:inline-block !important}
body._abgeschlossen i18n[rel="#inspector-offer-done-text"] {display:block !important; border:2px solid}

/* refactor pls - conflict offer done - project done */
#Summary i18n[rel="#inspector-offer-done-text"] { display: none; border: 2px solid; }
#Summary.offer-done i18n[rel="#inspector-offer-text"] { display: none; }
#Summary.offer-done i18n[rel="#inspector-offer-done-text"] { display: block; }

/* GONDEL-MODUS */
body._lineus #Counter_am { text-align: right !important; }

/* ANBAU-MODUS */
body._anbau {}

/* DRUCKEN-MODUS */
body._drucken {}

/* SCREENSHOT-MODUS */
body._screenshot #inspector {
	height: 21.5rem;
	opacity: 0.8;
}

/* I18N-MODE */
body.i18n-edit i18n {
	position: relative;
	outline: 1px dashed red;
	cursor: cell;
}
body.i18n-edit i18n:before {
	position: absolute;
	top: -14px;
	overflow-y: hidden;
	height: 15px;
	line-height: 1.3;
	font-size: 11px;
	color: #FFFFFF;
	background: #DD0000;
	content: attr(rel);
}
i18n[contenteditable="true"] {
	cursor: text;
	display: inline-block;
	outline: 125rem solid rgba(0,0,0,0.7) !important;
	padding-right: 1px;
	position: relative;
	z-index: 9999;
	-webkit-user-select: auto !important;
	-khtml-user-select: auto !important;
	user-select: auto !important;
	pointer-events: all;
}
#i18n-btn {
	position: fixed;
	right: 5px; top: 2px;
	z-index: 9999;
}


/*
 * 	MEDIA QUERIES
 */
@media print {
	.noprint, .gui, canvas, .dialog-overlay, .notify, #watermark {
		display: none !important;
	}
	#overlay {
		position: relative !important;
		top: 0 !important;
		bottom: auto !important;
		overflow: visible !important;
		background: #fff !important;
	}
	#page-preview {
		width: 173mm;
		right: 0 !important;
		margin: 0;
		padding: 0;
		border: 0;
		box-shadow: none;
		-webkit-box-shadow: none;
		-moz-box-shadow: none;
	}
	#stocklist {
		width: 173mm; /* to fix page breaks on auto-resize */
		height: auto;
		overflow: visible !important;
		border: none;
		padding: 0 !important;
		padding-bottom: 3mm !important;
		margin: 0 !important;
	}
	th, td {
		color: rgb(0,0,0);
	}
	#overimg {
		width: 173mm !important;
	}
	.fancyimgbtn {
		margin-top: -23mm;
		right: 5mm !important;
	}

	body, html {
		width: 175mm;
		height: auto;
		margin: 0 auto !important;
		padding: 0 !important;
		border: 0 !important;
		background: #fff !important;
		color: #000 !important;
	}
}


@media screen and (max-height:690px) and (min-width: 1400px) {
	html { font-size:100% }
	#dialog { font-size: 120% }
}
@media screen and (min-width:1641px) and (min-height:690px) { 
	html { font-size:120% }
}
@media screen and (max-width:1640px) and (min-height:690px) { 
	html { font-size:110% }
	#dialog { font-size: 110% }
}
@media screen and (max-width:1400px) {
	html { font-size:100% }
	#dialog { font-size: 120% }
}
@media screen and (max-width:1040px) {
	html { font-size:95% }
	#dialog { font-size: 120% }
	.hidden-md { display: none !important; }
}
@media screen and (max-width:940px) {
	html { font-size:90% }
	#dialog { font-size: 120% }
}
@media screen and (max-width:820px) {
	html { font-size:84% }
	.hidden-sm { display: none !important; }
}
@media screen and (max-width:660px) {
	html { font-size:80% }
}