.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}
