/* ==========================================================================
   RI Connect — folha de estilos principal
   Baseada no layout de referência (site/base.php). Sem dependências externas.
   ========================================================================== */

@font-face {
    font-family: "Geist";
    src: url("../fontes/Geist-Variable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Geist";
    src: url("../fontes/Geist-Italic-Variable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

:root {
    --azure: #005daa;
    --royal: #17458f;
    --sky: #00a2e0;
    --gold: #febd11;
    --gold-light: #fff8e1;
    --azure-light: #e8f2fb;
    --sky-light: #e0f5fd;
    --text: #1a1a2e;
    --sub: #4a5568;
    --border: #dce8f5;
    --bg: #f4f8fd;
    --white: #ffffff;
    --perigo: #c53030;
    --perigo-light: #fde8e8;
    --sucesso: #2f855a;
    --sucesso-light: #e6f6ec;
    --raio: 10px;
    --sombra: 0 2px 12px rgba(0, 93, 170, 0.1);
    --largura: 1200px;
    --fonte: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* -------------------------------------------------------------- Base */

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

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--fonte);
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    background: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

img { max-width: 100%; display: block; }
a { color: var(--azure); text-decoration: none; }
a:hover { color: var(--royal); }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }

h1, h2, h3 { line-height: 1.2; }

/* -------------------------------------------------------------- Topo */

.topo {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    min-height: 4.7em;
    padding: 0 1em;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}
.topo-logo img { height: 3.4em; width: auto; }

.topo-nav { display: flex; align-items: center; gap: 1em; }

.menu { display: flex; align-items: center; gap: 0.2em; color: var(--sub); font-size: 0.95em; }
.menu a {
    display: block;
    color: var(--sub);
    border-radius: var(--raio);
    padding: 0.5em 1em;
    transition: background-color 0.2s;
}
.menu a:hover, .menu a.ativo { background: rgba(110, 110, 110, 0.12); color: var(--text); }
.menu .menu-destaque a { font-weight: 700; background: var(--azure); color: var(--white); }
.menu .menu-destaque a:hover { background: var(--royal); color: var(--white); }

.idiomas { display: flex; gap: 0.2em; font-size: 0.75em; font-weight: 700; }
.idiomas a { color: var(--sub); padding: 0.3em 0.5em; border-radius: 6px; }
.idiomas a.ativo { background: var(--azure-light); color: var(--azure); }

.topo-menu-botao { display: none; width: 2.6em; height: 2.6em; border-radius: 8px; padding: 0.6em 0.5em; flex-direction: column; justify-content: space-between; }
.topo-menu-botao span { display: block; height: 2px; background: var(--text); border-radius: 2px; }

/* -------------------------------------------------------------- Chamada (home) */

.chamada {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 3em 2em;
    background: linear-gradient(135deg, #518ab9 0%, #17458f 100%);
}
.chamada::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../imagens/fundo_chamada.png") center / cover;
    opacity: 0.5;
}
.chamada > * { position: relative; z-index: 1; }
.chamada h1 { color: #eee; font-size: clamp(1.8em, 4.5vw, 3em); max-width: 70%; margin-bottom: 0.3em; }
.chamada h2 { color: #eee; font-size: clamp(1em, 2vw, 1.3em); max-width: 70%; font-weight: 300; }
.chamada .caixas { display: flex; flex-wrap: wrap; gap: 1em 2.5em; }
.chamada .caixas span { color: #eeeeeeaa; font-size: 0.8em; line-height: 1.3; }
.chamada .caixas b { color: #fff; font-size: 1.8em; }

/* Caixa de pesquisa */
.pesquisa {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    width: 65%;
    background: var(--white);
    padding: 0.5em 0.6em;
    border-radius: 15px;
    margin: 2.5em 0;
}
.pesquisa > img { width: 1.6em; height: 1.6em; flex: none; }
.pesquisa > input {
    flex: 1;
    min-width: 0;
    margin-left: 0.4em;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--sub);
    font-size: 1.2em;
    padding: 0.3em 0;
}
.botao-filtros {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin-left: 1em;
    background: var(--azure);
    color: var(--gold-light);
    font-size: 0.8em;
    font-weight: 700;
    border-radius: var(--raio);
    padding: 0.6em 1.5em;
}
.botao-filtros:hover { background: var(--royal); color: var(--gold-light); }
.botao-filtros img { height: 1.6em; width: auto; }

.pesquisa-interna { width: 100%; margin: 0 0 1.5em; border: 1px solid var(--border); box-shadow: var(--sombra); }

.filtros-avancados {
    flex-basis: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1em;
    padding: 1em 0.4em 0.4em;
    margin-top: 0.6em;
    border-top: 1px solid var(--border);
}
.filtros-avancados .acoes-form { grid-column: 1 / -1; }

/* Sugestões (autocomplete) */
.sugestoes {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 40;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--raio);
    box-shadow: var(--sombra);
    overflow: hidden;
}
.sugestoes a { display: flex; flex-direction: column; padding: 0.6em 1em; color: var(--text); }
.sugestoes a:hover, .sugestoes a.ativo { background: var(--azure-light); }
.sugestoes small { color: var(--sub); }

/* -------------------------------------------------------------- Destaque / cartões de empresa */

.destaque { background: var(--bg); padding: 2em 1em; }
.destaque > h3 {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    color: var(--azure);
    font-size: 1.2em;
    margin-bottom: 1em;
}
.destaque > h3 a { color: var(--sky); font-size: 0.7em; }

.filtros-rapidos { display: flex; flex-wrap: wrap; gap: 0.6em; margin-bottom: 1.5em; }
.filtros-rapidos a {
    display: block;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--sub);
    font-size: 0.8em;
    border-radius: 2em;
    padding: 0.4em 1em;
}
.filtros-rapidos a:hover { background: var(--bg); }
.filtros-rapidos li:first-child a { background: #0c3b6e; border-color: #0c3b6e; color: var(--white); }
.filtros-rapidos li:first-child a:hover { background: var(--azure); border-color: var(--azure); }

.grade-empresas { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1em; }

.cartao-empresa {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--border);
    border-radius: var(--raio);
    padding: 0.9em;
    color: var(--text);
    transition: box-shadow 0.2s, border-color 0.2s;
}
.cartao-empresa:hover { border-color: var(--sky); border-top-color: var(--gold); box-shadow: var(--sombra); color: var(--text); }
.cartao-empresa-logo { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; border-radius: 6px; margin-bottom: 0.6em; background: var(--white); }
.empresa-nome { display: flex; align-items: center; gap: 0.4em; font-weight: 700; }
.empresa-segmento { color: var(--sub); font-size: 0.85em; padding-top: 0.2em; }
.empresa-tags { display: flex; flex-wrap: wrap; gap: 0.3em; padding: 0.6em 0; }
.empresa-tags span, .empresa-tags a {
    background: var(--azure-light);
    color: var(--azure);
    font-size: 0.72em;
    padding: 0.15em 0.9em;
    border-radius: 0.4em;
}
.empresa-tags a:hover { background: var(--azure); color: var(--white); }
.empresa-distrito { margin-top: auto; padding-top: 0.7em; font-size: 0.75em; color: var(--sub); border-top: 1px solid var(--border); }
.selo-cidada { width: 1.8em; height: auto; border-radius: 3px; display: inline-block; }

/* -------------------------------------------------------------- Portal (home) */

.portal { padding: 2em 1em; background: var(--sky-light); }
.portal h2 { font-size: 1.1em; color: var(--azure); margin-bottom: 1em; }
.portal .caixas { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.8em; }
.portal .caixas a {
    display: block;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--raio);
    padding: 1em;
    color: var(--sub);
}
.portal .caixas a:hover { box-shadow: var(--sombra); color: var(--sub); }
.portal .caixas h3 { color: var(--azure); margin-bottom: 0.4em; }
.icone { display: inline-block; padding: 0.5em; border-radius: 0.7em; margin-bottom: 0.5em; }
.fundo-azure { background: var(--azure-light); }
.fundo-sky { background: var(--sky-light); }
.fundo-gold { background: var(--gold-light); }

/* -------------------------------------------------------------- Ações (home) */

.acoes {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    background: var(--azure);
    padding: 1.2em 1em;
}
.acoes > div { display: flex; align-items: center; color: #ffffffaa; font-size: 0.9em; }
.acoes h3 { color: var(--white); font-size: 1.2em; margin-bottom: 0.2em; }
.acoes img {
    width: 3em;
    height: 3em;
    flex: none;
    padding: 0.6em;
    margin-right: 0.8em;
    border-radius: 50%;
    border: 1px solid var(--gold);
    background: #ffffff20;
}
.acoes > a {
    flex: none;
    background: var(--gold);
    color: var(--royal);
    font-weight: 700;
    font-size: 0.8em;
    padding: 0.7em 1em;
    border-radius: 0.5em;
}
.acoes > a:hover { color: var(--royal); filter: brightness(1.05); }

/* -------------------------------------------------------------- Rodapé */

.rodape {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.6em 1em;
    background: var(--royal);
    color: var(--white);
    padding: 1em;
}
.rodape-marca { font-size: 1.2em; font-weight: 700; }
.rodape ul { display: flex; gap: 0.5em; }
.rodape ul a { display: block; color: var(--white); padding: 0.35em 0.7em; border-radius: var(--raio); }
.rodape ul a:hover { background: #ffffff22; color: var(--white); }
.rodape-copy { font-size: 0.75em; opacity: 0.9; }

/* -------------------------------------------------------------- Páginas internas */

.pagina { width: 100%; max-width: var(--largura); margin: 0 auto; padding: 2em 1em 3em; }
.pagina-estreita { max-width: 560px; }
.pagina-media { max-width: 880px; }
.pagina > * + * { margin-top: 1.2em; }

.titulo-pagina { color: var(--azure); font-size: clamp(1.4em, 3vw, 1.9em); display: flex; align-items: center; gap: 0.4em; flex-wrap: wrap; }
.titulo-pagina small { color: var(--sub); font-size: 0.55em; font-weight: 400; }
.titulo-acoes { display: flex; align-items: center; justify-content: space-between; gap: 1em; flex-wrap: wrap; }
.titulo-acoes > div { display: flex; gap: 0.5em; flex-wrap: wrap; }
.subtitulo { color: var(--sub); margin-top: 0.3em; }
.descritivo { color: var(--sub); }
.dica, .campo small { color: var(--sub); font-size: 0.82em; }
.vazio { color: var(--sub); text-align: center; padding: 1.5em 0; }
.centro { text-align: center; }
.centro .botao { margin-top: 1em; }
.texto-corrido { white-space: normal; line-height: 1.65; }
.texto-corrido p + p { margin-top: 0.8em; }

.cartao {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--raio);
    padding: 1.4em;
}
.cartao > h2 { color: var(--azure); font-size: 1.1em; margin-bottom: 0.9em; }
.cartao > * + * { margin-top: 0.8em; }

.grade-2, .grade-3, .grade-4 { display: grid; gap: 1em; }
.grade-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grade-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grade-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.col-2 { grid-column: span 2; }
.col-full { grid-column: 1 / -1; }
.grade-2 > .cartao, .grade-3 > .cartao { margin-top: 0; }
.grade-editor { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1em; align-items: start; }

/* -------------------------------------------------------------- Formulários */

.formulario > * + * { margin-top: 1em; }
.campo { display: flex; flex-direction: column; gap: 0.3em; }
.campo > span { font-size: 0.85em; font-weight: 600; color: var(--sub); }
.campo input, .campo select, .campo textarea,
.item-form-linha input, .item-form-linha select, select[data-campo] {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    padding: 0.6em 0.75em;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.campo input:focus, .campo select:focus, .campo textarea:focus,
.item-form-linha input:focus, .item-form-linha select:focus {
    outline: none;
    border-color: var(--sky);
    box-shadow: 0 0 0 3px var(--sky-light);
}
.campo input:disabled { background: var(--bg); color: var(--sub); }
.campo textarea { resize: vertical; min-height: 6em; }
.campo-check { flex-direction: row; align-items: center; gap: 0.5em; }
.campo-check input { width: auto; }
.campo-botao { justify-content: flex-end; }

.grupo { border: 1px solid var(--border); border-radius: var(--raio); padding: 1em; }
.grupo > legend { padding: 0 0.4em; font-weight: 600; color: var(--azure); }
.grupo > * + * { margin-top: 0.8em; }

.acoes-form { display: flex; align-items: center; gap: 0.8em; flex-wrap: wrap; }
.rodape-form { color: var(--sub); font-size: 0.9em; }
.link { color: var(--sky); font-weight: 600; }
.isca { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Botões */
.botao {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    background: var(--azure);
    color: var(--white);
    font-weight: 700;
    font-size: 0.9em;
    border: 1px solid var(--azure);
    border-radius: var(--raio);
    padding: 0.65em 1.4em;
    transition: background-color 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.botao:hover { background: var(--royal); border-color: var(--royal); color: var(--white); }
.botao-secundario { background: var(--white); color: var(--azure); border-color: var(--border); }
.botao-secundario:hover { background: var(--azure-light); color: var(--azure); border-color: var(--azure-light); }
.botao-perigo { background: var(--white); color: var(--perigo); border-color: var(--perigo-light); }
.botao-perigo:hover { background: var(--perigo); color: var(--white); border-color: var(--perigo); }
.botao-pequeno { font-size: 0.78em; padding: 0.35em 0.8em; }
.botao:disabled, .carregando { opacity: 0.6; cursor: progress; }

/* Editor de itens */
.item-form { padding: 1em; background: var(--bg); border-radius: var(--raio); }
.item-form-linha { display: flex; gap: 0.6em; padding: 0.6em; }
.item-form-linha input, .item-form-linha select { flex: 1; min-width: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 0.4em; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    background: var(--azure-light);
    color: var(--azure);
    font-size: 0.85em;
    border-radius: 2em;
    padding: 0.3em 0.9em;
}
a.chip:hover { background: var(--azure); color: var(--white); }
.chip-removivel { padding-right: 0.35em; }
.chip-removivel button {
    width: 1.5em;
    height: 1.5em;
    border-radius: 50%;
    color: var(--azure);
    font-size: 1em;
    line-height: 1;
}
.chip-removivel button:hover { background: var(--perigo); color: var(--white); }

/* Logomarca */
.logo-area {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6em;
    min-height: 200px;
    border: 2px dashed var(--border);
    border-radius: var(--raio);
    padding: 1em;
    text-align: center;
    color: var(--sub);
    font-size: 0.85em;
    cursor: pointer;
}
.logo-area:hover, .logo-area.arrastando { border-color: var(--sky); background: var(--sky-light); }
.logo-area img { max-height: 200px; border-radius: 6px; }

/* Tabelas */
.tabela { width: 100%; border-collapse: collapse; font-size: 0.92em; }
.tabela th { text-align: left; color: var(--sub); font-weight: 600; font-size: 0.85em; border-bottom: 2px solid var(--border); padding: 0.6em; }
.tabela td { border-bottom: 1px solid var(--border); padding: 0.6em; vertical-align: middle; }
.tabela tbody tr:hover { background: var(--bg); }
.col-acoes { text-align: right; white-space: nowrap; width: 1%; }
.col-acoes .botao + .botao { margin-left: 0.3em; }

.etiqueta { display: inline-block; font-size: 0.78em; font-weight: 600; padding: 0.15em 0.7em; border-radius: 2em; }
.etiqueta-1 { background: var(--gold-light); color: #8a5b00; }
.etiqueta-2 { background: var(--sucesso-light); color: var(--sucesso); }

/* Abas */
.abas { display: flex; gap: 0.3em; border-bottom: 1px solid var(--border); }
.abas a { padding: 0.6em 1.1em; color: var(--sub); border-bottom: 3px solid transparent; margin-bottom: -1px; font-weight: 600; }
.abas a.ativo, .abas a:hover { color: var(--azure); border-bottom-color: var(--gold); }

/* Painel (meu espaço) */
.painel-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1em; }
.painel-item {
    display: block;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--azure);
    border-radius: var(--raio);
    padding: 1.2em;
    color: var(--sub);
}
.painel-item:hover { box-shadow: var(--sombra); border-top-color: var(--gold); color: var(--sub); }
.painel-item h3 { color: var(--azure); margin-bottom: 0.3em; }
.painel-admin { border-top-color: var(--gold); background: var(--gold-light); }
.aviso-fixo { background: var(--gold-light); border: 1px solid var(--gold); border-radius: var(--raio); padding: 1em; color: #6b4a00; }
.sair { text-align: right; }

/* Empresa (página pública) */
.empresa-cabecalho { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5em; }
.empresa-logo { width: 320px; max-width: 40%; border: 1px solid var(--border); border-radius: var(--raio); padding: 4px; background: var(--white); }
.empresa-detalhe > * + * { margin-top: 1.2em; }
address { font-style: normal; color: var(--sub); }
address + address { margin-top: 0.8em; }
.lista-simples li { padding: 0.35em 0; border-bottom: 1px solid var(--border); }
.lista-simples li:last-child { border-bottom: 0; }

/* Currículo */
.dados { display: grid; grid-template-columns: max-content 1fr; gap: 0.5em 1.2em; }
.dados dt { font-weight: 600; color: var(--sub); }
.linha-tempo { border-left: 3px solid var(--sky); padding: 0.2em 0 0.2em 0.9em; }
.linha-tempo + .linha-tempo { margin-top: 1em; }
.linha-tempo small { display: block; color: var(--sub); }
.linha-tempo p { margin-top: 0.3em; color: var(--sub); }

.etapas-indicador { display: flex; gap: 0.4em; flex-wrap: wrap; }
.etapas-indicador li {
    width: 2em;
    height: 2em;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    font-size: 0.8em;
    color: var(--sub);
}
.etapas-indicador li.feito { background: var(--azure-light); color: var(--azure); border-color: var(--azure-light); }
.etapas-indicador li.ativo { background: var(--azure); color: var(--white); border-color: var(--azure); }
[data-etapa] { border: 0; }
[data-etapa] > legend { font-size: 1.15em; font-weight: 700; color: var(--azure); margin-bottom: 0.6em; }
[data-etapa] > * + * { margin-top: 1em; }
[data-etapa] h3 { color: var(--azure); font-size: 1em; }
.etapa-navegacao { justify-content: flex-end; }

/* Avisos (toast) */
.avisos {
    position: fixed;
    right: 1em;
    bottom: 1em;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    max-width: min(420px, calc(100vw - 2em));
}
.aviso {
    padding: 0.9em 1.1em;
    border-radius: var(--raio);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    font-size: 0.92em;
    cursor: pointer;
    animation: aviso-entrar 0.25s ease-out;
}
.aviso-sucesso { background: var(--sucesso-light); color: var(--sucesso); border: 1px solid #b7e4c7; }
.aviso-erro { background: var(--perigo-light); color: var(--perigo); border: 1px solid #f5c2c2; }
@keyframes aviso-entrar { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* -------------------------------------------------------------- Responsivo */

@media (max-width: 1024px) {
    .grade-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grade-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grade-editor { grid-template-columns: 1fr; }
    .pesquisa { width: 85%; }
}

@media (max-width: 820px) {
    .topo-menu-botao { display: flex; }
    .topo-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5em;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--sombra);
        padding: 0.8em 1em 1em;
    }
    .topo-nav.aberto { display: flex; }
    .menu { flex-direction: column; align-items: stretch; }
    .menu a { padding: 0.8em 1em; }
    .idiomas { justify-content: center; font-size: 0.85em; }

    .chamada { padding: 2em 1em; }
    .chamada h1, .chamada h2 { max-width: 100%; }
    .pesquisa { width: 100%; margin: 1.5em 0; }

    .grade-2, .grade-3 { grid-template-columns: 1fr; }
    .col-2 { grid-column: auto; }

    .acoes { flex-direction: column; align-items: flex-start; }
    .empresa-cabecalho { flex-direction: column-reverse; }
    .empresa-logo { max-width: 100%; }
    .rodape { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
    .grade-4 { grid-template-columns: 1fr; }
    .botao-filtros span, .botao-filtros { font-size: 0.75em; padding: 0.6em 0.9em; margin-left: 0.5em; }
    .cartao { padding: 1em; }
    .dados { grid-template-columns: 1fr; gap: 0.1em; }
    .dados dd { margin-bottom: 0.6em; }
    .item-form-linha { flex-direction: column; }

    /* Tabelas viram blocos empilhados */
    .tabela thead { display: none; }
    .tabela, .tabela tbody, .tabela tr, .tabela td { display: block; width: 100%; }
    .tabela tr { border-bottom: 1px solid var(--border); padding: 0.5em 0; }
    .tabela td { border: 0; padding: 0.2em 0.4em; }
    .col-acoes { text-align: left; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
