@import "reset.css";
@import "grid.css";
/* Básico */
body{
    font-family: Arial, Helvetica, sans-serif; 
    /*background-color: #e6e6e6; */
    font-size: 13px; 
    color: #858585; 
    letter-spacing: 0px;
}
p{
    line-height: 1.5em;
}
h1,h2,h2,h4,h5 {
    font-family: Tahoma, Geneva, sans-serif; 
    margin-top: 10px; 
    font-weight: normal; 
    margin-bottom: 20px; 
    color: #4F8A10;
}

h1 								{ font-size: 26px; font-family: Tahoma, Geneva, sans-serif; font-weight: normal; letter-spacing: -2px;}
h2 								{ font-size: 24px; letter-spacing: -1px; color: #4F8A10; border-bottom: 1px solid #4F8A10; margin-top: 10px; padding-bottom: 10px;}
h3 								{ font-size: 21px; font-weight: normal; letter-spacing: 1px;}
h4 								{ font-size: 17px; color: #4F8A10; text-transform: uppercase;}
h5 								{ font-size: 16px;}
h6 								{ font-size: 14px; font-weight: bold;}


ul 								{ margin-top: 8px; margin-bottom: 8px;}
.placeholder{
    color:#858585;
}
/* Acessibilidade */
.acessivel{
    position:absolute;
    text-indent:-9999em;
    width:0;
}
/* Login */
div#login {
    margin: 100px auto 50px;
    overflow: hidden;
    padding: 25px;
    width: 400px;
}
/* Topo */
div#header{
    background-color:#2D2D2D;
}
div#header h1{
    color:#DFF2BF;
}
div#header #user{
    padding-top:10px;
    color:#fff;
    font-size:14px;
    background:url('../images/user.png') no-repeat 0px 10px;
    padding-left:40px;
    margin-right:-40px;
    height:40px;
} 
div#header a{
    color: #DFF2BF;
    text-decoration:none;
} 
div#header a:hover{
    text-decoration:underline;
} 
/* Rodapé */
div#footer{
    background-color:#2D2D2D;
    text-align:center;
    color:#fff;
}
div#footer a{
    text-decoration:none;
    color:#fff;
}
div#footer a:hover{
    text-decoration:underline;
}
/* Conteúdo Principal */
div#main{
    background:url('../images/bg_main.png') repeat-y 163px 0;
    min-height:600px;
}
div#right{
    min-height:600px;
}
div#right h2 span{
    vertical-align:center;
}
div#right h2 span a{
    font-size:13px;
    margin-left:10px;
    padding:5px;
    background:#DFF2BF;
}
a{
    color: #4F8A10;
    text-decoration:none;
} 
a:hover{
    text-decoration:underline;
}
/* Tabelas */
td{
    padding: 8px;
    text-align: left;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: #E5E5E5;
}
th{
    color: #333333;
    text-align: left;
    background-color: #EBEBEB;
    padding: 7px;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: #999999;
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: #999;
}
table {
    color: #1B1B1B;
    padding: 5px;
    margin-top: 7px;
    margin-bottom: 7px;
    width:100%;
}
table table {
    padding: 0px;
    margin-top: 0px;
    margin-bottom: 0px;
    width:100%;
}
table table td{
    padding: 0px;
    border:none;
}
td a, td a:visited	{
    color: #1B1B1B;
}
td div.acoes {
    visibility: hidden;
}
tr:hover{
    background-color: #DFF2BF;
}
tr:hover div.acoes{
    visibility: visible;
}
th.check-column { width:25px; }
th.action-column { width:50px; }
tr.even { background-color: #F0F0F0;}
tr.even:hover  {
    background-color: #DFF2BF;
}
th.sortable, th.sorted {
    padding: 0;
}
th.sortable a, th.sorted a {
    display: block;
    overflow: hidden;
    padding: 7px 7px 8px;
}
th.sorted.asc .sorting-indicator, th.desc:hover span.sorting-indicator {
    background-position: 0 0;
    display: block;
    margin-right: 0px;
}
th.sorted.desc .sorting-indicator, th.asc:hover span.sorting-indicator {
    background-position: -7px 0;
    display: block;
    margin-right: 0px;
}
.sorting-indicator {
    background-image: url("../images/sort.gif");
    background-repeat: no-repeat;
    display: none;
    height: 4px;
    margin-left: 7px;
    margin-top: 8px;
    width: 7px;
}
th.sorted a span, th.sortable a span {
    cursor: pointer;
    float: left;
}
/* Menu */
#main-nav ul li a {
    display:block;
    padding:3px 0 3px 5px;
    text-decoration:none;
    background-repeat:no-repeat;
    height:16px;
    color:#4F8A10;
}
#main-nav ul li a:hover {
    color:#4F8A90;
}
#main-nav ul ul {
    margin-left:5px;
    padding-bottom:0px;
    display: none;
}
#main-nav ul li.current {
    background:url('../images/bg_aside_nav_current.png')  no-repeat -110px -4px;
}
#main-nav ul li.current a{
    font-weight:bold;
}
#main-nav ul li.current ul li.current a{
    font-style:italic;
    font-weight:bold;
}
#main-nav ul li.current ul a{
    font-style:normal;
    font-weight:normal;
}
#main-nav ul li.current ul{
    display: block;
}

/* Formulários */
form p {
    overflow: hidden;
    clear: both;
}
label{
    font-size: 13px;
    font-weight: bold;
    color: #555;
    margin-right: 5px;
    vertical-align: middle;
    clear: both;
    display:block;
    line-height: 15px;
}
label.float {
    display:inline;
}
div.inside{
    margin-left: 0px;
    margin-right: 20px;
}
/*input.text{

        border: 1px solid #bbb;
        padding: 6px;
        margin-bottom: 8px;
}*/
input.checkbox{
    vertical-align: middle;
    height: 30px;
}
input.button{
    vertical-align: middle;
    padding: 4px;
    margin-bottom: 8px;
    height: 30px;
    color: #4F8A10;
    background-color: #DFF2BF;
    border: 1px solid;
    cursor: pointer;
    margin-top:5px;
}
form input.button:hover{
    border: 1px solid #ccc;
}
textarea, input[type="text"], input[type="password"], input[type="file"], input[type="button"], input[type="submit"], input[type="reset"], select {
    background: #fefefe;
    padding: 6px;
    border: 1px solid #bbb;
    line-height: 15px;
    margin-bottom: 8px;
}
textarea{resize: none}
select{
    vertical-align: middle;
    height: 30px;
    margin-bottom: 4px;
}
select option {
    padding: 2px;
}
/* Paginação */
#paginacao{
    float:right;
    margin:0px;
    text-align:right;
}
.paginacao li {
    float: left;
    display: inline;
    margin: 0 5px 0 0;
    display: block;
}
.paginacao li a {
    color: #88af3f;
    padding: 4px;
    border: 1px solid #ddd;
    text-decoration: none;
    float: left;
}
.paginacao li a:hover {
    color: #638425;
    background: #f1ffd6;
    border: 1px solid #85bd1e;
}
.paginacao li.nolink {
    color: #CCC;
    border: 1px solid #F3F3F3;
    padding: 4px;
}
.paginacao li.current {
    color: #FFF;
    border: 1px solid #b2e05d;
    padding: 4px;
    background: #b2e05d;
}
/* Alertas */
.flash ul{
    list-style:disc;
    margin-left:15px;
}
.flash.info, .flash.success, .flash.warning, .flash.error, .flash.validation{
    border: 1px solid;
    margin: 10px 0px;
    padding:15px 10px 15px 50px;
    background-repeat: no-repeat;
    background-position: 10px center;
}
.flash.info {
    color: #00529B;
    background-color: #BDE5F8;
}
.flash.success {
    color: #4F8A10;
    background-color: #DFF2BF;
}
.flash.warning {
    color: #9F6000;
    background-color: #FEEFB3;
}
.flash.error {
    color: #D8000C;
    background-color: #FFBABA;
}
.flash.validation {
    color: #D63301;
    background-color: #FFCCBA;
}
.flash p {
    margin: 0;
    padding: 5px 10px; 
}
.flash a.close {
    float: right;
    text-decoration: none;
    visibility: hidden;
    margin: -15px -5px 0 0;
}
.flash:hover a.close {
    visibility: visible;
}
/* Abas */
ul.tabs {
    margin: 0;
    padding: 0;
    float: left;
    list-style: none;
    height: 32px;
    width: 100%;
    border-bottom-width: 1px;
    border-left-width: 1px;
    border-bottom-style: solid;
    border-left-style: solid;
    border-bottom-color: #ccc;
    border-left-color: #ccc;
}
ul.tabs li {
    float: left;
    margin: 0;
    padding: 0;
    height: 31px; 
    line-height: 31px;
    margin-bottom: -1px; 
    overflow: hidden;
    position: relative;
    /*background: #e0e0e0;*/
    background: #fff;
    border-top-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    border-top-style: solid;
    border-right-style: solid;
    border-bottom-style: solid;
    border-left-style: none;
    border-top-color: #ccc;
    border-right-color: #ccc;
    border-bottom-color: #ccc;
    border-left-color: #ccc;
}
ul.tabs li a {
    text-decoration: none;
    color: #4F8A10;
    display: block;
    font-size: 1.2em;
    padding: 0 20px;
    border: 1px solid #fff; 
    outline: none;
}
ul.tabs li a:hover {
    /*background: #ccc;*/
    background: #DFF2BF;
}
html ul.tabs li a.active, html ul.tabs li a.active a:hover  { 
    /*background: #fff;*/
    background: #DFF2BF;
    border-bottom: 1px solid #fff; 
}
.tab_container {
    overflow: hidden;
    clear: both;
    float: left;
    width: 100%;
    background: #fff;
    border-top-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    border-top-style: none;
    border-right-style: solid;
    border-bottom-style: solid;
    border-left-style: solid;
    border-top-color: #ccc;
    border-right-color: #ccc;
    border-bottom-color: #ccc;
    border-left-color: #ccc;
}
.tab_content {
    padding: 20px;
    font-size: 12px;
}
/*
 * jQuery UI Autocomplete 1.8.17
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Autocomplete#theming
*/
.ui-autocomplete {
    position: absolute; 
    background-color:#fff;
    border: 1px solid #bbb;
}

.ui-autocomplete li {
    line-height: 12px;
    overflow: hidden;
    cursor: pointer;
    border-top: 1px dashed #bbb;
}
.ui-autocomplete li:first-of-type {
    border-top: none;
}
.ui-autocomplete li a{
    display:block;
    padding: 12px 12px 7px;
}
.ui-autocomplete li a:hover{
    text-decoration:none;
}
.ui-autocomplete li strong {}
.ui-autocomplete li:hover {
    background: #DFF2BF;
}
.text.ui-autocomplete-loading {background: #fefefe url('../images/ajax-loader.gif') no-repeat right center;}
/* workarounds */
* html .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */

/* */
table a.delete,table a.cancel, a.cancel,a.delete{
    color:#D63301;
}

/* */
.table-grid-header table,.table-grid-body table{
    padding:0px;
    margin:0px;
}
/* Dependentes */
#dependentes td div.detalhe{
    display: none;
    font-size:11px;
    color: #000;

}
#dependentes tr:hover div.detalhe{
    display: block;
    margin-bottom:10px;
}

#dependentes tr:hover div.nome{
    margin-bottom:10px;
    /*color: #fff;*/
    /*background: #2D2D2D;*/
}
.inativo,.ativo,.emaberto{
    border-radius: 3px 3px 3px 3px;
    color: white;
    font-size: 10px;
    font-weight: normal;
    padding: 1px 3px 2px;
    text-transform: uppercase;
    vertical-align:middle;
}
.inativo{
    background-color: #C43C35;
}
.ativo{
    background-color: #46A546;
}
.emaberto{
    background-color: #F89406;
}
#cadastro_dep,.oculto{
    display:none;
    width:99%;
}

/* Exibição de Recursos */
ul.recursos{
    margin:0px;
}
ul.recursos li {
    font-weight:bold;
}
ul.recursos li li{
    margin-left:25px;
    font-weight:normal;
}
ul.relatorios li{
    padding:2px 0px 0px 32px;
    margin-bottom: 10px;
    background: url(../images/custom-reports.png) no-repeat;
}
ul.relatorios li span{
    display: block;
}
#fotoContainer img,.fotoContainer2 img{
    z-index: 50;
}
#fotoContainer #fotoContainerInstrucoes, .fotoContainer2 #fotoContainerInstrucoes{
    display: none;
    margin-top: -15px;
    width: 50px;
    height: 15px;
    text-align: center;
    background: #ffffff;
    z-index: 100;
    position: relative;

}
#fotoContainer:hover #fotoContainerInstrucoes, .fotoContainer2:hover #fotoContainerInstrucoes{
    display: block;   
}
#camera_tirar{
    margin-top: -50px;
    position: relative;
    width: 300px;
    height: 50px;
    text-align: center;
}

/* Correção específica para problema de sobreposição de selects no formulário de colaboradores */
/* Forçar que dentro do formulário de dados, os grids se comportem corretamente */
#dados .inside {
    margin-left: 0 !important;
    margin-right: 20px !important;
}

#dados .grid_2.inside,
#dados .grid_3.inside {
    display: block !important;
    float: left !important;
}

/* Garantir que selects e inputs não fiquem sobrepostos - EXCETO os campos CTPS */
#dados .inside input[type="text"]:not([name="ctps"]):not([name="ctps_serie"]):not([name="dependente_ctps"]):not([name="dependente_ctps_serie"]),
#dados .inside select {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Regra específica para campos CTPS manterem comportamento inline */
#dados .inside input[name="ctps"],
#dados .inside input[name="ctps_serie"],
#dados .inside input[name="dependente_ctps"],
#dados .inside input[name="dependente_ctps_serie"] {
    display: inline !important;
    width: auto !important;
    margin-right: 5px !important;
}

/* Garantir que o clearfix funcione */
#dados .clearfix {
    clear: both !important;
    display: block !important;
    height: 0 !important;
    overflow: hidden !important;
}

#dados .clearfix:after {
    content: "" !important;
    display: table !important;
    clear: both !important;
}

/* Estilos para validação de CPF */
.erro-cpf {
    border: 2px solid #D8000C !important;
    background-color: #FFBABA !important;
}

.mensagem-cpf {
    font-weight: bold;
    margin-top: 2px;
} 