.login-wrapper{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}.login-card{width:100%;max-width:360px;padding:32px;border-radius:20px;background:#fffc;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 24px 48px -12px #0f172a40;display:grid;gap:12px}.login-card h1{margin:0;font-size:2rem;color:#0f172a}.login-card .subtitle{margin:0 0 8px;color:#475569;font-size:.95rem}.login-card label{font-weight:600;color:#1e293b}.login-card input{width:100%;padding:12px;border-radius:12px;border:1px solid #cbd5f5;background:#f8fafc}.login-card button{margin-top:8px;padding:12px;border-radius:12px;border:none;background:linear-gradient(135deg,#1d4ed8,#0ea5e9);color:#fff;font-weight:600;cursor:pointer;transition:transform .15s ease}.login-card button:disabled{opacity:.7;cursor:default}.login-card button:not(:disabled):hover{transform:translateY(-1px)}.error-message{margin:0;padding:10px;border-radius:10px;background:#fee2e2;color:#b91c1c;font-size:.9rem}.device-sidebar-controls{padding:10px 4px 8px;display:flex;flex-direction:column;gap:8px;position:sticky;top:0;z-index:2;background:#f1f5f9;margin-bottom:2px}.device-search-wrap{position:relative;display:flex;align-items:center}.device-search-icon{position:absolute;left:9px;font-size:.8rem;pointer-events:none}.device-search{width:100%;padding:6px 30px 6px 28px;border:1px solid #e2e8f0;border-radius:8px;font-size:.82rem;background:#fff;outline:none;transition:border-color .15s}.device-search:focus{border-color:#2563eb}.device-search-clear{position:absolute;right:7px;background:none;border:none;font-size:.75rem;color:#94a3b8;cursor:pointer;padding:2px 4px;line-height:1}.device-search-clear:hover{color:#475569}.device-group-btns{display:flex;gap:4px}.device-group-btn{flex:1;padding:4px 8px;font-size:.72rem;font-weight:600;border:1px solid #e2e8f0;border-radius:6px;background:#fff;color:#64748b;cursor:pointer;transition:background .12s,color .12s,border-color .12s}.device-group-btn:hover{background:#f0f9ff;border-color:#93c5fd;color:#1d4ed8}.device-group-btn.active{background:#2563eb;border-color:#2563eb;color:#fff}.device-results-count{padding:2px 4px 6px;font-size:.73rem;color:#64748b;margin:0}.device-sidebar{display:flex;flex-direction:column;gap:0;max-height:calc(100vh - 210px);overflow-y:auto;position:sticky;top:24px;scrollbar-width:thin;scrollbar-color:#cbd5e1 transparent}.device-sidebar::-webkit-scrollbar{width:5px}.device-sidebar::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:9999px}.device-list-empty{padding:24px 16px;color:#94a3b8;font-size:.875rem;text-align:center}.device-group-header{padding:8px 14px 6px;font-size:.7rem;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.07em;background:transparent;position:sticky;top:0;z-index:1;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.device-card{background:#fff;border-radius:14px;padding:14px 16px;margin-bottom:10px;cursor:pointer;border:2px solid transparent;box-shadow:0 1px 4px #0f172a12;transition:border-color .15s,box-shadow .15s,transform .1s;-webkit-user-select:none;user-select:none}.device-card:hover{border-color:#93c5fd;box-shadow:0 4px 14px #2563eb1f;transform:translateY(-1px)}.device-card.selected{border-color:#2563eb;box-shadow:0 4px 20px #2563eb33}.device-card-header{display:flex;align-items:center;gap:8px;margin-bottom:4px}.device-card-name{flex:1;font-size:.9rem;font-weight:700;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.status-dot{flex-shrink:0;width:8px;height:8px;border-radius:50%}.status-dot.online{background:#22c55e;box-shadow:0 0 0 2px #22c55e40}.status-dot.offline{background:#94a3b8}.status-badge{flex-shrink:0;display:inline-block;padding:2px 8px;border-radius:999px;font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em}.status-badge.online{background:#dcfce7;color:#16a34a}.status-badge.offline{background:#f1f5f9;color:#64748b}.device-card-sub{display:flex;align-items:center;gap:6px;margin-bottom:3px;flex-wrap:wrap}.device-id{font-size:.72rem;color:#94a3b8;font-family:JetBrains Mono,Fira Code,monospace}.locality-chip{display:inline-block;background:#e0f2fe;color:#0369a1;padding:1px 7px;border-radius:999px;font-size:.68rem;font-weight:600}.device-card-type{font-size:.78rem;color:#475569;margin-bottom:8px}.device-card-metrics{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:8px;padding:8px 10px;background:#f8fafc;border-radius:8px}.metric-pill{display:inline-flex;align-items:baseline;gap:3px;background:#fff;border:1px solid #e2e8f0;border-radius:6px;padding:2px 7px;font-size:.75rem}.metric-key{color:#64748b;font-family:JetBrains Mono,Fira Code,monospace}.metric-val{color:#0f172a;font-weight:600;font-family:JetBrains Mono,Fira Code,monospace}.device-card-time{font-size:.72rem;color:#94a3b8;text-align:right}.device-card.alert-sev-info{border-color:#2563eb;background:#f0f7ff}.device-card.alert-sev-warning{border-color:#d97706;background:#fffdf0}.device-card.alert-sev-critical{border-color:#dc2626;background:#fff5f5}.device-card.alert-sev-emergency{border-color:#7c3aed;background:#faf5ff;animation:card-pulse-emergency 2s ease-in-out infinite}@keyframes card-pulse-emergency{0%,to{box-shadow:0 0 #7c3aed26,0 1px 4px #0f172a12}50%{box-shadow:0 0 0 5px #7c3aed1a,0 1px 4px #0f172a12}}.device-card.alert-sev-emergency:hover,.device-card.alert-sev-critical:hover,.device-card.alert-sev-warning:hover,.device-card.alert-sev-info:hover{transform:translateY(-1px)}.alert-sev-pill{flex-shrink:0;display:inline-flex;align-items:center;gap:3px;padding:2px 7px;border-radius:999px;font-size:.68rem;font-weight:700;letter-spacing:.02em;white-space:nowrap}.chart-card{padding:20px 20px 16px;border-radius:16px;border:1px solid #e2e8f0;background:#fff;display:flex;flex-direction:column;gap:14px;box-shadow:0 18px 36px -18px #0f172a40}.chart-card h3{margin:0;font-size:.95rem;font-weight:700;color:#0f172a}.chart-body{display:flex;gap:16px;align-items:stretch;height:260px}.chart-canvas-wrap{flex:1;min-width:0;position:relative}.chart-legend-col{width:156px;flex-shrink:0;display:flex;flex-direction:column;gap:4px;overflow-y:auto;padding:2px 0;scrollbar-width:thin;scrollbar-color:#cbd5e1 transparent}.chart-legend-col::-webkit-scrollbar{width:4px}.chart-legend-col::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:9999px}.chart-legend-item{display:flex;align-items:center;gap:7px;padding:6px 8px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;cursor:pointer;text-align:left;transition:background .12s,border-color .12s,opacity .12s}.chart-legend-item:hover{background:#f8fafc;border-color:#93c5fd}.chart-legend-item.legend-hidden{opacity:.45;background:#f8fafc}.legend-color-box{flex-shrink:0;width:10px;height:10px;border-radius:3px;transition:background .12s}.legend-label{flex:1;font-size:.75rem;color:#374151;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.legend-last-val{flex-shrink:0;font-size:.75rem;font-weight:700;font-family:JetBrains Mono,Fira Code,monospace;transition:color .12s}.chart-empty{color:#94a3b8;font-size:.875rem;text-align:center;margin:24px 0}.map-card{padding:20px;border-radius:16px;border:1px solid #e2e8f0;background:#fff;display:flex;flex-direction:column;gap:12px;box-shadow:0 18px 36px -18px #0f172a40;min-height:360px}.map-card h3{margin:0}.map-canvas{width:100%;height:280px;border-radius:12px}.map-empty{margin:0;color:#64748b}.detail-card{border-radius:16px;border:1px solid #e2e8f0;background:#fff;padding:20px;display:grid;gap:16px;box-shadow:0 18px 36px -18px #0f172a40}.detail-card header{display:flex;justify-content:space-between;align-items:center}.detail-card header h2{margin:0}.detail-card header p{margin:0;color:#64748b}.detail-section h4{margin:0 0 8px}.detail-section ul{margin:0;padding-left:16px}.metrics-table{width:100%;border-collapse:collapse;font-size:.88rem}.metrics-table th,.metrics-table td{padding:7px 12px;text-align:left;border-bottom:1px solid #e2e8f0}.metrics-table th{background:#f1f5f9;font-weight:600;color:#475569;font-size:.8rem;text-transform:uppercase;letter-spacing:.04em}.metrics-table tbody tr:last-child td{border-bottom:none}.metrics-table tbody tr:hover{background:#f8fafc}.location-form{display:grid;gap:12px}.field-group{display:grid;gap:4px}.field-group input{padding:10px;border-radius:10px;border:1px solid #cbd5f5}.location-form button{justify-self:start;padding:10px 16px;border-radius:10px;border:none;background:linear-gradient(120deg,#2563eb,#0ea5e9);color:#fff;font-weight:600;cursor:pointer}.inline-message{padding:10px;border-radius:10px;font-size:.9rem}.inline-message.error{background:#fee2e2;color:#b91c1c}.relay-panel{display:grid;gap:12px}.relay-panel-header{display:flex;justify-content:space-between;align-items:center}.relay-panel-header h4{margin:0;font-size:.95rem;color:#334155}.relay-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.relay-card{background:#f8fafc;border:1.5px solid #e2e8f0;border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:8px}.relay-card.on{border-color:#22c55e;background:#f0fdf4}.relay-card.off{border-color:#e2e8f0}.relay-label-row{min-height:22px}.relay-label-text{font-size:.85rem;font-weight:600;color:#334155;display:flex;align-items:center;gap:5px}.relay-label-text.editable{cursor:pointer}.relay-label-text.editable:hover .relay-edit-icon{opacity:1}.relay-edit-icon{font-size:.75rem;color:#94a3b8;opacity:.5;transition:opacity .15s}.relay-label-input{font-size:.85rem;font-weight:600;color:#334155;border:1px solid #3b82f6;border-radius:6px;padding:2px 8px;width:100%;box-sizing:border-box;outline:none}.relay-state-badge{font-size:.9rem;font-weight:700;color:#94a3b8}.relay-state-badge.on{color:#16a34a}.relay-state-badge.off{color:#64748b}.relay-toggle{padding:6px 14px;border-radius:8px;border:none;font-size:.82rem;font-weight:600;cursor:pointer;transition:background .15s}.relay-toggle.btn-on{background:#dcfce7;color:#166534}.relay-toggle.btn-on:hover:not(:disabled){background:#bbf7d0}.relay-toggle.btn-off{background:#fee2e2;color:#991b1b}.relay-toggle.btn-off:hover:not(:disabled){background:#fecaca}.relay-toggle:disabled{opacity:.5;cursor:not-allowed}.btn-save-labels{padding:6px 14px;border:none;border-radius:8px;background:linear-gradient(135deg,#3b82f6,#1d4ed8);color:#fff;font-size:.82rem;font-weight:600;cursor:pointer;transition:opacity .15s}.btn-save-labels:hover:not(:disabled){opacity:.9}.btn-save-labels:disabled{opacity:.5;cursor:not-allowed}.dash-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172aa6;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:1000;display:flex;align-items:center;justify-content:center;padding:16px;animation:dash-fade-in .18s ease}@keyframes dash-fade-in{0%{opacity:0}to{opacity:1}}.dash-modal{background:#f1f5f9;border-radius:20px;width:100%;max-width:1140px;max-height:92vh;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 40px 80px -20px #0f172a80;animation:dash-slide-in .2s ease}@keyframes dash-slide-in{0%{transform:translateY(16px);opacity:0}to{transform:translateY(0);opacity:1}}.dash-modal-header{display:flex;align-items:center;justify-content:space-between;padding:14px 24px;background:#0f172a;gap:16px;flex-shrink:0}.dash-modal-title h2{margin:0;font-size:1.05rem;font-weight:700;color:#f1f5f9}.dash-modal-sub{font-size:.78rem;color:#64748b}.dash-modal-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}.dash-modal-time{font-size:.75rem;color:#475569}.dash-cfg-btn{padding:5px 12px;border-radius:8px;border:1px solid #334155;background:transparent;color:#94a3b8;font-size:.8rem;cursor:pointer;transition:all .15s;white-space:nowrap}.dash-cfg-btn:hover,.dash-cfg-btn.active{background:#1e293b;color:#e2e8f0;border-color:#3b82f6}.dash-close-btn{width:30px;height:30px;border-radius:8px;border:none;background:#1e293b;color:#94a3b8;font-size:.9rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .15s}.dash-close-btn:hover{background:#ef4444;color:#fff}.dash-config-panel{background:#1e293b;border-bottom:1px solid #334155;padding:12px 24px;display:flex;flex-direction:column;gap:10px;flex-shrink:0}.dash-config-row{display:flex;align-items:flex-start;gap:14px;flex-wrap:wrap}.dash-config-row>strong{color:#64748b;font-size:.72rem;text-transform:uppercase;letter-spacing:.06em;min-width:80px;padding-top:5px;flex-shrink:0}.dash-config-checks{display:flex;gap:14px;flex-wrap:wrap}.dash-cfg-check{display:flex;align-items:center;gap:5px;color:#cbd5e1;font-size:.82rem;cursor:pointer}.dash-cfg-check input{accent-color:#3b82f6}.dash-metric-chips{display:flex;gap:6px;flex-wrap:wrap}.dash-metric-chip{padding:3px 10px;border-radius:20px;background:#334155;color:#64748b;font-size:.75rem;cursor:pointer;transition:all .15s;-webkit-user-select:none;user-select:none}.dash-metric-chip input{display:none}.dash-metric-chip.active{background:#2563eb;color:#fff}.dash-modal-body{flex:1;overflow-y:auto;padding:16px 20px;display:flex;flex-direction:column;gap:14px}.dash-section{background:#fff;border-radius:14px;border:1px solid #e2e8f0;padding:14px 16px;box-shadow:0 1px 3px #0f172a0d}.dash-section-title{font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:#94a3b8;margin-bottom:10px}.dash-gauges-row{display:flex;gap:4px;flex-wrap:wrap;align-items:flex-start}.gauge-widget{display:flex;flex-direction:column;align-items:center;gap:0}.gauge-label{font-size:.75rem;font-weight:600;color:#475569;text-align:center;max-width:130px}.dash-kpi-row{display:flex;gap:10px;flex-wrap:wrap}.kpi-card{flex:1;min-width:110px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:14px 12px;text-align:center}.kpi-label{font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:#94a3b8;margin-bottom:4px}.kpi-value{font-size:1.9rem;font-weight:800;line-height:1.1}.kpi-unit{font-size:.72rem;color:#94a3b8;margin-top:2px}.dash-bottom-row{display:grid;grid-template-columns:1fr 1.6fr;gap:14px}.dash-table-section{overflow:auto}.dash-chart-wrap{height:230px}.dash-metrics-table{width:100%;border-collapse:collapse;font-size:.83rem}.dash-metrics-table th{background:#f1f5f9;font-weight:700;color:#475569;font-size:.72rem;text-transform:uppercase;letter-spacing:.04em;padding:6px 10px;text-align:left;border-bottom:2px solid #e2e8f0}.dash-metrics-table td{padding:6px 10px;border-bottom:1px solid #f1f5f9;color:#334155}.dash-metrics-table tbody tr:last-child td{border-bottom:none}.dash-metrics-table tbody tr:hover{background:#f8fafc}.dash-empty{text-align:center;color:#94a3b8;padding:48px 24px;font-size:.9rem}.chart-empty-msg{display:flex;align-items:center;justify-content:center;height:100%;color:#94a3b8;font-size:.88rem}@media (max-width: 700px){.dash-bottom-row{grid-template-columns:1fr}.dash-modal-header{flex-direction:column;align-items:flex-start;gap:8px}}.dash-modal-standalone{max-width:100%;max-height:100vh;border-radius:0;box-shadow:none}.stats-grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.stat-card{border-radius:16px;padding:16px;background:#fff;border:1px solid #e2e8f0;box-shadow:0 18px 36px -18px #0f172a40;display:grid;gap:6px}.stat-card .label{font-size:.9rem;color:#64748b}.stat-card .value{font-size:2rem;color:#0f172a}.stat-card ul{margin:0;padding-left:18px;color:#1e293b}.stat-card.primary{background:linear-gradient(135deg,#2563eb26,#0ea5e933)}.stat-card.online{background:linear-gradient(135deg,#22c55e26,#4ade8033)}.stat-card.offline{background:linear-gradient(135deg,#f8717133,#fb923c33)}.stat-card.types ul li{font-size:.9rem}.config-panel{background:#fff;border-radius:16px;box-shadow:0 18px 36px -18px #0f172a40;padding:28px 32px;display:grid;gap:28px}.config-section{display:grid;gap:16px}.config-section h3{margin:0 0 4px;font-size:1rem;color:#1e293b;border-bottom:1px solid #e2e8f0;padding-bottom:8px}.config-field{display:grid;gap:4px}.config-field label{font-size:.85rem;font-weight:600;color:#475569}.config-field input[type=text],.config-field input[type=password],.config-field input[type=number],.config-field textarea{padding:8px 12px;border:1px solid #cbd5e1;border-radius:8px;font-size:.9rem;font-family:Fira Mono,Courier New,monospace;outline:none;transition:border-color .15s;width:100%;box-sizing:border-box}.config-field input:focus,.config-field textarea:focus{border-color:#3b82f6}.config-field textarea{min-height:90px;resize:vertical}.password-wrapper{display:flex;gap:8px;align-items:center}.password-wrapper input{flex:1}.btn-toggle-pw{padding:8px 12px;border:1px solid #cbd5e1;border-radius:8px;background:#f8fafc;cursor:pointer;font-size:.8rem;white-space:nowrap;color:#475569}.btn-toggle-pw:hover{background:#e2e8f0}.tls-checkbox-row{display:flex;align-items:center;gap:8px;font-size:.9rem;color:#334155}.tls-checkbox-row input[type=checkbox]{width:16px;height:16px;cursor:pointer}.config-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.btn-test{padding:10px 20px;border:2px solid #3b82f6;border-radius:10px;background:transparent;color:#3b82f6;font-weight:600;cursor:pointer;transition:background .15s,color .15s}.btn-test:hover:not(:disabled){background:#eff6ff}.btn-test:disabled{opacity:.5;cursor:not-allowed}.btn-save{padding:10px 24px;border:none;border-radius:10px;background:linear-gradient(135deg,#3b82f6,#1d4ed8);color:#fff;font-weight:600;cursor:pointer;transition:opacity .15s}.btn-save:hover:not(:disabled){opacity:.9}.btn-save:disabled{opacity:.5;cursor:not-allowed}.mqtt-status-chip{display:inline-block;padding:4px 12px;border-radius:999px;font-size:.78rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em}.mqtt-status-chip.connected{background:#dcfce7;color:#166534}.mqtt-status-chip.disconnected,.mqtt-status-chip.error{background:#fee2e2;color:#991b1b}.mqtt-status-chip.connecting{background:#fef9c3;color:#92400e}.config-status-row{display:flex;align-items:center;gap:10px;margin-bottom:4px}.config-status-row span{font-size:.9rem;color:#475569}.routing-panel{background:#fff;border-radius:16px;box-shadow:0 18px 36px -18px #0f172a40;padding:28px 32px;display:grid;gap:24px}.routing-panel h2{margin:0 0 4px;font-size:1.1rem;color:#1e293b}.routing-panel p.subtitle{margin:0;color:#64748b;font-size:.88rem}.discover-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.btn-discover{padding:9px 20px;border:2px solid #7c3aed;border-radius:10px;background:transparent;color:#7c3aed;font-weight:600;cursor:pointer;transition:background .15s}.btn-discover:hover:not(:disabled){background:#f5f3ff}.btn-discover:disabled{opacity:.5;cursor:not-allowed}.btn-sm{padding:4px 10px;border-radius:6px;border:none;font-size:.8rem;font-weight:600;cursor:pointer}.btn-sm.apply{background:#dcfce7;color:#166534}.btn-sm.apply:hover{background:#bbf7d0}.btn-sm.delete{background:#fee2e2;color:#991b1b}.btn-sm.delete:hover{background:#fecaca}.btn-sm.edit{background:#e0f2fe;color:#075985}.btn-sm.edit:hover{background:#bae6fd}.btn-sm.location{background:#f0fdf4;color:#166534}.btn-sm.location:hover{background:#dcfce7}.btn-sm.location.active{background:#dcfce7;outline:2px solid #22c55e}.routing-table,.discover-table{width:100%;border-collapse:collapse;font-size:.85rem}.routing-table th,.discover-table th{text-align:left;padding:8px 10px;background:#f8fafc;color:#475569;font-weight:600;border-bottom:2px solid #e2e8f0}.routing-table td,.discover-table td{padding:7px 10px;border-bottom:1px solid #f1f5f9;vertical-align:top}.routing-table tr:hover td,.discover-table tr:hover td{background:#f8fafc}.topic-code{font-family:Fira Mono,monospace;font-size:.82rem;background:#f1f5f9;padding:2px 6px;border-radius:4px;white-space:nowrap}.sample-preview{font-family:Fira Mono,monospace;font-size:.75rem;color:#64748b;max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.route-form{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:16px 20px;display:grid;gap:12px}.route-form h4{margin:0;font-size:.9rem;color:#334155}.route-form-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}@media (max-width: 700px){.route-form-fields{grid-template-columns:1fr}}.route-form-fields .config-field label{font-size:.78rem}.route-form-fields select{padding:8px 10px;border:1px solid #cbd5e1;border-radius:8px;font-size:.88rem;background:#fff;width:100%;box-sizing:border-box}.route-form-actions{display:flex;gap:8px}.inline-message{margin-top:4px;font-size:.85rem;padding:6px 10px;border-radius:8px}.inline-message.success{background:#dcfce7;color:#166534}.inline-message.error{background:#fee2e2;color:#991b1b}.loc-coords{font-size:.8rem;color:#334155;font-family:Fira Mono,monospace;white-space:nowrap}.loc-badge{display:inline-block;padding:1px 7px;border-radius:999px;font-size:.7rem;font-weight:600}.loc-badge.gps{background:#dcfce7;color:#166534}.loc-badge.manual{background:#dbeafe;color:#1d4ed8}.location-edit-row td{background:#f8fafc;padding:0!important}.location-inline{padding:14px 18px;border-top:2px solid #22c55e;display:grid;gap:12px}.loc-auto-note{margin:0;font-size:.82rem;color:#475569;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:8px;padding:8px 12px}.loc-form{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}.loc-form .config-field{min-width:140px}.loc-form-actions{display:flex;gap:8px;align-items:flex-end;padding-bottom:1px}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:#fffc;text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.alerts-view{display:grid;gap:24px}.alerts-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.alerts-header-text h2{font-size:1.15rem;font-weight:700;color:#111827;margin:0 0 4px}.alerts-header-text p{font-size:.875rem;color:#6b7280;margin:0}.alerts-create-btn{flex-shrink:0;font-size:.9rem;padding:10px 18px}.alerts-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.alert-summary-card{background:#fff;border-radius:14px;padding:18px 20px;display:flex;align-items:center;gap:14px;box-shadow:0 1px 4px #00000012;border-top:3px solid currentColor}.alert-summary-icon{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:1.3rem;flex-shrink:0}.alert-summary-info{display:flex;flex-direction:column;gap:2px}.alert-summary-value{font-size:1.6rem;font-weight:800;line-height:1}.alert-summary-label{font-size:.78rem;color:#6b7280;font-weight:500}.alerts-filters{display:flex;gap:10px;flex-wrap:wrap;padding-bottom:16px;border-bottom:1px solid #f3f4f6}.alerts-search-wrap{position:relative;flex:1;min-width:220px}.alerts-search-icon{position:absolute;left:10px;top:50%;transform:translateY(-50%);font-size:.85rem;pointer-events:none}.alerts-search{width:100%;padding:8px 32px 8px 30px;border:1px solid #d1d5db;border-radius:8px;font-size:.875rem;color:#111827;background:#fff;outline:none;box-sizing:border-box;transition:border-color .15s}.alerts-search:focus{border-color:#2563eb}.alerts-search-clear{position:absolute;right:8px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;color:#9ca3af;font-size:.75rem;padding:2px 4px}.alerts-filter-select{padding:8px 10px;border:1px solid #d1d5db;border-radius:8px;font-size:.875rem;color:#374151;background:#fff;outline:none;cursor:pointer;transition:border-color .15s}.alerts-filter-select:focus{border-color:#2563eb}.alerts-table-wrap{overflow-x:auto}.alerts-table{font-size:.85rem}.alerts-table td{vertical-align:middle;padding:10px 14px}.row-silenced td{opacity:.6}.alert-name-cell{display:flex;flex-direction:column;gap:2px}.alert-desc-cell{font-size:.75rem;color:#9ca3af;max-width:240px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.silenced-badge{display:inline-block;font-size:.7rem;background:#f3f4f6;color:#6b7280;padding:1px 6px;border-radius:4px;width:fit-content}.event-type-label{font-size:.78rem;color:#374151;background:#f3f4f6;padding:3px 8px;border-radius:6px;white-space:nowrap}.channel-badges{display:flex;gap:4px;flex-wrap:wrap}.target-all{font-size:.8rem;color:#6b7280;font-style:italic}.target-chip{font-size:.78rem;background:#e0f2fe;color:#0369a1;padding:2px 8px;border-radius:6px;white-space:nowrap}.condition-text{font-size:.8rem;font-family:monospace;color:#374151;background:#f9fafb;padding:3px 7px;border-radius:6px;white-space:nowrap}.status-text.online{color:#16a34a;font-weight:600;font-size:.8rem}.status-text.offline{color:#9ca3af;font-size:.8rem}.alerts-table-footer{padding:12px 20px;border-top:1px solid #f3f4f6;font-size:.8rem;color:#9ca3af;display:flex;align-items:center}.alerts-empty{display:flex;flex-direction:column;align-items:center;gap:8px;padding:48px 24px;color:#9ca3af}.alerts-empty-icon{font-size:2rem}.alerts-empty p{margin:0;font-size:.9rem}.severity-badge,.channel-badge{display:inline-block;padding:3px 9px;border-radius:999px;font-size:.73rem;font-weight:600;white-space:nowrap}.toggle-switch{position:relative;display:inline-block;width:40px;height:22px;cursor:pointer;flex-shrink:0}.toggle-switch input{opacity:0;width:0;height:0}.toggle-slider{position:absolute;top:0;right:0;bottom:0;left:0;background:#d1d5db;border-radius:22px;transition:background .2s}.toggle-slider:before{content:"";position:absolute;width:16px;height:16px;left:3px;top:3px;background:#fff;border-radius:50%;transition:transform .2s;box-shadow:0 1px 3px #0003}.toggle-switch input:checked+.toggle-slider{background:#22c55e}.toggle-switch input:checked+.toggle-slider:before{transform:translate(18px)}.btn-icon-active{background:#fef3c7;color:#d97706}.alert-form-modal{max-width:680px;max-height:90vh;overflow-y:auto;display:flex;flex-direction:column;padding:0}.alert-modal-header{display:flex;align-items:center;justify-content:space-between;padding:20px 28px 16px;border-bottom:1px solid #e5e7eb;position:sticky;top:0;background:#fff;z-index:1;border-radius:16px 16px 0 0}.alert-modal-header h3{margin:0;font-size:1.05rem;font-weight:700;color:#111827}.alert-rule-preview{display:flex;align-items:flex-start;gap:10px;margin:12px 28px;padding:10px 14px;background:#eff6ff;border:1px solid #bfdbfe;border-radius:10px;font-size:.82rem;color:#1e40af;line-height:1.5}.alert-rule-preview-icon{font-size:1rem;flex-shrink:0;margin-top:1px}.alert-modal-form{display:flex;flex-direction:column;gap:0;padding-bottom:4px}.alert-form-section{padding:16px 28px;border-bottom:1px solid #f3f4f6}.alert-form-section-title{font-size:.8rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#6b7280;margin:0 0 14px}.alert-form-group{display:flex;flex-direction:column;gap:5px;margin-bottom:12px}.alert-form-group:last-child{margin-bottom:0}.alert-form-group label{font-size:.78rem;font-weight:600;color:#4b5563;text-transform:uppercase;letter-spacing:.04em}.alert-form-group input,.alert-form-group select,.alert-form-group textarea{padding:8px 10px;border:1px solid #d1d5db;border-radius:8px;font-size:.875rem;color:#111827;background:#fff;outline:none;transition:border-color .15s;resize:vertical}.alert-form-group input:focus,.alert-form-group select:focus,.alert-form-group textarea:focus{border-color:#2563eb}.alert-form-group input.input-error,.alert-form-group textarea.input-error{border-color:#ef4444}.alert-form-row{display:flex;gap:12px;margin-bottom:12px}.alert-form-row .alert-form-group{margin-bottom:0}.flex-1{flex:1}.flex-2{flex:2}.required{color:#ef4444}.alert-field-error{font-size:.73rem;color:#dc2626}.alert-field-hint{font-size:.73rem;color:#9ca3af}.severity-picker{display:flex;gap:8px;flex-wrap:wrap}.severity-pick-btn{padding:6px 12px;border:2px solid #e5e7eb;border-radius:999px;background:#f9fafb;font-size:.8rem;cursor:pointer;color:#6b7280;transition:all .15s;font-weight:500}.severity-pick-btn:hover{border-color:#d1d5db;background:#f3f4f6}.severity-pick-btn.active{font-weight:700}.alert-target-radios{display:flex;gap:12px;margin-bottom:12px}.target-radio{display:flex;align-items:center;gap:6px;font-size:.875rem;color:#374151;cursor:pointer;padding:8px 14px;border-radius:8px;border:2px solid #e5e7eb;background:#f9fafb;transition:all .15s}.target-radio input{accent-color:#2563eb}.target-radio.active{border-color:#2563eb;background:#eff6ff;color:#1d4ed8}.device-checkbox-list{display:flex;flex-direction:column;gap:6px;max-height:180px;overflow-y:auto;padding:2px}.device-check-item{display:flex;align-items:center;gap:8px;padding:7px 10px;border-radius:8px;background:#f9fafb;cursor:pointer;border:1px solid transparent;font-size:.875rem;transition:background .12s}.device-check-item:hover{background:#f0f4ff}.device-check-item.checked{background:#eff6ff;border-color:#bfdbfe}.device-check-item input{accent-color:#2563eb;flex-shrink:0}.device-check-name{font-weight:600;color:#111827;flex:1}.device-check-type{font-size:.72rem;color:#9ca3af;background:#f3f4f6;padding:1px 6px;border-radius:4px}.channel-section{border:1px solid #e5e7eb;border-radius:10px;margin-bottom:8px;overflow:hidden;transition:border-color .15s}.channel-section.enabled{border-color:#bfdbfe}.channel-section-header{display:flex;align-items:center;gap:10px;padding:10px 14px;cursor:pointer;background:#fafafa;font-size:.875rem;-webkit-user-select:none;user-select:none}.channel-section-header input{accent-color:#2563eb;cursor:pointer}.channel-badge-inline{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:999px;font-size:.8rem;font-weight:600}.channel-section-body{padding:12px 14px;border-top:1px solid #e5e7eb;background:#fff}.alert-options-row{display:flex;gap:24px;flex-wrap:wrap}.alert-toggle-label{display:flex;align-items:center;gap:8px;font-size:.875rem;color:#374151;cursor:pointer}.alert-toggle-label input{accent-color:#2563eb;width:15px;height:15px}.alert-form-modal .admin-modal-actions{padding:16px 28px 20px;border-top:1px solid #e5e7eb;position:sticky;bottom:0;background:#fff;border-radius:0 0 16px 16px}.alerts-subnav{display:flex;gap:4px;background:#fff;border-radius:12px;padding:6px;box-shadow:0 1px 4px #00000012;width:fit-content}.alerts-subnav-btn{display:flex;align-items:center;gap:7px;padding:7px 18px;border:none;border-radius:8px;background:transparent;color:#6b7280;font-size:.875rem;font-weight:500;cursor:pointer;transition:background .15s,color .15s}.alerts-subnav-btn:hover{background:#f3f4f6;color:#111827}.alerts-subnav-btn.active{background:#2563eb;color:#fff;font-weight:600}.alerts-subnav-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#ef4444;color:#fff;font-size:.7rem;font-weight:700;line-height:1}.alerts-subnav-btn.active .alerts-subnav-badge{background:#ffffff4d}.log-table td{padding:9px 12px;vertical-align:middle}.log-row-pending{background:#fffbeb}.log-row-pending:hover td{background:#fef9e7!important}.log-rule-name{font-size:.82rem;font-weight:600;color:#111827}.log-device-cell{display:flex;flex-direction:column;gap:2px}.log-device-name{font-size:.82rem;font-weight:500;color:#111827}.log-device-id{font-size:.7rem;color:#9ca3af;background:none;font-family:monospace}.log-condition-cell{display:flex;flex-direction:column;gap:2px}.log-condition-rule{font-size:.78rem;font-family:monospace;color:#374151;background:#f3f4f6;padding:2px 6px;border-radius:4px;width:fit-content}.log-condition-actual{font-size:.75rem;color:#6b7280}.log-status-badge{display:inline-block;padding:2px 8px;border-radius:999px;font-size:.72rem;font-weight:600;white-space:nowrap}.log-pending-badge{display:inline-block;padding:2px 8px;border-radius:999px;font-size:.72rem;font-weight:600;background:#fef3c7;color:#92400e}.log-ack-done{display:flex;flex-direction:column;gap:1px;font-size:.75rem;color:#6b7280}.log-ack-check{color:#16a34a;font-weight:700;font-size:.85rem}.log-ack-time{font-size:.7rem;color:#9ca3af}.log-ack-btn{background:#dcfce7;color:#15803d;font-weight:700}.log-ack-btn:hover{background:#bbf7d0}.log-pending-count{margin-left:12px;font-size:.78rem;font-weight:600;color:#d97706;background:#fef3c7;padding:2px 8px;border-radius:999px}.ch-cards-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}.ch-card{background:#fff;border-radius:16px;border:2px solid #e5e7eb;box-shadow:0 1px 4px #0000000f;overflow:hidden;transition:border-color .2s;display:flex;flex-direction:column}.ch-card-enabled{border-color:#bfdbfe}.ch-card-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;background:#f9fafb;border-bottom:1px solid #e5e7eb;gap:12px;flex-wrap:wrap}.ch-card-title{display:flex;align-items:center;gap:12px}.ch-card-icon{width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:1.2rem;flex-shrink:0}.ch-card-title strong{display:block;font-size:.95rem;color:#111827}.ch-usage-count{display:block;font-size:.72rem;color:#9ca3af;margin-top:1px}.ch-card-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.ch-status-badge{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:999px;font-size:.72rem;font-weight:600;white-space:nowrap}.ch-toggle-wrap{display:flex;align-items:center;gap:8px}.ch-toggle-label{font-size:.78rem;color:#6b7280}.ch-card-body{padding:18px 20px;flex:1;transition:opacity .2s}.ch-body-disabled{opacity:.45;pointer-events:none;-webkit-user-select:none;user-select:none}.ch-form{display:flex;flex-direction:column;gap:12px}.ch-form-row{display:flex;gap:12px;align-items:flex-start}.ch-form-group{display:flex;flex-direction:column;gap:5px;min-width:0}.ch-form-group label{font-size:.73rem;font-weight:600;color:#4b5563;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap}.ch-form-group input,.ch-form-group select{padding:7px 10px;border:1px solid #d1d5db;border-radius:8px;font-size:.875rem;color:#111827;background:#fff;outline:none;transition:border-color .15s;width:100%;box-sizing:border-box}.ch-form-group input:focus,.ch-form-group select:focus{border-color:#2563eb}.ch-checkbox-label{display:flex;align-items:center;gap:6px;font-size:.8rem!important;color:#374151!important;text-transform:none!important;letter-spacing:0!important;cursor:pointer;padding-top:4px}.ch-checkbox-label input{width:auto!important;accent-color:#2563eb}.ch-password-wrap{position:relative;display:flex}.ch-password-wrap input{flex:1;padding-right:36px}.ch-eye-btn{position:absolute;right:6px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;font-size:.9rem;padding:2px 4px;color:#9ca3af}.ch-field-hint{font-size:.7rem;color:#9ca3af;line-height:1.3}.ch-hint{font-size:.78rem;color:#6b7280;background:#f9fafb;border:1px solid #e5e7eb;border-radius:8px;padding:8px 12px;margin:0;line-height:1.5}.ch-hint a{color:#2563eb;text-decoration:underline}.ch-inline-msg{margin:0 20px 4px;padding:8px 12px;border-radius:8px;font-size:.8rem;font-weight:500}.ch-inline-msg.ok{background:#dcfce7;color:#166534}.ch-inline-msg.err{background:#fee2e2;color:#991b1b}.ch-card-footer{display:flex;align-items:center;gap:10px;padding:14px 20px;border-top:1px solid #e5e7eb;background:#fafafa;justify-content:flex-end}.ch-test-btn{display:inline-flex;align-items:center;gap:4px}.ch-spinner{display:inline-block;width:12px;height:12px;border:2px solid #d1d5db;border-top-color:#374151;border-radius:50%;animation:ch-spin .7s linear infinite;flex-shrink:0}@keyframes ch-spin{to{transform:rotate(360deg)}}@media (max-width: 1100px){.ch-cards-grid{grid-template-columns:1fr}}@media (max-width: 900px){.alerts-summary{grid-template-columns:repeat(2,1fr)}}@media (max-width: 600px){.alerts-summary{grid-template-columns:1fr 1fr}.alerts-filters,.alert-form-row,.alert-target-radios{flex-direction:column}}.mv-shell{display:flex;flex-direction:column;height:calc(100vh - 160px);background:#0f172a;overflow:hidden;position:relative}.mv-toolbar{display:flex;align-items:center;justify-content:space-between;padding:10px 16px;background:#1e293b;border-bottom:1px solid #334155;flex-shrink:0;gap:12px;flex-wrap:wrap}.mv-toolbar-left{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.mv-toolbar-right{display:flex;align-items:center;gap:12px}.mv-device-select{padding:6px 10px;border-radius:8px;border:1px solid #334155;background:#0f172a;color:#e2e8f0;font-size:.85rem;cursor:pointer;min-width:220px}.mv-device-select:focus{outline:none;border-color:#3b82f6}.mv-btn{padding:5px 12px;border-radius:7px;border:none;font-size:.82rem;font-weight:600;cursor:pointer;transition:opacity .15s}.mv-btn:hover{opacity:.85}.mv-btn-secondary{background:#334155;color:#94a3b8}.mv-btn-danger{background:#450a0a;color:#ef4444}.mv-hint{font-size:.75rem;color:#475569}.mv-win-count{font-size:.78rem;color:#64748b;background:#1e293b;border:1px solid #334155;padding:3px 8px;border-radius:6px}.mv-canvas{flex:1;position:relative;overflow:hidden;background:radial-gradient(ellipse at 20% 30%,rgba(37,99,235,.06) 0%,transparent 60%),radial-gradient(ellipse at 80% 70%,rgba(14,165,233,.04) 0%,transparent 60%),#0f172a}.mv-empty{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#475569;gap:12px;pointer-events:none}.mv-empty-icon{font-size:3rem;color:#1e293b}.mv-empty p{margin:0;font-size:1rem;color:#64748b}.mv-empty-sub{font-size:.82rem!important;color:#334155!important;text-align:center;line-height:1.6}.mv-taskbar{display:flex;align-items:center;gap:6px;padding:6px 12px;background:#1e293b;border-top:1px solid #334155;flex-shrink:0;flex-wrap:wrap}.mv-taskbar-btn{display:flex;align-items:center;gap:6px;padding:4px 12px;border-radius:6px;border:1px solid #334155;background:#0f172a;color:#94a3b8;font-size:.8rem;cursor:pointer;transition:all .15s}.mv-taskbar-btn:hover{background:#1e293b;color:#e2e8f0;border-color:#3b82f6}.dwin{position:absolute;display:flex;flex-direction:column;background:#f1f5f9;border-radius:12px;border:1px solid #334155;box-shadow:0 24px 48px -12px #0009,0 0 0 1px #ffffff0a;overflow:hidden;transition:box-shadow .15s;min-width:380px}.dwin:hover{box-shadow:0 32px 64px -16px #000000b3,0 0 0 1px #3b82f64d}.dwin-minimized{height:auto!important}.dwin-titlebar{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;background:#0f172a;cursor:grab;-webkit-user-select:none;user-select:none;gap:10px;flex-shrink:0}.dwin-titlebar:active{cursor:grabbing}.dwin-title{display:flex;align-items:center;gap:8px;min-width:0}.dwin-title strong{font-size:.88rem;font-weight:700;color:#f1f5f9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dwin-type{font-size:.73rem;color:#475569;white-space:nowrap}.dwin-btns{display:flex;align-items:center;gap:6px;flex-shrink:0}.dwin-time{font-size:.7rem;color:#334155;white-space:nowrap}.dwin-btn{width:24px;height:24px;border-radius:6px;border:none;background:#1e293b;color:#64748b;font-size:.78rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .15s;flex-shrink:0}.dwin-btn:hover{background:#334155;color:#e2e8f0}.dwin-close-btn:hover{background:#ef4444!important;color:#fff!important}.dwin-cfg{background:#1e293b;border-bottom:1px solid #334155;padding:8px 12px;display:flex;flex-direction:column;gap:6px}.dwin-cfg-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.dwin-cfg-row>span{font-size:.7rem;color:#475569;text-transform:uppercase;letter-spacing:.05em;min-width:54px}.dwin-chk{display:flex;align-items:center;gap:4px;font-size:.78rem;color:#94a3b8;cursor:pointer}.dwin-chk input{accent-color:#3b82f6}.dwin-chip{padding:2px 8px;border-radius:12px;background:#334155;color:#64748b;font-size:.72rem;cursor:pointer;transition:all .12s;-webkit-user-select:none;user-select:none}.dwin-chip input{display:none}.dwin-chip.active{background:#2563eb;color:#fff}.dwin-body{position:relative;overflow-y:auto;padding:10px;display:flex;flex-direction:column;gap:10px}.dwin-section{background:#fff;border-radius:10px;border:1px solid #e2e8f0;padding:10px 12px}.dwin-section-title{font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:#94a3b8;margin-bottom:8px}.dwin-bottom{display:grid;grid-template-columns:1fr 1.5fr;gap:10px}.dwin-resize{position:absolute;bottom:0;right:0;width:18px;height:18px;cursor:se-resize;background:linear-gradient(135deg,transparent 40%,#334155 40%,#334155 60%,transparent 60%),linear-gradient(135deg,transparent 60%,#334155 60%,#334155 80%,transparent 80%);border-radius:0 0 10px;opacity:.5;transition:opacity .15s}.dwin-resize:hover{opacity:1}.mv-btn-fullscreen{background:#1e293b;color:#94a3b8;border:1px solid #334155;white-space:nowrap}.mv-btn-fullscreen:hover,.mv-btn-fullscreen.active{background:#2563eb;color:#fff;border-color:#2563eb;opacity:1}.mv-shell:-webkit-full-screen,.mv-shell:-moz-full-screen,.mv-shell:fullscreen,.mv-fullscreen{height:100vh!important}.dashboard-shell{padding:24px;display:grid;gap:24px;max-width:1200px;margin:0 auto}.dashboard-header{display:flex;justify-content:space-between;align-items:center;background:#fff;padding:20px;border-radius:16px;box-shadow:0 18px 36px -18px #0f172a40}.dashboard-header h1{margin:0 0 4px}.dashboard-header .subtitle{margin:0;color:#64748b}.user-info{display:flex;align-items:center;gap:12px}.user-info .role{padding:4px 10px;border-radius:999px;background:#1d4ed8;color:#fff;text-transform:uppercase;font-size:.75rem;letter-spacing:.05em}.user-info button{padding:8px 14px;border-radius:10px;border:none;background:#ef4444;color:#fff;font-weight:600;cursor:pointer}.socket-status{text-transform:capitalize;font-size:.85rem}.socket-status.conectado{color:#16a34a}.socket-status.desconectado{color:#b91c1c}.socket-status.conectando{color:#f59e0b}.dashboard-main{display:grid;grid-template-columns:300px 1fr;gap:24px;align-items:start}.main-panels{display:grid;gap:24px}.loading,.error{text-align:center;margin-top:120px;color:#334155;font-size:1.1rem}.dashboard-tabs{display:flex;gap:8px}.tab-btn{padding:8px 20px;border:none;border-radius:999px;background:#f1f5f9;color:#475569;font-size:.9rem;font-weight:600;cursor:pointer;transition:background .15s,color .15s}.tab-btn:hover{background:#e2e8f0}.tab-btn.active{background:linear-gradient(135deg,#3b82f6,#1d4ed8);color:#fff}.localities-view{display:grid;gap:24px}.localities-layout{display:flex;height:560px;background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 1px 4px #00000014}.localities-sidebar{width:260px;flex-shrink:0;border-right:1px solid #e5e7eb;overflow-y:auto;padding:16px 12px;display:flex;flex-direction:column;gap:6px}.localities-sidebar-title{font-size:.875rem;font-weight:700;color:#374151;margin:0 0 8px;display:flex;align-items:center;gap:8px}.locality-count{background:#e5e7eb;color:#6b7280;padding:2px 8px;border-radius:999px;font-size:.75rem;font-weight:600}.localities-empty{color:#9ca3af;font-size:.875rem}.locality-list-card{padding:10px 12px;border-radius:10px;cursor:pointer;border:2px solid transparent;background:#f9fafb;transition:background .15s,border-color .15s;-webkit-user-select:none;user-select:none}.locality-list-card:hover{background:#eff6ff;border-color:#bfdbfe}.locality-list-card.selected{background:#eff6ff;border-color:#2563eb}.locality-list-card-name{font-size:.875rem;font-weight:600;color:#111827}.locality-list-card-desc{font-size:.78rem;color:#6b7280;margin:2px 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.locality-list-card-meta{display:flex;align-items:center;justify-content:space-between;margin-top:4px}.locality-device-count{font-size:.75rem;color:#6b7280}.loc-has-coords{font-size:.8rem}.loc-no-coords{font-size:.8rem;color:#9ca3af}.localities-map-wrap{flex:1;position:relative}.localities-map{height:100%;width:100%}.localities-map-empty{position:absolute;bottom:16px;left:50%;transform:translate(-50%);background:#ffffffe6;padding:8px 16px;border-radius:8px;font-size:.8rem;color:#6b7280;white-space:nowrap}.locality-detail-card{background:#fff;border-radius:16px;padding:20px 24px;box-shadow:0 1px 4px #00000014}.locality-detail-header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:16px}.locality-detail-header h3{font-size:1.1rem;font-weight:700;color:#111827;margin:0 0 4px}.locality-detail-header p{color:#6b7280;font-size:.875rem;margin:0 0 6px}.locality-detail-section-title{font-size:.78rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:#6b7280;margin:0 0 10px}.device-status-badge{display:inline-block;padding:2px 8px;border-radius:999px;font-size:.75rem;font-weight:600}.device-status-badge.online{background:#dcfce7;color:#16a34a}.device-status-badge.offline{background:#fee2e2;color:#dc2626}@media (max-width: 900px){.dashboard-main{grid-template-columns:1fr}.device-sidebar{max-height:360px;position:static}}.admin-shell{min-height:100vh;background:#f0f2f5;font-family:inherit}.admin-header{background:#fff;border-bottom:1px solid #e5e7eb;padding:0 32px;height:64px;display:flex;align-items:center;justify-content:space-between;gap:16px}.admin-header h1{font-size:1.25rem;font-weight:700;color:#111827;margin:0}.admin-header .user-chip{display:flex;align-items:center;gap:10px}.admin-header button{padding:6px 14px;border-radius:8px;border:none;cursor:pointer;font-size:.875rem;font-weight:500}.admin-header .btn-back{background:#f3f4f6;color:#374151}.admin-header .btn-back:hover{background:#e5e7eb}.admin-header .btn-logout{background:#fee2e2;color:#dc2626}.admin-header .btn-logout:hover{background:#fecaca}.admin-subnav{background:#fff;border-bottom:1px solid #e5e7eb;display:flex;gap:0;padding:0 32px}.admin-subnav button{padding:14px 20px;border:none;background:transparent;color:#6b7280;font-size:.9rem;font-weight:500;cursor:pointer;border-bottom:2px solid transparent;transition:color .15s,border-color .15s}.admin-subnav button:hover{color:#111827}.admin-subnav button.active{color:#2563eb;border-bottom-color:#2563eb}.admin-content{max-width:1100px;margin:0 auto;padding:32px 24px}.admin-card{background:#fff;border-radius:16px;padding:24px;box-shadow:0 1px 4px #00000014;margin-bottom:24px}.admin-card h2{font-size:1.05rem;font-weight:600;color:#111827;margin:0 0 16px}.admin-table{width:100%;border-collapse:collapse;font-size:.875rem}.admin-table th{text-align:left;padding:8px 12px;color:#6b7280;font-weight:600;border-bottom:1px solid #e5e7eb}.admin-table td{padding:10px 12px;border-bottom:1px solid #f3f4f6;color:#374151;vertical-align:middle}.admin-table tr:last-child td{border-bottom:none}.admin-table tr:hover td{background:#f9fafb}.role-badge{display:inline-block;padding:2px 10px;border-radius:999px;font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.03em}.role-badge.super_admin{background:#ede9fe;color:#6d28d9}.role-badge.admin{background:#dbeafe;color:#1d4ed8}.role-badge.guest{background:#f3f4f6;color:#6b7280}.locality-chip{display:inline-block;background:#e0f2fe;color:#0369a1;padding:2px 8px;border-radius:999px;font-size:.75rem;margin:2px}.admin-form{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;margin-bottom:16px}.admin-form-group{display:flex;flex-direction:column;gap:4px}.admin-form-group label{font-size:.75rem;font-weight:600;color:#6b7280;text-transform:uppercase;letter-spacing:.05em}.admin-form input,.admin-form select,.admin-form textarea{padding:8px 10px;border:1px solid #d1d5db;border-radius:8px;font-size:.875rem;color:#111827;background:#fff;outline:none;transition:border-color .15s}.admin-form input:focus,.admin-form select:focus,.admin-form textarea:focus{border-color:#2563eb}.btn-primary{padding:8px 16px;background:#2563eb;color:#fff;border:none;border-radius:8px;font-size:.875rem;font-weight:500;cursor:pointer;transition:background .15s}.btn-primary:hover:not(:disabled){background:#1d4ed8}.btn-primary:disabled{opacity:.5;cursor:not-allowed}.btn-secondary{padding:8px 14px;background:#f3f4f6;color:#374151;border:none;border-radius:8px;font-size:.875rem;font-weight:500;cursor:pointer}.btn-secondary:hover{background:#e5e7eb}.btn-danger{padding:6px 12px;background:#fee2e2;color:#dc2626;border:none;border-radius:8px;font-size:.8rem;font-weight:500;cursor:pointer;transition:background .15s}.btn-danger:hover{background:#fecaca}.btn-icon{padding:4px 8px;background:#f3f4f6;border:none;border-radius:6px;cursor:pointer;font-size:.8rem;color:#374151;margin-left:4px}.btn-icon:hover{background:#e5e7eb}.row-actions{display:flex;gap:6px;justify-content:flex-end}.admin-msg{padding:10px 14px;border-radius:8px;font-size:.875rem;margin-bottom:12px}.admin-msg.error{background:#fee2e2;color:#dc2626}.admin-msg.success{background:#dcfce7;color:#16a34a}.admin-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000059;display:flex;align-items:center;justify-content:center;z-index:1000}.admin-modal{background:#fff;border-radius:16px;padding:28px 32px;min-width:360px;max-width:500px;width:100%;box-shadow:0 8px 32px #00000029}.admin-modal h3{margin:0 0 20px;font-size:1.05rem;font-weight:700;color:#111827}.admin-modal .admin-form{flex-direction:column;align-items:stretch}.admin-modal .admin-form input,.admin-modal .admin-form select,.admin-modal .admin-form textarea{width:100%;box-sizing:border-box}.admin-modal-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:20px}.locality-devices{margin-top:12px;padding-top:12px;border-top:1px solid #f3f4f6}.locality-devices h4{font-size:.8rem;font-weight:600;color:#6b7280;text-transform:uppercase;letter-spacing:.05em;margin:0 0 8px}.device-assign-row{display:flex;align-items:center;justify-content:space-between;padding:6px 10px;border-radius:8px;background:#f9fafb;margin-bottom:6px;font-size:.875rem}.device-assign-row .device-name{color:#111827;font-weight:500}.device-assign-row .device-id{color:#9ca3af;font-size:.75rem}.loc-picker-wrap{margin-top:16px}.loc-picker-hint{font-size:.8rem;color:#6b7280;margin:0 0 6px}.loc-picker-map{height:220px;width:100%;border-radius:10px;border:1px solid #e5e7eb;z-index:0}.loc-coords-display{display:flex;align-items:center;gap:10px;margin-top:8px;font-size:.85rem;color:#374151}.loc-coords-chip{font-size:.8rem;color:#1d4ed8;background:#dbeafe;padding:2px 8px;border-radius:999px}.btn-clear-coords{padding:3px 8px;background:#fee2e2;color:#dc2626;border:none;border-radius:6px;font-size:.75rem;cursor:pointer}.btn-clear-coords:hover{background:#fecaca}.loc-coord-row{display:flex;gap:12px}.loc-coord-row .admin-form-group{flex:1}.admin-modal.with-map{max-width:640px;max-height:90vh;overflow-y:auto}.checkbox-list{display:flex;flex-direction:column;gap:8px;max-height:200px;overflow-y:auto}.checkbox-list label{display:flex;align-items:center;gap:8px;font-size:.875rem;color:#374151;cursor:pointer}.checkbox-list input[type=checkbox]{width:16px;height:16px;accent-color:#2563eb}:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#0f172a;background-color:#f8fafc}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:linear-gradient(180deg,#f1f5f9,#e2e8f0)}a{color:inherit;text-decoration:none}button{font-family:inherit}.status-badge{display:inline-flex;align-items:center;justify-content:center;padding:4px 10px;border-radius:999px;font-weight:600;font-size:.8rem}.status-badge.online{background:#dcfce7;color:#15803d}.status-badge.offline{background:#fee2e2;color:#b91c1c}
