.reports-heading{display:flex;justify-content:space-between;align-items:start;gap:16px}
.reports-workspace{display:grid;grid-template-columns:240px minmax(0,1fr);gap:22px;align-items:start}
.reports-directory{padding:16px;background:#f8fafc;border:1px solid #dbe4f0;border-radius:8px;min-width:0}
.reports-directory>button{margin-top:12px;width:100%}
#rp-list{display:flex;flex-direction:column;gap:8px;max-height:65vh;overflow:auto;margin-top:16px}
.reports-item{text-align:left;background:white;color:#193355;border:1px solid #dbe4f0;overflow-wrap:anywhere;padding:12px}
.reports-item[aria-pressed=true]{background:#eaf1ff;border-color:#7fa5ff;box-shadow:inset 3px 0 #2563eb}
.reports-item strong,.reports-item small{display:block}.reports-item small{margin-top:5px;font-weight:400}.reports-directory>label+label{margin-top:12px}.rp-model-empty{padding:48px 24px;text-align:center;background:#f8fafc;border:1px dashed #bdcde0;border-radius:10px;color:#526884}
.reports-detail{min-width:0}.reports-detail .fields{grid-template-columns:repeat(2,minmax(0,1fr))}
.reports-detail textarea{width:100%;font:14px/1.5 Consolas,monospace;border:1px solid #bfccdf;border-radius:7px;padding:12px;resize:vertical;background:#f8fafc;color:#172b4d;tab-size:2}
.reports-detail textarea:focus-visible{outline:3px solid #a7c6ff;outline-offset:2px}
.reports-detail textarea:read-only{background:#edf2f8;color:#65758b}
.reports-layout-tools,.reports-actions{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:18px 0}
.reports-layout-tools>label{flex:1 1 240px;min-width:0}.reports-actions{align-items:center}
.reports-data{border:1px solid #dbe4f0;border-radius:8px;padding:14px;margin:20px 0}
.reports-data summary{cursor:pointer;font-weight:600}.reports-data label{margin-top:12px}
#rp-status{padding:12px 16px;background:#edf3ff;border-radius:6px;margin:16px 0}#rp-status.error{background:#ffe9e9;color:#982323}
#rp-preview-frame{width:100%;height:680px;border:1px solid #bfccdf;border-radius:8px;background:#f3f6fb}
#rp-values{white-space:pre-wrap;overflow-wrap:anywhere;background:#f5f8fc;padding:12px;border-radius:6px}
@media(max-width:850px){.reports-workspace{grid-template-columns:190px minmax(0,1fr);gap:12px}.reports-detail .fields{grid-template-columns:1fr}}
@media(max-width:650px){.reports-workspace{grid-template-columns:1fr}.reports-heading{flex-direction:column}#rp-list{max-height:220px}#rp-preview-frame{height:480px}}
.reports-actions{position:sticky;top:57px;z-index:8;background:white;border:1px solid #dbe4f0;border-radius:8px;padding:12px;margin:14px 0}
#rp-status{border-left:4px solid #245ce5}#rp-status.error{border-left-color:#c53030}
.rp-view-tabs{display:flex;gap:6px;border-bottom:1px solid #ccd8e8;margin-bottom:12px}.rp-view-tabs button{background:#edf2fa;color:#243955;border-radius:6px 6px 0 0}.rp-view-tabs button[aria-selected=true]{background:#245ce5;color:white}
.rd-toolbar{display:flex;gap:8px;align-items:end;flex-wrap:wrap;padding:12px;background:#f3f6fb;border:1px solid #dbe4f0;border-radius:8px}.rd-toolbar button{padding:8px 10px;font-size:13px}.rd-toolbar label{min-width:140px}.rd-toolbar select{padding:7px}
.rd-workspace{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:14px;margin:14px 0;align-items:start}.rd-scroll{overflow:auto;max-height:650px;min-height:340px;background:#e3eaf2;border:1px solid #c9d5e4;border-radius:8px;padding:14px}
.rd-paper{padding:16px;background:white;box-shadow:0 3px 10px #102b4920;min-height:320px}.rd-section{margin-bottom:16px}.rd-band-heading{display:block;width:100%;padding:5px 8px;background:#e6effa;color:#33567b;font-size:11px;letter-spacing:.03em;text-align:left;border-radius:0;cursor:pointer}.rd-band{position:relative;background:linear-gradient(90deg,#dbe5ef50 1px,transparent 1px),linear-gradient(#dbe5ef50 1px,transparent 1px);background-size:15px 15px;border-bottom:1px dashed #becbdd;box-sizing:content-box;overflow:visible}
.rd-item{display:block;position:absolute;white-space:pre-wrap;overflow:hidden;border:1px dashed transparent;border-radius:0;background:transparent;color:#172b4d;padding:0;line-height:1.15;cursor:move;touch-action:none;min-width:0;font-weight:normal;user-select:none}.rd-item:hover{border-color:#628ae4;background:#eef4ff80}.rd-item[aria-pressed=true]{outline:2px solid #245ce5;outline-offset:1px;background:#e6eeff70}.rd-item:focus-visible{outline:2px solid #245ce5}.rd-line{border-top:1px solid #172b4d}.rd-shape{border:1px solid #172b4d;background:white}
.rd-inspector{padding:12px;border:1px solid #dbe4f0;border-radius:8px;background:#f8fafc;min-width:0}.rd-inspector h3{margin:0}.rd-inspector label{margin:9px 0;font-size:12px;gap:4px}.rd-inspector input,.rd-inspector select,.rd-inspector textarea{font-size:13px;padding:7px;min-width:0}.rd-inspector button{padding:8px 10px;margin:4px 0;font-size:12px;width:100%}.rd-dimensions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.rd-inspector .rd-check{flex-direction:row;align-items:center}.rd-check input{width:16px;height:16px}.rd-inspector hr{margin:14px 0}.rd-inspector details{margin-top:16px}.rd-inspector summary{font-size:13px;cursor:pointer}.rd-inspector [data-rd=selection]{overflow-wrap:anywhere}
[data-rd=message]:not(:empty){padding:10px 12px;color:#6b4800;background:#fff7db;border-radius:6px;font-size:13px}
.rp-parameter-section{padding:16px;background:#f3f7ff;border:1px solid #cddbf3;border-radius:8px;margin:18px 0}.rp-parameter-section h3{margin-top:0}.rp-parameter-section details{margin-top:12px}.rp-parameter-section summary{cursor:pointer;font-size:13px}.rp-parameter-section input:required:placeholder-shown{border-color:#839ac0}
.rp-parameter-section input[aria-invalid=true]{border-color:#c53030;background:#fff7f7}
#rp-pdf-pane{scroll-margin-top:130px}#rp-pdf-empty{padding:25px;text-align:center;background:#f3f6fb;border-radius:8px}.rp-pdf-toolbar{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;background:#edf2fa;padding:12px;border-radius:8px 8px 0 0}.rp-pdf-toolbar button{font-size:12px;padding:8px}.rp-pdf-sheet{overflow:auto;text-align:center;background:#dce4ed;padding:16px;max-height:760px}.rp-pdf-sheet canvas{display:block;margin:auto;background:white;box-shadow:0 3px 12px #10243a30;max-width:100%;height:auto!important}#rp-pdf-viewer pre{white-space:pre-wrap;font-size:12px}#rp-pdf-viewer details{margin-top:12px}
@media(min-width:1450px){.reports-workspace{grid-template-columns:210px minmax(0,1fr)}.rd-workspace{grid-template-columns:minmax(0,1fr) 250px}}
@media(max-width:1150px){.rd-workspace{grid-template-columns:1fr}.rd-inspector{display:block}.rd-inspector [data-rd=properties]{display:grid;grid-template-columns:1fr 1fr;gap:6px 14px}.rd-inspector .rd-dimensions{grid-column:1/-1}.rd-scroll{max-height:460px}}
@media(max-width:650px){.reports-actions{top:51px;gap:6px}.reports-actions button{font-size:12px;padding:9px}.rd-toolbar{gap:5px}.rd-inspector [data-rd=properties]{grid-template-columns:1fr}.rp-pdf-toolbar{gap:6px}.rd-scroll{padding:8px}}
.rp-web-output {border:1px solid #cbd5e1;padding:16px;margin:16px 0;border-radius:8px;background:#f8fafc}
.rp-web-output summary {font-size:1.1rem;font-weight:600;cursor:pointer}
.rp-web-output [data-web=data] {max-height:350px;overflow:auto}
.rp-web-output table {border-collapse:collapse;margin-bottom:8px}
.rp-web-output th,.rp-web-output td {padding:4px;text-align:left;min-width:130px}
.rp-web-output input {max-width:260px}
.rp-web-output iframe {width:100%;height:650px;border:1px solid #cbd5e1;background:#e5e7eb}
/* Report workspace: tools stay readable independently of the model's typography. */
.reports-editor{font-family:Segoe UI,Arial,sans-serif;color:#24344b;padding:24px!important;border:1px solid #dce4ee;border-radius:14px;background:#fff}
.reports-editor [hidden]{display:none!important}
.rp-eyebrow{font-size:10px;font-weight:700;letter-spacing:.12em;color:#526b8e}
.reports-heading h2{font-size:25px;letter-spacing:-.6px;margin:8px 0}
.reports-heading p{font-size:13px;color:#63758b;margin:0 0 10px}
.reports-editor label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:600;color:#465b76}
.reports-editor input,.reports-editor select{box-sizing:border-box;border:1px solid #cbd7e5;border-radius:6px;padding:8px;background:white;color:#24344b;min-width:0;max-width:100%;font:13px Segoe UI,Arial,sans-serif}
.reports-editor button{border:1px solid #cbd7e5;border-radius:6px;background:white;color:#314967;padding:9px 12px;font:600 12px Segoe UI,Arial,sans-serif;cursor:pointer}
.reports-editor button:hover:not(:disabled){background:#edf4ff;border-color:#8eafe7}
.reports-editor button:focus-visible,.reports-editor select:focus-visible,.reports-editor input:focus-visible{outline:2px solid #316de3;outline-offset:2px}
.reports-editor button:disabled{opacity:.5;cursor:default}
.reports-editor #rp-publish,.reports-editor [data-rd=apply],.reports-editor [data-web=generate]{background:#245ce5;color:white;border-color:#245ce5}
.reports-editor #rp-publish:hover:not(:disabled),.reports-editor [data-rd=apply]:hover:not(:disabled),.reports-editor [data-web=generate]:hover:not(:disabled){background:#1848c0}
.reports-editor .muted{font-size:12px;color:#64748b;line-height:1.5}
.reports-directory{background:#f7f9fc;border-radius:10px;padding:14px}
.reports-editor .reports-item{padding:12px;text-align:left}
.reports-editor .reports-item[aria-pressed=true]{background:#eaf1ff;border-color:#91afe9;color:#1949ab}
.reports-editor .fields{display:grid;gap:16px}
.reports-editor .fields input[readonly]{background:#f5f7fb;font-weight:600}
.reports-actions{box-shadow:0 3px 12px #1b365a08;gap:8px;top:8px}
.rp-save-state{font-size:11px;color:#587165;margin-right:auto;display:flex;align-items:center;gap:7px}
.rp-save-state:before{content:'';width:7px;height:7px;border-radius:50%;background:#57927a}
.rp-save-state.is-dirty{color:#98620d}.rp-save-state.is-dirty:before{background:#d79724}
.reports-actions a{font-size:12px;color:#245ce5;padding:8px}
.rp-web-output{background:#fff;padding:16px;border-radius:10px}
.rp-web-output>details>summary{font-size:16px;color:#24344b}
.rp-web-output [data-web=automatic]{display:flex;align-items:end;flex-wrap:wrap;gap:12px;padding:12px;background:#f5f8fd;border:1px solid #e0e8f3;border-radius:8px}
.rp-web-output [data-web=entry-controls]{display:flex;align-items:end;flex-wrap:wrap;gap:10px}
.rp-web-output [data-web=entry-code],.rp-web-output [data-web=budget]{width:125px}
.rp-web-output details details{margin-top:12px;border:1px solid #e0e7f0;border-radius:7px;padding:10px 12px}
.rp-web-output details details summary{font-size:12px;color:#516781}
.rp-dataset-details summary span{font-weight:400;margin-left:8px;color:#71839a}
.rp-web-output [data-web=status]{font-size:12px;line-height:1.6;color:#42617e}
.rp-web-output [data-web=status].error{color:#aa2828;background:#fff2f1;padding:12px;border-radius:7px}
.rp-web-output [data-web=compat]{font-size:12px;line-height:1.6;margin-top:8px}
.rd-toolbar{background:#f5f8fc;border-radius:8px;gap:6px}
.rd-view-controls{display:flex;align-items:end;flex-wrap:wrap;gap:10px;padding:12px 0}
.rd-view-controls label{min-width:80px}.rd-view-controls label:has([data-rd=elements]){flex:1;min-width:200px}
.rd-view-controls .rd-check{flex-direction:row;align-items:center;align-self:center;font-weight:400;gap:7px}
.rd-view-controls [data-rd=grid]{width:15px;height:15px;accent-color:#245ce5}
.rd-view-controls [data-rd=size]{align-self:center;font-variant-numeric:tabular-nums}
.rd-help{margin:0 0 10px}
.rd-workspace{grid-template-columns:minmax(0,1fr) 240px;gap:12px;margin-top:10px}
.rd-scroll{background:#e8edf4;min-height:430px;max-height:70vh;border-radius:8px;padding:16px}
.rd-paper{box-sizing:content-box;min-height:220px;box-shadow:0 3px 16px #152a4620}
.rd-band{background-size:var(--rd-grid-size,18.9px) var(--rd-grid-size,18.9px)}
.rd-no-grid .rd-band{background:none}
.rd-ruler{position:relative;height:22px;border-bottom:1px solid #c6d2e3;margin-bottom:8px;color:#788ca7;font:9px Segoe UI,Arial,sans-serif}
.rd-ruler span{position:absolute;bottom:3px;border-left:1px solid #c6d2e3;padding-left:3px}
.reports-editor .rd-band-heading{border:0;border-radius:0;background:#eaf0f8;color:#5b7090;font-size:10px;padding:5px 8px;text-align:left}
.reports-editor .rd-item{border:1px dashed transparent;border-radius:0;padding:0;background:transparent;color:#172b4d;line-height:1.15;cursor:move;font-weight:normal}
.reports-editor .rd-item:hover:not(:disabled){border-color:#7099df;background:#eaf1ff70}
.reports-editor .rd-item[aria-pressed=true]{outline:2px solid #245ce5;outline-offset:1px;background:#dbe9ff60}
.reports-editor .rd-line{border-top:1px solid #172b4d}.reports-editor .rd-shape{border:1px solid #172b4d;background:white}
.rd-inspector{background:#f8fafd;border-radius:8px;padding:14px}
.rd-inspector h3{font-size:14px;color:#2d4563}
.reports-editor .rd-inspector label{font-size:11px}
.reports-editor .rd-inspector textarea{font:13px/1.5 Segoe UI,Arial,sans-serif;background:white}
.reports-editor .rd-inspector .rd-check{flex-direction:row}
.reports-editor .rd-inspector [data-rd=remove]{color:#a53d3d}
.reports-layout-tools{padding-top:14px;border-top:1px solid #e0e7f0}
#rp-edit-pane{scroll-margin-top:90px}
.report-preview-toolbar.report-entry-toolbar{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:8px}
.report-entry-toolbar .report-preview-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:8px}
.report-entry-toolbar .report-preview-actions>button{flex:0 0 auto;white-space:nowrap;min-height:36px}
.report-entry-toolbar [data-entry-status]{display:block;width:100%;margin:0!important;min-height:1.5em;overflow-wrap:anywhere}
.rp-model-modal{box-sizing:border-box;width:min(1440px,96vw);max-width:96vw;max-height:94dvh;margin:auto!important;padding:18px!important;border:1px solid #bdcde0;border-radius:12px;background:white;color:#24344b;overflow:auto;overscroll-behavior:contain;box-shadow:0 20px 80px #10243a50}
.rp-model-modal:not([open]){display:none!important}
.rp-model-modal{container-type:inline-size}
.rd-workspace,.rd-inspector,.rd-toolbar>label,.rd-view-controls>label{min-width:0}
.rd-toolbar select,.rd-view-controls select{max-width:100%}
.rd-toolbar>label{flex:1 1 220px;max-width:100%}
.rd-toolbar>button{flex:0 0 auto;min-height:36px}
.rd-item{touch-action:none}
.rd-special-tools{display:flex;align-items:end;gap:8px;flex-wrap:wrap;padding:10px 0}.rd-special-tools label{flex:1 1 180px;min-width:0}.rd-special-tools select{max-width:100%;width:100%}.rd-special-tools button{min-height:38px}
.rd-component-preview{position:absolute;white-space:pre-wrap;line-height:1.15;text-align:left;box-sizing:border-box}
.rd-rich-visual{min-height:100px;max-height:300px;overflow:auto;background:white;border:1px solid #aabbcf;padding:8px;white-space:pre-wrap;font:10pt Arial;line-height:1.15}.rd-rich-toolbar{display:flex;gap:5px;flex-wrap:wrap}.rd-rich-toolbar button{font-size:12px;padding:6px}.rd-rich-visual:focus{outline:2px solid #245ce5}
.reports-editor .rd-item.rd-region{border:1px dashed #6684ab;background:#dbe8f320;text-align:left;vertical-align:top;color:#526a8c;font-size:11px!important}
.rd-preview-warning{border-color:#bd7415!important}
[data-rd=content]{padding:10px;min-width:0}[data-rd=content] input,[data-rd=content] textarea{max-width:100%;box-sizing:border-box}[data-rd=content] textarea{font-family:Consolas,monospace}
@container(max-width:500px){.rd-special-tools{display:grid;grid-template-columns:minmax(0,1fr)}.rd-special-tools button{width:100%}}
.rd-resize{position:absolute;right:0;bottom:0;width:10px;height:10px;background:#245ce5;cursor:nwse-resize;display:none;touch-action:none}
.rd-item[aria-pressed=true] .rd-resize{display:block}
.rd-scroll{overscroll-behavior:contain}
.rd-toolbar [data-rd=delete-selected]:not(:disabled){color:#a52b2b}
@container(max-width:900px){.rd-workspace:has([data-oi=object]){grid-template-columns:minmax(0,1fr)}.rd-scroll{min-height:240px;max-height:45dvh}.oi-rows{max-height:35dvh}}
@container(max-width:500px){.rd-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.rd-toolbar>label{grid-column:1/-1}.rd-toolbar>button{min-width:0;white-space:normal;min-height:40px}.rd-view-controls label:has([data-rd=elements]){min-width:0;flex-basis:100%}.rd-inspector .rd-dimensions{grid-template-columns:repeat(2,minmax(0,1fr))}}
.rp-model-modal::backdrop{background:#14253d80}
.rp-model-modal .rp-modal-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.rp-model-modal .rp-modal-heading h2{font-size:19px;margin:0}
.rp-model-modal .reports-actions{position:sticky;top:0;z-index:10;margin:10px 0;background:white}
.rp-model-modal [data-web=editor-status]{white-space:pre-wrap;overflow-wrap:anywhere}
.rp-model-modal [data-web=editor-status].error{color:#aa2828}
@media(max-width:700px){.rp-model-modal{width:98vw;max-width:98vw;max-height:96dvh;padding:10px!important}.rp-model-modal .reports-actions{position:static}}
.rd-workspace:has([data-oi=object]){grid-template-columns:minmax(0,1fr) 320px}
.rd-inspector:has([data-oi=object]){padding:0;overflow:hidden;background:#f7f9fc}
.oi-heading{padding:12px;background:#e9eff8;border-bottom:1px solid #cfdaea}
.oi-heading h3{font-size:13px!important;margin:0 0 4px}.oi-heading span{font:11px Consolas,monospace;color:#647a98}
[data-rd=object-inspector]>label{padding:0 10px;margin:10px!important}
.oi-tabs{display:flex;padding:0 10px;border-bottom:1px solid #cbd7e8;gap:4px}
.reports-editor .oi-tabs button{width:auto;margin:0;border-radius:5px 5px 0 0;border-bottom:0;background:#edf2f9}
.reports-editor .oi-tabs button[aria-pressed=true]{color:#245ce5;background:white;box-shadow:inset 0 2px #245ce5}
.oi-tools{display:flex;gap:6px;padding:10px;background:white}
.oi-tools input{width:100%;min-width:0!important}.oi-tools select{width:115px;flex-shrink:0}
.oi-rows{max-height:540px;overflow:auto;background:white;min-height:180px}
.reports-editor .oi-rows details{margin:0!important;padding:0!important;border:0!important;border-radius:0!important}
.reports-editor .oi-rows summary{padding:7px 10px;background:#eaf0f8;color:#334b6a;font-size:11px;font-weight:700;border-top:1px solid #d9e3ef;border-bottom:1px solid #d9e3ef}
.reports-editor .oi-row{display:grid!important;grid-template-columns:45% 55%;align-items:stretch;gap:0!important;margin:0!important;border-bottom:1px solid #e7edf5;min-height:31px;font-weight:400}
.oi-row>span{display:flex;align-items:center;padding:5px 8px;border-right:1px solid #dce5f0;overflow-wrap:anywhere;font:11px Segoe UI,Arial,sans-serif;color:#3a4e68}
.reports-editor .oi-row input,.reports-editor .oi-row select,.reports-editor .oi-row textarea{border:0;border-radius:0;background:transparent;padding:5px 7px;font:12px/1.5 Segoe UI,Arial,sans-serif;width:100%;margin:0;min-height:30px;max-width:100%}
.oi-row:focus-within{background:#eff5ff}.oi-readonly{background:#f9fafc}.oi-readonly input{color:#788ba1!important}
.oi-row [aria-invalid=true]{outline:1px solid #ce4949;background:#fff0f0!important}
.oi-help{font-size:11px;line-height:1.5;padding:10px;margin:0;color:#546b88;border-top:1px solid #d5dfed;background:#f3f6fb;min-height:65px}
[data-oi=events]{padding:10px;font-size:12px;line-height:1.5;max-height:500px;overflow:auto}
[data-oi=events] pre{font:11px/1.6 Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;background:white;padding:8px;border:1px solid #d8e2f0}
[data-rd=quick-edit]{padding:12px;border-top:1px solid #d3deed;margin:0!important}
[data-rd=quick-edit]>summary{font-size:12px;font-weight:600;color:#526a8c}
@media(max-width:1200px){.rd-workspace{grid-template-columns:1fr}.rd-inspector [data-rd=properties]{display:grid;grid-template-columns:1fr 1fr;gap:6px 14px}.rd-inspector .rd-dimensions{grid-column:1/-1}}
@media(max-width:1200px){.rd-workspace:has([data-oi=object]){grid-template-columns:1fr}.oi-rows{max-height:400px}}
@media(max-width:700px){.reports-editor{padding:12px!important}.reports-workspace{grid-template-columns:1fr}.reports-actions{position:static}.rp-save-state{flex-basis:100%}.rp-web-output{padding:10px}.rd-view-controls label:has([data-rd=elements]){flex-basis:100%}.rd-inspector [data-rd=properties]{grid-template-columns:1fr}.rd-scroll{min-height:280px}.rd-view-controls [data-rd=size]{display:none}}

[data-oi="events"] textarea{display:block;width:100%;box-sizing:border-box;min-height:12rem;font:13px/1.45 Consolas,monospace;resize:vertical;margin:8px 0}[data-oi="events"] button{margin:4px 4px 4px 0}[data-oi="events"] [role="status"]{white-space:pre-wrap;overflow-wrap:anywhere}

/* Pesquisa administrativa: uma busca, uma lista, sem coluna reservada ao editor. */
body.master-search .reports-workspace{grid-template-columns:minmax(0,1fr)}
body.master-search .reports-directory{width:100%;box-sizing:border-box}
.reports-editor #rp-status:empty{display:none}
.reports-directory #rp-refresh{width:auto}
.reports-directory #rp-list{max-height:none;overflow:visible;gap:0;border:1px solid #dbe4f0;border-radius:6px}
.reports-directory .reports-item{display:grid;grid-template-columns:minmax(0,1fr) minmax(120px,35%);gap:16px;align-items:center;border:0;border-bottom:1px solid #dbe4f0;border-radius:0;padding:10px 12px}
.reports-directory .reports-item:last-child{border-bottom:0}
.reports-directory .reports-item small{margin:0;color:#64748b;overflow-wrap:anywhere}
@media(max-width:600px){.reports-directory .reports-item{grid-template-columns:minmax(0,1fr)}.reports-directory .reports-item small{font-size:11px}}
/* ===== Editor no padrão ReportBuilder: janela modal de tela cheia =====
   Prefixo rde- (o prefixo rb- já é usado pelo explorador de relatórios em vscloud-custom.css). */
.rp-model-modal.rp-rb-modal{position:fixed!important;inset:0!important;z-index:2000}
.rp-model-modal.rp-rb-modal{box-sizing:border-box;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0!important;padding:0!important;border:0;border-radius:0;display:flex;flex-direction:column;overflow:hidden;background:#f3f6fa;container-type:normal}
.rp-model-modal.rp-rb-modal:not([open]){display:none!important}
.rp-rb-modal .rp-modal-heading{flex:0 0 auto;padding:4px 10px;background:#1f3b63;color:#fff}
.rp-rb-modal .rp-modal-heading h2{font-size:13px;font-weight:600;color:#fff!important;margin:0}
.rp-rb-modal .rp-modal-heading button{padding:2px 10px;font-size:12px;min-height:0}
.rp-rb-modal [data-web=editor-actions]{flex:0 0 auto;display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:3px 10px;background:#fff;border-bottom:1px solid #c9d5e4}
.rp-rb-modal [data-web=editor-actions] .reports-actions{margin:0;display:flex;gap:6px;align-items:center;flex-wrap:wrap;position:static}
.rp-rb-modal [data-web=editor-actions] button,.rp-rb-modal [data-web=editor-actions] a{padding:2px 10px;font-size:12px;min-height:0}
.rp-rb-modal [data-web=editor-status]{flex:0 0 auto;margin:0;padding:2px 10px;font-size:12px}
.rp-rb-modal [data-web=editor-status]:empty{display:none}
.rp-rb-modal [data-web=editor-body]{flex:1;min-height:0;display:flex;flex-direction:column}
.rp-rb-modal [data-web=editor-body]>*,.rp-rb-modal #rp-edit-pane{flex:1;min-height:0;display:flex;flex-direction:column}
.rp-rb-modal .rde-host{flex:1;min-height:0;display:flex}
.rp-rb-modal #rp-layout-state{display:none}
.rp-rb-modal .reports-layout-tools{flex:0 0 auto;display:flex;gap:10px;align-items:center;margin:0;padding:3px 10px;font-size:12px;border-top:1px solid #c9d5e4;background:#fff}
.rp-rb-modal #rp-code-panel{flex:0 0 35%;overflow:auto;padding:6px 10px;margin:0}
.rde-shell{position:relative;flex:1;min-width:0;min-height:0;display:flex;flex-direction:column;font:12px/1.3 'Segoe UI',Tahoma,Arial,sans-serif;color:#1d2b3f;background:#f3f6fa}
.rde-shell button,.rde-shell select,.rde-shell input{font:inherit}
.rde-legacy{display:none!important}
.rde-menubar{flex:0 0 auto;display:flex;gap:2px;padding:2px 6px;background:#fff;border-bottom:1px solid #d5dfeb}
.rde-menu{position:relative}
.rde-menu>button{border:0;background:none;padding:2px 9px;border-radius:3px;color:#1d2b3f;cursor:default;min-height:0}
.rde-menu>button:hover,.rde-menu>button[aria-expanded=true]{background:#e3ecf8}
.rde-menu-list,.rde-context{position:absolute;z-index:60;min-width:220px;padding:4px;background:#fff;border:1px solid #b9c8db;box-shadow:0 6px 18px #102b4930;display:flex;flex-direction:column}
.rde-menu-list{top:100%;left:0}
.rde-menu-list[hidden],.rde-context[hidden]{display:none}
.rde-menu-list button,.rde-context button{display:flex;justify-content:space-between;gap:18px;border:0;background:none;padding:4px 10px;text-align:left;border-radius:3px;color:#1d2b3f;cursor:default;min-height:0}
.rde-menu-list button:hover:not(:disabled),.rde-context button:hover:not(:disabled),.rde-context button:focus-visible{background:#245ce5;color:#fff}
.rde-menu-list button:disabled,.rde-context button:disabled{color:#9aa9bc}
.rde-menu-list kbd,.rde-context kbd{font:inherit;color:inherit;opacity:.65;background:none;border:0;padding:0}
.rde-menu-list hr,.rde-context hr{border:0;border-top:1px solid #e1e8f1;margin:3px 0}
.rde-tabs{flex:0 0 auto;display:flex;gap:2px;padding:3px 6px 0;background:#e9eff6;border-bottom:1px solid #c9d5e4}
.rde-tabs button{border:1px solid transparent;border-bottom:0;background:none;padding:3px 14px;border-radius:4px 4px 0 0;color:#33567b;cursor:pointer;min-height:0}
.rde-tabs button[aria-selected=true]{background:#fff;border-color:#c9d5e4;color:#14243a;font-weight:600;margin-bottom:-1px}
.rde-page{flex:1;min-height:0;background:#fff;overflow:auto}
.rde-page[hidden]{display:none!important}
.rde-design{display:flex;flex-direction:column;overflow:hidden}
.rde-empty{padding:24px;color:#6b7c93}
.rde-toolbar{flex:0 0 auto;display:flex;flex-wrap:wrap;align-items:center;gap:1px;padding:2px 6px;border-bottom:1px solid #dde5ef;background:#f8fafc}
.rde-toolbar button{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;min-height:0;padding:0 4px;border:1px solid transparent;border-radius:3px;background:none;color:#26405f;cursor:pointer}
.rde-toolbar button:hover:not(:disabled){background:#e3ecf8;border-color:#c3d3e8}
.rde-toolbar button[aria-pressed=true]{background:#d4e3fb;border-color:#8fb0e6}
.rde-toolbar button:disabled{opacity:.38;cursor:default}
.rde-toolbar .rde-sep{width:1px;height:18px;background:#d0dae6;margin:0 5px}
.rde-toolbar select{height:24px;min-height:0;padding:0 4px;border:1px solid #c3d0df;border-radius:3px;background:#fff;width:auto;margin:0 1px}
.rde-toolbar [data-rb=font-name]{width:150px}.rde-toolbar [data-rb=font-size]{width:58px}.rde-toolbar [data-rd=zoom]{width:120px}
.rde-toolbar .rde-style{width:24px;font-weight:700;font-family:Georgia,'Times New Roman',serif}
.rde-color{display:inline-flex;align-items:center;gap:2px;height:24px;padding:0 4px;margin:0;border-radius:3px;cursor:pointer;font-weight:700;color:#26405f}
.rde-color input{width:18px;height:18px;padding:0;border:0;background:none;cursor:pointer}
.rde-toolbar label.rde-check{display:inline-flex;align-items:center;gap:4px;margin:0 6px;font-size:12px;white-space:nowrap}
.rde-body{flex:1;min-height:0;display:grid;grid-template-columns:270px minmax(0,1fr) 250px}
.rde-left,.rde-right{display:flex;flex-direction:column;min-width:0;min-height:0;background:#fff}
.rde-left{border-right:1px solid #c9d5e4}.rde-right{border-left:1px solid #c9d5e4}
.rde-panel{display:flex;flex-direction:column;min-height:0;margin:0;border:0;border-bottom:1px solid #d5dfeb;border-radius:0;padding:0}
.rde-panel>header,.rde-panel>summary{flex:0 0 auto;padding:3px 8px;background:#eef3f9;color:#33465f;font-weight:600;border-bottom:1px solid #dde5ef;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rde-tree-panel{flex:0 0 36%}.rde-props-panel{flex:1}
.rde-tree,.rde-props{flex:1;min-height:0;overflow:auto}
.rde-tree-row{padding:1px 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:default;border-left:2px solid transparent}
.rde-tree-row:hover{background:#eef4fc}
.rde-tree-row[aria-selected=true]{background:#d4e3fb;border-left-color:#245ce5}
.rde-tree-row.rde-report,.rde-tree-row.rde-band{font-weight:600}.rde-tree-row.rde-band{color:#33567b}.rde-tree-row.rde-other{color:#7d8da3}
.rde-props{padding:0}
.rde-props .oi-heading h3{display:none}
.rde-props .oi-heading{margin:0;padding:2px 6px;color:#6b7c93;font-size:11px}
.rde-props>[data-rd=object-inspector]>label{display:block;margin:0;padding:2px 6px;font-size:11px}
.rde-props [data-oi=object]{width:100%;height:24px;min-height:0;font-size:12px}
.rde-props .oi-tabs{display:flex;gap:0;margin:2px 6px}
.rde-props .oi-tabs button{flex:1;padding:2px 6px;font-size:11px;min-height:0;border-radius:0}
.rde-props .oi-tools{display:flex;gap:4px;margin:2px 6px}
.rde-props .oi-tools input,.rde-props .oi-tools select{height:22px;min-height:0;font-size:11px;padding:0 4px}
.rde-props .oi-rows{max-height:none;overflow:visible}
.rde-props .oi-rows details{margin:0;border:0}
.rde-props .oi-rows summary{padding:2px 6px;background:#f1f5fa;font-weight:600;border-top:1px solid #e3e9f1;border-bottom:1px solid #e3e9f1;font-size:12px}
.rde-props .oi-row{display:grid;grid-template-columns:minmax(0,46%) minmax(0,1fr);align-items:center;gap:0;margin:0;border-bottom:1px solid #eef2f7;font-size:12px}
.rde-props .oi-row>span{padding:1px 6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#33465f}
.rde-props .oi-row input,.rde-props .oi-row select,.rde-props .oi-row textarea{box-sizing:border-box;width:100%;height:22px;min-height:0;margin:0;padding:1px 4px;font-size:12px;border:0;border-left:1px solid #eef2f7;border-radius:0;background:#fff}
.rde-props .oi-row textarea{height:auto;min-height:44px}
.rde-props .oi-help{margin:4px 6px;font-size:11px;color:#6b7c93}
.rde-props [data-rd=content]{padding:4px 6px;font-size:12px}
.rde-center{min-width:0;min-height:0;display:flex;background:#d9e2ec}
.rde-shell .rde-center .rd-scroll{flex:1;min-height:0!important;max-height:none!important;height:auto;margin:0;border:0;border-radius:0;background:#d9e2ec;padding:12px 18px;overflow:auto}
.rde-shell .rd-paper{position:relative;margin:0;padding:0 14px 14px 34px;min-height:0}
.rde-shell .rd-ruler{position:sticky;top:-12px;z-index:4;height:18px;margin:0 0 0 0;background:#f7f9fc;border-bottom:1px solid #b9c8db;color:#5b6e86;font:9px 'Segoe UI',Arial,sans-serif}
.rde-shell .rd-ruler span{bottom:0;height:7px;line-height:7px;border-left:1px solid #9fb0c6;padding-left:2px}
.rde-shell .rd-section{margin:0}
.rde-band-row{position:relative}
.rde-band-row[hidden]{display:none}
.rde-vruler{position:absolute;left:-28px;top:0;width:22px;background:#f7f9fc;border-right:1px solid #b9c8db;overflow:hidden;font:9px 'Segoe UI',Arial,sans-serif;color:#5b6e86}
.rde-vruler span{position:absolute;right:0;width:4px;border-top:1px solid #9fb0c6}
.rde-vruler span.rde-major{left:0;width:auto;padding:0 0 0 3px;border-top-color:#7f93ad;line-height:10px}
.rde-shell .rd-band{border-bottom:0;background-color:#fff}
.rde-shell .rd-band-heading.rde-band-bar{display:flex;align-items:center;gap:6px;width:100%;margin:0;padding:1px 6px;min-height:0;background:#e9eef5;border:0;border-top:1px solid #b9c8db;border-bottom:1px solid #b9c8db;border-radius:0;color:#3d5573;font-size:11px;text-align:left;cursor:ns-resize}
.rde-shell .rd-band-heading.rde-band-bar:hover{background:#dfe8f3}
.rde-caret{display:inline-block;width:12px;font-size:8px;cursor:pointer;color:#33567b;transition:transform .1s}
.rde-collapsed .rde-caret{transform:rotate(180deg)}
.rde-shell .rd-item:not([aria-pressed=true]){outline:1px dotted #aebbd0;outline-offset:-1px}
.rde-shell .rd-item[aria-pressed=true]{outline:1px solid #245ce5;outline-offset:0;background:#dbe9ff40}
.rde-placing .rd-band,.rde-placing .rd-item{cursor:crosshair!important}
.rde-marquee{position:absolute;z-index:5;border:1px dashed #245ce5;background:#245ce51a;pointer-events:none}
.rde-shell .rd-resize{position:absolute;right:auto;bottom:auto;width:7px;height:7px;background:#fff;border:1px solid #245ce5;box-sizing:border-box;display:none;z-index:2}
.rde-shell .rd-item[aria-pressed=true] .rd-resize{display:block}
.rde-h-nw{left:0;top:0;cursor:nwse-resize}.rde-h-n{left:calc(50% - 3.5px);top:0;cursor:ns-resize}.rde-h-ne{right:0!important;top:0;cursor:nesw-resize}
.rde-h-e{right:0!important;top:calc(50% - 3.5px);cursor:ew-resize}.rde-h-se{right:0!important;bottom:0!important;cursor:nwse-resize}.rde-h-s{left:calc(50% - 3.5px);bottom:0!important;cursor:ns-resize}
.rde-h-sw{left:0;bottom:0!important;cursor:nesw-resize}.rde-h-w{left:0;top:calc(50% - 3.5px);cursor:ew-resize}
.rde-shell .rd-region .rde-h-nw,.rde-shell .rd-region .rde-h-n,.rde-shell .rd-region .rde-h-ne,.rde-shell .rd-region .rde-h-w,.rde-shell .rd-region .rde-h-sw{display:none!important}
.rde-pipes-panel{flex:0 0 auto;max-height:36%}
.rde-pipelines{overflow:auto;padding:2px 0}
.rde-pipe{display:block;width:100%;min-height:0;position:relative;padding:2px 8px 2px 24px;border:0;border-radius:0;background:none;text-align:left;color:#1d2b3f;cursor:default;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rde-pipe::before{content:'';position:absolute;left:8px;top:4px;width:10px;height:10px;border:1px solid #5d7ea8;background:linear-gradient(#5d7ea8,#5d7ea8) 0 3px/100% 1px no-repeat,#fff}
.rde-pipe:hover{background:#eef4fc}.rde-pipe[aria-selected=true]{background:#d4e3fb}
.rde-fields-panel{flex:1}
.rde-hint{margin:2px 8px;color:#6b7c93;font-size:11px}
.rde-fields-wrap{flex:1;min-height:0;overflow:auto}
.rde-fields{width:100%;border-collapse:collapse;table-layout:fixed}
.rde-fields th{position:sticky;top:0;background:#f3f6fa;text-align:left;font-weight:600;padding:2px 8px;border-bottom:1px solid #dde5ef}
.rde-fields th:last-child{width:70px}
.rde-fields td{padding:1px 8px;border-bottom:1px solid #f0f3f7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rde-fields tr[draggable=true]{cursor:grab}
.rde-fields tbody tr:hover td{background:#eef4fc}
.rde-fields .rde-unmapped td{color:#9a6a00}
.rde-catalog{flex:0 0 auto}.rde-catalog .rd-data-catalog{padding:4px 8px;font-size:12px}
.rde-status{flex:0 0 auto;display:flex;gap:16px;align-items:center;min-height:22px;padding:2px 10px;border-top:1px solid #c9d5e4;background:#eef3f9;color:#44566e;font-size:11px}
.rde-status [data-rd=message]{flex:1;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rde-status [data-rd=selection],.rde-status [data-rd=size]{margin:0;white-space:nowrap}
.rde-dialog{padding:0;border:1px solid #b9c8db;border-radius:6px;min-width:380px;font:12px 'Segoe UI',Tahoma,Arial,sans-serif}
.rde-dialog header{display:flex;justify-content:space-between;align-items:center;padding:6px 10px;background:#eef3f9;font-weight:600}
.rde-dialog-body{padding:10px}.rde-dialog-body details>summary{display:none}
.rde-data-tab,.rde-preview-tab,.rde-calc{box-sizing:border-box;height:100%;overflow:auto;padding:10px}
.rde-preview-tab{display:flex;flex-direction:column;gap:6px}
.rde-preview-tab .reports-actions{position:static;margin:0;display:flex;gap:6px;flex-wrap:wrap}
.rde-preview-tab iframe{flex:1;min-height:300px;width:100%;border:1px solid #c9d5e4;background:#fff}
.rde-calc .oi-tabs,.rde-calc [data-oi=properties]{display:none!important}
.rde-calc [data-oi=events] textarea{width:100%;min-height:220px;font:12px Consolas,'Courier New',monospace}
.rde-toolbar label.rde-check input{width:auto;height:auto;min-height:0;margin:0;padding:0}
.rde-shell .rde-pipe{border:0!important;box-shadow:none!important;border-radius:0!important;height:auto!important;min-height:0!important;margin:0!important;font-weight:normal!important;background:none}
.rde-shell .rde-pipe[aria-selected=true]{background:#d4e3fb}
.rde-shell .rde-tree-row,.rde-shell .rde-fields td{font-size:12px}
/* Cada painel recalcula o próprio layout: um clique no desenho não força o layout da janela inteira. */
.rde-tree,.rde-props,.rde-pipelines,.rde-fields-wrap,.rde-shell .rde-center .rd-scroll{contain:strict}
.rde-shell .rd-band{contain:layout}
.rde-toolbar,.rde-status{contain:layout paint}
.rde-pipes-panel{flex:0 0 30%;max-height:none}
.rde-shell .rde-toolbar label.rde-check{display:inline-flex!important;flex-direction:row;align-items:center;gap:4px;margin:0 6px;padding:0;font-weight:normal}
.rde-shell .rde-toolbar label.rde-check input{display:inline-block;width:auto!important;height:auto!important}
.rde-pipelines{flex:1;min-height:0}
.rde-shell .rde-pipelines .rde-pipe{padding:2px 8px 2px 24px!important;line-height:1.35!important;font-size:12px!important}
/* Janela do modelo de Entradas: cabeçalho, status, ações e designer direto no <dialog>. */
.rp-rb-modal>[role=status]{flex:0 0 auto;margin:0;padding:2px 10px;font-size:12px}.rp-rb-modal>[role=status]:empty{display:none}
.rp-rb-modal>.reports-actions{flex:0 0 auto;display:flex;flex-wrap:wrap;gap:6px;align-items:center;position:static;margin:0;padding:3px 10px;background:#fff;border:0;border-bottom:1px solid #c9d5e4;border-radius:0;box-shadow:none}
.rp-rb-modal>.reports-actions button,.rp-rb-modal>.reports-actions a{padding:2px 10px;font-size:12px;min-height:0}
.rp-rb-modal [data-web=editor-actions]>.reports-actions{border:0;box-shadow:none;padding:0;background:none}
/* Telas pequenas ou com ampliação alta: cada linha conta. */
.rde-shell .rde-status{margin:0!important}
.rde-view{display:inline-flex;align-items:center;gap:1px;margin-left:auto}
.rde-shell .rde-toolbar button{min-width:22px;height:22px;padding:0 3px}
.rde-shell .rde-toolbar select{height:22px}
.rde-toolbar [data-rb=font-name]{width:128px}.rde-toolbar [data-rb=font-size]{width:52px}.rde-toolbar [data-rd=zoom]{width:96px}
.rde-shell .rde-color{height:22px;padding:0 3px}
.rde-shell .rde-color input[type=color]{-webkit-appearance:none;appearance:none;box-sizing:border-box;width:16px!important;height:16px!important;min-height:0!important;padding:0!important;margin:0!important;border:1px solid #9fb0c6!important;border-radius:2px;background:none;flex:0 0 16px}
.rde-shell .rde-color input[type=color]::-webkit-color-swatch-wrapper{padding:0}.rde-shell .rde-color input[type=color]::-webkit-color-swatch{border:0}
.rp-rb-modal .reports-layout-tools{gap:8px;padding:2px 10px;flex-wrap:nowrap}
.rp-rb-modal .reports-layout-tools label{display:flex!important;align-items:center;gap:6px;margin:0!important;font-size:12px;font-weight:normal;white-space:nowrap;flex:1;min-width:0}
.rp-rb-modal .reports-layout-tools input[type=file]{font-size:11px;padding:0;height:auto;min-height:0;max-width:320px;border:0;background:none}
.rp-rb-modal .reports-layout-tools button{padding:2px 10px;font-size:12px;min-height:0;margin:0}
.rde-shell .rde-toolbar select{height:22px!important;min-height:0!important;padding-top:0!important;padding-bottom:0!important;line-height:20px}
.rp-rb-modal .reports-layout-tools label{flex-direction:row!important;justify-content:flex-start!important;text-align:left}
.rp-rb-modal .reports-layout-tools label>input{margin:0!important;width:auto!important}
/* ===== Fontes de dados do relatório (aba Dados) ===== */
.rds-panel{display:block;margin:0 0 12px;padding:10px 12px;border:1px solid #c9d5e4;border-radius:6px;background:#fff;font-size:12px;color:#1d2b3f}
.rds-head{display:flex;align-items:baseline;gap:12px}.rds-head h3{margin:0;font-size:14px}.rds-state{color:#6b7c93}
.rds-hint{color:#6b7c93;margin:4px 0 8px}
.rds-panel h4{margin:10px 0 4px;font-size:12px;color:#33465f}
.rds-table{border-collapse:collapse;margin:4px 0}
.rds-table th,.rds-table td{padding:2px 6px;border-bottom:1px solid #eef2f7;text-align:left;font-weight:normal}
.rds-table th{background:#f3f6fa;font-weight:600}
.rds-panel input,.rds-panel select{height:24px;min-height:0;font-size:12px;padding:0 4px;width:auto;max-width:360px;margin:0}
.rds-panel input[type=checkbox]{height:auto}
.rds-panel button{padding:2px 10px;font-size:12px;min-height:0}
.rds-pipe{border:1px solid #dde5ef;border-radius:4px;margin:6px 0;padding:6px 10px}
.rds-pipe legend{font-weight:600;color:#33567b;padding:0 4px}
.rds-pipe label{display:flex;align-items:center;gap:6px;margin:3px 0;font-weight:normal}
.rds-sql{display:block;width:100%;box-sizing:border-box;font:12px Consolas,'Courier New',monospace;margin:4px 0}
.rds-link{display:flex;align-items:center;gap:4px;margin:3px 0}
.rds-add{display:flex;gap:6px;margin-top:6px}
.rds-error{color:#aa2828}
.rds-missing{border-color:#c77700;background:#fff4e0}
.rds-panel label{display:flex;align-items:center;justify-content:flex-start;gap:8px;text-align:left;margin:6px 0;font-weight:600}
.rds-panel label select,.rds-panel label input{flex:0 1 420px;min-width:0}
.rds-panel .rds-sql{width:100%;box-sizing:border-box}
.rds-note{margin:6px 0;padding:6px 10px;background:#eef4ff;border-radius:6px;color:#254a8a}
/* ===== Dados do modelo do Gerador (aba Dados) ===== */
.rdv-panel{display:block;padding:10px 14px;font-size:12px;color:#1d2b3f;overflow:auto}
.rdv-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.rdv-head h3{margin:0;font-size:14px}.rdv-state{color:#6b7c93}
.rdv-hint{margin:6px 0;color:#5b6b82}.rdv-error{margin:6px 0;padding:6px 10px;background:#ffecec;border-radius:6px;color:#a32121}.rdv-empty{color:#6b7c93}
.rdv-pipe{margin:10px 0;border:1px solid #c9d5e4;border-radius:6px;background:#fff}.rdv-pipe>summary{cursor:pointer;padding:6px 10px;background:#f1f5fa;border-radius:6px}
.rdv-sql{margin:8px 10px;padding:8px 10px;background:#f6f8fb;border:1px solid #dbe4f0;border-radius:6px;font:12px/1.45 Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;max-height:220px;overflow:auto}
.rdv-rows{margin:6px 10px 10px;border-collapse:collapse;font-size:11px}.rdv-rows th,.rdv-rows td{border:1px solid #dbe4f0;padding:3px 6px;text-align:left;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rdv-rows th{background:#eef3f9}
.rdv-tabs{display:flex;gap:2px;flex-wrap:wrap;margin:8px 0 0;border-bottom:1px solid #c9d5e4}.rdv-tabs button{border:1px solid #c9d5e4;border-bottom:0;border-radius:6px 6px 0 0;background:#f1f5fa;padding:5px 10px;font:inherit;cursor:pointer}.rdv-tabs button.is-current{background:#fff;font-weight:700}
.rdv-body{padding:8px 0}.rdv-relations{margin:6px 0;padding-left:18px;color:#3d4d66}.rdv-relations li.is-current{font-weight:600}.rdv-chooser{display:block;margin:8px 0}.rdv-sql-full{max-height:none}
.rdv-filters{border:1px solid #9fb3cc;border-radius:8px;padding:16px;max-width:560px}.rdv-field{display:block;margin:10px 0}.rdv-field>span{display:block;font-weight:600;margin-bottom:3px}.rdv-actions{display:flex;gap:8px;margin-top:12px}
.rdv-date{display:inline-flex!important;flex-wrap:nowrap;gap:4px;align-items:center;vertical-align:middle}.rdv-date input[type=text]{width:130px!important}
.rdv-cal{position:relative;display:inline-block;flex:none;width:40px;height:var(--vs-control-height,38px)}.rdv-cal .rdv-calendar{width:100%;height:100%;padding:0!important;cursor:pointer;line-height:1}
.rdv-cal .rdv-picker{position:absolute!important;left:0;top:0;width:100%!important;height:100%!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;opacity:0!important;cursor:pointer;pointer-events:auto!important}
.rdv-combo{display:inline-block;vertical-align:top;max-width:100%}.rdv-combo>input{min-width:220px}.rdv-search-box{position:relative;display:inline-block}.rdv-search-box .rdv-search{min-width:320px;width:100%}
.rdv-options{position:absolute;z-index:20;left:0;top:100%;min-width:100%;max-height:240px;overflow:auto;margin:2px 0 0;padding:2px 0;list-style:none;background:#fff;border:1px solid #9fb3cc;border-radius:4px;box-shadow:0 4px 14px rgba(0,0,0,.18)}.rdv-options[hidden]{display:none}
.rdv-options li{padding:5px 10px;cursor:pointer;white-space:nowrap}.rdv-options li:hover,.rdv-options li.is-active{background:#e6f0fb}.rdv-options li.is-selected{font-weight:600}.rdv-options li.rdv-none{color:#5b6b7d}.rdv-options li.rdv-more{color:#5b6b7d;cursor:default;font-style:italic}.rdv-options li.rdv-more:hover{background:transparent}
.rdv-multi{display:block;min-width:320px}.rdv-multi-head{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.rdv-multi-head .rdv-search{flex:1 1 200px;min-width:160px}.rdv-count{color:#5b6b7d;font-size:.9em}
.rdv-checks{margin-top:4px;max-height:200px;overflow:auto;border:1px solid #c5d3e3;border-radius:4px;padding:4px 8px}.rdv-check{display:flex;gap:6px;align-items:center;padding:2px 0;cursor:pointer}.rdv-check input{min-height:0!important;width:auto}.rdv-checks .rdv-more{color:#5b6b7d;font-style:italic;margin:4px 0}
/* ===== Menu de contexto do Gerador (lista de relatórios) ===== */
.rb-context-menu{position:fixed;z-index:10000;min-width:170px;padding:4px;background:#fff;border:1px solid #c9d5e4;border-radius:6px;box-shadow:0 6px 20px rgba(20,40,80,.18)}
.rb-context-menu button{display:block;width:100%;margin:0;padding:7px 12px;border:0;border-radius:4px;background:transparent;color:#1d2b3f;font:inherit;text-align:left;cursor:pointer}
.rb-context-menu button:hover,.rb-context-menu button:focus-visible{background:#e8f0fe;outline:none}
/* ===== Visualizador de relatório do Gerador (clique duplo) ===== */
.rbv-dialog{width:min(1240px,96vw);height:94vh;max-width:96vw;padding:0;border:1px solid #9fb3cc;border-radius:8px;overflow:hidden}
.rbv-dialog[open]{display:flex;flex-direction:column}
.rbv-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;background:#f2f6fb;border-bottom:1px solid #c9d5e4}
.rbv-head h2{margin:0;font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rbv-body{flex:1;min-height:0;overflow:auto;padding:12px 16px;background:#fff}
.rbv-body [data-web=preview],.rbv-body [data-web=generate]{display:none}
.rbv-body [data-web=frame]{display:block;width:100%;height:calc(94vh - 190px);min-height:420px;border:1px solid #bfccdf;border-radius:8px;background:#f3f6fb}
.rbv-body .reports-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:0 0 8px}
