/* ---------------------------------------------------------------------------------------------  */
/* GERAIS --------------------------------------------------------------------------------------  */
:root {
    --primary: #1a5c87;
    --primary-light: #79BEEE;
    --text-main: #4a5568;
    --text-muted: #7c7c7c;
    --bg-main: #f4f7f6;
    --bg-card: #ffffff;
    --border-color: #cbd5e1;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

html, body {
    clear: both;
    color: var(--text-main);
    float: none;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Roboto", "Arial", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    height: 100%;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-main);
}

.wrapper {
    flex: 1;
}

.formatoCentro { 
    height: auto; 
    margin-left: auto; 
    margin-right: auto;
    position: relative;
    width: 100%;
}

.content { 
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    margin: 16px auto;
    min-height: 340px;
    padding: 24px;
    width: 96%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.rodape { 
    font-style: italic;
    padding: 0;
    margin: 16px auto;
    width: 98%;
    color: var(--text-muted);
}

.rodape p { 
    margin-left: 20px;
    margin-right: 20px;
}

.bordaRadius {
    -webkit-border-radius: var(--radius-sm);
    -moz-border-radius: var(--radius-sm);
    border-radius: var(--radius-sm);
}

.borda { border: solid 1px var(--border-color); }
.esquerda { float: left; }
.centro { margin-left: auto; margin-right: auto; }
.direita { float: right; }
.cursor { cursor: pointer; }
.clear { clear: both; }
.oculto { display: none; }
.textoEsquerda { text-align: left; }
.textoCentro { text-align: center; }
.textoDireita { text-align: right; }
.textoJustificado { text-align: justify; }
.textoSublinhado { text-decoration: underline; }

/* ---------------------------------------------------------------------------------------------  */
/* PARÁGRAFOS ----------------------------------------------------------------------------------  */
p.alerta {
    color: #fff;
    display: block;
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    vertical-align: top;
    border-radius: var(--radius-md);
    overflow: hidden; 
    padding: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

p.amarelo {
    background: #f59e0b;
}

p.azul {
    background: #3b82f6;
}

p.cinza {
    background: #6b7280;
}

p.verde {
    background: #10b981;
    color: #fff;
}

p.vermelho {
    background: #ef4444;
}

/* ---------------------------------------------------------------------------------------------  */
/* IMAGENS -------------------------------------------------------------------------------------  */
img {
    border: 0;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}

img.logoGE {
    float: left;
    height: 120px;
    margin: 20px 40px;
    width: 240px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

img.logoEsc {
    float: right;
    height: 120px;
    margin: 20px 40px;
    width: 240px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* ---------------------------------------------------------------------------------------------  */
/* UPLOAD  -------------------------------------------------------------------------------------  */
.upload-card {
    max-width: 400px;
    margin: 16px auto;
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.upload-icon { 
    font-size: 32px; 
    margin-bottom: 12px; 
    color: var(--primary); 
}

.input-file-custom {
    width: 100%;
    padding: 24px 20px;
    border: 2px dashed #3b82f6;
    border-radius: var(--radius-md);
    background: #eff6ff;
    margin-bottom: 25px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.input-file-custom:hover {
    background: #dbeafe;
}

/* ---------------------------------------------------------------------------------------------  */
/* TEXTUAL -------------------------------------------------------------------------------------  */
.textual { 
    width: 100%;
    height: auto; 
    overflow-x: hidden; 
    overflow-y: hidden; 
    margin: 0 10px 0 5px; 
    clear: both; 
    font-size: 15px;
    color: var(--text-main);
}

.textual h3 {
    clear: both;
    color: var(--primary);
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
    padding: 8px 0 8px 4px;
}

.textual h4 {
    clear: both;
    color: #039;
    display: block;
    font-size: 16px;
    font-weight: 600; 
    margin: 0;
    padding: 16px 0 8px 6px;
}

.textual h5 {
    color: var(--text-muted);
    display: block;
    font-size: 13px;
    font-style: italic;
    font-weight: normal; 
    margin: 0;
    padding: 12px 0 6px 4px;
}

.textual h6 {
    color: var(--text-muted);
    display: block;
    font-size: 11px;
    font-weight: normal; 
    margin: 0;
    padding: 8px 0 4px 3px;
}

.textual a {
    clear: both;
    margin: 0;
    padding: 0;
    font-size: 14px; 
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.textual a:hover {
    color: #1e3a8a;
    text-decoration: underline;
}

.textual a.botao {
    background: var(--primary-light); 
    border: 0;
    border-radius: var(--radius-md);
    box-sizing: border-box;
    clear: both;
    color: #1e293b; 
    display: inline-block;
    font-weight: 600;
    margin: 16px 8px;
    padding: 12px 20px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 13px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.2s ease-in-out;
}

.textual a.botao:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    filter: brightness(1.05);
    cursor: pointer;
}

.textual hr {
    margin: 16px 0 20px 0;
    border: 0;
    border-top: 1px solid var(--border-color);
}

.textual form {
    height: auto;
}

.textual input { 
    background: var(--bg-card); 
    border: solid 1px var(--border-color); 
    border-radius: var(--radius-sm); 
    color: #000000; 
    font-size: 14px;
    font-style: italic; 
    float: left; 
    height: 38px; 
    padding: 6px 12px;
    width: auto; 
    transition: all 0.2s;
}

.textual input:focus, .textual select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.2);
}

.textual input:hover {
    border-color: var(--primary);
}

.textual input[type="image"] { 
    border: 0; 
    height: auto; 
    margin: 0;
    padding: 0; 
}

.textual input[type="radio"] {
    background: none; 
    float: none; 
    height: auto; 
    margin: 0 4px 0 0;
    padding: 0;
    vertical-align: middle;
}

.textual input[type="checkbox"] {
    background: none; 
    float: none; 
    height: auto; 
    margin: 8px 10px;
    padding: 0;
    vertical-align: middle;
    transform: scale(1.3);
}

.textual select { 
    background: var(--bg-card); 
    border: solid 1px var(--border-color); 
    border-radius: var(--radius-sm); 
    color: #000000; 
    float: left; 
    font-size: 14px;
    height: 38px; 
    padding: 6px; 
    width: auto;
    transition: all 0.2s;
}

.textual button {
    height: 38px; 
    font-size: 14px;
    color: #1e3b70;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    padding: 0 12px;
}

.textual button:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.textual input.submit {
    background: #6366f1; 
    border: 0;
    border-radius: var(--radius-md);
    color: #ffffff; 
    font-weight: 600;
    font-style: normal;
    margin: 16px 8px;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s;
    cursor: pointer;
}

.textual input.param.submit {
    float: none;
    margin: 20px 0 0 0;
    width: 100%;
}

.textual input.submit:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

.textual label {
    height: auto; 
    float: left; 
    color: var(--text-main);
    display: flex;
    align-items: center;
}

.textual p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    padding: 6px 0 8px 4px;
}

.textual .entDadosExtTit p {
    clear: both;
    float: left; 
    font-size: 13px;
    height: auto; 
    margin: 8px 0 0 10px;
    padding: 0;
}

.textual .entDadosExtCont p {
    clear: both;
    float: left; 
    height: auto; 
    margin: 0;
    padding: 0;
}

.textual ul {
    list-style: none;
    padding: 0;
}

.textual li {
    background: var(--bg-card);
    border-left: 5px solid #6366f1; 
    margin-bottom: 12px;
    padding: 16px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    font-family: sans-serif;
}

.textual li:hover {
    transform: translateX(6px); 
    background: #f8fafc;
    border-left-color: #4f46e5;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.textual textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    color: var(--text-main);
    resize: none;
    transition: border-color 0.2s;
    line-height: 1.5;
    outline: none;
    box-sizing: border-box;
}

.textual textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(26,92,135,0.15);
}

/* --- Estilização do Currículo --- */
.cv-container {
    background: var(--bg-card);
    padding: 32px;
    margin: 16px auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: sans-serif;
    color: var(--text-main);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.cv-header-flex {
    display: flex !important;
    justify-content: space-between; 
    align-items: flex-start;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 24px;
    padding-bottom: 16px;
}

.cv-header {
    border-bottom: 2px solid var(--primary); 
    margin-bottom: 24px;
    padding-bottom: 12px;
}

.cv-header h2 {
    margin: 0 0 4px 0;
    color: var(--primary);
    font-size: 24px;
    text-transform: uppercase;
    font-weight: 700;
}

.cv-section {
    margin-top: 28px;
}

.cv-section h3 {
    background: #f8fafc;
    color: var(--primary);
    padding: 8px 14px;
    border-left: 4px solid var(--primary);
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 16px;
    border-radius: 0 6px 6px 0;
    font-weight: 600;
}

.cv-item {
    margin-bottom: 16px;
    padding-left: 10px;
}

.cv-item h4 {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.cv-item p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
}

.cv-photo-container {
    width: 120px;
    height: 160px;
    border: 3px solid #f1f5f9;
    margin: 0 0 0 24px;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    flex-shrink: 0; 
    border-radius: var(--radius-sm);
}

.cv-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

/* Regras para Impressão */
@media print {
    header, footer, .menu, .no-print, .botao, .sidebar { 
        display: none !important; 
    }
    
    .cv-container {
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        box-shadow: none !important;
    }

    .cv-section h3 {
        background: #eee !important; 
        -webkit-print-color-adjust: exact;
    }
}

/* ---------------------------------------------------------------------------------------------  */
/* TABELAS -------------------------------------------------------------------------------------  */
#box {
    text-align: left;
    margin-left: auto; 
    margin-right: auto;
    border-spacing: 1px;
}

#box table {
    height: auto;
    margin: 0;
    width: 100%;
    border-collapse: collapse;
}

#box th {
    color: #334155;
    background: #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    height: 32px;
    padding: 4px 12px; 
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

#box td {
    border-top: 1px solid transparent;
    border-bottom: 1px solid #f1f5f9;
    color: #000;
    font-size: 14px;
    padding: 8px 12px; 
}

#box tr:hover td {
    background: #f1f5f9;
    color: #000;
}

#box .odd {
    background: #f8fafc;
}

#box .sel {
    background: #e2e8f0; 
}

#box .alerta {
    background: #fee2e2; 
}

#box .ok {
    background: #dcfce7; 
}

#box a {
    text-decoration: none;
    color: var(--primary);
}

#box a:hover {
    text-decoration: underline;
}