/* Corpo */

html,body {
    height: 100%;
    width: 100%;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    text-align: center;
    min-width: 345px;
    color: #332211;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body{
    //opacity: 0;
}

header, footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color:#F0D2C7;
    max-height: 200px;
    min-height: min-content;
}

header {
    gap: 2%;
    padding: 3px;
}

nav {
    display: flex;
    flex-grow: 1;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 2%;
    align-items: center;
    padding-right: 5px;
}

form {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #F9F6F2/* url('/user/imagens/fundo.png') repeat center center fixed*/; /* background: #DDDDFF url('/user/imagens/fundo.png') no-repeat center center fixed; */
    background-size: 10% auto; /* background-size: cover; */
    flex-grow: 1;
    overflow-y: auto;
    font: normal 90% arial;
    container-type: size;
}

fieldset {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: none;
    margin: 0;
    padding: 10px;
}

/*legend {
    font: bold 1.1em arial;
    text-transform: uppercase;
}*/

article {
    display: flex;
    flex-direction: column;
    align-items: center;
    break-inside: avoid-column;
    max-width: 940px;
    align-self: center;
    padding: 5px;
    overflow-x: auto;
}

article>table {
    margin: auto;
}

input, button, select {
    min-height: 35px;
    cursor: pointer;
    color: #332211;
}

select, input[type="date"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

div:has(>input[type="checkbox"]) {
    min-height: 35px;
}

button, input[type="button"] {
    user-select: none;
    background-color: #EFEFEF;
    color: #332211;
    border: 1px solid #332211;
    border-radius: 2px;
    padding: 2px 6px;
    font-family: Arial, sans-serif;
    font-size: 13.3px;
    text-align: center;
    text-transform: uppercase;
}

button:hover, input[type="button"]:hover {
    background-color: #E5E5E5;
    border-color: #4F4F4F;
}

button:active, input[type="button"]:active {
    background-color: #D5D5D5;
    box-shadow: inset 0 1px 2px #0000001A;
}

h3 {
    margin: 5px 0px 5px 0px;
    font: bold 1.1em arial;
    text-transform: uppercase;
}

p {
    padding: 10px 0px 0px 0px;
    margin: 0px;
}

a {
    color: #332211;
    text-decoration: none;
}

hr {
    width: 100%;
    height: 1px;
    border: none;
    background-color: #000000;
    margin: 10px 0;
}

label {
    white-space: nowrap;
}

img {
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  pointer-events: none;
}

header img {
    object-fit: contain;
    max-width: 20%;
    margin-right: auto;
    max-height: 100px;
    min-width: 0px;
}

header a {
    font: bold 100% arial;
    /*flex-grow: 1;*/
    color:#332211;
    text-decoration: none;
    text-transform: uppercase;
}

header a:last-child {
    padding-right: 2%;
}

nav input {
    width: 100%;
    display: none;
}

footer p {
    font: normal 70% arial;
    flex-grow: 1;
    color:#332211;
    padding: 10px 70px;
    text-align: center;
}

p:empty {
    display: none; 
}

input:placeholder-shown {
    background-color: #FFFFFF !important;
}

input:-webkit-autofill:not(:placeholder-shown) {
    -webkit-box-shadow: 0 0 0 1000px #F0D2C7 inset !important;
}

input:invalid:not(:placeholder-shown) {
    background-color: #FFBBBB !important;
}

input:valid:not(:placeholder-shown, [type="submit"]) {
    /*background-color: #DDFFDD;*/
}

[title] {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: manipulation; 
}

/* Alertas */

#id_Mensagem_Erro {
    max-width: 270px;
    color: #AA0000;
}

#id_Mensagem_Sucesso {
    max-width: 270px;
    color: #00AA00;
}

#id_Mensagem_Erro, #id_Mensagem_Sucesso {
    font: normal 1em arial;
}

#id_Mensagem_Erro, #id_Mensagem_Sucesso {
    margin-top: 5px;
}

#id_Toggle_Password, #id_Toggle_Check_Password {
    background: #FFFFFF url('/user/imagens/icone_Olho_Fechado.png') no-repeat center center;
    background-size: contain;
    border: 1px solid #000000;
    padding: 0px;
    border-radius: 2px;
    width: 25px;
    font-size: 0;
}

#id_Toggle_Password.class_Olho_Aberto, #id_Toggle_Check_Password.class_Olho_Aberto {
    background: #FFFFFF url('/user/imagens/icone_Olho_Aberto.png') no-repeat center center;
    background-size: contain;
}

/* Carregando Body */

.class_Carregando *:not(#id_Loading, #id_Loading *, div:has(#id_Loading)) {
    display: none;
}

/* Carregando Balanca */

#id_Loading {
    display: flex;
    position: fixed;
    flex-direction: column;
    width: 100%;
    height: 100%;
    z-index: 1000;
    justify-content: center;
    align-items: center;
    background-color: #000000CC;
    color: white;
    font-size: 2em;
    text-align: center;
    font-weight: bold;
    text-shadow: 3px 3px 6px #000000FF;
}

#id_Canvas {
    position: absolute; top: 0; left: 0; z-index: 1;
}

/* Carregando Imagem */

.class_Carregando_Imagem {
    max-width: 60px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    color: transparent;
    background: conic-gradient(#000000 0deg, #FFFFFF 360deg);
    mask: radial-gradient(farthest-side, #00000000 80%, #000000 81%);
    margin: 10px;
    animation: carregando_Imagem_Giro 1s linear infinite;
}


.class_Carregando_Imagem img {
    display: none !important;
}

/* Telas Pequenas */

@media screen and (max-width: 650px) {

    nav {
        justify-content: space-between; 
        flex-wrap: nowrap;
        flex-direction: column;
        gap: 5px;
        max-height: 100%;
        padding: 10px 10px;
        align-items: flex-end;
    }

    header {
        align-items: center;
    }

    nav input {
        display: block;
        background-color: #bbbbbb; /* 33b2f0; */
        border: 1px solid #000000;
        border-radius: 3px;
    }

    nav a {
        display: none;
    }

    nav.small_Nav a {
        display: block;
        width: 100%;
        text-align: right;
    }
    
    header a:last-child {
        padding-right: 0%;
    }
    
    header img {
        max-width: 60%;
        max-height: 100px;
    }
    
    #id_Input_Nav {
        background-color: #00000000;
        border: none;
        text-align: right;
        color: #332211;
        font: bold 150% arial;
        padding: 0px;
    }
}

/* Animações */

@keyframes carregando_Imagem_Giro {
    0% {transform: rotate(0deg)}
    100% {transform: rotate(360deg)}
}