/* Fixed geometry is shared by preview, public view, raster export and Chromium print. */
.rp-pages { display:flex; flex-direction:column; align-items:center; gap:28px; color:#334155; font:14px var(--font-body,'Ubuntu',Arial,sans-serif); }
.rp-pages *, .rp-pages *::before, .rp-pages *::after { box-sizing:border-box; }
.rp-page-wrap { position:relative; width:794px; flex:none; margin:0; padding:0; }
.rp-page { position:relative; width:794px; height:1123px; overflow:hidden; background:#fff; box-shadow:0 4px 24px #0f172a12; flex:none; }
.rp-page-content { position:absolute; }
.rp-block { position:absolute; min-width:0; margin:0; box-sizing:border-box; }
.rp-block-content { width:100%; height:100%; min-width:0; min-height:0; display:flex; flex-direction:column; overflow:visible; }
.rp-nested { position:relative; width:100%; flex:none; height:auto; min-height:40px; }
.rp-nested .rp-block-content { height:auto; }
.rp-nested.rp-sized > .rp-block-content { height:100%; }
.rp-column-resize { position:absolute; right:-6px; top:0; bottom:0; width:12px; cursor:ew-resize; touch-action:none; z-index:43; }
.rp-column-resize:hover { background:#93C5FD44; }
.report-preview-active .rp-column-resize { display:none; }
.rp-text { font-family:inherit; color:inherit; white-space:pre-wrap; overflow-wrap:break-word; margin:0; line-height:inherit; text-align:inherit; font-weight:inherit; }
h3.rp-text { font-family:var(--font-brand,'Bricolage Grotesque',Arial,sans-serif); font-weight:700; line-height:1.15; }
.rp-widget-title { font-weight:700; font-size:13px; line-height:1.35; color:inherit; margin:0 0 12px; }
.rp-kpi { min-width:0; width:100%; display:flex; flex-direction:column; gap:6px; }
.rp-kpi-label { font-size:12px; color:#64748B; line-height:1.3; overflow-wrap:break-word; }
.rp-kpi-value { font-family:var(--font-brand,'Bricolage Grotesque',Arial,sans-serif); font-size:30px; line-height:1.15; font-weight:700; color:#172B49; letter-spacing:-.7px; white-space:nowrap; }
.rp-comparison { font-size:11px; display:flex; flex-direction:column; gap:2px; line-height:1.3; }
.rp-comparison small { color:#94A3B8; font-size:10px; }
.rp-positive { color:#059669; } .rp-negative { color:#DC2626; }
.rp-sparkline { display:block; width:100%; height:28px; margin-top:4px; }
.rp-chart, .rp-extra, .rp-table-widget, .rp-container { display:flex; flex-direction:column; min-width:0; min-height:0; width:100%; flex:1; }
.rp-chart-svg { width:100%; height:auto; min-height:100px; flex:1; display:block; overflow:visible; }
.rp-legend { display:flex; flex-wrap:wrap; gap:6px 12px; font-size:10px; margin-bottom:8px; line-height:1.4; }
.rp-legend-item { display:inline-flex; align-items:center; gap:4px; } .rp-legend-item i { width:7px; height:7px; border-radius:50%; display:inline-block; flex:none; }
.rp-legend-comparison { color:#94A3B8; } .rp-events { color:#64748B; font-size:9px; line-height:1.4; margin-top:5px; }
.rp-container-grid { display:grid; min-width:0; flex:1; min-height:0; }
.rp-container-column { display:flex; flex-direction:column; min-width:0; min-height:36px; position:relative; }
.rp-kpi-grid { display:grid; gap:10px; min-width:0; align-content:start; }
.rp-kpi-cell { padding:12px; border:1px solid #E2E8F0; border-radius:6px; min-width:0; }
.rp-kpi-cell .rp-kpi-value { font-size:26px; }
.rp-table { border-collapse:collapse; table-layout:fixed; width:100%; font-size:11px; line-height:1.3; }
.rp-table th { font-size:9px; font-weight:600; text-transform:uppercase; color:#64748B; border-bottom:1px solid #CBD5E1; }
.rp-table th:first-child { width:46%; }
.rp-table th,.rp-table td { padding:8px 6px; text-align:right; height:34px; border-bottom:1px solid #EDF1F7; }
.rp-table th:first-child,.rp-table td:first-child { text-align:left; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rp-table-compact th,.rp-table-compact td { height:26px; padding:5px 6px; }
.rp-empty { color:#94A3B8; font-size:12px; }
.rp-donut { display:block; width:100%; min-height:100px; height:auto; flex:1; max-height:220px; }
.rp-progress-row { display:grid; grid-template-columns:minmax(65px,1fr) 2fr 38px; align-items:center; gap:8px; margin:10px 0; font-size:11px; }
.rp-progress-track { height:18px; border-radius:12px; background:#E7EBF1; overflow:hidden; flex:none; }
.rp-progress-fill { height:100%; min-width:0; border-radius:inherit; }
.rp-progress-label { font-size:11px; margin:4px 0; } .rp-progress-value { text-align:right; }
.rp-extra > .rp-progress-track { margin:4px 0 14px; height:12px; }
.rp-page-toolbar { display:flex; align-items:center; gap:6px; height:34px; margin-bottom:8px; font-size:12px; }
.rp-page-title { flex:1; min-width:0; padding:4px; border:0; background:transparent; font:inherit; color:#334155; }
.rp-page-toolbar button,.rp-tools button,.rp-position-tools button { border:1px solid #DCE3EC; background:#fff; color:#3B5B8C; border-radius:5px; padding:5px 8px; font:inherit; cursor:pointer; }
.rp-page-toolbar button:disabled,.rp-tools button:disabled { opacity:.4; cursor:default; }
.rp-page-toolbar svg,.rp-tools svg { width:14px; height:14px; pointer-events:none; }
.rp-tools { display:flex; gap:6px; align-items:center; font-size:12px; }
.rp-tools select { border:1px solid #DCE3EC; background:#fff; border-radius:5px; padding:5px; color:#3B5B8C; }
.report-editor-body .report-sheet-wrapper { display:block; min-width:850px; width:max-content; align-self:center; padding:28px; margin:0 auto; }
.report-editor-body .report-workbench-area { position:relative; overflow:auto; align-items:stretch; }
.report-editor-body .report-action-subbar { flex-wrap:wrap; gap:10px; }
.report-editor-body .report-subbar-right { flex-wrap:wrap; }
.report-editor-body .rp-block:hover { outline:1px solid #93C5FD; }
.report-editor-body .rp-block.selected { outline:2px solid #3B82F6; outline-offset:1px; }
.report-editor-body .rp-block.rp-overflow { box-shadow:inset 0 -3px #F59E0B; }
.rp-overflow-note { color:#B45309; background:#FFFBEB; padding:8px 10px; border-radius:5px; font-size:11px; line-height:1.5; margin:8px 0; }
.rp-page-wrap.rp-hidden-page .rp-page { opacity:.45; }
.rp-page-wrap.rp-locked-page .rp-page { outline:1px solid #CBD5E1; }
.rp-block-tools { position:absolute; top:-25px; right:0; height:24px; display:flex; gap:2px; background:#fff; border:1px solid #BFDBFE; border-radius:4px; z-index:40; opacity:0; pointer-events:none; }
.rp-block:hover > .rp-block-tools,.rp-block.selected > .rp-block-tools { opacity:1; pointer-events:auto; }
.rp-block-tools button { border:0; background:transparent; color:#3B5B8C; cursor:pointer; padding:2px 5px; font-size:11px; }
.rp-block-tools button[data-action=move] { cursor:grab; touch-action:none; }
.rp-resize { position:absolute; z-index:42; touch-action:none; }
.rp-resize-e { width:10px; right:-5px; top:8px; bottom:8px; cursor:ew-resize; }
.rp-resize-s { height:10px; bottom:-5px; left:8px; right:8px; cursor:ns-resize; }
.rp-resize-se { width:12px; height:12px; right:-6px; bottom:-6px; cursor:nwse-resize; background:#fff; border:1px solid #3B82F6; border-radius:2px; display:none; }
.rp-block.selected > .rp-resize-se { display:block; }
.rp-drop-marker { position:absolute; z-index:45; border:1.5px dashed #3B82F6; background:#EFF6FF99; border-radius:6px; pointer-events:none; }
.rp-drop-marker.rp-invalid { border-color:#EF4444; background:#FEF2F299; }
.rp-guide { position:absolute; background:#60A5FA; pointer-events:none; z-index:44; }
.rp-guide-v { width:1px; top:0; bottom:0; } .rp-guide-h { height:1px; left:0; right:0; }
.report-editor-body .rp-container-column.rp-column-empty:hover,.rp-container-column.rp-drop-active { outline:1.5px dashed #3B82F6; background:#EFF6FF88; }
.rp-position-tools { display:flex; flex-wrap:wrap; gap:5px; margin:10px 0; font-size:11px; }
.rp-position-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.rp-position-grid label { font-size:11px; } .rp-position-grid input { width:100%; padding:5px; border:1px solid #DCE3EC; border-radius:4px; }
.rp-notice { position:sticky; top:62px; z-index:60; background:#EFF6FF; color:#3B5B8C; padding:10px 16px; font-size:12px; }
.rp-notice.rp-data-error { background:#FFF7ED; color:#9A3412; }
.rp-data-footer { position:absolute; bottom:5px; left:16px; right:16px; height:12px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; color:#64748B; font:9px/12px Arial,sans-serif; text-align:center; }
.rp-source-note { color:#64748B; font-size:9px; margin:0 0 6px; line-height:1.3; }
.rp-data-filters { display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding:14px 0; font-size:12px; color:#475569; }
.rp-data-filters label { display:flex; align-items:center; gap:5px; }
.rp-data-filters select,.rp-data-filters input[type=date],.rp-data-filters button { border:1px solid #CBD5E1; background:#fff; border-radius:5px; padding:6px 8px; color:#334155; }
.rp-toast { position:fixed; bottom:24px; left:50%; transform:translateX(-50%); padding:10px 16px; background:#172B49; color:white; border-radius:6px; z-index:20000; font:13px Arial,sans-serif; }
.rp-print-host { position:absolute; top:0; left:-16000px; width:794px; background:#fff; z-index:-1; }
.rp-print-host .rp-page { box-shadow:none; } .rp-print-host .rp-pages { gap:0; }
.report-preview-active .rp-page-toolbar,.report-preview-active .rp-block-tools,.report-preview-active .rp-resize,.report-preview-active .rp-drop-marker { display:none!important; }
.report-preview-active .rp-block { outline:0!important; box-shadow:none!important; }
@page { size:A4 portrait; margin:0; }
@media print {
    html,body { width:210mm!important; margin:0!important; padding:0!important; background:white!important; }
    body.rp-printing > :not(.rp-print-host) { display:none!important; }
    body.rp-printing > .rp-print-host { position:static!important; width:210mm!important; left:0!important; z-index:auto; }
    .rp-pages { display:block; gap:0; } .rp-page-wrap { break-after:page; width:210mm; margin:0!important; }
    .rp-page-wrap:last-child { break-after:auto; }
    .rp-page { width:210mm; height:297mm; box-shadow:none!important; overflow:hidden; print-color-adjust:exact; -webkit-print-color-adjust:exact; }
    .rp-page-toolbar,.rp-block-tools,.rp-resize,.rp-drop-marker { display:none!important; }
}
