:root{--bg:#f3f5f9;--surface:#fff;--border:#e6e6e6;--border-strong:#dedddd;--text:#2d2b26;--text-soft:#615e57;--text-faint:#908c85;--accent:#2f6fed;--accent-soft:#e2eaf9;--ok:#2ca836;--ok-soft:#e1f5e3;--warn:#b9852f;--warn-soft:#faf0dd;--danger:#ea4d3e;--danger-strong:#c94b44;--danger-soft:#f8e4e1;--info:#2563a8;--info-soft:#e2ecf7;--shadow:0 1px 2px rgba(0,0,0,.04),0 2px 6px rgba(0,0,0,.04)}*{box-sizing:border-box;scrollbar-width:thin;scrollbar-color:#d3d1cb transparent}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#d3d1cb;border-radius:0}::-webkit-scrollbar-thumb:hover{background:#bdbab2}body,html{margin:0;padding:0;min-width:1280px}html{overflow-x:auto}body{font-family:var(--font-inter),-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text);font-size:14px;line-height:1.5}.app{display:flex;flex-direction:column;height:100vh}.app-body{flex:1 1}.app-body,.sidebar-shell{display:flex;min-height:0}.sidebar-shell{width:240px;flex:0 0 240px;height:100%;flex-direction:column;overflow:hidden;overflow-x:hidden;transition:width .2s ease,flex-basis .2s ease}.sidebar-shell.collapsed{width:0;flex-basis:0}.sidebar-footer{flex:0 0 auto;padding:.3rem;border-top:1px solid var(--border);border-right:1px solid var(--border);background:#fff;text-align:center}.sidebar-footer img{display:block;max-width:100px;max-height:32px;height:auto;margin:.4rem auto;object-fit:contain}.sidebar-org-name{display:block;margin:.55rem .5rem;overflow:hidden;color:var(--text-faint);font-size:12px;font-weight:700;letter-spacing:.01em;text-overflow:ellipsis;white-space:nowrap}.sidebar-footer div{margin:.3rem 0;padding-right:.1rem;color:var(--text-faint);font-size:.53rem;text-align:right}.sidebar{width:240px;flex-shrink:0;background:var(--surface);border-right:1px solid var(--border-strong);display:flex;flex-direction:column;padding:16px 12px;transition:margin-left .2s ease;flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden}.sidebar.collapsed{margin-left:-240px}.nav{display:flex;flex-direction:column;gap:4px}.nav-item{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:4px;color:var(--text-soft);text-decoration:none;font-size:13.5px;font-weight:500;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.nav-item svg{width:16px;height:16px;flex-shrink:0;opacity:.8}.nav-item:hover{background:#f6f5f2;color:var(--text)}.nav-item.active{background:#f0eee98f;color:var(--text);font-weight:600}.nav-group-toggle{width:100%;border:0;font:inherit;font-weight:500;text-align:left;background:transparent}.nav-group-toggle span{flex:1 1}.nav-subitems{display:flex;flex-direction:column;gap:2px;margin:-3px 0 5px 14px;padding-left:10px;border-left:1px solid var(--border)}.nav-subitem{padding:6px 8px;font-size:12.5px}.main{flex:1 1;min-width:0;display:flex;flex-direction:column;overflow-y:auto}.topbar{justify-content:space-between;padding:14px 24px;border-bottom:1px solid var(--border-strong);background:var(--surface);flex-shrink:0;gap:16px;flex-wrap:wrap}.topbar,.topbar-left{display:flex;align-items:center}.topbar-left{gap:12px}.topbar-brand{width:204px;flex-shrink:0;display:flex;align-items:center;justify-content:center}.topbar-logo{height:40px;width:auto;flex-shrink:0}.icon-btn{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border:none;background:var(--surface);cursor:pointer;color:var(--text-soft)}.icon-btn:hover{background:#f3f1ed}.page-title{font-size:16px;font-weight:600}.page-sub{font-size:12.5px;color:var(--text-faint)}.topbar-right{display:flex;align-items:center;gap:10px}.date-input-wrap{position:relative;display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:4px;border:1px solid var(--border-strong);background:var(--surface)}.date-input-icon{color:var(--text-faint);flex-shrink:0}.date-input-wrap.active:after{content:"";position:absolute;top:-3px;right:-3px;width:8px;height:8px;border-radius:50%;background:#2f6fed;border:2px solid var(--surface)}.date-input{padding:0;border:none;background:transparent;font-family:inherit;font-size:13px;color:var(--text);width:190px;cursor:pointer}.date-input:focus{outline:none}.flatpickr-calendar{width:324px;padding:8px;border-radius:4px;font-family:var(--font-inter),-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:13px}.flatpickr-current-month{font-size:13px;font-weight:600}.flatpickr-weekday{font-size:11px;font-weight:500}.flatpickr-day{font-size:12px}.flatpickr-calendar.single-date-range .flatpickr-day.endRange,.flatpickr-calendar.single-date-range .flatpickr-day.selected,.flatpickr-calendar.single-date-range .flatpickr-day.startRange{border-radius:50%}.site-filter-btn{position:relative;display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:4px;border:1px solid var(--border-strong);background:var(--surface);font-family:inherit;font-size:13px;color:var(--text);cursor:pointer;white-space:nowrap}.site-filter-btn:hover{background:#f6f5f2}.site-filter-btn.active:after{content:"";position:absolute;top:-3px;right:-3px;width:8px;height:8px;border-radius:50%;background:#2f6fed;border:2px solid var(--surface)}.site-filter-list{display:flex;flex-direction:column;gap:2px;max-height:240px;overflow-y:auto}.site-filter-tree-row{display:flex;align-items:center;min-height:32px;gap:2px;font-size:13px}.site-filter-tree-row span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.site-filter-expand{width:24px;height:24px;padding:0;border:0;background:transparent;color:var(--text-faint);cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.site-filter-expand svg{width:18px;height:18px}.site-filter-expand:hover{color:var(--text)}.site-filter-tree-row .MuiCheckbox-root{padding:4px}.site-filter-children{margin-left:24px}.site-filter-local-row{color:var(--text-soft)}.site-filter-indent{width:24px;flex:0 0 24px}.refresh-badge{font-size:11.5px;color:var(--info);background:var(--info-soft);padding:5px 10px;border-radius:4px;display:flex;align-items:center;gap:6px}.refresh-badge .pulse{width:6px;height:6px;border-radius:50%;background:var(--info);animation:pulse 2s infinite}.refresh-badge.warn{color:var(--warn);background:var(--warn-soft)}.refresh-badge.warn .pulse{background:var(--warn)}@keyframes pulse{0%,to{opacity:1}50%{opacity:.3}}.content{padding:20px 0 40px}.content,.dashboard-content{display:flex;flex-direction:column;gap:6px}.dashboard-content{padding:20px 24px 40px}.section-title{font-size:13px;font-weight:600;color:var(--text-soft);text-transform:uppercase;letter-spacing:.04em;margin:4px 0 2px 2px}.section-head{display:flex;align-items:center;justify-content:space-between;margin:20px 0 2px 2px}.content>.section-head:first-child{margin-top:0}.section-title-group{display:flex;align-items:baseline;gap:8px}.section-head .section-title{margin:0}.section-subtitle{font-size:11px;font-weight:500;color:var(--text-faint);text-transform:uppercase;letter-spacing:.04em}.collapse-btn{width:22px;height:22px;border:none;background:transparent;display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--text-faint);border-radius:4px}.collapse-btn:hover{background:#f0eeea;color:var(--text-soft)}.collapse-btn svg{width:18px;height:18px}.collapsible.is-collapsed{display:none}.card{background:var(--surface);border:1px solid var(--border-strong);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px}.kpi-strip{display:flex;align-items:center;gap:28px;padding:2px 2px 4px}.kpi-stat{display:flex;align-items:baseline;gap:8px;min-width:0;line-height:1.4}.kpi-stat-label{font-size:12px;color:var(--text-faint);white-space:nowrap}.kpi-stat-value{font-size:18px;font-weight:700;white-space:nowrap}.kpi-stat-delta{font-size:12px;font-weight:600;color:#2f6fed;white-space:nowrap}.kpi-stat-delta.danger{color:var(--danger)}.kpi-stat-delta.ok{color:var(--ok)}.kpi-stat-divider{width:1px;height:22px;background:var(--border);flex-shrink:0}.sensor-list-head{display:grid;grid-template-columns:minmax(0,1fr) 96px;align-items:center;grid-gap:4px;gap:4px;padding:9px 12px 8px;margin-bottom:4px;border-bottom:1px solid #ecebe7;font-size:10px;font-weight:600;color:var(--text-faint);letter-spacing:.03em;text-transform:uppercase}.sensor-list-head span:not(:first-child){text-align:right}.sensor-list{display:flex;flex-direction:column;gap:0}.sensor-list.expanded{max-height:240px;overflow-y:auto}.sensor-row{display:grid;grid-template-columns:minmax(0,1fr) 96px;align-items:center;grid-gap:4px;gap:4px;min-height:62px;padding:8px 12px;border-bottom:1px solid #f0efec;transition:background-color .12s ease}.sensor-row:hover{background:#fafaf9}.sensor-row:last-child{border-bottom:0}.sensor-row.is-extra{display:none}.sensor-view-all{display:flex;justify-content:flex-end;width:100%;margin-top:2px;padding:9px 12px 1px;border:none;background:transparent;font-family:inherit;font-size:12px;font-weight:600;color:var(--info);cursor:pointer;text-align:left}.sensor-view-all:hover{text-decoration:underline}.sensor-main{display:flex;flex-direction:column;gap:2px;min-width:0}.sensor-name{overflow:hidden;color:var(--text-soft);font-size:12.5px;font-weight:650;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.sensor-name:hover{color:#1f2937;text-decoration:none}.sensor-heading{display:flex;align-items:center;gap:7px;min-width:0}.sensor-status-chip{display:inline-flex;align-items:center;gap:4px;padding:0;font-size:9px;font-weight:600;line-height:1.5;white-space:nowrap}.sensor-status-chip:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.sensor-status-chip.online{color:var(--ok)}.sensor-status-chip.offline{color:var(--danger)}.sensor-offline-time,.sensor-status-chip.unknown{color:var(--text-faint)}.sensor-offline-time{font-size:9px;line-height:1.2}.sensor-loc{overflow:hidden;color:#8a8984;font-size:10.5px;text-overflow:ellipsis;white-space:nowrap}.sensor-signal{display:inline-flex;align-items:center;gap:2px;margin-left:3px;flex-shrink:0;min-width:0;color:var(--text-soft);font-size:12px;font-weight:600;text-align:right;white-space:nowrap}.sensor-signal.good{color:var(--ok)}.sensor-signal svg{display:block}.sensor-signal-value{color:var(--text-faint);font-size:9px;font-weight:400;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;line-height:12px;text-align:left}.sensor-signal.medium{color:var(--warn)}.sensor-signal.poor{color:var(--danger)}.sensor-battery{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding-left:8px;min-width:0}.battery-meter{position:relative;flex:0 0 28px;height:4px;overflow:hidden;border-radius:999px;background:rgba(0,0,0,.07)}.battery-meter-fill{position:absolute;inset:0 auto 0 0;border-radius:inherit}.battery-pct{min-width:30px;font-size:12px;font-weight:700;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;line-height:18px;text-align:right}.sensor-card{display:flex;flex-direction:column;min-width:0;border-radius:6px}.sensor-card .sensor-list{flex:1 1 auto}.sensor-card .sensor-view-all{margin-top:auto}.sensor-card .sensor-empty{padding:18px 12px;color:var(--text-faint);font-size:11px}.sensors-row{display:grid;grid-template-columns:1fr 1fr;grid-gap:14px;gap:14px;align-items:stretch;min-width:0}.map-section{display:flex;padding:0;overflow:hidden;min-width:0;border-radius:6px}.map-popup-label,.site-summary-label{color:var(--text-faint);font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.map-wrap{flex:1 1;min-height:260px;border-radius:var(--radius);overflow:hidden;position:relative}.map-empty-state{display:flex;align-items:center;justify-content:center;height:100%;min-height:260px;padding:24px;color:var(--text-faint);font-size:13px;text-align:center}.map-wrap .leaflet-control-zoom a{width:22px;height:22px;line-height:22px;font-size:13px}.map-wrap .leaflet-control-attribution{font-size:9px;padding:0 4px;background:hsla(0,0%,100%,.7)}.map-pin-icon{display:flex;align-items:center;justify-content:center;cursor:pointer;filter:drop-shadow(0 1px 2px rgba(0,0,0,.35))}.map-popup-site{font-size:14px;font-weight:700;margin:2px 0 12px}.map-popup-buildings{display:flex;flex-direction:column;gap:5px;list-style:none;margin:7px 0 0;padding:0}.map-popup-buildings li{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:12px;color:var(--text-soft)}.map-popup-buildings li b{color:var(--text);white-space:nowrap}.map-popup-badge{font-size:10.5px;font-weight:700;color:#2f6fed;background:#e2eaf9;border-radius:20px;padding:1px 8px;white-space:nowrap}.map-popup-floors{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:3px}.map-popup-floors li{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:var(--text-soft)}.map-popup-floors li b{color:var(--text);font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.map-popup-more{justify-content:flex-start!important;color:var(--text-faint);font-style:italic}.map-popup-actions{display:flex;justify-content:flex-end;margin-top:8px}.map-site-sidebar{position:absolute;z-index:1000;top:12px;right:12px;bottom:12px;width:min(280px,calc(100% - 24px));padding:16px 16px 20px;overflow-y:auto;background:var(--surface);border:1px solid var(--border-strong);box-shadow:0 4px 16px rgba(45,43,38,.16);height:min-content}.map-site-sidebar-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:18px}.map-site-sidebar-close{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:28px;height:28px;padding:0;border:1px solid var(--border);background:var(--surface);color:var(--text-soft);cursor:pointer}.map-site-sidebar-close:hover{background:var(--bg);color:var(--text)}.charts-row{display:grid;grid-template-columns:1.4fr 1fr;grid-gap:14px;gap:14px;min-width:0}.charts-row+.charts-row{margin-top:14px}.charts-row-3{grid-template-columns:repeat(3,1fr);grid-gap:14px;min-width:0}.charts-row-3,.sensor-offline-chart{display:grid;gap:14px;margin-bottom:20px}.sensor-offline-chart{grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:14px}.asset-detail-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.back-button{display:inline-flex;align-items:center;gap:6px;padding:4px 2px;border:none;background:transparent;font-family:inherit;font-size:13px;color:var(--text-soft);cursor:pointer}.back-button:hover{color:var(--text)}.sensor-meta{display:flex;gap:18px;margin:-4px 0 14px;color:var(--text-faint);font-size:11.5px}.sensor-meta strong{color:var(--text-soft);font-weight:600}.chart-card{display:flex;flex-direction:column;gap:8px;min-width:0}.MuiDialog-root .MuiDialog-paper,.chart-card{border-radius:6px}.chart-card-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 8px}.chart-card-title{font-weight:600;font-size:13.5px}.chart-card-note{font-size:11.5px;color:var(--text-faint)}.chart-wrap{position:relative;height:230px;min-width:0;overflow:hidden}table{width:100%;border-collapse:collapse;font-size:13px}th{text-align:left;font-size:11.5px;color:var(--text-faint);font-weight:600;text-transform:uppercase;letter-spacing:.03em;padding:6px 8px;border-bottom:1px solid var(--border)}td{padding:9px 8px;border-bottom:1px solid #f1efeb}tr:last-child td{border-bottom:none}.badge{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;border-radius:4px;font-size:11.5px;font-weight:600}.badge.high{background:var(--danger-soft);color:var(--danger)}.badge.medium{background:var(--warn-soft);color:var(--warn)}.badge.low{background:var(--ok-soft);color:var(--ok)}.loc-tree{display:flex;flex-direction:column;gap:2px;font-size:13px}.loc-building{font-weight:600;padding:8px 4px 4px;display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.loc-building-name{display:flex;align-items:center;gap:6px}.loc-chevron{width:14px;height:14px;flex-shrink:0;color:var(--text-faint);transition:transform .15s ease}.loc-building.is-collapsed .loc-chevron{transform:rotate(-90deg)}.loc-floors.is-collapsed{display:none}.loc-floor{padding:6px 4px 6px 22px;display:flex;justify-content:space-between;color:var(--text-soft);border-bottom:1px dashed #f0eee9}.loc-floor:last-child{border-bottom:none}.loc-count{font-size:12px;background:#f3f1ed;padding:2px 8px;border-radius:4px;color:var(--text-soft)}@media (max-width:1100px){.kpi-strip{flex-wrap:wrap;gap:14px 28px}.charts-row,.charts-row-3,.sensor-offline-chart,.sensors-row{grid-template-columns:1fr}}.alert-drawer{width:100%;height:100%;padding:0;display:flex;flex-direction:column;box-sizing:border-box;background:var(--bg)}.alert-drawer-band{padding:16px 14px;background:var(--surface);border-bottom:1px solid var(--border-strong);flex-shrink:0}.alert-drawer-body{flex:1 1;overflow-y:auto;padding:14px}.alert-drawer-header{display:flex;align-items:center;gap:10px}.alert-drawer-icon{width:30px;height:30px;border-radius:50%;background:var(--accent-soft);color:var(--accent);display:flex;align-items:center;justify-content:center;flex-shrink:0}.alert-drawer-title{font-size:14px;font-weight:700}.alert-drawer-subtitle{font-size:11.5px;color:var(--text-faint);margin-top:1px}.alert-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);cursor:pointer;transition:background-color .12s ease,box-shadow .12s ease,transform .12s ease}.alert-row:hover{background:var(--info-soft);box-shadow:0 2px 4px rgba(0,0,0,.06),0 4px 10px rgba(0,0,0,.06);transform:translateY(-1px)}.alert-row:focus-visible{outline:2px solid var(--info);outline-offset:2px;background:var(--info-soft)}.alert-row-main{flex:1 1;min-width:0}.alert-row-sensor{font-size:13px;font-weight:600}.alert-row-location{overflow-wrap:anywhere}.alert-row-location,.alert-row-metrica{font-size:11.5px;color:var(--text-faint)}.alert-row-metrica{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:1px}.alert-row-time{font-size:10.5px;color:var(--text-faint);margin-top:3px}.severity-pill{flex-shrink:0;font-size:10.5px;font-weight:700;padding:3px 8px;border-radius:20px;white-space:nowrap}.alert-dialog-accent{width:5px;align-self:stretch;flex-shrink:0}.alert-dialog-label{font-size:11px;font-weight:600;color:var(--text-faint);text-transform:uppercase;letter-spacing:.03em}.alert-dialog-value-block{font-size:13.5px;color:var(--text);margin-top:2px}.assets-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:32px;padding:0 24px;margin-bottom:14px}.assets-toolbar-left{display:flex;align-items:center;gap:10px}.sites-list-wrap{width:100%;background:var(--surface)}.sites-list-header,.sites-list-row{display:grid;grid-template-columns:minmax(210px,.8fr) minmax(420px,1.6fr) minmax(260px,1fr) 56px;grid-gap:24px;gap:24px;align-items:start}.sites-list-header{padding:11px 14px;border-bottom:1px solid var(--border-strong);background:var(--bg);color:var(--text-faint);font-size:11px;font-weight:700;text-transform:uppercase;height:37px}.sites-list-row{padding:18px 20px;border-bottom:1px solid var(--border);cursor:pointer}.sites-list-row:hover{background:rgba(47,111,237,.035)}.sites-list-row:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.sites-list-identity{display:flex;align-items:center;gap:10px;min-width:0}.sites-list-icon{display:flex;align-items:center;justify-content:center;width:32px;height:32px;flex:0 0 32px;border:1px solid var(--border);border-radius:4px;background:var(--bg);color:var(--text-soft)}.sites-list-name{overflow:hidden;color:var(--text);font-size:13px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.sites-list-coordinates{margin-top:2px;color:var(--text-faint);font-size:11px;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.sites-list-address{color:var(--text-soft);font-size:12.5px;line-height:1.5;white-space:normal;display:flex;align-items:center;height:100%}.sites-buildings-inline{min-width:0;flex:1 1;overflow:hidden;color:var(--text-soft);font-size:12.5px;text-overflow:ellipsis;white-space:nowrap}.sites-buildings-cell{display:flex;gap:10px;min-width:0;align-items:center;height:100%}.sites-list-empty,.sites-list-empty-state{color:var(--text-faint);font-size:12px}.sites-list-empty-state{padding:28px 20px;text-align:center}@media (max-width:760px){.sites-list-header{display:none}.sites-list-row{grid-template-columns:1fr auto;gap:14px}.sites-buildings-cell{grid-column:1/-1;grid-row:3;padding-left:42px}.sites-list-address{grid-column:1/-1;grid-row:2;padding-left:42px}}.assets-count-badge{font-size:12px;font-weight:600;color:var(--accent);background:var(--bg);border:1px solid var(--accent);border-radius:20px;padding:4px 10px}.assets-table-wrap{width:100%}.assets-table{width:100%;background:var(--surface);border-collapse:collapse;font-size:13px;table-layout:fixed}.assets-table thead th{text-align:left;font-size:11px;background-color:var(--bg);font-weight:700;color:var(--text-faint);text-transform:uppercase;letter-spacing:.03em;padding:10px 7px;border-bottom:1px solid var(--border-strong);white-space:nowrap}.assets-table tbody td{padding:10px 7px;border-bottom:1px solid var(--border);color:var(--text);white-space:nowrap;vertical-align:middle}.sensors-table tbody td:first-child,.sensors-table thead th:first-child,.users-table tbody td:first-child,.users-table thead th:first-child{padding-left:24px}.assets-table .asset-col-code{width:7%}.assets-table .asset-col-battery{width:76px}.assets-table .asset-col-connection{width:9%}.assets-table .asset-col-active{width:8%}.assets-table .asset-col-site{width:15%}.assets-table .asset-col-building{width:14%}.assets-table .asset-col-floor{width:10%}.assets-table .asset-col-description{width:18%}.assets-table .asset-col-metrics{width:5%}.assets-table .asset-col-dissociate{width:4%}.assets-table .asset-dissociate-cell{box-sizing:border-box;padding-left:10px;padding-right:10px}.assets-table td:nth-child(10),.assets-table td:nth-child(11),.assets-table td:nth-child(2),.assets-table td:nth-child(3),.assets-table td:nth-child(4),.assets-table td:nth-child(9),.assets-table th:nth-child(10),.assets-table th:nth-child(11),.assets-table th:nth-child(2),.assets-table th:nth-child(3),.assets-table th:nth-child(4),.assets-table th:nth-child(9){text-align:center}.assets-table td:nth-child(5) .asset-edit-select,.assets-table td:nth-child(6) .asset-edit-select,.assets-table td:nth-child(7) .asset-edit-select{min-width:0;padding-left:4px;padding-right:4px}.assets-table tbody tr.is-odd{background:rgba(45,43,38,.041)}.assets-table tbody tr.is-edited{background:#fff8d8}.assets-table tbody tr.is-edited:hover{background:#fff3bd}.assets-table tbody tr.has-error{box-shadow:inset 2px 0 0 var(--danger)}.assets-table tbody tr:hover{background:rgba(47,111,237,.05)}.assets-table-empty{text-align:center;color:var(--text-faint);padding:24px!important}.users-table-scroll{overflow-x:auto}.users-table{min-width:1100px}.assets-table.users-table td,.assets-table.users-table th{text-align:left}.assets-table.users-table .user-active-cell,.assets-table.users-table .user-delete-cell{text-align:center}.users-table td{overflow:hidden;text-overflow:ellipsis}.users-table tbody tr:has(.user-edit-button){cursor:pointer}.user-edit-button{border:0;background:transparent;padding:0;font:inherit;font-weight:700;color:#000;cursor:pointer;max-width:100%;overflow:hidden;text-overflow:ellipsis}.cell-id{font-weight:700;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.cell-id-link{color:#2f6fed;text-decoration:none}.cell-id-link:hover{text-decoration:underline}.cell-firmware{font-style:italic;font-size:12px;color:var(--text-faint)}.cell-muted{color:var(--text-soft)}.cell-datetime{display:flex;flex-direction:column;gap:1px;line-height:1.3}.cell-datetime-time{font-size:11px;color:var(--text-faint)}.assets-table-pagination{display:flex;align-items:center;justify-content:space-between;padding:14px 24px 4px;font-size:12.5px;color:var(--text-faint)}.assets-table-pagination-btns{display:flex;align-items:center;gap:6px}.table-battery{display:flex;align-items:center;justify-content:center;gap:4px}.table-empty-value{color:var(--text-faint);font-size:12px}.battery-placeholder{display:inline-flex;align-items:center;justify-content:center;min-width:30px;min-height:18px;vertical-align:middle}.battery-placeholder:before{content:"";width:14px;height:3px;border-radius:999px;background:var(--text-faint)}.chart-wrap>.battery-placeholder{width:100%;height:100%}.table-battery-pct{font-size:12px;font-weight:700;color:var(--text-soft);font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.assets-table .status-chip{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:68px;padding:3px 8px;border-radius:20px;font-size:11px;font-weight:600;white-space:nowrap}.assets-table .status-chip:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}.assets-table .status-chip.online{background:var(--ok-soft);color:var(--ok);border:1px solid #2ca836}.assets-table .status-chip.offline{background:#eeece7;color:var(--text-faint);border:1px solid var(--border-strong)}.assets-table .status-chip.unknown{background:#f4f3f0;color:var(--text-faint);border:1px solid var(--border)}.asset-status-cell{display:flex;flex-direction:column;align-items:center;gap:3px}.status-last-communication{color:var(--text-faint);font-size:10px;line-height:1.2;white-space:nowrap}.asset-edit-input,.asset-edit-select{width:100%;height:30px;padding:4px 8px;border:1px solid var(--border);border-radius:3px;background:transparent;color:var(--text);font:inherit;font-size:12.5px}.asset-edit-select{cursor:pointer}.asset-edit-input:focus,.asset-edit-input:hover,.asset-edit-select:focus,.asset-edit-select:hover{border-color:var(--border-strong);background:var(--surface);outline:none}.asset-edit-input.is-edited-field,.asset-edit-select.is-edited-field{font-weight:700;color:var(--text)}.asset-description-cell.has-error,.asset-edit-input.has-error,.asset-edit-select.has-error{border-color:var(--danger);box-shadow:inset 0 0 0 2px var(--danger)}.asset-description-cell.has-error .asset-details-button{color:var(--danger)}.asset-edit-input::placeholder{color:var(--text-faint)}.asset-description-cell{display:flex;align-items:center;gap:2px}.asset-description-cell .asset-edit-input{min-width:0;flex:1 1}.asset-details-button{flex:0 0 28px;width:28px;height:28px;color:var(--text-faint)}.asset-details-button.has-details{color:var(--accent)}.save-changes-toast{position:fixed;z-index:1200;right:24px;bottom:24px;display:flex;align-items:center;gap:16px;padding:12px 14px;border:1px solid var(--border-strong);background:var(--surface);box-shadow:0 4px 16px rgba(45,43,38,.16);color:var(--text);font-size:12.5px}.alarms-table .alarms-col-id{width:12%}.alarms-table .alarms-col-passages{width:11%}.alarms-table .alarms-col-severity{width:14%}.alarms-table .alarms-col-target{width:39%}.alarms-table .alarms-col-notifications{width:18%}.alarms-table .alarms-col-delete{width:6%}.alarms-table td:last-child,.alarms-table th:last-child{text-align:center}.alarms-table tbody td{white-space:normal;vertical-align:middle}.alarms-table tbody td:nth-child(2){padding-left:4px;padding-right:4px}.alert-history-table{width:100%;table-layout:fixed}.alert-history-table .alert-col-date,.alert-history-table .alert-col-metric{width:13%}.alert-history-table .alert-col-severity{width:8%}.alert-history-table .alert-col-location{width:16%}.alert-history-table .alert-col-status{width:14%}.alert-history-table .alert-col-attendance{width:22%}.alert-history-table .alert-col-actions,.alert-history-table .alert-col-checklist{width:7%}.alert-history-table tbody td{white-space:normal;overflow-wrap:anywhere;min-width:0}.alert-history-table tbody td:nth-child(4){white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.alert-history-table .alert-actions-column,.alert-history-table .alert-checklist-column{text-align:center;white-space:nowrap}.alert-history-table .alert-checklist-column{vertical-align:middle;padding-left:8px;padding-right:8px;text-align:center}.alert-attendance-cell,.alert-attendance-details,.alert-timestamp-cell{display:flex;flex-direction:column;align-items:flex-start;gap:3px;line-height:1.25;font-size:11px}.alert-timestamp-cell{align-items:center;text-align:center}.alert-history-table .alert-status-column .alert-attendance-cell{align-items:center;text-align:center;gap:5px;min-width:0;overflow:hidden}.alert-history-table .alert-attendance-column,.alert-history-table .alert-status-column{overflow:hidden}.alert-attendance-column{width:200px!important}.alert-attendance-person{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border:1px solid #e5e7e7;border-radius:4px;background:#f7f8f8;color:var(--text-soft);font-size:12px;font-weight:600;text-align:center}.alert-attendance-person svg{width:14px;height:14px;color:var(--text-faint);flex-shrink:0}.alert-sla-chip,.attendance-chip{display:inline-flex;width:-moz-fit-content;width:fit-content;padding:2px 6px;border:1px solid var(--border-strong);border-radius:4px;font-size:10px;font-weight:700;white-space:nowrap}.attendance-chip.open{color:var(--warn);background:var(--warn-soft)}.attendance-chip.in_progress{color:var(--accent);background:var(--accent-soft)}.attendance-chip.finished{color:var(--ok);background:var(--ok-soft)}.alert-sla-chip{color:var(--text-faint);background:#f7f8f8;border-color:#e5e7e7}.alert-sla-chip.late{color:var(--danger);background:var(--danger-soft);border-color:#f0b9b3}.system-alerts-table{width:100%;table-layout:fixed}.system-alerts-table tbody td{white-space:normal;min-width:0}.system-alerts-table .system-col-date{width:16%}.system-alerts-table .system-col-sensor{width:10%}.system-alerts-table .system-col-metric{width:23%}.system-alerts-table .system-col-severity{width:12%}.system-alerts-table .system-col-location{width:39%}.system-alerts-table td,.system-alerts-table th{white-space:normal;overflow-wrap:anywhere}.system-alerts-table td:first-child{white-space:nowrap}.alert-location-cell{display:flex;flex-direction:column;gap:2px;min-width:0;line-height:1.25}.alert-location-cell span:first-child{color:var(--text);font-weight:600}.alert-location-cell span:nth-child(2){color:var(--text-soft)}.alert-location-cell span:last-child{color:var(--text-faint);font-size:11px}.alarm-target-cell{display:flex;align-items:center;flex-wrap:nowrap;gap:6px;width:100%}.alarm-target-cell>.alarm-target-field,.alarm-target-cell>.asset-edit-input,.alarm-target-cell>.asset-edit-select{min-width:0;flex:1 1}.alarm-target-cell .alarm-target-scope,.alarm-target-scope-wrap{flex:0 0 170px;min-width:0}.alarm-target-scope-wrap{gap:8px;height:30px;padding:0 8px 0 10px;border:1px solid var(--border);border-radius:3px;background:transparent}.alarm-target-field,.alarm-target-scope-wrap{position:relative;display:flex;align-items:center}.alarm-target-field{min-width:0}.alarm-target-field .asset-edit-input,.alarm-target-field .asset-edit-select{width:100%}.alarm-target-scope-wrap .asset-edit-select{flex:1 1 auto;width:100%;min-width:0;border:none;background-color:transparent;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236d645f' stroke-width='1.8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M7 9l5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;background-size:14px 14px;-moz-appearance:none;appearance:none;-webkit-appearance:none;padding:0 30px 0 0}.alarm-target-field-icon{position:static;display:inline-flex;align-items:center;justify-content:center;color:var(--text-faint);pointer-events:none;flex-shrink:0}.alarm-target-field-icon svg{width:14px;height:14px}.alarm-severity-select{min-width:110px;height:30px;padding:4px 30px 4px 10px;border-radius:3px;font-size:11px;font-weight:600;white-space:nowrap;border:1px solid;box-sizing:border-box;line-height:1;cursor:pointer;-moz-appearance:none;appearance:none;-webkit-appearance:none;background-repeat:no-repeat;background-position:right 10px center;background-size:12px 12px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236d645f' stroke-width='1.8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M7 9l5 5 5-5'/%3E%3C/svg%3E")}.alarm-severity-select.high{color:var(--danger);background-color:var(--danger-soft);border-color:var(--danger)}.alarm-severity-select.medium{color:var(--warn);background-color:var(--warn-soft);border-color:var(--warn)}.alarm-severity-select.low{color:var(--ok);background-color:var(--ok-soft);border-color:var(--ok)}.alarm-severity-select.is-edited-field{box-shadow:inset 0 0 0 1px currentColor}.alarm-severity-select option{color:var(--text);background:var(--surface)}.alarm-channels-cell{display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-end;gap:4px;min-height:30px}.alarm-channel-chip{background:var(--bg)!important;border:1px solid var(--border-strong)!important;font-weight:600!important}.alarm-channel-chip .MuiChip-label{padding-left:4px;padding-right:6px}.alarm-channel-chip .MuiChip-icon{margin-left:6px;margin-right:-2px;color:var(--text-soft)}.alarm-channels-empty{color:var(--text-faint);font-size:12px;margin-right:4px}.alarm-channels-cell .MuiIconButton-root{margin-left:2px;padding:4px;color:var(--text-faint)}.alarm-channels-cell .MuiIconButton-root:hover{color:var(--text)}.notif-channel-add{display:flex;align-items:center;gap:8px;margin-bottom:16px}.notif-channel-list{display:flex;flex-direction:column;gap:12px}.notif-channel-group{border:1px solid var(--border);border-radius:6px;padding:8px 10px}.notif-channel-group-title{display:flex;align-items:center;gap:6px;font-size:12.5px;font-weight:600;color:var(--text-soft);margin-bottom:8px}.notif-channel-chips{display:flex;flex-wrap:wrap;gap:6px}.notif-channel-empty{color:var(--text-faint);font-size:12.5px;text-align:center;padding:12px 0}body:has(.login-page),html:has(.login-page){min-width:0}.login-page{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;padding:24px 16px;background:var(--bg)}.login-card,.login-shell{width:100%;max-width:448px;margin:auto}.login-card{padding:48px 40px 36px;background:var(--surface);border-radius:0;box-shadow:0 1px 3px rgba(60,64,67,.16),0 4px 16px rgba(60,64,67,.14)}.login-logo{display:block;width:160px;max-width:100%;height:auto;margin-bottom:28px}.login-title{margin:0;color:#202124;font-size:21px;font-weight:400;line-height:1.33}.login-sub{margin:8px 0 32px;color:#5f6368;font-size:14px;line-height:1.5}.login-form{display:flex;flex-direction:column;gap:24px}.login-link{color:#1a73e8;font-size:12.5px;text-decoration:none;cursor:pointer}.login-link-muted{color:#5f6368}.login-forgot{align-self:flex-start;margin-top:-8px;font-size:13px;font-weight:500}.login-footer{gap:24px}.login-actions,.login-footer{display:flex;justify-content:flex-end;margin-top:16px}.login-actions{align-items:center;gap:8px}.login-actions>:first-child:not(:last-child){margin-right:auto;margin-left:-8px}@media (max-width:480px){.login-page{padding:0;background:var(--surface)}.login-card{padding:40px 24px;box-shadow:none}.login-footer{justify-content:flex-start;padding:0 24px 24px}}.app-error{max-width:520px;margin:64px auto;padding:24px;background:var(--surface);border:1px solid var(--border);border-radius:8px;text-align:center}.app-error-title{color:var(--text);font-size:16px;font-weight:600}.app-error-message{margin:8px 0 18px;color:var(--text-soft);font-size:13px}.app-error-actions{display:flex;justify-content:center;gap:8px}.user-menu-btn{padding:0;border:0;background:none;cursor:pointer}.user-menu-avatar,.user-menu-btn{display:inline-flex;align-items:center}.user-menu-avatar{justify-content:center;width:30px;height:30px;border-radius:50%;background:var(--accent-soft);color:var(--accent);font-size:12px;font-weight:600}.user-menu-header{padding:8px 16px 10px;min-width:220px}.user-menu-name{color:var(--text);font-size:13px;font-weight:600}.user-menu-email,.user-menu-org{color:var(--text-faint);font-size:12px}.sensor-empty{padding:24px 16px;color:var(--text-faint);font-size:13px;text-align:center}.sites-list-row.readonly{cursor:default}.generated-codes{margin:0;padding:0;list-style:none;max-height:260px;overflow:auto;border:1px solid var(--border);border-radius:6px}.generated-codes li{display:flex;justify-content:space-between;gap:12px;padding:6px 10px;border-bottom:1px solid var(--border);font-size:12.5px}.generated-codes li:last-child{border-bottom:0}.generated-codes span{color:var(--text-faint)}