:root {
  --azul: #4073B7; --azul-escuro: #1F3A5F; --azul-hover: #345f9a;
  --verde: #01A742; --verde-claro: #93BC4D;
  --ambar: #B7791F; --vinho: #9B2C2C;
  --fundo: #F5F7FA; --papel: #FFFFFF; --linha: #E1E6EE; --texto: #1d2733; --texto-suave: #5b6778;
  --fonte: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --raio: 6px;
}
@media (prefers-color-scheme: dark) {
  :root { --fundo: #11161d; --papel: #19212b; --linha: #2a3441; --texto: #e6ebf2; --texto-suave: #9aa7b8; --azul: #6a98d6; --azul-escuro: #cfdcf0; --azul-hover: #86aee3; }
}
* { box-sizing: border-box; }
html { font-size: 16px; } body { overflow-x: hidden; }
body { margin: 0; font-family: var(--fonte); background: var(--fundo); color: var(--texto); line-height: 1.45; }
h1, h2, h3 { color: var(--azul-escuro); font-weight: 600; margin: 0 0 .4rem; letter-spacing: -.01em; }
h1 { font-size: 1.9rem; } h2 { font-size: 1.2rem; }
a { color: var(--azul); }
button, input, select { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* campos e botões */
label { display: block; font-size: .9rem; font-weight: 500; margin: 1rem 0 .3rem; color: var(--azul-escuro); }
input[type=text], input[type=email], input[type=password], select {
  width: 100%; padding: .65rem .8rem; border: 1px solid var(--linha); border-radius: var(--raio); background: var(--papel); color: var(--texto); }
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--azul); outline-offset: 1px; }
.btn { display: inline-block; border: 0; border-radius: var(--raio); background: var(--azul); color: #fff; padding: .7rem 1.2rem; font-weight: 600; cursor: pointer; }
.btn:hover { background: var(--azul-hover); } .btn[disabled] { opacity: .6; cursor: wait; }
.btn.bloco { width: 100%; }
.btn.sec { background: transparent; color: var(--azul); border: 1px solid var(--azul); }
.btn.sec:hover { background: rgba(64,115,183,.08); }
.btn.perigo { background: var(--vinho); }
.btn.pequeno { padding: .35rem .7rem; font-size: .85rem; }
.msg { margin-top: 1rem; padding: .65rem .8rem; border-radius: var(--raio); font-size: .92rem; display: none; }
.msg.erro { display: block; background: rgba(155,44,44,.08); color: var(--vinho); border: 1px solid rgba(155,44,44,.3); }
.msg.ok { display: block; background: rgba(1,167,66,.08); color: #017a30; border: 1px solid rgba(1,167,66,.35); }
@media (prefers-color-scheme: dark) { .msg.ok { color: #4fd68a; } .msg.erro { color: #ec8a8a; } }

/* login */
.login-pagina { min-height: 100vh; display: grid; place-items: center; padding: 1rem; }
.login-cartao { width: 100%; max-width: 440px; background: var(--papel); border: 1px solid var(--linha); border-radius: 8px; padding: 2rem 2.2rem 1.6rem; box-shadow: 0 8px 28px rgba(31,58,95,.07); }
.login-cartao .logo { display: block; margin: 0 auto 1.1rem; max-width: 280px; height: auto; }
.login-cartao h1 { text-align: center; font-size: 1.35rem; margin-bottom: .1rem; }
.login-cartao .sub { text-align: center; color: var(--texto-suave); margin: 0 0 1.2rem; }
.login-cartao hr, .filete { border: 0; border-top: 1px solid var(--linha); margin: 1rem 0; }
.campo-senha { position: relative; } .campo-senha input { padding-right: 3rem; }
.campo-senha button { position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: .45rem .6rem; color: var(--texto-suave); cursor: pointer; font-size: .85rem; }
.rodape-login { text-align: center; color: var(--texto-suave); font-size: .85rem; margin-top: 1.2rem; }

/* estrutura */
.topo { background: var(--papel); border-bottom: 2px solid var(--verde-claro); }
.topo-linha { display: flex; align-items: center; gap: 1.2rem; padding: .7rem 1.5rem; max-width: 1500px; margin: 0 auto; }
.topo .logo { height: 42px; width: auto; flex-shrink: 0; }
.topo .titulo strong { display: block; font-size: 1.25rem; color: var(--azul-escuro); line-height: 1.15; }
.topo .titulo span { font-size: .85rem; color: var(--texto-suave); }
.topo .espaco { flex: 1; }
.usuario { position: relative; }
.usuario > button { background: none; border: 0; display: flex; align-items: center; gap: .6rem; cursor: pointer; color: var(--texto); padding: .3rem; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--fundo); border: 1px solid var(--linha); display: grid; place-items: center; font-size: .85rem; font-weight: 600; color: var(--azul-escuro); }
.menu-usuario { position: absolute; right: 0; top: calc(100% + 6px); background: var(--papel); border: 1px solid var(--linha); border-radius: var(--raio); min-width: 200px; box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 20; display: none; }
.menu-usuario.aberto { display: block; }
.menu-usuario .quem { padding: .7rem 1rem; border-bottom: 1px solid var(--linha); font-size: .85rem; color: var(--texto-suave); }
.menu-usuario button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: .65rem 1rem; cursor: pointer; color: var(--texto); }
.menu-usuario button:hover { background: var(--fundo); }
.nav { background: var(--papel); border-bottom: 1px solid var(--linha); }
.nav ul { list-style: none; margin: 0 auto; padding: 0 1rem; display: flex; gap: .2rem; max-width: 1500px; overflow-x: auto; }
.nav a { display: block; padding: .85rem .8rem; text-decoration: none; color: var(--texto); white-space: nowrap; border-bottom: 3px solid transparent; font-size: .95rem; }
.nav a:hover { color: var(--azul); }
.nav a[aria-current=page] { color: var(--azul); border-bottom-color: var(--azul); font-weight: 600; }
main { max-width: 1500px; margin: 0 auto; padding: 1.8rem 1.5rem 3rem; }
.data-pos { color: var(--texto-suave); margin: 0 0 1.4rem; }
.cartoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.cartao { background: var(--papel); border: 1px solid var(--linha); border-radius: var(--raio); padding: 1.1rem 1.3rem; }
.cartao .rotulo { color: var(--texto-suave); font-size: .92rem; }
.cartao .numero { font-size: 2.4rem; font-weight: 600; color: var(--azul); line-height: 1.1; margin-top: .3rem; }
.cartao.atencao .numero { color: var(--ambar); }
.paineis { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1rem; }
.barra-linha { display: grid; grid-template-columns: 150px 1fr 48px; align-items: center; gap: .6rem; margin: .45rem 0; font-size: .92rem; }
.barra { background: var(--fundo); border-radius: 3px; height: 14px; overflow: hidden; } .barra i { display: block; height: 100%; background: var(--azul); }
.em-construcao { background: var(--papel); border: 1px dashed var(--linha); border-radius: var(--raio); padding: 2rem; color: var(--texto-suave); max-width: 640px; }
.em-construcao strong { color: var(--azul-escuro); }
table { width: 100%; border-collapse: collapse; background: var(--papel); border: 1px solid var(--linha); border-radius: var(--raio); font-size: .92rem; }
th, td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--linha); vertical-align: middle; }
th { background: var(--fundo); font-weight: 600; color: var(--azul-escuro); }
.etiqueta { display: inline-block; line-height: 1.3; font-size: .75rem; padding: .1rem .5rem; border-radius: 99px; border: 1px solid var(--linha); }
.etiqueta.verde { color: #017a30; border-color: var(--verde); } .etiqueta.cinza { color: var(--texto-suave); }
.acoes { display: flex; gap: .4rem; flex-wrap: wrap; }
.form-linha { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .8rem; align-items: end; margin-bottom: 1rem; }
.form-linha label { margin-top: 0; }
dialog { border: 1px solid var(--linha); border-radius: 8px; padding: 1.6rem; max-width: 440px; width: calc(100% - 2rem); background: var(--papel); color: var(--texto); }
dialog::backdrop { background: rgba(17,22,29,.55); }
.senha-temp { font-family: ui-monospace, Consolas, monospace; font-size: 1.2rem; background: var(--fundo); border: 1px solid var(--linha); padding: .6rem .8rem; border-radius: var(--raio); user-select: all; margin: .6rem 0; }
@media (max-width: 700px) { #nome-usuario { display: none; } .topo .logo { height: 30px; } .topo .titulo strong { font-size: 1.05rem; } .topo-linha { padding: .6rem 1rem; gap: .8rem; } .topo .titulo span { display: none; } main { padding: 1.2rem 1rem 2rem; } .barra-linha { grid-template-columns: 110px 1fr 40px; } }

/* ---- processos (etapa 4, parte 2) */
textarea, input[type=search], input[type=date], input[type=number], input[type=time] { width: 100%; padding: .65rem .8rem; border: 1px solid var(--linha); border-radius: var(--raio); background: var(--papel); color: var(--texto); font: inherit; }
textarea:focus, input[type=search]:focus, input[type=date]:focus, input[type=number]:focus, input[type=time]:focus { outline: 2px solid var(--azul); outline-offset: 1px; }
.titulo-linha { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.titulo-linha h1 { margin: 0; }
.filtros { display: grid; grid-template-columns: 2fr repeat(4, 1fr) auto; gap: .8rem; align-items: end; background: var(--papel); border: 1px solid var(--linha); border-radius: var(--raio); padding: .9rem 1rem 1rem; margin-bottom: 1rem; }
.filtros label { margin-top: 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--texto-suave); }
.link { background: none; border: 0; color: var(--azul); text-decoration: underline; cursor: pointer; padding: .6rem 0; }
.tabela-rolagem { overflow-x: auto; }
table.lista td, table.lista th { white-space: normal; }
tr.clicavel { cursor: pointer; } tr.clicavel:hover { background: rgba(64,115,183,.06); }
tr.clicavel:focus-visible { outline: 2px solid var(--azul); outline-offset: -2px; }
.num { font-variant-numeric: tabular-nums; font-weight: 500; color: var(--azul-escuro); white-space: nowrap; }
.peq { font-size: .82rem; color: var(--texto-suave); }
.trunca { max-width: 260px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: .86rem; }
.vazio { color: var(--texto-suave); text-align: center; padding: 1.4rem; }
.materia { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--cor); border: 1px solid var(--cor); border-left-width: 5px; border-radius: 4px; padding: .12rem .55rem; background: color-mix(in srgb, var(--cor) 8%, transparent); }
.selos { display: flex; flex-wrap: wrap; gap: .3rem; }
.selo { font-size: .72rem; padding: .08rem .5rem; border-radius: 99px; border: 1px solid var(--linha); color: var(--texto-suave); white-space: nowrap; }
.selo.prio { color: var(--ambar); border-color: var(--ambar); font-weight: 600; }
.selo.tutela { color: var(--vinho); border-color: var(--vinho); font-weight: 600; }
.selo.segredo { background: var(--azul-escuro); border-color: var(--azul-escuro); color: #fff; }
.selo.rpv { color: #017a30; border-color: var(--verde); }
@media (prefers-color-scheme: dark) { .selo.segredo { background: #2a3a52; border-color: #2a3a52; } .selo.rpv { color: #4fd68a; } }
.etiqueta.conferir { color: var(--ambar); border-color: var(--ambar); }
.paginacao { display: flex; align-items: center; gap: .6rem; margin-top: .8rem; color: var(--texto-suave); font-size: .9rem; }
.espaco { flex: 1; }
.btn[disabled] { opacity: .45; cursor: default; }
dialog.largo { max-width: 720px; }
.grade2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 1rem; }
.perguntas { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .6rem 1rem; margin-top: 1rem; }
.pergunta { border: 1px solid var(--linha); border-radius: var(--raio); padding: .5rem .8rem .7rem; margin: 0; }
.pergunta legend { font-size: .88rem; font-weight: 500; color: var(--azul-escuro); padding: 0 .3rem; }
label.radio { display: inline-flex; align-items: center; gap: .4rem; margin: .2rem 1.2rem 0 0; font-weight: 400; color: var(--texto); }
label.radio input { width: auto; }
.dica { font-size: .82rem; margin-top: .3rem; color: var(--texto-suave); min-height: 1.1em; } .dica.ok { color: #017a30; } .dica.aviso { color: var(--ambar); }
.rodape-dlg { margin: 1.2rem 0 0; display: flex; gap: .6rem; justify-content: flex-end; }
.msg.aviso { background: rgba(183,121,31,.1); color: var(--ambar); border: 1px solid rgba(183,121,31,.4); }
.migalha { font-size: .88rem; color: var(--texto-suave); margin: 0 0 .6rem; }
.ficha-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.num-grande { font-size: 1.8rem; font-variant-numeric: tabular-nums; margin-bottom: .5rem; }
.linha-badges { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.caixa-conferir { background: rgba(183,121,31,.08); border: 1px solid rgba(183,121,31,.35); border-radius: var(--raio); padding: .7rem 1rem; margin-bottom: 1rem; font-size: .92rem; }
.caixa-conferir strong { color: var(--ambar); } .caixa-conferir ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.abas { display: flex; gap: .2rem; border-bottom: 1px solid var(--linha); overflow-x: auto; }
.abas button { background: none; border: 0; border-bottom: 3px solid transparent; padding: .7rem 1rem; cursor: pointer; color: var(--texto); font-size: .95rem; white-space: nowrap; }
.abas button.ativa { color: var(--azul); border-bottom-color: var(--azul); font-weight: 600; }
.painel-aba { border-top-left-radius: 0; border-top-right-radius: 0; border-top: 0; }
dl.dados { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: .3rem 2rem; margin: 0; }
.par { display: grid; grid-template-columns: 11rem 1fr; gap: .5rem; padding: .45rem 0; border-bottom: 1px solid var(--linha); }
.par dt { color: var(--texto-suave); font-size: .9rem; } .par dd { margin: 0; overflow-wrap: anywhere; }
.linha-form { display: flex; gap: .6rem; align-items: flex-start; flex-wrap: wrap; margin-bottom: 1rem; }
.linha-form input[type=date] { width: auto; } .linha-form input[type=file] { width: auto; max-width: 100%; }
ol.linha-tempo { list-style: none; margin: 1rem 0 0; padding: 0 0 0 1rem; border-left: 2px solid var(--verde-claro); }
ol.linha-tempo li { margin: 0 0 1rem; padding-left: .8rem; position: relative; }
ol.linha-tempo li::before { content: ""; position: absolute; left: -1.45rem; top: .35rem; width: 10px; height: 10px; border-radius: 50%; background: var(--verde-claro); }
tfoot th { background: var(--fundo); }
@media (max-width: 900px) { .filtros { grid-template-columns: 1fr 1fr; } .ficha-topo { flex-direction: column; } .par { grid-template-columns: 1fr; } }
.campo-outros{margin-top:.6rem}
.etiqueta.azul { color: var(--azul-escuro); border-color: var(--azul); background: rgba(64,115,183,.08); white-space: normal; }
.lista-cmed { max-height: 220px; overflow: auto; border: 1px solid var(--linha); border-radius: var(--raio); margin: .5rem 0; }
.linha-cmed { display: flex; gap: .6rem; align-items: flex-start; padding: .5rem .7rem; border-bottom: 1px solid var(--linha); cursor: pointer; }
.linha-cmed:last-child { border-bottom: 0; } .linha-cmed input { margin-top: .3rem; }
.resultado-analise { margin-top: 1rem; } .resultado-analise .msg { margin-top: .6rem; }
.paginacao { display: flex; align-items: center; gap: .6rem; margin-top: .8rem; }
dialog.largo { max-height: 92vh; overflow-y: auto; }
/* etapa 6: prazos e agenda */
.alerta { display: inline-block; font-size: .75rem; font-weight: 600; padding: .1rem .55rem; border-radius: 99px; border: 1px solid var(--linha); white-space: nowrap; }
.alerta.vencido, .alerta.hoje { color: #fff; background: var(--vinho); border-color: var(--vinho); }
.alerta.urgente { color: var(--vinho); border-color: var(--vinho); } .alerta.atencao { color: var(--ambar); border-color: var(--ambar); }
.alerta.normal, .alerta.neutro { color: var(--texto-suave); } .alerta.ok { color: #017a30; border-color: var(--verde); }
pre.memoria { white-space: pre-wrap; font: inherit; font-size: .9rem; background: var(--fundo); border: 1px solid var(--linha); border-radius: var(--raio); padding: .6rem .8rem; margin: .4rem 0 0; }
.previa-conta { margin-top: 1rem; } .previa-conta .msg { margin: 0; }
.cartao.atencao .numero { color: var(--vinho); }
.espaco { flex: 1; }
.agenda-grade { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--linha); border-radius: var(--raio); overflow: hidden; background: var(--papel); }
.agenda-grade .cab { background: var(--fundo); font-size: .8rem; color: var(--texto-suave); text-align: center; padding: .4rem 0; border-bottom: 1px solid var(--linha); }
.agenda-dia { min-height: 6.2rem; padding: .3rem; border-right: 1px solid var(--linha); border-bottom: 1px solid var(--linha); cursor: pointer; font-size: .78rem; overflow: hidden; }
.agenda-dia:nth-child(7n) { border-right: 0; } .agenda-dia.fora { background: var(--fundo); color: var(--texto-suave); } .agenda-dia.nao-util { background: rgba(91,103,120,.07); }
.agenda-dia.hoje-dia { outline: 2px solid var(--azul); outline-offset: -2px; } .agenda-dia.sel { background: rgba(64,115,183,.12); }
.agenda-dia .n { font-weight: 600; display: block; margin-bottom: .15rem; } .agenda-dia .fer { color: var(--vinho); font-size: .68rem; display: block; }
.chip { display: block; padding: .05rem .3rem; margin-top: .12rem; border-radius: 4px; background: rgba(64,115,183,.14); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip.prazo { background: rgba(155,44,44,.14); color: var(--vinho); } .chip.prazo.ok { background: rgba(183,121,31,.15); color: var(--ambar); }
@media (max-width: 700px) { .agenda-dia { min-height: 3.6rem; } .chip { font-size: .65rem; } }

/* ---------- Documentos (etapa 7): barra do editor, folha A4 e impressão */
.ed-barra { display: flex; flex-wrap: wrap; gap: .3rem .5rem; align-items: center; background: var(--papel); border: 1px solid var(--linha); border-radius: var(--raio); padding: .4rem .5rem; position: sticky; top: 0; z-index: 5; }
.ed-grupo { display: inline-flex; gap: .15rem; align-items: center; padding-right: .5rem; border-right: 1px solid var(--linha); }
.ed-grupo:last-child { border-right: 0; }
.ed-btn { background: transparent; color: var(--texto); border: 1px solid transparent; border-radius: 4px; min-width: 2rem; height: 2rem; padding: 0 .4rem; cursor: pointer; font: inherit; font-size: .9rem; }
.ed-btn:hover { background: rgba(64,115,183,.12); }
.ed-btn.ativo, .ed-btn[aria-pressed="true"] { background: rgba(64,115,183,.22); border-color: var(--azul); }
.ed-btn:disabled { opacity: .4; cursor: default; }
.ed-sel { height: 2rem; font: inherit; font-size: .88rem; padding: 0 .3rem; max-width: 9.5rem; background: var(--papel); color: var(--texto); border: 1px solid var(--linha); border-radius: 4px; }
.mesa-doc { background: #d9dee6; padding: 1.2rem .6rem; margin-top: .6rem; overflow-x: auto; border-radius: var(--raio); }
@media (prefers-color-scheme: dark) { .mesa-doc { background: #0c1015; } }
.folha-doc { background: #fff; color: #000; width: 21cm; min-height: 29.7cm; margin: 0 auto; padding: 3cm 2cm 2cm 3cm; box-sizing: border-box; box-shadow: 0 2px 10px rgba(0,0,0,.25); font-family: "Times New Roman", Times, serif; font-size: 12pt; line-height: 1.5; }
.doc-cabecalho { text-align: left; margin-bottom: 1rem; }
.doc-logo { display: block; margin: 0 auto .3rem; width: 3.6cm; height: auto; }
.doc-unidade { text-align: center; font-weight: bold; text-transform: uppercase; margin-bottom: .8rem; }
.doc-titulo { font-weight: bold; margin-bottom: .2rem; }
.doc-data { text-align: right; margin-bottom: .8rem; }
.doc-linha { margin: 0; } .doc-linha b { font-weight: bold; }
.doc-corpo { margin-top: 1rem; }
.doc-rodape { margin-top: 2rem; padding-top: .4rem; border-top: 1px solid #000; text-align: center; font-size: 10pt; line-height: 1.3; }
.editor-texto-area { outline: none; min-height: 12cm; font-family: "Times New Roman", Times, serif; font-size: 12pt; line-height: 1.5; }
.editor-texto-area p { margin: 0; }
.editor-texto-area blockquote { margin: .5em 0 .5em 4cm; font-size: 11pt; line-height: 1.15; }
.editor-texto-area table { border-collapse: collapse; width: 100%; } .editor-texto-area td, .editor-texto-area th { border: 1px solid #000; padding: 2px 6px; vertical-align: top; }
.editor-texto-area img { max-width: 100%; }
.editor-texto-area[contenteditable="false"] { cursor: default; }
@media (max-width: 900px) { .folha-doc { zoom: .6; } }
@media print {
  @page { size: A4; margin: 0; }
  body * { visibility: hidden; }
  .folha-doc, .folha-doc * { visibility: visible; }
  .folha-doc { position: absolute; left: 0; top: 0; width: 21cm; min-height: auto; box-shadow: none; margin: 0; zoom: 1; }
  .mesa-doc { background: none; padding: 0; }
  #area-relatorio, #area-relatorio * { visibility: visible; }
  #area-relatorio { position: absolute; left: 0; top: 0; width: 100%; padding: 1.5cm; box-sizing: border-box; font-size: 10pt; }
}
.etiqueta.amarela { color: #7a5200; border-color: #d89b00; background: rgba(216,155,0,.12); white-space: normal; }

/* ---- Etapa 12: selo beta, painel em uma tela, tarefas, modo consulta ---- */
.selo-beta { display: inline-block; vertical-align: middle; margin-left: .3rem; padding: 0 .38rem; border: 1px solid var(--texto-suave); border-radius: 999px; background: transparent; color: var(--texto-suave); font-size: .6rem; font-weight: 400; letter-spacing: .03em; text-transform: lowercase; line-height: 1.5; opacity: .85; }
.nav a { padding-left: .62rem; padding-right: .62rem; font-size: .92rem; }
.filtros.livre { display: flex; flex-wrap: wrap; gap: .6rem .8rem; align-items: center; margin-bottom: 1rem; }
.filtros.livre input[type=search] { min-width: 18rem; }
.etiqueta.vinho { color: var(--vinho); border-color: var(--vinho); background: rgba(155,44,44,.08); }
main:has(.painel-tela) { padding-top: .9rem; padding-bottom: .8rem; }
.painel-topo { display: flex; align-items: baseline; gap: 1rem; margin-bottom: .6rem; }
.painel-topo h1 { margin: 0; font-size: 1.5rem; } .painel-topo .data-pos { margin: 0; }
.faixa { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: .5rem; }
.mini { display: block; background: var(--papel); border: 1px solid var(--linha); border-radius: var(--raio); padding: .45rem .7rem; text-decoration: none; color: inherit; }
.mini:hover { border-color: var(--azul); }
.mini .numero { font-size: 1.5rem; font-weight: 600; color: var(--azul); line-height: 1.1; }
.mini.atencao .numero { color: var(--vinho); }
.mini .rotulo { font-size: .74rem; color: var(--texto-suave); line-height: 1.2; }
.acervo { margin: .45rem 0 .6rem; font-size: .82rem; color: var(--texto-suave); }
.grade-painel { display: grid; grid-template-columns: 1.5fr 1fr 1fr .8fr; gap: .7rem; height: calc(100vh - 19rem); min-height: 320px; }
.grade-painel.tres { grid-template-columns: 1.5fr 1fr .8fr; }
.coluna { display: flex; flex-direction: column; min-height: 0; padding: .7rem .9rem; }
.coluna h2 { margin: 0 0 .5rem; font-size: 1rem; }
.coluna-corpo { flex: 1; min-height: 0; overflow-y: auto; }
.coluna-corpo:has(textarea) { display: flex; flex-direction: column; }
.coluna textarea { flex: 1; width: 100%; resize: none; min-height: 6rem; }
.linha-tarefa { display: flex; justify-content: space-between; gap: .6rem; align-items: center; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--linha); padding: .45rem .2rem; cursor: pointer; color: var(--texto); font: inherit; }
.linha-tarefa:hover { background: var(--fundo); } .linha-tarefa small { color: var(--texto-suave); } .linha-tarefa .linha-badges { flex-shrink: 0; }
.linha-pessoal { display: flex; justify-content: space-between; align-items: center; gap: .4rem; padding: .25rem 0; border-bottom: 1px solid var(--linha); }
.linha-pessoal label { display: flex; gap: .5rem; align-items: center; margin: 0; flex: 1; cursor: pointer; } .linha-pessoal .feita { text-decoration: line-through; color: var(--texto-suave); }
.linha-pessoal .x { background: none; border: 0; cursor: pointer; font-size: 1.2rem; color: var(--texto-suave); line-height: 1; }
.coluna input[type=text] { width: 100%; margin-bottom: .4rem; }
.faixa-consulta { background: rgba(183,121,31,.12); color: var(--ambar); border-bottom: 1px solid rgba(183,121,31,.4); padding: .5rem 1.5rem; font-size: .9rem; text-align: center; }
@media (max-width: 1100px) { .faixa { grid-template-columns: repeat(3, 1fr); } .grade-painel, .grade-painel.tres { grid-template-columns: 1fr 1fr; height: auto; } .coluna { max-height: 22rem; } }
@media (max-width: 640px) { .grade-painel, .grade-painel.tres { grid-template-columns: 1fr; } }
@media print { .nav, .topo, .filtros, .faixa-consulta, .titulo-linha .acoes { display: none !important; } }
.filtros.livre select, .filtros.livre input { width: auto; max-width: 22rem; } .filtros.livre label { margin: 0; }
[hidden] { display: none !important; }
