[hidden]{display:none!important}
.page-environment .panel,.page-alarms .panel,.page-orders .panel,.page-strategy .panel,.page-audit .panel{padding-bottom:20px}
.month-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 16px}
.audit-baseline{display:grid;grid-template-columns:minmax(300px,420px) minmax(0,1fr);gap:32px;align-items:start}
.audit-result{min-width:0;background:#f7f9fc;padding:20px;border-radius:6px}
.audit-result h2{margin:0 0 12px;font-size:16px}
.audit-result .empty{color:#53647a}
details{margin:16px 0}summary{cursor:pointer;color:#304760;font-weight:500;padding:9px 0}
.record-title{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:20px;font-size:18px}
.dashboard-target{margin:12px 14px 0;padding:14px 0;border-top:1px solid #2c424f;font-size:12px;color:#b7cbd4}
.dashboard-target h2{font-size:14px;margin:0 0 8px;color:#f1f7fa}.dashboard-target>span{display:block;margin-bottom:7px}
.dashboard-target>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.dashboard-target strong{font-size:16px;color:#63d8c6}.dashboard-target small{font-size:12px;color:#bdd0d8}
.dashboard-target p{font-size:12px;line-height:1.6;margin:6px 0}.dashboard-target button.text{padding:0;height:auto;font-size:12px;color:#7be2d2}
.dash-layout .space-index{overflow:auto}.dash-layout .model-building-meta{margin-top:8px}
.inline-check input,.audit-device{accent-color:var(--blue)}.header-tools>button[data-action="ext-messages"]{white-space:nowrap;font-size:13px;border:0;background:transparent;color:#526075;padding:5px}
.panel h3{font-size:15px;margin:24px 0 12px}.drawer-body h3{font-size:15px;margin:24px 0 12px}
.page-alarms .metrics,.page-strategy .metrics{margin-bottom:16px}.page-alarms .metric .value{font-size:28px}
.status{white-space:nowrap}.field details{min-width:0}
.model-extension-list{border-top:1px solid #2c424f;padding-top:5px;margin-top:5px}
.screen-event{max-height:170px;overflow:auto;font-size:13px;color:#b9d1dd}.screen-event p{padding:8px 0}
.dashboard-target>div{display:block}.dashboard-target strong{white-space:nowrap}.dashboard-target small{margin:0;display:block;line-height:1.7}
.dashboard-target strong.target-failed{color:#efbe7f}
.mobile-target{display:none}
.dash-summary .summary-target .target-state{font-size:22px;letter-spacing:0}
.dash-summary .summary-target .target-failed{color:#efbe7f}
.summary-target .summary-source{display:flex;align-items:center;gap:10px;flex-wrap:wrap;white-space:normal}
.dashboard .summary-target .summary-source button.text{min-height:24px;padding:0 2px;color:#7bc8ba;font-size:13px}
@media(min-width:1101px){
 .dash-layout{grid-template-rows:minmax(0,1fr)}
 .dash-detail{min-height:0}.dash-detail .object-panel,.dash-detail .trend-panel{flex-shrink:0}
 .dash-detail .source-panel{overflow:auto;min-height:0}
 .dash-layout .space-index{padding-top:12px;padding-bottom:12px;overflow:hidden}
 .space-index .index-heading{margin-bottom:8px;min-height:24px}.space-index h2{padding:0;margin:0}
 .space-index .model-space.building-pick{margin-bottom:8px}
 .space-index .model-space>span{display:flex;align-items:center;gap:7px}
 .space-index .model-space small{margin:0;font-size:12px}
 .model-floor-list{gap:2px}.space-index .model-space{min-height:38px;padding-top:7px;padding-bottom:7px}
 .dashboard-target{margin:8px 10px 0;padding:10px 0 0}.dashboard-target h2{margin-bottom:5px}
 .dashboard-target>span{font-size:12px;margin-bottom:5px}.dashboard-target strong{font-size:14px}
 .dashboard-target p{margin:4px 0;line-height:1.5}.dash-layout .model-building-meta{display:none}
}
@media(max-width:1100px){.audit-baseline{grid-template-columns:1fr}.header-tools>button[data-action="ext-messages"]{display:none}}
@media(max-width:1100px){.space-index .dashboard-target{display:none}.mobile-target{display:block;margin-bottom:14px;border:1px solid #2b4251;border-radius:6px;background:#132733}.mobile-target .dashboard-target{border:0;margin:0;padding:14px 16px}.mobile-target .dashboard-target>span{display:none}.mobile-target .dashboard-target p{display:inline-block;margin-right:16px}.mobile-target .dashboard-target>div{display:flex;justify-content:flex-start;gap:20px}.mobile-target .dashboard-target h2{margin-bottom:6px}}
@media(max-width:640px){.month-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.audit-result{padding:14px}.record-title{align-items:flex-start}.page-alarms .metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.page-alarms .metric{padding:8px}.page-alarms .metric .value{font-size:24px}.dashboard-target{margin:12px 0 0;padding:14px}.header-tools>button[data-action="ext-messages"]{display:none}}
@media(max-width:1100px){.header-tools>button[data-action="ext-messages"]{display:inline-flex;min-width:44px;align-items:center;justify-content:center}}

.floor-rename-dialog.operation-dialog-wide .drawer{width:min(720px,100%)}

.alarm-detail-actions{margin:16px 0}.alarm-detail-section{margin:24px 0}.alarm-detail-section h3{font-size:16px;margin:0 0 12px}.alarm-timeline{list-style:none;padding:0 0 0 15px;border-left:2px solid #dce6f4}.alarm-timeline li{position:relative;padding:0 0 16px 12px}.alarm-timeline li:before{content:"";position:absolute;left:-21px;top:5px;width:10px;height:10px;border-radius:50%;background:#72a8ed}.alarm-timeline span{display:block;color:#71849a;font-size:13px}.alarm-timeline strong{font-weight:500}@media(max-width:640px){.alarm-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

.alarm-panel{padding:24px;border:1px solid #dae7f6;border-radius:10px;box-shadow:0 4px 16px #3d78bd0b}.alarm-panel table{table-layout:auto;min-width:900px}.alarm-panel td{vertical-align:middle}.alarm-panel .table-wrap{max-height:calc(100dvh - 350px);overflow:auto}.alarm-panel th{position:sticky;top:0;z-index:1;background:#edf1f6;color:#465e7b}.alarm-panel th:last-child,.alarm-panel td:last-child{position:sticky;right:0;white-space:nowrap;background:#fff}.alarm-panel th:last-child{z-index:2;background:#edf1f6}

.order-metrics{grid-template-columns:repeat(5,minmax(0,1fr))}.order-views{display:inline-flex;margin:0 0 16px}.order-unassigned{color:#d97812}@media(max-width:900px){.order-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

.operation-danger{background:#c93434!important;border-color:#c93434!important;color:#fff!important}

/* Operations details and forms reuse the device drawer and 32px controls. */
.status.progress{background:#e9f2ff;color:#116af3}
.device-monitor-fixed .alarm-detail-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:12px 0 0}
.device-monitor-fixed .alarm-detail-actions button:not(.text),.device-operation-info .device-info-panel-head button{min-height:32px;height:32px;padding:4px 12px;font-size:14px}
.device-monitor-fixed .alarm-detail-actions button.danger{color:var(--danger);border-color:#e2a4a6;background:#fff}
.device-info-drawer .alarm-detail-section h3{font-size:18px;line-height:1.35;color:#142e51;margin:0 0 12px}
.device-operation-info .device-info-panel-head{justify-content:space-between}
.device-operation-info .device-info-table td{text-align:left}
.floor-rename-dialog.operation-dialog-wide .drawer{max-height:min(90vh,760px)}
.operation-dialog-wide .drawer-body h3{margin:16px 0 8px;font-size:16px;font-weight:600;color:#253248}
.operation-dialog-wide .drawer-body .table-wrap th{background:#f8f9fb}
.alarm-panel.order-panel .device-filter-head.operation-order-head{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.operation-order-title,.operation-order-head-actions{display:flex;align-items:center;gap:12px}
.alarm-panel.order-panel .device-filters .device-filter-actions{flex:0 0 auto;min-width:0}

.device-info-drawer .device-operation-info .device-info-table td{text-align:left}
.device-operation-order{display:flex;align-items:center;justify-content:flex-start;gap:4px;min-width:0}
.device-operation-order button.text{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}
.device-operation-order .status{flex:none}

/* 告警页统计卡和操作按钮 */
.page-alarms .monitor-metrics.alarm-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
.alarm-metrics .alarm-stat-neutral{background:#fff;color:#202e42;cursor:pointer}
.alarm-metrics .alarm-stat-neutral .monitor-stat-icon{color:var(--blue);background:#dfedff;box-shadow:0 3px 8px rgb(23 90 190 / 4%)}
.alarm-metrics .alarm-stat-neutral>.monitor-stat-value{align-self:center;color:#202e42;font-size:38px;line-height:44px}
.alarm-metrics .alarm-stat-neutral .monitor-stat-value small{color:#202e42;font-size:16px}
.alarm-metrics .alarm-stat-neutral:hover{border-color:#b8c8dc;box-shadow:0 5px 14px rgb(31 55 85 / 10%)}
.alarm-metrics .alarm-stat-neutral[aria-pressed="true"]{border-color:#91b5ee;box-shadow:inset 0 0 0 1px #91b5ee}
.page-alarms .alarm-panel .device-filters .device-filter-actions button[data-action="ext-alarm-rules"]{width:112px;min-width:112px;margin-inline-start:auto}
@media(max-width:900px){.page-alarms .monitor-metrics.alarm-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.alarm-metrics .alarm-stat-neutral{flex-direction:row;align-items:center;height:68px}.alarm-metrics .alarm-stat-neutral>.monitor-stat-value{font-size:32px}}

.alarm-panel .device-filter-actions button[data-action="ext-alarm-query"],.alarm-panel .device-filter-actions button[data-action="ext-order-query"],.alarm-panel .device-filter-actions button[data-action="ext-rule-query"]{width:80px;min-width:80px}

.page-orders .order-panel .device-filter-head.operation-order-head{height:auto;min-height:0;align-items:flex-start}
.page-orders .order-panel .operation-order-title{align-items:center;height:24.3px}
.page-orders .order-panel .device-filters .operation-order-head-actions{margin-left:auto}
@media(max-width:640px){.page-orders .order-panel .device-filters .operation-order-head-actions{grid-column:1/-1;margin-left:0;justify-content:flex-end}}

/* 返回按钮、详情操作区与焦点态 */
.ui-back-button{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:24px;height:24px;min-height:0;padding:0;border:1px solid #d9d9d9;border-radius:4px;background:#fff;color:#465e7b;cursor:pointer;flex:none}
.ui-back-button:hover{border-color:var(--blue);color:var(--blue)}
.ui-back-button svg{width:14px;height:14px}
.ui-back-divider{height:20px;width:1px;background:#dce3ec;margin:0;flex:none}
.drawer-head:has(.ui-back-button){display:flex;align-items:center;gap:8px}
.drawer-head:has(.ui-back-button) h2{margin-right:auto}
.operation-detail-footer{display:flex;gap:8px;justify-content:flex-end;align-items:center;flex:none}
.operation-detail-footer .danger{margin-right:auto}
.operation-detail-footer .primary{order:1}
.alarm-panel .device-filters input:focus{outline:none;border-color:var(--blue);box-shadow:inset 0 0 0 1px rgb(17 106 243 / 33%)}


.operation-stages{display:flex;list-style:none;margin:20px 0;padding:0}.operation-stages li{position:relative;flex:1;min-width:0;text-align:center;color:#9aa9ba;font-size:12px}.operation-stages li:not(:last-child):after{content:"";position:absolute;top:5px;left:calc(50% + 7px);right:calc(-50% + 7px);border-top:1px solid #dce6f2}.operation-stages li.is-done{color:#176df0}.operation-stage-dot{display:block;width:11px;height:11px;margin:0 auto 6px;border-radius:50%;background:#dce6f2}.is-done .operation-stage-dot{background:#176df0}.operation-stages strong,.operation-stages time,.operation-stages small{display:block;font-size:inherit}.operation-stages time,.operation-stages small{color:#71849a;overflow-wrap:anywhere}.operation-history-row{display:grid;grid-template-columns:120px 65px 90px minmax(0,1fr);gap:8px;padding:10px 0;border-bottom:1px solid #e7edf5;font-size:13px}.operation-history-row strong{font-weight:500}.operation-history-row span{min-width:0;overflow-wrap:anywhere}

 .operation-detail-footer .danger{order:-1;margin-right:auto}
.operation-detail-footer [data-action="ext-order-reassign"]{order:1}
.operation-detail-footer .primary{order:2}

.operation-history-row{min-height:46px;align-items:center;border-bottom:1px solid #edf0f4}.operation-history-row time{color:#8293a8;font-variant-numeric:tabular-nums}.operation-history-row strong{font-weight:400}.operation-history-row span:last-child{color:#8293a8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* 运维列表表格（告警、工单、规则共用）。状态列不小于 96px，避免状态标签被省略 */
/* 
   固定布局铺满容器，余量分给弹性列；容器不足时表格内部横向滚动；只冻结右侧操作列。
   选择器带面板类以稳定高于 spatial.css 中的 .alarm-panel table 规则，不使用 !important。 */
.alarm-panel:is(.alarm-list-panel,.order-panel,.rule-list-panel) .table-wrap{overflow:auto;min-width:0}
.alarm-panel:is(.alarm-list-panel,.order-panel,.rule-list-panel) .table-wrap table{width:100%;max-width:none;table-layout:fixed}
.alarm-panel:is(.alarm-list-panel,.order-panel,.rule-list-panel) .table-wrap :is(th,td){position:static;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.alarm-panel:is(.alarm-list-panel,.order-panel,.rule-list-panel) .table-wrap th{position:sticky;top:0;z-index:1;background:#f8f9fb}
.alarm-panel:is(.alarm-list-panel,.order-panel,.rule-list-panel) .table-wrap :is(th,td):last-child{position:sticky;right:0;z-index:3;overflow:visible;background:#fff}
.alarm-panel:is(.alarm-list-panel,.order-panel,.rule-list-panel) .table-wrap th:last-child{z-index:5;background:#f8f9fb}
.alarm-panel:is(.alarm-list-panel,.order-panel,.rule-list-panel) .table-wrap tbody tr:hover td:last-child{background:#f5f8ff}
.alarm-panel .operation-cell-text{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.alarm-panel .table-wrap :is(td,th):last-child::before{content:"";position:absolute;top:0;bottom:-1px;right:100%;width:8px;background:linear-gradient(to left,rgb(23 54 90 / 12%),transparent);opacity:0;transition:opacity .2s ease;pointer-events:none}
.alarm-panel .table-wrap.can-scroll-right :is(td,th):last-child::before{opacity:1}

/* 告警列表：设备名称、位置、告警内容为弹性列 */
.alarm-panel.alarm-list-panel .table-wrap table{min-width:1441px}
.alarm-panel.alarm-list-panel .table-wrap th:nth-child(1){width:60px}
.alarm-panel.alarm-list-panel .table-wrap th:nth-child(2){width:110px}
.alarm-panel.alarm-list-panel .table-wrap th:nth-child(4){width:100px}
.alarm-panel.alarm-list-panel .table-wrap th:nth-child(7){width:90px}
.alarm-panel.alarm-list-panel .table-wrap th:nth-child(8),.alarm-panel.alarm-list-panel .table-wrap th:nth-child(9){width:150px}
.alarm-panel.alarm-list-panel .table-wrap th:nth-child(10){width:100px}
.alarm-panel.alarm-list-panel .table-wrap th:nth-child(11){width:96px}
.alarm-panel.alarm-list-panel .table-wrap th:nth-child(12){width:115px}
.alarm-panel.alarm-list-panel .table-wrap th:nth-child(13){width:80px}

/* 工单列表：工作内容、设备为弹性列 */
.alarm-panel.order-panel .table-wrap table{min-width:1346px}
.alarm-panel.order-panel .table-wrap th:nth-child(1){width:60px}
.alarm-panel.order-panel .table-wrap th:nth-child(2){width:120px}
.alarm-panel.order-panel .table-wrap th:nth-child(4){width:70px}
.alarm-panel.order-panel .table-wrap th:nth-child(5){width:150px}
.alarm-panel.order-panel .table-wrap th:nth-child(6){width:100px}
.alarm-panel.order-panel .table-wrap th:nth-child(8){width:90px}
.alarm-panel.order-panel .table-wrap th:nth-child(9){width:96px}
.alarm-panel.order-panel .table-wrap th:nth-child(10){width:150px}
.alarm-panel.order-panel .table-wrap th:nth-child(11){width:200px}

/* 规则列表：告警名称定宽；设备类型、参数、触发条件、恢复条件、适用设备平分余量 */
.alarm-panel.rule-list-panel .table-wrap table{min-width:1220px}
.alarm-panel.rule-list-panel .table-wrap th:nth-child(1){width:60px}
.alarm-panel.rule-list-panel .table-wrap th:nth-child(2){width:200px}
.alarm-panel.rule-list-panel .table-wrap th:nth-child(7){width:130px}
.alarm-panel.rule-list-panel .table-wrap th:nth-child(9){width:96px}
.alarm-panel.rule-list-panel .table-wrap th:nth-child(10){width:160px}

/* 运维面板与弹窗对齐基础组件 */
.alarm-panel .device-filters>label>input::placeholder{color:#91a0b2}
.operation-dialog .field>.device-category-control{margin-top:8px}
.operation-dialog .field .device-category-dropdown{margin:0}
.operation-dialog .monitor-dropdown>summary{font-size:14px;border-radius:4px}
.operation-dialog .stats-dropdown-menu{color:#595959}
.operation-dialog .stats-dropdown-menu input[type=search]{box-sizing:border-box;width:100%;height:32px;padding:4px 11px;border:1px solid #d9d9d9;border-radius:4px;font-size:14px;line-height:22px}
.operation-dialog .stats-dropdown-menu input[type=search]:focus{outline:none;border-color:var(--blue);box-shadow:inset 0 0 0 1px rgb(17 106 243 / 33%)}
.operation-dialog .field textarea{box-sizing:border-box;width:100%;padding:4px 11px;border:1px solid #d9d9d9;border-radius:4px;font-size:14px;line-height:22px}
.operation-dialog .field textarea:focus{outline:none;border-color:var(--blue);box-shadow:inset 0 0 0 1px rgb(17 106 243 / 33%)}
.operation-exception-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.operation-exception-head .stats-scope-line{margin:0}
.operation-dialog .field .record-filters,.operation-dialog .field .record-range{width:100%;margin:0}
.operation-dialog .field .record-range>summary{width:100%;box-sizing:border-box}
.operation-dialog .field .record-range>summary::after{content:none}
/* 详情资料表中的跳转链接与普通值左对齐；处理记录动作列不折行 */
.device-info-drawer :is(.device-info-facts,.device-info-table) td button.text{padding-left:0;padding-right:0}
.operation-history-row{grid-template-columns:132px 64px minmax(170px,auto) minmax(0,1fr)}
.operation-history-row strong{white-space:nowrap}
/* 例外列表弹窗：加宽并固定列宽，避免横向滚动 */
.floor-rename-dialog.operation-dialog-list .drawer{width:min(960px,100%)}
.operation-dialog-list .table-wrap table{width:100%;table-layout:fixed}
.operation-dialog-list .table-wrap :is(th,td){white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.operation-dialog-list .table-wrap th:nth-child(2){width:84px}.operation-dialog-list .table-wrap th:nth-child(3){width:160px}.operation-dialog-list .table-wrap th:nth-child(4){width:216px}.operation-dialog-list .table-wrap th:nth-child(5){width:96px}.operation-dialog-list .table-wrap th:nth-child(6){width:76px}.operation-dialog-list .table-wrap th:nth-child(7){width:100px}
/* 例外列表：默认容纳 5 行，超出时表格内滚动 */
.operation-dialog-list .table-wrap,.operation-dialog-list .stats-chart-empty{box-sizing:border-box;height:277px;max-height:277px}
.operation-dialog-list .table-wrap{overflow:auto}
.operation-dialog-list .stats-chart-empty{display:flex;align-items:center;justify-content:center;margin:0;border-top:1px solid #edf0f4}
.operation-dialog-list .table-wrap thead th{position:sticky;top:0;z-index:1}
.operation-dialog .operation-exception-head button.device-add.primary{width:auto;min-width:0;padding-inline:12px}
/* 截止日期的长期按钮 */
.operation-date .trend-calendar .calendar-selection{justify-content:stretch}
.operation-date .calendar-selection .operation-long{flex:1;height:32px;padding:4px 12px;border:1px solid var(--blue);border-radius:4px;background:#fff;color:var(--blue);font-size:14px;cursor:pointer}
.operation-date .calendar-selection .operation-long:hover{background:#eef6ff}
.operation-order-title:has(.ui-back-button){gap:8px}
.operation-date .calendar-range-header{display:none}
.operation-dialog .stats-part-picker summary span{color:#26354a}
.operation-dialog .stats-part-picker summary span.is-placeholder{color:#91a0b2}
/* 规则状态开关 */
.operation-switch{display:inline-flex;align-items:center;gap:8px;height:32px;cursor:pointer;user-select:none}
.operation-switch input{position:absolute;opacity:0;width:1px;height:1px}
.operation-switch i{position:relative;width:36px;height:20px;border-radius:10px;background:#c3ccd6;transition:background .15s ease;flex:none}
.operation-switch i::after{content:'';position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgb(23 54 90 / 25%);transition:transform .15s ease}
.operation-switch input:checked+i{background:var(--blue)}
.operation-switch input:checked+i::after{transform:translateX(16px)}
.operation-switch input:focus-visible+i{outline:2px solid rgb(17 106 243 / 35%);outline-offset:2px}
.operation-switch em{font-style:normal;font-size:14px;color:#26354a}
.operation-switch:hover input:not(:checked)+i{background:#aeb9c6}
/* 多选菜单：搜索框与全部同类设备放在白底吸顶头部，只滚动设备选项；滚动后头部下方显示阴影 */
.operation-dialog .stats-part-picker .stats-dropdown-menu{padding-top:0}
.operation-dialog .stats-dropdown-head{position:sticky;top:0;z-index:2;padding-top:5px;background:#fff}
.operation-dialog .stats-dropdown-head>input[type=search]{display:block;margin-bottom:4px}
.operation-dialog .stats-dropdown-menu.is-scrolled .stats-dropdown-head{box-shadow:0 8px 8px -8px rgb(23 54 90 / 22%)}
