body.modern-wms aside.side.p3-active > :not(.p3-panel):not(.p3-workspaces):not(.side-drawer-head){display:none!important}
body.modern-wms .p3-navigation{position:absolute;left:96px;top:16px;display:flex;align-items:center;gap:5px;max-width:calc(100% - 112px);background:#fffffff2;border:1px solid #cdd8dd;border-radius:9px;padding:6px;z-index:var(--wms-z-navigation);flex-wrap:wrap;box-shadow:0 3px 10px #23323b08}
body.modern-wms .p3-navigation button{font:500 11px/1.4 system-ui;padding:6px 8px;border:1px solid #d7e0e7;border-radius:5px;background:#fff;color:var(--wms-text);cursor:pointer}body.modern-wms .p3-navigation button:disabled{opacity:.4;cursor:default}body.modern-wms #p3Breadcrumb{display:flex;align-items:center;gap:4px;font:500 11px/1.4 system-ui;color:var(--wms-muted);min-width:0;flex-wrap:wrap}body.modern-wms #p3Breadcrumb button{border:0;background:none;padding:4px 3px}body.modern-wms #p3Breadcrumb strong{color:var(--wms-selected-text);font-weight:600;max-width:min(280px,35vw);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.modern-wms .p3-workspaces{position:sticky;top:60px;z-index:4;min-height:46px;display:flex;gap:4px;padding:4px 16px;border-bottom:1px solid var(--wms-line);background:#fff}body.modern-wms .p3-workspaces button{flex:1;min-height:34px;border:1px solid var(--wms-controlLine);border-radius:6px;background:#fff;color:#4d6478;cursor:pointer;font:600 12px system-ui}body.modern-wms .p3-workspaces button[aria-pressed=true]{background:var(--wms-blue);border-color:var(--wms-blue-text);color:#fff}
body.modern-wms .p3-panel{padding:16px;color:var(--wms-text);background:#fff}body.modern-wms .p3-panel[hidden],body.modern-wms .p3-panel [hidden],body.modern-wms .p3-label-layer [hidden],body.modern-wms .p2-tabs[hidden]{display:none!important}body.modern-wms .p3-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}body.modern-wms .p3-heading h3{font:650 14px/1.4 system-ui;margin:0}body.modern-wms .p3-source{font-size:10px;font-weight:700;border:1px solid #dcc48d;background:#fbf5e9;color:#7d5d20;border-radius:4px;padding:4px 5px;white-space:nowrap}
body.modern-wms .p3-mode-switch{display:flex;gap:5px}body.modern-wms .p3-mode-switch button{flex:1;padding:8px;border:1px solid var(--wms-controlLine);border-radius:6px;font:500 12px system-ui;color:#485f75;background:#fff;cursor:pointer}body.modern-wms .p3-mode-switch button[aria-pressed=true]{background:#f5f0e4;border-color:#c9b37d;color:#795b27}
body.modern-wms .p3-player{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:12px 0;padding:8px;background:var(--wms-mutedSurface);border-radius:7px}body.modern-wms .p3-player button,body.modern-wms .p3-player select{background:#fff;border:1px solid var(--wms-controlLine);border-radius:5px;padding:7px;color:#405969;font:500 12px system-ui;cursor:pointer}body.modern-wms .p3-player button:disabled,body.modern-wms .p3-player select:disabled{opacity:.45;cursor:default}body.modern-wms .p3-player label{font-size:11px;color:#617487;display:flex;align-items:center;gap:4px}body.modern-wms .p3-player b{margin-left:auto;font:650 12px ui-monospace,monospace;color:#49697c}
body.modern-wms .p3-panel-tabs{display:flex;gap:0;border-bottom:1px solid var(--wms-line);padding-bottom:0;margin:12px 0}body.modern-wms .p3-panel-tabs button{flex:1;min-height:36px;border:0;border-bottom:2px solid transparent;border-radius:0;padding:8px;background:none;color:var(--wms-muted);font:500 12px system-ui;cursor:pointer}body.modern-wms .p3-panel-tabs button[aria-pressed=true]{background:none;border-bottom-color:var(--wms-blue-text);color:var(--wms-blue-text);font-weight:600}
body.modern-wms .p3-area-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}body.modern-wms .p3-area-card{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-height:88px;padding:12px;border:1px solid var(--wms-line);border-radius:7px;background:var(--wms-canvas);color:var(--wms-text);text-align:left;cursor:pointer;font:500 12px system-ui}body.modern-wms .p3-area-card.selected{border-color:#8c6aaf;background:var(--wms-selected-soft)}body.modern-wms .p3-area-card span{color:var(--wms-muted);font-size:11px;line-height:1.6}
body.modern-wms .p3-list-item{width:100%;text-align:left;display:flex;flex-direction:column;gap:6px;padding:10px 9px;margin-bottom:6px;border:1px solid var(--wms-line);border-radius:7px;background:var(--wms-canvas);color:var(--wms-text);font:400 12px/1.5 system-ui;cursor:pointer}body.modern-wms .p3-list-item strong{display:flex;justify-content:space-between;align-items:center;gap:6px;font-weight:600}body.modern-wms .p3-list-item small{color:var(--wms-muted);font-size:10px;overflow-wrap:anywhere}body.modern-wms .p3-list-item.selected{border-color:#9a7abe;background:var(--wms-selected-soft)}body.modern-wms .p3-state{font-size:10px;font-style:normal;white-space:nowrap;padding:2px 5px;background:#e8edf1;color:var(--wms-muted);border-radius:4px}body.modern-wms .p3-state.running{background:#e6f1eb;color:#2b684a}body.modern-wms .p3-state.waiting{background:#f7edda;color:#886023}body.modern-wms .p3-state.alarm{background:#fae9e8;color:#a53835}body.modern-wms .p3-state.offline,body.modern-wms .p3-state.unknown{background:#e7ebef;color:var(--wms-muted)}
body.modern-wms .p3-filter,body.modern-wms .p3-detail label,body.modern-wms #p3Trace label{font-size:12px;color:var(--wms-muted);display:grid;gap:6px;margin:10px 0}body.modern-wms .p3-filter select,body.modern-wms .p3-detail select,body.modern-wms #p3Trace select,body.modern-wms #p3Trace input{background:#fff;border:1px solid var(--wms-controlLine);padding:8px;border-radius:5px;color:#354f62;font:400 12px system-ui;width:100%;box-sizing:border-box}
body.modern-wms .p3-detail{margin-top:14px;padding:12px;background:var(--wms-canvas);border:1px solid var(--wms-line);border-radius:8px;font:400 12px/1.6 system-ui;overflow-wrap:anywhere}body.modern-wms .p3-detail h4{font-size:14px;font-weight:600;margin:0 0 8px}body.modern-wms .p3-detail dl{display:grid;grid-template-columns:62px 1fr;gap:7px;margin:10px 0}body.modern-wms .p3-detail dt{color:var(--wms-muted)}body.modern-wms .p3-detail dd{margin:0;color:var(--wms-text)}body.modern-wms .p3-tag{font:400 10px/1.5 ui-monospace,monospace;color:#85642a}body.modern-wms .p3-detail button,body.modern-wms #p3Trace button{border:1px solid #c8d8e3;border-radius:5px;background:#eaf2f7;color:var(--wms-blue-text);padding:8px;font:500 11px system-ui;cursor:pointer}body.modern-wms .p3-reason{padding:8px;border-left:3px solid #b68837;background:#fbf4e7;color:#866227}body.modern-wms .p3-task-actions{display:flex;flex-wrap:wrap;gap:6px}body.modern-wms .p3-flow{margin:10px 0;padding-left:20px;color:#4e687c}body.modern-wms .p3-events{list-style:none;padding:0;font-size:11px;color:#5a7184;border-top:1px solid #dee6ec}body.modern-wms .p3-events li{padding:7px 0;border-bottom:1px solid #e4eaf0}body.modern-wms .p3-events time{font-family:ui-monospace,monospace;color:#47708b}
body.modern-wms #p3Trace{margin-top:12px;padding:12px;border:1px solid #d7c190;background:#fbf7ee;border-radius:7px;font-size:12px;color:#665732}body.modern-wms #p3Trace h4{margin:0;font-size:14px}body.modern-wms #p3Trace p{line-height:1.6}body.modern-wms .p3-diagnostics{border-top:1px solid var(--wms-line);margin-top:15px;padding-top:12px;font-size:11px;color:var(--wms-muted)}body.modern-wms .p3-diagnostics summary{cursor:pointer}body.modern-wms .p3-layer-controls{margin-top:12px;padding-top:10px;border-top:1px solid #d7e1e7;display:grid;gap:8px;color:#425f72;font:400 12px system-ui}body.modern-wms .p3-layer-controls label{display:flex;gap:7px;align-items:center}body.modern-wms .p3-layer-controls p{font-size:10px;line-height:1.5;color:var(--wms-muted);margin:2px 0}
body.modern-wms .p3-label-layer{position:absolute;inset:0;pointer-events:none;z-index:18}body.modern-wms .p3-label-layer button{position:absolute;transform:translate(-50%,-50%);pointer-events:auto;padding:6px 9px;max-width:180px;border:1px solid #c5d2dc;border-radius:5px;background:#fffffff0;color:var(--wms-text);box-shadow:0 2px 6px #23323b0a;font:500 11px system-ui;cursor:pointer;white-space:nowrap}body.modern-wms .p3-label-layer .p3-device-label{font-size:10px;padding:4px 7px}body.modern-wms .p3-device-label[data-status=alarm]{border-color:#d78c83;color:#9b3933}body.modern-wms .p3-device-label[data-status=offline],body.modern-wms .p3-device-label[data-status=unknown]{color:#637888;background:#f0f4f6}body.modern-wms .p3-label-layer button:focus-visible{outline:2px solid #764fa3;outline-offset:2px}
body.modern-wms .p2-trace-btn{margin-top:9px;padding:7px 9px;background:var(--wms-blue-soft);border:1px solid #c7d9e7;border-radius:5px;color:var(--wms-blue-text);font:500 12px system-ui;cursor:pointer}
@media(max-width:1100px){body.modern-wms .p3-navigation{max-width:calc(100% - 112px)}}
@media(max-width:767px){body.modern-wms .p3-navigation{left:83px;top:12px;right:12px;max-width:none;gap:3px;padding:5px}body.modern-wms .p3-navigation button{font-size:10px;padding:5px}body.modern-wms #p3Breadcrumb{width:100%;font-size:10px}body.modern-wms .p3-label-layer button{font-size:10px;padding:5px;max-width:140px}body.modern-wms .p3-heading h3{font-size:15px}body.modern-wms .p3-source{font-size:9px}body.modern-wms .p3-player button{min-height:36px}}
@media(prefers-reduced-motion:reduce){body.modern-wms .p3-label-layer button{transition:none}}

.modern-wms .p3-playback{margin-top:12px;color:var(--wms-muted);font-size:11px}.modern-wms .p3-playback summary{cursor:pointer;min-height:28px;line-height:28px}.modern-wms .p3-player{margin:8px 0}.modern-wms .p3-navigation button{min-height:32px}.modern-wms #p3Breadcrumb{flex:1}.modern-wms #p3Open{white-space:nowrap}.modern-wms .p3-area-card span{line-height:1.6}.modern-wms .p3-workspaces button{border-color:var(--wms-controlLine)}.modern-wms .p3-workspaces button[aria-pressed=true]{background:var(--wms-blue);border-color:var(--wms-blue-text);color:#fff}
@media(pointer:coarse){.modern-wms .p3-navigation button,.modern-wms .p3-playback summary,.modern-wms .p3-panel-tabs button,.modern-wms .p3-mode-switch button,.modern-wms .p3-player button,.modern-wms .p3-workspaces button{min-height:44px}}
