
.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}
}
