/* Seção "Documentação" do painel (js/telas/ajuda.js). Desenho APROVADO: front/mockups/documentacao-30nov. Tokens e componentes comuns vêm de estilo.css; tudo aqui fica sob .conteudo.docs. */
.conteudo.docs{padding:0;overflow:hidden;display:grid;grid-template-columns:264px minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
.docs .indice{display:flex;flex-direction:column;min-height:0;padding:18px 8px 0 14px}
.docs .topo-indice{display:flex;flex-direction:column;gap:8px;padding:0 6px 8px 0}
.docs .busca{display:flex;align-items:center;gap:8px;height:40px;padding:0 12px;border:1.5px solid var(--borda);border-radius:12px;background:var(--superficie);color:var(--apagado)}
.docs .busca:focus-within{border-color:var(--realce);box-shadow:0 0 0 3px var(--soft)}
.docs .busca input{flex:1;min-width:0;border:0;outline:0;background:none;color:var(--texto);font-size:14px}
.docs .busca svg.i{width:17px;height:17px}
.docs .assunto-btn{display:none}
.docs .lista{overflow-y:auto;min-height:0;flex:1;padding:0 6px 24px 0;scrollbar-width:thin}
.docs .grupo{font-size:12px;font-weight:600;color:var(--apagado);padding:16px 10px 6px}
.docs .ass-a,.docs .sub-a{text-decoration:none;display:flex;gap:10px;align-items:baseline;border-radius:10px;color:var(--texto);line-height:1.35}
.docs .ass-a{padding:7px 10px;font-size:13.5px}
.docs .ass-a .num{width:16px;flex:none;color:var(--apagado);font-size:12px;font-variant-numeric:tabular-nums}
.docs .ass-a:hover,.docs .sub-a:hover{background:var(--superficie-2)}
.docs .ass.on>.ass-a{background:var(--soft);color:var(--realce);font-weight:600}
.docs .ass.on .num{color:var(--realce)}
.docs .subs{display:none;flex-direction:column;padding:2px 0 6px}
.docs .ass.on .subs{display:flex}
.docs .sub-a{padding:5px 8px 5px 36px;font-size:12.5px;color:var(--apagado);overflow-wrap:anywhere}
.docs .sub-a.on{color:var(--realce);font-weight:600}
.docs .leitura{overflow-y:auto;min-width:0;padding:26px clamp(16px,3vw,48px) 56px;container-type:inline-size}
.docs .doc,.docs .resultados{max-width:1000px;min-width:0}
.docs .doc h1,.docs .resultados h1{font:600 28px/1.2 var(--fonte-titulo);letter-spacing:-.015em;margin-bottom:18px}
.docs .parte{display:flex;flex-direction:column;gap:14px;min-width:0}
.docs .parte+.parte{margin-top:28px;padding-top:24px;border-top:1px solid var(--linha)}
.docs .parte>h2{font:600 17px var(--fonte-titulo);scroll-margin-top:16px}
.docs .parte p,.docs .itens{max-width:76ch;line-height:1.55;overflow-wrap:anywhere}
.docs .nota{color:var(--apagado);font-size:12.5px}
.docs .itens{padding-left:18px;display:flex;flex-direction:column;gap:7px}
.docs .passos-v li>div{min-width:0;line-height:1.55;max-width:80ch;overflow-wrap:anywhere}
.docs .passos-v span.d{font-size:13.5px}
.docs h2.rota{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.docs h2.rota code{font:600 15px ui-monospace,SFMono-Regular,Menlo,monospace;overflow-wrap:anywhere;min-width:0}
.docs h2.rota small{font:400 13px var(--fonte);color:var(--apagado)}
.docs .verbo{font:700 11.5px var(--fonte);padding:3px 8px;border-radius:6px;background:var(--soft);color:var(--realce)}
.docs .verbo.post{background:rgba(47,163,107,.06);color:var(--ok)}
.docs .verbo.put{background:var(--amarelo-fundo);color:var(--amarelo)}
.docs .verbo.delete{background:var(--erro-fundo);color:var(--erro)}
.docs .duo,.docs .lado-t,.docs .lado-c{display:flex;flex-direction:column;gap:14px;min-width:0}
.docs .bloco-cod{margin:0;background:var(--superficie-2);border-radius:12px;min-width:0;max-width:100%}
.docs .bloco-cod figcaption{display:flex;align-items:center;justify-content:space-between;padding:4px 6px 0 14px;font-size:12px;font-weight:600;color:var(--apagado)}
.docs .bloco-cod .copiar{width:32px;height:32px}
.docs .bloco-cod .copiar svg.i{width:16px;height:16px}
.docs .bloco-cod .copiar.feito{color:var(--ok)}
.docs .bloco-cod pre{margin:0;padding:2px 14px 12px;overflow-x:auto;font:12.5px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace}
.docs .rola{min-width:0;max-width:100%;overflow-x:auto}
.docs table.t{width:100%;border-collapse:collapse;font-size:13.5px;line-height:1.5}
.docs .t th{text-align:left;font-weight:500;font-size:12.5px;color:var(--apagado);padding:8px 14px 8px 0;border-top:1px solid var(--linha);border-bottom:1px solid var(--linha)}
.docs .t td{padding:9px 14px 9px 0;border-bottom:1px solid var(--linha);vertical-align:top;overflow-wrap:break-word}
.docs .t td:first-child code{white-space:nowrap}
.docs .t td:first-child:has(code:nth-of-type(3)) code{white-space:normal}
.docs .t td code.cod{overflow-wrap:normal}
.docs .fluxo{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:6px 0}
.docs .fluxo .no{padding:10px 16px;border-radius:12px;background:var(--superficie-2);font-weight:600;text-align:center}
.docs .fluxo .no.on{background:var(--soft);color:var(--realce)}
.docs .fluxo .no small{display:block;font-weight:400;font-size:12px}
.docs .fluxo .lig{flex:1;min-width:46px;max-width:150px;text-align:center;font-size:12px;color:var(--apagado);border-bottom:1.5px solid var(--borda);padding-bottom:3px;min-height:20px}
.docs .vizinhos{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:34px;padding-top:16px;border-top:1px solid var(--linha)}
.docs .vizinhos a{text-decoration:none;font-weight:600}
.docs .vizinhos a.prox{margin-left:auto}
.docs .resultados .res{display:block;text-decoration:none;color:var(--texto);padding:13px 0;border-top:1px solid var(--linha);overflow-wrap:anywhere}
.docs .res b{display:block;font-weight:600}
.docs .res span{display:block;color:var(--apagado);font-size:13px;margin-top:2px}
.docs .res:hover b{color:var(--realce)}
.docs mark{background:var(--amarelo-fundo);color:inherit;border-radius:3px}
.docs .vazio{color:var(--apagado)}

@container (min-width:1060px){
  .docs .doc{max-width:1500px}
  .docs .doc>.parte:not(.dupla){max-width:1000px}
  .docs .duo{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;align-items:start}
}
@container (min-width:1060px){ .docs .resultados{max-width:1000px} }

@media (max-width:880px){
  .conteudo.docs{display:flex;flex-direction:column;position:relative}
  .docs .indice{flex:none;padding:10px 14px 0;min-height:0}
  .docs .topo-indice{padding:0 0 8px;border-bottom:1px solid var(--linha)}
  .docs .busca input{font-size:16px}
  .docs .assunto-btn{display:flex;align-items:center;justify-content:space-between;gap:8px;height:40px;padding:0 12px;border-radius:12px;background:var(--superficie-2);font-weight:600;text-align:left}
  .docs .lista{display:none}
  .docs .indice.aberto{position:absolute;inset:0;z-index:10;background:var(--bg)}
  .docs .indice.aberto .lista{display:block}
  .docs .leitura{flex:1;min-height:0;padding:18px 16px 40px}
  .docs .doc h1,.docs .resultados h1{font-size:23px}
}
@container (max-width:620px){
  .docs .t,.docs .t tbody,.docs .t tr,.docs .t td{display:block;width:100%}
  .docs .t thead{display:none}
  .docs .t{border-top:1px solid var(--linha)}
  .docs .t tr{padding:10px 0;border-bottom:1px solid var(--linha)}
  .docs .t td{border:0;padding:1px 0;overflow-wrap:anywhere}
  .docs .t td:empty{display:none}
  .docs .t td code.cod{overflow-wrap:anywhere}
  .docs .t td:first-child{font-weight:600}
  .docs .t td:first-child code{white-space:normal}
  .docs .t td:nth-child(n+2)::before{content:attr(data-r) ": ";color:var(--apagado);font-size:12.5px}
  .docs .t.c2 td:nth-child(2)::before{content:none}
  .docs .fluxo{flex-direction:column;align-items:stretch;gap:4px}
  .docs .fluxo .lig{flex:none;max-width:none;border:0;min-height:0;padding:2px}
  .docs .fluxo .lig:empty::after{content:"↓"}
}
.docs .passos-v li>div{font-size:14px}
.docs .passos-v li>div b{display:inline}
