/* =====================================================================
   Cadastro da Educação Infantil - Piraquara/PR
   Identidade visual idêntica ao SISFORPI (educacao.piraquara.pr.gov.br)
   ===================================================================== */

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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(180deg, #f2f6fc 0%, #e6effb 100%);
    color: #23303f;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-wrap { flex: 1; padding: 40px 15px; }
.container { max-width: 900px; margin: 0 auto; }
.container-wide { max-width: 1280px; margin: 0 auto; }

/* FAIXA INSTITUCIONAL (topo) */
.gov-topbar {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #002362 0%, #0032C3 45%, #A0E1FF 100%) 1;
}
.gov-topbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}
.gov-logo img { height: 56px; display: block; }
.brand-name { display: flex; flex-direction: column; text-align: right; }
.brand-title { font-size: clamp(20px, 4vw, 26px); font-weight: 800; color: #002362; letter-spacing: 1px; line-height: 1.1; }
.brand-sub { font-size: clamp(11px, 2.2vw, 13px); color: #5c6b82; margin-top: 2px; }

/* RODAPÉ */
.gov-footer { background: linear-gradient(135deg, #0032C3 0%, #002362 100%); color: #fff; padding: 26px 20px; }
.gov-footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
    text-align: center;
}
.gov-footer-text { display: flex; flex-direction: column; gap: 8px; }
.gov-footer-text .foot-line { color: #ffffff; text-decoration: none; transition: color 0.2s; }
.gov-footer-text .foot-line:hover { color: #A0E1FF; text-decoration: underline; }
.gov-footer-text .setor-link { font-size: clamp(15px, 3vw, 18px); font-weight: 700; letter-spacing: 0.2px; }
.gov-footer-text .dev { font-size: 14px; margin-top: 6px; opacity: 0.95; }
.gov-footer-text .dev a { color: #A0E1FF; font-weight: 700; text-decoration: none; }
.gov-footer-text .dev a:hover { text-decoration: underline; }

/* CABEÇALHO DA PÁGINA */
.header { text-align: center; margin-bottom: 34px; }
.header h1 { font-size: clamp(26px, 5vw, 38px); margin: 0; color: #002362; letter-spacing: -0.5px; }
.header p { font-size: clamp(14px, 3vw, 18px); color: #5c6b82; }

/* Norma que rege o processo, logo abaixo do título: quem quiser conferir as
   regras chega ao texto oficial sem procurar. */
.header-decreto {
    font-size: 14px !important;
    color: #5c6b82;
    margin: 10px 0 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}
.header-decreto a {
    color: #0047BB;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 71, 187, .35);
    padding-bottom: 1px;
}
.header-decreto a:hover { border-bottom-color: #0047BB; }
.header-decreto a::after {
    content: ' ↗';
    font-size: 12px;
    border: none;
}

.card {
    background: white;
    border-radius: 16px;
    padding: clamp(20px, 4vw, 40px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* NAVEGAÇÃO DE ETAPAS */
.steps-nav {
    display: flex;
    gap: 6px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.step-dot {
    flex: 1 1 90px;
    padding: 10px 6px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: clamp(10px, 2vw, 12px);
    font-weight: 600;
    color: #666;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.25;
}
.step-dot .num {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: #002362;
}
.step-dot.active {
    border-color: #002362;
    background: linear-gradient(135deg, #0032C3 0%, #002362 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 50, 195, 0.25);
}
.step-dot.active .num { color: #fff; }
.step-dot.done { border-color: #28a745; background: #eaf7ee; color: #1c6b32; }
.step-dot.done .num { color: #1c6b32; }

.progress-track { height: 8px; background: #e6effb; border-radius: 999px; overflow: hidden; margin-bottom: 26px; }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, #0032C3 0%, #A0E1FF 100%); transition: width 0.3s; }

/* SEÇÕES DO FORMULÁRIO */
.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.step-title {
    color: #002362;
    font-size: clamp(18px, 4vw, 24px);
    margin-bottom: 6px;
}
.step-legal {
    font-size: 13px;
    color: #5c6b82;
    margin-bottom: 22px;
    padding-left: 10px;
    border-left: 3px solid #A0E1FF;
}

/* O grid se ajusta ao número de campos da linha em vez de fixar 3 colunas:
   uma linha com dois campos divide a largura entre eles, sem deixar uma coluna
   inteira vazia à direita. align-items: start impede que um campo mais alto
   estique os vizinhos e abra um vão embaixo deles. */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 16px;
    align-items: start;
}
.grid-1 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.col-span-2 { grid-column: 1 / -1; }
.col-span-3 { grid-column: 1 / -1; }
/* O seletor de tipo de documento é uma linha só, acima dos campos que ele
   governa: assim os inputs vizinhos ficam todos na mesma altura. */
.seletor-tipo .opcoes { max-width: 360px; }

.field { display: flex; flex-direction: column; gap: 6px; }
/* Empurra a dica para o rodapé do campo, para que campos vizinhos de alturas
   diferentes terminem alinhados em vez de deixarem um buraco. */
.field .hint:last-child { margin-top: auto; }
.field label { font-size: 14px; font-weight: 600; color: #333; }
.field label .req { color: #dc3545; }
.field .hint { font-size: 12px; color: #7b8794; }

.field input[type="text"],
.field input[type="date"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field select,
.field textarea {
    width: 100%;
    padding: 13px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: #23303f;
    transition: border-color 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: #0032C3;
    box-shadow: 0 0 0 3px rgba(0, 50, 195, 0.10);
}
.field input:disabled, .field select:disabled {
    background: #f4f6f9;
    color: #98a2b3;
    cursor: not-allowed;
}
.field textarea { min-height: 90px; resize: vertical; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #dc3545; }
.field .erro { font-size: 12px; color: #dc3545; display: none; }
.field.invalid .erro { display: block; }

/* RADIO / CHECKBOX EM CARTÃO */
/* As opções dividem a largura disponível em partes iguais. A base 0 evita
   que dois botões estourem uma coluna estreita do grid e quebrem para linhas
   separadas — era o que deixava o campo alto demais ao lado dos vizinhos. */
.opcoes { display: flex; gap: 10px; flex-wrap: wrap; }
.opcao {
    flex: 1 1 0;
    min-width: 88px;
    position: relative;
}
.opcao input { position: absolute; opacity: 0; pointer-events: none; }
.opcao span {
    display: block;
    padding: 13px 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.2s;
}
.opcao input:checked + span {
    border-color: #002362;
    background: linear-gradient(135deg, #0032C3 0%, #002362 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 50, 195, 0.2);
}
.opcao input:focus-visible + span { box-shadow: 0 0 0 3px rgba(0, 50, 195, 0.25); }

.check-list { display: flex; flex-direction: column; gap: 10px; }
.check-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.2s;
}
.check-item:hover { border-color: #A0E1FF; }
.check-item input { width: 20px; height: 20px; margin-top: 2px; accent-color: #0032C3; flex-shrink: 0; cursor: pointer; }
.check-item .txt { font-size: 14px; color: #333; line-height: 1.45; }
.check-item .txt strong { color: #002362; display: block; margin-bottom: 2px; }
.check-item .txt small { color: #7b8794; display: block; margin-top: 3px; }
.check-item.marcado { border-color: #0032C3; background: #f2f6fc; }

/* SELETOR DE IDIOMA
   Fica dentro do card, acima da barra de progresso: é uma escolha sobre o
   formulário, não sobre o site, e ali não disputa espaço com o brasão. */
.seletor-idioma {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-bottom: 16px;
}
.seletor-idioma:empty { display: none; }
.idioma-opcao {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 11px;
    border: 1px solid #e0e6ef;
    border-radius: 8px;
    background: #fafbfd;
    font-family: inherit;
    font-size: 13px;
    color: #5c6b82;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}
.idioma-opcao:hover { border-color: #0032C3; background: #f2f6fc; color: #0032C3; }
.idioma-opcao.ativo {
    border-color: #002362;
    background: #002362;
    color: #fff;
    font-weight: 600;
}
/* A bandeira é um SVG: desenha igual em qualquer sistema, sem depender de
   fonte de emoji (o Windows mostraria "BR", "US" no lugar). */
.idioma-bandeira {
    display: block;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
    flex-shrink: 0;
}
/* Em tela estreita, a bandeira basta. */
@media (max-width: 560px) {
    .seletor-idioma { justify-content: center; }
    .idioma-opcao { padding: 6px 9px; }
    .idioma-rotulo { display: none; }
}

/* ANEXOS (etapa de documentos) */
.anexos-lista { display: flex; flex-direction: column; gap: 12px; }
.anexo-item {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #fafafa;
    padding: 14px 16px;
    transition: border-color .15s, background .15s;
}
.anexo-item:hover { border-color: #A0E1FF; }
.anexo-item.enviado { border-color: #1e7e34; background: #f2f9f4; }
.anexo-item.invalid { border-color: #dc3545; background: #fdf3f4; }
.anexo-cab { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.anexo-cab strong { color: #002362; font-size: 14px; }
.anexo-tag {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .3px; padding: 2px 8px; border-radius: 20px;
}
.anexo-tag.obrig { background: #ffe9ec; color: #a4243d; }
.anexo-tag.opc   { background: #eef1f5; color: #5a6673; }
.anexo-ajuda { font-size: 13px; color: #7b8794; line-height: 1.45; margin-bottom: 10px; }
.anexo-acao { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.anexo-botao {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border: 2px solid #0032C3; border-radius: 10px;
    background: #fff; color: #0032C3; font-size: 13px; font-weight: 600;
    cursor: pointer; transition: background .15s;
}
.anexo-botao:hover { background: #f2f6fc; }
.anexo-item input[type="file"] { display: none; }
.anexo-nome { font-size: 13px; color: #333; word-break: break-all; min-width: 120px; }
/* Com arquivo escolhido, "ver" e "remover" acompanham o nome em vez de irem
   parar na outra ponta da linha. */
.anexo-item.enviado .anexo-nome { flex: 0 1 auto; }
.anexo-item:not(.enviado) .anexo-nome { flex: 1; }
.anexo-nome.vazio { color: #9aa5b1; }
.anexo-remover {
    background: none; border: none; color: #a4243d; font-size: 13px;
    cursor: pointer; padding: 4px 8px; text-decoration: underline;
}
.anexo-erro { font-size: 13px; color: #dc3545; margin-top: 8px; display: none; }
.anexo-item.invalid .anexo-erro { display: block; }

/* Prévia do anexo: a miniatura deixa conferir a foto sem abrir nada */
.anexo-previa {
    width: 54px; height: 54px; flex: none; padding: 0; overflow: hidden;
    border: 1px solid #cfd8e3; border-radius: 8px; background: #fff;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: border-color .15s, transform .15s;
}
.anexo-previa:hover { border-color: #0047BB; transform: scale(1.04); }
.anexo-previa img { width: 100%; height: 100%; object-fit: cover; display: block; }
.anexo-previa.pdf { background: #f6f8fb; }
.anexo-previa-pdf {
    font-size: 11px; font-weight: 700; letter-spacing: .4px; color: #a4243d;
}
.anexo-ver {
    background: none; border: none; color: #0047BB; font-size: 13px;
    cursor: pointer; padding: 4px 8px; text-decoration: underline;
}

/* Prévia em tela cheia */
.previa-fundo {
    position: fixed; inset: 0; z-index: 1000; padding: 20px;
    background: rgba(0, 12, 35, .72);
    display: flex; align-items: center; justify-content: center;
}
.previa-caixa {
    background: #fff; border-radius: 14px; overflow: hidden;
    width: min(900px, 100%); max-height: 100%;
    display: flex; flex-direction: column;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}
.previa-topo {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-bottom: 1px solid #e6ebf2;
}
.previa-nome {
    font-size: 14px; font-weight: 600; color: #002362;
    flex: 1; word-break: break-all;
}
.previa-topo .previa-fechar {
    background: none; border: none; font-size: 26px; line-height: 1;
    color: #5a6673; cursor: pointer; padding: 0 4px;
}
.previa-topo .previa-fechar:hover { color: #002362; }
.previa-corpo {
    flex: 1; min-height: 0; overflow: auto; background: #f2f4f8;
    display: flex; align-items: center; justify-content: center;
}
.previa-corpo img { max-width: 100%; max-height: 72vh; display: block; }
.previa-corpo iframe { width: 100%; height: 72vh; border: none; background: #fff; }
.previa-rodape {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 12px 16px; border-top: 1px solid #e6ebf2;
}
.previa-dica { font-size: 13px; color: #7b8794; flex: 1; }
.previa-rodape .previa-fechar { padding: 8px 20px; font-size: 14px; }

@media (max-width: 560px) {
    .previa-fundo { padding: 0; }
    .previa-caixa { border-radius: 0; height: 100%; width: 100%; }
    .previa-corpo img { max-height: none; }
    .previa-corpo iframe { height: 100%; }
}

/* BLOCO CONDICIONAL */
.condicional { display: none; }
.condicional.show { display: block; }
.bloco-interno {
    background: #f8f9fa;
    border-left: 4px solid #0032C3;
    border-radius: 12px;
    padding: 18px;
    margin-top: 6px;
}
.bloco-interno h4 { color: #002362; font-size: 15px; margin-bottom: 14px; }

.aviso {
    padding: 15px 18px;
    border-radius: 12px;
    margin: 18px 0;
    font-size: 14px;
    line-height: 1.5;
}
.aviso-info    { background: #d1ecf1; color: #0c5460; border-left: 4px solid #17a2b8; }
.aviso-atencao { background: #fff3cd; color: #7a5b00; border-left: 4px solid #ffc107; }
.aviso-ok      { background: #d4edda; color: #155724; border-left: 4px solid #28a745; }
.aviso-erro    { background: #f8d7da; color: #721c24; border-left: 4px solid #dc3545; }

/* Negrito dentro do aviso é INLINE. Para um título em linha própria,
   use <span class="aviso-titulo">, nunca <strong> solto. */
.aviso strong { font-weight: 700; }
.aviso-titulo { display: block; font-weight: 700; margin-bottom: 5px; }
.aviso ul { margin: 6px 0 0 20px; }
.aviso ul li { margin-bottom: 3px; }

.termo-box {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    max-height: 260px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 18px;
}
.termo-box h4 { color: #002362; margin-bottom: 10px; font-size: 15px; }
.termo-box p { margin-bottom: 10px; }

/* RESUMO */
.resumo-grupo { margin-bottom: 22px; }
.resumo-grupo h4 {
    color: #002362;
    font-size: 15px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e6effb;
}
.resumo-linha { display: flex; padding: 9px 0; border-bottom: 1px solid #f0f0f0; gap: 12px; }
.resumo-linha:last-child { border-bottom: none; }
.resumo-rot { font-weight: 600; color: #333; min-width: 220px; font-size: 14px; }
.resumo-val { color: #666; flex: 1; font-size: 14px; word-break: break-word; }

/* BOTÕES */
.acoes { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-primario { background: linear-gradient(135deg, #0032C3 0%, #002362 100%); color: #fff; flex: 1; }
.btn-primario:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0, 50, 195, 0.3); }
.btn-secundario { background: #fff; color: #002362; border: 2px solid #e0e0e0; }
.btn-secundario:hover { border-color: #0032C3; transform: translateY(-2px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

/* CARREGANDO */
.loading { display: none; text-align: center; padding: 40px; }
.loading.show { display: block; }
.spinner {
    width: 50px; height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #0032C3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* PROTOCOLO */
.protocolo-box { text-align: center; padding: 10px 0 6px; }
.protocolo-box .rotulo { font-size: 14px; color: #5c6b82; margin-bottom: 8px; }
.protocolo-box .codigo {
    font-family: 'Consolas', monospace;
    font-size: clamp(22px, 6vw, 34px);
    font-weight: 800;
    color: #002362;
    letter-spacing: 2px;
    background: #f2f6fc;
    border: 2px dashed #0032C3;
    border-radius: 12px;
    padding: 16px;
    display: inline-block;
    word-break: break-all;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: #0032C3;
}
.badge-verde   { background: #28a745; }
.badge-amarelo { background: #d39e00; }
.badge-cinza   { background: #6c757d; }
.badge-vermelho{ background: #dc3545; }

/* LOGIN COM GOOGLE */
.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 24px;
    background: #fff;
    color: #3c4043;
    border: 2px solid #dadce0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.btn-google:hover { background: #f8f9fa; border-color: #c6cacd; box-shadow: 0 2px 8px rgba(60,64,67,0.15); }
.btn-google svg { flex-shrink: 0; }

/* BARRA DA SESSÃO (admin) */
.sessao-barra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 22px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    font-size: 14px;
    color: #23303f;
}
.sessao-barra strong { color: #002362; margin-right: 8px; }
.sessao-barra small { color: #7b8794; }

/* MENU DO ADMIN */
.admin-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.admin-nav a {
    flex: 1 1 150px;
    padding: 12px 16px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: #5c6b82;
    border: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}
.admin-nav a:hover { background: #f2f6fc; color: #002362; }
.admin-nav a.ativo {
    background: linear-gradient(135deg, #0032C3 0%, #002362 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 50, 195, 0.22);
}

/* CARTÕES DE NÚMERO (admin) */
.numeros {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
    gap: 14px;
    margin-bottom: 26px;
}
.numero-box {
    background: #fff;
    border: 2px solid #e6effb;
    border-radius: 12px;
    padding: 18px 16px;
    text-align: center;
}
.numero-box .valor { font-size: clamp(24px, 5vw, 32px); font-weight: 800; color: #002362; line-height: 1.1; }
.numero-box .rotulo { font-size: 13px; color: #5c6b82; margin-top: 6px; }
.numero-box.destaque { border-color: #0032C3; background: #f2f6fc; }

/* ATALHOS DO PAINEL */
.atalhos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 18px; }
.atalho {
    display: block;
    background: #fff;
    border: 2px solid #e6effb;
    border-radius: 14px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}
.atalho:hover { border-color: #0032C3; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 50, 195, 0.14); }
.atalho .icone { font-size: 30px; display: block; margin-bottom: 10px; }
.atalho .titulo { font-size: 17px; font-weight: 700; color: #002362; margin-bottom: 6px; }
.atalho .desc { font-size: 13.5px; color: #5c6b82; line-height: 1.5; }

/* LINHA DE TÍTULO DE LISTA NA TABELA */
tr.grupo-lista td {
    background: #f2f6fc;
    font-weight: 700;
    color: #002362;
    padding: 13px 10px;
    border-top: 2px solid #d7e3f7;
}
tr.grupo-lista .contagem { font-weight: 400; color: #5c6b82; font-size: 12.5px; }

/* BOTÃO PEQUENO NA TABELA */
.btn-mini {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    background: #fff;
    color: #002362;
    border: 2px solid #d7e3f7;
    white-space: nowrap;
    transition: all 0.2s;
}
.btn-mini:hover { border-color: #0032C3; background: #f2f6fc; }
.btn-mini.destaque { background: linear-gradient(135deg, #0032C3 0%, #002362 100%); color: #fff; border-color: #002362; }
.btn-mini.destaque:hover { opacity: 0.92; }

/* HISTÓRICO DE CHAMAMENTO */
.linha-tempo { list-style: none; margin: 0; padding: 0; }
.linha-tempo li {
    position: relative;
    padding: 0 0 20px 28px;
    border-left: 2px solid #e6effb;
}
.linha-tempo li:last-child { border-left-color: transparent; padding-bottom: 0; }
.linha-tempo li::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #0032C3;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #e6effb;
}
.linha-tempo .quando { font-size: 12.5px; color: #7b8794; }
.linha-tempo .oque { font-weight: 600; color: #23303f; margin: 2px 0; }
.linha-tempo .quem { font-size: 12.5px; color: #7b8794; }
.linha-tempo .obs { font-size: 13px; color: #5c6b82; margin-top: 4px; font-style: italic; }

/* TABELA (admin) */
.tabela-wrap { overflow-x: auto; border-radius: 12px; border: 2px solid #e0e0e0; }
table.grade { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 900px; }
table.grade thead th {
    background: #002362;
    color: #fff;
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}
table.grade tbody td { padding: 10px; border-bottom: 1px solid #f0f0f0; vertical-align: top; }
table.grade tbody tr:nth-child(even) { background: #fafbfd; }
table.grade tbody tr:hover { background: #f2f6fc; }
table.grade .num { text-align: center; font-weight: 700; color: #002362; }

.filtros { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 20px; }
.filtros .field { flex: 1 1 200px; }

.empty-state { text-align: center; padding: 40px 20px; color: #999; }

@media (max-width: 599px) {
    .gov-topbar-inner { justify-content: center; }
    .brand-name { text-align: center; }
    .resumo-linha { flex-direction: column; gap: 3px; }
    .resumo-rot { min-width: auto; }
    .acoes .btn { width: 100%; flex: 1 1 100%; }
}

/* Tradução do termo: acompanha o quadro em português, com marca própria
   para ficar claro que é versão de apoio, não o documento que vale. */
.termo-traducao {
    margin-top: 14px;
    border-left: 4px solid #0047BB;
    background: #f7f9fd;
}
.termo-aviso-idioma {
    font-size: 13px;
    color: #5a6673;
    font-style: italic;
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dde4ee;
}

@media print {
    .gov-topbar, .gov-footer, .acoes, .steps-nav, .progress-track, .filtros,
    .sessao-barra, .nao-imprimir { display: none !important; }
    body { background: #fff; }
    .card { box-shadow: none; border: 1px solid #ccc; }
}
