/* Painel de comandos e diálogos; o conteúdo e as medidas da folha A4 são preservados. */
.editor-workspace.editor-wide{display:block}.editor-wide .editor-main-area{width:100%;overflow:visible}
.editor-command-panel{position:sticky;top:0;z-index:30;background:#fcfbf8;border:1px solid #dedbd5;border-radius:8px;padding:0;margin:0}
.editor-command-panel :is(.floating-actions,.editor-toolbar){position:static;display:flex;flex-wrap:wrap;gap:0;padding:0;margin:0;background:transparent;box-shadow:none;border:0}
.editor-command-panel .floating-actions{border-bottom:1px solid #dedbd5}
.editor-command-panel .toolbar-group{display:flex;flex-wrap:wrap;align-items:center;gap:0;padding:0;margin:0;border-right:1px solid #dedbd5}
.pj-interface .editor-command-panel :is(button,.btn,.tool-btn){display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;min-width:32px;min-height:32px;margin:0;padding:4px;border:1px solid transparent;border-radius:3px;font-size:14px;line-height:1;flex:none}
.editor-command-panel :is(.btn,.tool-btn){background:#fcfbf8;color:#10283d}.editor-command-panel :is(.btn,.tool-btn):hover{background:#f4eddf;border-color:#ded4c3}
.editor-svg{display:block;flex:none;width:22px;height:22px;pointer-events:none}
.editor-command-panel .tool-select{width:auto;min-width:0;max-width:175px;height:32px;min-height:32px;border-radius:3px;padding:3px 6px;font-size:12px;margin:0}
.editor-command-panel #font_size{max-width:70px}.editor-command-panel #abnt_orientacao{max-width:100px}
.editor-wide .ruler-container{position:static;overflow-x:auto;max-width:100%}.editor-wide .a4-viewport{padding:14px 0;overflow-x:auto;width:100%}.editor-wide #label_margens{display:none}
.editor-panel-dialog{width:min(820px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;border:1px solid #dedbd5;border-radius:12px;background:#fcfbf8;color:#18212b;padding:14px}
.editor-panel-dialog::backdrop{background:#10283d66}.editor-panel-dialog>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;gap:8px}.editor-panel-dialog>header h2{font-size:18px;font-weight:600}
.editor-contexto-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.editor-contexto-grid .sidebar-section{border:0;padding:0;min-width:0}
.editor-panel-dialog .tool-btn{display:inline-flex}.editor-panel-dialog #buscar_tags{width:100%;margin-bottom:10px}.editor-panel-dialog .tag-badge{font-family:monospace}
#editor_tags_dialog .tag-badge[hidden]{display:none}
#editor-feedback:empty{display:none}#editor-feedback{font-size:12px;padding:6px 8px}.editor-save-dialog{max-width:520px}.editor-save-dialog h2{font-size:18px;margin-bottom:12px}.editor-save-dialog label{display:block;margin:10px 0;font-size:13px}.editor-save-dialog label input{display:block;width:100%;margin-top:4px}.editor-save-dialog footer{display:flex;justify-content:flex-end;gap:0}.editor-save-dialog .tool-btn{width:36px;height:36px;align-items:center;justify-content:center}
.editor-bottom-bar{display:flex;align-items:center;gap:6px;padding:6px 8px;background:#fcfbf8;border-top:1px solid #dedbd5;font-size:12px;color:#6b7177}
#editor_tags_dialog{position:fixed;top:auto;bottom:12px;left:0;right:0;margin:0 auto;max-height:75dvh}
#editor_tags_dialog .tag-badge{display:inline-flex;flex-direction:column;text-align:left;max-width:100%;white-space:normal}#editor_tags_dialog .tag-badge small{font-family:Aptos,Arial,sans-serif;font-size:11px}#dicionario-blocos-calculo,.editor-jinja-help{padding:10px 20px;font-size:12px}.editor-jinja-help code{overflow-wrap:anywhere}#dicionario-blocos-lista details{margin:8px 0}#dicionario-blocos-lista summary{cursor:pointer}
.editor-tags-popup{position:fixed;z-index:2200;width:min(400px,calc(100vw - 16px));max-height:280px;overflow:auto;border:1px solid #ded4c3;border-radius:8px;background:#fcfbf8;box-shadow:0 8px 24px #10283d22;padding:4px;color:#18212b;font-size:13px}
.editor-tags-popup[hidden]{display:none}.editor-tags-popup [role=option]{display:block;width:100%;padding:7px 9px;text-align:left;border:0;border-radius:4px;cursor:pointer;color:inherit;background:transparent;font:inherit;min-height:32px}
.editor-tags-popup [aria-selected=true]{background:#f4eddf}.editor-tags-popup small{display:block;color:#6b7177;font-size:11px}.editor-tags-popup .editor-tags-empty{padding:8px}
@media(max-width:700px){.editor-contexto-grid{grid-template-columns:minmax(0,1fr)}.pj-interface .editor-command-panel :is(button,.btn,.tool-btn){width:36px;height:36px;min-width:36px;min-height:36px}.editor-command-panel .tool-select{max-width:145px;height:36px;min-height:36px}}
@media(forced-colors:active){.editor-command-panel,.editor-panel-dialog,.editor-tags-popup{background:Canvas;color:CanvasText;border-color:CanvasText}.editor-command-panel :is(.btn,.tool-btn){background:ButtonFace;color:ButtonText;border-color:ButtonText}.editor-tags-popup [aria-selected=true]{background:Highlight;color:HighlightText}}
@media(forced-colors:active){.editor-wide,.editor-wide .editor-main-area,.editor-wide .a4-viewport,.editor-wide .ruler-container,.editor-bottom-bar{background:Canvas;color:CanvasText;border-color:CanvasText}.editor-wide .a4-sheet{forced-color-adjust:auto;background:Canvas;color:CanvasText;border:1px solid CanvasText;box-shadow:none}.editor-svg{forced-color-adjust:auto}}
.editor-workspace.editor-wide[hidden],#editor-demanda-resumo[hidden]{display:none!important}
#editor-preparacao{width:100%;margin-bottom:16px}#editor-preparacao .editor-prep-row{display:flex;align-items:flex-end;gap:8px;margin:12px 0;flex-wrap:wrap}#editor-preparacao label{font-size:12px;display:flex;flex-direction:column;gap:3px}#editor-preparacao :is(input,select){max-width:100%}#editor-preparacao .editor-model-search{flex:1;min-width:180px}#editor-preparacao .editor-model-search input{width:100%}#editor-preparacao .editor-prep-radios{border:0;display:grid;gap:4px;flex:none}#editor-preparacao .editor-prep-radios legend{font-size:12px}#editor-preparacao .editor-prep-radios label{display:flex;flex-direction:row;align-items:center;font-size:11px;white-space:nowrap}#editor-preparacao .editor-prep-radios input{min-height:0;width:auto}#editor-preparacao .editor-client-search{position:relative;flex:1;min-width:150px}#editor-preparacao .editor-demand-search{flex:1;min-width:150px}#editor-preparacao #select_demanda{width:100%}#editor-preparacao .btn{font-size:11px;padding:5px 8px;min-height:34px}#editor-preparacao #contexto_status{flex-basis:100%;font-size:12px}#editor-modelo-selecionado,#editor-preparacao-status,#editor-demanda-info{font-size:12px}#editor-preparacao-status:empty,#editor-modelo-selecionado:empty{display:none}
#editor-demanda-form{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;border-radius:10px}#editor-demanda-form .form-control{width:100%}
.editor-wide .a4-viewport{background:#d9dde1;border:1px solid #b7bec6;border-radius:4px;min-height:75vh;padding:20px 12px 40px}.editor-wide .a4-sheet{border:1px solid #adb5bf;box-shadow:0 3px 12px #10283d30}.editor-wide .a4-sheet:focus{outline:1px solid #6b8093;outline-offset:-1px}.editor-save-dialog label select{display:block;width:100%;margin-top:4px}
@media(min-width:1366px){#editor-preparacao .editor-prep-context{flex-wrap:nowrap}}
@media(forced-colors:active){.editor-wide .a4-viewport{background:Canvas;border-color:CanvasText}.editor-wide .a4-sheet{border:1px solid CanvasText;box-shadow:none}.editor-wide .a4-sheet:focus{outline-color:Highlight}}

/* Fluxo confirmado e ferramentas da referência de 15/10/2026. */
#editor-preparacao .docs-page-heading{margin-bottom:12px}#editor-preparacao .docs-page-heading h1{font:600 30px/1.1 Aptos,"Segoe UI",sans-serif;letter-spacing:-.5px}#editor-preparacao .docs-page-heading p{margin-top:5px}
.editor-context-row{display:grid;grid-template-columns:170px minmax(0,1fr);gap:12px;align-items:center;margin:8px 0}
#editor-preparacao .editor-context-row>label{display:flex;flex-direction:row;align-items:center;gap:12px;font-size:12px;font-weight:700;color:#10283d}
.editor-context-row label svg{width:24px;height:24px;flex:none}.editor-client-search{min-width:0}.editor-demand-controls{display:grid;grid-template-columns:minmax(150px,1fr) minmax(130px,.6fr);gap:10px}
.editor-demand-controls :is(input,select){width:100%;min-width:0}.editor-context-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px}.editor-context-actions .btn{display:inline-flex;align-items:center;gap:5px}
.editor-choice-dialog{width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 32px);margin:auto;border-radius:8px;padding:20px;inset:0;background:#fcfbf8;color:#10283d}
.editor-choice-dialog h2{font:600 21px/1.2 Aptos,"Segoe UI",sans-serif;margin:0 0 14px}.editor-choice-dialog p{font-size:13px;line-height:1.4;margin:10px 0}
.editor-choice-dialog label{display:flex;flex-direction:column;gap:5px;font-size:13px;margin:12px 0}.editor-choice-dialog :is(input:not([type=checkbox]),select){display:block;width:100%;min-height:36px;padding:6px 9px;border:1px solid #b9c7cd;border-radius:5px;background:#fcfbf8;color:inherit;font:14px Aptos,"Segoe UI",sans-serif}
.editor-choice-dialog footer{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}.editor-choice-dialog .editor-checkbox{flex-direction:row;align-items:center;gap:8px}.editor-checkbox input{width:auto;min-height:0}.editor-fields-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}.editor-choice-dialog fieldset{border:1px solid #b9c7cd;padding:8px 12px}.editor-choice-dialog legend{font-size:13px}
.editor-command-panel{position:static;margin-top:18px;border-radius:5px}
.editor-document-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:8px;border-bottom:1px solid #b9c7cd}.editor-document-status{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:12px}.editor-document-status strong{font-weight:700;color:#10283d}.editor-document-status>span{font-size:12px;color:#526a7b}
.pj-interface.docs-app-body .editor-command-panel :is(button,.tool-btn,.btn){width:34px;height:34px;min-height:34px;min-width:34px;border:2px solid transparent;border-radius:3px;background:#fcfbf8;color:#39779b;padding:4px;font:600 12px Aptos,"Segoe UI",sans-serif}
.pj-interface.docs-app-body .editor-command-panel :is(button,.tool-btn,.btn):hover{border:2px solid #39779b;background:#dce8ef;color:#1e5b80}
.pj-interface.docs-app-body .editor-command-panel .editor-labeled-action{width:auto;gap:5px;padding:4px 8px;white-space:nowrap}
.pj-interface.docs-app-body .editor-command-panel .editor-tools-toggle{width:auto;min-width:0;font-weight:400;height:28px;min-height:28px;color:#526a7b;padding:3px 8px}
.editor-command-panel .floating-actions{border:0}.editor-command-panel [hidden]{display:none!important}
.pj-interface.docs-app-body .editor-command-panel select.tool-select{height:34px;min-height:34px;font-size:12px;padding:3px 6px;color:#10283d;background:#fcfbf8;border-radius:3px}
.editor-command-panel :is(button,a):disabled{opacity:.45;cursor:default}.editor-command-panel .toolbar-group{border-color:#b9c7cd}
@media(max-width:700px){.editor-context-row{grid-template-columns:1fr;gap:3px}.editor-demand-controls{grid-template-columns:minmax(0,1fr)}.editor-fields-grid{grid-template-columns:1fr}.editor-document-bar{align-items:flex-start}.editor-choice-dialog{padding:16px}}
@media(forced-colors:active){.editor-choice-dialog,.editor-choice-dialog :is(input,select),#editor-modelo-selecionado,.pj-interface.docs-app-body .editor-command-panel :is(button,.tool-btn,.btn),.pj-interface.docs-app-body .editor-command-panel select.tool-select{background:Canvas;color:CanvasText;border-color:CanvasText}.pj-interface.docs-app-body .editor-command-panel :is(button,.tool-btn,.btn):hover{background:Highlight;color:HighlightText;border-color:Highlight}.editor-document-status strong,.editor-document-status>span,#editor-preparacao .editor-context-row>label{color:CanvasText}}

body.docs-app-body:has(.editor-choice-dialog[open]){overflow:hidden}

.editor-context-row #contexto_status{grid-column:1 / -1;margin:0}

.editor-draft-bar,.editor-print-header-info{display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:#10283d;font:12px/1.4 Aptos,"Segoe UI",sans-serif;padding:8px 0}
.editor-draft-bar{margin:0 0 12px;border-bottom:1px solid #b9c7cd}.editor-draft-bar>span{flex:1 1 230px}.editor-print-header-info>a{margin-left:auto}.editor-print-header-info .btn,.editor-draft-bar .btn{min-height:30px;font-size:11px}
.editor-wide .a4-viewport{position:relative}.editor-wide .a4-sheet .secao-header{display:none!important}
.editor-print-header-preview{position:absolute;transform-origin:left top;pointer-events:none;z-index:1;max-height:calc(var(--header-margin,2.35cm) - .1cm);overflow:hidden;box-sizing:border-box;padding:0 var(--header-right,1.5cm) 0 var(--header-left,1.5cm);font:11pt/1.15 Aptos,"Segoe UI",sans-serif;color:#000;background:transparent}
.editor-print-header-preview[data-image="true"]{padding:0;line-height:0}.editor-print-header-preview[data-image="true"] img{display:block!important;width:100%!important;height:auto!important;max-width:none!important;max-height:calc(var(--header-margin,2.35cm) - .1cm)!important;object-fit:contain;object-position:left top}
.editor-header-empty{display:block;padding:10px 0;font-size:10pt;color:#607587}.editor-print-header-preview p{margin:0}.editor-print-header-preview section{max-height:2cm;overflow:hidden}
.editor-draft-bar button[hidden]{display:none!important}
@media(forced-colors:active){.editor-draft-bar,.editor-print-header-info,.editor-header-empty,.editor-print-header-preview{color:CanvasText;border-color:CanvasText}.editor-print-header-preview img{forced-color-adjust:none}}
.editor-identity-refresh{display:inline-flex;align-items:center;gap:6px}
.editor-batch-picker{display:flex;align-items:center;gap:6px}.editor-batch-picker select{flex:1;min-width:0}
.editor-batch-picker button{flex:none;display:inline-flex;align-items:center;gap:4px;min-height:36px}.editor-batch-picker svg{width:20px;height:20px}
.editor-batch-chips{display:flex;flex-wrap:wrap;gap:5px;margin:10px 0}
.editor-batch-chip{display:inline-flex;align-items:center;gap:5px;max-width:100%;border:1px solid #8b9ea9;border-radius:4px;background:#e5eef3;color:#10283d;padding:2px 5px;font-size:12px;line-height:1.3;overflow-wrap:anywhere}
.pj-interface.docs-app-body .editor-batch-chip button{flex:none;border:0;background:transparent;color:#10283d;font-size:18px;padding:2px 5px;min-width:26px;min-height:26px}
#editor-preparacao [hidden],#editor-lote-dialog [hidden]{display:none!important}
@media(forced-colors:active){.editor-batch-chip{background:Canvas;color:CanvasText;border-color:CanvasText}.editor-batch-chip button{color:ButtonText}}
.editor-print-footer-preview{box-sizing:border-box;max-width:960px;width:100%;margin:0 auto 12px;padding:8px;border:1px dashed #b9c7cd;max-height:100px;overflow:hidden;pointer-events:none;color:#000;background:#fff;font:11pt/1.15 Aptos,"Segoe UI",sans-serif}
.editor-print-footer-preview p{margin:0}.editor-print-footer-preview img{max-width:100%;max-height:85px;object-fit:contain}
.editor-identity-dialog{width:min(480px,calc(100vw - 32px));border:1px solid #b9c7cd;border-radius:10px;padding:20px;color:#10283d;background:#fff}.editor-identity-dialog::backdrop{background:#0006}.editor-identity-dialog p{margin:0 0 18px}.editor-identity-dialog .btn{margin-right:8px}
@media print{.editor-draft-bar,.editor-print-header-info,.editor-print-header-preview,.editor-print-footer-preview,.editor-identity-dialog{display:none!important}}

/* Arquivo do editor (17/10/2026): formulário claro em azul de baixa opacidade.
   Campos compactos sem cores próprias: herdam texto e fundo do formulário e, no alto contraste, do sistema. */
#editor-preparacao .editor-fluxo-painel{border:1px solid rgba(37,104,189,.22);border-radius:8px;padding:10px 12px;background-color:#fff;background-image:linear-gradient(100deg,rgba(37,104,189,.11),rgba(37,104,189,.05));color:#173447;font:12px/1.35 Aptos,"Segoe UI",sans-serif}
#editor-preparacao .editor-fluxo-topo{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 8px}
#editor-fluxo-titulo{font-size:12px;letter-spacing:.055em;font-weight:800;color:#103344}
#editor-mode-help{flex:1 1 260px;font-size:12px;color:#4b6676}
#editor-preparacao .editor-fluxo-novo{position:relative;display:inline-flex}
#editor-preparacao .editor-fluxo-menu{position:absolute;left:0;top:calc(100% + 4px);z-index:45;min-width:190px;padding:4px;border:1px solid rgba(37,104,189,.3);border-radius:6px;background:#fff;color:#173447;box-shadow:0 10px 24px rgba(4,30,40,.18)}
#editor-preparacao .editor-fluxo-menu button{display:block;width:100%;padding:8px 10px;border:0;border-radius:4px;background:transparent;color:inherit;font:inherit;font-weight:650;text-align:left;cursor:pointer}
#editor-preparacao .editor-fluxo-menu button:is(:hover,:focus-visible){background:rgba(37,104,189,.14)}
#editor-preparacao .editor-fluxo-campos{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap}
#editor-preparacao .editor-fluxo-campo{position:relative;display:flex;flex-direction:column;gap:3px;min-width:150px;flex:1 1 180px}
#editor-preparacao .editor-fluxo-campo>:is(label,span){font-size:11px;font-weight:750;letter-spacing:.02em;color:#24485c}
#editor-preparacao .editor-fluxo-nome{flex:2 1 220px}#editor-preparacao .editor-fluxo-tipo{flex:1 1 150px}#editor-preparacao .editor-fluxo-busca{flex:2.4 1 260px}#editor-preparacao .editor-fluxo-cliente{flex:1.6 1 210px}#editor-preparacao .editor-fluxo-demanda{flex:1.4 1 220px}
#editor-preparacao .editor-fluxo-campos :is(input:not([type=radio]),select){width:100%;height:30px;min-height:30px;min-width:0;border:1px solid color-mix(in srgb,currentColor 38%,transparent);border-radius:4px;padding:2px 8px;background:transparent;color:inherit;font:inherit;font-size:13px;font-weight:500}
#editor-preparacao .editor-fluxo-campos input::placeholder{color:inherit;opacity:.62}
#editor-preparacao .editor-fluxo-campos :is(input,select):focus-visible{outline:2px solid currentColor;outline-offset:1px}
#editor-preparacao .editor-fluxo-campos :is(input,select):disabled{opacity:.6;cursor:not-allowed}
#editor-preparacao .editor-demand-controls{display:grid;grid-template-columns:minmax(120px,1fr) minmax(90px,.5fr);gap:6px}
#editor-preparacao .documento-autocomplete{border:1px solid rgba(37,104,189,.3);border-radius:6px;background:#fff;color:#173447;box-shadow:0 10px 20px rgba(0,0,0,.14)}
#editor-preparacao .editor-fluxo-opcao{display:flex;gap:8px;align-items:baseline;text-transform:none;font-weight:500;letter-spacing:normal;line-height:1.3}#editor-preparacao .editor-fluxo-opcao small{min-width:82px;font-size:10px;font-weight:800;color:#145a85}
#editor-preparacao .editor-context-actions{display:flex;align-items:center;gap:4px;flex-wrap:wrap;margin:8px 0 0}
#editor-preparacao #contexto_status:empty,#editor-preparacao-status:empty{display:none}
#editor-preparacao-status{margin:8px 0 0;font-size:12px}
#editor-preparacao .editor-fluxo-acoes{display:flex;justify-content:flex-end;gap:4px;flex-wrap:wrap;margin-top:8px;padding-top:8px;border-top:1px solid rgba(37,104,189,.16)}
#editor-preparacao .editor-fluxo-botao{min-height:30px;padding:5px 12px;border:0;border-radius:5px;background:transparent;color:#173447;font:800 11px/1.2 Aptos,"Segoe UI",sans-serif;letter-spacing:.03em;cursor:pointer}
#editor-preparacao .editor-fluxo-botao:hover:not(:disabled){background:rgba(37,104,189,.14)}
#editor-preparacao .editor-fluxo-forte{background:rgba(37,104,189,.18);color:#103344}
#editor-preparacao .editor-fluxo-forte:hover:not(:disabled){background:rgba(37,104,189,.26)}
#editor-preparacao .editor-fluxo-discreto{color:#8a4b33}
#editor-preparacao .editor-fluxo-seta{margin-left:1px;padding:5px 8px}
#editor-preparacao .editor-fluxo-botao:disabled{opacity:.5;cursor:not-allowed}
#editor-preparacao .editor-fluxo-botao:focus-visible{outline:2px solid #2568bd;outline-offset:1px}
@media(max-width:700px){#editor-preparacao .editor-fluxo-campo{flex-basis:100%;min-width:0}#editor-preparacao .editor-demand-controls{grid-template-columns:minmax(0,1fr)}#editor-preparacao .editor-fluxo-acoes{justify-content:flex-start}}
/* Alto contraste: nenhuma cor própria; tudo herda do sistema e só as linhas são reforçadas. */
@media(forced-colors:active){#editor-preparacao .editor-fluxo-painel{background-image:none;border:1px solid}#editor-preparacao :is(.editor-fluxo-campos input:not([type=radio]),.editor-fluxo-campos select,.documento-autocomplete,.editor-fluxo-menu){border:1px solid}#editor-preparacao .editor-fluxo-botao{border:1px solid;margin:1px}#editor-preparacao .editor-fluxo-acoes{border-top:1px solid}}
/* Modais do Documentos (19/10/2026): todos centralizados na página, raio de 12px, borda de 2px visível
   e cores herdadas do tema (sem paleta própria), inclusive no Alto Contraste. O .cadastro-dialog
   compartilhado com Clientes e Demandas só é ajustado aqui pela NOVA DEMANDA de Novo documento. */
:is(.editor-panel-dialog,.editor-choice-dialog,.document-flow-dialog,.editor-identity-dialog,#editor-demanda-dialog){position:fixed;inset:0;margin:auto;box-sizing:border-box;height:fit-content;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;padding:14px 16px;border:2px solid currentColor;border-radius:12px;background:var(--bg-card,var(--bg-main,Canvas));color:var(--text-main,CanvasText);box-shadow:0 10px 30px #10283d33;font:13px/1.4 Aptos,"Segoe UI",sans-serif}
:is(.editor-panel-dialog,.editor-choice-dialog,.document-flow-dialog,.editor-identity-dialog,#editor-demanda-dialog)::backdrop{background:#10283d66}
:is(.editor-panel-dialog,.editor-choice-dialog,.document-flow-dialog,.editor-identity-dialog) :is(h2,.editor-choice-dialog h2){font:600 17px/1.25 Aptos,"Segoe UI",sans-serif;margin:0 0 8px}
:is(.editor-panel-dialog,.editor-choice-dialog,.document-flow-dialog,.editor-identity-dialog) h3{font:600 13px/1.3 Aptos,"Segoe UI",sans-serif;margin:10px 0 4px}
:is(.editor-panel-dialog,.editor-choice-dialog,.document-flow-dialog,.editor-identity-dialog) p{font-size:13px;line-height:1.4;margin:6px 0}
:is(.editor-panel-dialog,.editor-choice-dialog,.document-flow-dialog,.editor-identity-dialog) footer{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:8px;margin-top:12px}
.editor-choice-dialog label{gap:3px;font-size:12px;margin:6px 0}
.pj-interface.docs-app-body .editor-choice-dialog :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){height:auto;min-height:30px;padding:4px 8px;border:1px solid var(--border-color,currentColor);border-radius:4px;background:inherit;color:inherit;font:13px Aptos,"Segoe UI",sans-serif;width:100%;box-sizing:border-box}
.editor-choice-dialog fieldset{border:1px solid var(--border-color,currentColor);border-radius:6px;padding:4px 10px 6px;margin:8px 0}.editor-choice-dialog legend{font-size:12px;padding:0 4px}
.editor-choice-dialog .editor-checkbox{flex-direction:row;align-items:center;gap:8px;margin:4px 0;font-size:13px}
:is(.editor-panel-dialog,.editor-choice-dialog,.document-flow-dialog,.editor-identity-dialog) [role=alert]:empty{display:none}
#editor_tags_dialog{top:0;bottom:0;margin:auto}
.editor-identity-dialog{width:min(480px,calc(100vw - 24px))}.editor-identity-dialog footer .btn{margin:0}
/* Inserir referência (ABNT): campos compactos em grade. */
.editor-reference-dialog{width:min(720px,calc(100vw - 24px))}
.editor-reference-dialog>header{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;margin:0 0 6px}
.editor-reference-dialog>header h2{margin:0}.editor-reference-dialog>header small{font-size:11px;opacity:.8}
.editor-reference-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 10px}
.editor-choice-dialog .editor-reference-grid label{margin:0}
.editor-reference-grid .editor-reference-wide{grid-column:1/-1}
.editor-reference-grid textarea{resize:vertical;min-height:44px}
.editor-reference-preview{margin-top:8px}.editor-reference-preview h3{margin:0 0 3px}
#referencia_abnt_previa{min-height:34px;padding:6px 8px;border:1px solid var(--border-color,currentColor);border-radius:6px;font-size:13px}
.editor-shortcut-list{display:grid;gap:4px}.editor-choice-dialog .editor-shortcut-list label{display:grid;grid-template-columns:minmax(0,1fr) 150px;align-items:center;gap:8px;margin:0}
@media(max-width:600px){.editor-reference-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.editor-choice-dialog .editor-shortcut-list label{grid-template-columns:minmax(0,1fr) 120px}}
/* Assinatura em miniatura, numa faixa discreta acima do rodapé. */
.editor-print-signature-preview{display:flex;align-items:center;justify-content:center;gap:10px;box-sizing:border-box;margin:0 auto;padding:4px var(--margin-right,1.5cm) 6px var(--margin-left,1.5cm);pointer-events:none;font:11px/1.2 Aptos,"Segoe UI",sans-serif}
.editor-print-signature-preview[hidden]{display:none}
:not(.pj-quill-page)>.editor-print-signature-preview{max-width:21cm;width:100%;border:1px dashed #b9c7cd;margin-top:6px}
.editor-signature-label{flex:none;font-size:10px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;padding:1px 5px;border:1px solid currentColor;border-radius:3px;opacity:.75}
.editor-signature-content{zoom:.7;max-height:2.4cm;overflow:hidden;text-align:center}.editor-signature-content p{margin:0}
@media(forced-colors:active){:is(.editor-panel-dialog,.editor-choice-dialog,.document-flow-dialog,.editor-identity-dialog,#editor-demanda-dialog){forced-color-adjust:auto;background:Canvas;color:CanvasText;border-color:CanvasText;box-shadow:none}.editor-choice-dialog :is(input,select,textarea),#referencia_abnt_previa,.editor-choice-dialog fieldset{background:Canvas;color:CanvasText;border-color:CanvasText}.editor-print-signature-preview{border-color:CanvasText}.editor-signature-content img{forced-color-adjust:none}}
/* Alça de propriedades no canto superior esquerdo da tabela. */
.editor-table-handle{position:fixed;z-index:30;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;padding:3px;border:1px solid currentColor;border-radius:6px;background:var(--bg-card,#fcfbf8);color:var(--text-main,#10283d);cursor:pointer;box-shadow:0 1px 4px #10283d33}
.editor-table-handle[hidden]{display:none}.editor-table-handle svg{width:16px;height:16px}.editor-table-handle:focus-visible{outline:2px solid currentColor;outline-offset:1px}
@media(forced-colors:active){.editor-table-handle{forced-color-adjust:auto;background:ButtonFace;color:ButtonText;border-color:ButtonText;box-shadow:none}}
@media print{.editor-table-handle{display:none!important}}
/* Propriedades da tabela: identificação da tabela e campos em três colunas. */
.editor-table-properties{width:min(680px,calc(100vw - 24px))}
.editor-table-identificacao{font-weight:600}
.editor-fields-grid.editor-fields-grid-3{grid-template-columns:repeat(3,minmax(0,1fr));gap:0 10px}
.editor-table-dica{font-size:11px!important;opacity:.85}
@media(max-width:560px){.editor-fields-grid.editor-fields-grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}}
.editor-table-tabs{display:flex;gap:.4rem;border-bottom:1px solid #a8b3bf;margin:1rem 0}
.editor-table-tabs [role=tab]{padding:.6rem .8rem;border:1px solid #718096;border-radius:5px 5px 0 0;background:#eef2f6;color:#10283d;cursor:pointer}
.editor-table-tabs [aria-selected=true]{background:#10283d;color:#fff;border-bottom:3px solid #bba57f}
.editor-table-properties [hidden]{display:none!important}
.editor-table-properties .editor-table-proxy{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;padding:0;border:0}
.editor-table-icons{display:flex;gap:.3rem;margin-top:.35rem;flex-wrap:wrap}
.editor-table-icons button{display:grid;place-items:center;min-width:36px;min-height:36px;border:1px solid #718096;background:white;color:#10283d;border-radius:4px;cursor:pointer}
.editor-table-icons [aria-pressed=true]{background:#10283d;color:#fff;outline:2px solid #bba57f;outline-offset:1px}
.editor-table-icons [aria-pressed=mixed]{border:2px dashed #10283d}
.editor-table-properties :is(input,select,button):disabled{opacity:1;color:#526070;background:#e5e9ee;border:1px dashed #657386;cursor:not-allowed}
.editor-table-properties :is(input,select,button):focus-visible{outline:3px solid #1769a5;outline-offset:2px}
.editor-table-column{display:grid;grid-template-columns:minmax(100px,1fr) minmax(120px,1fr);align-items:center;gap:1rem;margin:.5rem 0}
.editor-table-column input[type=checkbox]{width:auto}
.editor-table-column>label:last-child{display:flex;flex-direction:row;align-items:center;gap:.4rem}
#editor-table-columns-status[data-error=true]{color:#9d1919;font-weight:600}
/* !important: a regra comum de campos do central.compat.css tem especificidade maior e devolvia a borda contínua. */
#editor-table-properties :is(input,select,button):disabled{opacity:1;color:#526070;background:#e5e9ee;border:1px dashed #657386!important;cursor:not-allowed}
@media(forced-colors:active){#editor-table-properties :is(input,select,button):disabled{color:GrayText;background:Canvas;border:2px dashed GrayText!important}.editor-table-icons [aria-pressed=true],.editor-table-tabs [aria-selected=true]{outline:3px solid Highlight}}
