:root {
  --fundo: #f4f5f7;
  --painel: #ffffff;
  --texto: #1f2933;
  --suave: #616e7c;
  --borda: #dde1e6;
  --primaria: #1d4e89;
  --primaria-escura: #163d6b;
  --ok-fundo: #e6f4ea; --ok-texto: #1e6b34;
  --erro-fundo: #fdecea; --erro-texto: #9b1c1c;
  --alerta-fundo: #fff7e0; --alerta-texto: #7a5a00;
  --raio: 8px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", system-ui, -apple-system, sans-serif; background: var(--fundo); color: var(--texto); font-size: 15px; line-height: 1.5; }
a { color: var(--primaria); }
h1 { font-size: 1.5rem; margin: 0 0 1rem; }
h2 { font-size: 1.15rem; margin: 1.5rem 0 .75rem; }
h3 { font-size: 1rem; margin: 1rem 0 .5rem; }

/* estrutura */
.layout { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.menu { background: #10243e; color: #c9d4e3; padding: 1.25rem 0; }
.menu .marca { color: #fff; font-weight: 700; font-size: 1.1rem; padding: 0 1.25rem 1rem; display: block; text-decoration: none; }
.menu .marca small { display: block; font-weight: 400; font-size: .75rem; color: #8fa3bd; }
.menu a.item { display: flex; align-items: center; gap: .65rem; padding: .5rem 1.25rem; color: #c9d4e3; text-decoration: none; }
.menu a.item svg { flex-shrink: 0; opacity: .8; }
.menu a.item:hover, .menu a.item.ativo { background: #1a3556; color: #fff; }
.menu a.item:hover svg, .menu a.item.ativo svg { opacity: 1; }
.menu a.item.ativo { box-shadow: inset 3px 0 0 #6ea8ff; }
.menu .grupo { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #6f86a3; padding: 1rem 1.25rem .3rem; }
.menu .rodape { padding: 1rem 0 0; font-size: .85rem; color: #8fa3bd; border-top: 1px solid #1d3655; margin-top: 1rem; }
.menu .rodape .nome-usuario { display: block; padding: 0 1.25rem .4rem; font-size: .8rem; }
.menu .rodape a.item { padding-top: .4rem; padding-bottom: .4rem; }
.conteudo { padding: 1.75rem 2rem; max-width: 1400px; }
/* menu lateral recolhível (a escolha fica guardada no navegador) */
.menu { position: relative; }
.recolher-menu { position: absolute; top: 1.1rem; right: .55rem; background: none; color: #8fa3bd; padding: .3rem;
  border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.recolher-menu:hover { background: #1a3556; color: #fff; }
.recolher-menu .icone-expandir { display: none; }
html.menu-recolhido .layout { grid-template-columns: 52px 1fr; }
/* recolhido: só os ícones (o nome aparece ao parar o mouse em cima) */
html.menu-recolhido .menu .marca, html.menu-recolhido .menu a.item span, html.menu-recolhido .menu .nome-usuario { display: none; }
html.menu-recolhido .menu a.item { justify-content: center; padding: .6rem 0; }
html.menu-recolhido .menu .grupo { font-size: 0; padding: 0; height: 0; margin: .55rem .8rem; border-top: 1px solid #1d3655; }
html.menu-recolhido .menu .rodape { padding-top: .5rem; }
html.menu-recolhido .recolher-menu { position: static; margin: 0 auto .5rem; }
html.menu-recolhido .recolher-menu .icone-recolher { display: none; }
html.menu-recolhido .recolher-menu .icone-expandir { display: block; }
html.menu-recolhido .conteudo { max-width: none; }
.menu .marca { padding-right: 2.75rem; }
@media (max-width: 800px) { .layout { grid-template-columns: 1fr; } .menu { padding: .5rem 0; } .conteudo { padding: 1rem; }
  html.menu-recolhido .layout { grid-template-columns: 1fr; }
  /* no celular, recolhido vira uma faixa de ícones lado a lado */
  html.menu-recolhido .menu { display: flex; flex-wrap: wrap; align-items: center; padding: .4rem .5rem; gap: .15rem; }
  html.menu-recolhido .menu .grupo { display: none; }
  html.menu-recolhido .menu .rodape { display: contents; }
  html.menu-recolhido .menu a.item { padding: .5rem .6rem; border-radius: 6px; }
  html.menu-recolhido .recolher-menu { margin: 0 .3rem 0 0; } }

/* componentes */
.cartao { background: var(--painel); border: 1px solid var(--borda); border-radius: var(--raio); padding: 1.25rem; margin-bottom: 1rem; }
.grade { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.numero { font-size: 1.6rem; font-weight: 700; }
.rotulo { color: var(--suave); font-size: .85rem; }
.duas-colunas { display: grid; grid-template-columns: minmax(320px, 2fr) 3fr; gap: 1rem; align-items: start; }
@media (max-width: 1100px) { .duas-colunas { grid-template-columns: 1fr; } }

.botao, button { display: inline-block; background: var(--primaria); color: #fff; border: 0; border-radius: 6px; padding: .55rem 1rem; font-size: .95rem; cursor: pointer; text-decoration: none; }
.botao:hover, button:hover { background: var(--primaria-escura); }
.botao.secundario, button.secundario { background: #fff; color: var(--primaria); border: 1px solid var(--primaria); }
.botao.perigo, button.perigo { background: #fff; color: var(--erro-texto); border: 1px solid #e3a3a3; }
.acoes { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

label { display: block; font-weight: 600; margin: .75rem 0 .25rem; }
.ajuda { color: var(--suave); font-size: .85rem; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=date], select, textarea { width: 100%; padding: .5rem .6rem; border: 1px solid var(--borda); border-radius: 6px; font: inherit; background: #fff; }
textarea { min-height: 5rem; }
input[type=file] { padding: .5rem 0; }

table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--borda); vertical-align: top; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--suave); }
tr:hover td { background: #fafbfc; }

.aviso { padding: .75rem 1rem; border-radius: var(--raio); margin-bottom: 1rem; }
.aviso.ok { background: var(--ok-fundo); color: var(--ok-texto); }
.aviso.erro { background: var(--erro-fundo); color: var(--erro-texto); }
.aviso.alerta { background: var(--alerta-fundo); color: var(--alerta-texto); }

.etiqueta { display: inline-block; padding: .1rem .5rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: #eef1f4; color: var(--suave); }
.etiqueta.concluida, .etiqueta.ativo { background: var(--ok-fundo); color: var(--ok-texto); }
.etiqueta.erro { background: var(--erro-fundo); color: var(--erro-texto); }
.etiqueta.processando, .etiqueta.na_fila, .etiqueta.catalogando { background: #e7effa; color: var(--primaria); }
.etiqueta.revisar, .etiqueta.sem_modelo { background: var(--alerta-fundo); color: var(--alerta-texto); }

.folha { background: #fff; border: 1px solid var(--borda); box-shadow: 0 1px 4px rgba(0,0,0,.06); padding: 2.5rem 3rem; font-family: "Times New Roman", serif; font-size: 12pt; line-height: 1.5; text-align: justify; max-height: 80vh; overflow-y: auto; }
.folha p { margin: 0 0 .8em; }
ul.lista { margin: .25rem 0; padding-left: 1.2rem; }
.carregando { display: flex; align-items: center; gap: .75rem; }
.carregando::before { content: ""; width: 18px; height: 18px; border: 3px solid #c9d6e8; border-top-color: var(--primaria); border-radius: 50%; animation: gira 1s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.pequeno { font-size: .85rem; color: var(--suave); }
details summary { cursor: pointer; color: var(--primaria); }
.entrada { max-width: 420px; margin: 8vh auto; }
.barra { height: 10px; background: #e6ebf1; border-radius: 999px; overflow: hidden; }
.barra > div { height: 100%; background: var(--primaria); transition: width .4s; }
.navegacao-lote { background: #eef3fa; border: 1px solid #d4e0ef; border-radius: var(--raio); padding: .5rem .75rem; margin-bottom: 1rem; }
/* chat jurídico — estilo dos assistentes de IA: lista à esquerda, conversa centralizada, caixa de mensagem embaixo */
.layout:has(.chat-app) { height: 100vh; overflow: hidden; }  /* só as mensagens rolam, não a página */
.layout:has(.chat-app) .menu { overflow-y: auto; }
.conteudo:has(.chat-app) { padding: 0; max-width: none; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.conteudo:has(.chat-app) > .chat-app { flex: 1; min-height: 0; height: auto; }
.conteudo:has(.chat-app) > .aviso { margin: .75rem 1rem 0; }
.chat-app { display: grid; grid-template-columns: 260px 1fr; height: 100vh; background: #fff; }
.chat-lateral { background: #f7f8fa; border-right: 1px solid var(--borda); display: flex; flex-direction: column; min-height: 0; }
.chat-lateral .nova { margin: .9rem; display: flex; align-items: center; justify-content: center; gap: .4rem; }
.chat-lateral .titulo-lista { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--suave); padding: .4rem 1rem; }
.chat-lateral nav { overflow-y: auto; flex: 1; padding: 0 .5rem .5rem; }
.chat-lateral nav a { display: block; padding: .5rem .6rem; border-radius: 8px; text-decoration: none; color: var(--texto); font-size: .88rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-lateral nav a:hover { background: #eceff3; }
.chat-lateral nav a.ativo { background: #e2e9f3; font-weight: 600; }
.chat-lateral nav a small { display: block; color: var(--suave); font-size: .72rem; font-weight: 400; }
.chat-lateral .nota { font-size: .72rem; color: var(--suave); padding: .75rem 1rem; border-top: 1px solid var(--borda); }

.chat-principal { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.chat-topo { display: flex; align-items: center; gap: .75rem; padding: .7rem 1.25rem; border-bottom: 1px solid var(--borda); min-height: 52px; }
.chat-topo .nome { font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip { display: inline-flex; align-items: center; gap: .35rem; background: #eef3fa; color: var(--primaria); border-radius: 999px;
  padding: .2rem .7rem; font-size: .8rem; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.chip button { background: none; color: inherit; padding: 0 0 0 .2rem; font-size: 1rem; line-height: 1; }
.botao-icone { background: none; color: var(--suave); border: 0; padding: .35rem; border-radius: 8px; cursor: pointer; display: inline-flex; }
.botao-icone:hover { background: #eef1f4; color: var(--texto); }
.botao-icone svg, .chip svg, .anexo svg, .nova svg { width: 18px; height: 18px; flex: none; }

.chat-rolagem { flex: 1; overflow-y: auto; }
.chat-coluna { max-width: 800px; margin: 0 auto; padding: 1.5rem 1.25rem 1rem; }
.msg { margin-bottom: 1.6rem; }
.msg.usuario { display: flex; justify-content: flex-end; }
.msg.usuario .balao { background: #eef3fa; border-radius: 18px 18px 4px 18px; padding: .65rem 1rem; max-width: 80%; white-space: pre-wrap; }
.msg.assistente { display: grid; grid-template-columns: 32px 1fr; gap: .75rem; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primaria); color: #fff; display: flex; align-items: center;
  justify-content: center; font-size: .75rem; font-weight: 700; }
.msg.assistente .corpo { min-width: 0; padding-top: .25rem; line-height: 1.65; }
.msg.assistente .corpo p { margin: 0 0 .75em; }
.msg.assistente .corpo ul { margin: 0 0 .75em; padding-left: 1.3rem; }
.msg.erro .corpo { color: var(--erro-texto); }
.msg .acoes-msg { display: flex; align-items: center; gap: .25rem; margin-top: .35rem; color: var(--suave); font-size: .75rem; }
.anexo { display: flex; align-items: center; gap: .75rem; border: 1px solid var(--borda); border-radius: 12px; padding: .7rem .9rem;
  margin: .4rem 0 .6rem; background: #fafbfc; }
.anexo .icone-doc { width: 38px; height: 38px; border-radius: 8px; background: #e7effa; color: var(--primaria); display: flex;
  align-items: center; justify-content: center; flex: none; }
.anexo .info { flex: 1; min-width: 0; }
.anexo .info strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.anexo .info span { font-size: .78rem; color: var(--suave); }
.anexo .botao { padding: .4rem .8rem; font-size: .85rem; }
.previa { display: none; }
.previa.aberta { display: block; }
.previa .folha { max-height: 60vh; padding: 1.75rem 2.25rem; margin-bottom: .6rem; }
.fontes { display: flex; flex-wrap: wrap; gap: .35rem; margin: .4rem 0; }
.fontes details { display: contents; }
.fonte-chip { font-size: .75rem; background: #f1f3f6; border: 1px solid var(--borda); border-radius: 999px; padding: .1rem .6rem;
  color: var(--texto); cursor: pointer; list-style: none; }
.fonte-chip::-webkit-details-marker { display: none; }
.fonte-texto { flex-basis: 100%; font-size: .8rem; color: var(--suave); white-space: pre-wrap; background: #f8f9fb; border-radius: 8px;
  padding: .6rem .8rem; max-height: 220px; overflow-y: auto; }
.conferir { border-left: 3px solid #e0b100; background: var(--alerta-fundo); color: var(--alerta-texto); border-radius: 0 8px 8px 0;
  padding: .4rem .8rem; font-size: .85rem; margin: .4rem 0; }
.conferir summary { color: var(--alerta-texto); font-weight: 600; }
.conferir ul { margin: .4rem 0 .2rem; padding-left: 1.1rem; }
.digitando { display: flex; align-items: center; gap: .6rem; color: var(--suave); font-size: .9rem; padding-top: .35rem; }
.digitando i { width: 7px; height: 7px; border-radius: 50%; background: #9aa5b1; display: inline-block; animation: pulo 1.2s infinite; }
.digitando i:nth-child(2) { animation-delay: .15s; }
.digitando i:nth-child(3) { animation-delay: .3s; }
@keyframes pulo { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.chat-rodape { padding: .5rem 1.25rem 1rem; }
.compositor { max-width: 800px; margin: 0 auto; border: 1px solid #cfd6de; border-radius: 22px; background: #fff;
  box-shadow: 0 2px 10px rgba(16, 36, 62, .06); padding: .45rem .5rem .45rem .75rem; }
.compositor:focus-within { border-color: var(--primaria); }
.compositor .anexados { padding: .3rem 0 .2rem; }
.compositor .linha { display: flex; align-items: flex-end; gap: .35rem; }
.compositor textarea { border: 0; outline: 0; resize: none; min-height: 24px; max-height: 220px; padding: .45rem .25rem; flex: 1;
  font: inherit; line-height: 1.5; background: transparent; }
.compositor .enviar { width: 36px; height: 36px; border-radius: 50%; padding: 0; display: flex; align-items: center; justify-content: center; flex: none; }
.compositor .enviar:disabled { background: #c9d2dc; cursor: default; }
.compositor .enviar svg { width: 18px; height: 18px; }
.chat-rodape .legenda { text-align: center; font-size: .72rem; color: var(--suave); margin-top: .4rem; }

.boas-vindas { max-width: 800px; margin: 0 auto; padding: 10vh 1.25rem 1rem; text-align: center; }
.boas-vindas h2 { font-size: 1.6rem; margin: 0 0 .4rem; }
.boas-vindas p { color: var(--suave); margin: 0 0 1.5rem; }
.sugestoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .6rem; text-align: left; margin-top: 1.25rem; }
.sugestoes button { background: #fff; color: var(--texto); border: 1px solid var(--borda); border-radius: 12px; padding: .7rem .85rem;
  font-size: .87rem; text-align: left; line-height: 1.4; }
.sugestoes button:hover { background: #f5f7fa; }
.sugestoes button small { display: block; color: var(--suave); font-size: .75rem; margin-top: .15rem; }
@media (max-width: 900px) { .chat-app { grid-template-columns: 1fr; height: auto; min-height: 100vh; } .chat-lateral { display: none; } }
/* ferramentas criminais */
.grade-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 700px) { .grade-2 { grid-template-columns: 1fr; } }
label.opcao { font-weight: 400; display: flex; align-items: center; gap: .5rem; margin: .35rem 0; }
.tabela-form { background: none; }
.tabela-form th { font-size: .72rem; padding: .3rem .25rem; }
.tabela-form td { padding: .25rem; border-bottom: 0; vertical-align: top; }
.tabela-form tr:hover td { background: none; }
.tabela-form select, .tabela-form input { padding: .35rem .4rem; font-size: .88rem; }
.tabela-form.fixa { table-layout: fixed; width: 100%; }
.tabela-form.fixa select, .tabela-form.fixa input { width: 100%; }
.tabela-form td.pena { white-space: nowrap; }
.tabela-form td.pena input { width: 3.1rem; text-align: center; }
.tabela-form td.pena span { font-size: .8rem; color: var(--suave); margin: 0 .25rem 0 .1rem; }
select.fracao { width: 5.2rem; }
.colunas-prescricao { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 1150px) { .colunas-prescricao { grid-template-columns: 1fr; } }
.crime { border: 1px solid var(--borda); border-radius: 8px; padding: .55rem .65rem; margin-bottom: .5rem; background: #fafbfc; }
.crime-topo { display: flex; gap: .35rem; align-items: center; }
.crime-campos { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: .45rem; align-items: flex-end; }
.crime-campos select, .crime-campos input { padding: .35rem .4rem; font-size: .88rem; }
.crime-campos .pena { white-space: nowrap; }
.crime-campos .pena input { width: 3.1rem; text-align: center; }
.crime-campos .pena > span:not(.rotulo-campo) { font-size: .8rem; color: var(--suave); margin: 0 .25rem 0 .1rem; }
.rotulo-campo { display: block; font-size: .72rem; color: var(--suave); text-transform: uppercase; letter-spacing: .03em; margin-bottom: .15rem; }
.pequeno-botao { padding: .3rem .7rem; font-size: .85rem; margin-top: .3rem; }
.resultado-prescricao { border-radius: 10px; padding: .75rem 1rem; font-weight: 700; font-size: 1.1rem; }
.resultado-prescricao small { display: block; font-weight: 400; font-size: .82rem; }
.resultado-prescricao.prescrita { background: var(--erro-fundo); color: var(--erro-texto); }
.resultado-prescricao.valida { background: var(--ok-fundo); color: var(--ok-texto); }
.tabela-marcos { font-size: .85rem; }
.tabela-marcos th { font-size: .7rem; }
tr.marco-prescrito td { background: #fdecea; }
/* minuta e processo na página da análise: abas, lado a lado e janelas desacopladas (segundo monitor) */
.visualizador { position: sticky; top: .75rem; min-width: 0; }
.barra-visualizador { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.abas { display: inline-flex; border: 1px solid var(--borda); border-radius: 8px; overflow: hidden; }
.abas .aba { background: #fff; color: var(--texto); border-radius: 0; padding: .4rem .85rem; font-size: .9rem; border-right: 1px solid var(--borda); }
.abas .aba:last-child { border-right: 0; }
.abas .aba.ativa { background: var(--primaria); color: #fff; }
.abas .aba:disabled { color: #b4bcc8; cursor: not-allowed; background: #fafbfc; }
.barra-visualizador .pequeno-botao { margin-top: 0; }
.paineis { display: grid; gap: .75rem; }
.visualizador[data-modo="minuta"] .painel[data-painel="processo"],
.visualizador[data-modo="processo"] .painel[data-painel="minuta"] { display: none; }
.visualizador[data-modo="lado"] .paineis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.visualizador[data-modo="lado"].sem-minuta .paineis, .visualizador[data-modo="lado"].sem-processo .paineis { grid-template-columns: minmax(0, 1fr); }
.visualizador .folha { max-height: calc(100vh - 9rem); }
.pdf-processo { width: 100%; height: calc(100vh - 8rem); border: 1px solid var(--borda); border-radius: 6px; background: #f1f3f6; display: block; }
.aviso-desacoplado { display: none; border: 1px dashed var(--borda); border-radius: 8px; padding: .6rem .8rem; font-size: .9rem; color: var(--suave); background: #fafbfc; }
.visualizador.sem-minuta .painel[data-painel="minuta"] > :not(.aviso-desacoplado),
.visualizador.sem-processo .painel[data-painel="processo"] > :not(.aviso-desacoplado) { display: none; }
.visualizador.sem-minuta .painel[data-painel="minuta"] .aviso-desacoplado,
.visualizador.sem-processo .painel[data-painel="processo"] .aviso-desacoplado { display: block; }
#area-analise.modo-lado { grid-template-columns: minmax(0, 1fr); }
#area-analise.modo-lado .coluna-relatorio { display: none; }
@media (max-width: 1100px) { .visualizador { position: static; } .visualizador[data-modo="lado"] .paineis { grid-template-columns: 1fr; } }
body.janela-solta { background: #e9edf2; margin: 0; }
.barra-solta { position: sticky; top: 0; z-index: 2; display: flex; gap: .6rem; align-items: center; background: #10243e; color: #fff;
  padding: .45rem 1rem; font-size: .9rem; }
.barra-solta .pequeno { color: #a9b8cc; }
.barra-solta .espaco { flex: 1; }
.barra-solta .pequeno-botao { margin-top: 0; }
.janela-solta .folha { max-height: none; max-width: 21cm; margin: 1rem auto; }
.janela-processo { overflow: hidden; }
.pdf-solto { display: block; width: 100%; height: calc(100vh - 2.4rem); border: 0; }
.vazio-solto { padding: 2rem; text-align: center; color: var(--suave); }
/* análise guiada */
.tabela-orientacoes td.nome-arquivo { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.orientacao { border-left: 3px solid var(--primaria); background: #eef3fb; border-radius: 0 8px 8px 0; padding: .55rem .8rem; margin: .6rem 0; }
.orientacao small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: #4a5d78; }
/* dosimetria */
.crime-dosimetria { padding: .7rem .8rem; margin-bottom: .75rem; }
.crime-marcas { display: flex; flex-wrap: wrap; gap: 0 1.2rem; margin-top: .3rem; }
.crime-marcas label.opcao { margin: .2rem 0; font-size: .9rem; }
.crime-campos input.dm { width: 4.2rem; text-align: center; }
.fase { border-top: 1px dashed var(--borda); margin-top: .65rem; padding-top: .55rem; }
.fase-titulo { font-weight: 600; font-size: .88rem; margin-bottom: .35rem; color: var(--primaria); }
.crime-dosimetria .so-manual { display: none; }
.crime-dosimetria.criterio-manual .so-manual { display: block; }
.crime-dosimetria.sem-multa .so-multa { display: none !important; }
.circunstancias { margin-top: .45rem; }
.circ { display: grid; grid-template-columns: minmax(11rem, 15rem) 1fr; gap: .2rem .6rem; align-items: center; }
.circ label.opcao { margin: .15rem 0; font-size: .9rem; }
.circ input[type=text] { visibility: hidden; padding: .3rem .45rem; font-size: .85rem; }
.circ:has(input:checked) input[type=text] { visibility: visible; }
@media (max-width: 700px) { .circ { grid-template-columns: 1fr; } .circ input[type=text] { display: none; }
  .circ:has(input:checked) input[type=text] { display: block; } }
.resultado-dosimetria { border-radius: 10px; padding: .75rem 1rem; font-weight: 700; font-size: 1.1rem; background: #e8eff9; color: #10243e; }
.resultado-dosimetria small { display: block; font-weight: 400; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: #4a5d78; }
.texto-decisao { font-family: "Times New Roman", serif; font-size: .95rem; background: #fafbfc; }
.colunas-presos { display: grid; grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr); gap: 1rem; align-items: start; }
@media (max-width: 1000px) { .colunas-presos { grid-template-columns: 1fr; } }
.preso { display: flex; align-items: stretch; gap: 1rem; background: var(--painel); border: 1px solid var(--borda); border-radius: 10px;
  padding: .7rem .9rem; margin-bottom: .55rem; text-decoration: none; color: var(--texto); }
a.preso:hover { border-color: var(--primaria); box-shadow: 0 2px 8px rgba(16, 36, 62, .07); }
.preso .dias { min-width: 86px; border-radius: 8px; background: #10243e; color: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: .35rem .5rem; }
.preso .dias strong { font-size: 1.7rem; line-height: 1.1; }
.preso .dias span { font-size: .72rem; opacity: .85; }
.preso .dias.sem-data { background: #c9d2dc; color: var(--texto); }
.dados-preso { min-width: 0; flex: 1; }
.nome-preso { font-weight: 600; }
.processo-preso { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; margin-top: .15rem; }
.numero-processo { font-family: Consolas, monospace; font-size: .88rem; }
.etiqueta.preso-tag { background: #10243e; color: #fff; font-size: .7rem; }
.etiqueta.foragido-tag { background: #9b1c1c; color: #fff; font-size: .7rem; }
.preso .dias.foragido { background: #9b1c1c; }
.preso .dias.foragido strong { font-size: .95rem; letter-spacing: .04em; }
label.marca-foragido { background: #fdf3f3; border: 1px solid #f0c9c9; border-radius: 8px; padding: .4rem .6rem; margin-top: .6rem; }
.fase-tag { font-size: .75rem; background: var(--alerta-fundo); color: var(--alerta-texto); border-radius: 999px; padding: .05rem .55rem; }
.processo-linha { border: 1px solid var(--borda); border-radius: 8px; padding: .5rem .65rem; margin-bottom: .5rem; background: #fafbfc; }
.processo-topo { display: flex; justify-content: space-between; align-items: center; }
.grade-processo { display: grid; grid-template-columns: 1.4fr 1.2fr .8fr; gap: .45rem; margin-top: .3rem; }
.grade-processo.dois { grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .grade-processo, .grade-processo.dois { grid-template-columns: 1fr; } }
.grade-processo input, .grade-processo select, .obs-processo { padding: .35rem .45rem; font-size: .88rem; }
.obs-processo { margin-top: .45rem; }
.paragrafo-modelo { font-family: Consolas, monospace; font-size: .8rem; white-space: pre-wrap; background: #f8f9fb; padding: .4rem .6rem; border-radius: 4px; margin: .25rem 0; }
