/* Identidade visual do site sepacosaude.com.br aplicada ao sistema legado */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@500;600;700&display=swap');

:root {
    --sp-ouro: #c1a67f;
    --sp-ouro-escuro: #7d6642;
    --sp-ouro-claro: rgba(193, 166, 127, .1);
    --sp-texto: #333;
    --sp-tinta: #2b2417;
    --sp-borda: #e4dacb;
}

html, body {
    background: #fff !important;
    background-image: none !important;
    color: var(--sp-texto);
    font-family: Inter, -apple-system, 'Segoe UI', Arial, sans-serif !important;
    font-size: 15px;
    line-height: 1.5;
}

font, td, th, p, li, span, label, div, input, select, textarea, button {
    font-family: Inter, -apple-system, 'Segoe UI', Arial, sans-serif !important;
}

h1, h2, h3, h4, .text2 {
    color: var(--sp-tinta) !important;
    font-family: Poppins, Inter, sans-serif !important;
    font-weight: 600 !important;
}

a, a:visited, a font { color: var(--sp-ouro-escuro) !important; }
a:hover { color: var(--sp-tinta) !important; }

.sp-topo {
    background: #fff;
    border-bottom: 3px solid var(--sp-ouro);
    box-sizing: border-box;
    padding: 14px 24px;
    width: 100%;
}

.sp-topo-interno { margin: 0 auto; max-width: 960px; }
.sp-topo img { display: block; height: 46px; width: auto; }

#geral {
    background: #fff !important;
    box-sizing: border-box;
    float: none;
    margin: 0 auto;
    max-width: 960px;
    padding: 24px 16px;
    width: 100% !important;
}

#geral::after { clear: both; content: ""; display: table; }

#conteudo, #coluna_esquerda, #coluna_esquerda_conteudo {
    box-sizing: border-box;
    float: none !important;
    margin: 0 !important;
    max-width: 100%;
    width: 100% !important;
}

#coluna_direita:empty { display: none; }

#stylized, #styleRelatorio {
    background: #fff !important;
    border: 1px solid var(--sp-borda) !important;
    border-radius: 12px;
    border-top: 4px solid var(--sp-ouro) !important;
    box-shadow: 0 4px 18px rgba(43, 36, 23, .08);
    box-sizing: border-box;
}

.myform, .formRelatorio {
    box-sizing: border-box;
    margin: 24px auto !important;
    max-width: 100%;
    padding: 28px !important;
    width: 480px !important;
}

.formRelatorio { width: 720px !important; }

#stylized label, #styleRelatorio label {
    color: var(--sp-tinta);
    float: none !important;
    font-weight: 500 !important;
    text-align: left !important;
    width: auto !important;
}

input[type=text], input[type=password], input[type=number], input[type=email],
input[type=tel], select, textarea {
    background: #fff;
    border: 1px solid var(--sp-borda);
    border-radius: 8px;
    box-sizing: border-box;
    color: var(--sp-texto);
    font-size: 15px;
    max-width: 100%;
    min-height: 42px;
    padding: 8px 12px;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--sp-ouro);
    box-shadow: 0 0 0 3px rgba(193, 166, 127, .3);
    outline: none;
}

input[type=submit], input[type=button], button, .sp-botao {
    background: var(--sp-ouro) !important;
    border: 0 !important;
    border-radius: 50px !important;
    color: var(--sp-tinta) !important;
    cursor: pointer;
    font-family: Poppins, Inter, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    height: auto !important;
    letter-spacing: .03em;
    line-height: 1.2 !important;
    margin-left: 0 !important;
    min-height: 42px;
    padding: 11px 32px !important;
    width: auto !important;
}

input[type=submit]:hover, input[type=button]:hover, button:hover, .sp-botao:hover {
    background: var(--sp-ouro-escuro) !important;
    color: #fff !important;
}

table th {
    background: var(--sp-ouro-claro);
    color: var(--sp-tinta);
}

.textfieldRequiredMsg { display: none; }
.textfieldRequiredState .textfieldRequiredMsg { display: inline; }

#rodape {
    background: none !important;
    clear: both;
    margin-top: 16px;
    max-width: 100%;
    text-align: center;
}

#rodape table { width: 100% !important; }
#rodape div { text-align: center !important; }

@media (max-width: 600px) {
    .myform, .formRelatorio { padding: 20px !important; width: 100% !important; }
    #stylized td[width="50%"] { display: block; width: 100% !important; }
    #stylized input[type=text], #stylized input[type=password], #stylized input[type=number] { width: 100%; }
}

/* Cabecalho antigo (topo.jsp) substituido pelo topo do site */
#bg_topo, #menu_topo { display: none !important; }

#base {
    background: #fff !important;
    border-top: 1px solid var(--sp-borda);
    box-sizing: border-box;
    clear: both;
    color: #777;
    font-size: 13px;
    height: auto !important;
    margin: 24px auto 0;
    max-width: 960px;
    padding: 16px;
    text-align: center;
    width: 100% !important;
}

#base .direitos_reservados, #ans {
    background: none !important;
    color: #777 !important;
    float: none !important;
    margin: 0 auto !important;
    position: static !important;
    width: auto !important;
}

#base {
    left: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    position: static !important;
}

#ans { display: inline-block; margin-top: 8px !important; }

/* Paginas sem o layout #geral: conteudo centralizado */
body:not(:has(#geral)) > *:not(.sp-topo):not(script):not(link):not(style) {
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    max-width: 720px;
    padding-left: 16px;
    padding-right: 16px;
}

body:not(:has(#geral)) > .sp-topo + * { margin-top: 24px; }
