/*
 1px - 0.063em		 2px - 0.125em		 3px - 0.188em		 4px - 0.25em
 5px - 0.313em		 6px - 0.375em		 7px - 0.438em		 8px - 0.5em
 9px - 0.563em		10px - 0.625em		11px - 0.688em		12px - 0.75em
13px - 0.813em		14px - 0.875em		15px - 0.938em		16px - 1em
*/

html, body { width: 100%; height: 100%; }

body { margin: 0; background-color: #FFFFFF; }

#wrap {
	height: auto !important;
	height: 100%;
	min-height: 100%;
	position: relative;
}

#content {
	clear: both;
	width: 100%;
	min-height: 100%;
}

#footer {
	position: absolute;
	bottom: 0 !important;
	width: 100%;
}

.footer_spacer { height: 2em; }

img, a.img { border: 0; }

.h0 { height: 0; }

.w1   { width: 1px; }
.w5   { width: 5%; }	.w10  { width: 10%; }	.w15  { width: 15%; }	.w20  { width: 20%; }
.w25  { width: 25%; }	.w30  { width: 30%; }	.w35  { width: 35%; }	.w40  { width: 40%; }
.w45  { width: 45%; }	.w50  { width: 50%; }	.w55  { width: 55%; }	.w60  { width: 60%; }
.w65  { width: 65%; }	.w70  { width: 70%; }	.w75  { width: 75%; }	.w80  { width: 80%; }
.w85  { width: 85%; }	.w90  { width: 90%; }	.w95  { width: 95%; }	.w100 { width: 100%; }

.top { vertical-align: top; } .middle { vertical-align: middle; } .bottom { vertical-align: bottom; }
.left { text-align: left; } .center { text-align: center; } .right { text-align: right; } .justify { text-align: justify; }

.nobr { white-space: nowrap; }

.hspacer { width: 0.9em; height: 1px; }	.vspacer { width: 1px; height: 0.9em; }

.bolder { font-weight: bolder; }

.margin_top { margin-top: 0.9em; } .margin_bottom { margin-bottom: 0.9em; } .margin_y { margin-top: 0.9em; margin-bottom: 0.9em; }
.margin_left { margin-left: 0.9em; } .margin_right { margin-right: 0.9em; } .margin_x { margin-left: 0.9em; margin-right: 0.9em; }

.padding_all { padding: 0.9em; }

.basegrid { width: 100%; border-spacing: 0.9em; }

.borderless { width: 100%; border-spacing: 0 !important; }

.block { display: block; } .inline { display: inline !important; } .inline-block { display: inline-block !important; }

table.data_grid > tbody > tr { height: 2.5em; }
table.data_grid > tbody > tr > td.col_label { width: 12em; max-width: 12em; }
table.data_grid > tbody > tr > td.col_value { width: auto; }

table.view_grid { width: 100% }
table.view_grid > tbody > tr { vertical-align: top; }

label { font-weight: bold; }

input[type=file] { z-index: 1 !important; }

.view_grid { width: 100%; border-collapse: separate !important; }
.vw_header { width: 15%; padding: 4px 10px; } .vw_value { width: 85%; }
.vw_header_2 { width: 15%; padding: 4px 10px; } .vw_value_2 { width: 35%; }
.vw_header_3 { width: 15%; padding: 4px 10px; } .vw_value_3 { width: 18%; } .vw_value_3b { width: 19%; }

.vw_header_c { width: 15%; padding: 4px 10px; } .vw_value_c { width: 42.5%; } .vw_value_cm { width: 85%; }

.toolbar_header { font-weight: bold; display: block; padding: 0.66em 1em; }

.ajax_status { position: fixed; position: top: 0; left: 50%; margin-left: -80px; z-index: 9999; }
.panel_ajax_status { width: 160px; text-align: center; font-weight: bold; }

.logo a { text-decoration: none; font-weight: bold; font-size: 1.4em !important; }

.mapa { width: 100%; min-width: 320px; height: 400px; }
.dialog_mapa { width: 800px; }

.scroll_list { display: block; overflow: auto; max-height: 100px; min-width: 200px; }

.image_preview { max-width: 640px; width: expression(this.width > 640 ? 640: true); }

.actions { cursor: pointer; }

.rotate {
	-moz-transform: rotate(-90.0deg);  /* FF3.5+ */
	-o-transform: rotate(-90.0deg);  /* Opera 10.5 */
	-webkit-transform: rotate(-90.0deg);  /* Saf3.1+, Chrome */
	filter:  progid:DXImageTransform.Microsoft.BasicImage(rotation=0.083);  /* IE6,IE7 */
	-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0.083)"; /* IE8 */
}

.pre_text { white-space: pre-wrap; }

.counter_text { font-size: 11px !important; }

/* PrimeFaces */

.ui-widget { font-size: 13px !important; }

.ui-datatable > .ui-datatable-footer { text-align: right !important; }

th[role=columnheader]:not(.nobr),
td[role=gridcell]:not(.nobr) { white-space: normal; }

.ui-selectonemenu { min-width: 100px; }

.ui-datalist-content { border: none; }
.ui-datalist-data { margin: 0; padding: 0 1em; }

div.fileupload-content > table > tbody > tr.ui-state-error:not(:last-child) { display: none; }

.ui-menuitem-header { cursor: auto !important; padding: 0 1em !important; }

/*
.ui-menu { width: 15em !important; }
*/
.ui-menuitem-text { max-width: 110px; }

.ui-fieldset { border-left-width: 0.5em; }
/*
.ui-fieldset-legend { font-size: 1.2em !important; font-weight: bold; padding: 0.5em 1em !important; }
*/

.ui-picklist-list { width: 300px !important; }

/* Icons */

.menu_icon { padding-right: 0.4em; }
button.custom_icon > span.ui-button-text { padding-left: 2.2em; }

.icon_csv { background-image: url(../images/icons/csv.png) !important; border-radius: 0; }
.icon_pdf { background-image: url(../images/icons/pdf.png) !important; border-radius: 0; }
.icon_xls { background-image: url(../images/icons/xls.png) !important; border-radius: 0; }
.icon_xml { background-image: url(../images/icons/xml.png) !important; border-radius: 0; }

.icon_search { background-image: url(../images/icons/magnifier.png) !important; border-radius: 0; }
.icon_new { background-image: url(../images/icons/application_form_add.png) !important; border-radius: 0; }
.icon_save { background-image: url(../images/icons/disk.png) !important; border-radius: 0; }
.icon_back { background-image: url(../images/icons/bullet_back.png) !important; border-radius: 0; }
.icon_close { background-image: url(../images/icons/close.png) !important; border-radius: 0; }
.icon_add { background-image: url(../images/icons/add.png) !important; border-radius: 0; }
.icon_remove { background-image: url(../images/icons/delete.png) !important; border-radius: 0; }
.icon_favorite { background-image: url(../images/icons/star.png) !important; border-radius: 0; }

.icon_view { background-image: url(../images/icons/application_form_magnify.png) !important; border-radius: 0; }
.icon_options { background-image: url(../images/icons/cog.png) !important; border-radius: 0; }
.icon_edit { background-image: url(../images/icons/application_form_edit.png) !important; border-radius: 0; }
.icon_enable { background-image: url(../images/icons/accept.png) !important; border-radius: 0; }
.icon_disable { background-image: url(../images/icons/delete.png) !important; border-radius: 0; }

.icon_edificacoes { background-image: url(../images/icons/building.png) !important; border-radius: 0; }
.icon_fotos { background-image: url(../images/icons/images.png) !important; border-radius: 0; }
.icon_map { background-image: url(../images/icons/map.png) !important; border-radius: 0; }

/* Modal */

.dialog_mapa { height: 400px; }

div.min_modal { max-width: 800px; }
div.min_modal > div.ui-dialog-content { max-height: 400px; }

div.wide_modal { width: 800px !important; }
div.wide_modal > div.ui-dialog-content { max-height: 400px; }

div.scroll_modal { min-width: 800px; }
div.scroll_modal > div.ui-dialog-content { max-height: 400px; height: 400px !important; }

div.iframe_modal { min-width: 320px; }
div.iframe_modal > div.ui-dialog-content { max-height: 400px; height: 400px !important; }

.reset_opacity {
	opacity: 1 !important;
	filter: Alpha(Opacity=100);
}

.growl_message {
	display: block;
	font-weight: bold;
	height: 32px;
	line-height: 32px;
}

.highlight { color: #FF0000; font-weight: bold; }

.title { font-weight: bold; }

.banner { border-width: 1px; border-style: solid; }

.icon_area { border: 1px solid #FFFFFF; background-color: #FFFFFF; text-align: center; width: 100%; }

/* Media Query */

@media only screen and (min-height: 600px) and (max-height: 699px) {
	div.scroll_modal > div.ui-dialog-content { max-height: 500px; height: 500px !important; }
	.dialog_mapa { height: 500px; }
}

@media only screen and (min-height: 700px) and (max-height: 799px) {
	div.scroll_modal > div.ui-dialog-content { max-height: 600px; height: 600px !important; }
	.dialog_mapa { height: 600px; }
}

@media only screen and (min-height: 800px) and (max-height: 899px) {
	div.scroll_modal > div.ui-dialog-content { max-height: 700px; height: 700px !important; }
	.dialog_mapa { height: 700px; }
}

@media only screen and (min-height: 900px) {
	div.scroll_modal > div.ui-dialog-content { max-height: 800px; height: 800px !important; }
	.dialog_mapa { height: 800px; }
}

/* BAR */

.t_bar_cover { position: absolute; top: 0; left: 0; height: 32px; width: 32px; z-index: 2000; }

.top_bar { color: white; border: none; background-image: url(../images/bg_gd_bar.gif) !important; height: 32px; width: 100%; }

.top_bar_content { text-align: right; line-height: 32px; }

.t_logo_gd_icon { position: absolute; top: 0; left: 0; }

.top_text { color: #FFFFFF !important; font-weight: bold; }
a.top_link { color: #FFFFFF !important; cursor: hand; text-decoration: none; }

.picture { margin-bottom: -4px; margin-right: 4px; }

/* FLEX */

.container { display: flex; flex-wrap: wrap; padding: 0.5em 0; }
.container > div { padding: 0.5em; }
.container > div.break { flex-basis: 100%; height: 0; padding: 0; }
.container > div .field { display: inline-block; padding: 0.4em 0; }
