/* ==========================================================================
   INGRA Cartórios: Protocolos (lista, abertura, tela do protocolo, revisão
   e padrão do cartório). Usa os tokens do tema (ingra-tema.css: --ig-*).
   Cores dos achados: exigência vermelho, a confirmar violeta, sugestão âmbar,
   estilo azul. A folha da minuta continua branca nos dois temas.
   ========================================================================== */

.pt-pagina { display: flex; flex-direction: column; gap: 16px; }
.pt-legenda { font-size: 12.5px; color: var(--ig-text-2, #64748b); margin: 0; }
.pt-link { color: var(--ig-link, #006699); font-weight: 700; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.pt-link:hover { text-decoration: underline; }
.pt-link-cancelar { color: var(--ig-text-2, #64748b); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.pt-link-cancelar:hover { color: var(--ig-heading, #013252); }
.pt-lista-simples { margin: 0; padding-left: 18px; list-style: disc; font-size: 13px; color: var(--ig-text-soft, #334155); }

/* ---------- Cartões ---------- */
.pt-cartao {
    background: var(--ig-surface, #fff); border: 1px solid var(--ig-border-soft, #e2e8f0); border-radius: 16px;
    padding: 16px 18px; display: flex; flex-direction: column; gap: 10px;
}
.pt-cartao-topo { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pt-cartao-topo h3 { margin: 0; font-size: 14px; font-weight: 800; color: var(--ig-heading, #013252); }
.pt-grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .pt-grade { grid-template-columns: 1fr; } }
.pt-linha { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 10px; font-size: 13.5px; padding: 6px 0; border-bottom: 1px dashed var(--ig-border-soft, #e2e8f0); }
.pt-linha:last-child { border-bottom: 0; }
.pt-linha-rotulo { color: var(--ig-text-2, #64748b); }
.pt-linha-valor { color: var(--ig-text-soft, #334155); font-weight: 600; word-break: break-word; }
.pt-linha-valor small { display: block; font-weight: 500; color: var(--ig-text-2, #64748b); }

/* ---------- Cabeçalho do protocolo ---------- */
.pt-cabecalho {
    display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    background: linear-gradient(120deg, var(--ig-surface-brand, #eef6fb), var(--ig-surface, #fff));
    border: 1px solid var(--ig-border-brand, #bfe3f0); border-radius: 18px; padding: 18px 20px;
}
.pt-cabecalho-principal { display: flex; flex-direction: column; gap: 6px; min-width: 240px; }
.pt-numero { margin: 0; font-family: 'Fraunces', Georgia, serif; font-size: 26px; font-weight: 700; color: var(--ig-heading, #013252); }
.pt-tipo { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--ig-text-soft, #334155); }
.pt-chip {
    display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 3px 9px;
    background: var(--ig-surface-3, #f1f5f9); color: var(--ig-text-soft, #334155);
}
.pt-chip-sigilo { background: #ede9fe; color: #5b21b6; }
.pt-chip-ic { width: 13px; height: 13px; }
.pt-fatos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 18px; margin: 0; flex: 1; max-width: 820px; }
.pt-fatos dt { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ig-text-2, #64748b); }
.pt-fatos dd { margin: 2px 0 0; font-size: 13.5px; font-weight: 600; color: var(--ig-text-soft, #334155); }
.pt-fatos dd small { display: block; font-weight: 500; font-size: 12px; color: var(--ig-text-2, #64748b); }
.pt-vencido { color: #dc2626 !important; }

.pt-status {
    display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
    font-size: 12px; font-weight: 800; border-radius: 999px; padding: 4px 11px;
    background: var(--ig-surface-3, #f1f5f9); color: var(--ig-text-soft, #334155);
}
.pt-status-ic { width: 15px; height: 15px; }
.pt-status-em-checagem-ia { background: #cffafe; color: #0e7490; }
.pt-status-aguardando-revisao { background: #fef3c7; color: #92400e; }
.pt-status-em-exigencia { background: #fee2e2; color: #991b1b; }
.pt-status-aprovado { background: #dcfce7; color: #166534; }
.pt-status-finalizado { background: #cce7f5; color: #075985; }

/* ---------- Alertas ---------- */
.pt-alerta { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; border: 1px solid; }
.pt-alerta strong { display: block; font-weight: 800; }
.pt-alerta span { display: block; }
.pt-alerta-ic { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.pt-alerta-info { background: #ecfeff; border-color: #a5f3fc; color: #155e75; }
.pt-alerta-aviso { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
.pt-alerta-perigo { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
html.dark .pt-alerta-info { background: rgba(6, 182, 212, .08); border-color: rgba(103, 232, 249, .25); color: #a5f3fc; }
html.dark .pt-alerta-aviso { background: rgba(245, 158, 11, .08); border-color: rgba(252, 211, 77, .25); color: #fde68a; }
html.dark .pt-alerta-perigo { background: rgba(239, 68, 68, .08); border-color: rgba(254, 202, 202, .25); color: #fecaca; }
.pt-girando { animation: pt-girar 1.2s linear infinite; }
@keyframes pt-girar { to { transform: rotate(360deg); } }
.pt-aviso-sigilo { margin: 6px 0 0; font-size: 13px; color: #5b21b6; }
.pt-sobre-tipo p { margin: 0; font-size: 13px; color: var(--ig-text-soft, #334155); }

/* ---------- Contadores e selos ---------- */
.pt-contadores { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-contador { display: inline-flex; align-items: baseline; gap: 5px; font-size: 12.5px; border-radius: 10px; padding: 5px 10px; background: var(--ig-surface-3, #f1f5f9); color: var(--ig-text-soft, #334155); }
.pt-contador strong { font-size: 15px; }
.pt-contador-total { background: var(--ig-surface-brand, #eef6fb); color: var(--ig-brand-text, #01527d); }
.pt-contador-exigencia { background: #fee2e2; color: #991b1b; }
.pt-contador-a-confirmar { background: #ede9fe; color: #5b21b6; }
.pt-contador-sugestao { background: #fef3c7; color: #92400e; }
.pt-contador-estilo { background: #dbeafe; color: #1e40af; }
.pt-selo { display: inline-flex; align-items: center; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.pt-selo-exigencia { background: #fee2e2; color: #991b1b; }
.pt-selo-a-confirmar { background: #ede9fe; color: #5b21b6; }
.pt-selo-sugestao { background: #fef3c7; color: #92400e; }
.pt-selo-estilo { background: #dbeafe; color: #1e40af; }

html.dark .pt-contador-exigencia, html.dark .pt-selo-exigencia, html.dark .pt-status-em-exigencia { background: rgba(239, 68, 68, .16); color: #fecaca; }
html.dark .pt-contador-a-confirmar, html.dark .pt-selo-a-confirmar, html.dark .pt-chip-sigilo { background: rgba(139, 92, 246, .18); color: #ddd6fe; }
html.dark .pt-contador-sugestao, html.dark .pt-selo-sugestao, html.dark .pt-status-aguardando-revisao { background: rgba(245, 158, 11, .16); color: #fde68a; }
html.dark .pt-contador-estilo, html.dark .pt-selo-estilo { background: rgba(59, 130, 246, .18); color: #bfdbfe; }
html.dark .pt-status-em-checagem-ia { background: rgba(6, 182, 212, .16); color: #a5f3fc; }
html.dark .pt-status-aprovado { background: rgba(34, 197, 94, .16); color: #bbf7d0; }
html.dark .pt-status-finalizado { background: rgba(14, 165, 233, .16); color: #bae6fd; }

/* ---------- Pendências (nota) ---------- */
.pt-cartao-pendencias { border-color: #fecaca; }
.pt-pendencias { margin: 0; padding-left: 20px; list-style: decimal; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--ig-text-soft, #334155); }
.pt-pendencias span, .pt-pendencias small { display: block; }
.pt-pendencias small { color: var(--ig-text-2, #64748b); }
.pt-observacao { margin: 0; font-size: 13.5px; color: var(--ig-text-soft, #334155); }

/* ---------- Documentos exigidos ---------- */
.pt-documentos { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.pt-documento { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: start; font-size: 13px; padding: 8px 10px; border-radius: 12px; background: var(--ig-surface-2, #f8fafc); }
.pt-documento strong { display: block; font-weight: 700; color: var(--ig-text-soft, #334155); }
.pt-documento span { display: block; font-size: 12px; color: var(--ig-text-2, #64748b); }
.pt-documento-ic { width: 18px; height: 18px; margin-top: 1px; }
.pt-documento-situacao { font-style: normal; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.pt-doc-ok .pt-documento-ic, .pt-doc-ok .pt-documento-situacao { color: #16a34a; }
.pt-doc-dispensado .pt-documento-ic, .pt-doc-dispensado .pt-documento-situacao { color: #0e7490; }
.pt-doc-opcional .pt-documento-ic, .pt-doc-opcional .pt-documento-situacao { color: var(--ig-text-2, #64748b); }
.pt-doc-confirmar .pt-documento-ic, .pt-doc-confirmar .pt-documento-situacao { color: #7c3aed; }
.pt-doc-falta .pt-documento-ic, .pt-doc-falta .pt-documento-situacao { color: #dc2626; }

/* ---------- Arquivos, versões e linha do tempo ---------- */
.pt-anexo, .pt-versao { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--ig-border-soft, #e2e8f0); }
.pt-anexo:last-child, .pt-versao:last-child { border-bottom: 0; }
.pt-anexo-ic { width: 20px; height: 20px; flex: none; color: var(--ig-link, #006699); }
.pt-anexo-texto { display: flex; flex-direction: column; min-width: 0; flex: 1; font-size: 13.5px; }
.pt-anexo-texto small { color: var(--ig-text-2, #64748b); font-size: 12px; }
.pt-versao-numero { flex: none; font-size: 12px; font-weight: 800; border-radius: 8px; padding: 3px 8px; background: var(--ig-surface-brand, #eef6fb); color: var(--ig-brand-text, #01527d); }
.pt-linha-do-tempo { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; max-height: 420px; overflow: auto; }
.pt-linha-do-tempo li { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--ig-border-soft, #e2e8f0); font-size: 13px; }
.pt-linha-do-tempo li:last-child { border-bottom: 0; }
.pt-linha-do-tempo strong { display: block; color: var(--ig-heading, #013252); }
.pt-linha-do-tempo span { color: var(--ig-text-soft, #334155); }
.pt-evento-data { color: var(--ig-text-2, #64748b); font-variant-numeric: tabular-nums; }

/* ---------- Prévia do envio ---------- */
.pt-resumo { display: flex; flex-direction: column; gap: 12px; font-size: 13.5px; color: var(--ig-text-soft, #334155); }
.pt-resumo p { margin: 0; }
.pt-resumo-bloco { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--ig-border-soft, #e2e8f0); border-radius: 14px; padding: 12px 14px; }
.pt-resumo-bloco h3 { margin: 0; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--ig-text-2, #64748b); }
.pt-resumo-ok { display: flex; align-items: center; gap: 8px; color: #166534; }
.pt-resumo-ic { width: 18px; height: 18px; flex: none; }
.pt-resumo-lista { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.pt-resumo-lista li { display: flex; gap: 8px; align-items: baseline; }
.pt-estimativa { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; margin: 0; }
.pt-estimativa div { background: var(--ig-surface-2, #f8fafc); border-radius: 10px; padding: 8px 10px; }
.pt-estimativa dt { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--ig-text-2, #64748b); }
.pt-estimativa dd { margin: 2px 0 0; font-weight: 700; color: var(--ig-heading, #013252); }
.pt-botoes-abertura { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Folha da minuta ---------- */
.pt-folha {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 36px 44px;
    font-family: 'Times New Roman', Times, serif; font-size: 15.5px; line-height: 1.65; color: #111;
    box-shadow: inset 0 2px 10px rgba(1, 50, 82, .05);
}
.pt-folha-janela { max-height: 60vh; overflow: auto; }
.pt-folha h1, .pt-folha h2 { text-align: center; font-size: 17px; font-weight: 700; margin: 0 0 12px; }
.pt-folha h3, .pt-folha h4 { font-weight: 700; margin: 16px 0 8px; }
.pt-folha p { margin: 0 0 10px; text-align: justify; }
.pt-folha ul, .pt-folha ol { margin: 0 0 10px 22px; list-style: revert; }
.pt-folha table { width: 100%; border-collapse: collapse; margin: 0 0 10px; }
.pt-folha td, .pt-folha th { border: 1px solid #cbd5e1; padding: 4px 6px; }
.pt-folha .ingra-achado { border-radius: 3px; padding: 1px 0; cursor: pointer; transition: box-shadow .15s ease, background .15s ease; }
.pt-folha .ingra-achado-exigencia { background: #fee2e2; box-shadow: inset 0 -2px 0 #dc2626; }
.pt-folha .ingra-achado-a-confirmar { background: #ede9fe; box-shadow: inset 0 -2px 0 #7c3aed; }
.pt-folha .ingra-achado-sugestao { background: #fef3c7; box-shadow: inset 0 -2px 0 #d97706; }
.pt-folha .ingra-achado-estilo { background: #dbeafe; box-shadow: inset 0 -2px 0 #2563eb; }
.pt-folha .ingra-achado-decidido { background: transparent; box-shadow: inset 0 -1px 0 #94a3b8; }
.pt-folha .ingra-achado.pt-ativo { outline: 2px solid #0f172a; outline-offset: 1px; }
@media (max-width: 640px) { .pt-folha { padding: 20px; } }

/* ---------- Revisão ---------- */
.pt-revisao { display: flex; flex-direction: column; gap: 14px; }
.pt-rev-topo {
    display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
    background: var(--ig-surface, #fff); border: 1px solid var(--ig-border-soft, #e2e8f0); border-radius: 16px; padding: 12px 16px;
}
.pt-rev-id { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--ig-text-2, #64748b); }
.pt-rev-id strong { font-size: 17px; color: var(--ig-heading, #013252); }
.pt-rev-grade { display: grid; grid-template-columns: minmax(0, 65fr) minmax(320px, 35fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .pt-rev-grade { grid-template-columns: 1fr; } }
.pt-rev-documento { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pt-rev-documento .pt-folha { max-height: calc(100vh - 230px); overflow: auto; }
.pt-rev-legenda { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--ig-text-2, #64748b); }
.pt-legenda-cor::before { content: ''; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -2px; }
.pt-legenda-exigencia::before { background: #fee2e2; box-shadow: inset 0 -2px 0 #dc2626; }
.pt-legenda-a-confirmar::before { background: #ede9fe; box-shadow: inset 0 -2px 0 #7c3aed; }
.pt-legenda-sugestao::before { background: #fef3c7; box-shadow: inset 0 -2px 0 #d97706; }
.pt-legenda-estilo::before { background: #dbeafe; box-shadow: inset 0 -2px 0 #2563eb; }
.pt-rev-achados { display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 200px); overflow: auto; padding-right: 4px; position: sticky; top: 80px; }
.pt-filtros { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; position: sticky; top: 0; z-index: 1; background: var(--ig-page, #f8fafc); padding: 4px 0 8px; }
html:not(.dark) .pt-filtros { background: rgb(var(--gray-50, 249 250 251)); }
.pt-filtro {
    border: 1px solid var(--ig-border-soft, #e2e8f0); background: var(--ig-surface, #fff); color: var(--ig-text-soft, #334155);
    border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.pt-filtro.ativo { background: var(--ig-link, #006699); border-color: var(--ig-link, #006699); color: #fff; }
.pt-so-pendentes { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ig-text-2, #64748b); margin-left: auto; }
.pt-achado {
    background: var(--ig-surface, #fff); border: 1px solid var(--ig-border-soft, #e2e8f0); border-left: 4px solid #cbd5e1;
    border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--ig-text-soft, #334155);
    transition: box-shadow .15s ease;
}
.pt-achado-exigencia { border-left-color: #dc2626; }
.pt-achado-a-confirmar { border-left-color: #7c3aed; }
.pt-achado-sugestao { border-left-color: #d97706; }
.pt-achado-estilo { border-left-color: #2563eb; }
.pt-achado-aceito, .pt-achado-editado, .pt-achado-recusado { opacity: .78; }
.pt-achado.pt-ativo { box-shadow: 0 0 0 2px var(--ig-link, #006699); opacity: 1; }
.pt-achado-topo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pt-achado-origem { font-size: 12px; color: var(--ig-text-2, #64748b); }
.pt-achado-status { margin-left: auto; font-size: 11.5px; font-weight: 800; color: var(--ig-text-2, #64748b); }
.pt-achado-comentario { margin: 0; line-height: 1.5; }
.pt-diff { display: flex; flex-direction: column; gap: 4px; background: var(--ig-surface-2, #f8fafc); border-radius: 10px; padding: 8px 10px; font-family: 'Times New Roman', Times, serif; font-size: 14px; }
.pt-diff del { color: #991b1b; text-decoration: line-through; text-decoration-color: rgba(153, 27, 27, .5); }
.pt-diff ins { color: #166534; text-decoration: none; background: rgba(34, 197, 94, .1); border-radius: 4px; padding: 1px 3px; }
.pt-diff small { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 11.5px; color: var(--ig-text-2, #64748b); }
.pt-trecho { color: var(--ig-text-soft, #334155); font-style: italic; }
html.dark .pt-diff del { color: #fca5a5; }
html.dark .pt-diff ins { color: #86efac; }
.pt-fundamento { margin: 0; font-size: 12.5px; color: var(--ig-text-2, #64748b); }
.pt-avisos { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #92400e; }
.pt-avisos li { display: flex; gap: 6px; align-items: flex-start; }
.pt-aviso-ic { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.pt-achado-decisao { margin: 0; font-size: 12px; color: var(--ig-text-2, #64748b); }
.pt-achado-acoes { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pt-ir-trecho { font-size: 12px; margin-left: auto; }
.pt-sem-achados { padding: 18px; text-align: center; }

/* ---------- Padrão do cartório ---------- */
.pt-padrao-escolha { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
.pt-padrao-escolha .pt-legenda { flex-basis: 100%; }
.pt-campo { display: flex; flex-direction: column; gap: 4px; min-width: 260px; flex: 1; font-size: 12.5px; font-weight: 700; color: var(--ig-text-2, #64748b); }
.pt-select {
    border: 1px solid var(--ig-border-soft, #e2e8f0); border-radius: 10px; padding: 8px 36px 8px 10px; font: inherit; font-size: 14px; font-weight: 500;
    background-color: var(--ig-surface, #fff); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px 16px;
    color: var(--ig-text-soft, #334155);
}
.pt-select:disabled { opacity: .6; }
.pt-clausula { border-radius: 12px; padding: 10px 12px; background: var(--ig-surface-2, #f8fafc); font-size: 13px; }
.pt-clausula strong { display: block; color: var(--ig-heading, #013252); margin-bottom: 4px; }
.pt-clausula p { margin: 0; font-family: 'Times New Roman', Times, serif; font-size: 14px; white-space: pre-line; color: var(--ig-text-soft, #334155); }
.pt-clausula-propria { border: 1px solid var(--ig-border-brand, #bfe3f0); background: var(--ig-surface-brand, #eef6fb); }

/* ---------- Confecção da minuta (pelo modelo ou com IA) ---------- */
.pt-folha mark.pt-lacuna { background: #fef3c7; box-shadow: inset 0 -2px 0 #d97706; color: inherit; border-radius: 3px; padding: 0 2px; }
.pt-confeccao { display: flex; flex-direction: column; gap: 10px; border: 1px dashed var(--ig-border-brand, #bfe3f0); border-radius: 14px; padding: 12px 14px; background: var(--ig-surface-brand, #eef6fb); }
.pt-confeccao-botoes { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pt-confeccao-escolhida { display: flex; flex-direction: column; gap: 8px; border-radius: 12px; padding: 10px 12px; background: var(--ig-surface, #fff); border: 1px solid var(--ig-border-soft, #e2e8f0); font-size: 13.5px; color: var(--ig-text-soft, #334155); }
.pt-confeccao-escolhida p { margin: 0; }
.pt-confeccao-escolhida summary { cursor: pointer; font-weight: 700; color: var(--ig-link, #006699); }
.pt-confeccao-escolhida details .pt-folha { margin-top: 8px; }
.pt-confeccao-lista li { display: list-item; margin-left: 18px; list-style: disc; }
.pt-guia-tabela { width: 100%; border-collapse: collapse; font-size: 13px; }
.pt-guia-tabela td { padding: 6px 8px; border-top: 1px solid var(--ig-border-soft, #e2e8f0); vertical-align: top; color: var(--ig-text-soft, #334155); }
.pt-guia-tabela tr:first-child td { border-top: 0; }
.pt-guia-tabela td:first-child { width: 42%; }
.pt-guia-tabela code { font-size: 12px; font-weight: 700; color: var(--ig-heading, #013252); word-break: break-word; }
.pt-guia-exemplo { font-family: 'Times New Roman', Times, serif; font-size: 14px; line-height: 1.6; color: var(--ig-text-soft, #334155); }

/* ---------- Leitura de documentos e partes (abertura e supervisão) ---------- */
.pt-aviso-leitura { display: flex; align-items: flex-start; gap: 6px; margin: 0; font-size: 12.5px; color: var(--ig-text-2, #64748b); }
.pt-aviso-leitura-ic { width: 16px; height: 16px; flex-shrink: 0; color: var(--ig-link, #006699); }
.pt-lendo-aviso {
    display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; border-radius: 12px; padding: 10px 12px;
    background: var(--ig-surface-brand, #eef6fb); color: var(--ig-heading, #013252); border: 1px solid var(--ig-border-brand, #bfe3f0);
}
.pt-lendo-ic { width: 18px; height: 18px; flex-shrink: 0; }
.pt-lendo { pointer-events: none; opacity: .55; transition: opacity .2s; }
.pt-partes-docs { gap: 14px; }
.pt-parte { border: 1px solid var(--ig-border-soft, #e2e8f0); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.pt-parte-topo { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--ig-heading, #013252); }
.pt-parte-topo small { color: var(--ig-text-2, #64748b); font-weight: 600; }
.pt-parte-papel { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--ig-text-2, #64748b); }
.pt-parte-sem-nome { color: #b45309; }
.pt-parte-campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 16px; margin: 0; }
.pt-parte-campos dt { font-size: 11px; font-weight: 700; color: var(--ig-text-2, #64748b); }
.pt-parte-campos dd { margin: 0; font-size: 13px; font-weight: 600; color: var(--ig-text-soft, #334155); word-break: break-word; }
.pt-parte-docs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.pt-parte-docs li { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pt-parte-docs small { color: var(--ig-text-2, #64748b); }
.pt-selo-leitura { display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; font-size: 10.5px; font-weight: 800; border-radius: 999px; padding: 1px 7px; white-space: nowrap; vertical-align: middle; }
.pt-selo-leitura-ic { width: 12px; height: 12px; }
.pt-selo-leitura-lido { background: #dcfce7; color: #166534; }
.pt-selo-leitura-duvidoso { background: #fef3c7; color: #92400e; }
.pt-selo-leitura-alterado { background: var(--ig-surface-3, #f1f5f9); color: var(--ig-text-2, #64748b); font-weight: 700; }
html.dark .pt-selo-leitura-lido { background: rgba(34, 197, 94, .16); color: #bbf7d0; }
html.dark .pt-selo-leitura-duvidoso { background: rgba(245, 158, 11, .16); color: #fde68a; }
html.dark .pt-parte-sem-nome { color: #fcd34d; }
.pt-pedido-texto { font-size: 14px; line-height: 1.55; color: var(--ig-text-soft, #334155); }
.pt-pedido-texto p { margin: 0 0 6px; }
.pt-pedido-texto ul { list-style: disc; padding-left: 20px; margin: 0 0 6px; }
.pt-pedido-texto ol { list-style: decimal; padding-left: 20px; margin: 0 0 6px; }
.pt-leitura-liberacao { display: flex; flex-direction: column; gap: 8px; }
.pt-leitura-liberacao ul { margin: 0; padding-left: 18px; list-style: disc; font-size: 13px; color: var(--ig-text-soft, #334155); }

/* ---------- Transcrição de áudio (protocolo e Modelos e IA > Transcrever áudio) ---------- */
.pt-transcricao-aviso ul { margin: 0 0 8px; }
.pt-transcricao-texto { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.55; }
.ta-resultado { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.ta-rotulo { font-size: 13px; font-weight: 600; color: var(--ig-heading, #0f2a3d); }
.ta-texto {
    width: 100%; min-height: 320px; padding: 10px 12px; border-radius: 12px; resize: vertical;
    border: 1px solid var(--ig-border-soft, #e2e8f0); background: var(--ig-surface-2, #f8fafc); color: var(--ig-text, #0f2a3d);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.55;
}
.ta-lista { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.5; color: var(--ig-text-soft, #334155); }
