:root {
  --fundo: #f5f6f8;
  --papel: #ffffff;
  --texto: #1d2733;
  --suave: #5d6b7a;
  --linha: #dde2e8;
  --marca: #1f4e79;
  --marca-claro: #e7eef6;
  --ok: #1e7b45;
  --ok-claro: #e4f3ea;
  --alerta: #9a6400;
  --alerta-claro: #fdf2dc;
  --erro: #b3261e;
  --erro-claro: #fbe7e5;
  --sei-azul: #1d7fc0;
  --sei-azul-escuro: #1a5f96;
  --sei-menu: #1f2327;
  --sei-tabela: #1f63a3;
}

* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 "Segoe UI", system-ui, sans-serif; color: var(--texto); background: var(--fundo); }
a { color: var(--marca); }
h1 { font-size: 1.5rem; margin: 0.2rem 0 1rem; }
h2 { font-size: 1.1rem; margin: 1.6rem 0 0.7rem; }
small, .nota { color: var(--suave); }
.nota { font-size: 0.9rem; }

/* ---------- moldura no estilo do SEI: topo azul, menu escuro à esquerda ---------- */
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; flex: none; }
.ico .cheio { fill: currentColor; stroke: currentColor; }
.ico .claro { stroke: #fff; stroke-width: 2; }
.ico .furo { fill: #fff; stroke: none; }

.topo { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1rem; height: 58px; padding: 0 1rem; background: var(--sei-azul); color: #fff; box-shadow: inset 0 4px 0 var(--sei-azul-escuro); }
.topo a { color: #fff; text-decoration: none; }
.botao-menu { background: transparent; border: 0; padding: 0.3rem; color: #fff; }
.botao-menu .ico { width: 26px; height: 26px; stroke-width: 2.2; }
.marca { display: flex; align-items: center; gap: 0.55rem; }
/* A logomarca é a versão para fundo claro: no topo azul ela vai num disco branco, para o anel marinho aparecer. */
.marca .logo { display: grid; place-items: center; height: 42px; width: 42px; padding: 3px; border-radius: 50%; background: #fff; }
.marca .logo img { display: block; height: 36px; width: 36px; }
.logo-entrada { background: #fff; border: 1px solid var(--linha); border-radius: 8px; padding: 0.9rem 1.2rem; }
.logo-entrada img { display: block; width: 100%; height: auto; }
.marca-nome { display: flex; flex-direction: column; font-weight: 700; font-size: 1.05rem; line-height: 1.1; white-space: nowrap; }
/* Em tela estreita fica só a sigla, para o nome não empurrar a pesquisa e os ícones. */
@media (max-width: 1000px) { .marca-nome { display: none; } }
.marca-nome small { font-weight: 400; font-size: 0.72rem; opacity: 0.85; color: #fff; }
.busca-topo { margin-left: auto; display: flex; align-items: center; background: #fff; border-radius: 3px; height: 30px; width: min(260px, 30vw); }
.topo .busca-topo input[name] { display: block; width: 100%; border: 0; border-radius: 3px; margin: 0; height: 30px; padding: 0 0.5rem; font-size: 0.82rem; }
.busca-topo button { background: transparent; border: 0; padding: 0 0.4rem; color: #444; }
.busca-topo button .ico { width: 18px; height: 18px; }
.unidade-atual { background: #fff; color: var(--sei-azul) !important; border-radius: 3px; padding: 0.3rem 0.6rem; font-size: 0.78rem; font-weight: 600; }
.icones-topo { display: flex; gap: 0.7rem; }
.icones-topo a { opacity: 0.95; }
.icones-topo a:hover { opacity: 1; transform: scale(1.08); }
.icones-topo .ico { width: 24px; height: 24px; stroke-width: 2.2; }

.corpo { display: flex; min-height: calc(100vh - 58px); }
.menu-lateral { overflow-x: hidden; position: sticky; top: 58px; align-self: flex-start; width: 268px; height: calc(100vh - 58px); overflow-y: auto; flex: none; background: var(--sei-menu); color: #fff; padding: 0.4rem 0 1rem; }
.menu-escondido .menu-lateral { display: none; }
.menu-lateral input.filtro-menu[data-filtro-menu] { display: block; width: calc(100% - 0.8rem); margin: 0 0.4rem 0.5rem; padding: 0.3rem 0.5rem; border-radius: 2px; border: 0; font-size: 0.78rem; }
.menu-lateral nav a { display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0.9rem; color: #fff; text-decoration: none; font-size: 0.95rem; }
.menu-lateral nav a:hover { background: rgba(255, 255, 255, 0.08); }
.menu-lateral nav a.atual { background: var(--sei-azul); }
.menu-lateral nav a[hidden] { display: none; }
.menu-lateral .ico { width: 21px; height: 21px; }
.menu-rodape { margin: 1.2rem 0.9rem 0; font-size: 0.75rem; color: #aab4be; }

main { flex: 1; min-width: 0; max-width: none; margin: 0; padding: 1.2rem 1.6rem 2rem; }
body:not(.com-menu) main { max-width: 1180px; margin: 0 auto; }

.titulo-pagina { font-size: 1.25rem; font-weight: 600; margin: 0.6rem 0 1rem; }
.barra-acoes { display: inline-flex; gap: 0.35rem; padding: 0.35rem 0.5rem; background: #fff; border: 1px solid #d6dae0; border-radius: 4px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.barra-acoes .acao { display: grid; place-items: center; width: 44px; height: 40px; padding: 0; background: transparent; border: 1px solid transparent; border-radius: 4px; }
.barra-acoes .acao:hover { background: #eef2f7; border-color: #d6dae0; }
.barra-acoes .ico { width: 32px; height: 32px; }
.visoes { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.2rem; margin: 0.9rem 0 0.4rem; font-size: 0.82rem; }
.visoes a { color: var(--texto); text-decoration: none; }
.visoes a:hover { text-decoration: underline; }
.ver-por a { margin-left: 0.35rem; padding: 0.05rem 0.35rem; border-radius: 3px; }
.ver-por a.atual { background: var(--sei-azul); color: #fff; }
.legenda { display: flex; flex-wrap: wrap; gap: 0.2rem 0.8rem; margin-left: auto; color: var(--suave); font-size: 0.75rem; }
.legenda .ico { width: 15px; height: 15px; margin-right: 0.15rem; }

.duas-tabelas { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
@media (max-width: 1100px) { .duas-tabelas { grid-template-columns: 1fr; } }
.contagem { text-align: right; font-size: 0.78rem; color: var(--suave); margin: 0.6rem 0 0.25rem; }
.tabela-sei { border: 0; border-radius: 0; font-size: 0.82rem; }
.tabela-sei thead th { background: var(--sei-tabela); color: #fff; text-align: center; font-weight: 600; font-size: 0.82rem; padding: 0.55rem 0.6rem; }
.tabela-sei.detalhada thead th { text-align: left; }
.tabela-sei td { padding: 0.45rem 0.6rem; vertical-align: middle; border-bottom: 1px solid #edf0f3; }
.tabela-sei tbody tr:hover td { background: #f2f7fc; }
.col-marcar { width: 34px; text-align: center; }
.col-marcar input { width: 16px; height: 16px; margin: 0; }
.col-icones { width: 92px; white-space: nowrap; }
.icones-linha { display: inline-flex; gap: 0.3rem; }
.icones-linha .ico { width: 20px; height: 20px; }
.col-numero { text-align: center; white-space: nowrap; }
.col-extra { text-align: right; color: var(--suave); white-space: nowrap; }
.numero-processo { color: var(--texto); text-decoration: none; }
.numero-processo:hover { text-decoration: underline; }
.numero-processo.nao-visto { color: #d93025; font-weight: 600; }
.marcar-todos { background: transparent; border: 0; padding: 0; color: #fff; }
.marcar-todos .ico { width: 22px; height: 22px; }
.filtros { display: grid; grid-template-columns: 2fr 1.5fr 1fr auto; gap: 0 1rem; align-items: end; margin-bottom: 0.5rem; }
.filtros button { margin-bottom: 0.9rem; }
@media (max-width: 860px) { .filtros { grid-template-columns: 1fr; } .menu-lateral { display: none; } .busca-topo { display: none; } }
.estreito-largo { max-width: 720px; }
.lista-simples { margin: 0 0 1rem; padding-left: 1.2rem; }
main footer { text-align: center; margin-top: 2rem; color: var(--suave); font-size: 0.8rem; padding: 1rem; }

.cartao { background: var(--papel); border: 1px solid var(--linha); border-radius: 8px; padding: 1.1rem 1.3rem; }
.estreito { max-width: 560px; margin: 1rem auto; }

label { display: block; margin-bottom: 0.9rem; font-weight: 500; }
input:not([type=radio]):not([type=checkbox]), select, textarea {
  display: block; width: 100%; margin-top: 0.3rem; padding: 0.5rem 0.6rem;
  border: 1px solid var(--linha); border-radius: 6px; font: inherit; background: #fff;
}
textarea.texto { font-family: Georgia, "Times New Roman", serif; font-size: 1rem; line-height: 1.6; }
label.opcao { font-weight: 400; display: flex; gap: 0.5rem; align-items: baseline; padding: 0.35rem 0; }
label.opcao small { margin-left: auto; }

button, .botao {
  display: inline-block; padding: 0.5rem 1.1rem; border-radius: 6px; border: 1px solid var(--marca);
  background: var(--marca); color: #fff; font: inherit; cursor: pointer; text-decoration: none;
}
button:disabled { opacity: 0.45; cursor: not-allowed; }
.botao.secundario { background: #fff; color: var(--marca); font-size: 0.9rem; padding: 0.35rem 0.8rem; }
button.perigo { background: #fff; color: var(--erro); border-color: var(--erro); font-size: 0.9rem; padding: 0.35rem 0.8rem; }
.botoes { display: flex; gap: 1rem; align-items: center; }
form.em-linha { display: inline; }

table { width: 100%; border-collapse: collapse; background: var(--papel); border: 1px solid var(--linha); border-radius: 8px; overflow: hidden; }
th, td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--linha); vertical-align: top; }
th { background: #eef1f4; font-size: 0.85rem; color: var(--suave); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
tr.rascunho td { background: #fafbfc; color: var(--suave); }
.quebra-texto { word-break: break-word; }

.aviso { padding: 0.7rem 1rem; border-radius: 6px; margin-bottom: 1rem; }
.aviso.ok { background: var(--ok-claro); color: var(--ok); }
.aviso.erro { background: var(--erro-claro); color: var(--erro); }
.aviso.info { background: var(--marca-claro); color: var(--marca); }

.selo { display: inline-block; font-size: 0.78rem; padding: 0.1rem 0.5rem; border-radius: 99px; background: #eef1f4; color: var(--suave); margin: 0; }
.selo.ok { background: var(--ok-claro); color: var(--ok); }
.selo.erro { background: var(--erro-claro); color: var(--erro); }
.selo.alerta { background: var(--alerta-claro); color: var(--alerta); }
.prazo { font-weight: 600; }
.prazo.hoje { color: var(--alerta); }
.prazo.vencido { color: var(--erro); }
.vazio { color: var(--suave); font-style: italic; }

.titulo-linha { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.titulo-linha span { display: flex; gap: 0.5rem; }
.filtro select { margin: 0; width: auto; }

.capa { display: flex; justify-content: space-between; gap: 1.5rem; background: var(--papel); border: 1px solid var(--linha); border-radius: 8px; padding: 1.1rem 1.3rem; }
.capa h1 { margin-bottom: 0.3rem; }
.capa .objeto { margin: 0; font-size: 1.05rem; }
.capa .onde { text-align: right; min-width: 200px; }
.capa .onde p { margin: 0 0 0.3rem; }
.rotulo { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--suave); margin: 0; }

.fases { display: flex; list-style: none; padding: 0; margin: 1.2rem 0; counter-reset: fase; flex-wrap: wrap; gap: 0.3rem; }
.fases li { flex: 1; min-width: 130px; counter-increment: fase; padding: 0.5rem 0.6rem; font-size: 0.85rem; background: #e9edf1; color: var(--suave); border-radius: 6px; }
.fases li::before { content: counter(fase) ". "; font-weight: 600; }
.fases li.feita { background: var(--ok-claro); color: var(--ok); }
.fases li.atual { background: var(--marca); color: #fff; font-weight: 600; }

.colunas { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 1.5rem; }
@media (max-width: 860px) {
  .colunas { grid-template-columns: 1fr; }
  .capa { flex-direction: column; }
  .capa .onde { text-align: left; }
}

.checklist { list-style: none; padding: 0; margin: 0; background: var(--papel); border: 1px solid var(--linha); border-radius: 8px; }
.checklist li { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--linha); flex-wrap: wrap; }
.checklist li:last-child { border-bottom: 0; }
.marca-item { width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2px solid var(--linha); flex: none; }
.checklist .assinado .marca-item, .checklist .justificado .marca-item { background: var(--ok); border-color: var(--ok); }
.checklist .rascunho .marca-item { border-color: var(--alerta); background: var(--alerta-claro); }
.checklist .situacao { font-size: 0.82rem; color: var(--suave); }
.checklist .assinado .situacao, .checklist .justificado .situacao { color: var(--ok); }
.checklist .rascunho .situacao { color: var(--alerta); }
.checklist .acoes { margin-left: auto; display: flex; gap: 0.8rem; font-size: 0.85rem; }
.avancar { margin: 1rem 0; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }

.andamentos { list-style: none; padding: 0; margin: 0; }
.andamentos li { border-left: 3px solid var(--marca-claro); padding: 0.2rem 0 0.7rem 0.8rem; }
.andamentos p { margin: 0.1rem 0; }

.folha { background: var(--papel); border: 1px solid var(--linha); padding: 2rem 2.4rem; max-width: 820px; margin: 1rem 0; }
.texto-legado { white-space: pre-wrap; }

/* Cabeçalho do órgão (orgaos.cabecalho), acima do texto do documento */
.cabecalho-orgao { display: flex; align-items: center; gap: 10pt; margin: 0 0 14pt; font-family: Arial, sans-serif; font-size: 9pt; line-height: 1.3; color: #000; }
.cabecalho-orgao img { width: 1.45cm; height: auto; }
.cabecalho-orgao p { margin: 0; }

/* Documento: as mesmas regras de Modelos/scripts/html2docx-parecer.ps1 */
/* ABNT NBR 14724: fonte 12, entrelinha 1,5, preto; citação longa com recuo de 4 cm, fonte 10 e
   entrelinha simples; títulos separados do texto por uma linha de 1,5. A fonte (Arial) e o recuo
   da primeira linha (1,25 cm) a norma não fixa: são o padrão usual. */
.texto-doc { font-family: Arial, sans-serif; font-size: 12pt; line-height: 1.5; color: #000; }
.texto-doc p { text-align: justify; margin: 0; text-indent: 1.25cm; }
.texto-doc p.c, .texto-doc p.r, .texto-doc p.ementa, .texto-doc p.cit, .texto-doc li p { text-indent: 0; }
.texto-doc p.ementa { margin: 18pt 0 18pt 45%; line-height: 1; }
.texto-doc p.cit { margin: 18pt 0 18pt 4cm; font-size: 10pt; line-height: 1; }
.texto-doc h2 { font-size: 12pt; text-transform: uppercase; margin: 18pt 0; }
.texto-doc h3 { font-size: 12pt; margin: 18pt 0; }
/* Numeração das peças: alíneas a), b), c) e incisos I –, II –, III –. */
.texto-doc ol.alinea, .texto-doc ol.inciso { list-style: none; counter-reset: item; }
.texto-doc ol.alinea > li, .texto-doc ol.inciso > li { counter-increment: item; }
.texto-doc ol.alinea > li::before { content: counter(item, lower-alpha) ") "; }
.texto-doc ol.inciso > li::before { content: counter(item, upper-roman) " – "; }
.texto-doc .c { text-align: center; }
.texto-doc .r { text-align: right; }
.texto-doc .p { background: #fff176; font-weight: bold; }
.texto-doc table { border-collapse: collapse; width: 100%; }
.texto-doc td, .texto-doc th { border: 1px solid #000; padding: 3pt 5pt; font-size: 10pt; line-height: 1; }

/* ---------- editor no estilo do Word ---------- */
.editor-word { margin: 0.6rem 0; border: 1px solid var(--linha); border-radius: 8px; overflow: hidden; }
.faixa { background: #f3f4f6; border-bottom: 1px solid var(--linha); }
.abas { display: flex; align-items: flex-end; gap: 0.1rem; padding: 0.3rem 0.5rem 0; background: var(--marca); }
.faixa .aba { background: transparent; border: 0; border-radius: 6px 6px 0 0; color: #fff; opacity: 0.85; padding: 0.35rem 0.9rem; font-size: 0.88rem; height: auto; }
.faixa .aba:hover { opacity: 1; color: #fff; background: rgba(255,255,255,0.12); }
.faixa .aba.ativa { background: #f3f4f6; color: var(--marca); opacity: 1; font-weight: 600; }
.abas .contador { margin-left: auto; align-self: center; font-size: 0.82rem; font-weight: 600; color: #ffe27a; padding-bottom: 0.25rem; }
.abas .contador.ok { color: #b9f2cf; }
.painel { display: none; flex-wrap: wrap; align-items: stretch; padding: 0.35rem 0.4rem 0.15rem; min-height: 86px; }
.painel.ativo { display: flex; }
.grupo { display: flex; flex-direction: column; justify-content: space-between; gap: 0.25rem; padding: 0 0.6rem; border-right: 1px solid #d6dae0; }
.grupo:last-of-type { border-right: 0; }
.ferramentas { display: flex; align-items: center; gap: 0.15rem; flex-wrap: wrap; }
.ferramentas.coluna { flex-direction: column; align-items: stretch; }
.nome-grupo { text-align: center; font-size: 0.72rem; color: var(--suave); padding-bottom: 0.1rem; }
.faixa button { background: transparent; color: var(--texto); border: 1px solid transparent; border-radius: 4px; padding: 0.15rem 0.45rem; min-width: 28px; height: 28px; font-size: 0.88rem; line-height: 1; }
.faixa button:hover { background: #e2e6eb; border-color: #c9cfd6; }
.faixa button.ativo { background: #cfe0f3; border-color: #9dbbe0; }
.faixa button.destaque { background: #fff176; border-color: #e0c200; }
.faixa button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; vertical-align: middle; }
.faixa select, .faixa input.num { display: inline-block; width: auto; margin: 0; padding: 0.15rem 0.3rem; height: 28px; font-size: 0.85rem; }
.faixa .sel-fonte { width: 150px; }
.faixa .sel-caixa { width: 52px; }
.faixa .sel-numeracao { width: 64px; }
.faixa button.ativo[data-pincel] { background: #ffe27a; border-color: #c9a400; }
.pagina.pincel-ligado { cursor: copy; }
.barra-localizar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; padding: 0.45rem 0.8rem; background: #f3f4f6; border-bottom: 1px solid var(--linha); font-size: 0.85rem; }
.barra-localizar[hidden] { display: none; }
.barra-localizar label { display: flex; align-items: center; gap: 0.35rem; margin: 0; font-weight: 400; }
.barra-localizar input[type="text"] { width: 190px; margin: 0; padding: 0.25rem 0.4rem; }
.barra-localizar button { padding: 0.2rem 0.6rem; font-size: 0.85rem; }
.barra-localizar .fechar { margin-left: auto; background: transparent; color: var(--texto); border-color: transparent; font-size: 1.1rem; }
.faixa .sel-tamanho { width: 62px; }
.faixa input.num { width: 52px; }
.faixa .estilos button { height: 40px; min-width: 64px; border-color: #d6dae0; background: #fff; font-size: 0.8rem; }
.faixa .cor { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 28px; border-radius: 4px; cursor: pointer; font-weight: 600; margin: 0; }
.faixa .cor:hover { background: #e2e6eb; }
.faixa .cor input { position: absolute; left: 4px; right: 4px; bottom: 2px; width: auto; height: 5px; padding: 0; margin: 0; border: 0; opacity: 1; cursor: pointer; }
.faixa .cor input::-webkit-color-swatch-wrapper { padding: 0; }
.faixa .cor input::-webkit-color-swatch { border: 0; }
.faixa .letra-cor, .faixa .letra-realce { margin-top: -6px; }
.faixa .dica { align-self: center; margin: 0 0.6rem; font-size: 0.8rem; color: var(--suave); max-width: 340px; }
.faixa .opcao-linha { display: flex; gap: 0.4rem; align-items: center; margin: 0; font-weight: 400; }

.area-pagina { background: #e3e6ea; padding: 0 1rem 1.5rem; max-height: calc(100vh - 230px); min-height: 480px; overflow: auto; }
.zoom { width: 21cm; margin: 0 auto; }
.regua { position: sticky; top: 0; z-index: 3; height: 24px; margin-bottom: 0.6rem; border-bottom: 1px solid #c3c9d0;
  background: linear-gradient(to right, #cdd2d8 0 3cm, #fff 3cm 19cm, #cdd2d8 19cm); user-select: none; }
.sem-regua .regua { display: none; }
.sem-regua .zoom { padding-top: 1rem; }
.escala { position: absolute; inset: 0; }
.escala .marca { position: absolute; top: 5px; transform: translateX(-50%); font-size: 9px; color: #59636e; font-family: Arial, sans-serif; }
.escala .marca:empty::before { content: ""; display: block; width: 1px; height: 8px; margin-top: 2px; background: #59636e; }
.escala .marca.meia::before { content: ""; display: block; width: 1px; height: 4px; margin-top: 4px; background: #8a939c; }
.marcador { position: absolute; width: 0; height: 0; transform: translateX(-50%); cursor: ew-resize; border-left: 6px solid transparent; border-right: 6px solid transparent; }
.marcador.primeira { top: 0; border-top: 8px solid #4a5560; }
.marcador.esquerda, .marcador.direita { bottom: 0; border-bottom: 8px solid #4a5560; }
.marcador:hover, .marcador.arrastando { border-top-color: var(--marca); border-bottom-color: var(--marca); }
.marcador::after { content: ""; position: absolute; left: -9px; right: -9px; top: -10px; bottom: -10px; }

.pagina { width: 21cm; min-height: 29.7cm; padding: 3cm 2cm 2cm 3cm; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.25); outline: none; }
.texto-doc hr.quebra-pagina { border: 0; border-top: 1px dashed #9aa3ad; margin: 1.2rem -2cm 1.2rem -3cm; overflow: visible; text-align: center; }
.texto-doc hr.quebra-pagina::after { content: "quebra de página"; position: relative; top: -0.65em; padding: 0 0.5rem; background: #fff; font-size: 0.72rem; color: #8a939c; font-family: Arial, sans-serif; }
.cabecalho-doc { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 860px) { .cabecalho-doc { grid-template-columns: 1fr; } }
.leitura { max-height: none; padding-top: 1rem; border: 1px solid var(--linha); border-radius: 8px; }
code { font-size: 0.85em; background: #eef1f4; padding: 0 0.3rem; border-radius: 4px; }
.assinatura { background: var(--ok-claro); border: 1px solid #b9dfc8; border-radius: 8px; padding: 0.8rem 1.1rem; max-width: 820px; }
.assinatura p { margin: 0.2rem 0; }
.codigo { font-family: Consolas, monospace; font-size: 0.8rem; word-break: break-all; color: var(--suave); }
.assinar { max-width: 820px; }

.impressao { background: #fff; }
.impressao .folha { margin: 1rem auto; }
.assinatura-rodape { margin-top: 2rem; padding-top: 0.6rem; border-top: 1px solid var(--linha); font-size: 0.85rem; }
.nao-imprime { text-align: center; }
.barra-integral { max-width: 820px; margin: 1rem auto 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.8rem; }
.barra-integral .nota { flex-basis: 100%; margin: 0; }
.capa-integral h1 { margin: 0.3rem 0 1rem; }
.capa-integral .doc-identificacao { margin-bottom: 1.2rem; }
.indice-integral { width: 100%; font-size: 0.85rem; }
.rotulo-integral { font-family: Arial, sans-serif; font-size: 8.5pt; color: #5d6b7a; border-bottom: 1px solid #d6dae0; padding-bottom: 0.25rem; margin: 0 0 0.8rem; }
.marca-rascunho { font-family: Arial, sans-serif; font-size: 9pt; font-weight: bold; color: #b3261e; border: 1.5px solid #b3261e; padding: 0.3rem 0.5rem; margin: 0 0 1rem; }
.pagina-pdf { text-align: center; }
.pagina-pdf img { max-width: 100%; max-height: 24cm; border: 1px solid #e3e6ea; }
.pagina-pdf + .pagina-pdf { margin-top: 1rem; }
@media print {
  .nao-imprime { display: none; }
  .folha { border: 0; padding: 0; max-width: none; }
  .texto-doc hr.quebra-pagina { border: 0; margin: 0; page-break-after: always; }
  .texto-doc hr.quebra-pagina::after { content: none; }
  .quebra { page-break-before: always; }
  .impressao .folha { margin: 0; }
  .pagina-pdf img { border: 0; }
  .pagina-pdf + .pagina-pdf { margin-top: 0; page-break-before: always; }
  .marca-rascunho, .texto-doc .p { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- tela do processo, no jeito do SEI: árvore à esquerda, documento à direita ---------- */
body.menu-recolhido main { padding: 0; }
body.menu-recolhido main > .aviso { margin: 0.6rem 1rem 0; }
body.menu-recolhido main > footer { display: none; }
.tela-processo { display: flex; height: calc(100vh - 58px); }
.arvore { flex: none; width: 330px; min-width: 220px; max-width: 60vw; resize: horizontal; overflow: auto; background: #fff; border-right: 4px solid #d6dae0; display: flex; flex-direction: column; font-size: 0.82rem; }
.arvore-raiz { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; padding: 0.55rem 0.6rem; border-bottom: 1px solid #edf0f3; }
.arvore-raiz a { display: flex; align-items: center; gap: 0.35rem; color: var(--sei-tabela); font-weight: 600; text-decoration: none; }
.arvore-raiz.selecionado a span { background: var(--sei-tabela); color: #fff; padding: 0 0.3rem; border-radius: 2px; }
.arvore-icones { display: inline-flex; gap: 0.2rem; }
.arvore-icones .ico { width: 20px; height: 20px; }
.arvore-lista, .arvore-lista ul { list-style: none; margin: 0; padding: 0; }
.arvore-lista { padding: 0.3rem 0 0.6rem 0.4rem; flex: 1; }
.arvore-lista summary { display: flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.3rem; cursor: pointer; white-space: nowrap; }
.arvore-lista summary small { color: var(--suave); }
.arvore-lista summary .ico { width: 20px; height: 20px; }
.arvore-lista details > ul { margin-left: 0.95rem; padding-left: 0.6rem; border-left: 1px dotted #9aa3ad; }
.arvore-lista li li { display: flex; align-items: center; gap: 0.3rem; padding: 0.12rem 0.2rem 0.12rem 0; white-space: nowrap; }
.arvore-lista li li a { display: flex; align-items: center; gap: 0.3rem; min-width: 0; color: var(--texto); text-decoration: none; }
.arvore-lista li li a:hover .nome-doc { text-decoration: underline; }
.arvore-lista li li .ico { width: 19px; height: 19px; }
.nome-doc { overflow: hidden; text-overflow: ellipsis; padding: 0 0.2rem; }
.arvore-lista li.rascunho .nome-doc { color: var(--suave); }
.arvore-lista li.selecionado .nome-doc { background: var(--sei-tabela); color: #fff; border-radius: 2px; }
.mover-doc { display: flex; flex: none; gap: 1px; }
.mover-doc form { display: inline; margin: 0; }
.mover-doc button { border: 1px solid #c9cfd6; background: #fff; border-radius: 3px; padding: 0; line-height: 0; cursor: pointer; color: #7b3fb5; }
.mover-doc button:disabled { color: #c9cfd6; cursor: default; }
.mover-doc button:not(:disabled):hover { background: #f1e9f8; }
.arvore-lista li li .mover-doc .ico { width: 16px; height: 16px; stroke-width: 2.4; }
.barra-acoes .acao.com-contador { position: relative; }
.barra-acoes .acao .contador { position: absolute; right: 1px; bottom: 0; font-size: 0.6rem; line-height: 1; padding: 1px 3px; border-radius: 6px; background: #0f9b8e; color: #fff; font-weight: 600; }
.barra-acoes .acao .contador-contratos { background: #1f63a3; }
.barra-acoes .acao.ativa { background: #f1e9f8; border-radius: 6px; }
.sigla-doc { flex: none; font-size: 0.68rem; color: var(--suave); border: 1px solid #c9cfd6; padding: 0 0.25rem; border-radius: 2px; }
.pasta-vazia { color: var(--suave); font-style: italic; padding: 0.15rem 0.2rem; }
.consultar-andamento { display: flex; align-items: center; gap: 0.4rem; padding: 0.7rem 0.6rem; border-top: 1px solid #edf0f3; color: var(--texto); text-decoration: none; }
.consultar-andamento.selecionado, .consultar-andamento:hover { background: #eef2f7; }
.consultar-andamento .ico { width: 18px; height: 18px; }

.painel-processo { flex: 1; min-width: 0; overflow: auto; padding: 0.8rem 1.2rem 2rem; background: #f5f6f8; }
.barra-processo { margin-bottom: 0.8rem; flex-wrap: wrap; }
.barra-processo .acao:disabled { opacity: 0.35; cursor: not-allowed; }
.separador-acoes { width: 1px; align-self: stretch; background: #d6dae0; margin: 0 0.3rem; }
.titulo-painel { font-size: 1.05rem; margin: 0.4rem 0 0.8rem; }
.sem-quebra { white-space: nowrap; }

.doc-sei { background: #fff; border: 1px solid #d6dae0; padding: 1.2rem 1.4rem 1rem; max-width: 1100px; }
.doc-identificacao { width: 100%; border-collapse: collapse; border: 1px solid #000; border-radius: 0; margin-bottom: 1.2rem; font-family: Arial, sans-serif; font-size: 10.5pt; }
.doc-identificacao th, .doc-identificacao td { border: 1px solid #000; padding: 0.15rem 0.4rem; background: #fff; color: #000; text-align: left; }
.doc-identificacao th { width: 120px; font-weight: 700; }
.doc-conteudo { padding: 0 0.4rem 0.6rem; }
.doc-pdf { width: 100%; height: 75vh; border: 1px solid #d6dae0; }
.doc-imagem { max-width: 100%; border: 1px solid #d6dae0; }
.doc-arquivo { padding: 1rem; background: #f5f6f8; }
.doc-bloco { display: flex; align-items: center; gap: 0.9rem; padding: 0.7rem 0; border-top: 1px solid #c9cfd6; font-size: 0.9rem; }
.doc-bloco p { margin: 0; }
.doc-selo { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 86px; height: 58px; border: 2px solid #9aa3ad; border-radius: 6px; color: var(--suave); line-height: 1.05; text-align: center; }
.doc-selo .ico { width: 24px; height: 24px; }
.doc-selo small { font-size: 0.66rem; }
.texto-erro { color: var(--erro); }
.doc-referencia { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 0.4rem 0; border-top: 3px double #9aa3ad; border-bottom: 1px solid #c9cfd6; font-size: 0.78rem; }
.doc-rodape { margin: 0.5rem 0 0; font-size: 0.75rem; color: var(--suave); }
.painel-processo .assinar { margin-top: 1rem; max-width: 1100px; }
.painel-processo .capa { max-width: 1100px; }

@media print {
  body.menu-recolhido .topo, body.menu-recolhido .menu-lateral, .arvore, .barra-processo, .painel-processo .assinar, .painel-processo .aviso { display: none !important; }
  .tela-processo { display: block; height: auto; }
  .painel-processo { overflow: visible; padding: 0; background: #fff; }
  .doc-sei { border: 0; padding: 0; max-width: none; }
}

/* ---------- ficha do processo ---------- */
.arvore-ficha { display: flex; align-items: center; gap: 0.35rem; margin: 0.3rem 0 0 0.4rem; padding: 0.3rem 0.3rem; color: var(--texto); text-decoration: none; white-space: nowrap; }
.arvore-ficha small { color: var(--suave); }
.arvore-ficha .ico { width: 20px; height: 20px; }
.arvore-ficha:hover span { text-decoration: underline; }
.arvore-ficha.selecionado span { background: var(--sei-tabela); color: #fff; padding: 0 0.2rem; border-radius: 2px; }
.ficha { max-width: 1100px; }
.ficha fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.ficha-campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0.2rem 1rem; }
.ficha-campos .largo { grid-column: 1 / -1; }
.ficha label code, .ficha h3 code { font-size: 0.7rem; color: var(--suave); font-weight: 400; }
.ficha h3 { margin: 1rem 0 0.4rem; font-size: 0.95rem; }
.tabela-itens { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.tabela-itens th { text-align: left; font-weight: 600; background: #eef2f7; padding: 0.3rem 0.4rem; }
.tabela-itens td { padding: 0.2rem 0.3rem; border-bottom: 1px solid #edf0f3; vertical-align: middle; }
.tabela-itens input { margin: 0; width: 100%; }
.tabela-itens input.curto { min-width: 5.5rem; }
.tabela-itens .num-item { width: 2.5rem; text-align: center; color: var(--suave); }
.tabela-itens tfoot td { border-bottom: 0; padding-top: 0.5rem; }
.ficha .botoes { margin-top: 0.8rem; }
.ficha button.secundario { background: #fff; color: var(--marca); border: 1px solid var(--marca); }
.ficha { overflow-x: auto; }
.tabela-itens { min-width: 640px; }
.tabela-itens th:nth-child(2), .tabela-itens td:nth-child(2) { width: 45%; }
.tabela-itens button.acao { background: transparent; border: 0; padding: 0.15rem; box-shadow: none; }
.tabela-itens button.acao .ico { width: 18px; height: 18px; }

/* pesquisa de preços */
.lista-pdm { columns: 2; margin: 0.3rem 0 0.8rem; padding-left: 1.2rem; font-size: 0.9rem; }
.lista-pdm small { color: var(--suave); }
@media (max-width: 800px) { .lista-pdm { columns: 1; } }
.cartao .botoes { flex-wrap: wrap; align-items: flex-end; }
.cartao .botoes select { min-width: 9rem; }
.rolagem { overflow-x: auto; }
.rolagem table { min-width: 760px; }
.rolagem td:nth-child(2) { min-width: 12rem; }

/* contratos e atas */
[hidden] { display: none !important; }
.semaforo { display: inline-block; font-size: 0.78rem; font-weight: 600; padding: 0.1rem 0.55rem; border-radius: 99px; white-space: nowrap; background: #eef1f4; color: var(--suave); }
.semaforo.verde { background: var(--ok-claro); color: var(--ok); }
.semaforo.amarelo { background: #fff6c7; color: #7a5d00; }
.semaforo.laranja { background: var(--alerta-claro); color: var(--alerta); }
.semaforo.vermelho, .semaforo.vencido { background: var(--erro-claro); color: var(--erro); }
.resumo-contrato { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0.8rem; margin: 1rem 0; }
.resumo-contrato > div { background: var(--papel); border: 1px solid var(--linha); border-radius: 8px; padding: 0.7rem 0.9rem; display: flex; flex-direction: column; gap: 0.2rem; }
.resumo-contrato .rotulo { font-size: 0.75rem; color: var(--suave); text-transform: uppercase; letter-spacing: 0.03em; }
.resumo-contrato .semaforo { align-self: flex-start; }
.dados-contrato { font-size: 0.88rem; margin-bottom: 0.6rem; }
.dados-contrato th { text-align: left; color: var(--suave); font-weight: 600; padding-right: 0.6rem; white-space: nowrap; }
.dados-contrato td { padding-right: 1.4rem; }
.eventos form { margin-top: 0.3rem; }
@media (max-width: 700px) { .dados-contrato, .dados-contrato tbody, .dados-contrato tr, .dados-contrato th, .dados-contrato td { display: block; } }

/* ==========================================================================
   Acabamento visual (30/10/2026). Camada só de aparência, por cima das regras
   acima: não muda tela, fluxo nem o texto dos documentos (.texto-doc, .pagina e
   .doc-identificacao ficam como no Word). Para voltar ao visual anterior, apague
   daqui até o fim do arquivo.
   ========================================================================== */
:root {
  --fundo: #f2f4f7;
  --papel: #ffffff;
  --texto: #18212c;
  --suave: #5b6878;
  --linha: #e1e5eb;
  --marca: #173d63;
  --marca-claro: #e8eef5;
  --sei-azul: #1a4e80;
  --sei-azul-escuro: #12395f;
  --sei-menu: #121820;
  --sei-tabela: #1d4670;
  --acento: #b08d3c;
  --sombra: 0 1px 2px rgba(16, 24, 40, 0.05), 0 1px 3px rgba(16, 24, 40, 0.06);
  --sombra-alta: 0 4px 12px rgba(16, 24, 40, 0.08), 0 1px 3px rgba(16, 24, 40, 0.06);
  --raio: 10px;
}
body { font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif; font-size: 14.5px; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .titulo-pagina, .titulo-painel { font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; letter-spacing: -0.01em; color: #0f1b29; }
h1 { font-weight: 600; font-size: 1.55rem; }
h2 { font-weight: 600; font-size: 1.08rem; }
a { text-underline-offset: 2px; }
::selection { background: #cfe0f3; }

/* topo: azul-marinho com fio dourado */
.topo { background: linear-gradient(180deg, #1a4e80 0%, #164572 100%); box-shadow: inset 0 -2px 0 var(--acento), 0 2px 8px rgba(9, 22, 40, 0.18); }
.marca .logo { box-shadow: none; }
.marca-nome { font-weight: 600; letter-spacing: 0.005em; }
.busca-topo { border-radius: 8px; height: 32px; background: rgba(255, 255, 255, 0.96); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08); }
.topo .busca-topo input[name] { border-radius: 8px; height: 32px; background: transparent; }
.unidade-atual { border-radius: 6px; letter-spacing: 0.04em; color: var(--sei-azul) !important; }
.icones-topo { gap: 0.4rem; }
.icones-topo a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; opacity: 0.9; transition: background 0.15s, opacity 0.15s; }
.icones-topo a:hover { opacity: 1; transform: none; background: rgba(255, 255, 255, 0.12); }
.icones-topo .ico { width: 21px; height: 21px; stroke-width: 1.9; }

/* menu lateral: grafite, item atual com barra dourada */
.menu-lateral { background: var(--sei-menu); padding-top: 0.6rem; border-right: 1px solid #0b1016; }
.menu-lateral input.filtro-menu[data-filtro-menu] { width: calc(100% - 1.4rem); margin: 0 0.7rem 0.7rem; padding: 0.45rem 0.65rem; border-radius: 7px; background: #1d2530; color: #e6ebf1; border: 1px solid #2a3442; }
.menu-lateral input.filtro-menu[data-filtro-menu]::placeholder { color: #8794a3; }
.menu-lateral nav a { margin: 1px 0.5rem; padding: 0.55rem 0.75rem; border-radius: 7px; color: #c9d2dc; font-size: 0.92rem; transition: background 0.15s, color 0.15s; }
.menu-lateral nav a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.menu-lateral nav a.atual { background: rgba(255, 255, 255, 0.09); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--acento); }
.menu-lateral .ico { width: 19px; height: 19px; opacity: 0.9; }
.menu-rodape { margin: 1.4rem 1.2rem 0; padding-top: 0.9rem; border-top: 1px solid #232c38; color: #8794a3; }

main { padding: 1.5rem 2rem 2.4rem; }
main footer { color: #8a96a5; font-size: 0.76rem; }

/* superfícies */
.cartao, .capa, .checklist, .resumo-contrato > div { border-color: var(--linha); border-radius: var(--raio); box-shadow: var(--sombra); }
.cartao { padding: 1.25rem 1.45rem; }
table { border-radius: var(--raio); box-shadow: var(--sombra); }
th { background: #f5f7fa; color: #4c5968; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
td { font-variant-numeric: tabular-nums; }

/* tabelas do controle: cabeçalho marinho, linhas leves */
.tabela-sei { border: 1px solid var(--linha); border-radius: var(--raio); overflow: hidden; box-shadow: var(--sombra); }
.tabela-sei thead th { background: var(--sei-tabela); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.65rem 0.7rem; border-bottom: 0; }
.tabela-sei td { padding: 0.55rem 0.7rem; border-bottom-color: #eef1f5; }
.tabela-sei tbody tr:nth-child(even) td { background: #fafbfd; }
.tabela-sei tbody tr:hover td { background: #eef4fb; }
.contagem { font-size: 0.74rem; letter-spacing: 0.02em; }

/* barra de ícones */
.barra-acoes { border-color: var(--linha); border-radius: var(--raio); box-shadow: var(--sombra); padding: 0.3rem 0.4rem; }
.barra-acoes .acao { border-radius: 8px; transition: background 0.12s; }
.ver-por a.atual { background: var(--sei-azul); border-radius: 5px; }

/* formulários */
label { font-weight: 500; font-size: 0.9rem; color: #2b3746; }
input:not([type=radio]):not([type=checkbox]), select, textarea { border-color: #d3d9e1; border-radius: 8px; padding: 0.52rem 0.7rem; transition: border-color 0.15s, box-shadow 0.15s; }
input:not([type=radio]):not([type=checkbox]):hover, select:hover, textarea:hover { border-color: #b8c2cf; }
input:not([type=radio]):not([type=checkbox]):focus, select:focus, textarea:focus { outline: none; border-color: var(--sei-azul); box-shadow: 0 0 0 3px rgba(26, 78, 128, 0.15); }
input[type=checkbox], input[type=radio] { accent-color: var(--sei-azul); }

/* botões (os de ícone, das barras e do editor, ficam como estavam) */
button, .botao { border-radius: 8px; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.01em; padding: 0.55rem 1.15rem; background: var(--marca); border-color: var(--marca); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.12); transition: background 0.15s, box-shadow 0.15s, border-color 0.15s; }
button:hover:not(:disabled), .botao:hover { background: #102f4e; border-color: #102f4e; }
button:focus-visible, .botao:focus-visible, a:focus-visible { outline: 2px solid var(--sei-azul); outline-offset: 2px; }
.botao.secundario, button.secundario, .ficha button.secundario { background: #fff; color: var(--marca); border-color: #c5cfdb; box-shadow: none; }
.botao.secundario:hover, button.secundario:hover:not(:disabled), .ficha button.secundario:hover:not(:disabled) { background: #f2f6fa; border-color: var(--marca); color: var(--marca); }
button.perigo { background: #fff; box-shadow: none; }
button.perigo:hover:not(:disabled) { background: var(--erro-claro); border-color: var(--erro); }
.barra-acoes .acao, .botao-menu, .busca-topo button, .marcar-todos, .tabela-itens button.acao { box-shadow: none; font-weight: inherit; padding: 0; }
.botao-menu { padding: 0.3rem; }
.busca-topo button { padding: 0 0.4rem; }
.tabela-itens button.acao { padding: 0.15rem; }
.botao-menu:hover:not(:disabled), .busca-topo button:hover:not(:disabled), .marcar-todos:hover:not(:disabled), .tabela-itens button.acao:hover:not(:disabled) { background: transparent; border-color: transparent; }
.botao-menu:hover:not(:disabled) { background: rgba(255, 255, 255, 0.12); border-radius: 8px; }
.barra-acoes .acao:hover:not(:disabled) { background: #f0f4f9; border-color: transparent; }
.faixa button { box-shadow: none; font-weight: 400; letter-spacing: 0; border-radius: 4px; padding: 0.15rem 0.45rem; font-size: 0.88rem; }
.faixa button:hover:not(:disabled) { background: #e2e6eb; border-color: #c9cfd6; }
.faixa button.ativo { background: #cfe0f3; border-color: #9dbbe0; }
.faixa button.destaque { background: #fff176; border-color: #e0c200; }
.faixa .estilos button { font-size: 0.8rem; background: #fff; border-color: #d6dae0; }
.faixa .aba { background: transparent; border: 0; border-radius: 6px 6px 0 0; padding: 0.35rem 0.9rem; font-size: 0.88rem; }
.faixa .aba:hover:not(:disabled) { background: rgba(255, 255, 255, 0.12); }
.faixa .aba.ativa, .faixa .aba.ativa:hover:not(:disabled) { background: #f3f4f6; font-weight: 600; }

/* avisos e selos */
.aviso { border-radius: 8px; border: 1px solid transparent; padding: 0.75rem 1rem; font-size: 0.92rem; }
.aviso.ok { border-color: #c6e6d3; }
.aviso.erro { border-color: #f3c9c4; }
.aviso.info { border-color: #cfdcea; }
.selo, .semaforo { font-weight: 600; letter-spacing: 0.01em; }

/* capa do processo e fases */
.capa { padding: 1.3rem 1.5rem; border-top: 3px solid var(--marca); }
.rotulo { font-size: 0.72rem; letter-spacing: 0.07em; font-weight: 600; }
.fases { gap: 0.4rem; }
.fases li { border-radius: 8px; background: #e8ecf1; font-size: 0.82rem; padding: 0.55rem 0.7rem; }
.fases li.atual { background: var(--marca); box-shadow: 0 2px 6px rgba(23, 61, 99, 0.25); }
.checklist li { padding: 0.7rem 1rem; }

/* tela do processo */
.arvore { border-right: 1px solid var(--linha); box-shadow: 1px 0 0 #eef1f5; }
.arvore-raiz { padding: 0.7rem 0.75rem; background: #f8fafc; }
.arvore-raiz.selecionado a span, .arvore-lista li.selecionado .nome-doc, .arvore-ficha.selecionado span { background: var(--sei-tabela); border-radius: 4px; padding: 0 0.3rem; }
.arvore-ficha { border-radius: 6px; margin-right: 0.4rem; }
.arvore-lista summary { border-radius: 6px; }
.arvore-lista summary:hover, .arvore-ficha:hover { background: #f2f5f9; }
.sigla-doc { border-radius: 4px; border-color: #d3d9e1; background: #f8fafc; }
.painel-processo { background: var(--fundo); padding: 1rem 1.4rem 2rem; }
.doc-sei { border-color: var(--linha); border-radius: 4px; box-shadow: var(--sombra-alta); }
.andamentos li { border-left-color: #cfdcea; }

/* contratos */
.resumo-contrato > div { padding: 0.85rem 1rem; }
.resumo-contrato strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.dados-contrato { box-shadow: none; }

@media (max-width: 600px) {
  .topo { gap: 0.4rem; padding: 0 0.5rem; }
  .icones-topo { gap: 0; }
  .icones-topo a { width: 30px; }
  .icones-topo .ico { width: 19px; height: 19px; }
  main { padding: 1rem 1rem 2rem; }
}

/* o que é documento ou impressão não leva sombra nem caixa alta */
.texto-doc table, .doc-identificacao, .tabela-itens { box-shadow: none; border-radius: 0; }
.texto-doc th { text-transform: none; letter-spacing: 0; background: #eef1f4; color: #5d6b7a; }
.doc-identificacao th { text-transform: none; letter-spacing: 0; }
.tabela-itens th { text-transform: none; letter-spacing: 0; font-size: 0.85rem; }
@media print {
  .doc-sei, .cartao, table, .tabela-sei { box-shadow: none !important; }
}

/* ---------- catálogo de objetos ---------- */
.grade-objetos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.objeto-card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; }
.objeto-card:hover { outline: 2px solid #c9a227; }
.objeto-icone .ico { width: 40px; height: 40px; }
.objeto-card small { color: #5f6b77; }
.opcoes-objeto { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.opcao-objeto { border: 1px solid #d5dbe1; border-radius: 6px; padding: 8px 12px; }
.opcao-objeto legend { font-weight: bold; padding: 0 4px; }
.opcao-objeto .usado { font-size: .85em; color: #5f6b77; margin: 0 0 6px; }
.opcao-objeto .escolha { display: block; margin: 4px 0; }
.opcao-objeto input[type=text], .opcao-objeto input:not([type]) { width: 100%; }
.sugerido { background: #e6f4ea; color: #1e8e3e; border-radius: 3px; padding: 0 4px; }
.alerta-opcao { display: block; font-size: .85em; color: #a05a00; margin-left: 22px; }
.itens-catalogo textarea { width: 100%; min-width: 280px; }
.itens-catalogo .ref { white-space: nowrap; color: #5f6b77; }
.alertas-origem { margin: 16px 0; }
.catalogo-resumo h3 .ico { vertical-align: middle; }
.itens-catalogo input[name^=unidade_] { width: 7em; min-width: 7em; }
.itens-catalogo input[name^=quantidade_] { width: 5em; min-width: 5em; }
.itens-catalogo textarea { min-width: 180px; }
.objeto-form { overflow-x: auto; }

/* Entrada, senha e usuários */
.formulario-entrada { display: flex; flex-direction: column; gap: .75rem; }
.formulario-entrada label { display: flex; flex-direction: column; gap: .25rem; }
.formulario-entrada input { width: 100%; box-sizing: border-box; }
.formulario-entrada button { align-self: flex-start; }
.acoes-usuario { display: flex; gap: .4rem; flex-wrap: wrap; }
.acoes-usuario form { margin: 0; }
/* Master do órgão: seletor de setor no topo */
.setor-master { margin: 0; }
.setor-master label { display: flex; white-space: nowrap; flex-wrap: nowrap; align-items: center; gap: .3rem; background: #fff; color: var(--sei-azul); border-radius: 6px; padding: .15rem .3rem .15rem .6rem; font-size: .78rem; font-weight: 600; letter-spacing: .04em; }
.setor-master select { border: 0; background: transparent; color: var(--sei-azul); font-weight: 600; font-size: .78rem; padding: .15rem; cursor: pointer; }
.selo-master { background: #e8f1ea; color: #2f6b3a; border-radius: 4px; padding: 0 .35rem; }

/* Autuação: tipo de processo e contrato ligado */
.tipo-processo, .vinculo-contrato { border: 1px solid var(--linha); border-radius: 8px; padding: .6rem .9rem .2rem; margin: 0 0 .9rem; min-width: 0; }
.tipo-processo legend, .vinculo-contrato legend { font-weight: 600; padding: 0 .3rem; }
.tipo-processo select { width: 100%; font-weight: 600; }
.tipo-processo .nota { margin: .4rem 0 .6rem; color: var(--suave); }
.vinculo-contrato[hidden], .campos-contrato-livre[hidden] { display: none; }
.capa .vinculo { margin-top: .4rem; }
.lista-vinculados { padding-left: 1.2rem; }
.escolha-modelo select { max-width: 100%; }

/* Segundo fator */
.qr-fator { display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem; margin: 0.8rem 0; }
.qr-fator svg { background: #fff; border-radius: 6px; max-width: 100%; height: auto; }
.chave-fator { font-size: 1rem; letter-spacing: 0.05em; word-break: break-all; }
.passos-fator li { margin-bottom: 0.3rem; }
.codigos-recuperacao { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 0.3rem 1rem; }
.codigos-recuperacao code { font-size: 1.05rem; color: var(--texto, #222); }
.form-sair { display: none; }

/* Sicx: ordem de compra e prazos na tela do processo */
.sicx-dados { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; margin: .5rem 0 1rem; }
.sicx-dados label { display: flex; flex-direction: column; gap: .25rem; font-size: .9rem; }
.sicx-prazos { border-collapse: collapse; margin: .5rem 0; }
.sicx-prazos th, .sicx-prazos td { border-bottom: 1px solid #dde3ea; padding: .35rem .75rem; text-align: left; }

/* ---------- autuação: tela em etapas com resumo ao lado ---------- */
.so-leitor { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.autuacao { max-width: 1120px; margin: 0.4rem auto 0; }
.autuacao-cabeca { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.3rem; }
.autuacao-cabeca h1 { margin: 0.05rem 0 0.15rem; font-size: 1.65rem; }
.autuacao-cabeca .nota { margin: 0; }
.autuacao-selo { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 14px; color: #fff;
  background: linear-gradient(145deg, #1f5a92, var(--marca)); box-shadow: 0 6px 16px rgba(23, 61, 99, 0.25), inset 0 -2px 0 var(--acento); }
.autuacao-selo .ico { width: 26px; height: 26px; }
.autuacao-selo .ico .claro { stroke: var(--marca); }
.autuacao-trilha { margin: 0; font-size: 0.78rem; color: var(--suave); letter-spacing: 0.02em; }
.autuacao-trilha a { color: var(--suave); text-decoration: none; }
.autuacao-trilha a:hover { color: var(--marca); text-decoration: underline; }

.autuacao-grade { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.25rem; align-items: start; }
.autuacao-principal { display: grid; gap: 1rem; min-width: 0; }
.etapa { padding: 1.3rem 1.5rem 1.1rem; }
.etapa-cabeca { display: flex; gap: 0.8rem; align-items: flex-start; margin-bottom: 1rem; }
.etapa-cabeca h2 { margin: 0; font-size: 1.02rem; }
.etapa-cabeca .nota { margin: 0.1rem 0 0; font-size: 0.82rem; }
.etapa-num { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; font-weight: 700; font-size: 0.85rem;
  color: var(--marca); background: var(--marca-claro); box-shadow: inset 0 0 0 1px #c9d7e6; }
.etapa label:last-child { margin-bottom: 0.2rem; }
.opcional { margin-left: 0.3rem; padding: 0.05rem 0.45rem; border-radius: 999px; background: #eef1f5; color: var(--suave); font-size: 0.7rem; font-weight: 500; }

/* tipo de processo: cartões por grupo; o select continua sendo o campo enviado */
.tipo-processo { border: 0; padding: 0; margin: 0; min-width: 0; position: relative; }
.tipo-processo.com-cartoes select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tipos { display: grid; gap: 0.95rem; }
.tipos[hidden] { display: none; }
.tipos-titulo { margin: 0 0 0.45rem; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: #6a7787; }
.tipos-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.5rem; }
button.tipo { display: flex; flex-direction: column; align-items: flex-start; gap: 0.2rem; text-align: left; position: relative;
  padding: 0.7rem 0.85rem 0.7rem 2.2rem; background: #fff; color: var(--texto); border: 1px solid #d9dfe7; border-radius: 10px;
  box-shadow: none; font-weight: 400; letter-spacing: 0; transition: border-color 0.15s, background 0.15s, box-shadow 0.15s; }
button.tipo::before { content: ""; position: absolute; left: 0.8rem; top: 0.85rem; width: 14px; height: 14px; box-sizing: border-box; border-radius: 50%;
  border: 1.5px solid #b5c0cd; background: #fff; transition: border 0.15s; }
button.tipo strong { font-size: 0.88rem; font-weight: 600; line-height: 1.3; }
button.tipo small { font-size: 0.74rem; color: var(--suave); }
button.tipo:hover:not(:disabled) { background: #f7f9fc; border-color: #a9b8ca; }
button.tipo.escolhido, button.tipo.escolhido:hover:not(:disabled) { background: var(--marca-claro); border-color: var(--marca);
  box-shadow: 0 0 0 1px var(--marca), 0 4px 12px rgba(23, 61, 99, 0.12); }
button.tipo.escolhido::before { border: 4.5px solid var(--marca); }
button.tipo.escolhido strong { color: var(--marca); }
.tipo-processo [data-fases-tipo] { margin: 0.8rem 0 0; font-size: 0.8rem; }
.tipo-processo.com-cartoes [data-fases-tipo] { display: none; }

.aviso-catalogo { display: flex; gap: 0.7rem; align-items: flex-start; margin-top: 1rem; padding: 0.75rem 0.9rem; border-radius: 10px;
  background: linear-gradient(90deg, #fbf6ea, #fdfbf5); border: 1px solid #ecdcb5; color: #5b4a20; }
.aviso-catalogo[hidden] { display: none; }
.aviso-catalogo .ico { width: 20px; height: 20px; color: var(--acento); margin-top: 0.1rem; }
.aviso-catalogo p { margin: 0; font-size: 0.85rem; }
.aviso-catalogo a { color: #7a5a14; font-weight: 600; }

.vinculo-contrato { margin: 0.4rem 0 0; padding: 0.9rem 1rem 0.3rem; border: 1px dashed #c5d1de; border-radius: 10px; background: #f8fafc; }
.vinculo-contrato[hidden] { display: none; }
.vinculo-contrato legend { display: flex; align-items: center; gap: 0.35rem; padding: 0 0.4rem; font-weight: 600; font-size: 0.88rem; color: var(--marca); }
.vinculo-contrato legend .ico { width: 18px; height: 18px; }
.campos-contrato-livre[hidden] { display: none; }
.duas-colunas { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.8rem; }

.campo-moeda { display: flex; align-items: stretch; margin-top: 0.3rem; border: 1px solid #d3d9e1; border-radius: 8px; background: #fff; overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s; }
.campo-moeda > span { display: grid; place-items: center; padding: 0 0.75rem; background: #f3f5f8; border-right: 1px solid #e1e5eb; color: var(--suave); font-weight: 600; font-size: 0.85rem; }
.campo-moeda input:not([type=radio]):not([type=checkbox]) { border: 0; margin: 0; border-radius: 0; box-shadow: none; font-variant-numeric: tabular-nums; }
.campo-moeda input:not([type=radio]):not([type=checkbox]):focus { box-shadow: none; }
.campo-moeda:focus-within { border-color: var(--sei-azul); box-shadow: 0 0 0 3px rgba(26, 78, 128, 0.15); }

/* resumo lateral */
.autuacao-resumo { position: sticky; top: 76px; }
.resumo { padding: 1.2rem 1.25rem; border-top: 3px solid var(--marca); }
.resumo-rotulo { margin: 0 0 0.5rem; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: #6a7787; }
.resumo-grupo { display: inline-block; margin: 0 0 0.35rem; padding: 0.1rem 0.55rem; border-radius: 999px; background: #f6efdc; color: #7a5a14; font-size: 0.72rem; font-weight: 600; }
.resumo-tipo { margin: 0 0 0.9rem; font-size: 1.05rem; font-weight: 600; color: #0f1b29; line-height: 1.3; }
.resumo dl { margin: 0 0 1.1rem; padding: 0.7rem 0; border-top: 1px solid var(--linha); border-bottom: 1px solid var(--linha); }
.resumo dl div { display: flex; justify-content: space-between; gap: 0.8rem; padding: 0.22rem 0; font-size: 0.83rem; }
.resumo dt { color: var(--suave); }
.resumo dd { margin: 0; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.linha-fases { list-style: none; margin: 0 0 1rem; padding: 0; counter-reset: fase; }
.linha-fases li { position: relative; padding: 0 0 0.75rem 1.7rem; font-size: 0.84rem; counter-increment: fase; }
.linha-fases li::before { content: counter(fase); position: absolute; left: 0; top: 0.05rem; display: grid; place-items: center; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; border: 1.5px solid #c3cdd9; color: var(--suave); font-size: 0.66rem; font-weight: 700; box-sizing: border-box; }
.linha-fases li::after { content: ""; position: absolute; left: 8px; top: 1.35rem; bottom: 0.15rem; width: 1.5px; background: #dde3ea; }
.linha-fases li:last-child { padding-bottom: 0; }
.linha-fases li:last-child::after { display: none; }
.linha-fases li.inicial { font-weight: 600; color: var(--marca); }
.linha-fases li.inicial::before { background: var(--marca); border-color: var(--marca); color: #fff; }
.linha-fases em { margin-left: 0.4rem; padding: 0.02rem 0.4rem; border-radius: 999px; background: var(--marca-claro); font-style: normal; font-size: 0.68rem; font-weight: 600; }
.resumo > .nota { font-size: 0.78rem; margin: 0 0 0.9rem; }
.botao-autuar { display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; padding: 0.7rem 1rem; font-size: 0.95rem; }
.botao-autuar .ico { width: 20px; height: 20px; }
.botao-autuar .ico .claro { stroke: var(--marca); }
.botao-autuar:hover .ico .claro { stroke: #102f4e; }

@media (max-width: 900px) {
  .autuacao-grade { grid-template-columns: 1fr; }
  .autuacao-resumo { position: static; }
  .duas-colunas { grid-template-columns: 1fr; }
}

/* ---------- painel: saudação, indicadores e processos por fase ---------- */
.saudacao-painel { margin: -0.6rem 0 1rem; color: var(--suave); font-size: 0.92rem; }
.saudacao-painel strong { color: var(--texto); }
.indicadores { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.7rem; margin: 0 0 1rem; }
.indicador { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.5rem; padding: 0.8rem 1rem; background: var(--papel);
  border: 1px solid var(--linha); border-radius: var(--raio, 10px); box-shadow: var(--sombra); }
.indicador .rotulo { flex-basis: 100%; display: flex; align-items: center; gap: 0.35rem; font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.07em; color: var(--suave); }
.indicador .rotulo .ico { width: 14px; height: 14px; }
.indicador strong { font-size: 1.85rem; font-weight: 400; line-height: 1.1; font-variant-numeric: tabular-nums; color: #0f1b29; }
.indicador .chip { padding: 0.05rem 0.5rem; border-radius: 999px; background: var(--marca-claro); color: var(--marca); font-size: 0.7rem; font-weight: 600; }
.indicador .chip.alerta { background: var(--alerta-claro); color: var(--alerta); }
.indicador .chip.erro { background: var(--erro-claro); color: var(--erro); }

.fases-painel { margin: 0 0 1.2rem; }
.fases-cabeca { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.8rem; }
.fases-cabeca h2 { margin: 0; }
.barras-fase { display: flex; gap: 0.9rem; align-items: flex-end; overflow-x: auto; padding-bottom: 0.2rem; }
.barra-fase { flex: 1 0 74px; max-width: 130px; display: flex; flex-direction: column; align-items: center; gap: 0.25rem; text-align: center; }
.barra-fase .coluna { position: relative; width: 100%; height: 120px; border-radius: 6px;
  background: repeating-linear-gradient(0deg, #eef1f5 0 5px, transparent 5px 8px); }
.barra-fase .cheio { position: absolute; left: 0; right: 0; bottom: 0; min-height: 8px; border-radius: 4px;
  background: repeating-linear-gradient(0deg, var(--cor) 0 5px, transparent 5px 8px); }
.barra-fase strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.barra-fase span { font-size: 0.7rem; color: var(--suave); line-height: 1.25; }

/* botão do tema, no topo, com o mesmo jeito dos ícones */
.alternar-tema { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; background: transparent; border: 0; border-radius: 8px; color: #fff; box-shadow: none; opacity: 0.9; }
.alternar-tema:hover:not(:disabled) { background: rgba(255, 255, 255, 0.12); border-color: transparent; opacity: 1; }
.alternar-tema .ico { width: 20px; height: 20px; stroke-width: 1.9; }

/* ---------- barra de ações com linha neon (V1 · Neon Wave Arch) ---------- */
.barra-acoes.com-onda { position: relative; border-radius: 18px; padding-bottom: 0.45rem; }
.barra-acoes.com-onda > :not(.onda-neon) { position: relative; z-index: 1; }
.onda-neon { position: absolute; left: 0; top: 0; z-index: 0; overflow: visible; pointer-events: none; }
.onda-linha { fill: none; stroke: var(--marca); stroke-width: 1.8; stroke-linecap: round; opacity: 0.85; }
.onda-brilho { fill: none; stroke: var(--marca); stroke-width: 7; stroke-linecap: round; opacity: 0.16; filter: blur(3px); }
.barra-acoes.com-onda .acao { transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.15s; }
.barra-acoes.com-onda .acao:hover:not(:disabled) { background: transparent; border-color: transparent; }
.barra-acoes.com-onda .acao.acesa { transform: translateY(-2px); }
.barra-acoes.com-onda .acao.acesa .ico { filter: drop-shadow(0 2px 4px rgba(23, 61, 99, 0.25)); }
@media (prefers-reduced-motion: reduce) { .barra-acoes.com-onda .acao { transition: none; } }

/* Logomarca do grupo ALVÉRDI no rodapé, vetorial e sem fundo: a versão para fundo claro no tema claro
   e a versão para fundo escuro no tema noite. */
main footer.rodape-alverdi { padding: 1.2rem 1rem 0.6rem; }
.rodape-alverdi img { display: block; margin: 0 auto; width: 190px; max-width: 60%; height: auto; }
.rodape-alverdi .alverdi-escuro { display: none; }
html[data-tema="noite"] .rodape-alverdi .alverdi-claro { display: none; }
html[data-tema="noite"] .rodape-alverdi .alverdi-escuro { display: block; }

/* Barra do painel com ícones de interface tecnológica: brilho leve na cor de cada um e,
   ao passar o mouse, o anel do relógio, a mira da pesquisa e as setas de atualizar giram. */
.ico .tenue { fill: currentColor; fill-opacity: 0.14; }
.ico .fino { stroke-width: 1.1; opacity: 0.7; }
.ico .no { fill: currentColor; stroke: none; }
.barra-hud .ico { width: 30px; height: 30px; stroke-width: 1.6; filter: drop-shadow(0 0 2px color-mix(in srgb, currentColor 45%, transparent)); transition: transform 0.2s, filter 0.2s; }
.barra-hud .acao:hover .ico { transform: translateY(-1px); filter: drop-shadow(0 0 5px color-mix(in srgb, currentColor 70%, transparent)); }
.barra-hud .giro { transform-box: fill-box; transform-origin: center; }
.barra-hud .acao:hover .giro { animation: hud-giro 2.4s linear infinite; }
@keyframes hud-giro { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .barra-hud .acao:hover .giro { animation: none; } }
html[data-tema="noite"] .barra-hud .ico { filter: drop-shadow(0 0 4px color-mix(in srgb, currentColor 65%, transparent)); }
