/* set the width of this div in any responsive breakpoint CSS definitions so we can check it with JS to know which breakpoint we are using (0 = default/non-responsive) */
#divLayoutID { display: none; height: 0; width: 0; }

/* prevent zooming/scrolling entire page on windows multi-touch */
* { -ms-touch-action: none; }

/* prevent highlighting or selection boxes to make all the dragging go smoother */
* { -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
/* a chained :not() selector wasn't working in FF to add exclusions to the above, so instead we restore the properties for text inputs */
input[type=text], textarea { -webkit-touch-callout: default; -webkit-user-select: text; -khtml-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text; -ms-touch-action: pan-x pan-y; }

* { text-shadow: none !important; box-shadow: none !important; }

html, body { height: 100%; max-height: 100%; min-height: 100%; font-family: Verdana, Arial, sans-serif; font-size: 14px; padding: 0; margin: 0; overflow: hidden; }
svg, svg * { font-family: Arial, sans-serif; text-shadow: none; box-shadow: none; }
g.note { font-size: 12px; }

.ui-layout { position: absolute; display: block; }

.ui-li-component, .svg-component { cursor: move; }
.ui-li-component.ui-mini.ui-btn-icon-right .ui-btn-inner { padding: 0; }

.ui-ssonly { display: none; }
.ui-content { padding: 0; height: 100%; }
.ui-dropdown-menu { display: none; position: relative; z-index: 9999; }
.ui-tabs-tab { display: none; }
.ui-popup.ui-content, .ui-popup .ui-content { max-height: 400px; overflow: auto; }
.ui-loading, .ui-loading-light, .ui-loading-dark { background-repeat: no-repeat !important; background-position: center center !important; background-size: auto !important; }

.floatcontainer:after { content: ""; display: block; height: 0; clear: both; }

#divDbg1 { width: 100%; height: 50%; left: 0; bottom: 0; position: absolute; z-index: 290; overflow: auto; color: #eee; background: #300; }
#divDbg1 textarea { width: 100%; height: 90%; font: 11px 'Courier New', Courier, monospace; color: #eee; background: #300; border: none; }
#divDbg2 { width: 100%; height: 100%; overflow: auto; color: #eee; background: #300; }

#divSVGToolbox { display: none; }
#divLegendSwatch { display: none; }
#divPoiIcons { display: none; }

#layoutHeader { overflow: hidden; height: 75px; }
#layoutMenu { overflow: visible; }
#layoutStage { overflow: hidden; z-index: 200; }
#layoutTools { overflow: hidden; }
#layoutPreview { overflow: hidden; width: 234px; height: 134px; line-height: 0; }
#layoutOptionsMenu { overflow: hidden; width: 236px; }
#layoutOptions { overflow: hidden; width: 234px; }
#layoutOptionsImgs { display: none; overflow: hidden; width: 234px; position: absolute; top: 0; right: 0; bottom: 0; z-index: 290; }
#layoutPrintFrame { z-index: -100; width: 1px; height: 1px; margin: 0; padding: 0; border: 0; background: #fff; }
/* debugging: #layoutPrintFrame { display: block; z-index: 999; width: 90%; height: 90%; border: 5px solid red; background: #999; overflow: scroll; } */

#divHeader { overflow: hidden; }
#divHeaderLogo { float: left; }
#divHeaderClientName { float: left; }
#divHeaderInfo { float: right; text-align: right; }

#divMenuSettings { float: right; clear: both; }

#divPreview { display: block; overflow: hidden; }
#imgPreview { display: block; max-width: 100%; }

#divStage { overflow: hidden; height: 100%; }

#divLoading { display: none; position: absolute; z-index: 220; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden; text-align: center; }
#divLoading img { margin: 25% auto; }

#divPlan { position: relative; z-index: 210; height: 100%; width: 100%; background-color: #fff; display: none; cursor: all-scroll; }

#iframeExternalViewer { display: none; z-index: 210; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: #fff; overflow: hidden; }

#divImgs { display: none; z-index: 210; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: #000; overflow: hidden; text-align: center; }
#divImgs .imgs-wrapper { width: 100%; height: 100%; position: absolute; opacity: 0; background: #000; }
#divImgs .imgs-img { max-width: 100%; max-height: 95%; }
#divImgs .imgs-txt { margin-top: 0.8em; }

#divImgs.flipped { transform: scale(-1,1); }
#divImgs.flipped .imgs-txt { transform: scale(-1,1); }

#divStatus { display: block; height: auto; overflow: hidden; position: absolute; z-index: 290; top: 0; left: 0; right: 0; }

#divSocialIcons { display: none; position: absolute; z-index: 250; top: 0; right: 0; margin: 0; padding: 0; }
#divSocialIcons > div { display: none; float: right; cursor: pointer; }

#layoutLegend { display: none; z-index: 280; position: absolute; left: 0; top: 0; bottom: 0; height: 100%; margin: 0; }
#layoutLegend #divLegend { height: auto; max-width: 30em; max-height: 90%; float: left; margin: 10px 0 10px 10px; }
#divLegendHandle { transform: rotate(90deg); float: left; position: relative; background: transparent; margin: 10px 0 0 0; width: 28px; }
#btnLegendHandle { margin: 0; height: 28px; }
#btnLegendHandle .ui-btn-inner { padding-bottom: 2px; padding-top: 4px;}
#btnLegendHandle .ui-btn-inner .ui-icon { transform: rotate(-90deg); margin: 0; top: auto; }

#divStageToolTip { display: none; position: absolute; z-index: 280; height: auto; max-width: 20em; min-width: 12em; }

#divOptionsMenu { overflow: hidden; width: 236px; }
#divOptionsMenu .ui-radio { width: 79px; }

#divOptions svg { display: inline-block; vertical-align: middle; margin-right: 10px; }
#divOptions p, #divOptionsImgs p { display: inline-block; vertical-align: top; margin: 8px 10px; }

#divDialogPrint { height: 400px; }
#divPrintPreview { display: block; width: 350px; margin: 30px auto 0 auto; }
#divPrintPreview div { display: block; position: relative; text-align: center; margin: 20px 0; background: #fff; border: 1px solid #000; }
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { #divPrintPreview div { height: 450px; } } /* IE10+ css hack, keep print preview pages from being too short, optimized for letter paper aspect ratio, longer paper sizes will have white sidebars */
#divPrintPreview svg { display: block; margin: 0; padding: 0; }

#divPrintPreview #divLegend { height: auto; width: auto; margin: 0; position: absolute; top: 0; left: 0; font-size: 0.5em; text-align: left; text-wrap: none; padding: 0 0.75em; }

#layoutDialogNote { width: 250px; }
#txtNote { overflow: auto; height: 100px; max-height: 100px; }

#divHalo { display: none; position: absolute; z-index: 400; left: 0; top: 0; }
#touch.halo { cursor: move; }

#divNoteBar { display: none; position: absolute; z-index: 400; left: 0; top: 0; }
#gNoteBarMove { cursor: move; }

#divLineBar { display: none; position: absolute; z-index: 400; left: 0; top: 0; }
#divLineBar2 { display: none; position: absolute; z-index: 210; left: 0; top: 0; }

.ui-draggable { display: block; position: absolute; z-index: 400; cursor: move; }
.ui-clickable { cursor: pointer; }

.ui-scroll-container { -ms-touch-action: pan-x pan-y; position: relative; overflow: hidden !important; overflow-x: hidden !important; overflow-y: auto !important; display: block; }
.ui-scroll-container * { -ms-touch-action: pan-x pan-y; }
.ui-scroll-container .ui-draggable, .ui-scroll-container .ui-draggable * { -ms-touch-action: none; }

.ui-blocker { display: none; position: absolute; height: 100%; width: 100%; }
.ui-blocker.ui-blocker-invisible { display: block; background: transparent; }
.ui-blocker.ui-blocker-darken { display: block; background-color: #333; -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=60)"; filter: alpha(opacity=60); -moz-opacity: 0.60; -khtml-opacity: 0.60; opacity: 0.60; }
.ui-blocker.ui-blocker-lighten { display: block; background-color: #fff; -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=60)"; filter: alpha(opacity=60); -moz-opacity: 0.60; -khtml-opacity: 0.60; opacity: 0.60; }

#divPageBlocker.ui-blocker-block-main { z-index: 199; }
#divPageBlocker.ui-blocker-block-all { z-index: 299; }

#divStageBlocker.ui-blocker-block-main { z-index: 289; }
#divStageBlocker.ui-blocker-block-all { z-index: 299; }

#layoutDialogPOI { width: auto; height: auto; }
#btnDialogPOICancel { background: rgb(255, 17, 5); top: 0px; right: 0px; background: transparent; border: none; }
#btnDialogPOICancel .ui-btn-inner { border: none; display: block; width: 15px; height: 15px; }
#divDialogPOI { max-height: 100%; padding: 0; text-align: center; background: #000; }
#divDialogPOI.ui-loading { background: #000 url('../../css/vip.skins.common/loader-darkbg.gif') center center no-repeat; }
#divDialogPoiIFrame { margin: 0 auto; }
#divDialogPoiImg { max-width: 100%; max-height: 100%; border: 0; }




/*
----------------------------------------------------------------------------
SMALL SCREEN LAYOUT (mobile phone)
----------------------------------------------------------------------------
*/

@media only screen and (max-device-width: 600px) {
	#divLayoutID { width: 600px; }

	#layoutPreview { display: none; }
	#layoutOptionsMenu { display: none; }
	#layoutTools { display: none; }

	#layoutHeader { display: block; z-index: 310; position: fixed; bottom: -71px; right: 0; left: 0; height: auto; }
	#divHeader { height: 70px; }
	#imgHeaderLogo { max-width: 200px; }
	#divHeaderSSHandle { display: block; width: 100%; background: transparent; }
	#btnHeaderSSHandle { margin: 0 auto; overflow: hidden; }

	#layoutMenu { height: 38px; }
	#divMenuSettings { display: none; }

	#layoutStage { top: 35px; right: 0; bottom: 0; left: 0; }

	#layoutOptions { display: block; z-index: 300; position: fixed; top: 0; right: -127px; bottom: 0; width: 160px; }
	#divOptionsSSHandle { display: block; float: left; height: 100%; background: transparent; }
	#btnOptionsSSHandle { position: relative; top: 47%; margin-top: -10px; overflow: hidden; }

	#layoutLegendSS { display: block; z-index: 300; position: fixed; top: 0; right: -87px; bottom: 0; width: 120px; }
	#divLegendSSHandle { display: block; float: left; height: 100%; background: transparent; }
	#btnLegendSSHandle { position: relative; top: 47%; margin-top: -10px; overflow: hidden; }

	#divLegend { margin: 0; height: 100%; right: 0; top: 1px; bottom: 1px; width: 69px; }
	#layoutLegendSS { margin: 0; }
	#btnLegendSSHandle { height: 29px; padding-top: 5px; margin-top: 0; margin-left: 8px; }

	.ui-popup { max-height: 175px; max-width: 275px; }
}



/*
----------------------------------------------------------------------------
ANY TOUCH DEVICE OVERRIDES (regardless of screen size)
----------------------------------------------------------------------------
*/

html.ifptouchdevice #layoutDialogPOI.ui-popup { max-height: 100%; max-width: 100%; }
html.ifptouchdevice #btnDialogPOICancel { top: -6px; right: -16px; }
html.ifptouchdevice #layoutDialogPOI { border-radius: 0; }