.wg-monitor-content{position:relative;height:calc(100vh - 72px);padding:0!important;overflow:hidden}
.wg-monitor{position:relative;width:100%;height:100%;min-height:520px;background:#e9e7e3;overflow:hidden}
.wg-map{position:absolute!important;inset:0;width:100%;height:100%!important;min-height:0!important;border:0!important;border-radius:0!important;box-shadow:none!important}
.wg-monitor-panel{position:absolute;z-index:550;top:14px;bottom:14px;left:14px;width:376px;display:flex;flex-direction:column;background:#fff;border:1px solid #e1ded9;border-radius:13px;box-shadow:0 8px 28px #2b2a282b;overflow:hidden;transition:transform .22s ease}
.wg-panel-head{display:flex;align-items:center;justify-content:space-between;padding:17px 17px 12px}
.wg-panel-head h3{margin:0 0 4px;font-size:17px;color:#2b2a28}
.wg-panel-heading{display:grid;gap:4px}
.wg-panel-heading h3{margin:0;display:flex;min-width:0;align-items:center;flex-wrap:nowrap;white-space:nowrap}
.wg-panel-heading h3 .ui-icon{width:30px;height:30px}
.wg-panel-head span{font-size:12px;color:#85807a}
.wg-panel-head span b{color:#2b2a28}
.wg-panel-head>button{width:31px;height:31px;padding:0;border-radius:7px;background:#f5f4f2;color:#75716c;font-size:24px;line-height:1}
.wg-monitor-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:3px;padding:0 12px 12px;border-bottom:1px solid #e9e7e3}
.wg-monitor-stats button{display:grid;gap:3px;padding:8px 2px;background:transparent;border:0;border-radius:8px;color:#817c76}
.wg-monitor-stats button:hover,.wg-monitor-stats button.active{background:#fff2e6;color:#d87312}
.wg-monitor-stats b{font-size:16px}
.wg-monitor-stats span{font-size:10px;white-space:nowrap}
.wg-monitor-search{display:grid;grid-template-columns:30px minmax(0,1fr) 42px;align-items:center;margin:12px;border:1px solid #dedbd7;border-radius:8px;overflow:hidden;background:#faf9f7}
.wg-monitor-search>span{display:grid;place-items:center;color:#96918b}
.wg-monitor-search input{height:38px;padding:0 5px;border:0;background:transparent;font-size:12px}
.wg-monitor-search input:focus{outline:0}
.wg-monitor-search select{width:42px;height:38px;padding:0;border:0;border-left:1px solid #e6e3df;border-radius:0;background:#fff;color:transparent;cursor:pointer}
.wg-monitor-search select:focus{outline:0}
.wg-device-list{flex:1;min-height:0;overflow:auto;border-top:1px solid #eceae7}
.wg-device-row{width:100%;display:grid;grid-template-columns:43px minmax(0,1fr) auto;gap:10px;align-items:center;padding:13px 14px;background:#fff;border:0;border-bottom:1px solid #eceae7;border-radius:0;text-align:left;color:#3f3d3a}
.wg-device-row:hover{background:#fbfaf8}
.wg-device-row.selected{position:relative;background:#fff5ec}
.wg-device-row.selected:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#f28c28}
.wg-device-icon{position:relative;display:grid;place-items:center}
.wg-device-icon>i{position:absolute;right:1px;bottom:2px;width:9px;height:9px;border:2px solid #fff;border-radius:50%;background:#9b9792}
.wg-device-row.online .wg-device-icon>i{background:#17845b}
.wg-device-row.offline .wg-device-icon>i{background:#b7443e}
.wg-device-copy{display:grid;gap:3px;min-width:0}
.wg-device-copy>span{display:flex;align-items:center;gap:7px;min-width:0}
.wg-device-copy b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:#2b2a28}
.wg-device-copy em{padding:2px 5px;border-radius:9px;background:#efedea;color:#817c76;font-size:9px;font-style:normal}
.wg-device-copy em.online{background:#e6f7f1;color:#14724e}
.wg-device-copy em.offline{background:#fdeeee;color:#a93d38}
.wg-device-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#8d8882;font-size:10px}
.wg-device-side{display:grid;gap:5px;text-align:right;color:#918c86;font-size:10px}
.wg-device-side>b{font-size:13px;color:#3f3d3a}
.wg-device-side>b small{font-size:9px;font-weight:500;color:#918c86}
.wg-monitor-panel>footer{display:grid;gap:3px;min-height:36px;padding:7px 13px;border-top:1px solid #e9e7e3;background:#fbfaf8;color:#8d8882;font-size:10px}
.wg-monitor-panel>footer .error{margin:0;color:#a93d38}
.wg-panel-open{display:none;position:absolute;z-index:551;left:14px;top:18px;width:35px;height:38px;padding:0;border-radius:8px;background:#fff;color:#68635e;font-size:24px;box-shadow:0 5px 18px #2b2a2826}
.wg-monitor.panel-collapsed .wg-monitor-panel{transform:translateX(calc(-100% - 24px))}
.wg-monitor.panel-collapsed .wg-panel-open{display:block}
.wg-selected-device{position:absolute;z-index:540;top:18px;left:406px;width:460px;background:#fff;border:1px solid #e3e0db;border-radius:12px;box-shadow:0 8px 28px #2b2a282e;overflow:hidden}
.wg-selected-device.hidden{display:none}
.wg-selected-head{display:grid;grid-template-columns:46px minmax(0,1fr) 31px 31px;align-items:center;gap:9px;padding:12px 14px;border-bottom:1px solid #e8e6e2}
.wg-selected-head h3{margin:0;color:#2b2a28;font-size:15px}
.wg-selected-head p{display:flex;align-items:center;gap:5px;margin:4px 0 0;color:#615d58;font-size:11px}
.wg-selected-head p small{color:#89847e}
.wg-selected-head>button{width:30px;height:30px;padding:0;border-radius:7px;background:transparent;color:#7c7771;font-size:18px}
.wg-selected-head>button:hover{background:#f3f1ee}
.wg-state-dot{width:8px;height:8px;border-radius:50%;background:#9b9792}
.wg-state-dot.online{background:#17845b}.wg-state-dot.offline{background:#b7443e}
.wg-selected-grid{display:grid;grid-template-columns:1fr 1fr;padding:6px 14px 9px}
.wg-telemetry-item{display:grid;grid-template-columns:29px minmax(0,1fr);align-items:center;gap:8px;min-height:48px;border-bottom:1px solid #eceae7}
.wg-telemetry-item:nth-last-child(-n+2){border-bottom:0}
.wg-telemetry-icon{display:grid;place-items:center;width:27px;height:27px;border-radius:7px;background:#fff1e5;color:#d87312;font-size:10px;font-weight:800}
.wg-telemetry-item>span:last-child{display:grid;gap:2px;min-width:0}
.wg-telemetry-item small{color:#918c86;font-size:9px}
.wg-telemetry-item b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#3f3d3a;font-size:11px}
.wg-selected-location{display:grid;grid-template-columns:24px 1fr;gap:8px;align-items:center;margin:0 14px 11px;padding:10px;border-radius:8px;background:#f7f5f2}
.wg-selected-location>span{color:#d87312}
.wg-selected-location div{display:grid;gap:2px}
.wg-selected-location small{color:#96918b;font-size:9px}
.wg-selected-location b{font-size:11px;color:#45413d}
.wg-selected-actions{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid #e8e6e2}
.wg-selected-actions button{display:grid;place-items:center;gap:3px;padding:9px 5px;border:0;border-right:1px solid #e8e6e2;border-radius:0;background:#fff;color:#615d58;font-size:10px}
.wg-selected-actions button:last-child{border-right:0}
.wg-selected-actions button:hover:not(:disabled){background:#fff5ec;color:#c96516}
.wg-selected-actions button:disabled{opacity:.38;cursor:not-allowed}
.wg-selected-actions span{font-size:17px;color:#f28c28}
.wg-map-tools{position:absolute;z-index:530;right:14px;top:14px;display:grid;gap:7px}
.wg-map-tools button{width:38px;height:38px;padding:0;border:1px solid #e3e0db;border-radius:8px;background:#fff;color:#615d58;font-size:17px;box-shadow:0 4px 15px #2b2a281f}
.wg-map-legend{position:absolute;z-index:520;left:50%;bottom:14px;display:flex;gap:14px;transform:translateX(-50%);padding:7px 12px;border-radius:8px;background:#fffc;color:#68635e;font-size:10px;box-shadow:0 3px 12px #2b2a2817;backdrop-filter:blur(5px)}
.wg-map-legend span{display:flex;align-items:center;gap:5px}
.wg-map-legend i{width:8px;height:8px;border-radius:50%;background:#9b9792}
.wg-map-legend i.online{background:#17845b}.wg-map-legend i.offline{background:#b7443e}
.wg-map-tooltip{border:0!important;border-radius:6px!important;box-shadow:0 3px 12px #2b2a2826!important;color:#3f3d3a!important;font-weight:700!important}
.wg-monitor .leaflet-control-zoom{margin-right:14px!important;margin-bottom:48px!important;border:0!important;box-shadow:0 4px 15px #2b2a281f!important}
.wg-monitor .leaflet-control-zoom a{border-color:#e6e3df!important;color:#615d58!important}
.wg-monitor .monitor-empty{display:grid;gap:6px;padding:35px 16px;color:#918c86;font-size:11px}
.wg-monitor .monitor-empty b{color:#57534f;font-size:13px}

@media(max-width:1180px){
  .wg-monitor-panel{width:330px}
  .wg-selected-device{left:360px;width:420px}
}
@media(max-width:900px){
  .wg-selected-device{top:auto;right:14px;bottom:14px;left:360px;width:auto}
}
@media(max-width:760px){
  .wg-monitor-content{height:calc(100vh - 72px)!important;padding:0!important}
  .wg-monitor{min-height:460px}
  .wg-monitor-panel{top:8px;bottom:8px;left:8px;width:min(340px,calc(100vw - 16px))}
  .wg-selected-device{right:8px;bottom:8px;left:8px;width:auto;max-height:52vh;overflow:auto}
  .wg-monitor:not(.panel-collapsed) .wg-selected-device{display:none}
  .wg-panel-open{left:8px;top:8px}
  .wg-map-tools{right:8px;top:8px}
  .wg-map-legend{display:none}
}

/* Professional monitoring filters 2026-08-02 */
.wg-monitor-filters{display:grid;gap:10px;padding:12px;border-top:1px solid var(--line,#ebe8e4);background:var(--surface,#fff)}
.wg-search-field{display:grid;grid-template-columns:38px minmax(0,1fr) 34px;align-items:center;min-height:43px;border:1px solid var(--line,#dcd8d2);border-radius:10px;background:var(--surface-soft,#faf9f7);transition:border-color .16s,box-shadow .16s,background .16s}
.wg-search-field:focus-within{border-color:#f28c28;background:var(--surface,#fff);box-shadow:0 0 0 3px rgba(242,140,40,.13)}
.wg-search-icon{display:grid;place-items:center;color:var(--muted,#8d8882)}
.wg-search-icon svg{width:18px;height:18px}
.wg-search-field input{width:100%;height:41px;padding:0;border:0;background:transparent;color:var(--text,#2b2a28);font-size:12px;outline:0}
.wg-search-field input::placeholder{color:var(--muted,#96918b)}
.wg-search-field input::-webkit-search-cancel-button{display:none}
.wg-search-clear{width:28px;height:28px;padding:0;border:0;border-radius:7px;background:transparent;color:var(--muted,#817c76);font-size:20px;line-height:1}
.wg-search-clear:hover{background:var(--surface-accent,#fff1e4);color:var(--orange-dark,#b85f09)}
.wg-filter-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:end}
.wg-status-filter,.wg-position-filter-group{display:grid;grid-template-rows:14px 38px;gap:5px;min-width:0}
.wg-status-filter>span,.wg-position-filter-group>span{color:var(--muted,#77716b);font-size:10px;font-weight:700;line-height:14px}
.wg-status-filter select{width:100%;height:38px;margin:0;padding:0 34px 0 11px;border:1px solid var(--line,#dcd8d2);border-radius:8px;background-color:var(--surface,#fff);color:var(--text,#2b2a28);font-size:11px;font-weight:600;cursor:pointer}
.wg-status-filter select:focus{border-color:#f28c28;outline:3px solid rgba(242,140,40,.12)}
.wg-position-filter{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;height:38px;margin:0;padding:0 10px;border:1px solid var(--line,#dcd8d2);border-radius:8px;background:var(--surface,#fff);color:var(--muted,#77716b);font-size:10px;font-weight:700;white-space:nowrap}
.wg-position-filter .ui-icon{width:23px;height:23px;background:transparent;color:inherit}
.wg-position-filter .ui-icon svg{width:15px;height:15px}
.wg-position-filter:hover,.wg-position-filter.active{border-color:#efc79f;background:var(--surface-accent,#fff1e4);color:var(--orange-dark,#b85f09)}
.wg-filter-summary{display:flex;align-items:center;justify-content:space-between;min-height:20px;color:var(--muted,#8d8882);font-size:10px}
.wg-filter-summary button{padding:2px 0;border:0;background:transparent;color:var(--orange-dark,#b85f09);font-size:10px;font-weight:700}
.wg-filter-summary button:hover{text-decoration:underline}
:root[data-theme="dark"] .wg-monitor-filters{background:var(--surface,#282725);border-color:var(--line,#46433f)}
:root[data-theme="dark"] .wg-search-field,:root[data-theme="dark"] .wg-status-filter select,:root[data-theme="dark"] .wg-position-filter{background:var(--surface-soft,#302f2d);border-color:var(--line,#46433f);color:var(--text,#e7e3de)}
@media(max-width:380px){
  .wg-filter-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .wg-position-filter{width:100%;gap:4px;padding:0 6px;font-size:9.5px}
  .wg-position-filter .ui-icon{width:20px;height:20px}
}