
.mh-page{--mh-green:#08704e;display:flex;flex-direction:column;width:100%;height:calc(100dvh - 120px);min-height:500px;background:#fff;color:#18382e;overflow:hidden;font:14px/1.4 system-ui,sans-serif}
.mh-page *{box-sizing:border-box}
.mh-page button,.mh-page a,.mh-page input,.mh-page select{font:inherit}
.mh-page button,.mh-page a,.mh-upload{border:1px solid #d6e3dc;border-radius:7px;background:#fff;color:#214537;padding:8px 12px;cursor:pointer;text-decoration:none}
.mh-page button:disabled{opacity:.5;cursor:default}
.mh-page button.primary,.mh-page button.active{background:#e6f5ed;border-color:#08704e;color:#075f43}
.mh-page .primary{font-weight:650}
.mh-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border-bottom:1px solid #e5ede8}
.mh-header h2{margin:0;font-size:22px}
.mh-header>div{display:flex;gap:8px}
.mh-tabs{display:flex;gap:8px;padding:5px 14px;border-bottom:1px solid #e5ede8}
.mh-tabs button{border:0;border-radius:0;padding:9px 20px;border-bottom:3px solid transparent}
.mh-tabs button.active{background:none;border-bottom-color:#08704e}
.mh-toolbar{display:flex;align-items:center;gap:8px;padding:10px 14px;flex-wrap:wrap}
.mh-page input,.mh-page select{padding:9px;border:1px solid #d4e0d8;border-radius:6px;width:100%;min-width:0;background:#fff;color:#193e30}
.mh-toolbar>input{width:240px;flex:1}
.mh-status-filters{display:flex;gap:5px}
.mh-status-filters button{white-space:nowrap;padding:7px 9px}
.mh-status-filters b{font-size:11px;margin-left:3px}
.mh-body{display:grid;grid-template-columns:minmax(0,1fr);flex:1;min-height:0;position:relative}
.mh-body.has-panel{grid-template-columns:minmax(0,1fr) 350px}
.mh-canvas{min-width:0;min-height:0;position:relative;isolation:isolate}
.mh-canvas .leaflet-container{height:100%;width:100%;min-height:250px;z-index:0}
.mh-marker{display:grid;place-items:center;width:30px;height:34px;color:#fff;font-size:20px;border-radius:15px 15px 15px 3px;border:2px solid white;box-shadow:0 2px 5px #0005}
.mh-cluster{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;border:3px solid white;color:#fff;font-weight:bold;box-shadow:0 2px 5px #0004}
.mh-layer{position:absolute;top:10px;right:10px;z-index:500;box-shadow:0 1px 4px #0003}
.mh-legend{position:absolute;bottom:23px;left:10px;z-index:500;background:#fffffff0;border-radius:7px;padding:8px 10px;display:flex;gap:10px;flex-wrap:wrap;font-size:12px;max-width:calc(100% - 20px);pointer-events:none}
.mh-legend small{flex-basis:100%}
.mh-detail,.mh-route-panel,.mh-fleet-panel{position:relative;min-height:0;overflow:auto;border-left:1px solid #dce6df;background:#fff;padding:15px}
.mh-detail{display:flex;flex-direction:column;overflow:hidden}
.mh-close{position:absolute;right:8px;top:5px;border:0!important;font-size:24px!important}
.mh-detail header{display:flex;gap:10px;align-items:center;padding-right:20px;margin-bottom:14px}
.mh-detail h3{margin:0;font-size:17px}
.mh-detail header small{display:block;margin-top:4px;color:#657a70}
.mh-avatar{width:54px;height:54px;border-radius:50%;background:#edf4f0;flex-shrink:0;display:grid;place-items:center;overflow:hidden;font-size:25px}
.mh-avatar img,.mh-site-photo img{width:100%;height:100%;object-fit:cover}
.mh-badge{display:inline-block;font-size:11px;padding:3px 8px;border-radius:12px;margin-top:7px;background:#edf0f2;color:#45505b}
.mh-badge.INTEGRATED{background:#d7f2df;color:#126d3a}
.mh-badge.REVIEW{background:#fff0d7;color:#895400}
.mh-detail nav{display:flex;border-bottom:1px solid #e0e8e3;margin-bottom:8px}
.mh-detail nav button{flex:1;border:0;border-radius:0}
.mh-detail-scroll{overflow:auto;flex:1;min-height:0;padding-bottom:10px}
.mh-detail p{margin:10px 0;overflow-wrap:anywhere}
.mh-detail small,.mh-muted{color:#64776e}
.mh-site-photo{height:145px;border-radius:8px;background:#f0f5f2;overflow:hidden;display:grid;place-items:center;color:#718177;margin:12px 0}
.mh-detail footer,.mh-route-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding-top:10px;border-top:1px solid #e1e9e4}
.mh-detail footer .primary{grid-column:1/-1}
.mh-detail footer a{text-align:center}
.mh-link,.mh-route-panel{display:flex;flex-direction:column;gap:10px}
.mh-page label{display:flex;flex-direction:column;gap:4px;font-size:13px}
.mh-page .mh-upload{display:block;margin:8px 0}
.mh-upload input{border:0;padding:4px 0;font-size:12px}
.mh-two{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.mh-route-panel h3,.mh-fleet-panel h3{margin:0}
.mh-route-panel p,.mh-fleet-panel p{font-size:13px;margin:0;color:#60746a}
.mh-route-panel ol{margin:0;padding-left:24px}
.mh-route-panel ol li{padding:7px 0;border-bottom:1px solid #e5ece7}
.mh-route-panel ol li span{display:inline-block;width:calc(100% - 100px);vertical-align:middle}
.mh-route-panel li small{display:block;font-size:11px;color:#667b6f}
.mh-route-panel ol li button{padding:5px 7px;margin-left:2px}
.mh-road-result{padding:10px;background:#edf7f1;border-radius:7px}
.mh-road-result ul{padding-left:17px;margin:7px 0}
.mh-route-panel details>button{display:block;margin-top:7px;width:100%;text-align:left}
.mh-fleet-panel header{display:flex;justify-content:space-between;gap:10px;margin-bottom:12px}
.mh-vehicle{display:flex;flex-direction:column;width:100%;text-align:left;gap:4px;margin:10px 0}
.mh-vehicle:disabled{opacity:1!important}
.mh-footer{display:flex;justify-content:space-between;align-items:center;padding:6px 14px;min-height:32px;font-size:12px;color:#60766b}
.mh-footer button{padding:3px 8px}
.mh-message{padding:7px 14px;background:#fff4d8;color:#704e08}
.mh-screen{position:fixed;inset:0;width:100vw;height:100dvh;min-height:0;z-index:2500}
.mh-presentation .mh-header h2{font-size:23px}
.mh-presentation .mh-body{grid-template-columns:1fr}
@media(max-width:700px){
 .mh-page{height:calc(100dvh - 140px);min-height:410px}
 .mh-header{padding:8px;gap:7px;align-items:flex-start}
 .mh-header h2{font-size:17px}
 .mh-header>div{gap:4px;flex-wrap:wrap;justify-content:flex-end}
 .mh-header button{padding:5px 7px;font-size:11px}
 .mh-tabs{padding:0 8px}
 .mh-tabs button{flex:1;padding:7px}
 .mh-toolbar{padding:7px;gap:5px}
 .mh-toolbar>input{width:100%;flex-basis:100%;padding:8px}
 .mh-status-filters{width:100%;overflow-x:auto}
 .mh-status-filters button{flex:1;padding:5px 6px;font-size:11px}
 .mh-toolbar>button{padding:4px 8px;font-size:12px}
 .mh-body.has-panel{grid-template-columns:1fr;grid-template-rows:minmax(150px,1fr) minmax(180px,46%)}
 .mh-detail,.mh-route-panel,.mh-fleet-panel{border-left:0;border-top:1px solid #dce6df;padding:10px}
 .mh-detail header{margin-bottom:5px}
 .mh-detail h3{font-size:15px}
 .mh-detail nav button{padding:5px}
 .mh-avatar{width:40px;height:40px}
 .mh-detail footer{padding-top:6px}
 .mh-detail footer button,.mh-detail footer a{padding:6px;font-size:12px}
 .mh-legend{font-size:10px;gap:6px;padding:5px;bottom:18px}
 .mh-legend small{display:none}
 .mh-footer{font-size:10px;padding:4px 7px}
 .mh-screen{height:100dvh;min-height:0;padding-bottom:env(safe-area-inset-bottom)}
 .mh-presentation .mh-header h2{font-size:16px}
}


.mh-anchor{width:100%;height:calc(100dvh - 150px);min-height:350px}
.mh-portal-host{width:100%;height:100%}
.mh-portal-host>.mh-page{height:100%;min-height:0}
.mh-page.mh-screen{position:fixed;inset:auto;z-index:100000;min-height:0;background:#fff}
body.mh-expanded{overflow:hidden}
body.mh-expanded>#root{visibility:hidden}
.mh-page button,.mh-page a,.mh-page input,.mh-page select,.mh-page label,.mh-page small{
 letter-spacing:normal;text-transform:none;font-family:system-ui,sans-serif}
.mh-page button.primary{background:#08704e!important;color:#fff!important;border-color:#08704e!important}
.mh-page button.active{background:#e7f5ed!important;color:#086446!important;border-color:#08704e!important}
.mh-header{flex-shrink:0}
.mh-header h2{font-size:19px}
.mh-header>div{align-items:center}
.mh-menu{position:relative}
.mh-menu>summary{cursor:pointer;padding:3px 13px;font-size:25px;list-style:none;border:1px solid #d6e3dc;border-radius:7px}
.mh-menu>summary::-webkit-details-marker{display:none}
.mh-menu>div{position:absolute;right:0;top:100%;width:210px;padding:6px;background:#fff;border:1px solid #d6e3dc;
 border-radius:8px;box-shadow:0 5px 20px #0002;z-index:3000}
.mh-menu button{display:block;width:100%;text-align:left;margin:3px 0}
.mh-body.has-detail{grid-template-columns:minmax(0,1fr) 350px}
.mh-detail{padding:12px;min-width:0}
.mh-detail header{flex-shrink:0;min-width:0}
.mh-detail header>div{min-width:0}
.mh-detail h3{overflow-wrap:anywhere;line-height:1.25}
.mh-detail header small{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:240px}
.mh-detail-main{display:flex;flex-direction:column;flex:1;min-height:0}
.mh-detail-main>nav,.mh-detail-main>footer{flex-shrink:0}
.mh-detail-scroll{overscroll-behavior:contain;touch-action:pan-y;padding-bottom:12px;scroll-padding-bottom:18px}
.mh-detail-main>footer{background:#fff}
.mh-sheet-handle,.mh-compact-actions{display:none}
.mh-link-submit{position:sticky;bottom:0;z-index:2;background:#fff;padding:10px 0 0}
.mh-link-submit button{width:100%}
.mh-route-actions{position:sticky;bottom:0;background:#fff;padding-bottom:8px;z-index:2}
.mh-floating{position:absolute;inset:0;pointer-events:none;z-index:800}
.mh-floating>button{position:absolute;top:max(12px,env(safe-area-inset-top));left:12px;pointer-events:auto;
 font-size:24px;width:44px;height:44px;padding:0;box-shadow:0 2px 5px #0002}
.mh-floating-right{position:absolute;right:104px;top:max(12px,env(safe-area-inset-top));pointer-events:auto}
.mh-floating-right button{width:44px;height:44px;padding:0;font-size:26px;box-shadow:0 2px 5px #0002}
.mh-floating-search{position:absolute;top:calc(max(12px,env(safe-area-inset-top)) + 54px);right:12px;left:12px;
 background:#fff;padding:12px;border-radius:10px;box-shadow:0 3px 15px #0004;pointer-events:auto;max-height:65%;overflow:auto}
.mh-floating-search>div{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0}
.mh-layer{top:12px;right:12px;min-height:40px}
.mh-locate{position:absolute;right:12px;bottom:48px;z-index:550;border-radius:50%!important;width:44px;height:44px;
 padding:0!important;font-size:26px!important;box-shadow:0 2px 5px #0003}
.mh-screen .leaflet-top.leaflet-left{top:calc(max(12px,env(safe-area-inset-top)) + 48px)}
.mh-screen .mh-layer{top:max(12px,env(safe-area-inset-top))}
.mh-map-error{position:absolute;top:65px;left:15px;right:15px;z-index:700;padding:10px;background:#fff3d9}
.mh-vehicle-tooltip b,.mh-vehicle-tooltip span{display:block}
.mh-vehicle-tooltip.warning{border-color:#c87912!important;background:#fff0d6!important;color:#875007!important}
.mh-vehicle-tooltip.live{border-color:#147a50!important;background:#eefaf3!important;color:#12663d!important}
.mh-vehicle.warning{border-color:#d8a859;background:#fff8ed}
.mh-vehicle.live{border-color:#8ac2a6}
.mh-screen .mh-body{height:100%}
.mh-screen .mh-footer,.mh-screen .mh-header,.mh-screen .mh-toolbar,.mh-screen .mh-tabs{display:none}
@media(max-width:700px){
 .mh-header h2{font-size:17px}
 .mh-header{align-items:center}
 .mh-header button{font-size:12px;min-height:34px}
 .mh-toolbar{padding:6px;gap:5px}
 .mh-toolbar>input{padding:7px}
 .mh-status-filters button{font-size:10px}
 .mh-body.has-detail{display:block}
 .mh-body.has-detail>.mh-canvas{height:100%;width:100%}
 .mh-canvas .leaflet-container{min-height:0}
 .mh-detail{position:absolute;bottom:0;left:0;right:0;width:100%;height:144px;max-height:100%;
  z-index:1000;border-radius:17px 17px 0 0;border:1px solid #d4e1d8;box-shadow:0 -3px 15px #0002;
  padding:0 12px max(10px,env(safe-area-inset-bottom));background:#fff}
 .mh-detail.mh-sheet-expanded{height:78%}
 .mh-detail header{margin:0 22px 8px 0;gap:9px}
 .mh-detail h3{font-size:16px}
 .mh-detail header small{max-width:200px}
 .mh-detail .mh-badge{margin-top:4px}
 .mh-sheet-handle{display:flex!important;justify-content:center;align-items:center;height:22px;min-height:22px;
  flex-shrink:0;width:100%;padding:0!important;border:0!important;background:transparent!important;touch-action:none}
 .mh-sheet-handle i{display:block;width:42px;height:4px;border-radius:3px;background:#a9b6ae}
 .mh-detail .mh-close{top:20px;right:4px;min-width:30px}
 .mh-compact-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;flex-shrink:0}
 .mh-compact-actions button{min-height:36px;padding:7px!important;font-size:12px!important}
 .mh-sheet-collapsed .mh-detail-main{display:none}
 .mh-sheet-expanded .mh-compact-actions{display:none}
 .mh-detail-main nav{margin-bottom:4px}
 .mh-detail-main nav button{min-height:34px}
 .mh-detail-scroll{padding-bottom:12px}
 .mh-detail .mh-avatar{width:43px;height:43px}
 .mh-detail-main footer{padding-top:8px;gap:6px}
 .mh-detail-main footer button,.mh-detail-main footer a{font-size:12px;padding:8px}
 .mh-link{gap:9px}
 .mh-link>small{font-size:12px}
 .mh-body.has-detail .mh-legend{bottom:153px}
 .mh-body.has-detail.sheet-open .mh-legend{display:none}
 .mh-body.has-detail .mh-locate{bottom:164px}
 .mh-body.has-detail.sheet-open .mh-locate{bottom:auto;top:70px}
 .mh-screen .mh-legend{font-size:10px}
 .mh-screen .mh-detail.mh-sheet-expanded{height:70%}
 .mh-screen .mh-detail{padding-bottom:max(12px,env(safe-area-inset-bottom))}
 .mh-footer{flex-shrink:0;font-size:10px}
}

.mh-presentation .mh-vehicle-tooltip{display:none!important}
.content:has(.mh-anchor)>header>div:first-child{display:none}
.content:has(.mh-anchor)>header{padding-block:4px;margin-bottom:4px;min-height:0}
