/* Carbon-style overrides for legacy ecidadeonline pages
   Used by certidao*.php and other forms inside iframe CentroPref */

body {
    background: #f4f4f4 !important;
    font-family: 'Segoe UI', Arial, sans-serif !important;
    color: #161616;
}

body > br { display: none; }

body > center {
    max-width: 720px;
    margin: 32px auto !important;
    padding: 32px 28px;
    background: #fff;
    border: 1px solid #e0e0e0;
    text-align: left !important;
    display: block;
}

body > center > br { display: none; }

/* Padroniza qualquer <font> no card (padrao certidaoimovel: 15px bold preto) */
body > center font {
    font-size: 15px !important;
    font-weight: normal !important;
    color: #000 !important;
    font-family: inherit !important;
    line-height: 1.5;
}

body > center font b,
body > center font strong {
    font-weight: normal !important;
    color: inherit !important;
}

/* Form table */
form table.texto,
form table[class="texto"] {
    width: 100% !important;
}

form table.texto td {
    padding: 8px 4px !important;
    vertical-align: middle;
    font-family: inherit;
    font-size: 14px;
    color: #393939;
    height: auto !important;
}

/* Normaliza colunas: rotulo 40% | input 60% */
form table.texto > tbody > tr > td:first-child,
form table.texto > tr > td:first-child { width: 40% !important; }
form table.texto > tbody > tr > td:nth-child(2),
form table.texto > tr > td:nth-child(2) { width: 60% !important; }

/* Linha de cabecalho com colspan ocupa toda a largura */
form table.texto td[colspan] { width: auto !important; }

/* Inputs — tamanho padronizado */
form input[type="text"],
form input[type="password"],
form input.digitacgccpf,
form #verificador {
    padding: 9px 12px;
    border: 1px solid #c6c6c6;
    font-family: inherit;
    font-size: 14px;
    background: #f4f4f4;
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease;
    box-sizing: border-box;
    width: 100%;
    max-width: 360px;
}

form input[type="text"]:focus,
form input[type="password"]:focus,
form input.digitacgccpf:focus,
form #verificador:focus {
    border-color: #198038;
    background: #fff;
}

/* Submit button */
form input.botao,
form input[type="submit"] {
    padding: 8px 24px;
    background: #198038;
    color: #fff;
    border: 1px solid #198038;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.32px;
    cursor: pointer;
    transition: background 0.15s ease;
}

form input.botao:hover,
form input[type="submit"]:hover {
    background: #24a148;
    border-color: #24a148;
}

/* === Pagina de resultado (cai3_certidao.php) === */
body.cert-result {
    background: #f4f4f4 !important;
    font-family: 'Segoe UI', Arial, sans-serif !important;
    color: #161616;
}

body.cert-result > br { display: none; }

body.cert-result .bold2 {
    max-width: 720px;
    margin: 32px auto 0 auto !important;
    padding: 32px 28px 16px 28px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-bottom: none;
    text-align: left !important;
    display: block;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: normal !important;
    color: #161616 !important;
}

body.cert-result > table {
    max-width: 720px !important;
    width: auto !important;
    margin: 0 auto 32px auto !important;
    padding: 16px 28px 32px 28px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-collapse: separate;
    box-sizing: border-box;
}

body.cert-result a[href*="js_certidao"] {
    display: inline-block;
    padding: 12px 28px;
    background: #198038;
    color: #fff !important;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.32px;
    text-decoration: none !important;
    transition: background 0.15s ease;
    border: 1px solid #198038;
    margin: 8px 0;
}

body.cert-result a[href*="js_certidao"]:hover {
    background: #24a148;
    border-color: #24a148;
}
