/* base */
* {

    margin: 0px;
    padding: 0px;
}

html {
    width:100%;
}

body {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    color: #000;
    font-family: helvetica, arial, sans-serif;
    padding-bottom: 30px;
    text-align: center;
    width:100%;
}

/** cabecalho **/
#cabecalho, header {
    display: block;

    align-items: center;
    background-image: url("../resources/imagens/certidao.gif");
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #A6C9E2 !important;
    height: 95px;
    width:100%;

}

#logoCompany {
    float: left;
    position: absolute;
    top: 0px;
    left: 50%;
    margin-left: -370px;
}

#usuarioLogado {
    color: white;
    display: block;
    float: right;
    right: 50%;
    margin-right: -450px;
    position: absolute;
    top: 35px;
}

#usuarioLogado a {
    color: #ffff60;
    padding-left: 5px;
    padding-right: 5px;
}

#usuarioLogado a:hover {
    text-decoration: none;
}
/*
Nos selectonemenu do primefaces o texto estava ficando alinhado  direita. Isso resolve o problema. 
*/
.ui-selectonemenu-label {
    text-align: left;
}

.jquery-ui-themeswitcher-trigger {
    position: absolute;
    float: right;
    top: 5px;
    right: 50%;
    margin-right: -450px;
}

/* miolo */
#conteudo, section {
    width: 100%;
    height: auto;
    position: relative;
    padding: 10px 0px;
    background-color: #FFF;
    margin: 0 auto;
    /**/
    display: flex;
    width: 97%;
}

#menu {
    float: left;
    width: 165px;
    /**/
    float: none;
    width: 228px;
}

#corpo {
    float: left;
    width: 835px;
    /**/
    float: none;
    width: auto;
    flex: 1;
}

@media all and (max-width: 600px) {
    #conteudo, section {
	display:flex;
	flex-direction: column;
	width: 100%;
    }
    body {
	display: flex;
	flex-direction: column;
	font-size: 16px;
	color: #000;
	font-family: helvetica, arial, sans-serif;
	padding-bottom: 30px;
	text-align: center;
    }
    #cabecalho, header {
	display: flex;
	flex-direction: column;
	align-items: center;
	background-image: url("../resources/imagens/certidao.gif");
	background-size: 480px;
	background-repeat: no-repeat;
	background-position: center;
	background-color: #A6C9E2 !important;
	height: 95px;
	width:100%;

    }
    table{
	display: block;
	width: 100%;

    }
    tbody{
	display: block;
	width: 100%;

    }
    tbody tr{
	display: block;
	width: 100%;

    }
    tbody tr td{
	display: block;
	width: 100%;
    }
    .ui-panelgrid-cell{
	display: block;
	width: 180px;
    }
    tbody tr td input{
	display: block;
	width: 258px ;


    }
    tbody tr td input #email{
	display: block;
	width: 258px ;


    }
    tbody tr td label{
	display: block;
	font-size: 15px;
	text-align: left;


    }
    tbody tr td span{
	display:none;
    }
    table[role=grid]{
	display:flex;
	flex-direction: column;

	width: 100%;
	font-size: 12px;

    }
    table[role=grid] tbody tr td{
	display:flex;
	flex-direction: column;

	width: 100%;
	font-size: 12px;

    }

}

@media screen and (max-width: 480px) {
    .text {
	font-size: 26px;
    }
    h1 {
	font-size: 2.2rem;
    }
    h2 {
	margin: 1.5em 0 0.5em 0;
	font-size: 2rem;
    }
    body {
	display: flex;
	flex-direction: column;
	font-size: 16px;
	color: #0001FF;
	font-family: helvetica, arial, sans-serif;
	padding-bottom: 30px;
	text-align: center;
    }
    #conteudo, section {
	display: flex;
	flex-direction: column;
	position: relative;
	padding: 10px 0px;
	background-color: #FFF;
	margin: 0 auto;
	width: 100%;
    }

    #menu {
	float: left;
	width: 165px;
	display: flex;
	flex-direction: column;
    }

    #corpo {
	float: right;
	width: 100%;
	height: 90px;
	display: block;

    }
    #cabecalho, header {
	display: flex;
	flex-direction: column;
	align-items: center;
	background-image: url("../resources/imagens/certidao.gif");
	background-size: 480px;
	background-repeat: no-repeat;
	background-position: center;
	background-color: #A6C9E2 !important;
	height: 95px;
	width:100%;

    }

    table{
	display: block;
	width: 100%;

    }
    tbody{
	display: block;
	width: 100%;

    }
    tbody tr{
	display: block;
	width: 100%;

    }
    tbody tr td{
	display: block;
	width: 100%;
    }
    .ui-panelgrid-cell{
	display: block;
	width: 180px;
    }
    tbody tr td input{
	display: block;
	width: 244px;
	border: 2px solid red;
	border-radius: 4px;


    }
    tbody tr td input #email{
	display: block;
	width: 258px ;


    }
    tbody tr td label{
	display: block;
	font-size: 15px;
	text-align: left;


    }
    tbody tr td span{
	display:none;
    }
    table[role=grid]{
	display:flex;
	flex-direction: column;
	width:100%;
	overflow-x:visible;
	font-size: 12px;

    }
    table[role=grid] tbody tr td{
	display:flex;
	flex-direction: column;

	width: 100%;
	font-size: 12px;

    }
    table tbody tr td table tbody tr td input{
	width:100%;

    }
    table tbody tr td table tbody tr td input[id="formvalidacao:ano"]{
	width:50%;

    }

}

@media screen and (max-width: 320px) {
    .text {
	font-size: 16px;
    }
    h1 {
	font-size: 2.2rem;
    }
    h2 {
	margin: 1.5em 0 0.5em 0;
	font-size: 2rem;
    }
    body {

	display: flex;
	flex-direction: column;
	font-size: 16px;
	color: #0001FF;
	font-family: helvetica, arial, sans-serif;
	padding-bottom: 30px;
	text-align: center;

    }
    #conteudo, section {
	display: flex;
	flex-direction: column;
	position: relative;
	padding: 10px 0px;
	background-color: #FFF;
	margin: 0 auto;
	width: 100%;

    }

    #menu {
	float: left;
	width: 165px;
	display: flex;
	flex-direction: column;
    }

    #corpo {
	float: right;
	width: 100%;
	height: 90px;
	display: block;


    }
    #cabecalho, header {
	display: flex;
	flex-direction: column;
	align-items: center;
	background-image: url("../resources/imagens/certidao.gif");
	background-size: 320px;
	background-repeat: no-repeat;
	background-position: center;
	background-color: #A6C9E2 !important;
	height: 95px;
	width:100%;

    }
}


/** rodape **/
#rodape, footer {

    align-items: center;
    background-color: #6D85F2;
    width: 100%;
    position: fixed;
    bottom: 0;
    padding: 10px 0px;
    text-align: center;
    font-size: 10px;
    color: #FFF;
    display: block;
}

/* TITULO */
h2 {
    display: block;
    position: relative;
    overflow: hidden;
    color: #2B2926;
    text-align: left;
    height: auto;
    margin-bottom: 10px;
    border-bottom: 1px solid;
    clear: both;
    font-size: x-large;
    width: 100%;
}

/* FORM */
input, textarea, select {
    display: block;
    margin-bottom: 3px !important;
}

textarea {
    width: 300px;
}

input:not (.ui-widget ), textarea:not (.ui-widget ), select {
    -moz-border-radius: 5px 5px 5px 5px;
    -webkit-border-radius: 5px 5px 5px 5px;
    border-radius: 5px 5px 5px 5px;
    background: url("../resources/imagens/txt.gif") repeat-x scroll 0 0
	transparent;
    border: 1px solid #999999;
    padding: 5px 2px;
}

label {
    display: block;
    float: left;
    margin-right: 20px;
    text-align: right;
    width: 120px;
}

input:after {
    clear: both;
}

.ui-spinner {
    float: left;
    margin-left: 303px;
}

.ui-editor {
    margin-left: 140px;
    margin-bottom: 5px;
    width: 600px !important;
}

input[type=submit], button {
    margin: 0 auto;
    /*	margin-left: 140px;*/
}

input[type=submit] {
    background: url("../resources/imagens/fundo_botao.gif") repeat-x scroll
	0 0 #2A2A2A;
    border: 1px solid #272727;
    color: #FFFFFF;
    cursor: pointer;
    padding: 3px;
    position: relative;
    text-shadow: 1px 1px 0 #000000;
    -moz-border-radius: 5px 5px 5px 5px;
    -webkit-border-radius: 5px 5px 5px 5px;
    border-radius: 5px 5px 5px 5px;
}

table button {
    margin: 0 4px;
}

.acoes {
    text-align: center;
}

form {
    margin-bottom: 10px;
    position: relative;
    text-align: left;
}

form fieldset {
    padding: 10px 0px 10px 10px;
    margin: 5px 0 10px 0;
    text-align: left;
    width: 887px;
}

form .ui-fieldset {
    width: 873px;
}

.ui-tabs {
    clear: both;
    margin-bottom: 20px;
}

.ui-tabs fieldset {
    width: 830px;
}

form fieldset legend {
    font-weight: bold;
    padding: 0px 5px;
}

form .campos {
    display: block;
    position: relative;
    overflow: hidden;
}

/* tabela zebrada */
table.dados {
    height: auto;
    margin-bottom: 10px;
    width: 100%;
}

table.dados tr th {
    background-color: #0B0F19;
    color: #fff;
    color: 1em;
    padding: 10px;
}

table.dados tr td {
    padding: 5px 10px;
}

.campos tbody tr td {
    padding-top: 10px;
    text-align: left;
}

.dados {
    width: 100%;
}

.par {
    background-color: #F0F9FF;
}

.impar {
    background: none repeat scroll 0 0 #DDDDDD;
}

/* validacao */
.erros {
    margin: 0 0 10px 0;
    padding: 0 8px;
    clear: both;
}

.erros li {
    display: inline;
    list-style-position: inside;
    list-style-type: none;
    color: #C22;
    background: #FFDFDF;
    border: 2px solid #DF7D7D;
    float: left;
    padding: 6px;
    margin: 3px;
}

.ui-datatable .ui-datatable-data .ui-datatable-odd td {
    background-color: #F2F5F9;
}

.ui-datatable .ui-datatable-data .ui-datatable-even td {
    background-color: #FFFFFF;
}

/*line-height
:
 
100%;
word-break
:
 
break-all
;*/

.ui-widget-header .ui-inputfield, .ui-widget-content .ui-inputfield {
    font-weight: normal;
    width: 100%;
}

.ui-menu .ui-menuitem-link {
    width: 100% !important;
}

.ui-menu {
    width: 100% !important;
    padding: 0 !important;
    border: none !important;
}

.ui-menu .ui-menu-list .ui-widget-header {
    width: 100% !important;
}

li.ui-corner-all {
    border-radius: inherit !important; 
}

.ui-widget-header .ui-inputfield, .ui-widget-content .ui-inputfield {
    font-weight: normal;
    width: 100%;
}

.ui-outputlabel{
    text-align: left !important;
}

.ui-inputfield {
    width: 100% !important;
}

.mr-40{
    margin-right: 40px;
}

.mr-10{
    margin-right: 10px;
}

.pr-20{
    padding-right: 20px;
}

.pr-30{
    padding-right: 30px;
}

.formulario{
    padding: 1.5rem !important;
}

@media screen and (max-width: 991px) {
    #divCorpo{
	display: contents !important;

    }
    .formulario{
	padding: 0 !important;
	margin-left: 30px !important;
	margin-right: 30px !important;
	margin-top: 20px !important;
    }
}

.ui-selectonemenu{
    min-width: auto !important;
}

/*.list-group-item-light.list-group-item-action:hover, .list-group-item-light.list-group-item-action:focus, .list-group-item-light.list-group-item-action:active {
    color: #636464 !important;
    background-color: #e5e5e5 !important;
}*/

table{
    table-layout: auto !important;
}

table thead th{
    text-align: left !important;
}

div.ui-paginator.ui-widget-header{
    background: #e3f1fa !important;
}

.ui-autocomplete {
    display: flex !important;
}

.ui-inputfield {
    box-shadow: none !important;
    padding: 8px !important;
    box-sizing: border-box !important;
}

.ui-button{
    font-weight: 400 !important;
}

.ui-button-text-icon-left .ui-button-text {
    padding: 0.8em 1em 0.8em 1.8em !important;
}

button.ui-autocomplete-dropdown{
    margin-top: -6px !important;
}

button.ui-button ui-button-icon-left ui-icon {
    margin-top: -9px !important;
}

button:focus{
    color: #2779aa !important;
}

.ui-datatable thead th, .ui-datatable tbody td, .ui-datatable tfoot td, .ui-datatable tfoot th {
    padding: 10px 10px !important;
}

.row>.col, .row>[class*=col-] {
    padding-right: 5px;
    padding-left: 5px;
}

*, ::after, ::before {
    box-sizing: border-box;
}

.ui-selectonemenu .ui-selectonemenu-trigger {
    width: 30px !important;
}

.ui-messages{
    margin-bottom: 30px;
}

.ui-toolbar, .ui-dialog-titlebar, .ui-datatable thead th.ui-state-default {
    background: #e3f1fa !important;
}

button.ui-state-default {
    border: none !important;
    background: #e3f1fa !important;
}

.ui-selectonemenu-trigger .ui-state-default {
    border: 1px solid #aed0ea;
    background: #fff !important;
}

span.ui-autocomplete > button{
    background: transparent !important;
}

.ui-selectonemenu .ui-selectonemenu-trigger {
    border-left: none !important;
    background: transparent !important;
}

div[id$=tabOutrasOpcoesPesquisa] .ui-selectonemenu .ui-selectonemenu-trigger {
    background: #fff !important;
}

.ui-icon-triangle-1-s {
    background-position: -60px 5px !important;
}

div.ui-selectonemenu{
    background: transparent !important;
}

#botaoInicio{
    background: transparent !important;
}

#botaoLogin{
    background: transparent !important;
}

#botaoSair{
    background: transparent !important;
}

.ui-corner-left {
    border-bottom-right-radius: 6px !important;
    border-top-right-radius: 6px !important;
}

.ui-chkbox .ui-state-default{
    background: #fff !important;
}


.ui-chkbox .ui-state-active{
    background: #3baae3 !important;
}

.ui-accordion .ui-state-active {
    background: #3baae3 !important;
}

.ui-accordion .ui-state-default {
    background: #d7ebf9;
}

.ui-chkbox-box ui-state-active{
    background: #3baae3 !important;
}

.ui-dialog .ui-dialog-content {
    background: #fff !important;
}

.template-nav-menu{
    background-color: #e3f1fa !important;
}

.center-align {
    text-align: center;
}
