/* Full app workspaces share existing panes; the Leaflet container is never replaced. */
body.fw-full-workspace #app{display:block!important;position:fixed!important;inset:0!important;width:100%!important;height:100dvh!important;overflow:hidden!important}
body.fw-full-workspace #app #sidebar{display:flex!important;flex-direction:column!important;position:absolute!important;inset:0!important;width:100%!important;max-width:none!important;height:100%!important;max-height:none!important;min-width:0!important;transform:none!important;visibility:visible!important;overflow:hidden!important;padding:0!important;background:var(--cd-gray-3,#eeefef)!important}
body.fw-full-workspace #mapWrap,body.fw-full-workspace #sidebarPanelTab,body.fw-full-workspace #incidentPanel,body.fw-full-workspace #incidentPanelTab,body.fw-full-workspace #mobileModuleBar,body.fw-full-workspace #sidebarCollapseBtn{display:none!important}
/* The archive is a workspace, while Zur Karte opens the live map. */
body.fw-mission-screen #app #mapWrap,body.fw-mission-screen #sidebarPanelTab,body.fw-mission-screen #mobileModuleBar{display:none!important}
body.fw-mission-screen #app #sidebar{display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100dvh!important;min-width:0!important;max-width:none!important;visibility:visible!important;transform:none!important;overflow:hidden!important}
body.fw-mission-screen #sidebar>.topbar,body.fw-mission-screen #sidebar>.level-switch,body.fw-mission-screen #sidebar>.sidebar-bottom-collapse{display:none!important}
@media(max-width:699px){
 body.fw-mission-screen #app #sidebar>#level-mission.active{display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-height:none!important;box-sizing:border-box;overflow:auto!important;padding:0 max(12px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))!important;background:var(--cd-gray-3,#eeefef)}
 body.fw-mission-screen #level-mission.active .fw-mission-fullscreen-bar{display:flex;position:sticky;top:0;z-index:2;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:max(12px,env(safe-area-inset-top)) 0 12px;background:var(--cd-gray-3,#eeefef);border-bottom:1px solid var(--cd-border,#b8c0c5);margin:0 0 12px}
 body.fw-mission-screen #level-mission.active .fw-mission-fullscreen-bar strong{flex-basis:100%;overflow-wrap:anywhere}
 body.fw-mission-screen #level-mission.active .fw-mission-fullscreen-bar button{min-height:44px;background:var(--cd-gray-1,#20292d);color:#fff}
}
body.fw-full-workspace #sidebar>.topbar{display:flex!important;position:relative!important;flex:0 0 auto!important;min-height:56px!important;max-height:100px!important;gap:14px!important;align-items:center!important;padding:8px max(16px,env(safe-area-inset-right)) 8px max(16px,env(safe-area-inset-left))!important}
body.fw-full-workspace #sidebar>.topbar .brand-block{display:grid!important;grid-template-columns:64px minmax(0,1fr)!important;flex:1 1 auto!important;width:auto!important;min-width:0!important}
body.fw-full-workspace #sidebar>.topbar .brand-logo{width:64px!important;height:58px!important;max-width:64px!important;max-height:58px!important}
body.fw-full-workspace #sidebar>.topbar .user-session-bar{flex:0 1 400px!important;width:auto!important;min-width:220px!important;max-width:50%!important;padding:0!important;border:0!important}
body.fw-full-workspace #sidebar>.level-switch{display:grid!important;position:relative!important;flex:0 0 auto!important;grid-template-columns:repeat(9,minmax(0,1fr))!important;width:100%!important;max-height:25dvh!important;overflow:auto!important;gap:0!important}
body.fw-full-workspace #sidebar>.level-switch .level-btn{min-width:0!important;overflow-wrap:anywhere!important;min-height:48px!important;padding:8px!important;font-size:12px!important;line-height:1.25!important}
body.fw-full-workspace #sidebar>.levelpane.active{display:block!important;position:relative!important;inset:auto!important;flex:1 1 auto!important;align-self:center!important;width:100%!important;max-width:1520px!important;min-height:0!important;height:auto!important;max-height:none!important;margin:0!important;padding:16px max(16px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))!important;overflow:auto!important;box-sizing:border-box!important}
.fw-workspace-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:0 0 14px;margin:0 0 14px;border-bottom:3px solid var(--cd-yellow,#f2dd1e);color:var(--cd-black,#000)}
.fw-workspace-toolbar>button{min-height:44px;padding:9px 14px;font-size:14px;font-weight:750}
.fw-workspace-toolbar>strong{font-size:24px;line-height:1.2}
body.fw-full-workspace #sidebar #level-materialwart .mw-head{display:none!important}
body.fw-full-workspace #sidebar #level-materialwart .mw-home-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important;margin:0!important}
body.fw-full-workspace #sidebar #level-materialwart .mw-module-card{min-height:115px!important;padding:18px!important;grid-template-columns:36px minmax(0,1fr)!important;gap:10px!important}
body.fw-full-workspace #sidebar #level-materialwart .mw-module-card .mw-icon{font-size:30px!important}
body.fw-full-workspace #sidebar #level-materialwart .mw-module-card b{font-size:20px!important}
body.fw-full-workspace #sidebar #level-materialwart .mw-module-badge{grid-column:2!important;grid-row:2!important;max-width:none!important;font-size:12px!important;justify-self:start}
body.fw-full-workspace #level-materialsuche .ms-head,body.fw-full-workspace #level-materialsuche .ms-detail-head{padding:16px!important;margin:0 0 14px!important}
body.fw-full-workspace #level-materialsuche h2{font-size:24px!important}
body.fw-full-workspace #level-materialsuche .ms-head p,body.fw-full-workspace #level-materialsuche .ms-detail-head p{font-size:14px!important}
body.fw-full-workspace #level-materialsuche .ms-searchbar{max-width:900px;padding:8px 12px!important;margin:14px 0!important}
body.fw-full-workspace #level-materialsuche .ms-searchbar input{min-height:42px!important;font-size:17px!important}
body.fw-full-workspace #level-materialsuche .ms-vehicle-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))!important;gap:14px!important}
body.fw-full-workspace #level-materialsuche .ms-vehicle-card{min-height:180px!important;padding:16px!important}
body.fw-full-workspace #level-materialsuche .ms-vehicle-card b,body.fw-full-workspace #level-materialsuche .ms-group h3{font-size:18px!important}
body.fw-full-workspace #level-materialsuche .ms-vehicle-card>span,body.fw-full-workspace #level-materialsuche .ms-vehicle-card small{font-size:13px!important}
body.fw-full-workspace #level-materialsuche .ms-material-row,body.fw-full-workspace #level-materialsuche .ms-detail-row{padding:12px!important;gap:12px!important}
body.fw-full-workspace #level-materialsuche .ms-material-row b,body.fw-full-workspace #level-materialsuche .ms-detail-main b{font-size:16px!important}
body.fw-full-workspace #level-materialsuche .ms-material-row small,body.fw-full-workspace #level-materialsuche .ms-detail-main span,body.fw-full-workspace #level-materialsuche .ms-detail-position span,body.fw-full-workspace #level-materialsuche .ms-detail-position small{font-size:12px!important}
body.fw-full-workspace #level-materialsuche .ms-place strong,body.fw-full-workspace #level-materialsuche .ms-detail-position strong,body.fw-full-workspace #level-materialsuche .ms-qty{font-size:14px!important}
body.fw-full-workspace #level-materialsuche .ms-status{font-size:11px!important}
.fw-server-dialog.fw-fullscreen-dialog{padding:0!important;display:block!important;background:var(--cd-gray-3,#eeefef)!important;overflow:auto!important;overscroll-behavior:contain}
body .fw-fullscreen-dialog>.fw-server-panel{width:100%!important;max-width:none!important;min-height:100dvh!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0 max(20px,calc((100vw - 1480px)/2)) max(24px,env(safe-area-inset-bottom))!important}
body .fw-fullscreen-dialog>.fw-server-panel>header{position:sticky;top:0;z-index:20;min-height:76px;padding:12px max(4px,env(safe-area-inset-right)) 12px max(4px,env(safe-area-inset-left));box-sizing:border-box;background:var(--cd-gray-1,#1e2529);color:#fff;border-bottom:5px solid var(--cd-yellow,#f2dd1e);margin:0 0 16px}
body .fw-fullscreen-dialog>.fw-server-panel>header h2{color:inherit;min-width:0;overflow-wrap:anywhere}
body .fw-fullscreen-dialog #fwServerClose{flex:0 0 auto;min-height:44px;white-space:nowrap;font-size:14px}
body .fw-fullscreen-dialog .fw-check-history-item{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,.8fr) auto}
@media(max-width:1000px){body.fw-full-workspace #sidebar>.level-switch{grid-template-columns:repeat(5,minmax(0,1fr))!important}body.fw-full-workspace #sidebar #level-materialwart .mw-home-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:600px){body.fw-full-workspace #sidebar>.topbar{min-height:64px!important;max-height:90px!important;gap:5px!important;padding:6px 10px!important}body.fw-full-workspace #sidebar>.topbar .brand-block{grid-template-columns:42px minmax(0,1fr)!important}body.fw-full-workspace #sidebar>.topbar .brand-logo{width:42px!important;height:42px!important}body.fw-full-workspace #sidebar>.topbar .user-session-bar{min-width:0!important;max-width:43%!important}body.fw-full-workspace #sidebar>.level-switch{grid-template-columns:repeat(3,minmax(0,1fr))!important;max-height:24dvh!important}body.fw-full-workspace #sidebar>.level-switch .level-btn{font-size:10px!important;min-height:42px!important;padding:6px!important}body.fw-full-workspace #sidebar>.levelpane.active{padding:12px 10px 20px!important}body.fw-full-workspace #sidebar #level-materialwart .mw-home-grid{grid-template-columns:1fr!important}body.fw-full-workspace #sidebar #level-materialwart .mw-module-card{min-height:86px!important;padding:14px!important}body.fw-full-workspace #sidebar #level-materialwart .mw-module-card b{font-size:18px!important}.fw-workspace-toolbar>strong{font-size:20px}body.fw-full-workspace #level-materialsuche .ms-vehicle-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.fw-full-workspace #level-materialsuche .ms-vehicle-card{padding:10px!important;min-height:160px!important}body.fw-full-workspace #level-materialsuche .ms-vehicle-card b{font-size:15px!important}body.fw-full-workspace #level-materialsuche .ms-material-row,body.fw-full-workspace #level-materialsuche .ms-detail-row{gap:8px!important;padding:10px!important}body .fw-fullscreen-dialog>.fw-server-panel{padding:0 12px 20px!important}body .fw-fullscreen-dialog>.fw-server-panel>header h2{font-size:19px!important}body .fw-fullscreen-dialog>.fw-server-panel>header{gap:8px;min-height:70px}body .fw-fullscreen-dialog .fw-check-history-item{grid-template-columns:minmax(0,1fr)!important}body .fw-fullscreen-dialog .fw-check-object-grid{grid-template-columns:minmax(0,1fr)!important}}
