:root {
scrollbar-gutter: stable;
--fundo_cabecalho: #001C5B;
/*--fundo_cabecalho: #158FFF;*/
--fundo_menu: #238917;
--fundo_rodape: #363636;


--background-color: #F9F9F9;
--text-color: #333333;
--sidebox-bg: #EEEEEE;

--borda_campos: 25px;

}

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

html, body {
height: 100%;


overflow-y: auto;
}



body {
font-family: Arial, sans-serif;
/*font-family: 'Segoe UI', Tahoma, sans-serif;*/
background: #F3F3F3;
color: var(--text-color);
line-height: 1.5;
}





header {
background-color: var(--fundo_cabecalho);
width: calc(100% - 10px);
margin-left: 5px;
margin-right: 5px;
height: 50px;
font-size: 18px;
color: #FFFFFF;
display: flex-box;
text-align: center;
}


nav {
/*background-color: var(--fundo_menu);*/
width: 180px;
font-size: 15px;
color: #FFFFFF;
text-align: center;
padding: 0px;
}


content {
height: calc(100vh - 75px);
margin-left: 5px;
margin-right: 5px;
flex: 1;
padding: 2px;
}


aside {
margin-left: 5px;
flex: 0 0 180px;
/*background: var(--sidebox-bg);*/
padding: 0px;
}


footer {
background-color: var(--fundo_rodape);
font-size: 15px;
height: 25px;
color: #FFFFFF;
text-align: center;
}


main {
display: flex;
flex-direction: row;
align-items: stretch;
min-height: 60vh;
}





/* Tabelas */

.tabela_container {
margin: 0px;	
width: 100%;
height: 100%;
padding:0px;
height: 290px;
overflow-y: scroll;
position: relative;
/*position: absolute;*/
z-index: 1;
}




table.lista {
width: 100%;
/*border-collapse: collapse;*/
margin-top: 0px;
background: #FFFFFF;
/*overflow: hidden;*/


border-spacing: 0;        /* separa as bordas */
border-collapse: separate;/* garante que cada th tenha sua borda própria */


}

table.lista th {
background: #0098FF;
border: 1px solid #000000;
font-size: 12px;
color: #FFFFFF;
font-weight: bold;
position: sticky;
top: 0;
z-index: 3; /* garante que fique acima */
  /* cria a borda fixa embaixo */
  box-shadow: inset 0 -2px 0 #000;

}














table.lista th, table.lista td {
height:35px;

text-align: center;
vertical-align: middle;
}



table.lista td.linhas {
border-bottom: 1px solid #BBBBBB;
font-size: 14px;
}







table.padrao {
width: 100%;
border-collapse: collapse;
margin: 0px;
background: #FFFFFF;
}

table.padrao th {
background-color: #87CEEB;
height: 30px;
border: 1px solid #000000;
font-size: 12px;
text-align: center;
color: #1C1C1C;
font-weight: bold;
}

table.padrao td {
background-color: #FFFFFF;
height: 22px;
border: 1px solid #000000;
font-size: 13px;
text-align: center;
color: #1C1C1C;
}




table.padrao thead {
position: sticky;
top: 0;
z-index: 1;


}


















input[type="text"], input[type="password"], input[type="number"], input[type="date"], select {
width: 150px;
height: 25px;
/*margin-bottom: 10px;*/
border: 1px solid #87CEEB;
border-radius: var(--borda_campos);
outline: none;
font-size: 14px;
transition: all 0.3s ease;
text-align: center;
}

input[type="text"]:focus, input[type="password"]:focus, input[type="number"]:focus, input[type="date"]:focus, select:focus  {
border-color: #2196f3;
box-shadow: 0 0 5px #4682B4;
}



















textarea {
padding: 8px;
border: 1px solid #87CEEB;
border-radius: 8px;
margin: 5px 0;
transition: 0.3s;
}

textarea:focus {
border-color: #2196f3;
outline: none;
box-shadow: 0 0 5px #4682B4;
}





button {
display: inline-flex;
background-color: #A9A9A9;
color: #FFFFFF;
cursor: pointer;
border: none;
border-radius: 25px;
text-align: center;
align-items: center;
vertical-align: middle;
justify-content: center;
padding: 5px 10px;
/*margin-bottom: 10px;*/
font-weight: bold;
transition: 0.3s;
/*box-shadow: 0 2px 5px #4F4F4F;*/
}


button.padrao { width: 100px; }
button.padrao.confirmar { background-color: #008000; }
button.padrao.confirmar:hover { background-color: #00B800; }
button.padrao.cancelar { background-color: #FF0000; }
button.padrao.cancelar:hover { background-color: #CC0000; }



button.acao { width: 30px; }
button.acao.adiciona_linha { background-color: #4CAF50; }
button.acao.adiciona_linha:hover { background-color: #45A049; }
button.acao.remove_linha { background-color: #F44336; }
button.acao.remove_linha:hover { background-color: #D32F2F; }




button.interruptor { background-color: #2196F3; }
button.interruptor:hover { background: #1976D2; }








input[type="number"].input_limpo {
background: #FFFFFF;
width: 80px;
border: none;
border-radius: 30px;
}

input[type="text"].input_limpo {
background: #FFFFFF;
width: 70px;
border: none;
border-radius: 30px;
}








#msg_retorno {
color: #FF0000;
text-align: center;
margin-top: 10px;
font-size: 14px;
}




div.caixa {
padding-top: 5px;
background: #FFFFFF;
border-radius: 8px;
box-shadow: 0 0 10px #A9A9A9;
}

div.caixa.login {
display: grid;
width: 200px;
margin: 100px auto;
}

div.caixa.login input, div.caixa.login button {
margin: auto;
}


div.caixa.sidelogin {
display: grid;
width: calc(100% - 20px);
margin: 10px;
padding: 5px;
text-align: center;
}


div.caixa.sidelogin p {

color: #000000;
font-weight: bold;
font-size: 14px;
}

div.caixa.sidelogin p a {
text-decoration: none;
color: #DC3545;
}





h2 {
text-align: center;
}















div.caixa.pasta {
/*display: grid;
display: block;
max-width: 1100px;
background: #EEE8AA;*/
background: #FFFFFF;
display: flexbox;

min-height: 490px;


/*border: 1px solid #A9A9A9;*/


width: calc(100% - 30px);
margin: 10px;
padding: 5px;
text-align: center;


}


div.caixa.pasta .barra {
display: flex;
background-color: #0098FF;
height: 35px;
width: 100%;
border-bottom: 1px solid #000000;
}


div.caixa.pasta .barra span {
background-color: #0098FF;
color: #FFFFFF;
border: 1px solid #0098FF;
padding: 10px 20px;
cursor: pointer;
outline: none;
transition: 0.3s;
font-size: 16px;
font-weight: bold;
}


div.caixa.pasta .barra .aba:hover {
background-color: #1753CC;
}


div.caixa.pasta .barra .aba.ativa {
background-color: #FF8504;
border: 1px solid #FFFFFF;
color: #FFFFFF;
}


div.caixa.pasta .conteudo {
padding: 0px;
display: none;
}


div.caixa.pasta .conteudo.ativa {
display: block;
/*background-color: #FF55FF;*/
height: 405px;
/*max-width: 100%;*/
}









/* Itens de formulario */

.interruptor {
position: relative;
display: inline-block;
width: 70px;
height: 34px;
}

.interruptor input { display: none; }


.rotulo_interruptor {
margin-left: 8px;
font-weight: bold;
font-size: 14px;
min-width: 30px;
display: inline-block;
text-align: center;
}


.deslizante {
position: absolute;
cursor: pointer;
top: 0; left: 0; right: 0; bottom: 0;
background-color: #DAA520;
transition: 0.4s;
border-radius: 34px;
box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
}

.deslizante:before {
position: absolute;
content: "";
height: 26px; width: 26px;
left: 4px; bottom: 4px;
background-color: white;
transition: 0.4s;
border-radius: 50%;
box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

input:checked + .deslizante {
background-color: #48D1CC;
}

input:checked + .deslizante:before {
transform: translateX(36px);
}


.linha-campos {
display: flex;
gap: 10px;
align-items: center;
justify-content: center;
margin-top: 25px;
margin-bottom: 25px;
flex-wrap: wrap;
/*background-color: green;*/
position: sticky;
z-index: 0;
}


.linha-campos * {
margin: auto ;
}






/* Tooltip */
.tooltip {
position: relative;
display: inline-block;
cursor: pointer;
}
.tooltip .tooltiptext {
visibility: hidden;
/*min-width: 300px;*/
max-width: 500px;
background-color: #333333;
color: #FFFFFF;
text-align: left;
padding: 5px;
font-size: 12px;
border-radius: 6px;
position: absolute;
z-index: 1;
bottom: 0%;
left: 0%;
transform: translateX(-20%);
/*transform: translateY(-50%);*/
white-space: normal;
}
.tooltip:hover .tooltiptext {
visibility: visible;
}


.copy-btn {
margin-left: 8px;
cursor: pointer;
padding: 3px 6px;
border: 1px solid #444;
background: #eee;
color: #565656;
border-radius: 4px;
}
.copy-btn:hover {
background: #ddd;
}











@media (max-width: 768px) {
main {
flex-direction: column;
}

content {
order: 2;
}

aside {
order: 1;
flex: 1 0 auto;
}

header, footer {
padding: 0.75rem;
}

}