/* Base de conhecimento — conteúdo renderizado (equipe e portal) e editor */
.kb-content{font-size:.95rem;line-height:1.65;color:var(--tblr-body-color,#1d273b)}
[data-bs-theme=dark] .kb-warning{background:rgba(245,159,0,.12)}
[data-bs-theme=dark] .kb-content mark{background:rgba(250,204,21,.3);color:inherit}
[data-bs-theme=dark] .kb-quote{color:inherit}
.kb-content h2{font-size:1.3rem;margin:1.6rem 0 .6rem}
.kb-content h3{font-size:1.12rem;margin:1.3rem 0 .5rem}
.kb-content h4{font-size:1rem;margin:1.1rem 0 .4rem}
.kb-content p{margin:0 0 .85rem}
.kb-content ul,.kb-content ol{margin:0 0 .85rem;padding-left:1.4rem}
.kb-content li{margin:.15rem 0}
.kb-content mark{background:#fff3bf;padding:0 .15em;border-radius:2px}
.kb-content code{background:rgba(31,78,140,.08);padding:.1em .35em;border-radius:3px;font-size:.88em}
.kb-content a{word-break:break-word}
.kb-checklist{list-style:none;padding-left:.2rem!important}
.kb-check{display:inline-flex;align-items:center;justify-content:center;width:1.05em;height:1.05em;border:1.5px solid #94a3b8;border-radius:4px;font-size:.75em;vertical-align:-.12em;margin-right:.3em}
.kb-check.on{background:#2fb344;border-color:#2fb344;color:#fff}
.kb-image{margin:1rem 0;text-align:center}
.kb-image img{max-width:100%;height:auto;border-radius:6px}
.kb-image.kb-border img{border:1px solid #dce1e7}
.kb-image.kb-bg{background:#f1f5f9;padding:1rem;border-radius:8px}
.kb-image.kb-bg img{max-width:60%}
.kb-image figcaption{font-size:.82rem;color:#667382;margin-top:.35rem}
.kb-code{background:#0f172a;color:#e2e8f0;padding:.85rem 1rem;border-radius:6px;font-size:.84rem;overflow:auto;white-space:pre}
.kb-code code{background:none;color:inherit;padding:0}
.kb-warning{display:flex;gap:.6rem;background:#fff8e6;border-left:4px solid #f59f00;padding:.75rem .9rem;border-radius:4px;margin:0 0 1rem}
.kb-warning>.ti{color:#f59f00;font-size:1.25rem;line-height:1.3}
.kb-quote{border-left:4px solid #1F4E8C;padding:.4rem 0 .4rem 1rem;margin:0 0 1rem;color:#475569;font-style:italic}
.kb-quote footer{font-style:normal;font-size:.82rem;margin-top:.3rem}
.kb-delimiter{margin:1.6rem auto;width:30%;opacity:.35}
.kb-table{margin-bottom:1rem}
.kb-legacy{white-space:pre-wrap}
/* anexos */
.kb-file{display:flex;align-items:center;gap:.75rem}
.kb-file>.ti:first-child{font-size:1.6rem;color:#1F4E8C;flex:none}
.kb-file-pdf>.ti:first-child{color:#d63939}
.kb-file-planilha>.ti:first-child{color:#2fb344}
.kb-file-apresentacao>.ti:first-child{color:#f76707}
.kb-dropzone{border:2px dashed #cbd5e1;border-radius:8px;padding:1rem;text-align:center;color:#667382;cursor:pointer;transition:background .15s,border-color .15s}
.kb-dropzone.over{background:#eef4fb;border-color:#1F4E8C;color:#1F4E8C}
/* editor */
.kb-editor{min-height:340px;background:var(--tblr-bg-surface,#fff);border:1px solid var(--tblr-border-color,#dce1e7);border-radius:6px;padding:1rem 1.25rem 1rem 4rem}
.kb-editor .ce-block__content,.kb-editor .ce-toolbar__content{max-width:none}
.kb-editor .ce-code__textarea{min-height:70px}
@media(max-width:650px){.kb-editor{padding:.75rem}}
[data-bs-theme=dark] .cdx-search-field{background:#2a3548;border-color:#334155}
[data-bs-theme=dark] .cdx-search-field__input{color:#e2e8f0}
pre.kb-diff{font-family:var(--tblr-font-monospace,monospace);font-size:.8rem;white-space:pre-wrap;margin:0;background:var(--tblr-bg-surface-secondary,#f6f8fb);color:var(--tblr-body-color);padding:.6rem;border-radius:6px}
.kb-diff .add{background:#e6f6ea;color:#1b5e20;display:block}
.kb-diff .del{background:#fdecec;color:#8a1c1c;display:block;text-decoration:line-through;text-decoration-color:rgba(138,28,28,.35)}
.kb-diff .gap{color:#94a3b8;display:block;font-style:italic}
.kb-diff .eq{display:block;opacity:.8}
/* Editor.js no tema escuro: as variáveis de cor dele (popover, barra de formatação, tabela) */
[data-bs-theme=dark] .kb-editor,[data-bs-theme=dark] .ce-popover,[data-bs-theme=dark] .ce-inline-toolbar,[data-bs-theme=dark] .tc-wrap,[data-bs-theme=dark] .tc-popover{
  --color-background:#1b2434;--color-text-primary:#e2e8f0;--color-text-secondary:#94a3b8;--color-border:#334155;
  --color-background-item-hover:#2a3548;--color-background-hover:#2a3548;--color-background-item-focus:#2a3548;
  --color-background-icon-active:rgba(56,138,229,.25);--color-text-icon-active:#7cb4f0;--color-shadow:rgba(0,0,0,.5);
  --color-line-gray:#334155;--color-dark:#e2e8f0}
[data-bs-theme=dark] .kb-editor .cdx-input,[data-bs-theme=dark] .kb-editor .ce-code__textarea{background:var(--tblr-bg-surface-secondary);color:inherit;border-color:#334155}
[data-bs-theme=dark] .ce-toolbar__plus,[data-bs-theme=dark] .ce-toolbar__settings-btn{color:#cbd5e1;background:transparent}
[data-bs-theme=dark] .ce-toolbar__plus:hover,[data-bs-theme=dark] .ce-toolbar__settings-btn:hover{background:#2a3548}
[data-bs-theme=dark] .ce-block--selected .ce-block__content{background:rgba(56,138,229,.15)}
[data-bs-theme=dark] .kb-dropzone{border-color:#475569}
