.unitwatch-screen{position:fixed;top:65px;left:var(--main-nav-width);right:0;bottom:0;background:var(--bg-dark, var(--bg-base));z-index:5;display:none;flex-direction:column;overflow:hidden;transition:left .3s ease}.unitwatch-screen.active{display:flex}.unitwatch-summary{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-bottom:16px}.unitwatch-screen{padding-left:var(--unitwatch-sidebar-width, 260px);box-sizing:border-box;transition:padding-left .3s ease}.unitwatch-filter-section{padding:14px;border-bottom:1px solid rgba(255,255,255,.06)}.unitwatch-filter-title{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--text-primary);margin-bottom:12px}.unitwatch-filter-title svg{width:15px;height:15px;color:var(--pillar-experience);display:block;flex-shrink:0}body.light-theme .unitwatch-filter-title{color:var(--text-primary, #0f172a)}.unitwatch-person-block{display:flex;flex-direction:column;gap:0}.unitwatch-search-wrap{position:relative;min-width:200px}.unitwatch-search-wrap svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:16px;height:16px;color:var(--text-muted);pointer-events:none}.unitwatch-search{width:100%;padding:10px 14px 10px 40px;background:#ffffff0f;border:1px solid rgba(255,255,255,.12);border-radius:10px;color:var(--text-primary);font-family:inherit;font-size:14px;font-weight:500;transition:border-color .2s;box-sizing:border-box}.unitwatch-search:focus{outline:none;border-color:var(--accent)}.unitwatch-search::-moz-placeholder{color:var(--text-muted)}.unitwatch-search::placeholder{color:var(--text-muted)}.unitwatch-alert-item.critical{border-left-color:var(--color-danger)}.unitwatch-alert-item.warning,.unitwatch-alert-item.medium{border-left-color:var(--color-warning)}.unitwatch-alert-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.unitwatch-alert-officer{font-size:12px;font-weight:600;color:var(--text-primary)}.unitwatch-alert-badge{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.4px;padding:2px 6px;border-radius:999px;background:#ffffff14;color:var(--text-secondary)}.unitwatch-alert-badge.critical{background:#ef444433;color:var(--color-danger)}.unitwatch-alert-badge.warning{background:#f59e0b33;color:var(--color-warning)}.unitwatch-alert-msg{font-size:12px;color:var(--text-secondary)}.unitwatch-alert-time{margin-left:auto;font-size:10px;color:var(--text-muted)}.unitwatch-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;background:var(--bg-card);border-bottom:1px solid rgba(255,255,255,.08);flex-shrink:0}.unitwatch-title{font-size:24px;font-weight:700;color:var(--text-primary);letter-spacing:-.5px}.unitwatch-subtitle{font-size:13px;color:var(--text-muted);margin-top:4px}.unitwatch-controls{display:flex;align-items:center;gap:16px}.unitwatch-unit-select{padding:10px 40px 10px 16px;background:#ffffff0f;border:1px solid rgba(255,255,255,.12);border-radius:10px;color:var(--text-primary);font-family:inherit;font-size:14px;font-weight:500;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;min-width:180px}.unitwatch-unit-select:focus{outline:none;border-color:var(--accent)}.unitwatch-unit-select option{background:#1a1c20;color:var(--text-primary)}.unitwatch-timeframe{display:flex;align-items:center;gap:8px;padding:8px 12px;background:#ffffff0a;border-radius:8px}.unitwatch-timeframe-label{font-size:12px;color:var(--text-muted)}.unitwatch-timeframe-btn{padding:6px 12px;background:transparent;border:none;border-radius:6px;color:var(--text-muted);font-family:inherit;font-size:12px;font-weight:500;cursor:pointer;transition:all .2s}.unitwatch-timeframe-btn:hover{color:var(--text-secondary)}.unitwatch-timeframe-btn.active{background:var(--accent-muted);color:var(--accent)}.unitwatch-content{flex:1;overflow-y:auto;padding:24px}.unitwatch-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:16px}.unitwatch-heartbeat{background:var(--bg-card);border:1px solid rgba(255,255,255,.06);border-radius:12px;padding:12px 16px;margin-bottom:20px}.unitwatch-heartbeat-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.unitwatch-heartbeat-title{font-size:11px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.5px}.unitwatch-heartbeat-legend{display:flex;align-items:center;gap:16px}.unitwatch-heartbeat-legend-item{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--text-muted)}.unitwatch-heartbeat-legend-dot{width:8px;height:8px;border-radius:50%}.unitwatch-heartbeat-legend-dot.critical{background:var(--color-danger)}.unitwatch-heartbeat-legend-dot.load{background:var(--accent)}.unitwatch-heartbeat-chart{height:80px;position:relative}.unitwatch-heartbeat-chart canvas{width:100%!important;height:100%!important}.unitwatch-heartbeat-svg{width:100%;height:100%}.unitwatch-heartbeat-line{fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.unitwatch-heartbeat-line.load{stroke:var(--accent)}.unitwatch-heartbeat-line.critical{stroke:var(--color-danger);stroke-dasharray:4 2}.unitwatch-heartbeat-area{opacity:.1}.unitwatch-heartbeat-area.load{fill:var(--accent)}.unitwatch-heartbeat-grid-line{stroke:#ffffff0f;stroke-width:1}.unitwatch-heartbeat-marker{fill:var(--color-danger)}.unitwatch-heartbeat-tooltip{position:absolute;background:#000000e6;border:1px solid rgba(255,255,255,.2);border-radius:6px;padding:6px 10px;font-size:11px;color:var(--text-primary);pointer-events:none;opacity:0;transition:opacity .15s;white-space:nowrap;z-index:10}.unitwatch-alerts-section{background:var(--bg-card);border:1px solid rgba(255,255,255,.06);border-radius:12px;padding:12px 16px;margin-bottom:20px}.unitwatch-alerts-header{display:flex;align-items:center;gap:8px;margin-bottom:8px;font-size:11px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.5px}.unitwatch-alerts-title{color:var(--text-secondary)}.unitwatch-alerts-count{background:#ef444433;color:var(--color-danger);padding:2px 8px;border-radius:6px;font-size:11px}.unitwatch-alerts-list{display:flex;flex-direction:column;gap:6px;max-height:120px;overflow-y:auto}.unitwatch-alert-item{display:flex;flex-direction:column;gap:4px;padding:8px 12px;background:#ffffff08;border-radius:8px;border-left:3px solid rgba(245,158,11,.8)}.unitwatch-alert-item.critical,.unitwatch-alert-item.high{border-left-color:var(--color-danger)}.unitwatch-alert-item.medium{border-left-color:var(--color-warning)}.unitwatch-alert-item .unitwatch-alert-officer{font-size:12px;font-weight:600;color:var(--text-primary)}.unitwatch-alert-item .unitwatch-alert-msg{font-size:12px;color:var(--text-secondary);flex:1}.unitwatch-alert-item .unitwatch-alert-time{font-size:10px;color:var(--text-muted)}.unitwatch-stat-card{background:var(--bg-card);border:1px solid rgba(255,255,255,.06);border-radius:12px;padding:16px 20px}.unitwatch-stat-value{font-size:32px;font-weight:700;color:var(--text-primary);margin-bottom:4px}.unitwatch-stat-value.alert{color:var(--color-danger)}.unitwatch-stat-value.warning{color:var(--color-warning)}.unitwatch-stat-value.good{color:var(--color-success)}.unitwatch-stat-label{font-size:13px;color:var(--text-muted)}.unitwatch-list{display:flex;flex-direction:column;gap:8px}.unitwatch-person{display:grid;grid-template-columns:220px 1fr 80px 80px 80px 60px 40px;align-items:center;gap:16px;padding:16px 20px;background:#0d1118cc;border:1px solid rgba(255,255,255,.06);border-radius:12px;cursor:pointer;transition:all .2s}.unitwatch-person:hover{background:#ffffff0a;border-color:var(--border-color)}.unitwatch-person.needs-attention{border-left:3px solid var(--color-danger)}.unitwatch-person.monitor{border-left:3px solid var(--color-warning)}.unitwatch-person-info{display:flex;align-items:center;gap:12px}.unitwatch-person-avatar{width:40px;height:40px;background:var(--accent-muted);border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;color:var(--accent);position:relative}.unitwatch-onshift-dot{position:absolute;top:-2px;right:-2px;width:10px;height:10px;background:var(--color-success);border-radius:50%;border:2px solid var(--bg-base)}.unitwatch-person-name{font-size:15px;font-weight:600;color:var(--text-primary)}.unitwatch-person-unit{font-size:12px;color:var(--text-muted);margin-top:2px}.unitwatch-since-crit{text-align:center}.unitwatch-since-crit-value{font-size:16px;font-weight:600;color:var(--text-primary)}.unitwatch-since-crit-value.recent{color:var(--color-danger)}.unitwatch-since-crit-value.moderate{color:var(--color-warning)}.unitwatch-since-crit-value.good{color:var(--text-muted)}.unitwatch-since-crit-label{font-size:10px;color:var(--text-muted)}.unitwatch-load-bar{display:flex;flex-direction:column;gap:6px}.unitwatch-load-track{height:8px;background:#ffffff1a;border-radius:4px;overflow:hidden}.unitwatch-load-fill{height:100%;border-radius:4px;transition:width .5s ease}.unitwatch-load-fill.low{background:var(--color-success)}.unitwatch-load-fill.moderate{background:var(--color-warning)}.unitwatch-load-fill.high{background:var(--color-danger)}.unitwatch-load-label{font-size:11px;color:var(--text-muted);display:flex;justify-content:space-between}.unitwatch-calls{text-align:center}.unitwatch-calls-count{font-size:18px;font-weight:600;color:var(--text-primary)}.unitwatch-calls-label{font-size:11px;color:var(--text-muted)}.unitwatch-critical{text-align:center}.unitwatch-critical-count{font-size:18px;font-weight:600;color:var(--color-danger)}.unitwatch-critical-count.zero{color:var(--text-muted)}.unitwatch-critical-label{font-size:11px;color:var(--text-muted)}.unitwatch-trend{text-align:center;font-size:18px}.unitwatch-trend.up{color:var(--color-danger)}.unitwatch-trend.down{color:var(--color-success)}.unitwatch-trend.flat{color:var(--text-muted)}.unitwatch-status{width:12px;height:12px;border-radius:50%}.unitwatch-status.ok{background:var(--color-success);box-shadow:0 0 8px #22c55e80}.unitwatch-status.monitor{background:var(--color-warning);box-shadow:0 0 8px #f59e0b80}.unitwatch-status.alert{background:var(--color-danger);box-shadow:0 0 8px #ef444480;animation:statusPulse 2s ease-in-out infinite}@keyframes statusPulse{0%,to{opacity:1}50%{opacity:.5}}.unitwatch-list-header{display:grid;grid-template-columns:220px 1fr 80px 80px 80px 60px 40px;align-items:center;gap:16px;padding:12px 20px;font-size:11px;margin-bottom:8px}.unitwatch-sort-icon{font-size:10px;opacity:.5;transition:opacity .15s,transform .15s}.unitwatch-sort-header.active .unitwatch-sort-icon{opacity:1}.unitwatch-sort-header.desc .unitwatch-sort-icon{transform:rotate(180deg)}.unitwatch-detail{display:none;background:#0000004d;border-radius:0 0 12px 12px;margin-top:-8px;margin-bottom:8px;padding:20px;border:1px solid rgba(255,255,255,.06);border-top:none}.unitwatch-detail.active{display:block}.unitwatch-detail-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:16px}.unitwatch-detail-title{font-size:13px;font-weight:600;color:var(--text-secondary);margin-bottom:0}.unitwatch-detail-meta{font-size:12px;color:var(--text-muted)}.unitwatch-contact-row{display:flex;align-items:center;gap:16px;margin-bottom:16px;padding:12px 16px;background:#7aaddb14;border:1px solid rgba(122,173,219,.2);border-radius:8px}.unitwatch-contact-btn{display:flex;align-items:center;gap:8px;padding:8px 14px;background:#ffffff0f;border:1px solid rgba(255,255,255,.12);border-radius:8px;color:var(--text-secondary);font-size:13px;text-decoration:none;transition:all .2s;cursor:pointer}.unitwatch-contact-btn:hover{background:#ffffff1a;border-color:var(--border-color);color:var(--text-primary)}.unitwatch-contact-btn svg{width:16px;height:16px;stroke:currentColor}.unitwatch-contact-btn.email:hover,.unitwatch-contact-btn.phone:hover{border-color:#7aaddb80;color:var(--pillar-sleeping)}.unitwatch-contact-label{font-size:12px;color:var(--text-muted);margin-right:auto}.unitwatch-notes-section{margin-bottom:20px}.unitwatch-notes-label{font-size:11px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.5px;margin-bottom:8px}.unitwatch-notes-input{width:100%;padding:10px 12px;background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:8px;color:var(--text-primary);font-family:inherit;font-size:13px;resize:none}.unitwatch-notes-input:focus{outline:none;border-color:var(--accent)}.unitwatch-notes-input::-moz-placeholder{color:var(--text-muted)}.unitwatch-notes-input::placeholder{color:var(--text-muted)}.unitwatch-calls-list{display:flex;flex-direction:column;gap:8px;max-height:300px;overflow-y:auto}.unitwatch-call-item{display:grid;grid-template-columns:80px 1fr 70px 60px;align-items:start;gap:12px;padding:10px 12px;background:#ffffff08;border-radius:8px}.unitwatch-call-item.critical-call{background:#ef44441a;border-left:2px solid var(--color-danger)}.unitwatch-call-date{font-size:12px;color:var(--text-muted)}.unitwatch-call-main{min-width:0}.unitwatch-call-desc{font-size:13px;color:var(--text-primary)}.unitwatch-call-meta{margin-top:2px;font-size:11px;color:var(--text-muted);word-break:break-word}.unitwatch-call-notice{display:inline-flex;align-items:center;margin-left:8px;vertical-align:-2px;color:var(--accent);cursor:default}.unitwatch-call-notice-icon{width:13px;height:13px;flex-shrink:0;stroke:currentColor}.unitwatch-call-type{font-size:11px;color:var(--text-muted)}.unitwatch-call-impact{font-size:12px;font-weight:600;padding:4px 8px;border-radius:4px;text-align:center}.unitwatch-call-impact.high{background:#ef444433;color:var(--color-danger)}.unitwatch-call-impact.medium{background:#f59e0b33;color:var(--color-warning)}.unitwatch-call-impact.low{background:#22c55e33;color:var(--color-success)}.unitwatch-empty{padding:60px 20px}.unitwatch-empty-icon{font-size:48px;margin-bottom:16px;opacity:.5}.unitwatch-empty-text{font-size:15px}
