table {
    width: 100%;
    overflow-x: auto;
    max-width: 100%;
}
thead {
    position: sticky;
    top: 0;
    background-color: #fff; /* Mantém visível */
    z-index: 1000; /* Garante que o cabeçalho fique acima do conteúdo */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Pequena sombra para destacar */
}
th {
    font-size: 12px;
}
td {
    width: calc(30% - 30px);
    max-width: calc(30% - 30px);
    border: solid 1px #ccc;
    padding: 5px;
}
tbody tr:nth-child(odd) {
    background-color: #dfdede;
}
tbody tr:hover {
    text-decoration: underline;
    cursor: pointer;
}
tbody tr td:first-child {
    width: 30px;
}
#topo {
    background: #f7f7f7;
    position: sticky;
    top: 0;
}
#topo .topo_logo {
    width: unset;
}
/*.topo_texto, #btn-contrato, #btn-pagamento, button {*/
#btn-contrato, #btn-pagamento, button {
    border-radius: 12px;
    background: #01a858;
    color: #f7f7f7;
    padding: 13px 15px 13px 15px;
    cursor: pointer;
    border: solid 2px;
}
.topo_texto{
    right: 85px;
    bottom: 40px;
    font-weight: bold;
}
#topo img {
    max-height: 80px;
    min-width: unset;
}
#topo_login {
    background-color: #01a858;
    border-radius: 12px;
    position: absolute;
    max-height: 80px;
    cursor: pointer;
    padding: 9px;
    width: 45px;
    right: 15px;
    top: 10px;
}
#topo_login img {
    max-height: 80px;
    width: 45px;
}
#topo img:hover {
    filter: unset;
}
.topo_logout {
    background-color: red !important;
    text-align: center;
    font-weight: bold;
    height: 25px;
    color: #FFF;
}
#conectado, #aconvite {
/*    position: absolute;*/
    position: fixed;
    font-size: 14px;
    z-index: 99;
    right: 15px;
    top: 80px;
}
#conectado select {
    font-weight: bold;
}

*::-webkit-scrollbar-track {
    background: #ffffff; 
}
*::-webkit-scrollbar-thumb {
    background: #01a858; 
}
*::-webkit-scrollbar-thumb:hover {
    background: #2f6a44; 
}
#home_banner_container, .fechar {
    cursor: pointer;
}
.esmaecer {
    filter: blur(10px);
    cursor: unset;
}
.pelicula-cad {
    transform: translateX(50%);
    background-color: black;
    padding-bottom: 20px;
    position: absolute;
    opacity: 0.4;
    height: 650px;
}
.pelicula-cad, .cadastro, .acesso, .recuperar {
    width: 90%;
    left: -40%;
    top: 195px;
}
.cadastro, .acesso, .recuperar {
    transform: translateX(50%);
    padding-bottom: 20px;
    position: absolute;
}
.cadastro div, .acesso div, .recuperar div {
    padding-top: 5px;
}
#logon a {
    position: relative;
    font-size: 14px;
    color: #FFF;
    top: 15px;
}
select {
    text-align: center;
}
.cadastro input, .cadastro select, .acesso input, .recuperar input {
    text-align: center;
    padding: 10px;
    width: 300px;
}
.cadastro select {
    width: 324px;
}
.cadastro input[type="button"], .acesso input[type="button"], .recuperar input[type="button"] {
    padding: 15px 0px 15px;
    margin-top: 25px;
    font-size: 16px;
    width: 150px;
    color: #FFF;
    cursor: pointer;
    font-weight: bold;
    background-color: #01a858;
}
#logon, #recuperacao {
    display: block;
/*    position: relative;*/
    top: -795px;
}
#form-cad, #cadastro-endereco, #sel-dependentes, #cadastro-dependente-1, #cadastro-dependente-2, #cadastro-dependente-3, .hadependentes, #logon, #recuperacao {
    display: none;
}
.titulo-cad {
    margin-top: 10px;
    font-size: 20px;
    color: #FFF;
}
.titulo-cad, .label {
    font-weight: bold;
}
.fechar {
    background-color: red;
    position: absolute;
    font-weight: bold;
    color: white;
    padding: 10px;
    width: 20px;
    right: 0px;
    top: 0px;
}
.obrigatorio {
    background-color: #FFF;
    border-radius: 8px;
    padding: 5px;
    color: red;
}
.resposta {
    left: 50%;
    color: red;
    font-weight: bold;
    position: absolute;
    transform: translateX(-50%);
    font-size: 14px;
    width: 100%;
}
#pagamento {
    color: red;
    font-weight: bold;
}
#timeline, #labels-timeline {
    display: flex;
    position: absolute;
    align-items: center;
    font-weight: bold;
    width: 90%;
    top: 140px;
    left: 5%;
}
#labels-timeline {
    top: 115px;
}
#labels-timeline div {
/*    width: 33.3%;*/
    width: 25%;
}
#labels-timeline div:first-child {
    text-align: left;
}
#labels-timeline div:nth-child(2) {
    margin-left: -0.5%;
}
#labels-timeline div:last-child {
    text-align: right;
}
#labels-timeline div:nth-child(3) {
    margin-left: 9.5%;
}
.ponto-timeline {
  width: 35px;
  height: 35px;
  background-color: gray;
  border-radius: 50%;
  line-height: 35px;
  color: white;
  font-weight: bold;
  position: relative;
}
.barra-timeline {
  flex: 1;
  height: 7px;
  background-color: gray;
}
#timeline .m1 {
    background-color: #01a858;
}
.ativo {
    width: 15px;
    height: 15px;
    background-color: #FFF;
    border: solid 11px #01a858;
}
#ir-pagamento, #ir-contrato {
    width: 100%;
    display: block;
    position: absolute;
    top: 190px;
}
#timeline, #labels-timeline, #ir-contrato, #ir-pagamento {
    display: none;
}
.pedido-enviado, .aguardando-pagamento {
    margin-top: 30px;
    font-size: 20px;
    color: #000;
}
#btn-pagamento, #btn-contrato, button {
    background: #000;
    margin-top: 25px;
    min-width: 200px;
    font-size: 18px;
}
#processando {
    height: -webkit-fill-available;
    background-color: black;
    position: absolute;
    display: none;
    opacity: 0.4;
    z-index: 99;
    width: 100%;
    top: 0px;
}
#processando img {
    position: relative;
    top: 195px;
}
.dados form {
    max-height: 60vh; /* 60% da altura da viewport */
    width: 100%; /* Largura total do elemento pai */
    overflow-x: auto; /* Rolagem horizontal quando necessário */
    overflow-y: auto; /* Rolagem vertical quando necessário */
    border: 1px solid #ccc; /* Borda para delimitar a área da div */
    box-sizing: border-box; /* Inclui a borda no cálculo de largura */
}
#home {
    width: calc(98% - 20px);
    position: absolute;
    padding: 10px;
/*    top: 115px;*/
    top: 190px;
    left: 1%;
}
#home .dados {
    display: none;
}
.escopo-ativo {
    display: block;
}
#home .dados {
    border: solid 1px #01a858;
    background-color: #FFF;
}
#home .dados p {
    background-color: #FFF;
    padding-top: 10px;
    margin: 0;
}
#home .dados p:last-child {
    padding-bottom: 15px;
}
#plano div:first-child, #titular div:first-child, #dependentes div:first-child, #promotores div:first-child, #franqueados div:first-child, #clientes div:first-child, #geral div:first-child, #pagamentos div:first-child, #alteracao div:first-child {
    background-color: #01a858;
    font-weight: bold;
    line-height: 50px;
    border: solid 1px;
    margin-top: 5px;
    cursor: pointer;
    color: #FFF;
    border: 1px;
}
#plano div:first-child, #plano button {
    min-width: 200px;
    margin-top: 0px;
}
.botoes {
    display: inline-flex;
}
#sel-plano button {
    padding: 25px;
    line-height: 0px;
}
#titular .dados, #dependentes .dados, #promotores .dados, #franqueados .dados, #clientes .dados, #geral .dados, #pagamentos .dados, #alteracao .dados {
    padding: 15px 0 25px;
    flex-wrap: wrap;
}
#titular .dados input, #titular .dados select, #dependentes .dados  input, #promotores .dados  input, #franqueados .dados  input, #clientes .dados  input, #geral .dados  input, #pagamentos .dados  input, #alteracao .dados  input {
    text-align: center;
    padding: 5px;
    height: 15px;
    width: 250px;
}
#titular .dados select, #dependentes .dados select, #promotores .dados select, #franqueados .dados select, #clientes .dados select, #geral .dados select, #pagamentos .dados select, #alteracao .dados select {
    height: 30px;
    width: 263px;
}
#titular .dados p, #dependentes .dados p, #promotores .dados p, #franqueados .dados p, #clientes .dados p, #geral .dados p, #pagamentos .dados p, #alteracao .dados p {
    display: inline-flex;
    flex-basis: 250px;
    margin: 5px;
}
#promotores {
    display: none;
}
.id {
    display: none !important;
}
hr {
    margin-top: 25px;
}
.contrato-leitura {
    width: 100%;
    height: 400px;
    margin-top: 20px;
}
@media screen and (max-width: 900px)
{
    #logon, #recuperacao {
        top: -425px;
    }
    .botoes {
        display: block;
    }    
    .topo_texto{
        margin-top: 10px;
        display: none;
    }
    .topo_logo {
        max-width: calc(100% - 80px);
    }
}
@media screen and (max-width: 350px)
{
    #labels-timeline div:nth-child(2) {
        margin-left: 1.5%;
    }
    #labels-timeline div:nth-child(3) {
        margin-left: 1.5%;
    }
    #labels-timeline div:last-child {
        margin-left: 6.5%;
    }
    .cadastro input, .cadastro select, .acesso input, .recuperar input {
        max-width: calc(100% - 30px);
    }
    #aconvite {
        top: 70px;
        right: unset;
        width: 102%;
    }
}
.filterInput
{
    width: 1px !important;
}
table th input
{
    box-sizing: border-box;
    width: 100% !important;
    height: 35px !important;
}
table th span:hover
{
    cursor: pointer;
    text-decoration: underline;
}
#alteracao {
    display: none;
}
.edicao {
    padding-bottom: 20px;
    position: absolute;
    display: block;
    width: inherit;
    z-index: 9999;
    top: -85px;
}
.exportButton
{
    margin-top: 15px;
    margin-bottom: 25px;
}

.overlay {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    background: rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%);
    z-index: 1000;
    text-align: center;
    padding: 20px;
    color: white;
}
.popup {
    background: white;
    padding: 20px;
    width: 87%;
    margin: auto;
    margin-top: 15px;
    border-radius: 8px;
    color: black;
}
#cpfPromotor {
    padding: 10px;
}

.fechar-promotor {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 25px;
    height: 25px;
    background: red;
    color: white;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    line-height: 25px;
    border-radius: 50%;
    cursor: pointer;
}

.fechar-promotor:hover {
    background: darkred;
}