/* Phone/tablet layout. Desktop rules and business permissions stay unchanged. */
.mobile107-bar,.mobile107-backdrop,.mobile107-brand{display:none}
@media screen and (max-width:900px){
 body.mobile107{--mobile107-top:150px;--mobile107-header:100px}
 body.mobile107 .topbar{position:relative!important;top:auto!important;height:auto!important;min-height:0!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:6px!important;padding:8px 12px!important;overflow:visible!important}
 body.mobile107 .topbar-brand{display:flex!important;align-items:center!important;gap:10px!important;width:100%!important;max-width:100%!important;flex:none!important;overflow:visible!important}
 body.mobile107 .epci-logo,body.mobile107 #partnerHeaderFallback{width:68px!important;min-width:68px!important;height:40px!important;max-height:40px!important;object-fit:contain!important}
 body.mobile107 .topbar-product{min-width:0!important;flex:1!important;width:auto!important;overflow:visible!important}
 body.mobile107 .topbar-product h1{display:none!important}
 body.mobile107 .mobile107-brand{display:block;font-size:12px;font-weight:600;line-height:1.2;opacity:.8}
 body.mobile107 .topbar-territory{font-size:14px!important;line-height:1.3!important;white-space:normal!important;overflow-wrap:anywhere!important;max-width:none!important;overflow:visible!important}
 body.mobile107 .top-actions-stack,body.mobile107 .top-actions-stack .top-actions{width:100%!important;max-width:none!important;display:flex!important;justify-content:flex-end!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important}
 body.mobile107 .topbar-signature-wrap{display:none!important}
 body.mobile107 .top-account-chip{flex:1!important;max-width:none!important;min-width:0!important;min-height:44px!important;font-size:12px!important;padding:6px 10px!important}
 body.mobile107 #topAccountIdentityText{max-width:none!important}
 body.mobile107 .top-actions #communicationDock{position:static!important;transform:none!important;display:flex!important;flex:0 0 auto!important;width:auto!important;height:44px!important;max-width:none!important;box-shadow:none!important}
 body.mobile107 .top-actions #communicationDock .communication-dock-main,body.mobile107 .top-actions #communicationDock .communication-dock-compose{width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important}
 body.mobile107 .communication-dock-label,body.mobile107 .communication-dock-grip{display:none!important}
 body.mobile107 .top-actions .logout-compact:not([hidden]){display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:44px!important;width:44px!important;min-height:44px!important;padding:6px!important}
 body.mobile107 .logout-compact>span:last-child{display:none!important}
 body.mobile107 .mobile107-bar{display:flex;position:sticky;top:0;z-index:1600;align-items:center;gap:12px;padding:6px 12px;background:#fff;border-bottom:1px solid #d4e2ec;min-height:56px;box-sizing:border-box}
 .mobile107-bar button{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;border:1px solid #c8dce9;background:#e8f2fa;color:#234a63;border-radius:9px;font:inherit;font-weight:700}
 .mobile107-bar svg{width:20px;height:20px}.mobile107-page{font-size:14px;font-weight:650;color:#234a63;min-width:0;overflow-wrap:anywhere}
 body.mobile107.auth-locked .mobile107-bar{display:none}
 body.mobile107 .shell,body.mobile107.partner-integrated-active:not(.partner-account-view) .shell{display:block!important;min-height:0!important;width:100%!important;max-width:100%!important;overflow:visible!important}
 body.mobile107 .shell>.sidebar,body.mobile107.partner-integrated-active:not(.partner-account-view) .shell>.sidebar{display:none!important;position:fixed!important;top:var(--mobile107-top)!important;bottom:0!important;left:0!important;width:min(360px,calc(100vw - 28px))!important;height:auto!important;max-height:none!important;box-sizing:border-box!important;overflow:auto!important;overscroll-behavior:contain;z-index:1800!important;padding:12px 10px max(18px,env(safe-area-inset-bottom))!important;background:#fff!important;border-right:1px solid #d4e2ec!important;flex-direction:column!important;align-items:stretch!important;gap:6px!important}
 body.mobile107.mobile107-open .shell>.sidebar,body.mobile107.mobile107-open.partner-integrated-active:not(.partner-account-view) .shell>.sidebar{display:flex!important}
 body.mobile107.mobile107-open{overflow:hidden!important}
 body.mobile107.mobile107-open .mobile107-backdrop{display:block;position:fixed;inset:var(--mobile107-top) 0 0;z-index:1700;border:0;border-radius:0;padding:0;background:rgba(13,43,69,.35);width:100%;height:auto}
 body.mobile107 .sidebar .nav-btn,body.mobile107.partner-integrated-active:not(.partner-account-view) #partnerSharedNav .nav-btn{width:100%!important;min-height:44px!important;flex:0 0 auto!important;white-space:normal!important;text-align:left!important;padding:10px 12px!important;box-sizing:border-box!important;font-size:14px!important;align-items:center!important}
 body.mobile107 .sidebar .nav-btn[hidden],body.mobile107 #partnerSharedNav[hidden],body.mobile107 #partnerSharedNav .nav-btn[hidden]{display:none!important}
 body.mobile107 #partnerSharedNav,body.mobile107.partner-integrated-active:not(.partner-account-view) #partnerSharedNav{width:100%!important;display:flex;flex-direction:column!important;gap:6px!important}
 body.mobile107 .spaces40-picker{margin:0 0 8px!important;padding:12px!important;width:100%!important;min-width:0!important;box-sizing:border-box!important;flex:0 0 auto!important}
 body.mobile107 .spaces40-picker button{min-height:44px!important;font-size:13px!important}
 body.mobile107 .content,body.mobile107.partner-integrated-active:not(.partner-account-view) .content{width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:12px!important;box-sizing:border-box!important;overflow-x:clip!important}
 body.mobile107 .content>.view{max-width:100%!important;min-width:0!important}
 body.mobile107 .section-head,body.mobile107 .hero{flex-wrap:wrap!important;gap:12px!important}
 body.mobile107 .filterbar,body.mobile107 .comm-toolbar{display:flex!important;flex-wrap:wrap!important;gap:8px!important;min-width:0!important}
 body.mobile107 .filterbar>*{min-width:0!important;max-width:100%!important;flex:1 1 150px}
 body.mobile107 input:not([type=checkbox]):not([type=radio]),body.mobile107 select,body.mobile107 textarea{max-width:100%!important;min-width:0!important;font-size:16px!important;box-sizing:border-box!important}
 body.mobile107 .tablewrap,body.mobile107 .table-scroll,body.mobile107 .ac-table-wrap{max-width:100%!important;overflow-x:auto!important;overscroll-behavior-x:contain}
 body.mobile107 .map-page-head{display:none!important}
 body.mobile107 #mapWorkspace,body.mobile107.partner-integrated-active #acWorkspace.is-map #acContent{height:calc(100dvh - var(--mobile107-header) - 80px)!important;min-height:340px!important;max-width:100%!important}
 body.mobile107 #acWorkspace.is-map .ac-map-shell{height:100%!important;min-height:0!important}
 body.mobile107 .map-topbar{top:8px!important;left:8px!important;right:8px!important;width:auto!important;min-width:0!important;height:auto!important;min-height:0!important;display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:4px!important;padding:5px!important;overflow:visible!important}
 body.mobile107 .map-topbar:empty{display:none!important}
 body.mobile107 .map-toolbar-btn{min-width:40px!important;width:auto!important;min-height:40px!important;height:40px!important;padding:6px 8px!important;flex:0 0 auto!important;font-size:12px!important}
 body.mobile107 .map-topbar .map-toolbar-btn>span:not(.map-tool-icon){display:none!important}
 body.mobile107 .map-topbar .basemap-collapsible,body.mobile107 .map-topbar .map-measure-control,body.mobile107 .map-topbar .map-analysis-control,body.mobile107 .map-topbar .map-export-control{flex:0 0 auto!important;width:auto!important;min-width:0!important}
 body.mobile107 .map-panel,body.mobile107 #acPartnerMapPanel{top:var(--mobile107-tools,160px)!important;left:8px!important;right:8px!important;bottom:40px!important;width:auto!important;max-width:360px!important;max-height:none!important;box-sizing:border-box!important;overflow:auto!important}
 body.mobile107 .map-panel.collapsed,body.mobile107 #acPartnerMapPanel.collapsed{display:none!important}
 body.mobile107 .basemap-popover,body.mobile107 .map-measure-popover,body.mobile107 .map-analysis-popover,body.mobile107 .map-export-popover,body.mobile107 .drawing-tool-panel{max-width:calc(100vw - 48px)!important;max-height:55dvh!important;overflow:auto!important;box-sizing:border-box!important}
 body.mobile107 .map-dynamic-legend{max-width:calc(100% - 80px)!important;max-height:75px!important;overflow:auto!important}
 body.mobile107 dialog:not(#acWorkspace){max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important;box-sizing:border-box!important;overflow:auto!important}
 body.mobile107 dialog input,body.mobile107 dialog select{min-height:44px}
 body.mobile107 .auth-card{width:calc(100vw - 24px)!important;max-width:440px!important;box-sizing:border-box!important}
}
@media screen and (max-width:600px){
 body.mobile107 .grid2,body.mobile107 .formgrid,body.mobile107 .ac-grid,body.mobile107 .ac-dashboard-grid,body.mobile107 .ac-form-grid{grid-template-columns:minmax(0,1fr)!important}
 body.mobile107 .comm-toolbar>*,body.mobile107 .communication-dialog .comm-form-grid,body.mobile107 .communication-dialog .comm-mail-route{min-width:0!important;grid-template-columns:minmax(0,1fr)!important}
 body.mobile107 .section-head h2{font-size:22px!important;overflow-wrap:anywhere}
}
@media print{.mobile107-bar,.mobile107-backdrop{display:none!important}}
@media screen and (max-width:900px) and (min-width:600px) and (max-height:500px){
 body.mobile107 .topbar{flex-direction:row!important;align-items:center!important}
 body.mobile107 .topbar-brand{width:auto!important;flex:1!important}
 body.mobile107 .top-actions-stack{width:300px!important;flex:0 0 300px!important}
 body.mobile107 #mapWorkspace,body.mobile107.partner-integrated-active #acWorkspace.is-map #acContent{min-height:220px!important}
}
.mobile107-tools-toggle{display:none}
@media screen and (max-width:900px){
 body.mobile107 #acWorkspace.is-map .ac-filterbar:has(#acCommuneFilterLabel:not([hidden])){display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:8px!important;padding:8px!important;margin:0 0 8px!important}
 body.mobile107 #acWorkspace.is-map .ac-filterbar:has(#acCommuneFilterLabel:not([hidden]))>label:not([hidden]){min-width:0!important;flex:none!important;width:auto!important;margin:0!important;font-size:11px!important}
 body.mobile107 #acWorkspace.is-map .ac-filterbar select{min-height:40px!important;padding:6px!important;font-size:13px!important}
 body.mobile107 #acWorkspace #acMapWorkspace .map-toolbar-scope:not(.map-toolbar-event){display:none!important}
 body.mobile107 .map-topbar .mobile107-advanced,body.mobile107 #acWorkspace #acMapWorkspace .map-topbar .mobile107-advanced{display:none!important}
 body.mobile107 .map-topbar.mobile107-tools-open .mobile107-advanced,body.mobile107 #acWorkspace #acMapWorkspace .map-topbar.mobile107-tools-open .mobile107-advanced{display:block!important}
 body.mobile107 .map-topbar .mobile107-tools-toggle{display:inline-flex!important;align-items:center;gap:6px;width:auto!important;padding:6px 10px!important}
 body.mobile107 .map-topbar .mobile107-tools-toggle span{display:inline!important}
 body.mobile107 .map-topbar .address-search-collapsible,body.mobile107 #acWorkspace #acMapWorkspace .map-topbar .address-search-collapsible{order:10!important;flex:1 1 100%!important;min-width:0!important;max-width:100%!important;width:100%!important}
 body.mobile107 .map-topbar .address-search-inline{width:100%!important;min-width:0!important;box-sizing:border-box!important}
 body.mobile107 .map-topbar .map-toolbar-event{order:11!important;width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
 body.mobile107 #acWorkspace #acMapWorkspace .map-topbar{left:8px!important;right:8px!important;top:8px!important;gap:4px!important;padding:5px!important;min-height:0!important;flex-wrap:wrap!important}
 body.mobile107 #acWorkspace #acMapWorkspace .map-toolbar-btn{height:40px!important;min-height:40px!important;min-width:40px!important;width:auto!important;padding:6px 8px!important}
 body.mobile107 #acWorkspace #acMapWorkspace .basemap-collapsible{flex:0 0 auto!important;min-width:0!important;width:auto!important}
 body.mobile107 #acWorkspace #acMapWorkspace .map-panel{top:var(--ac-toolbar-bottom,160px)!important;left:8px!important;right:8px!important;bottom:40px!important;width:auto!important;max-width:calc(100% - 16px)!important}
 body.mobile107 #acWorkspace #acMapWorkspace .map-panel.collapsed{display:none!important}
 body.mobile107 #acWorkspace #acMapWorkspace .map-measure-popover,body.mobile107 #acWorkspace #acMapWorkspace .map-analysis-popover,body.mobile107 #acWorkspace #acMapWorkspace .basemap-popover,body.mobile107 #acWorkspace #acMapWorkspace .map-export-popover{max-width:calc(100vw - 48px)!important;left:0!important;right:auto!important;max-height:50dvh!important;overflow:auto!important}
}
@media screen and (max-width:900px){
 body.mobile107.partner-integrated-active #acWorkspace.is-map #acMapWorkspace{height:calc(100dvh - var(--mobile107-header) - 160px)!important;min-height:340px!important;max-width:100%!important}
 body.mobile107.partner-integrated-active #acWorkspace.is-map #acContent{height:auto!important;min-height:0!important}
}
@media screen and (max-width:900px) and (min-width:600px) and (max-height:500px){
 body.mobile107.partner-integrated-active #acWorkspace.is-map #acMapWorkspace{min-height:220px!important}
}

@media screen and (max-width:900px){body.mobile107 #acWorkspace #acMapWorkspace .map-topbar .mobile107-tools-toggle span{display:inline!important}body.mobile107 #acWorkspace #acMapWorkspace .map-topbar .mobile107-tools-toggle{display:inline-flex!important;width:auto!important;min-width:78px!important;gap:6px!important}}
