/* ==========================================================================
   TEMPO DE SEMEAR — Sistema Visual Compartilhado
   SAGRIMA / Governo do Maranhão
   --------------------------------------------------------------------------
   Inclua este arquivo em todas as páginas do sistema:
   <link rel="stylesheet" href="assets/tempo-semear.css">
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,500;0,9..144,700;0,9..144,900;1,9..144,400&family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* ============== DESIGN TOKENS ============== */
:root {
    --verde-mata: #1f3d2b;
    --verde-folha: #2f5d3a;
    --verde-claro: #6ea05a;
    --dourado: #d4a24c;
    --dourado-claro: #f4c97a;
    --terracota: #b15533;
    --terracota-suave: #d68a6e;
    --creme: #f6efdf;
    --creme-suave: #faf5e8;
    --carvao: #1a1d1a;
    --texto-suave: #5a5a55;
    --linha: rgba(31, 61, 43, 0.1);

    --serif: "Fraunces", Georgia, serif;
    --sans:  "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;

    --raio-pequeno: 8px;
    --raio-medio: 14px;
    --raio-grande: 20px;
    --sombra-suave: 0 4px 14px rgba(31, 61, 43, 0.06);
    --sombra-media: 0 10px 28px rgba(31, 61, 43, 0.10);
    --sombra-forte: 0 18px 40px rgba(31, 61, 43, 0.18);
}

/* ============== RESET ============== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--sans);
    background: var(--creme-suave);
    color: var(--carvao);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ============== TIPOGRAFIA ============== */
h1, h2, h3, h4, h5 {
    font-family: var(--serif);
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.15;
    margin: 0 0 0.5rem;
    color: var(--verde-mata);
}
.btn-acesso h3 {
    color: var(--dourado-claro);
}
h1 em, h2 em, h3 em { font-style: italic; color: var(--terracota); }

.eyebrow {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--terracota);
    margin-bottom: 0.85rem;
}
.eyebrow.dourado { color: var(--dourado); }
.eyebrow.creme { color: var(--dourado-claro); }

a { color: var(--verde-folha); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--terracota); }

/* ============== HEADER COMPARTILHADO ============== */
.app-header {
    background: linear-gradient(135deg, var(--verde-mata) 0%, var(--verde-folha) 100%);
    color: var(--creme);
    padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
    position: relative;
    overflow: hidden;
}
.app-header::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--dourado-claro), transparent);
}
.app-header::after {
    content: "";
    position: absolute;
    bottom: -120px; right: -40px;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(244, 201, 122, 0.18) 0%, transparent 65%);
    pointer-events: none;
}
.app-header-conteudo {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}
.app-marca {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.app-marca-icone {
    width: 42px; height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--dourado), var(--terracota));
    display: flex; align-items: center; justify-content: center;
    color: var(--carvao);
    flex-shrink: 0;
}
.app-marca-icone svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }
.app-marca-texto strong {
    display: block;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: 1.25rem;
    color: var(--creme);
}
.app-marca-texto strong em { color: var(--dourado-claro); font-style: italic; font-weight: 700; }
.app-marca-texto span {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.75;
    margin-top: 2px;
}
.app-header-acoes {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.app-header-info {
    font-size: 0.85rem;
    opacity: 0.85;
    padding-right: 0.75rem;
    border-right: 1px solid rgba(244, 201, 122, 0.3);
}
.app-header-info strong { color: var(--dourado-claro); font-weight: 600; }

/* ============== BOTÕES ============== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    font-family: var(--sans);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border: none;
    border-radius: var(--raio-pequeno);
    cursor: pointer;
    text-decoration: none;
    transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, background .25s ease, color .25s ease;
    line-height: 1.2;
}
.btn:active { transform: translateY(1px); }

.btn-primario {
    background: linear-gradient(135deg, var(--verde-folha), var(--verde-mata));
    color: var(--creme);
    box-shadow: 0 6px 18px rgba(31, 61, 43, 0.25);
}
.btn-primario:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(31, 61, 43, 0.35); color: var(--creme); }

.btn-dourado {
    background: linear-gradient(135deg, var(--dourado), var(--terracota));
    color: var(--carvao);
    box-shadow: 0 6px 18px rgba(212, 162, 76, 0.30);
}
.btn-dourado:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(212, 162, 76, 0.40); color: var(--carvao); }

.btn-ghost {
    background: transparent;
    color: var(--creme);
    border: 1px solid rgba(244, 201, 122, 0.45);
}
.btn-ghost:hover { background: rgba(244, 201, 122, 0.12); color: var(--dourado-claro); }

.btn-outline {
    background: transparent;
    color: var(--verde-folha);
    border: 1.5px solid var(--verde-folha);
}
.btn-outline:hover { background: var(--verde-folha); color: var(--creme); }

.btn-perigo {
    background: var(--terracota);
    color: var(--creme);
    box-shadow: 0 4px 12px rgba(177, 85, 51, 0.25);
}
.btn-perigo:hover { background: #9a4a2c; color: var(--creme); }

.btn-pequeno { padding: 0.45rem 0.9rem; font-size: 0.78rem; border-radius: 6px; }
.btn-grande  { padding: 1rem 2rem; font-size: 1rem; }
.btn-bloco   { width: 100%; }

/* ============== ALERTAS ============== */
.alerta {
    padding: 1rem 1.25rem;
    border-radius: var(--raio-medio);
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
    border-left: 4px solid;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.5;
}
.alerta-sucesso { background: rgba(110, 160, 90, 0.12); border-color: var(--verde-claro); color: var(--verde-mata); }
.alerta-erro    { background: rgba(177, 85, 51, 0.10);  border-color: var(--terracota);  color: #7a3520; }
.alerta-aviso   { background: rgba(212, 162, 76, 0.15); border-color: var(--dourado);    color: #6e5320; }
.alerta-info    { background: rgba(47, 93, 58, 0.08);   border-color: var(--verde-folha); color: var(--verde-mata); }
.alerta svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ============== FORMULÁRIOS ============== */
.campo { margin-bottom: 1.25rem; }
.campo-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--verde-mata);
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}
.campo-label .obrigatorio { color: var(--terracota); margin-left: 2px; }

.campo-input,
.campo-select,
.campo-textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: var(--sans);
    font-size: 0.95rem;
    color: var(--carvao);
    background: white;
    border: 1.5px solid var(--linha);
    border-radius: var(--raio-pequeno);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    line-height: 1.4;
}
.campo-input:hover,
.campo-select:hover,
.campo-textarea:hover { border-color: rgba(31, 61, 43, 0.25); }
.campo-input:focus,
.campo-select:focus,
.campo-textarea:focus {
    outline: none;
    border-color: var(--verde-folha);
    box-shadow: 0 0 0 4px rgba(47, 93, 58, 0.10);
    background: white;
}
.campo-input::placeholder { color: rgba(26, 29, 26, 0.35); }
.campo-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%231f3d2b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}
.campo-ajuda { font-size: 0.78rem; color: var(--texto-suave); margin-top: 0.35rem; }
.campo-erro  { font-size: 0.8rem; color: var(--terracota); margin-top: 0.35rem; font-weight: 600; }

/* ============== CARTÕES ============== */
.cartao {
    background: white;
    border-radius: var(--raio-medio);
    padding: 1.75rem;
    box-shadow: var(--sombra-suave);
    border: 1px solid var(--linha);
}
.cartao-titulo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--linha);
}
.cartao-titulo h2,
.cartao-titulo h3 { margin: 0; }

/* ============== TABELAS ============== */
.tabela-wrapper {
    background: white;
    border-radius: var(--raio-medio);
    overflow: hidden;
    box-shadow: var(--sombra-suave);
    border: 1px solid var(--linha);
}
.tabela-scroll { overflow-x: auto; }
.tabela {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.tabela thead th {
    background: var(--verde-mata);
    color: var(--creme);
    text-align: left;
    padding: 1rem 1.2rem;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}
.tabela thead th:first-child { padding-left: 1.5rem; }
.tabela thead th:last-child  { padding-right: 1.5rem; }
.tabela tbody td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--linha);
    vertical-align: middle;
}
.tabela tbody td:first-child { padding-left: 1.5rem; }
.tabela tbody td:last-child  { padding-right: 1.5rem; }
.tabela tbody tr { transition: background .15s ease; }
.tabela tbody tr:hover { background: rgba(244, 201, 122, 0.06); }
.tabela tbody tr:last-child td { border-bottom: none; }
.tabela-vazia { text-align: center; padding: 3rem 1rem; color: var(--texto-suave); }

/* ============== BADGES DE STATUS ============== */
.badge {
    display: inline-block;
    padding: 0.32rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    line-height: 1.2;
    white-space: nowrap;
}
.badge-rascunho   { background: rgba(90, 90, 85, 0.15);   color: #4a4a45; }
.badge-enviado    { background: rgba(47, 93, 58, 0.15);   color: var(--verde-mata); }
.badge-em_analise { background: rgba(212, 162, 76, 0.18); color: #6e5320; }
.badge-aprovado   { background: rgba(110, 160, 90, 0.18); color: var(--verde-mata); }
.badge-rejeitado  { background: rgba(177, 85, 51, 0.15);  color: #7a3520; }

/* ============== PAGINAÇÃO ============== */
.paginacao {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}
.paginacao a, .paginacao span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.75rem;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--raio-pequeno);
    background: white;
    color: var(--verde-mata);
    border: 1px solid var(--linha);
    text-decoration: none;
    transition: all .2s ease;
}
.paginacao a:hover { background: var(--verde-folha); color: var(--creme); border-color: var(--verde-folha); }
.paginacao .ativo {
    background: linear-gradient(135deg, var(--verde-folha), var(--verde-mata));
    color: var(--creme);
    border-color: var(--verde-folha);
}
.paginacao .desabilitado { opacity: 0.4; pointer-events: none; }

/* ============== AUTH LAYOUT (login / cadastro) ============== */
.auth-tela {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
}
.auth-marca {
    background:
        radial-gradient(ellipse at 20% 10%, rgba(212, 162, 76, 0.20) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 90%, rgba(110, 160, 90, 0.25) 0%, transparent 55%),
        linear-gradient(135deg, var(--verde-mata) 0%, var(--verde-folha) 60%, #294b30 100%);
    color: var(--creme);
    padding: 3rem clamp(2rem, 5vw, 4rem);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.auth-marca::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent 0 35px, rgba(255,255,255,0.015) 35px 36px),
        repeating-linear-gradient(-45deg, transparent 0 35px, rgba(255,255,255,0.015) 35px 36px);
    pointer-events: none;
}
.auth-marca::after {
    content: "";
    position: absolute;
    bottom: -25%; right: -15%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(244, 201, 122, 0.18) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}
.auth-marca-topo, .auth-marca-meio, .auth-marca-base {
    position: relative;
    z-index: 2;
}
.auth-titulo {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 0.95;
    letter-spacing: -0.025em;
    color: var(--creme);
    margin-bottom: 1.25rem;
}
.auth-titulo em {
    font-style: italic;
    font-weight: 500;
    background: linear-gradient(135deg, var(--dourado-claro), var(--dourado));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.auth-citacao {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.5;
    opacity: 0.85;
    max-width: 440px;
    border-left: 2px solid var(--dourado-claro);
    padding-left: 1.25rem;
    margin: 0;
}
.auth-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(244, 201, 122, 0.25);
}
.auth-stat span {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 4px;
}
.auth-stat strong {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 500;
    color: var(--dourado-claro);
    display: block;
    line-height: 1;
}

.auth-form-area {
    background: var(--creme-suave);
    padding: 3rem clamp(1.5rem, 4vw, 3.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-form {
    width: 100%;
    max-width: 440px;
}
.auth-form .eyebrow { color: var(--terracota); }
.auth-form h2 {
    font-size: 2.1rem;
    margin-bottom: 0.5rem;
}
.auth-form .lead {
    color: var(--texto-suave);
    margin-bottom: 2rem;
    font-size: 0.96rem;
}
.auth-form .ajuda-link {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--texto-suave);
}
.auth-form .ajuda-link a { font-weight: 600; }

/* ============== PAINEL DO BENEFICIÁRIO ============== */
.painel-conteudo {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem clamp(1rem, 4vw, 2.5rem);
}

.painel-saudacao {
    background: linear-gradient(135deg, var(--verde-mata) 0%, var(--verde-folha) 100%);
    color: var(--creme);
    border-radius: var(--raio-grande);
    padding: 2.5rem clamp(1.5rem, 4vw, 3rem);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}
.painel-saudacao::before {
    content: "";
    position: absolute;
    top: -50px; right: -50px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(244, 201, 122, 0.18) 0%, transparent 65%);
    pointer-events: none;
}
.painel-saudacao .eyebrow { color: var(--dourado-claro); }
.painel-saudacao h1 {
    font-weight: 300;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    color: var(--creme);
    margin-bottom: 0.5rem;
    line-height: 1.1;
    position: relative; z-index: 2;
}
.painel-saudacao h1 em {
    font-weight: 500;
    color: var(--dourado-claro);
}
.painel-saudacao .descricao {
    opacity: 0.85;
    max-width: 600px;
    line-height: 1.55;
    position: relative; z-index: 2;
}

.painel-status {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(244, 201, 122, 0.25);
    position: relative; z-index: 2;
}
.painel-status-item span {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 4px;
}
.painel-status-item strong {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--dourado-claro);
}

/* Barra de progresso do formulário */
.barra-progresso {
    background: white;
    border-radius: var(--raio-medio);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--sombra-suave);
    margin-bottom: 1.5rem;
    border: 1px solid var(--linha);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.95);
}
.barra-progresso-topo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
}
.barra-progresso-topo strong { color: var(--verde-mata); font-weight: 600; }
.barra-progresso-topo .percentual {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--terracota);
    font-weight: 500;
}
.barra-progresso-trilha {
    height: 6px;
    background: rgba(31, 61, 43, 0.08);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}
.barra-progresso-bola {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    background: linear-gradient(90deg, var(--verde-folha), var(--dourado));
    border-radius: 999px;
    transition: width .5s cubic-bezier(.2,.8,.2,1);
}

/* Seções do formulário */
.secao {
    background: white;
    border-radius: var(--raio-medio);
    margin-bottom: 1.25rem;
    box-shadow: var(--sombra-suave);
    border: 1px solid var(--linha);
    overflow: hidden;
    transition: box-shadow .3s ease;
}
.secao:hover { box-shadow: var(--sombra-media); }
.secao-cabecalho {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.4rem 1.75rem;
    background: linear-gradient(135deg, rgba(47, 93, 58, 0.04), rgba(212, 162, 76, 0.04));
    border-bottom: 1px solid var(--linha);
}
.secao-numero {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--verde-folha), var(--verde-mata));
    color: var(--dourado-claro);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--serif);
    font-weight: 500;
    font-size: 1.15rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(31, 61, 43, 0.18);
}
.secao-cabecalho h3 {
    font-size: 1.2rem;
    margin: 0;
    line-height: 1.2;
}
.secao-cabecalho p {
    font-size: 0.82rem;
    color: var(--texto-suave);
    margin: 2px 0 0;
    line-height: 1.3;
}
.secao-corpo { padding: 1.75rem; }

/* Grade flexível para campos */
.grid-campos {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}
.col-12 { grid-column: span 12; }
.col-6  { grid-column: span 6; }
.col-4  { grid-column: span 4; }
.col-3  { grid-column: span 3; }
.col-2  { grid-column: span 2; }
@media (max-width: 700px) {
    .col-6, .col-4, .col-3, .col-2 { grid-column: span 12; }
}

/* Campo de upload */
.upload-area {
    position: relative;
    display: block;
}
.upload-area input[type="file"] {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); border: 0;
}
.upload-rotulo {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: rgba(244, 201, 122, 0.08);
    border: 2px dashed rgba(212, 162, 76, 0.45);
    border-radius: var(--raio-pequeno);
    cursor: pointer;
    transition: all .25s ease;
    line-height: 1.3;
}
.upload-rotulo:hover {
    border-color: var(--terracota);
    background: rgba(212, 162, 76, 0.15);
    transform: translateY(-1px);
}
.upload-icone {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: white;
    display: flex; align-items: center; justify-content: center;
    color: var(--terracota);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(177, 85, 51, 0.15);
}
.upload-icone svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.upload-texto strong {
    display: block;
    color: var(--verde-mata);
    font-size: 0.9rem;
    font-weight: 600;
}
.upload-texto span {
    display: block;
    color: var(--texto-suave);
    font-size: 0.78rem;
    margin-top: 1px;
}
.upload-area.tem-arquivo .upload-rotulo {
    border-style: solid;
    border-color: var(--verde-claro);
    background: rgba(110, 160, 90, 0.08);
}
.upload-area.tem-arquivo .upload-icone {
    color: var(--verde-mata);
    background: rgba(110, 160, 90, 0.18);
    box-shadow: 0 2px 8px rgba(47, 93, 58, 0.15);
}
.arquivo-enviado {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.6rem;
    padding: 0.55rem 0.8rem;
    background: rgba(110, 160, 90, 0.1);
    border-radius: 6px;
    font-size: 0.82rem;
    color: var(--verde-mata);
}
.arquivo-enviado svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; flex-shrink: 0; }
.arquivo-enviado a { color: var(--verde-mata); font-weight: 600; text-decoration: underline; }
.arquivo-enviado a:hover { color: var(--terracota); }

/* Barra de ações finais */
.acoes-finais {
    background: white;
    border-radius: var(--raio-medio);
    padding: 1.75rem;
    box-shadow: var(--sombra-suave);
    border: 1px solid var(--linha);
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.acoes-finais .botoes {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.acoes-finais .nota {
    text-align: right;
    font-size: 0.82rem;
    color: var(--texto-suave);
    line-height: 1.5;
}

/* Para campos readonly/disabled (cadastro já enviado) */
.campo-input[readonly], .campo-select[disabled], .campo-textarea[readonly] {
    background: rgba(31, 61, 43, 0.04);
    color: var(--texto-suave);
    cursor: not-allowed;
}

/* Filtros do dashboard */
.filtros-card {
    background: white;
    border-radius: var(--raio-medio);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--sombra-suave);
    border: 1px solid var(--linha);
}
.filtros-card form {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr auto auto;
    gap: 1rem;
    align-items: end;
}
@media (max-width: 850px) {
    .filtros-card form { grid-template-columns: 1fr 1fr; }
    .filtros-card form .filtros-acoes { grid-column: 1 / -1; display: flex; gap: 0.5rem; }
}

/* ============== BOTÃO VOLTAR (login/cadastro) ============== */
.voltar-inicio {
    position: absolute;
    top: auto;
    left: 35rem;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem 0.55rem 0.85rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(244, 201, 122, 0.35);
    border-radius: 999px;
    color: var(--creme);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    backdrop-filter: blur(8px);
    transition: all .25s ease;
}
.voltar-inicio:hover {
    background: rgba(244, 201, 122, 0.15);
    border-color: var(--dourado-claro);
    color: var(--dourado-claro);
    transform: translateX(-3px);
}
.voltar-inicio svg {
    width: 14px; height: 14px;
    stroke: currentColor; fill: none;
    stroke-width: 2.5;
    stroke-linecap: round; stroke-linejoin: round;
    transition: transform .25s ease;
}
.voltar-inicio:hover svg { transform: translateX(-2px); }

/* Em mobile, vira um botão menor abaixo do header da marca */
@media (max-width: 900px) {
    .voltar-inicio {
        position: relative;
        top: 0;
        left: 0;
        margin-bottom: 1.5rem;
        align-self: flex-start;
    }
}

/* ============== ADMIN ============== */
/* Header admin: tom mais sóbrio para diferenciar do beneficiário */
.app-header.app-header--admin {
    background: linear-gradient(135deg, var(--carvao) 0%, var(--verde-mata) 100%);
}
.app-header--admin .app-marca-icone {
    background: linear-gradient(135deg, var(--terracota), #7a3520);
    color: var(--creme);
}

/* Selo de perfil */
.selo-perfil {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-left: 0.3rem;
}
.selo-perfil--admin {
    background: rgba(177, 85, 51, 0.22);
    color: var(--dourado-claro);
    border: 1px solid rgba(244, 201, 122, 0.35);
}
.selo-perfil--supervisor {
    background: rgba(110, 160, 90, 0.22);
    color: var(--dourado-claro);
    border: 1px solid rgba(244, 201, 122, 0.35);
}

/* Container interno admin */
.admin-conteudo {
    max-width: 1300px;
    margin: 0 auto;
    padding: 2rem clamp(1rem, 3vw, 2.5rem);
}

/* Cabeçalho de página admin (título + botão de ação) */
.pagina-cabecalho {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--linha);
}
.pagina-cabecalho h1 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 400;
    margin: 0;
}
.pagina-cabecalho h1 em { font-style: italic; color: var(--terracota); }
.pagina-cabecalho .subtitulo {
    color: var(--texto-suave);
    font-size: 0.92rem;
    margin-top: 4px;
}

/* Grid de KPIs simples (para futuro dashboard) */
.kpis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.kpi {
    background: white;
    border-radius: var(--raio-medio);
    padding: 1.25rem 1.4rem;
    border: 1px solid var(--linha);
    box-shadow: var(--sombra-suave);
    position: relative;
    overflow: hidden;
}
.kpi::before {
    content: ""; position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--verde-folha), var(--dourado));
}
.kpi-rotulo {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--texto-suave);
    font-weight: 700;
}
.kpi-valor {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 500;
    color: var(--verde-mata);
    line-height: 1;
    margin-top: 0.5rem;
}

/* Grupo de ações na linha da tabela */
.acoes-linha {
    display: inline-flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

/* Login admin (variante escura) */
.auth-marca--admin {
    background:
        radial-gradient(ellipse at 80% 10%, rgba(177, 85, 51, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 90%, rgba(47, 93, 58, 0.30) 0%, transparent 55%),
        linear-gradient(135deg, #0f1612 0%, var(--carvao) 60%, var(--verde-mata) 100%);
}

/* Card de detalhe (ver_cadastro / editar) */
.detalhe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem 2rem;
    padding: 0.5rem 0;
}
.detalhe-item dt {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--texto-suave);
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.detalhe-item dd {
    font-size: 0.96rem;
    color: var(--carvao);
    margin: 0 0 0.85rem;
    line-height: 1.4;
    word-wrap: break-word;
}
.detalhe-item dd.vazio { color: rgba(26, 29, 26, 0.35); font-style: italic; }

/* ============== SENHA TEMPORÁRIA (esqueci_senha) ============== */
.senha-temp-card {
    background: linear-gradient(135deg, var(--verde-mata) 0%, var(--verde-folha) 100%);
    border-radius: var(--raio-medio);
    padding: 2rem 1.5rem;
    margin: 1.25rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--sombra-media);
}
.senha-temp-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--dourado), var(--terracota), var(--dourado));
}
.senha-temp-card::after {
    content: "";
    position: absolute;
    bottom: -60px; right: -60px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(244, 201, 122, 0.15) 0%, transparent 65%);
    pointer-events: none;
}
.senha-temp-rotulo {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--dourado-claro);
    margin-bottom: 0.85rem;
    position: relative; z-index: 2;
}
.senha-temp-valor {
    font-family: "SF Mono", "JetBrains Mono", "Cascadia Code", Consolas, monospace;
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--creme);
    letter-spacing: 0.06em;
    word-break: break-all;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--raio-pequeno);
    border: 1px dashed rgba(244, 201, 122, 0.4);
    display: inline-block;
    margin-bottom: 1rem;
    position: relative; z-index: 2;
}
.btn-copiar-senha {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(244, 201, 122, 0.15);
    border: 1px solid rgba(244, 201, 122, 0.45);
    color: var(--dourado-claro);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s ease;
    position: relative; z-index: 2;
}
.btn-copiar-senha:hover {
    background: rgba(244, 201, 122, 0.25);
    color: var(--creme);
}
.btn-copiar-senha.copiado {
    background: rgba(110, 160, 90, 0.3);
    border-color: var(--verde-claro);
    color: var(--creme);
}
.btn-copiar-senha svg {
    width: 13px; height: 13px;
    stroke: currentColor; fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Instruções numeradas (passos) */
.passos {
    background: rgba(31, 61, 43, 0.04);
    border-radius: var(--raio-medio);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--linha);
}
.passos-titulo {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--terracota);
    margin-bottom: 0.85rem;
}
.passos ol {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: passo;
}
.passos li {
    counter-increment: passo;
    position: relative;
    padding: 0.4rem 0 0.4rem 2.2rem;
    font-size: 0.88rem;
    color: var(--carvao);
    line-height: 1.5;
}
.passos li::before {
    content: counter(passo);
    position: absolute;
    left: 0; top: 0.35rem;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--verde-folha), var(--verde-mata));
    color: var(--dourado-claro);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 0.78rem;
}

/* ============== HOME PÚBLICA (index_publico) ============== */
/* Header da home com link de login discreto */
.home-header {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 10;
    padding: 1.75rem clamp(1.5rem, 5vw, 5rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.home-header-marca {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--creme);
}
.home-header-marca .icone-mini {
    width: 38px; height: 38px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--dourado), var(--terracota));
    display: flex; align-items: center; justify-content: center;
    color: var(--carvao);
    flex-shrink: 0;
}
.home-header-marca .icone-mini svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 2; }
.home-header-marca .label {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.1;
}
.home-header-marca .label em { color: var(--dourado-claro); font-style: italic; font-weight: 700; }
.home-header-marca .sub {
    display: block;
    font-family: var(--sans);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.7;
    margin-top: 1px;
    font-style: normal;
    font-weight: 600;
}

.home-header-login {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem 0.6rem 1.2rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(244,201,122,0.4);
    border-radius: 999px;
    color: var(--creme);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
    transition: all .25s ease;
}
.home-header-login:hover {
    background: rgba(244,201,122,0.18);
    border-color: var(--dourado-claro);
    color: var(--dourado-claro);
    transform: translateY(-1px);
}
.home-header-login svg {
    width: 14px; height: 14px;
    stroke: currentColor; fill: none;
    stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
    transition: transform .25s ease;
}
.home-header-login:hover svg { transform: translateX(2px); }

@media (max-width: 600px) {
    .home-header { padding: 1.25rem 1rem; }
    .home-header-marca .label { font-size: 0.92rem; }
    .home-header-marca .sub { display: none; }
    .home-header-login { padding: 0.5rem 1rem; font-size: 0.78rem; }
}

/* ============== PÁGINA DE LEGISLAÇÃO ============== */
.legislacao-hero {
    background:
        radial-gradient(ellipse at 25% 15%, rgba(212, 162, 76, 0.20) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 80%, rgba(110, 160, 90, 0.25) 0%, transparent 55%),
        linear-gradient(135deg, var(--verde-mata) 0%, var(--verde-folha) 60%, #294b30 100%);
    color: var(--creme);
    padding: 7rem clamp(1.5rem, 5vw, 5rem) 4rem;
    position: relative;
    overflow: hidden;
}
.legislacao-hero::before {
    content:"";
    position: absolute; inset: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent 0 35px, rgba(255,255,255,0.015) 35px 36px),
        repeating-linear-gradient(-45deg, transparent 0 35px, rgba(255,255,255,0.015) 35px 36px);
    pointer-events: none;
}
.legislacao-hero-conteudo {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.legislacao-hero h1 {
    font-family: var(--serif);
    font-weight: 300;
    color: var(--creme);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 0.95;
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
}
.legislacao-hero h1 em {
    font-style: italic;
    font-weight: 500;
    color: var(--dourado-claro);
}
.legislacao-hero p {
    font-size: 1.05rem;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 660px;
}

.legislacao-conteudo {
    max-width: 1100px;
    margin: -3rem auto 0;
    padding: 0 clamp(1.5rem, 5vw, 5rem) 5rem;
    position: relative;
    z-index: 3;
}

.lei-grupo {
    margin-bottom: 3rem;
}
.lei-grupo-titulo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--dourado);
}
.lei-grupo-titulo .esfera {
    font-family: var(--sans);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    background: rgba(31, 61, 43, 0.08);
    color: var(--verde-mata);
}
.lei-grupo-titulo .esfera--federal {
    background: rgba(177, 85, 51, 0.12);
    color: var(--terracota);
}
.lei-grupo-titulo h2 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 1.6rem;
    margin: 0;
    color: var(--verde-mata);
    line-height: 1.1;
}
.lei-grupo-titulo h2 em { font-style: italic; color: var(--terracota); }

.lei-card {
    background: white;
    border-radius: var(--raio-medio);
    padding: 1.75rem;
    margin-bottom: 1rem;
    box-shadow: var(--sombra-suave);
    border: 1px solid var(--linha);
    border-left: 4px solid var(--verde-folha);
    transition: transform .3s ease, box-shadow .3s ease, border-left-color .3s ease;
    position: relative;
}
.lei-card:hover {
    transform: translateX(4px);
    box-shadow: var(--sombra-media);
    border-left-color: var(--dourado);
}
.lei-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.lei-card-titulo {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 1.25rem;
    color: var(--verde-mata);
    line-height: 1.2;
    margin: 0;
}
.lei-card-titulo em { font-style: italic; color: var(--terracota); }
.lei-card-data {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: var(--texto-suave);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    padding: 0.3rem 0.7rem;
    background: rgba(31, 61, 43, 0.05);
    border-radius: 6px;
    font-weight: 600;
}
.lei-card p {
    color: var(--texto-suave);
    line-height: 1.6;
    margin: 0 0 1rem;
    font-size: 0.95rem;
}
.lei-card-acoes {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--linha);
}

/* Botão "ver íntegra" externo */
.btn-externo {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(47, 93, 58, 0.08);
    border: 1px solid rgba(47, 93, 58, 0.2);
    border-radius: var(--raio-pequeno);
    color: var(--verde-mata);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all .2s ease;
}
.btn-externo:hover {
    background: var(--verde-folha);
    color: var(--creme);
    border-color: var(--verde-folha);
}
.btn-externo svg {
    width: 13px; height: 13px;
    stroke: currentColor; fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.tag-lei {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    background: rgba(212, 162, 76, 0.15);
    color: #6e5320;
    letter-spacing: 0.02em;
}

/* ============== CADASTRO/LOGIN EMPRESA — variante visual ============== */
/* Diferencia visualmente do beneficiário (verde) com toque mais "corporativo" */
.auth-marca--empresa {
    background:
        radial-gradient(ellipse at 80% 15%, rgba(177, 85, 51, 0.20) 0%, transparent 55%),
        radial-gradient(ellipse at 15% 85%, rgba(212, 162, 76, 0.22) 0%, transparent 55%),
        linear-gradient(135deg, #2a3d2c 0%, var(--verde-mata) 60%, #1a2620 100%);
}

/* ============== FORMULÁRIO DA EMPRESA — geolocalização ============== */
.geo-card {
    background: linear-gradient(135deg, rgba(212, 162, 76, 0.06), rgba(110, 160, 90, 0.04));
    border: 1px solid rgba(212, 162, 76, 0.25);
    border-radius: var(--raio-medio);
    padding: 1.25rem 1.5rem;
}
.geo-card-titulo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    color: var(--verde-mata);
    font-weight: 600;
    font-size: 0.92rem;
}
.geo-card-titulo svg {
    width: 18px; height: 18px;
    color: var(--terracota);
    stroke: currentColor; fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.geo-resultado {
    margin-top: 0.85rem;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: var(--raio-pequeno);
    border: 1px solid rgba(110, 160, 90, 0.4);
    font-size: 0.85rem;
    display: none;
}
.geo-resultado.ativo { display: block; }
.geo-resultado.alerta {
    background: rgba(177, 85, 51, 0.06);
    border-color: rgba(177, 85, 51, 0.3);
    color: #7a3520;
}
.geo-resultado strong { color: var(--verde-mata); }
.geo-resultado.alerta strong { color: #7a3520; }
.geo-resultado-coords {
    font-family: "SF Mono", "JetBrains Mono", Consolas, monospace;
    font-size: 0.8rem;
    color: var(--carvao);
    margin-top: 4px;
}

/* ============== PÁGINA PÚBLICA — HEADER ============== */
.publico-header {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 20;
    padding: 1.5rem clamp(1.5rem, 5vw, 5rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.publico-header .marca-pequena {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--creme);
    font-family: var(--serif);
    font-style: italic;
    font-size: 1rem;
    font-weight: 500;
}
.publico-header .marca-pequena em { color: var(--dourado-claro); font-style: italic; font-weight: 700; }

.publico-login-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    color: var(--creme);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(244, 201, 122, 0.35);
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    transition: all .25s ease;
}
.publico-login-link:hover {
    background: rgba(244, 201, 122, 0.15);
    border-color: var(--dourado-claro);
    color: var(--dourado-claro);
}
.publico-login-link svg {
    width: 14px; height: 14px;
    stroke: currentColor; fill: none; stroke-width: 2.5;
    stroke-linecap: round; stroke-linejoin: round;
    transition: transform .25s ease;
}
.publico-login-link:hover svg { transform: translateX(3px); }

/* ============== PÁGINA DE LEGISLAÇÃO ============== */
.legislacao-hero {
    background:
        radial-gradient(ellipse at 30% 20%, rgba(212, 162, 76, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 80%, rgba(110, 160, 90, 0.22) 0%, transparent 55%),
        linear-gradient(135deg, var(--verde-mata) 0%, var(--verde-folha) 60%, #294b30 100%);
    color: var(--creme);
    padding: 8rem clamp(1.5rem, 5vw, 5rem) 5rem;
    position: relative;
    overflow: hidden;
}
.legislacao-hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent 0 35px, rgba(255,255,255,0.015) 35px 36px),
        repeating-linear-gradient(-45deg, transparent 0 35px, rgba(255,255,255,0.015) 35px 36px);
    pointer-events: none;
}
.legislacao-hero-conteudo {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.legislacao-hero h1 {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1;
    letter-spacing: -0.025em;
    color: var(--creme);
    margin-bottom: 1.25rem;
}
.legislacao-hero h1 em {
    font-style: italic;
    font-weight: 500;
    background: linear-gradient(135deg, var(--dourado-claro), var(--dourado));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.legislacao-hero .lide-legis {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.55;
    opacity: 0.88;
    max-width: 720px;
    margin-bottom: 2rem;
}

.legislacao-conteudo {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem clamp(1.5rem, 5vw, 5rem);
    background: var(--creme-suave);
}

.normativo-grupo {
    margin-bottom: 4rem;
}
.normativo-grupo:last-child { margin-bottom: 0; }
.normativo-grupo-titulo {
    font-family: var(--serif);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 400;
    line-height: 1.05;
    margin-bottom: 0.4rem;
    color: var(--verde-mata);
}
.normativo-grupo-titulo em { font-style: italic; color: var(--terracota); }
.normativo-grupo-descricao {
    color: var(--texto-suave);
    margin-bottom: 2rem;
    max-width: 650px;
    line-height: 1.6;
    font-size: 0.96rem;
}

.normativo-card {
    background: white;
    border-radius: var(--raio-medio);
    padding: 1.75rem 2rem;
    margin-bottom: 1rem;
    box-shadow: var(--sombra-suave);
    border: 1px solid var(--linha);
    border-left: 4px solid var(--dourado);
    transition: transform .25s ease, box-shadow .25s ease, border-left-color .25s ease;
}
.normativo-card:hover {
    transform: translateX(4px);
    box-shadow: var(--sombra-media);
    border-left-color: var(--terracota);
}
.normativo-card-topo {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 0.85rem;
}
.normativo-tipo {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--terracota);
}
.normativo-data {
    font-size: 0.78rem;
    color: var(--texto-suave);
    font-variant-numeric: tabular-nums;
    background: rgba(31, 61, 43, 0.05);
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
}
.normativo-card h3 {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 500;
    margin: 0 0 0.6rem;
    color: var(--verde-mata);
    line-height: 1.25;
}
.normativo-card p {
    color: var(--carvao);
    line-height: 1.6;
    margin: 0 0 1rem;
    font-size: 0.95rem;
}
.normativo-card-rodape {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 0.85rem;
    border-top: 1px dashed var(--linha);
}
.normativo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--verde-folha);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color .2s ease;
}
.normativo-link:hover { color: var(--terracota); }
.normativo-link svg {
    width: 13px; height: 13px;
    stroke: currentColor; fill: none; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
    transition: transform .25s ease;
}
.normativo-link:hover svg { transform: translate(2px, -2px); }
.normativo-tag {
    font-size: 0.72rem;
    color: var(--texto-suave);
    background: rgba(244, 201, 122, 0.12);
    border: 1px solid rgba(212, 162, 76, 0.25);
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* ============== EMPRESAS — VARIANTES ============== */
.auth-marca--empresa {
    background:
        radial-gradient(ellipse at 70% 10%, rgba(212, 162, 76, 0.25) 0%, transparent 55%),
        radial-gradient(ellipse at 30% 90%, rgba(177, 85, 51, 0.20) 0%, transparent 55%),
        linear-gradient(135deg, var(--verde-mata) 0%, #2a4a2f 60%, #1c3a25 100%);
}
.auth-marca--empresa .app-marca-icone {
    background: linear-gradient(135deg, var(--dourado), var(--terracota));
}

/* Selo "empresa credenciada" para o painel */
.painel-saudacao--empresa {
    background: linear-gradient(135deg, #2a4a2f 0%, var(--verde-folha) 60%, #294b30 100%);
}

/* Geolocalização — campo especial */
.geo-area {
    background: rgba(244, 201, 122, 0.06);
    border: 1px solid rgba(212, 162, 76, 0.25);
    border-radius: var(--raio-medio);
    padding: 1.25rem 1.4rem;
}
.geo-instrucoes {
    background: white;
    border-radius: var(--raio-pequeno);
    padding: 0.9rem 1.1rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--terracota);
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--carvao);
}
.geo-instrucoes strong {
    display: block;
    color: var(--terracota);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.35rem;
    font-weight: 700;
}

.geo-coords {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 0.85rem;
}
@media (max-width: 600px) {
    .geo-coords { grid-template-columns: 1fr; }
}

.geo-status {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.85rem;
    padding: 0.6rem 0.9rem;
    border-radius: 6px;
    font-size: 0.82rem;
    line-height: 1.4;
}
.geo-status--ok {
    background: rgba(110, 160, 90, 0.14);
    color: var(--verde-mata);
}
.geo-status--alerta {
    background: rgba(212, 162, 76, 0.18);
    color: #6e5320;
}
.geo-status--erro {
    background: rgba(177, 85, 51, 0.12);
    color: #7a3520;
}
.geo-status svg {
    width: 16px; height: 16px;
    stroke: currentColor; fill: none; stroke-width: 2.5;
    stroke-linecap: round; stroke-linejoin: round;
    flex-shrink: 0;
}

.btn-mapa-mini {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    background: var(--verde-folha);
    color: var(--creme);
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 0.6rem;
    transition: all .2s ease;
}
.btn-mapa-mini:hover { background: var(--verde-mata); color: var(--creme); }
.btn-mapa-mini svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ============== UTIL ============== */
.text-meio { text-align: center; }
.divisor-suave {
    height: 1px;
    background: var(--linha);
    margin: 1.5rem 0;
    border: none;
}
.text-suave { color: var(--texto-suave); }
.flex-justifica-entre {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
/* ---------- 1) Badge novo: descredenciado ---------- */
.badge-descredenciado {
    background: rgba(90, 31, 16, 0.20);
    color: #5a1f10;
    border: 1px solid rgba(90, 31, 16, 0.35);
}

/* ---------- 2) Abas de navegação no header admin ---------- */
/* Permitem alternar entre Beneficiários e Empresas no painel  */
.admin-tabs {
    display: flex;
    gap: 0.25rem;
    margin: 0 1rem;
    padding: 0.25rem;
    background: rgba(0, 0, 0, 0.18);
    border-radius: 999px;
    flex-wrap: nowrap;
}
.admin-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(244, 201, 122, 0.7);   /* dourado-claro com transparência */
    text-decoration: none;
    transition: all .2s ease;
    white-space: nowrap;
}
.admin-tab svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
.admin-tab:hover {
    color: var(--dourado-claro);
    background: rgba(255, 255, 255, 0.06);
}
.admin-tab--ativa {
    background: linear-gradient(135deg, var(--terracota), #7a3520);
    color: var(--creme);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.admin-tab--ativa:hover {
    color: var(--creme);
    background: linear-gradient(135deg, var(--terracota), #7a3520);
}

/* Em telas pequenas, as abas vão para uma linha de baixo */
@media (max-width: 880px) {
    .admin-tabs {
        order: 99;
        margin: 0.75rem 0 0;
        flex: 1 1 100%;
        justify-content: center;
    }
}

/* ============== RESPONSIVO ============== */
@media (max-width: 900px) {
    .auth-tela { grid-template-columns: 1fr; }
    .auth-marca { padding: 2rem 1.5rem; min-height: auto; }
    .auth-marca-meio { display: none; }
    .auth-stats { gap: 1.25rem; }
    .auth-form-area { padding: 2rem 1.5rem; }

    .app-header-info { display: none; }
    .app-marca-texto strong { font-size: 1.05rem; }
}
@media (max-width: 600px) {
    .tabela thead th, .tabela tbody td { padding: 0.75rem 0.85rem; font-size: 0.85rem; }
}

/* ---------- 1) Badge novo: descredenciado ---------- */
.badge-descredenciado {
    background: rgba(90, 31, 16, 0.20);
    color: #5a1f10;
    border: 1px solid rgba(90, 31, 16, 0.35);
}

/* ---------- 2) Abas de navegação no header admin ---------- */
/* Permitem alternar entre Beneficiários e Empresas no painel  */
.admin-tabs {
    display: flex;
    gap: 0.25rem;
    margin: 0 1rem;
    padding: 0.25rem;
    background: rgba(0, 0, 0, 0.18);
    border-radius: 999px;
    flex-wrap: nowrap;
}
.admin-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(244, 201, 122, 0.7);   /* dourado-claro com transparência */
    text-decoration: none;
    transition: all .2s ease;
    white-space: nowrap;
}
.admin-tab svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
.admin-tab:hover {
    color: var(--dourado-claro);
    background: rgba(255, 255, 255, 0.06);
}
.admin-tab--ativa {
    background: linear-gradient(135deg, var(--terracota), #7a3520);
    color: var(--creme);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.admin-tab--ativa:hover {
    color: var(--creme);
    background: linear-gradient(135deg, var(--terracota), #7a3520);
}

/* Em telas pequenas, as abas vão para uma linha de baixo */
@media (max-width: 880px) {
    .admin-tabs {
        order: 99;
        margin: 0.75rem 0 0;
        flex: 1 1 100%;
        justify-content: center;
    }
}
