/* Reports: saved and ready-made reports on the left, the report builder and results on the right. */
.rp-root{display:grid;grid-template-columns:230px minmax(0,1fr);gap:14px;align-items:start}
.rp-list{position:sticky;top:8px;max-height:calc(100svh / var(--ui-zoom,1) - 70px);overflow:auto;background:#fff;border:1px solid var(--line);border-radius:6px;padding:10px}
.rp-list input[type=search]{width:100%;box-sizing:border-box;margin:8px 0 4px;padding:6px 8px;font-size:12px;border:1px solid var(--line);border-radius:4px}
.rp-new{width:100%}
.rp-list h3{margin:12px 0 2px!important;font-size:10.5px!important}
.rp-folder h4{margin:8px 0 2px;font-size:11px;color:#6a8c94;font-weight:600}
.rp-pick{display:block;width:100%;text-align:left;background:none;border:0;border-radius:4px;padding:5px 7px;font-size:12.5px;color:var(--ink);cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rp-pick:hover{background:#eef8fa}.rp-pick.on{background:#e3f4f8;font-weight:600;box-shadow:inset 2px 0 var(--brand-blue)}
.rp-main{min-width:0}
.rp-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap;margin-bottom:8px}
.rp-head h2{margin:0!important;font-size:17px!important}.rp-head small{color:#6a8c94;font-size:11.5px}
.rp-dirty{font-weight:500;background:#f7b03a26;color:#76501c!important;padding:1px 6px;border-radius:9px;font-size:10.5px!important;vertical-align:middle}
.rp-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.rp-actions input[type=search]{padding:6px 8px;border:1px solid var(--line);border-radius:4px;font-size:12px;width:190px}
.rp-build{background:#fff;border:1px solid var(--line);border-radius:6px;padding:8px 10px;margin-bottom:10px;display:grid;gap:6px}
.rp-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:12px}
.rp-row>label:not(.rp-check){width:80px;flex:none;font-weight:600;color:#3d6470;font-size:11.5px}
.rp-row>label+select,.rp-row select~label{margin-left:0}
.rp-row select,.rp-row input:not([type=checkbox]){font-size:12px;padding:4px 6px;border:1px solid var(--line);border-radius:4px;background:#fff;max-width:240px;width:auto}
.rp-filter select{max-width:180px}.rp-filter input:not([type=checkbox]){width:160px}.rp-agg select{max-width:150px}
.rp-row input[type=number]{width:90px}.rp-row input[type=date]{width:140px}
.rp-row select~label:not(.rp-check){width:auto;margin-left:14px}
.rp-stack{display:flex;flex-direction:column;gap:4px}
.rp-filter{display:flex;gap:4px;align-items:center;flex-wrap:wrap}
.rp-none{color:#8aa3aa;font-style:italic}
.rp-count{margin-left:auto;color:#6a8c94}
.rp-chip{display:inline-flex;align-items:center;gap:4px;background:#eef8fa;border:1px solid #cfe7ee;border-radius:12px;padding:2px 4px 2px 9px;cursor:grab;font-size:12px}
.rp-chip small{color:#6a8c94}.rp-chip button,.rp-x{background:none;border:0;color:#6a8c94;cursor:pointer;font-size:14px;line-height:1;padding:0 4px}
.rp-chip button:hover,.rp-x:hover{color:#c0392b}
.rp-small{padding:3px 9px!important;font-size:11.5px!important}
.rp-check{display:inline-flex;align-items:center;gap:5px;font-size:12px;margin-left:8px;white-space:nowrap}
.rp-check input[type=checkbox]{width:16px!important;height:16px!important;min-height:0;flex:none;margin:0;padding:0}
.rp-aggs{display:flex;gap:10px;flex-wrap:wrap}.rp-agg{display:inline-flex;gap:4px;align-items:center;font-size:12px}
.rp-table table{font-size:12.5px}
.rp-table th{cursor:pointer;user-select:none;white-space:nowrap}.rp-table th small{font-weight:400;color:#6a8c94}
.rp-table td.rp-num,.rp-table th.rp-num{text-align:right;font-variant-numeric:tabular-nums}
.rp-group td{background:#f2f9fb}.rp-group.rp-depth-1 td{background:#f8fcfd}.rp-group.rp-depth-1 td:first-child{padding-left:22px}.rp-group.rp-depth-2 td:first-child{padding-left:36px}
.rp-group small{color:#6a8c94;font-weight:400}
.rp-link{cursor:pointer}.rp-link:hover td{background:#fbf6e9}
.rp-total td{font-weight:700;border-top:2px solid #c5dde3;background:#f7fbfc}.rp-total small{font-weight:400;color:#6a8c94}
.rp-more{margin:8px 0;font-size:12px;color:#527982}
.rp-chart{margin:0 0 10px;background:#fff;border:1px solid var(--line);border-radius:6px;padding:8px 10px}
.rp-chart figcaption{font-size:12px;font-weight:600;color:#3d6470;margin-bottom:4px}
.rp-chart svg{max-width:100%;height:auto;display:block}
.rp-axis,.rp-val{font-size:11px;fill:#3d6470}.rp-val{fill:#527982}
.rp-bar-fill{fill:#1592b5}.rp-bar:hover .rp-bar-fill{fill:#0b6f8c}.rp-bar:hover .rp-axis{font-weight:700}
.rp-zero{stroke:#c5dde3;stroke-width:1}
.rp-chart-note{font-size:12px;color:#6a8c94;margin:0 0 10px}
.rp-dialog form{display:grid;gap:6px;min-width:320px}.rp-dialog input:not([type=checkbox]){padding:6px 8px}
@media(max-width:900px){.rp-root{grid-template-columns:1fr}.rp-list{position:static;max-height:260px}.rp-row>label:not(.rp-check){width:100%}}

/* Report categories fold open on click. */
.rp-folder-head{display:flex;align-items:center;gap:6px;width:100%;background:none;border:0;border-radius:4px;padding:6px 6px;margin-top:2px;font-size:12.5px;font-weight:600;color:#3d6470;cursor:pointer;text-align:left}
.rp-folder-head:hover{background:#eef8fa}
.rp-folder-head small{margin-left:auto;font-weight:400;color:#8aa3aa}
.rp-caret{width:12px;color:#6a8c94;font-size:11px}
.rp-folder .rp-pick{padding-left:24px}
.rp-folder h4{display:none}

/* The report settings live in an Options panel that slides in from the right; the report updates behind it. */
.rp-summary{font-size:12px;color:#527982;margin-top:3px;cursor:pointer}.rp-summary:hover{color:var(--ink);text-decoration:underline}
.rp-opt-btn.on{background:#e3f4f8!important;border-color:var(--brand-blue)!important}
.rp-drawer{position:fixed;top:0;right:0;bottom:0;width:min(470px,100vw);z-index:80;background:#fff;box-shadow:-8px 0 30px #10343e33;display:flex;flex-direction:column}
.rp-drawer>header{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid var(--line)}
.rp-drawer>header strong{font-size:14px}.rp-drawer>header .rp-count{margin-left:auto;font-size:12px}
.rp-drawer>header .rp-x{font-size:20px}
.rp-drawer .rp-build{border:0;border-radius:0;margin:0;padding:12px 14px;overflow-y:auto;flex:1;gap:14px;align-content:start}
.rp-drawer>footer{padding:10px 14px;border-top:1px solid var(--line);display:flex;justify-content:flex-end}
.rp-drawer .rp-row{flex-direction:column;align-items:stretch;gap:6px}
.rp-drawer .rp-row>label:not(.rp-check){width:auto;font-size:11px;text-transform:uppercase;letter-spacing:.04em}
.rp-drawer .rp-row>label small{text-transform:none;letter-spacing:0;font-weight:400;color:#8aa3aa}
.rp-drawer .rp-row>select,.rp-drawer .rp-row>button{align-self:flex-start;max-width:100%}
.rp-drawer .rp-check{margin-left:0}
.rp-chips{display:flex;flex-wrap:wrap;gap:5px}
.rp-drawer .rp-filter select{max-width:170px}.rp-drawer .rp-filter input:not([type=checkbox]){width:150px}
.rp-drawer .rp-aggs{flex-direction:column;gap:6px}.rp-drawer .rp-agg{justify-content:space-between}
@media(min-width:1100px){.rp-options-open .rp-main{margin-right:min(470px,100vw)}}
.rp-drawer .rp-filter{flex-wrap:nowrap}
.rp-drawer .rp-filter select:first-child{width:150px;flex:none}.rp-drawer .rp-filter select+select{width:120px;flex:none}
.rp-drawer .rp-filter input:not([type=checkbox]){width:auto;min-width:0;flex:1}
.rp-drawer .rp-filter:has(input+span){flex-wrap:wrap}
.rp-drawer .rp-agg{justify-content:flex-start}.rp-drawer .rp-agg select{margin-left:auto;width:150px}
/* Save window: who sees the report (Only me / System report) */
.rp-who{border:1px solid #d5e3e7;border-radius:8px;padding:8px 10px;margin:6px 0 4px;display:grid;gap:8px;min-width:0}
.rp-who legend{font-weight:600;font-size:12px;color:#3d6470;padding:0 4px}
.rp-who label{display:flex;gap:8px;align-items:flex-start;cursor:pointer;font-size:13px}
.rp-who input[type=radio]{width:18px;height:18px;min-height:0;margin:1px 0 0;flex:none}
.rp-who span{display:grid;gap:2px}.rp-who small{color:#5b7780;font-size:11.5px;line-height:1.35}
.rp-who .rp-off{opacity:.55;cursor:default}
@media(max-width:480px){.rp-dialog form{min-width:0}}
