.workspace:has(>.page-stats){background-color:#fff;background-image:linear-gradient(#ffffff4d,#ffffff4d),url('assets/building-device-content-background-v2.png');background-position:center,right center;background-size:100% 100%,cover;background-repeat:no-repeat;background-attachment:fixed}
.page-stats .stats-layout{display:grid;grid-template-columns:248px minmax(0,1fr);gap:16px;align-items:start}
.page-stats .stats-layout .panel{margin:0;border:1px solid #d6e2f0;border-radius:7px;box-shadow:none;background:#fff;padding:20px;min-width:0}
.page-stats .stats-workspace{display:grid;gap:16px;min-width:0}
.page-stats .stats-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.page-stats .stats-section-head h2{font-size:18px;font-weight:600;color:#102a4c;line-height:1.35;margin:0}
.page-stats .stats-section-head h3{font-size:14px;font-weight:500;margin:0;color:#262626}
.page-stats .stats-section-head>button,.page-stats .stats-save-combo{height:32px;min-height:32px;padding:4px 12px;font-size:14px;border-radius:4px;white-space:nowrap}
.page-stats .stats-section-head button.text{padding:0;min-height:24px;height:24px;font-size:13px}
.page-stats .stats-sidebar{position:sticky;top:0;height:calc(100dvh - var(--header-height,56px) - 38px - 55px);display:flex;flex-direction:column;min-height:0;padding:18px 14px}
.page-stats .stats-sidebar>.stats-section-head,.page-stats .stats-sidebar>.stats-search,.page-stats .stats-sidebar>.stats-combinations{flex-shrink:0}
.page-stats .stats-sidebar>.stats-section-head{padding:0 4px;margin-bottom:14px}
.page-stats .stats-search{display:flex;align-items:center;gap:8px;border:1px solid #d9d9d9;border-radius:4px;height:32px;padding:0 10px;margin:0 4px 14px;color:#8c8c8c}
.page-stats .stats-search:focus-within{border-color:var(--blue)}
.page-stats .stats-search .ui-icon{width:15px;height:15px;flex:none}
.page-stats .stats-search input{width:100%;min-width:0;border:0;border-radius:0;box-shadow:none;outline:none;padding:0;height:28px;min-height:28px;font-size:14px;background:transparent}
.page-stats .stats-tree{flex:1;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#ccd5df transparent;padding:0 2px}
.page-stats .stats-tree-row{display:flex;align-items:center;min-height:36px;border-radius:4px;padding-right:6px;padding-left:calc(var(--depth)*10px);gap:2px;margin-bottom:2px;color:#595959}
.page-stats .stats-tree-row:hover{background:#f5f7fa}
.page-stats .stats-tree-row label{display:flex;align-items:center;gap:8px;min-width:0;flex:1;cursor:pointer;padding:7px 0;font-size:14px}
.page-stats .stats-tree-row label span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.page-stats .stats-tree-expand,.page-stats .stats-tree-spacer{display:flex;align-items:center;justify-content:center;width:18px;height:24px;min-height:24px;padding:0;flex:none;border:0;background:transparent;color:#8c8c8c}
.page-stats .stats-tree-expand .ui-icon{width:12px;height:12px}
:is(.page-stats,.operation-dialog) input[type=checkbox]{appearance:none;display:inline-grid;place-content:center;flex:none;width:16px;height:16px;min-height:0;margin:0;padding:0;border:1px solid #b7c3d2;border-radius:3px;background:#fff;cursor:pointer}
:is(.page-stats,.operation-dialog) input[type=checkbox]:checked,:is(.page-stats,.operation-dialog) input[type=checkbox]:indeterminate{background:var(--blue);border-color:var(--blue)}
:is(.page-stats,.operation-dialog) input[type=checkbox]:checked::after{content:'';width:7px;height:4px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:translateY(-1px) rotate(-45deg)}
:is(.page-stats,.operation-dialog) input[type=checkbox]:indeterminate::after{content:'';width:8px;height:2px;border:0;background:#fff;transform:none}
:is(.page-stats,.operation-dialog) input[type=checkbox]:focus-visible,.page-stats .stats-tree-expand:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.page-stats .stats-combinations{border-top:1px solid #f0f0f0;padding:16px 4px 0;margin-top:14px}
.page-stats .stats-combinations .stats-section-head{margin-bottom:10px}
.page-stats .stats-combinations .stats-section-head button.text{padding:0 8px}
.page-stats .stats-save-combo{width:100%;margin-top:10px;justify-content:center;color:var(--blue);border:1px solid #b9d3fc;background:#fff}
.page-stats .stats-save-combo:disabled{color:#9aa8b9;background:#f4f6f9;border-color:#e1e8f0;cursor:not-allowed}
:is(.page-stats,.operation-dialog) .stats-dropdown{position:relative;margin:0;min-width:0}
:is(.page-stats,.operation-dialog) .stats-dropdown>summary{height:32px;min-height:32px;display:flex;align-items:center;gap:8px;padding:0 11px;list-style:none;border:1px solid #d9d9d9;border-radius:4px;background:#fff;color:#595959;font-size:14px;font-weight:400;cursor:pointer;white-space:nowrap}
:is(.page-stats,.operation-dialog) .stats-dropdown>summary::-webkit-details-marker{display:none}
:is(.page-stats,.operation-dialog) .stats-dropdown>summary>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
:is(.page-stats,.operation-dialog) .stats-dropdown>summary>.ui-icon{flex:none;width:13px;height:13px;color:#8c8c8c}
:is(.page-stats,.operation-dialog) .stats-dropdown[open]>summary,:is(.page-stats,.operation-dialog) .stats-dropdown>summary:hover{border-color:var(--blue)}
:is(.page-stats,.operation-dialog) .stats-dropdown-menu{position:absolute;z-index:45;top:calc(100% + 6px);left:0;min-width:100%;width:max-content;max-width:300px;max-height:280px;overflow:auto;padding:5px;background:#fff;border:1px solid #e2e5ea;border-radius:6px;box-shadow:0 6px 20px #15243d1f;scrollbar-width:thin}
:is(.page-stats,.operation-dialog) .stats-dropdown-menu label,:is(.page-stats,.operation-dialog) .stats-dropdown-menu>button{display:flex;align-items:center;gap:8px;width:100%;min-height:36px;padding:7px 10px;border:0;border-radius:4px;font-size:14px;font-weight:400;cursor:pointer;background:#fff;color:#595959;text-align:left;overflow-wrap:anywhere}
:is(.page-stats,.operation-dialog) .stats-dropdown-menu label:hover,:is(.page-stats,.operation-dialog) .stats-dropdown-menu>button:hover{background:#eef5ff;color:var(--blue)}
.page-stats .stats-option-empty{padding:10px;color:#8c8c8c;font-size:13px}
.page-stats .stats-overview-top{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #f0f0f0;margin:-2px 0 18px;gap:12px}
.page-stats .stats-energy-tabs{display:flex;align-items:center;gap:20px}
.page-stats .stats-energy-tabs>button{display:flex;align-items:center;gap:7px;height:44px;min-height:44px;padding:0 10px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;font-size:16px;font-weight:500;color:#595959}
.page-stats .stats-energy-tabs>button:hover{color:var(--blue);background:#f7faff;border-bottom-color:#b2cbee}
.page-stats .stats-energy-tabs>button.active{color:var(--blue);border-bottom-color:var(--blue)}
.page-stats .stats-energy-tabs .ui-icon{width:18px;height:18px}
.page-stats .stats-filters{display:flex;align-items:end;gap:20px;flex-wrap:wrap}
.page-stats .stats-filter-field{display:flex;align-items:center;gap:10px;min-width:0;font-size:14px;color:#595959}
.page-stats .stats-filter-field>span{white-space:nowrap}
.page-stats .stats-period-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
:is(.page-stats,.operation-dialog) .stats-part-picker{width:180px}
.page-stats .stats-segments{display:inline-flex;align-items:center;flex:none}
.page-stats .stats-date-picker{width:250px}
.page-stats .stats-period-picker>.trend-calendar{position:absolute;top:calc(100% + 7px);left:0;z-index:50;width:304px;margin:0;box-shadow:0 8px 24px #17365a24;background:#fff}
.page-stats .stats-month-picker,.page-stats .stats-day-picker{width:160px}
.page-stats .stats-year-picker{width:120px}
:is(.page-stats,.operation-dialog) .stats-dropdown .is-placeholder{color:#91a0b2}
:is(.page-stats,.operation-dialog) .stats-part-picker>.stats-dropdown-menu,.page-stats .stats-year-picker>.stats-dropdown-menu{border-color:#d6e2f0;box-shadow:0 8px 24px #17365a24}
.page-stats .stats-year-picker .stats-dropdown-menu>button[aria-pressed=true]{background:#e8efff;color:var(--blue)}
.page-stats .stats-day-picker .calendar-range-header{display:none}
.page-stats .stats-month-picker>.trend-calendar{width:232px}
.page-stats .stats-month-list{max-height:none;row-gap:4px}
.page-stats .stats-month-label,.page-stats .stats-year-label{position:relative}
.page-stats .stats-year-picker .has-data .stats-year-label::after,.page-stats .stats-month-list .has-data .stats-month-label::after,.page-stats .calendar-days button.has-data::after{content:'';position:absolute;width:4px;height:4px;border-radius:50%;background:var(--blue)}
.page-stats .stats-year-picker .has-data .stats-year-label::after,.page-stats .stats-month-list .has-data .stats-month-label::after{right:-10px;top:50%;transform:translateY(-50%)}
.page-stats .calendar-days button{position:relative}
.page-stats .calendar-days button.has-data::after{left:50%;bottom:3px;transform:translateX(-50%)}
.page-stats .calendar-days button.endpoint.has-data::after{background:#fff}
.page-stats .stats-period-picker summary:focus-visible,:is(.page-stats,.operation-dialog) .stats-part-picker summary:focus-visible{outline:none;border-color:var(--blue);box-shadow:inset 0 0 0 1px rgb(17 106 243 / 33%)}
:is(.page-stats,.operation-dialog) .stats-scope-line{display:flex;align-items:center;gap:7px;color:#595959;font-size:13px;margin:18px 0 14px;min-width:0}
:is(.page-stats,.operation-dialog) .stats-scope-line>.ui-icon{width:15px;height:15px;flex:none;color:#8c8c8c}
:is(.page-stats,.operation-dialog) .stats-scope-line>span:first-of-type{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
:is(.page-stats,.operation-dialog) .stats-scope-note{font-size:12px;color:#8c8c8c;white-space:nowrap;margin-left:4px}
.page-stats .stats-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.page-stats .stats-metric{display:flex;flex-direction:column;min-height:144px;padding:16px 18px;border:1px solid #dce8fa;border-radius:6px;background:linear-gradient(to top left,#116af324 0%,#116af30d 42%,#116af300 85%),#fff;min-width:0}
.page-stats .stats-metric-head{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:14px;color:#5c708c;line-height:22px}
.page-stats .stats-metric-main{display:flex;align-items:center;gap:12px;margin:0 0 11px;min-width:0}
.page-stats .stats-metric-copy{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
.page-stats .stats-metric-icon{display:grid;place-items:center;flex:none;width:48px;height:48px;border-radius:8px;background:#116af314;color:var(--blue)}
.page-stats .stats-metric-icon .ui-icon{width:30px;height:30px}
.page-stats .stats-metric-value{display:flex;align-items:baseline;gap:8px;margin:0;min-width:0;font-size:30px;line-height:1.3;font-weight:600;color:var(--blue);white-space:nowrap;font-variant-numeric:tabular-nums;flex-wrap:wrap;letter-spacing:-.5px}
.page-stats .stats-metric-value>small{font-size:13px;font-weight:400;color:#8797ad;letter-spacing:0}
.page-stats .stats-metric-footer{margin-top:auto;padding-top:9px;border-top:1px solid #116af314;min-height:31px}
.page-stats .stats-comparisons{display:flex;align-items:center;gap:18px;flex-wrap:wrap;color:#7e8ea5;font-size:12px}
.page-stats .stats-comparisons>span{display:inline-flex;align-items:center;gap:6px}
.page-stats .stats-comparisons .stats-delta{display:inline-flex;align-items:center;padding:2px 6px;border-radius:4px;line-height:18px;font-size:12px}
.page-stats .stats-comparisons .stats-delta.up{background:#fff0ed;color:#cb6658}
.page-stats .stats-comparisons .stats-delta.down{background:#e7f5ef;color:#2a9565}
.page-stats .stats-delta{font-size:13px;color:#8c8c8c;font-variant-numeric:tabular-nums;white-space:nowrap}
.page-stats .stats-delta.up{color:#d25c4e}.page-stats .stats-delta.down{color:#2a9565}
.page-stats .stats-metric-foot{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:12px;color:#7e8ea5;line-height:22px}
.page-stats .stats-metric-foot>.ui-icon{width:13px;height:13px;flex:none}
.page-stats .stats-metric-foot>strong{font-size:13px;font-weight:500;color:#526984;font-variant-numeric:tabular-nums}
.page-stats .stats-metric-foot>strong>small{font-size:12px;font-weight:400;color:#8797ad}
.page-stats .stats-workspace .stats-section-head{margin-bottom:18px}
.page-stats .stats-chart-wrap{position:relative;display:block;margin-top:0}
.page-stats .stats-chart{display:block;width:100%;overflow:visible}
.page-stats .stats-chart,.page-stats .stats-trend .stats-chart-empty{height:268px}
.page-stats .stats-bar{fill:url(#statistics-bar-gradient)}
.page-stats .stats-chart .grid,.page-stats .stats-chart .series,.page-stats .stats-chart .stats-area,.page-stats .stats-chart text{pointer-events:none}
.page-stats .device-monitor-point:focus-visible .stats-bar{stroke:#176df0;stroke-width:1.5}
.page-stats .stats-area{fill:url(#statistics-area-gradient)}
.page-stats .stats-chart-tooltip{font-variant-numeric:tabular-nums}
:is(.page-stats,.operation-dialog) .stats-chart-empty{display:flex;align-items:center;justify-content:center}.page-stats .stats-details .stats-chart-empty{height:286px}
:is(.page-stats,.operation-dialog) .stats-chart-empty .device-monitor-empty{height:auto;min-height:180px;border:0}
:is(.page-stats,.operation-dialog) .stats-chart-empty img{max-height:140px;width:auto}
.page-stats .stats-details{scroll-margin-top:16px}
.page-stats .stats-details table{table-layout:fixed;width:100%;min-width:560px}
.page-stats .stats-details th,.page-stats .stats-details td{height:46px;padding:6px 12px;font-size:14px;border:0;border-bottom:1px solid #edf0f4;white-space:nowrap;color:#262626;font-weight:400}
.page-stats .stats-details th{background:#f8f9fb;color:#8c8c8c}
.page-stats .stats-details th:first-child,.page-stats .stats-details td:first-child{width:22%}
.page-stats .stats-details th:last-child,.page-stats .stats-details td:last-child{text-align:center}
.page-stats .stats-details td{background:#fff}
.page-stats .stats-details tbody tr:hover td{background:#fafcff}
.page-stats .stats-record-state{font-size:13px;color:#595959}.page-stats .stats-record-state.empty{display:inline;border:0;background:none;padding:0;margin:0;min-height:0;color:#b0b0b0}.page-stats .stats-record-state.partial{color:#c58b3f}
.stats-combo-item{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:14px;min-height:88px;padding:16px 12px;border-bottom:1px solid #edf0f3}
.stats-combo-icon{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:6px;color:var(--blue);background:#e1edff}
.stats-combo-icon .ui-icon{width:24px;height:24px}
.stats-combo-info{flex:1;min-width:0}
.stats-combo-title{display:flex;align-items:center;min-height:32px;gap:10px}
.stats-combo-title>strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.stats-combo-title>.stats-combo-count,.stats-combo-title>.stats-combo-current{flex:none}
.stats-combo-name-input{flex:1;width:160px;min-width:0;max-width:100%;height:32px;min-height:32px;padding:4px 8px;border:1px solid #d9d9d9;border-radius:4px;color:#253248;font-size:15px}
.stats-combo-name-input:hover,.stats-combo-name-input:focus{border-color:var(--blue)}
.stats-combo-name-input:focus-visible{outline:0}
.stats-combo-name-input[aria-invalid=true]{border-color:var(--danger)}
.stats-combo-name-error{margin-top:4px;color:var(--danger);font-size:12px;line-height:20px}
.stats-combo-list strong{display:block;font-size:15px;font-weight:600;color:#253248;line-height:22px}
.stats-combo-count{font-size:13px;color:#7e8ea5;white-space:nowrap}
.stats-combo-current{font-size:12px;line-height:22px;padding:0 6px;border-radius:4px;background:#dceaff;color:var(--blue);white-space:nowrap}
.stats-combo-spaces,.stats-combo-scope{color:#7e8ea5;font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.stats-combo-spaces{margin-top:5px}
.stats-combo-more{margin-left:6px;color:var(--blue);font:inherit;white-space:nowrap;cursor:pointer}
.stats-combo-more:focus-visible{outline:2px solid var(--blue);outline-offset:2px;border-radius:2px}
.stats-combo-tooltip{position:fixed;z-index:1;max-width:min(280px,calc(100vw - 16px));max-height:min(240px,calc(100dvh - 16px));overflow-y:auto;padding:8px 12px;border:1px solid #e2e5ea;border-radius:6px;background:#fff;box-shadow:0 6px 20px #15243d1f;color:#595959;font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.stats-combo-list .actions{flex:none;display:flex;align-items:center;justify-content:flex-end;width:152px;gap:4px;white-space:nowrap}
.stats-combo-list .actions button{display:inline-flex;align-items:center;gap:5px;font-size:14px;min-height:32px;padding:4px 8px;border-radius:4px}
.stats-combo-list .actions .ui-icon{width:16px;height:16px;flex:none}
.stats-combo-list .actions .stats-combo-delete{color:#637187}
.stats-combo-list .actions .stats-combo-delete:hover:not(:disabled){color:var(--danger);background:#fff1f0}
.stats-combo-list .actions .stats-combo-cancel{color:#637187}
.stats-combo-list .actions .stats-combo-cancel:hover{color:#595959;background:#f5f7fa}
.stats-combo-list .actions button:disabled{color:#b4bdc9;background:transparent;cursor:not-allowed}
.stats-combo-dialog .drawer{width:480px;max-height:min(600px,calc(100dvh - 40px))}
.stats-combo-dialog .drawer-body{padding:20px 24px;min-height:0;overscroll-behavior-y:contain}
.stats-combo-manage .drawer{width:640px}
.stats-combo-manage .drawer-body{padding:8px 16px 16px}
.stats-combo-list>.stats-combo-item:last-child{border-bottom:0}
.stats-combo-dialog .stats-combo-scope,.stats-combo-dialog .stats-combo-list strong,.stats-combo-dialog .stats-combo-list p{overflow-wrap:anywhere}
@media(max-width:600px){.stats-combo-item{column-gap:12px;row-gap:6px;grid-template-columns:40px minmax(0,1fr)}.stats-combo-item .actions{grid-column:2;justify-self:end;justify-content:flex-end}.stats-combo-manage .drawer-body{padding:8px 12px 12px}}
@media(min-width:1600px){.page-stats .stats-metric{padding:18px 22px}.page-stats .stats-metric-value{font-size:34px}.page-stats .stats-chart,.page-stats .stats-trend .stats-chart-empty{height:290px}}
@media(max-width:1450px){.page-stats .stats-layout{grid-template-columns:220px minmax(0,1fr)}.page-stats .stats-layout .panel{padding:16px}.page-stats .stats-layout .stats-sidebar{padding:16px 10px}.page-stats .stats-filters{gap:12px}.page-stats .stats-filter-field{gap:8px}.page-stats .stats-metrics{gap:12px}.page-stats .stats-metric{padding:14px 12px}.page-stats .stats-metric-value{font-size:27px}:is(.page-stats,.operation-dialog) .stats-part-picker{width:156px}}
@media(max-width:1100px){.page-stats .stats-filter-field{align-items:flex-start;flex-direction:column;gap:7px}.page-stats .stats-filters{align-items:end}.page-stats .stats-metric-value{font-size:24px}.page-stats .stats-comparisons{gap:8px}.page-stats .stats-metric-foot{line-height:1.5}}
@media(max-width:760px){.page-stats .stats-layout{grid-template-columns:1fr}.page-stats .stats-sidebar{position:static;height:auto}.page-stats .stats-tree{flex:none;min-height:0;max-height:220px}.page-stats .stats-combinations{display:grid;grid-template-columns:1fr 1fr;gap:10px}.page-stats .stats-combinations .stats-section-head{grid-column:1/-1;margin-bottom:0}.page-stats .stats-save-combo{margin-top:0}.page-stats .stats-metrics{grid-template-columns:1fr}.page-stats .stats-metric-value{font-size:28px}.page-stats .stats-filter-field{width:100%}.page-stats .stats-date-picker{width:238px}.page-stats .stats-chart,.page-stats .stats-trend .stats-chart-empty{height:228px}.page-stats .stats-details .table-wrap{overflow:auto}.page-stats .stats-chart-tooltip{font-size:12px}:is(.page-stats,.operation-dialog) .stats-scope-note{display:none}}

.page-stats .cmp-stat-link{display:inline-flex;align-items:center;gap:6px;padding:3px 6px;margin:-3px -6px;border:0;border-radius:6px;background:none;min-height:0;color:var(--blue);font:inherit;cursor:pointer;transition:background-color .15s,box-shadow .15s}.page-stats .cmp-stat-link:hover,.page-stats .cmp-stat-link:focus-visible{background:#fff;box-shadow:inset 0 0 0 1px #bcd3f7,0 1px 3px rgba(17,106,243,.12);text-decoration:none}.page-stats .cmp-stat-link:hover .cmp-stat-label{color:#0d51bc}.page-stats .cmp-stat-link:focus-visible{outline:2px solid #116af3;outline-offset:1px}
