.app-header{background:#fff;border-bottom:1px solid #e0e0e0;padding:0 20px;box-shadow:0 2px 4px #0000000d}.header-content{display:flex;justify-content:space-between;align-items:center;max-width:1400px;margin:0 auto;height:64px}.header-left{display:flex;align-items:center;gap:32px}.header-logo{text-decoration:none;color:inherit}.header-logo h1{margin:0;font-size:24px;color:#333;font-weight:600}.header-nav{display:flex;gap:8px;align-items:center}.nav-link{padding:8px 16px;text-decoration:none;color:#666;font-size:14px;font-weight:500;border-radius:4px;transition:color .2s,background .2s;position:relative;display:inline-block}.nav-link:hover{color:#333;background:#f5f5f5}.nav-link.active{color:#667eea;background:#f0f4ff}.nav-badge{display:inline-block;background:#c62828;color:#fff;font-size:11px;font-weight:600;padding:2px 6px;border-radius:10px;margin-left:6px;min-width:18px;text-align:center;line-height:1.4}.header-right{display:flex;align-items:center}.user-menu{display:flex;align-items:center;gap:16px}.user-info{display:flex;flex-direction:column;align-items:flex-end;gap:4px}.tenant-name{font-weight:600;color:#333;font-size:14px}.user-role{color:#666;font-size:12px;text-transform:capitalize}.logout-button{padding:8px 16px;background:#667eea;color:#fff;border:none;border-radius:4px;font-size:14px;cursor:pointer;transition:background .2s}.logout-button:hover{background:#5568d3}.login-container{display:flex;justify-content:center;align-items:center;min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2);padding:20px}.login-box{background:#fff;padding:40px;border-radius:8px;box-shadow:0 4px 6px #0000001a;width:100%;max-width:400px}.login-box h1{margin:0 0 10px;color:#333;font-size:28px;text-align:center}.login-box h2{margin:0 0 30px;color:#666;font-size:20px;font-weight:400;text-align:center}.form-group label{display:block;margin-bottom:8px;color:#333;font-weight:500}.form-group input{width:100%;padding:12px;border:1px solid #ddd;border-radius:4px;font-size:16px;transition:border-color .2s}.form-group input:focus{outline:none;border-color:#667eea}.session-expired-message{background-color:#e8f4fd;color:#0d47a1;padding:12px;border-radius:4px;margin-bottom:20px;border:1px solid #90caf9}.error-message{background-color:#fee;color:#c33;padding:12px;border-radius:4px;margin-bottom:20px;border:1px solid #fcc}.login-button{width:100%;padding:12px;background:#667eea;color:#fff;border:none;border-radius:4px;font-size:16px;font-weight:500;cursor:pointer;transition:background .2s}.login-button:hover:not(:disabled){background:#5568d3}.login-button:disabled{background:#ccc;cursor:not-allowed}.login-hint{margin-top:20px;padding:15px;background:#f5f5f5;border-radius:4px;text-align:center;font-size:14px;color:#666}.login-hint p{margin:5px 0}.loading-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;min-height:300px}.loading-spinner{width:40px;height:40px;border:4px solid #f0f0f0;border-top-color:#667eea;border-radius:50%;animation:spin 1s linear infinite}.loading-message{margin-top:16px;color:#666;font-size:14px}.error-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;min-height:300px;text-align:center}.error-state-icon{font-size:64px;margin-bottom:16px}.error-state-title{margin:0 0 8px;font-size:20px;font-weight:600;color:#333}.error-state-message{margin:0 0 24px;color:#666;font-size:14px;max-width:500px}.error-state-retry-button{padding:10px 20px;background:#667eea;color:#fff;border:none;border-radius:4px;font-size:14px;font-weight:500;cursor:pointer;transition:background .2s}.error-state-retry-button:hover{background:#5568d3}.error-state-retry-button:active{background:#4457b8}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;min-height:300px;text-align:center}.empty-state-icon{font-size:64px;margin-bottom:16px;opacity:.5}.empty-state-title{margin:0 0 8px;font-size:20px;font-weight:600;color:#333}.empty-state-message{margin:0 0 24px;color:#666;font-size:14px;max-width:400px}.empty-state-action{margin-top:8px}.dashboard{padding:20px;max-width:1400px;margin:0 auto}.dashboard h2{margin-bottom:24px;color:#333}.dashboard-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px;margin-bottom:40px}.dashboard-card{background:#fff;padding:24px;border-radius:8px;box-shadow:0 2px 4px #0000001a;position:relative}.dashboard-card.clickable-card{cursor:pointer;transition:transform .2s,box-shadow .2s}.dashboard-card.clickable-card:hover{transform:translateY(-2px);box-shadow:0 4px 8px #00000026}.dashboard-card.clickable-card:focus{outline:2px solid #667eea;outline-offset:2px}.dashboard-card h3{margin:0 0 12px;color:#666;font-size:14px;font-weight:500;text-transform:uppercase}.stat-value{font-size:36px;font-weight:600;color:#333;margin-bottom:8px}.stat-label{color:#666;font-size:14px}.card-action{margin-top:12px;color:#667eea;font-size:14px;font-weight:500;text-align:right}.sites-with-issues{background:#fff;padding:24px;border-radius:8px;box-shadow:0 2px 4px #0000001a}.sites-with-issues h3{margin:0;color:#333}.view-all-button{padding:8px 16px;background:#667eea;color:#fff;border:none;border-radius:4px;font-size:14px;font-weight:500;cursor:pointer;transition:background .2s}.view-all-button:hover{background:#5568d3}.sites-with-issues ul{list-style:none;padding:0;margin:0}.sites-with-issues li{padding:12px;border-bottom:1px solid #f0f0f0}.sites-with-issues li:last-child{border-bottom:none}.site-issue-item{cursor:pointer;transition:background .2s;border-radius:4px}.site-issue-item:hover{background:#f5f5f5}.site-issue-item:focus{outline:2px solid #667eea;outline-offset:-2px}.critical-badge{color:#c33;font-weight:600}.gateway-health-page{padding:20px;max-width:1400px;margin:0 auto}.gateway-health-header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:24px}.gateway-health-header h2{margin:0;color:#333}.gateway-health-updated{margin:0;color:#666}.gateway-health-cards{margin-bottom:32px}.gateway-health-table-wrap{background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a;overflow-x:auto;margin-bottom:16px}.gateway-health-table{width:100%;border-collapse:collapse}.gateway-health-table th,.gateway-health-table td{padding:12px 16px;text-align:left;border-bottom:1px solid #eee}.gateway-health-table th{font-size:12px;font-weight:600;text-transform:uppercase;color:#666;background:#fafafa}.gateway-health-table tbody tr:hover{background:#f9f9f9}.gateway-health-identity{font-family:ui-monospace,monospace;font-size:.9rem}.gateway-health-status{display:inline-block;padding:4px 10px;border-radius:4px;font-size:12px;font-weight:500}.gateway-health-status.reporting{background:#e8f5e9;color:#2e7d32}.gateway-health-status.silent{background:#fff3e0;color:#e65100}.gateway-health-empty{color:#666;text-align:center;padding:24px!important}.gateway-health-inline-error{color:#c33;margin:8px 0 0;font-size:14px}.gateway-health-inline-error .btn-link{margin-left:4px}.telemetry-dashboard-page{padding:20px;max-width:1200px;margin:0 auto}.telemetry-dashboard-page h2{margin:0 0 8px;color:#333}.telemetry-dashboard-subtitle{color:#666;margin:0 0 24px;font-size:.9rem}.telemetry-dashboard-controls{display:flex;flex-wrap:wrap;gap:20px;align-items:flex-end;padding:20px;background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a;margin-bottom:24px}.telemetry-dashboard-controls .control-group{display:flex;flex-direction:column;gap:6px}.telemetry-dashboard-controls .control-group label{font-size:12px;font-weight:500;color:#666;text-transform:uppercase}.control-input,.control-select{padding:8px 12px;border:1px solid #ddd;border-radius:4px;font-size:14px;min-width:160px}.control-input:focus,.control-select:focus{outline:none;border-color:#667eea}.telemetry-dashboard-metrics-loading{font-size:13px;color:#666}.telemetry-dashboard-metrics-error-wrap{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.telemetry-dashboard-metrics-error{font-size:13px;color:#c00}.telemetry-dashboard-metrics-retry{padding:6px 12px;font-size:13px;background:#f0f0f0;border:1px solid #ccc;border-radius:4px;cursor:pointer}.telemetry-dashboard-metrics-retry:hover{background:#e5e5e5}.telemetry-dashboard-metrics-empty{display:flex;flex-direction:column;gap:8px}.telemetry-dashboard-metrics-empty-text{margin:0;font-size:13px;color:#666}.telemetry-dashboard-custom-key{margin-top:4px}.preset-buttons{display:flex;flex-wrap:wrap;gap:8px}.preset-btn{padding:8px 14px;border:1px solid #ddd;border-radius:4px;background:#fafafa;font-size:13px;cursor:pointer;transition:background .2s,border-color .2s}.preset-btn:hover{background:#f0f0f0;border-color:#ccc}.preset-btn.active{background:#667eea;border-color:#667eea;color:#fff}.control-actions{margin-left:auto}.telemetry-dashboard-meta{margin-bottom:16px;font-size:13px;color:#666}.telemetry-dashboard-cards{margin-bottom:32px}.telemetry-dashboard-section{background:#fff;padding:20px;border-radius:8px;box-shadow:0 2px 4px #0000001a;margin-bottom:24px}.telemetry-dashboard-section h3{margin:0 0 12px;font-size:1rem;color:#333}.telemetry-dashboard-table-wrap{overflow-x:auto}.telemetry-dashboard-table{width:100%;border-collapse:collapse}.telemetry-dashboard-table th,.telemetry-dashboard-table td{padding:10px 14px;text-align:left;border-bottom:1px solid #eee}.telemetry-dashboard-table th{font-size:12px;font-weight:600;text-transform:uppercase;color:#666;background:#fafafa}.telemetry-dashboard-table tbody tr:hover{background:#f9f9f9}.badge{padding:4px 8px;border-radius:4px;font-size:11px;font-weight:500;text-transform:capitalize;display:inline-block}.badge-severity-critical{background:#ffebee;color:#c62828}.badge-severity-warning{background:#fff3e0;color:#ef6c00}.badge-severity-info{background:#e3f2fd;color:#1976d2}.badge-status-open{background:#fff3e0;color:#ef6c00}.badge-status-acknowledged{background:#e3f2fd;color:#1976d2}.badge-status-resolved{background:#e8f5e9;color:#2e7d32}.badge-status-closed{background:#f5f5f5;color:#666}.badge-device-status-online{background:#e8f5e9;color:#2e7d32}.badge-device-status-offline{background:#ffebee;color:#c62828}.badge-device-status-maintenance{background:#fff3e0;color:#ef6c00}.confirm-dialog-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;justify-content:center;align-items:center;z-index:2000}.confirm-dialog{background:#fff;border-radius:8px;box-shadow:0 4px 6px #0000001a;width:90%;max-width:500px;display:flex;flex-direction:column}.confirm-dialog-header{padding:1.5rem;border-bottom:1px solid #dee2e6}.confirm-dialog-header h3{margin:0;font-size:1.25rem;color:#333}.confirm-dialog-body{padding:1.5rem}.confirm-dialog-body p{margin:0;color:#666;line-height:1.5}.confirm-dialog-actions{padding:1rem 1.5rem;border-top:1px solid #dee2e6;display:flex;justify-content:flex-end;gap:.75rem}.confirm-dialog-button{padding:.5rem 1rem;border:1px solid #ced4da;border-radius:4px;font-size:.875rem;cursor:pointer;transition:background-color .2s}.confirm-dialog-button-primary{background-color:#007bff;color:#fff;border-color:#007bff}.confirm-dialog-button-primary:hover:not(:disabled){background-color:#0056b3}.confirm-dialog-button-primary:disabled{opacity:.6;cursor:not-allowed}.confirm-dialog-button-danger{background-color:#c62828;border-color:#c62828}.confirm-dialog-button-danger:hover:not(:disabled){background-color:#b71c1c}.confirm-dialog-button-secondary:disabled{opacity:.6;cursor:not-allowed}.confirm-dialog-button-secondary{background-color:#fff;color:#333}.confirm-dialog-button-secondary:hover{background-color:#f8f9fa}.map-container{background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a;overflow:hidden;display:flex;flex-direction:column;min-height:600px}.map-container-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:600px;color:#666;gap:16px}.map-loading-spinner{width:40px;height:40px;border:4px solid #f0f0f0;border-top-color:#667eea;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.map-viewport{position:relative;width:100%;min-height:500px;background:linear-gradient(135deg,#f5f7fa,#c3cfe2);border-radius:8px;margin:16px;overflow:hidden}.map-pin{position:absolute;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:4px;transition:transform .2s;z-index:10}.map-pin:hover{transform:scale(1.1);z-index:20}.pin-marker{width:32px;height:32px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px #0000004d;border:2px solid white}.pin-marker:after{content:"";transform:rotate(45deg);font-size:16px}.pin-label{background:#fffffff2;padding:4px 8px;border-radius:4px;font-size:12px;font-weight:500;color:#333;white-space:nowrap;box-shadow:0 2px 4px #0003;pointer-events:none}.map-container-placeholder{display:flex;flex-direction:column;gap:24px}.map-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;background:linear-gradient(135deg,#f5f7fa,#c3cfe2);border-radius:8px;padding:40px;text-align:center}.map-placeholder-icon{font-size:64px;margin-bottom:16px;opacity:.5}.map-placeholder-message{color:#666;font-size:16px;max-width:400px}.map-sites-list{padding:20px;background:#f9f9f9;border-radius:8px}.map-sites-list h4{margin:0 0 16px;font-size:16px;color:#333}.map-sites-list-items{display:flex;flex-direction:column;gap:8px;max-height:400px;overflow-y:auto}.map-site-item{display:flex;align-items:center;gap:12px;padding:12px;background:#fff;border-radius:6px;cursor:pointer;transition:background .2s,transform .2s;border:1px solid #e0e0e0}.map-site-item:hover{background:#f5f5f5;transform:translate(4px)}.map-site-status-chip{padding:4px 8px;border-radius:12px;font-size:11px;font-weight:500;color:#fff;min-width:70px;text-align:center;flex-shrink:0}.map-site-name{flex:1;font-weight:500;color:#333}.map-site-issues{font-size:12px;color:#c33;font-weight:500}.map-site-lastseen{font-size:12px;color:#999}.map-legend{padding:16px 20px;background:#f9f9f9;border-top:1px solid #e0e0e0}.map-legend h4{margin:0 0 12px;font-size:14px;font-weight:600;color:#333}.legend-items{display:flex;gap:16px;flex-wrap:wrap}.legend-item{display:flex;align-items:center;gap:8px;font-size:12px;color:#666}.legend-color{width:16px;height:16px;border-radius:4px;flex-shrink:0}.sites-page{padding:20px;max-width:1400px;margin:0 auto}.sites-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.sites-header-left,.sites-header-right{display:flex;align-items:center;gap:16px}.sites-header h2{margin:0;color:#333}.sites-count{color:#666;font-size:14px}.create-site-button{padding:10px 20px;background:#667eea;color:#fff;border:none;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:background .2s,transform .1s}.create-site-button:hover{background:#5568d3;transform:translateY(-1px)}.create-site-button:active{transform:translateY(0)}.sites-mode-toggle{display:flex;gap:4px;background:#f5f5f5;padding:4px;border-radius:8px}.mode-toggle-button{padding:8px 16px;background:transparent;border:none;border-radius:6px;font-size:14px;font-weight:500;color:#666;cursor:pointer;transition:all .2s}.mode-toggle-button:hover{color:#333;background:#0000000d}.mode-toggle-button.active{background:#fff;color:#667eea;box-shadow:0 1px 3px #0000001a}.sites-filters{display:flex;gap:16px;margin-bottom:24px;flex-wrap:wrap;padding:16px;background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a}.filter-group{display:flex;flex-direction:column;gap:4px;flex:1;min-width:200px}.sites-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px}.site-card{background:#fff;padding:20px;border-radius:8px;box-shadow:0 2px 4px #0000001a;cursor:pointer;transition:transform .2s,box-shadow .2s,border-color .2s;border:2px solid transparent}.site-card:hover{transform:translateY(-2px);box-shadow:0 4px 8px #00000026}.site-card:focus{outline:none;border-color:#667eea}.site-card-with-issues{border-left:4px solid #c33}.site-card-with-issues:hover{border-left-color:#a00}.site-card-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:16px;gap:8px}.site-header-right{display:flex;align-items:center;gap:8px;flex-shrink:0}.site-name{margin:0;font-size:18px;font-weight:600;color:#333;flex:1}.site-status{padding:4px 12px;border-radius:12px;font-size:12px;font-weight:500;text-transform:capitalize}.site-card-body{display:flex;flex-direction:column;gap:8px}.site-info-row{display:flex;justify-content:space-between;font-size:14px}.site-info-label{color:#666}.site-info-value{color:#333;font-weight:500}.site-issues{color:#c33;font-weight:600}.site-issue-badge{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 8px;background:#ffebee;color:#c62828;border-radius:12px;font-size:12px;font-weight:600;border:1px solid #c62828}.sites-pagination{display:flex;justify-content:center;align-items:center;gap:16px;padding:16px;margin-top:24px}.site-actions{display:flex;gap:4px}.site-action-button{background:none;border:none;cursor:pointer;font-size:16px;padding:4px 8px;border-radius:4px;transition:background .2s}.site-action-button:hover{background:#0000000d}.site-action-button.delete:hover{background:#c428281a}.toast{position:fixed;top:20px;right:20px;z-index:3000;min-width:300px;max-width:500px;padding:12px 16px;border-radius:4px;box-shadow:0 4px 12px #00000026;animation:slideIn .3s ease-out}.toast-success{background:#e8f5e9;color:#2e7d32;border-left:4px solid #2e7d32}.toast-error{background:#ffebee;color:#c62828;border-left:4px solid #c62828}.toast-info{background:#e3f2fd;color:#1976d2;border-left:4px solid #1976d2}.toast-content{display:flex;justify-content:space-between;align-items:center;gap:12px}.toast-message{font-size:14px;font-weight:500;flex:1}.toast-close{background:none;border:none;color:inherit;font-size:20px;cursor:pointer;padding:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:background .2s;opacity:.7}.toast-close:hover{opacity:1;background:#0000001a}@keyframes slideIn{0%{opacity:0;transform:translate(100%)}to{opacity:1;transform:translate(0)}}.site-detail-page{padding:20px;max-width:1400px;margin:0 auto}.site-detail-header{margin-bottom:24px;display:flex;flex-direction:column;gap:12px}.site-detail-header-right{display:flex;justify-content:space-between;align-items:center;gap:16px}.site-wizard-actions{display:flex;justify-content:flex-end}.wizard-button{padding:8px 12px;border-radius:6px;border:1px solid #ccc;background:#fff;cursor:pointer}.wizard-button:hover{background:#f5f5f5}.site-detail-header h2{margin:0;color:#333}.view-alerts-button{padding:10px 20px;background:#667eea;color:#fff;border:none;border-radius:4px;font-size:14px;font-weight:500;cursor:pointer;transition:background .2s;white-space:nowrap}.view-alerts-button:hover{background:#5568d3}.site-detail-content{display:flex;flex-direction:column;gap:24px}.site-detail-section{background:#fff;padding:24px;border-radius:8px;box-shadow:0 2px 4px #0000001a}.site-detail-section h3{margin:0 0 16px;color:#333;font-size:18px}.site-detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px}.site-status{padding:4px 12px;border-radius:12px;font-size:12px;font-weight:500;text-transform:capitalize;display:inline-block}.site-status-active{background:#e8f5e9;color:#2e7d32}.site-status-inactive{background:#ffebee;color:#c62828}.site-status-maintenance{background:#fff3e0;color:#ef6c00}.blocks-section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;gap:16px;flex-wrap:wrap}.blocks-section-header h3{margin:0}.blocks-filters{display:flex;gap:12px;align-items:center}.block-search-input,.block-status-filter{padding:8px 12px;border:1px solid #ddd;border-radius:4px;font-size:14px;transition:border-color .2s}.block-search-input{min-width:200px}.block-status-filter{min-width:120px}.block-search-input:focus,.block-status-filter:focus{outline:none;border-color:#667eea}.blocks-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}.block-card{background:#f9f9f9;padding:16px;border-radius:6px;cursor:pointer;transition:background .2s,transform .2s;border:1px solid #e0e0e0}.block-card:hover{background:#f0f0f0;transform:translateY(-1px)}.block-card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.block-name{font-weight:500;color:#333;font-size:16px}.block-status{padding:2px 8px;border-radius:10px;font-size:11px;font-weight:500;text-transform:capitalize}.block-card-body{display:flex;flex-direction:column;gap:8px;font-size:13px;color:#666}.block-readings{display:flex;gap:16px;margin-bottom:4px;flex-wrap:wrap}.block-reading{font-size:13px;color:#333}.block-reading strong{color:#667eea;font-weight:600}.block-info{font-size:12px;color:#666}.block-alerts{color:#c33;font-weight:500;font-size:12px}.block-lastseen{font-size:11px;color:#999}.blocks-empty{padding:40px;text-align:center;color:#999;font-size:14px}.site-tabs{display:flex;gap:4px;border-bottom:2px solid #e0e0e0;margin-bottom:24px}.site-tab{padding:12px 24px;background:none;border:none;border-bottom:2px solid transparent;cursor:pointer;font-size:14px;font-weight:500;color:#666;transition:color .2s,border-color .2s;margin-bottom:-2px}.site-tab:hover{color:#333}.site-tab.active{color:#667eea;border-bottom-color:#667eea}.site-tab-content{min-height:400px}.recent-alerts-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.recent-alerts-header h3{margin:0}.view-all-alerts-button{background:none;border:none;color:#667eea;cursor:pointer;font-size:14px;padding:0;text-decoration:underline;transition:color .2s}.view-all-alerts-button:hover{color:#5568d3}.recent-alerts-section h3{margin:0 0 16px;color:#333;font-size:18px}.areas-section{background:#fff;padding:24px;border-radius:8px;box-shadow:0 2px 4px #0000001a}.areas-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}.area-card{background:#f9f9f9;padding:16px;border-radius:6px;cursor:pointer;transition:background .2s,transform .2s;border:1px solid #e0e0e0}.area-card:hover{background:#f0f0f0;transform:translateY(-1px)}.area-card-header{margin-bottom:8px}.area-name{font-weight:500;color:#333;font-size:16px}.area-description{font-size:13px;color:#666;margin-bottom:8px}.area-stats{display:flex;gap:16px;font-size:12px;color:#999}.site-description{color:#666;margin:8px 0 0}.site-location{color:#999;font-size:14px;margin:4px 0 0}.onboarding-page{padding:20px;max-width:1400px;margin:0 auto}.onboarding-header{margin-bottom:20px}.onboarding-title-row{display:flex;align-items:center;gap:12px}.status-pill{display:inline-block;padding:4px 10px;border-radius:999px;font-size:12px;border:1px solid #ccc}.status-notstarted{background:#fff}.status-inprogress{background:#fffbe6}.status-complete{background:#e9fbe9}.onboarding-subtitle{margin-top:6px;color:#555}.onboarding-actions{display:flex;gap:10px;margin-top:12px}.onboarding-actions button{padding:8px 12px;border-radius:6px;border:1px solid #ccc;background:#fff;cursor:pointer}.onboarding-actions button.primary{border-color:#667eea}.onboarding-actions button.secondary{background:#fff}.onboarding-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.card{border:1px solid #e5e7eb;border-radius:10px;padding:16px;background:#fff}.muted{color:#666;font-size:13px}.check-list{margin-top:12px;display:flex;flex-direction:column;gap:10px}.check-row{display:flex;align-items:center;justify-content:space-between;border:1px solid #eee;border-radius:8px;padding:10px}.check-left{display:flex;gap:10px;align-items:flex-start}.check-dot{width:10px;height:10px;border-radius:999px;margin-top:4px;background:#999}.check-row.ready .check-dot{background:#2e7d32}.check-row.warn .check-dot{background:#ed6c02}.check-row.error .check-dot{background:#d32f2f}.check-title{font-weight:600}.check-details{color:#555;font-size:13px}button.link{border:none;background:none;color:#667eea;cursor:pointer}.notes{width:100%;min-height:140px;resize:vertical;padding:10px;border-radius:8px;border:1px solid #ddd}.field{margin-top:12px}.field label{display:block;font-size:12px;color:#444;margin-bottom:6px}.field input{width:100%;padding:10px;border-radius:8px;border:1px solid #ddd}@media (max-width: 980px){.onboarding-grid{grid-template-columns:1fr}}.audit-tab{margin-top:12px}.audit-list{display:flex;flex-direction:column;gap:10px}.audit-row{border:1px solid rgba(255,255,255,.12);border-radius:10px;padding:10px}.audit-row-header{display:flex;align-items:center;justify-content:space-between;gap:10px}.audit-row-meta{display:flex;gap:10px;flex-wrap:wrap;font-size:12px;opacity:.9}.audit-row-actions{display:flex;gap:8px}.audit-json-panels{margin-top:10px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.audit-json-panel{border:1px solid rgba(255,255,255,.1);border-radius:10px;padding:10px;overflow:auto;max-height:420px}.audit-json-title{font-size:12px;opacity:.9;margin-bottom:8px}.audit-json{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:12px;white-space:pre-wrap;word-break:break-word}.audit-pager{margin-top:12px;display:flex;justify-content:space-between;align-items:center;gap:10px}.readiness-score-row{display:flex;align-items:baseline;gap:6px;margin-bottom:4px}.readiness-score-value{font-size:1.5rem;font-weight:600}.readiness-passed{font-size:.9rem;opacity:.9}.readiness-pass{color:#4caf50}.readiness-fail{color:#f44336}.audit-row.readiness-fail{border-color:#f4433666}.block-detail-page{padding:20px;max-width:1400px;margin:0 auto}.block-detail-header{margin-bottom:24px;display:flex;flex-direction:column;gap:12px}.block-detail-header-right{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.block-detail-header h2{margin:0;color:#333}.block-header-links{display:flex;gap:12px;margin:8px 0;flex-wrap:wrap}.block-status{padding:4px 12px;border-radius:12px;font-size:12px;font-weight:500;text-transform:capitalize;display:inline-block;margin-top:8px}.block-status-maintenance{background:#fff3e0;color:#ef6c00}.block-tabs{display:flex;gap:4px;border-bottom:2px solid #e0e0e0;margin-bottom:24px}.block-tab{padding:12px 24px;background:none;border:none;border-bottom:2px solid transparent;cursor:pointer;font-size:14px;font-weight:500;color:#666;transition:color .2s,border-color .2s;margin-bottom:-2px}.block-tab:hover{color:#333}.block-tab.active{color:#667eea;border-bottom-color:#667eea}.block-tab-content{min-height:400px}.overview-section{display:flex;flex-direction:column;gap:24px}.overview-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}.overview-card{background:#fff;padding:20px;border-radius:8px;box-shadow:0 2px 4px #0000001a}.overview-card-label{font-size:12px;color:#666;text-transform:uppercase;font-weight:500;margin-bottom:8px}.overview-card-value{font-size:32px;font-weight:600;color:#333}.overview-card-value.critical{color:#c62828}.recent-alerts-section{background:#fff;padding:24px;border-radius:8px;box-shadow:0 2px 4px #0000001a}.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.section-header h3{margin:0;color:#333;font-size:18px}.recent-alerts-list{display:flex;flex-direction:column;gap:12px}.recent-alert-item{padding:12px;background:#f9f9f9;border-radius:6px;border-left:3px solid #ddd}.recent-alert-header{display:flex;gap:8px;margin-bottom:8px}.recent-alert-title{font-weight:500;color:#333;margin-bottom:4px}.recent-alert-time{font-size:12px;color:#999}.quick-links-section{display:flex;gap:12px;padding:16px;background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a}.quick-link-button{padding:10px 20px;background:#667eea;color:#fff;border:none;border-radius:4px;font-size:14px;font-weight:500;cursor:pointer;transition:background .2s}.quick-link-button:hover{background:#5568d3}.alert-location{font-size:12px;color:#999}.devices-section{background:#fff;padding:24px;border-radius:8px;box-shadow:0 2px 4px #0000001a}.devices-table{overflow-x:auto;margin-bottom:16px}.device-link{background:none;border:none;color:#667eea;cursor:pointer;font-size:14px;font-weight:500;text-decoration:underline;padding:0;transition:color .2s}.device-link:hover{color:#5568d3}.config-button{padding:6px 12px;background:#667eea;color:#fff;border:none;border-radius:4px;font-size:12px;font-weight:500;cursor:pointer;transition:background .2s}.config-button:hover{background:#5568d3}.block-actions{display:flex;gap:8px}.block-action-button{padding:8px 16px;border:none;border-radius:4px;font-size:14px;font-weight:500;cursor:pointer;transition:background .2s}.block-action-button.edit{background:#667eea;color:#fff}.block-action-button.edit:hover{background:#5568d3}.block-action-button.delete{background:#c62828;color:#fff}.block-action-button.delete:hover{background:#b71c1c}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.area-detail-page{padding:20px;max-width:1400px;margin:0 auto}.area-detail-header{margin-bottom:24px;display:flex;flex-direction:column;gap:12px}.area-detail-header h2{margin:0;color:#333}.area-description{color:#666;margin:8px 0 0}.area-detail-content{display:flex;flex-direction:column;gap:24px}.area-detail-section{background:#fff;padding:24px;border-radius:8px;box-shadow:0 2px 4px #0000001a}.area-detail-section h3{margin:0 0 16px;color:#333;font-size:18px}.area-detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px}.stub-message{color:#999;font-style:italic;padding:20px;text-align:center}.area-detail-header-right{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.area-actions{display:flex;gap:8px}.area-action-button{padding:8px 16px;border:none;border-radius:4px;font-size:14px;font-weight:500;cursor:pointer;transition:background .2s}.area-action-button.edit{background:#667eea;color:#fff}.area-action-button.edit:hover{background:#5568d3}.area-action-button.delete{background:#c62828;color:#fff}.area-action-button.delete:hover{background:#b71c1c}.blocks-list{display:flex;flex-direction:column;gap:12px}.block-item{padding:16px;border:1px solid #e0e0e0;border-radius:4px;cursor:pointer;transition:background .2s,border-color .2s}.block-item:hover{background:#f9f9f9;border-color:#667eea}.block-item-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.block-item-name{margin:0;font-size:16px;font-weight:500;color:#333}.block-status{padding:4px 8px;border-radius:4px;font-size:11px;font-weight:500;text-transform:capitalize}.block-status-active{background:#e8f5e9;color:#2e7d32}.block-status-inactive{background:#ffebee;color:#c62828}.block-item-info{display:flex;gap:8px;font-size:14px;color:#666}.block-info-label{font-weight:500}.device-detail-page{padding:20px;max-width:1400px;margin:0 auto}.device-detail-header{margin-bottom:24px;display:flex;flex-direction:column;gap:12px}.back-button{background:none;border:none;color:#667eea;cursor:pointer;font-size:14px;padding:8px 0;transition:color .2s;align-self:flex-start}.back-button:hover{color:#5568d3;text-decoration:underline}.device-detail-header h2{margin:0;color:#333}.device-header-info{display:flex;gap:12px;margin-top:8px;align-items:center;flex-wrap:wrap}.device-type{padding:4px 12px;background:#e3f2fd;color:#1976d2;border-radius:12px;font-size:12px;font-weight:500}.device-status{padding:4px 12px;border-radius:12px;font-size:12px;font-weight:500;text-transform:capitalize}.device-serial{font-size:12px;color:#666;font-style:italic}.device-header-links{display:flex;gap:12px;margin-top:8px;flex-wrap:wrap}.device-tabs{display:flex;gap:4px;border-bottom:2px solid #e0e0e0;margin-bottom:24px}.device-tab{padding:12px 24px;background:none;border:none;border-bottom:2px solid transparent;cursor:pointer;font-size:14px;font-weight:500;color:#666;transition:color .2s,border-color .2s;margin-bottom:-2px}.device-tab:hover{color:#333}.device-tab.active{color:#667eea;border-bottom-color:#667eea}.device-tab-content{min-height:400px}.overview-section{background:#fff;padding:24px;border-radius:8px;box-shadow:0 2px 4px #0000001a}.device-detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px}.detail-item{display:flex;flex-direction:column;gap:4px}.detail-label{font-size:12px;color:#666;text-transform:uppercase;font-weight:500}.detail-value{font-size:14px;color:#333}.telemetry-section{background:#fff;padding:24px;border-radius:8px;box-shadow:0 2px 4px #0000001a}.telemetry-controls{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:24px;flex-wrap:wrap;padding:16px;background:#f9f9f9;border-radius:6px}.telemetry-controls-header{display:flex;gap:16px;flex-wrap:wrap;flex:1}.open-telemetry-viewer-button{padding:8px 16px;background:#667eea;color:#fff;border:none;border-radius:4px;font-size:14px;font-weight:500;cursor:pointer;transition:background .2s;white-space:nowrap}.open-telemetry-viewer-button:hover{background:#5568d3}.telemetry-table{overflow-x:auto}.alerts-section{background:#fff;padding:24px;border-radius:8px;box-shadow:0 2px 4px #0000001a}.alerts-filters{display:flex;gap:16px;margin-bottom:24px;flex-wrap:wrap;padding:16px;background:#f9f9f9;border-radius:6px}.alerts-table{overflow-x:auto;margin-bottom:16px}.alerts-table td{padding:12px;border-bottom:1px solid #e0e0e0;font-size:14px}.alert-severity{padding:4px 8px;border-radius:4px;font-size:11px;font-weight:600;text-transform:uppercase}.alert-severity-critical{background:#ffebee;color:#c62828}.alert-severity-warning{background:#fff3e0;color:#ef6c00}.alert-severity-info{background:#e3f2fd;color:#1976d2}.alert-status{padding:4px 8px;border-radius:4px;font-size:11px;font-weight:500;background:#f5f5f5;color:#666}.alert-actions{display:flex;gap:8px}.alert-action-btn{padding:6px 12px;border:none;border-radius:4px;font-size:12px;font-weight:500;cursor:pointer;transition:background .2s}.alert-action-btn.ack{background:#e3f2fd;color:#1976d2}.alert-action-btn.ack:hover{background:#bbdefb}.alert-action-btn.resolve{background:#e8f5e9;color:#2e7d32}.alert-action-btn.resolve:hover{background:#c8e6c9}.alert-action-btn.close{background:#f3e5f5;color:#7b1fa2}.alert-action-btn.close:hover{background:#e1bee7}.alerts-pagination{display:flex;justify-content:center;align-items:center;gap:16px;padding:16px;margin-top:16px}.config-section{background:#fff;padding:24px;border-radius:8px;box-shadow:0 2px 4px #0000001a}.config-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:16px;gap:16px;flex-wrap:wrap}.config-header h3{margin:0;color:#333;font-size:18px}.config-timestamp{font-size:12px;color:#999;margin-top:4px}.config-actions{display:flex;gap:8px}.config-button{padding:8px 16px;border:none;border-radius:4px;font-size:14px;font-weight:500;cursor:pointer;transition:background .2s}.config-button.save{background:#667eea;color:#fff}.config-button.save:hover:not(:disabled){background:#5568d3}.config-button.save:disabled{opacity:.5;cursor:not-allowed}.config-button.reset{background:#f5f5f5;color:#666;border:1px solid #ddd}.config-button.reset:hover:not(:disabled){background:#e0e0e0}.config-button.reset:disabled{opacity:.5;cursor:not-allowed}.config-success-message{padding:12px 16px;margin-bottom:16px;background:#e8f5e9;color:#2e7d32;border-radius:4px;border-left:4px solid #2e7d32;font-size:14px;font-weight:500;animation:slideIn .3s ease-out}.config-error-message{padding:12px 16px;margin-bottom:16px;background:#ffebee;color:#c62828;border-radius:4px;border-left:4px solid #c62828;font-size:14px;font-weight:500}.config-editor-wrapper{margin-bottom:16px}.config-editor{width:100%;min-height:400px;padding:16px;border:1px solid #ddd;border-radius:4px;font-family:Courier New,monospace;font-size:14px;line-height:1.5;resize:vertical;transition:border-color .2s}.config-editor:focus{outline:none;border-color:#667eea}.config-editor.error{border-color:#c62828;background:#fff5f5}.config-editor:read-only{background:#f5f5f5;cursor:not-allowed}.config-readonly-notice{padding:12px 16px;background:#fff3e0;color:#ef6c00;border-radius:4px;border-left:4px solid #ef6c00;font-size:14px}.device-detail-header-right{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.device-actions{display:flex;gap:8px}.device-action-button{padding:8px 16px;border:none;border-radius:4px;font-size:14px;font-weight:500;cursor:pointer;transition:background .2s}.device-action-button.delete{background:#c62828;color:#fff}.device-action-button.delete:hover{background:#b71c1c}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.modal{background:#fff;border-radius:8px;width:90%;max-width:600px;max-height:90vh;overflow-y:auto;box-shadow:0 4px 20px #0000004d}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid #e0e0e0}.modal-header h2{margin:0;font-size:20px;font-weight:600;color:#333}.modal-close{background:none;border:none;font-size:24px;color:#666;cursor:pointer;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:background .2s}.modal-close:hover{background:#f5f5f5}.modal-content{padding:24px}.form-group{margin-bottom:20px}.form-group label{display:block;margin-bottom:8px;font-size:14px;font-weight:500;color:#333}.form-group input,.form-group select,.form-group textarea{width:100%;padding:10px 12px;border:1px solid #ddd;border-radius:4px;font-size:14px;transition:border-color .2s;box-sizing:border-box;font-family:inherit}.form-group textarea{resize:vertical}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:#667eea}.form-group input:disabled,.form-group select:disabled,.form-group textarea:disabled{background:#f5f5f5;cursor:not-allowed}.form-error{padding:12px 16px;background:#ffebee;color:#c62828;border-radius:4px;margin-bottom:20px;font-size:14px;border-left:4px solid #c62828}.form-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}.form-button{padding:10px 20px;border:none;border-radius:4px;font-size:14px;font-weight:500;cursor:pointer;transition:background .2s}.form-button:disabled{opacity:.6;cursor:not-allowed}.form-button-cancel{background:#fff;color:#333;border:1px solid #ddd}.form-button-cancel:hover:not(:disabled){background:#f5f5f5}.form-button-submit{background:#667eea;color:#fff}.form-button-submit:hover:not(:disabled){background:#5568d3}.devices-page{padding:20px;max-width:1400px;margin:0 auto}.devices-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.devices-header-left{display:flex;align-items:center;gap:16px}.devices-header h2{margin:0;color:#333}.devices-count{color:#666;font-size:14px}.devices-filters{display:flex;gap:16px;margin-bottom:24px;flex-wrap:wrap;padding:16px;background:#f9f9f9;border-radius:6px}.filter-input:disabled,.filter-select:disabled{background:#f5f5f5;cursor:not-allowed;opacity:.6}.devices-table{background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a;overflow-x:auto;margin-bottom:16px}.devices-table table{width:100%;border-collapse:collapse}.devices-table th{text-align:left;padding:12px;background:#f5f5f5;font-size:12px;font-weight:600;text-transform:uppercase;color:#666;border-bottom:2px solid #e0e0e0}.devices-table td{padding:12px;border-bottom:1px solid #e0e0e0;font-size:14px}.device-row{cursor:pointer;transition:background .2s}.device-row:hover{background:#f9f9f9}.device-name-link{background:none;border:none;color:#667eea;cursor:pointer;font-size:14px;font-weight:500;padding:0;text-decoration:underline;transition:color .2s}.device-name-link:hover{color:#5568d3}.device-status{padding:4px 8px;border-radius:4px;font-size:11px;font-weight:500;text-transform:capitalize}.device-status-online{background:#e8f5e9;color:#2e7d32}.device-status-offline{background:#ffebee;color:#c62828}.device-status-maintenance{background:#fff3e0;color:#ef6c00}.device-row-actions{display:flex;gap:8px}.device-action-button{padding:6px 12px;border:none;border-radius:4px;font-size:12px;font-weight:500;cursor:pointer;transition:background .2s}.device-action-button.open{background:#e3f2fd;color:#1976d2}.device-action-button.open:hover{background:#bbdefb}.device-action-button.edit{background:#667eea;color:#fff}.device-action-button.edit:hover{background:#5568d3}.devices-pagination{display:flex;justify-content:center;align-items:center;gap:16px;padding:16px;margin-top:16px}.alerts-page{padding:20px;max-width:1400px;margin:0 auto}.alerts-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.alerts-header h2{margin:0;color:#333}.alerts-count{color:#666;font-size:14px}.alerts-filters{display:flex;gap:16px;margin-bottom:24px;flex-wrap:wrap;padding:16px;background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a}.filter-input,.filter-select{padding:8px 12px;border:1px solid #ddd;border-radius:4px;font-size:14px;transition:border-color .2s}.alerts-table{background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a;overflow-x:auto;margin-bottom:16px}.alerts-table table{width:100%;border-collapse:collapse}.alerts-table th{text-align:left;padding:12px;background:#f5f5f5;font-size:12px;font-weight:600;text-transform:uppercase;color:#666;border-bottom:2px solid #e0e0e0}.alerts-table td{padding:12px;border-bottom:1px solid #e0e0e0;font-size:14px;color:#333;vertical-align:top}.alert-title{font-weight:500;color:#333;margin-bottom:4px}.alert-message{font-size:12px;color:#666;margin-top:4px}.alert-title-cell{display:flex;flex-direction:column;gap:4px}.alert-title-cell strong{font-weight:600;color:#333}.alert-message-preview{font-size:12px;color:#666;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.alert-location-cell{font-size:14px;color:#666}.location-separator{color:#999}.location-none{color:#999;font-style:italic}.alert-date-cell{display:flex;flex-direction:column;gap:2px;font-size:14px;color:#333}.alert-time-cell{font-size:12px;color:#999}.severity-badge,.status-badge{padding:4px 12px;border-radius:12px;font-size:12px;font-weight:500;display:inline-block;text-transform:capitalize}.severity-critical{background:#ffebee;color:#c62828}.severity-warning{background:#fff3e0;color:#ef6c00}.severity-info{background:#e3f2fd;color:#1976d2}.status-open{background:#fff3e0;color:#ef6c00}.status-acknowledged{background:#e3f2fd;color:#1976d2}.status-resolved{background:#e8f5e9;color:#2e7d32}.status-closed{background:#f5f5f5;color:#666}.alerts-pagination{display:flex;justify-content:center;align-items:center;gap:16px;padding:16px}.pagination-button{padding:8px 16px;background:#fff;border:1px solid #ddd;border-radius:4px;font-size:14px;cursor:pointer;transition:background .2s,border-color .2s}.pagination-button:hover:not(:disabled){background:#f5f5f5;border-color:#667eea}.alerts-success-message{padding:12px 16px;margin-bottom:16px;background:#e8f5e9;color:#2e7d32;border-radius:4px;border-left:4px solid #2e7d32;font-size:14px;font-weight:500;animation:slideIn .3s ease-out}@keyframes slideIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.alert-rules-page{padding:20px;max-width:1200px;margin:0 auto}.alert-rules-subtitle{color:#666;margin-bottom:24px}.alert-rules-section{margin-bottom:32px;padding:20px;background:#fff;border-radius:8px;box-shadow:0 2px 4px #00000014}.alert-rules-section-header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:16px}.alert-rules-section-header h2{margin:0;font-size:1.25rem}.alert-rules-events-actions{display:flex;align-items:center;gap:12px}.alert-rules-form-card{margin-bottom:20px;padding:16px;border:1px solid #e0e0e0;border-radius:8px;background:#fafafa}.alert-rules-form-card h3{margin:0 0 12px;font-size:1rem}.alert-rules-form-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px;margin-bottom:12px}.alert-rules-form-grid .form-group{display:flex;flex-direction:column;gap:4px}.alert-rules-form-grid .form-group label{font-size:12px;font-weight:500;color:#555}.alert-rules-form-grid input[type=text],.alert-rules-form-grid input[type=number],.alert-rules-form-grid select{padding:8px 10px;border:1px solid #ccc;border-radius:4px;font-size:14px}.alert-rules-table-wrap{overflow-x:auto}.alert-rules-table{width:100%;border-collapse:collapse;font-size:14px}.alert-rules-table th,.alert-rules-table td{padding:10px 12px;text-align:left;border-bottom:1px solid #eee}.alert-rules-table th{font-weight:600;color:#444;background:#f5f5f5}.alert-rules-table .btn-link{background:none;border:none;color:#06c;cursor:pointer;text-decoration:underline;padding:0 4px;font-size:13px}.alert-rules-table .btn-link.danger{color:#c00}.alert-rules-table .btn-link:hover{opacity:.85}.alert-notification-settings-page{padding:20px;max-width:1200px;margin:0 auto}.alert-notification-settings-subtitle{color:#666;margin-bottom:24px}.alert-notification-settings-section{margin-bottom:32px;padding:20px;background:#fff;border-radius:8px;box-shadow:0 2px 4px #00000014}.alert-notification-settings-header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:16px}.alert-notification-settings-header h2{margin:0;font-size:1.25rem}.alert-notification-settings-form{margin-bottom:20px;padding:16px;border:1px solid #e0e0e0;border-radius:8px;background:#fafafa}.alert-notification-settings-form h3{margin:0 0 12px;font-size:1rem}.alert-notification-settings-form-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px;margin-bottom:12px}.alert-notification-settings-form-grid .form-group{display:flex;flex-direction:column;gap:4px}.alert-notification-settings-form-grid .form-group-wide{grid-column:1 / -1}.alert-notification-settings-form-grid .form-group label{font-size:12px;font-weight:500;color:#555}.alert-notification-settings-form-grid input[type=text],.alert-notification-settings-form-grid select{padding:8px 10px;border:1px solid #ccc;border-radius:4px;font-size:14px}.form-error{color:#c00;font-size:14px;margin:8px 0}.form-actions{display:flex;gap:8px;margin-top:12px}.alert-notification-settings-table-wrap{overflow-x:auto}.alert-notification-settings-table{width:100%;border-collapse:collapse;font-size:14px}.alert-notification-settings-table th,.alert-notification-settings-table td{padding:10px 12px;text-align:left;border-bottom:1px solid #eee}.alert-notification-settings-table th{font-weight:600;color:#444;background:#f5f5f5}.alert-notification-settings-table .destination-cell{max-width:280px;overflow:hidden;text-overflow:ellipsis}.alert-notification-settings-table .btn-link{background:none;border:none;color:#06c;cursor:pointer;text-decoration:underline;padding:0 4px;font-size:13px}.alert-notification-settings-table .btn-link.danger{color:#c00}.alert-notification-settings-table .btn-link:hover{opacity:.85}.alert-notification-settings-table .btn-link:disabled{opacity:.6;cursor:not-allowed}.pagination{display:flex;align-items:center;gap:12px;margin-top:12px;font-size:14px}.pagination button{padding:6px 12px;border:1px solid #ccc;border-radius:4px;background:#fff;cursor:pointer}.pagination button:disabled{opacity:.5;cursor:not-allowed}.btn-primary,.btn-secondary{padding:8px 16px;border-radius:4px;font-size:14px;cursor:pointer;border:none}.btn-primary{background:#06c;color:#fff}.btn-primary:disabled{opacity:.7;cursor:not-allowed}.btn-secondary{background:#f0f0f0;color:#333;border:1px solid #ccc}.telemetry-page{padding:20px;max-width:1400px;margin:0 auto}.telemetry-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.telemetry-header-left{display:flex;align-items:center;gap:16px}.telemetry-header h2{margin:0;color:#333}.telemetry-count{color:#666;font-size:14px}.telemetry-filters{display:flex;gap:16px;margin-bottom:24px;flex-wrap:wrap;padding:16px;background:#f9f9f9;border-radius:6px}.filter-group{display:flex;flex-direction:column;gap:4px;flex:1;min-width:150px}.filter-select{padding:8px 12px;border:1px solid #ddd;border-radius:4px;font-size:14px;transition:border-color .2s}.telemetry-controls{display:flex;gap:16px;margin-bottom:24px;flex-wrap:wrap;padding:16px;background:#fff;border-radius:6px;box-shadow:0 2px 4px #0000001a}.control-group{display:flex;flex-direction:column;gap:4px;min-width:150px}.control-group label{font-size:12px;font-weight:500;color:#666;text-transform:uppercase}.control-select,.control-input{padding:8px 12px;border:1px solid #ddd;border-radius:4px;font-size:14px;transition:border-color .2s}.control-select:focus,.control-input:focus{outline:none;border-color:#667eea}.telemetry-table{background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a;overflow-x:auto}.telemetry-table table{width:100%;border-collapse:collapse}.telemetry-table th{text-align:left;padding:12px;background:#f5f5f5;font-size:12px;font-weight:600;text-transform:uppercase;color:#666;border-bottom:2px solid #e0e0e0}.telemetry-table td{padding:12px;border-bottom:1px solid #e0e0e0;font-size:14px}.link-button{background:none;border:none;color:#667eea;cursor:pointer;font-size:14px;padding:0;text-decoration:underline;transition:color .2s}.link-button:hover{color:#5568d3}.telemetry-empty-state{background:#fff;padding:40px;border-radius:8px;box-shadow:0 2px 4px #0000001a;text-align:center;color:#666;font-size:16px}.telemetry-trends-page{padding:20px;max-width:1200px;margin:0 auto}.telemetry-trends-page h2{margin:0 0 .5rem;font-size:1.5rem;color:#333}.telemetry-trends-subtitle{margin:0 0 1.25rem;font-size:.9rem;color:#666}.telemetry-trends-filters,.telemetry-trends-controls{display:flex;gap:16px;margin-bottom:24px;flex-wrap:wrap;padding:16px;background:#f9f9f9;border-radius:6px}.telemetry-trends-filters .filter-group,.telemetry-trends-controls .filter-group{display:flex;flex-direction:column;gap:4px;min-width:140px}.telemetry-trends-filters .filter-group label,.telemetry-trends-controls .filter-group label{font-size:12px;font-weight:500;color:#666;text-transform:uppercase}.filter-select{padding:8px 12px;border:1px solid #ddd;border-radius:4px;font-size:14px}.filter-select:focus{outline:none;border-color:#667eea}.filter-select:disabled{background:#f5f5f5;cursor:not-allowed;opacity:.6}.filter-input{padding:8px 12px;border:1px solid #ddd;border-radius:4px;font-size:14px;min-width:160px}.telemetry-trends-section{margin-bottom:28px;padding:16px;background:#fff;border-radius:8px;box-shadow:0 2px 4px #00000014}.telemetry-trends-section h3{margin:0 0 12px;font-size:1.1rem;color:#333}.telemetry-trends-latest{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-start}.latest-meta{flex-basis:100%}.latest-time{font-size:13px;color:#666}.latest-metrics{display:flex;flex-wrap:wrap;gap:12px 24px}.latest-metric{display:flex;flex-direction:column;gap:2px}.latest-metric .metric-key{font-size:11px;text-transform:uppercase;color:#666}.latest-metric .metric-value{font-size:15px;font-weight:500;color:#333}.trend-chart-wrap{margin-top:8px}.trend-chart{width:100%;max-width:600px;height:auto;display:block}.trend-chart .chart-axis{stroke:#e0e0e0;stroke-width:1}.trend-chart-legend{margin-top:8px;font-size:12px;color:#666;display:flex;gap:16px}.yield-entry-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;z-index:1000;display:flex;align-items:flex-end;justify-content:center;animation:fadeIn .2s}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.yield-entry-drawer{background:#fff;width:100%;max-width:600px;max-height:90vh;border-radius:16px 16px 0 0;display:flex;flex-direction:column;animation:slideUp .3s;box-shadow:0 -4px 20px #0003}@keyframes slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}.yield-entry-header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid #e0e0e0}.yield-entry-header h2{margin:0;font-size:20px;color:#333}.yield-entry-close{background:none;border:none;font-size:28px;color:#666;cursor:pointer;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:background .2s}.yield-entry-close:hover{background:#f5f5f5}.yield-entry-content{flex:1;overflow-y:auto;padding:24px}.yield-entry-error{margin-bottom:20px}.yield-entry-field{display:flex;flex-direction:column;gap:8px;margin-bottom:20px}.yield-entry-field label{font-size:14px;font-weight:500;color:#333}.yield-entry-field .required{color:#c62828}.yield-entry-field input,.yield-entry-field select{padding:10px 12px;border:1px solid #ddd;border-radius:4px;font-size:14px;font-family:inherit;transition:border-color .2s}.yield-entry-field input:focus,.yield-entry-field select:focus{outline:none;border-color:#667eea}.yield-entry-field input.error,.yield-entry-field select.error{border-color:#c62828}.field-error{font-size:12px;color:#c62828}.yield-entry-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.yield-entry-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:32px;padding-top:20px;border-top:1px solid #e0e0e0}.yield-entry-cancel,.yield-entry-submit{padding:10px 20px;border:none;border-radius:4px;font-size:14px;font-weight:500;cursor:pointer;transition:background .2s}.yield-entry-cancel{background:#f5f5f5;color:#333}.yield-entry-cancel:hover{background:#e0e0e0}.yield-entry-submit{background:#667eea;color:#fff}.yield-entry-submit:hover:not(:disabled){background:#5568d3}.yield-entry-submit:disabled{background:#ccc;cursor:not-allowed}.yields-page{padding:20px;max-width:1400px;margin:0 auto}.yields-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.yields-header h2{margin:0;color:#333}.yields-header-actions{display:flex;gap:12px;align-items:center}.add-yield-button{padding:10px 20px;background:#667eea;color:#fff;border:none;border-radius:4px;font-size:14px;font-weight:500;cursor:pointer;transition:background .2s}.add-yield-button:hover{background:#5568d3}.yields-tabs{display:flex;gap:8px;margin-bottom:24px;border-bottom:2px solid #e0e0e0}.yield-tab{padding:12px 24px;background:none;border:none;border-bottom:2px solid transparent;font-size:14px;font-weight:500;color:#666;cursor:pointer;transition:color .2s;margin-bottom:-2px}.yield-tab:hover{color:#333}.yield-tab.active{color:#667eea;border-bottom-color:#667eea}.yields-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:24px;padding:20px;background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a}.filter-group{display:flex;flex-direction:column;gap:8px}.filter-group label{font-size:12px;font-weight:500;color:#666;text-transform:uppercase}.filter-input,.filter-select{padding:8px 12px;border:1px solid #ddd;border-radius:4px;font-size:14px;font-family:inherit}.filter-input:focus,.filter-select:focus{outline:none;border-color:#667eea}.filter-select:disabled{background:#f5f5f5;cursor:not-allowed}.yields-table-container{background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a;overflow:hidden}.yields-table{width:100%;border-collapse:collapse}.yields-table thead{background:#f9f9f9}.yields-table th{padding:12px 16px;text-align:left;font-size:12px;font-weight:600;color:#666;text-transform:uppercase;border-bottom:2px solid #e0e0e0}.yields-table td{padding:16px;border-bottom:1px solid #f0f0f0;font-size:14px;color:#333}.yields-table tbody tr:hover{background:#f9f9f9}.yield-location{display:flex;flex-direction:column;gap:4px}.yield-block-name{font-weight:500;color:#333}.yield-site-name{font-size:12px;color:#666}.yield-amount-cell{font-weight:600;color:#2e7d32}.pagination{display:flex;justify-content:center;align-items:center;gap:16px;margin-top:24px;padding:20px}.pagination-button{padding:8px 16px;background:#fff;border:1px solid #ddd;border-radius:4px;font-size:14px;cursor:pointer;transition:background .2s}.pagination-button:hover:not(:disabled){background:#f5f5f5}.pagination-button:disabled{opacity:.5;cursor:not-allowed}.pagination-info{font-size:14px;color:#666}.yoy-report{background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a;padding:24px}.yoy-table-container{margin-bottom:32px}.yoy-table{width:100%;border-collapse:collapse}.yoy-table thead{background:#f9f9f9}.yoy-table th{padding:12px 16px;text-align:left;font-size:12px;font-weight:600;color:#666;text-transform:uppercase;border-bottom:2px solid #e0e0e0}.yoy-table td{padding:16px;border-bottom:1px solid #f0f0f0;font-size:14px;color:#333}.yoy-table tbody tr:hover{background:#f9f9f9}.yoy-chart-placeholder{min-height:300px;display:flex;align-items:center;justify-content:center;border:2px dashed #e0e0e0;border-radius:8px;background:#fafafa}.workflows-page{padding:2rem;max-width:1400px;margin:0 auto}.workflows-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem}.workflows-header h2{margin:0;font-size:2rem}.workflows-create-button{padding:.75rem 1.5rem;background-color:#007bff;color:#fff;border:none;border-radius:4px;font-size:1rem;cursor:pointer;transition:background-color .2s}.workflows-create-button:hover{background-color:#0056b3}.workflows-table-container{background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a;overflow:hidden}.workflows-table{width:100%;border-collapse:collapse}.workflows-table thead{background-color:#f8f9fa}.workflows-table th{padding:1rem;text-align:left;font-weight:600;border-bottom:2px solid #dee2e6}.workflows-table td{padding:1rem;border-bottom:1px solid #dee2e6}.workflows-table-row{cursor:pointer;transition:background-color .2s}.workflows-table-row:hover{background-color:#f8f9fa}.status-badge{padding:.25rem .75rem;border-radius:12px;font-size:.875rem;font-weight:500}.status-badge.status-draft{background-color:#6c757d;color:#fff}.status-badge.status-active{background-color:#28a745;color:#fff}.status-badge.status-archived{background-color:#6c757d;color:#fff}.workflows-filters{display:flex;gap:1rem;align-items:center}.filter-group{display:flex;align-items:center;gap:.5rem}.workflow-editor{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;justify-content:center;align-items:center;z-index:1000;padding:2rem}.workflow-editor>div{background:#fff;border-radius:8px;width:100%;max-width:1200px;max-height:90vh;display:flex;flex-direction:column;box-shadow:0 4px 6px #0000001a}.workflow-editor-header{display:flex;justify-content:space-between;align-items:center;padding:1.5rem;border-bottom:1px solid #dee2e6}.workflow-editor-header h2{margin:0;font-size:1.5rem}.workflow-editor-close{background:none;border:none;font-size:2rem;cursor:pointer;color:#6c757d;padding:0;width:2rem;height:2rem;display:flex;align-items:center;justify-content:center}.workflow-editor-close:hover{color:#000}.workflow-editor-content{padding:1.5rem;overflow-y:auto;flex:1}.workflow-editor-section{margin-bottom:2rem}.workflow-editor-section h3{margin-top:0;margin-bottom:.5rem;font-size:1.25rem;color:#333}.workflow-editor-hint{color:#6c757d;font-size:.875rem;margin-bottom:1rem}.workflow-editor-info-box{background-color:#e7f3ff;border:1px solid #b3d9ff;border-radius:4px;padding:1rem;margin-bottom:1rem;color:#004085}.workflow-editor-json-input{width:100%;padding:.75rem;border:1px solid #ced4da;border-radius:4px;font-family:Courier New,monospace;font-size:.875rem;resize:vertical;box-sizing:border-box}.workflow-editor-json-actions{display:flex;align-items:center;gap:1rem;margin-top:.5rem}.workflow-editor-error{color:#dc3545;font-size:.875rem}.workflow-editor-json-viewer{margin-top:1rem;border:1px solid #dee2e6;border-radius:4px;overflow:hidden}.workflow-editor-json-viewer summary{padding:.75rem;background-color:#f8f9fa;cursor:pointer;font-weight:500}.workflow-editor-json-viewer pre{margin:0;padding:1rem;background-color:#f8f9fa;overflow-x:auto;font-family:Courier New,monospace;font-size:.875rem}.workflow-editor-table-actions{display:flex;gap:.5rem;margin-bottom:1rem}.workflow-editor-button{padding:.5rem 1rem;border:1px solid #ced4da;border-radius:4px;font-size:.875rem;cursor:pointer;background-color:#fff;transition:background-color .2s}.workflow-editor-button:hover:not(:disabled){background-color:#f8f9fa}.workflow-editor-button:disabled{opacity:.6;cursor:not-allowed}.workflow-editor-button-primary{background-color:#007bff;color:#fff;border-color:#007bff}.workflow-editor-button-primary:hover:not(:disabled){background-color:#0056b3}.workflow-editor-button-secondary{background-color:#6c757d;color:#fff;border-color:#6c757d}.workflow-editor-button-secondary:hover:not(:disabled){background-color:#5a6268}.workflow-editor-button-danger{background-color:#dc3545;color:#fff;border-color:#dc3545}.workflow-editor-button-danger:hover:not(:disabled){background-color:#c82333}.workflow-editor-button-disabled{opacity:.6;cursor:not-allowed;position:relative}.workflow-editor-empty{padding:2rem;text-align:center;color:#6c757d;background-color:#f8f9fa;border-radius:4px}.workflow-editor-table-container{border:1px solid #dee2e6;border-radius:4px;overflow-x:auto}.workflow-editor-table{width:100%;border-collapse:collapse;min-width:800px}.workflow-editor-table thead{background-color:#f8f9fa}.workflow-editor-table th{padding:.75rem;text-align:left;font-weight:600;border-bottom:2px solid #dee2e6;font-size:.875rem}.workflow-editor-table td{padding:.75rem;border-bottom:1px solid #dee2e6}.workflow-editor-input,.workflow-editor-select{width:100%;padding:.5rem;border:1px solid #ced4da;border-radius:4px;font-size:.875rem;box-sizing:border-box}.workflow-editor-preview{font-family:Courier New,monospace;color:#28a745;font-weight:500}.workflow-editor-preview-empty{color:#6c757d;font-style:italic}.workflow-editor-steps{display:flex;gap:1rem;flex-wrap:wrap;margin-top:1rem}.workflow-editor-step{display:flex;align-items:center;gap:.5rem;padding:.75rem 1rem;background-color:#f8f9fa;border:1px solid #dee2e6;border-radius:4px}.workflow-editor-step-number{background-color:#007bff;color:#fff;width:1.5rem;height:1.5rem;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:.875rem}.workflow-editor-step-name{font-weight:500}.workflow-editor-actions{display:flex;gap:1rem;justify-content:flex-end;padding-top:1.5rem;border-top:1px solid #dee2e6;margin-top:2rem}.reports-page{padding:20px}.page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.export-button{padding:10px 20px;background-color:#007bff;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:14px;font-weight:500;transition:background-color .2s}.export-button:hover{background-color:#0056b3}.export-button:active{background-color:#004085}.report-section{margin-bottom:30px}.report-links-list{margin:0;padding-left:20px;list-style:disc}.report-links-list li{margin-bottom:8px}.report-links-list a{color:#007bff;text-decoration:none}.report-links-list a:hover{text-decoration:underline}.report-link-desc{color:#666;font-size:14px}.report-section h2{margin:0 0 20px;font-size:20px;font-weight:600;color:#333}.summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:20px;margin-bottom:20px}.summary-card{background:#f9f9f9;border:1px solid #e0e0e0;border-radius:8px;padding:20px}.summary-card h3{margin:0 0 15px;font-size:16px;font-weight:600;color:#333}.count-list{display:flex;flex-direction:column;gap:10px}.count-item{display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-bottom:1px solid #e0e0e0}.count-item:last-child{border-bottom:none}.count-item.total{margin-top:10px;padding-top:15px;border-top:2px solid #333;font-weight:600}.count-label{font-size:14px;color:#666}.count-value{font-size:16px;font-weight:600;color:#333}.count-value.severity-critical{color:#dc3545}.count-value.severity-warning{color:#ffc107}.count-value.severity-info{color:#17a2b8}.sites-table{width:100%;border-collapse:collapse;margin-top:10px}.sites-table th,.sites-table td{padding:12px;text-align:left;border-bottom:1px solid #e0e0e0}.sites-table th{background-color:#f5f5f5;font-weight:600;color:#333}.sites-table tr:hover{background-color:#f9f9f9}.no-data{color:#666;font-style:italic;margin:20px 0}.reports-daily-telemetry-summary-page{padding:20px}.reports-daily-telemetry-summary-header{margin-bottom:20px}.reports-daily-telemetry-summary-header h1{margin:0 0 8px;font-size:24px;font-weight:600}.reports-daily-telemetry-summary-subtitle{margin:0 0 8px;color:var(--text-secondary, #666);font-size:14px}.reports-daily-telemetry-summary-nav{margin:0;font-size:14px}.reports-daily-telemetry-summary-back{color:var(--link-color, #007bff);text-decoration:none}.reports-daily-telemetry-summary-back:hover{text-decoration:underline}.reports-daily-telemetry-summary-controls{display:flex;flex-wrap:wrap;align-items:flex-end;gap:16px;margin-bottom:20px}.reports-daily-telemetry-summary-controls .form-group{margin:0}.reports-daily-telemetry-summary-controls .form-group label{display:block;margin-bottom:4px;font-size:14px;font-weight:500}.reports-daily-telemetry-summary-controls .control-input{padding:8px 12px;border:1px solid #ccc;border-radius:4px;font-size:14px}.reports-daily-telemetry-summary-controls .control-actions{margin-left:8px;display:flex;gap:10px;align-items:center}.reports-daily-telemetry-summary-export-btn{padding:8px 16px;font-size:14px;font-weight:500;background:#f0f0f0;border:1px solid #ccc;border-radius:4px;cursor:pointer}.reports-daily-telemetry-summary-export-btn:hover:not(:disabled){background:#e5e5e5}.reports-daily-telemetry-summary-export-btn:disabled{opacity:.7;cursor:not-allowed}.reports-daily-telemetry-summary-controls .btn-primary{padding:8px 20px;font-size:14px;font-weight:500}.reports-daily-telemetry-summary-validation-error{margin:0 0 16px;padding:10px 12px;background:#fff3cd;border:1px solid #ffc107;border-radius:4px;color:#856404;font-size:14px}.reports-daily-telemetry-summary-meta{margin-bottom:16px;font-size:13px;color:var(--text-secondary, #666)}.reports-daily-telemetry-summary-cards,.reports-daily-telemetry-summary-section{margin-bottom:24px}.reports-daily-telemetry-summary-section h3{margin:0 0 12px;font-size:18px;font-weight:600}.reports-daily-telemetry-summary-table-wrap{overflow-x:auto;border:1px solid #e0e0e0;border-radius:8px;background:#fff}.reports-daily-telemetry-summary-table{width:100%;border-collapse:collapse;font-size:14px}.reports-daily-telemetry-summary-table th,.reports-daily-telemetry-summary-table td{padding:10px 14px;text-align:left;border-bottom:1px solid #eee}.reports-daily-telemetry-summary-table th{font-weight:600;background:#f9f9f9}.reports-daily-telemetry-summary-table tbody tr:last-child td{border-bottom:none}.reports-daily-telemetry-chart-wrap{padding:16px;background:#fafafa;border:1px solid #e0e0e0;border-radius:8px}.reports-daily-telemetry-chart{display:block;max-width:100%;height:auto}.reports-daily-telemetry-chart-legend{margin-top:8px;font-size:13px;color:var(--text-secondary, #666)}.reports-daily-telemetry-chart-legend span{margin-right:16px}.reports-device-uptime-page{padding:20px}.reports-device-uptime-header{margin-bottom:20px}.reports-device-uptime-header h1{margin:0 0 8px;font-size:24px;font-weight:600}.reports-device-uptime-subtitle{margin:0 0 8px;color:var(--text-secondary, #666);font-size:14px}.reports-device-uptime-nav{margin:0;font-size:14px}.reports-device-uptime-back{color:var(--link-color, #007bff);text-decoration:none}.reports-device-uptime-back:hover{text-decoration:underline}.reports-device-uptime-controls{display:flex;flex-wrap:wrap;align-items:flex-end;gap:16px;margin-bottom:20px}.reports-device-uptime-controls .form-group{margin:0}.reports-device-uptime-controls .form-group label{display:block;margin-bottom:4px;font-size:14px;font-weight:500}.reports-device-uptime-controls .control-input{padding:8px 12px;border:1px solid #ccc;border-radius:4px;font-size:14px}.reports-device-uptime-controls .control-actions{display:flex;gap:10px;align-items:center}.reports-device-uptime-controls .control-actions .btn-primary{padding:8px 20px;font-size:14px;font-weight:500}.reports-device-uptime-export-btn{padding:8px 16px;font-size:14px;font-weight:500;background:#f0f0f0;border:1px solid #ccc;border-radius:4px;cursor:pointer}.reports-device-uptime-export-btn:hover:not(:disabled){background:#e5e5e5}.reports-device-uptime-export-btn:disabled{opacity:.7;cursor:not-allowed}.reports-device-uptime-validation-error{margin:0 0 16px;padding:10px 12px;background:#fff3cd;border:1px solid #ffc107;border-radius:4px;color:#856404;font-size:14px}.reports-device-uptime-summary{margin:0 0 16px;font-size:14px;color:var(--text-secondary, #666)}.reports-device-uptime-table-wrap{overflow-x:auto;border:1px solid #e0e0e0;border-radius:8px;background:#fff}.reports-device-uptime-table{width:100%;border-collapse:collapse;font-size:14px}.reports-device-uptime-table th,.reports-device-uptime-table td{padding:10px 14px;text-align:left;border-bottom:1px solid #eee}.reports-device-uptime-table th{font-weight:600;background:#f9f9f9}.reports-device-uptime-table tbody tr:last-child td{border-bottom:none}.reports-device-uptime-severe{color:#c00;font-weight:600}.reports-device-uptime-warning{color:#b8860b;font-weight:500}.reports-device-uptime-normal{color:#333}.reports-gateway-reliability-page{padding:20px}.reports-gateway-reliability-header{margin-bottom:20px}.reports-gateway-reliability-header h1{margin:0 0 8px;font-size:24px;font-weight:600}.reports-gateway-reliability-subtitle{margin:0 0 8px;color:var(--text-secondary, #666);font-size:14px}.reports-gateway-reliability-nav{margin:0;font-size:14px}.reports-gateway-reliability-back{color:var(--link-color, #007bff);text-decoration:none}.reports-gateway-reliability-back:hover{text-decoration:underline}.reports-gateway-reliability-controls{display:flex;flex-wrap:wrap;align-items:flex-end;gap:16px;margin-bottom:20px}.reports-gateway-reliability-controls .form-group{margin:0}.reports-gateway-reliability-controls .form-group label{display:block;margin-bottom:4px;font-size:14px;font-weight:500}.reports-gateway-reliability-controls .control-input{padding:8px 12px;border:1px solid #ccc;border-radius:4px;font-size:14px}.reports-gateway-reliability-controls .control-actions{display:flex;gap:10px;align-items:center}.reports-gateway-reliability-controls .control-actions .btn-primary{padding:8px 20px;font-size:14px;font-weight:500}.reports-gateway-reliability-export-btn{padding:8px 16px;font-size:14px;font-weight:500;background:#f0f0f0;border:1px solid #ccc;border-radius:4px;cursor:pointer}.reports-gateway-reliability-export-btn:hover:not(:disabled){background:#e5e5e5}.reports-gateway-reliability-export-btn:disabled{opacity:.7;cursor:not-allowed}.reports-gateway-reliability-validation-error{margin:0 0 16px;padding:10px 12px;background:#fff3cd;border:1px solid #ffc107;border-radius:4px;color:#856404;font-size:14px}.reports-gateway-reliability-cards{margin-bottom:24px}.reports-gateway-reliability-table-wrap{overflow-x:auto;border:1px solid #e0e0e0;border-radius:8px;background:#fff}.reports-gateway-reliability-table{width:100%;border-collapse:collapse;font-size:14px}.reports-gateway-reliability-table th,.reports-gateway-reliability-table td{padding:10px 14px;text-align:left;border-bottom:1px solid #eee}.reports-gateway-reliability-table th{font-weight:600;background:#f9f9f9}.reports-gateway-reliability-table tbody tr:last-child td{border-bottom:none}.reports-alert-activity-page{padding:20px}.reports-alert-activity-header{margin-bottom:20px}.reports-alert-activity-header h1{margin:0 0 8px;font-size:24px;font-weight:600}.reports-alert-activity-subtitle{margin:0 0 8px;color:var(--text-secondary, #666);font-size:14px}.reports-alert-activity-nav{margin:0;font-size:14px}.reports-alert-activity-back{color:var(--link-color, #007bff);text-decoration:none}.reports-alert-activity-back:hover{text-decoration:underline}.reports-alert-activity-controls{display:flex;flex-wrap:wrap;align-items:flex-end;gap:16px;margin-bottom:20px}.reports-alert-activity-controls .form-group{margin:0}.reports-alert-activity-controls .form-group label{display:block;margin-bottom:4px;font-size:14px;font-weight:500}.reports-alert-activity-controls .control-input{padding:8px 12px;border:1px solid #ccc;border-radius:4px;font-size:14px}.reports-alert-activity-controls .control-actions{display:flex;gap:10px;align-items:center}.reports-alert-activity-controls .control-actions .btn-primary{padding:8px 20px;font-size:14px;font-weight:500}.reports-alert-activity-validation-error{margin:0 0 16px;padding:10px 12px;background:#fff3cd;border:1px solid #ffc107;border-radius:4px;color:#856404;font-size:14px}.reports-alert-activity-range{margin:0 0 16px;font-size:14px;color:var(--text-secondary, #666)}.reports-alert-activity-cards,.reports-alert-activity-section{margin-bottom:24px}.reports-alert-activity-section h3{margin:0 0 12px;font-size:18px;font-weight:600}.reports-alert-activity-table-wrap{overflow-x:auto;border:1px solid #e0e0e0;border-radius:8px;background:#fff}.reports-alert-activity-table{width:100%;border-collapse:collapse;font-size:14px}.reports-alert-activity-table th,.reports-alert-activity-table td{padding:10px 14px;text-align:left;border-bottom:1px solid #eee}.reports-alert-activity-table th{font-weight:600;background:#f9f9f9}.reports-alert-activity-table tbody tr:last-child td{border-bottom:none}.reports-gateway-reliability-trend-page{padding:20px}.reports-gateway-reliability-trend-header{margin-bottom:20px}.reports-gateway-reliability-trend-header h1{margin:0 0 8px;font-size:24px;font-weight:600}.reports-gateway-reliability-trend-subtitle{margin:0 0 8px;color:var(--text-secondary, #666);font-size:14px}.reports-gateway-reliability-trend-nav{margin:0;font-size:14px}.reports-gateway-reliability-trend-back{color:var(--link-color, #007bff);text-decoration:none}.reports-gateway-reliability-trend-back:hover{text-decoration:underline}.reports-gateway-reliability-trend-controls{display:flex;flex-wrap:wrap;align-items:flex-end;gap:16px;margin-bottom:20px}.reports-gateway-reliability-trend-controls .form-group{margin:0}.reports-gateway-reliability-trend-controls .form-group label{display:block;margin-bottom:4px;font-size:14px;font-weight:500}.reports-gateway-reliability-trend-controls .control-input{padding:8px 12px;border:1px solid #ccc;border-radius:4px;font-size:14px}.reports-gateway-reliability-trend-controls .control-actions{display:flex;gap:10px;align-items:center}.reports-gateway-reliability-trend-controls .control-actions .btn-primary{padding:8px 20px;font-size:14px;font-weight:500}.reports-gateway-reliability-trend-validation-error{margin:0 0 16px;padding:10px 12px;background:#fff3cd;border:1px solid #ffc107;border-radius:4px;color:#856404;font-size:14px}.reports-gateway-reliability-trend-table-wrap{overflow-x:auto;border:1px solid #e0e0e0;border-radius:8px;background:#fff}.reports-gateway-reliability-trend-table{width:100%;border-collapse:collapse;font-size:14px}.reports-gateway-reliability-trend-table th,.reports-gateway-reliability-trend-table td{padding:10px 14px;text-align:left;border-bottom:1px solid #eee}.reports-gateway-reliability-trend-table th{font-weight:600;background:#f9f9f9}.reports-gateway-reliability-trend-table tbody tr:last-child td{border-bottom:none}.reports-device-uptime-trend-page{padding:20px}.reports-device-uptime-trend-header{margin-bottom:20px}.reports-device-uptime-trend-header h1{margin:0 0 8px;font-size:24px;font-weight:600}.reports-device-uptime-trend-subtitle{margin:0 0 8px;color:var(--text-secondary, #666);font-size:14px}.reports-device-uptime-trend-nav{margin:0;font-size:14px}.reports-device-uptime-trend-back{color:var(--link-color, #007bff);text-decoration:none}.reports-device-uptime-trend-back:hover{text-decoration:underline}.reports-device-uptime-trend-controls{display:flex;flex-wrap:wrap;align-items:flex-end;gap:16px;margin-bottom:20px}.reports-device-uptime-trend-controls .form-group{margin:0}.reports-device-uptime-trend-controls .form-group label{display:block;margin-bottom:4px;font-size:14px;font-weight:500}.reports-device-uptime-trend-controls .control-input{padding:8px 12px;border:1px solid #ccc;border-radius:4px;font-size:14px}.reports-device-uptime-trend-controls .control-actions{display:flex;gap:10px;align-items:center}.reports-device-uptime-trend-controls .control-actions .btn-primary{padding:8px 20px;font-size:14px;font-weight:500}.reports-device-uptime-trend-validation-error{margin:0 0 16px;padding:10px 12px;background:#fff3cd;border:1px solid #ffc107;border-radius:4px;color:#856404;font-size:14px}.reports-device-uptime-trend-table-wrap{overflow-x:auto;border:1px solid #e0e0e0;border-radius:8px;background:#fff}.reports-device-uptime-trend-table{width:100%;border-collapse:collapse;font-size:14px}.reports-device-uptime-trend-table th,.reports-device-uptime-trend-table td{padding:10px 14px;text-align:left;border-bottom:1px solid #eee}.reports-device-uptime-trend-table th{font-weight:600;background:#f9f9f9}.reports-device-uptime-trend-table tbody tr:last-child td{border-bottom:none}.ops-rollups-page{padding:1rem 1.5rem;max-width:1200px;margin:0 auto}.ops-rollups-page h1{margin-bottom:1rem;font-size:1.5rem}.ops-rollups-filters{display:flex;flex-wrap:wrap;gap:1rem;margin-bottom:1rem;align-items:flex-end}.ops-rollups-filters label{display:flex;flex-direction:column;gap:.25rem;font-size:.875rem}.ops-rollups-filters input,.ops-rollups-filters select{padding:.35rem .5rem;border:1px solid var(--border-color, #ccc);border-radius:4px}.ops-rollups-tabs{display:flex;gap:.25rem;margin-bottom:1rem;border-bottom:1px solid var(--border-color, #ccc)}.ops-rollups-tabs button{padding:.5rem 1rem;border:none;background:transparent;cursor:pointer;font-size:.9rem;border-bottom:2px solid transparent;margin-bottom:-1px}.ops-rollups-tabs button:hover{background:#0000000d}.ops-rollups-tabs button.active{border-bottom-color:var(--primary-color, #1565c0);font-weight:600}.ops-rollups-content{margin-top:.5rem}.ops-rollups-meta{font-size:.875rem;color:var(--text-muted, #666);margin-bottom:.75rem}.ops-rollups-bands,.ops-rollups-alerts-summary{display:flex;flex-wrap:wrap;gap:1rem;margin-bottom:1rem;font-size:.9rem}.ops-rollups-table{width:100%;border-collapse:collapse;font-size:.9rem}.ops-rollups-table th,.ops-rollups-table td{padding:.5rem .75rem;text-align:left;border-bottom:1px solid var(--border-color, #eee)}.ops-rollups-table th{font-weight:600;background:var(--table-header-bg, #f5f5f5)}.ops-rollups-table a{color:var(--link-color, #1565c0);text-decoration:none}.ops-rollups-table a:hover{text-decoration:underline}.ops-rollups-content h3{margin-top:1.25rem;margin-bottom:.5rem;font-size:1rem}.ops-rollups-empty{color:var(--text-muted, #666);font-style:italic;margin-top:.5rem}.schedule-page{padding:20px}.page-header{margin-bottom:20px}.page-header h1{margin:0;font-size:24px;font-weight:600}.page-content{background:#fff;border-radius:8px;padding:20px;box-shadow:0 1px 3px #0000001a}.empty-schedule{text-align:center;padding:40px 20px;color:#666}.empty-schedule p{margin:10px 0}.schedule-note{font-size:14px;color:#999;font-style:italic}.shifts-list{overflow-x:auto}.shifts-table{width:100%;border-collapse:collapse}.shifts-table th,.shifts-table td{padding:12px;text-align:left;border-bottom:1px solid #eee}.shifts-table th{background-color:#f5f5f5;font-weight:600;color:#333}.shifts-table tr:hover{background-color:#f9f9f9}.users-roles-page{padding:24px;max-width:1400px;margin:0 auto}.page-content{background:#fff;border-radius:8px;padding:48px;box-shadow:0 1px 3px #0000001a}.coming-soon{text-align:center;color:#666}.coming-soon h2{margin:0 0 16px;font-size:24px;font-weight:600;color:#333}.coming-soon p{margin:0;font-size:16px}.settings-page{padding:24px;max-width:1400px;margin:0 auto}.page-header{margin-bottom:24px}.page-header h1{margin:0;font-size:28px;font-weight:600;color:#333}.page-content{display:flex;flex-direction:column;gap:32px}.settings-section{background:#fff;border-radius:8px;padding:24px;box-shadow:0 1px 3px #0000001a}.settings-section h2{margin:0 0 20px;font-size:20px;font-weight:600;color:#333;padding-bottom:12px;border-bottom:1px solid #e0e0e0}.settings-group{display:flex;flex-direction:column;gap:12px}.settings-group label{font-size:14px;font-weight:500;color:#333}.settings-select{padding:10px 12px;border:1px solid #ddd;border-radius:4px;font-size:14px;background:#fff;color:#333;cursor:pointer;transition:border-color .2s;max-width:300px}.settings-select:focus{outline:none;border-color:#667eea}.settings-description{margin:0;font-size:13px;color:#666;line-height:1.5}.settings-info-row{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid #f0f0f0}.settings-info-row:last-child{border-bottom:none}.settings-info-label{font-size:14px;color:#666;font-weight:500}.settings-info-value{font-size:14px;color:#333;font-weight:500}.settings-button{padding:10px 20px;border:none;border-radius:4px;font-size:14px;font-weight:500;cursor:pointer;transition:background .2s;max-width:200px}.settings-button-logout{background:#c62828;color:#fff}.settings-button-logout:hover{background:#a00}.admin-gateway-messages-page{padding:20px;max-width:1400px;margin:0 auto}.admin-gateway-messages-page h1{margin:0 0 .5rem;font-size:1.5rem;color:#333}.admin-gateway-messages-subtitle{margin:0 0 1.25rem;font-size:.9rem;color:#666}.admin-gateway-messages-forbidden{padding:2rem;text-align:center;color:#666}.admin-gateway-messages-forbidden p{margin:0}.admin-gateway-messages-summary{margin-bottom:1.5rem}.admin-gateway-messages-summary .summary-cards{display:flex;flex-wrap:wrap;gap:1rem}.admin-gateway-messages-summary .summary-card{background:#fff;border:1px solid #e0e0e0;border-radius:8px;padding:1rem 1.25rem;min-width:100px;box-shadow:0 1px 3px #00000014}.admin-gateway-messages-summary .summary-card-value{display:block;font-size:1.5rem;font-weight:600;color:#333}.admin-gateway-messages-summary .summary-card-label{font-size:.75rem;color:#666;text-transform:uppercase}.admin-gateway-messages-filters{display:flex;gap:16px;margin-bottom:24px;flex-wrap:wrap;padding:16px;background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a}.admin-gateway-messages-filters .filter-group{display:flex;flex-direction:column;gap:4px;flex:1;min-width:120px}.admin-gateway-messages-filters .filter-group label{font-size:12px;font-weight:500;color:#666;text-transform:uppercase}.admin-gateway-messages-filters .filter-input,.admin-gateway-messages-filters .filter-select{padding:8px 12px;border:1px solid #ddd;border-radius:4px;font-size:14px}.admin-gateway-messages-filters .filter-input:focus,.admin-gateway-messages-filters .filter-select:focus{outline:none;border-color:#667eea}.admin-gateway-messages-table-wrap{background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a;overflow-x:auto;margin-bottom:16px}.admin-gateway-messages-table{width:100%;border-collapse:collapse}.admin-gateway-messages-table th{text-align:left;padding:12px;background:#f5f5f5;font-size:12px;font-weight:600;text-transform:uppercase;color:#666;border-bottom:2px solid #e0e0e0}.admin-gateway-messages-table td{padding:12px;border-bottom:1px solid #e0e0e0;font-size:14px;color:#333}.admin-gateway-messages-table .cell-error{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#c62828;font-size:13px}.admin-gateway-messages-table .row-actions{display:flex;gap:8px;align-items:center}.admin-gateway-messages-table .btn-link{background:none;border:none;color:#667eea;cursor:pointer;font-size:14px;padding:0;text-decoration:underline}.admin-gateway-messages-table .btn-link:hover{color:#5568d3}.admin-gateway-messages-table .btn-replay{padding:4px 10px;font-size:13px;background:#e8f5e9;color:#2e7d32;border:1px solid #a5d6a7;border-radius:4px;cursor:pointer}.admin-gateway-messages-table .btn-replay:hover:not(:disabled){background:#c8e6c9}.admin-gateway-messages-table .btn-replay:disabled{opacity:.7;cursor:not-allowed}.admin-gateway-messages-pagination{display:flex;justify-content:center;align-items:center;gap:16px;padding:16px;font-size:14px;color:#666}.admin-gateway-messages-pagination button{padding:8px 16px;background:#fff;border:1px solid #ddd;border-radius:4px;font-size:14px;cursor:pointer}.admin-gateway-messages-pagination button:hover:not(:disabled){background:#f5f5f5;border-color:#667eea}.admin-gateway-messages-pagination button:disabled{opacity:.5;cursor:not-allowed}.admin-gateway-messages-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px}.admin-gateway-messages-modal{background:#fff;border-radius:8px;box-shadow:0 4px 20px #00000026;max-width:700px;width:100%;max-height:90vh;overflow:hidden;display:flex;flex-direction:column}.admin-gateway-messages-modal .modal-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid #e0e0e0}.admin-gateway-messages-modal .modal-header h2{margin:0;font-size:1.25rem}.admin-gateway-messages-modal .modal-close{background:none;border:none;font-size:1.5rem;cursor:pointer;color:#666;line-height:1;padding:0 4px}.admin-gateway-messages-modal .modal-close:hover{color:#333}.admin-gateway-messages-modal .modal-body{padding:20px;overflow-y:auto}.admin-gateway-messages-modal .detail-meta{display:grid;grid-template-columns:140px 1fr;gap:6px 16px;font-size:14px;margin-bottom:1.5rem}.admin-gateway-messages-modal .detail-meta dt{margin:0;color:#666;font-weight:500}.admin-gateway-messages-modal .detail-meta dd{margin:0;word-break:break-word}.admin-gateway-messages-modal .detail-meta .detail-error{color:#c62828}.admin-gateway-messages-modal .detail-payload h3{margin:0 0 8px;font-size:14px;color:#666;text-transform:uppercase}.admin-gateway-messages-modal .payload-json{margin:0;padding:12px;background:#f5f5f5;border:1px solid #e0e0e0;border-radius:4px;font-size:12px;font-family:ui-monospace,monospace;white-space:pre-wrap;word-break:break-word;max-height:300px;overflow-y:auto}.admin-gateway-monitoring-page{padding:20px;max-width:1200px;margin:0 auto}.admin-gateway-monitoring-page h1{margin:0 0 .5rem;font-size:1.5rem;color:#333}.admin-gateway-monitoring-subtitle{margin:0 0 1.25rem;font-size:.9rem;color:#666}.admin-gateway-monitoring-forbidden{padding:2rem;text-align:center;color:#666}.admin-gateway-monitoring-filters{display:flex;gap:16px;margin-bottom:24px;flex-wrap:wrap;padding:16px;background:#f9f9f9;border-radius:6px}.admin-gateway-monitoring-filters .filter-group{display:flex;flex-direction:column;gap:4px;min-width:140px}.admin-gateway-monitoring-filters .filter-group label{font-size:12px;font-weight:500;color:#666;text-transform:uppercase}.admin-gateway-monitoring-filters .filter-input{padding:8px 12px;border:1px solid #ddd;border-radius:4px;font-size:14px}.admin-gateway-monitoring-filters .filter-actions .btn-primary{padding:8px 16px;background:#667eea;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:14px}.admin-gateway-monitoring-filters .filter-actions .btn-primary:hover{background:#5568d3}.admin-gateway-monitoring-table-wrap{background:#fff;border-radius:8px;box-shadow:0 2px 4px #00000014;overflow-x:auto;margin-bottom:16px}.admin-gateway-monitoring-table{width:100%;border-collapse:collapse}.admin-gateway-monitoring-table th{text-align:left;padding:12px;background:#f5f5f5;font-size:12px;font-weight:600;text-transform:uppercase;color:#666;border-bottom:2px solid #e0e0e0}.admin-gateway-monitoring-table td{padding:12px;border-bottom:1px solid #e0e0e0;font-size:14px}.admin-gateway-monitoring-pagination{display:flex;justify-content:center;align-items:center;gap:16px;padding:16px;font-size:14px;color:#666}.admin-gateway-monitoring-pagination button{padding:8px 16px;background:#fff;border:1px solid #ddd;border-radius:4px;cursor:pointer}.admin-gateway-monitoring-pagination button:disabled{opacity:.5;cursor:not-allowed}.admin-devices-page{padding:20px;max-width:1400px;margin:0 auto}.admin-devices-page h1{margin:0 0 .5rem;font-size:1.5rem;color:#333}.admin-devices-subtitle{margin:0 0 1.25rem;font-size:.9rem;color:#666}.admin-devices-forbidden{padding:2rem;text-align:center;color:#666}.admin-devices-filters{display:flex;gap:16px;margin-bottom:24px;flex-wrap:wrap;padding:16px;background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a;align-items:flex-end}.admin-devices-filters .filter-group{display:flex;flex-direction:column;gap:4px;min-width:140px}.admin-devices-filters .filter-group label{font-size:12px;font-weight:500;color:#666}.admin-devices-filters .filter-input{padding:8px 12px;border:1px solid #ddd;border-radius:4px;font-size:14px}.admin-devices-btn{padding:8px 16px;border:1px solid #ddd;border-radius:4px;background:#fff;cursor:pointer;font-size:14px}.admin-devices-btn.primary{background:#667eea;color:#fff;border-color:#667eea}.admin-devices-btn.primary:hover:not(:disabled){background:#5568d3}.admin-devices-btn:disabled{opacity:.7;cursor:not-allowed}.admin-devices-table-wrap{background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a;overflow-x:auto;margin-bottom:16px}.admin-devices-table{width:100%;border-collapse:collapse}.admin-devices-table th{text-align:left;padding:12px;background:#f5f5f5;font-size:12px;font-weight:600;text-transform:uppercase;color:#666;border-bottom:2px solid #e0e0e0}.admin-devices-table td{padding:12px;border-bottom:1px solid #e0e0e0;font-size:14px}.admin-devices-table .row-actions{display:flex;gap:8px}.admin-devices-table .btn-link{background:none;border:none;color:#667eea;cursor:pointer;font-size:14px;padding:0;text-decoration:underline}.admin-devices-table .btn-link.danger{color:#c62828}.admin-devices-pagination{display:flex;justify-content:center;align-items:center;gap:16px;padding:16px;font-size:14px;color:#666}.admin-devices-pagination button{padding:8px 16px;background:#fff;border:1px solid #ddd;border-radius:4px;cursor:pointer}.admin-devices-pagination button:disabled{opacity:.5;cursor:not-allowed}.admin-devices-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;display:flex;align-items:center;justify-content:center;z-index:1000}.admin-devices-modal{background:#fff;border-radius:8px;padding:24px;max-width:480px;width:90%;max-height:90vh;overflow-y:auto;box-shadow:0 4px 20px #00000026}.admin-devices-modal h3{margin:0 0 1rem;font-size:1.25rem}.admin-devices-modal .form-group{margin-bottom:1rem}.admin-devices-modal .form-group label{display:block;font-size:12px;font-weight:500;color:#666;margin-bottom:4px}.admin-devices-modal .form-input,.admin-devices-modal .form-select{width:100%;padding:8px 12px;border:1px solid #ddd;border-radius:4px;font-size:14px}.admin-devices-modal .form-error{color:#c62828;font-size:14px;margin-bottom:12px}.admin-devices-modal .form-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:1.25rem}.admin-unit-imei-page{padding:20px;max-width:1400px;margin:0 auto}.admin-unit-imei-page h1{margin:0 0 .5rem;font-size:1.5rem;color:#333}.admin-unit-imei-subtitle{margin:0 0 1.25rem;font-size:.9rem;color:#666}.admin-unit-imei-forbidden{padding:2rem;text-align:center;color:#666}.admin-unit-imei-filters{display:flex;gap:16px;margin-bottom:24px;flex-wrap:wrap;padding:16px;background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a;align-items:flex-end}.admin-unit-imei-filters .filter-group{display:flex;flex-direction:column;gap:4px;min-width:140px}.admin-unit-imei-filters .filter-group label{font-size:12px;font-weight:500;color:#666}.admin-unit-imei-filters .filter-input{padding:8px 12px;border:1px solid #ddd;border-radius:4px;font-size:14px}.admin-unit-imei-btn{padding:8px 16px;border:1px solid #ddd;border-radius:4px;background:#fff;cursor:pointer;font-size:14px}.admin-unit-imei-btn.primary{background:#667eea;color:#fff;border-color:#667eea}.admin-unit-imei-btn.primary:hover:not(:disabled){background:#5568d3}.admin-unit-imei-btn:disabled{opacity:.7;cursor:not-allowed}.admin-unit-imei-table-wrap{background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a;overflow-x:auto;margin-bottom:16px}.admin-unit-imei-table{width:100%;border-collapse:collapse}.admin-unit-imei-table th{text-align:left;padding:12px;background:#f5f5f5;font-size:12px;font-weight:600;text-transform:uppercase;color:#666;border-bottom:2px solid #e0e0e0}.admin-unit-imei-table td{padding:12px;border-bottom:1px solid #e0e0e0;font-size:14px}.admin-unit-imei-table .row-actions{display:flex;gap:8px}.admin-unit-imei-table .btn-link{background:none;border:none;color:#667eea;cursor:pointer;font-size:14px;padding:0;text-decoration:underline}.admin-unit-imei-table .btn-link.danger{color:#c62828}.admin-unit-imei-pagination{display:flex;justify-content:center;align-items:center;gap:16px;padding:16px;font-size:14px;color:#666}.admin-unit-imei-pagination button{padding:8px 16px;background:#fff;border:1px solid #ddd;border-radius:4px;cursor:pointer}.admin-unit-imei-pagination button:disabled{opacity:.5;cursor:not-allowed}.admin-unit-imei-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;display:flex;align-items:center;justify-content:center;z-index:1000}.admin-unit-imei-modal{background:#fff;border-radius:8px;padding:24px;max-width:420px;width:90%;box-shadow:0 4px 20px #00000026}.admin-unit-imei-modal h3{margin:0 0 1rem;font-size:1.25rem}.admin-unit-imei-modal .form-group{margin-bottom:1rem}.admin-unit-imei-modal .form-group label{display:block;font-size:12px;font-weight:500;color:#666;margin-bottom:4px}.admin-unit-imei-modal .form-input{width:100%;padding:8px 12px;border:1px solid #ddd;border-radius:4px;font-size:14px}.admin-unit-imei-modal .form-error{color:#c62828;font-size:14px;margin-bottom:12px}.admin-unit-imei-modal .form-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:1.25rem}.gateway-messages-page{padding:20px;max-width:1400px;margin:0 auto}.gateway-messages-page h1{margin:0 0 .5rem;font-size:1.5rem;color:#333}.gateway-messages-subtitle{margin:0 0 1.25rem;font-size:.9rem;color:#666}.gateway-messages-forbidden{padding:2rem;text-align:center;color:#666}.gateway-messages-forbidden p{margin:0}.gateway-messages-filters{display:flex;gap:16px;margin-bottom:24px;flex-wrap:wrap;padding:16px;background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a}.gateway-messages-filters .filter-group{display:flex;flex-direction:column;gap:4px;flex:1;min-width:120px}.gateway-messages-filters .filter-group label{font-size:12px;font-weight:500;color:#666;text-transform:uppercase}.gateway-messages-filters .filter-input,.gateway-messages-filters .filter-select{padding:8px 12px;border:1px solid #ddd;border-radius:4px;font-size:14px}.gateway-messages-filters .filter-input:focus,.gateway-messages-filters .filter-select:focus{outline:none;border-color:#667eea}.gateway-messages-table-wrap{background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a;overflow-x:auto;margin-bottom:16px}.gateway-messages-table{width:100%;border-collapse:collapse}.gateway-messages-table th{text-align:left;padding:12px;background:#f5f5f5;font-size:12px;font-weight:600;text-transform:uppercase;color:#666;border-bottom:2px solid #e0e0e0}.gateway-messages-table td{padding:12px;border-bottom:1px solid #e0e0e0;font-size:14px;color:#333}.gateway-messages-table .cell-error{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#c62828;font-size:13px}.gateway-messages-table .row-actions{display:flex;gap:8px;align-items:center}.gateway-messages-table .btn-link{background:none;border:none;color:#667eea;cursor:pointer;font-size:14px;padding:0;text-decoration:underline}.gateway-messages-table .btn-link:hover{color:#5568d3}.gateway-messages-table .btn-replay{padding:4px 10px;font-size:13px;background:#e8f5e9;color:#2e7d32;border:1px solid #a5d6a7;border-radius:4px;cursor:pointer}.gateway-messages-table .btn-replay:hover:not(:disabled){background:#c8e6c9}.gateway-messages-table .btn-replay:disabled{opacity:.7;cursor:not-allowed}.gateway-messages-pagination{display:flex;justify-content:center;align-items:center;gap:16px;padding:16px;font-size:14px;color:#666}.gateway-messages-pagination button{padding:8px 16px;background:#fff;border:1px solid #ddd;border-radius:4px;font-size:14px;cursor:pointer}.gateway-messages-pagination button:hover:not(:disabled){background:#f5f5f5;border-color:#667eea}.gateway-messages-pagination button:disabled{opacity:.5;cursor:not-allowed}.gateway-messages-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px}.gateway-messages-modal{background:#fff;border-radius:8px;box-shadow:0 4px 20px #00000026;max-width:700px;width:100%;max-height:90vh;overflow:hidden;display:flex;flex-direction:column}.gateway-messages-modal .modal-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid #e0e0e0}.gateway-messages-modal .modal-header h2{margin:0;font-size:1.25rem}.gateway-messages-modal .modal-close{background:none;border:none;font-size:1.5rem;cursor:pointer;color:#666;line-height:1;padding:0 4px}.gateway-messages-modal .modal-close:hover{color:#333}.gateway-messages-modal .modal-body{padding:20px;overflow-y:auto}.gateway-messages-modal .detail-meta{display:grid;grid-template-columns:140px 1fr;gap:6px 16px;font-size:14px;margin-bottom:1.5rem}.gateway-messages-modal .detail-meta dt{margin:0;color:#666;font-weight:500}.gateway-messages-modal .detail-meta dd{margin:0;word-break:break-word}.gateway-messages-modal .detail-meta .detail-error{color:#c62828}.gateway-messages-modal .detail-payload h3{margin:0 0 8px;font-size:14px;color:#666;text-transform:uppercase}.gateway-messages-modal .payload-json{margin:0;padding:12px;background:#f5f5f5;border:1px solid #e0e0e0;border-radius:4px;font-size:12px;font-family:ui-monospace,monospace;white-space:pre-wrap;word-break:break-word;max-height:300px;overflow-y:auto}.health-banner{background:var(--health-banner-bg, #b45309);color:var(--health-banner-fg, #fff);padding:.5rem 1rem;text-align:center;font-size:.9rem}.app{min-height:100vh;background:#f5f5f5}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;transition:background-color .3s,color .3s}:root,.light-theme{--bg-primary: #ffffff;--bg-secondary: #f5f5f5;--text-primary: #333333;--text-secondary: #666666;--border-color: #e0e0e0;--shadow: rgba(0, 0, 0, .1)}.dark-theme{--bg-primary: #1a1a1a;--bg-secondary: #2d2d2d;--text-primary: #ffffff;--text-secondary: #b0b0b0;--border-color: #404040;--shadow: rgba(0, 0, 0, .3)}body{background-color:var(--bg-secondary);color:var(--text-primary)}#root{min-height:100vh}
