*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#f4f6f4;font-family:Segoe UI,Inter,Arial,sans-serif;color:#19352c}.app{display:flex;min-height:100vh}.sidebar{width:238px;background:#103a2d;color:#dae9df;flex-shrink:0;min-height:100vh;padding:30px 17px;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:10px;font-size:19px;font-weight:800;letter-spacing:.4px}.brand span{color:#83d3a6}.brand small{display:block;font-size:10px;letter-spacing:2.4px;color:#82ad98;font-weight:600;margin-top:3px}.brandicon{width:43px;height:43px;background:#28684d;border-radius:12px;display:grid;place-items:center;font-size:30px;color:#a3edb7}.navhead{color:#729989;font-size:10px;letter-spacing:2px;margin:62px 15px 15px}.nav{display:block;color:#afcebd;text-decoration:none;padding:15px;border-radius:9px;margin-bottom:5px;font-size:14px}.nav:hover,.nav.active{background:#235e47;color:white}.sidefoot{position:absolute;bottom:28px;font-size:13px;color:#c7ddcf}.sidefoot small{display:block;margin:7px 0 0 21px;color:#8aa999}.dot{display:inline-block;background:#69de9a;width:9px;height:9px;border-radius:100%;margin-right:8px}.main{width:calc(100% - 238px);padding:36px 42px;max-width:1650px;margin:auto}header{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:29px}.eyebrow{font-size:11px;letter-spacing:2.3px;color:#52816d;font-weight:800}h1{font-size:32px;letter-spacing:-1px;margin:8px 0 4px}header p,.panelhead p{font-size:14px;color:#7a8e83;margin:0}.headpill,.pill{background:#e7f2ea;color:#32754e;border-radius:999px;font-size:12px;padding:11px 14px;white-space:nowrap;font-weight:700}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.metric{border:1px solid #e3e9e4;background:white;border-radius:14px;padding:21px 20px;min-height:137px;box-shadow:0 3px 15px #17382706}.metric.green{background:#e0f2e5;border-color:#c9e6d0}.metriclabel{font-size:11px;letter-spacing:1.2px;font-weight:800;color:#668274}.metricval{font-size:33px;letter-spacing:-1px;font-weight:800;margin:14px 0 5px}.metricval span{font-size:16px;font-weight:600;color:#759382}.metric small{font-size:12px;color:#87988e}.layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(310px,1fr);gap:18px;margin-top:18px}.panel{background:white;border:1px solid #e3e9e4;border-radius:14px;padding:23px;box-shadow:0 3px 15px #17382706}.panelhead{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:20px}.panelhead h2{font-size:19px;margin:0 0 7px}.routeMap{border-radius:10px;position:relative;overflow:hidden;background:#e9f1eb}.routeMap svg{width:100%;height:380px;display:block}.maplabel{position:absolute;left:12px;bottom:12px;background:#ffffffed;color:#476556;padding:8px 11px;font-size:11px;border-radius:6px}.mapfoot{display:flex;align-items:center;gap:22px;flex-wrap:wrap;margin-top:18px;font-size:12px;color:#698474}.mapfoot span:last-child{margin-left:auto}.legend{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:7px}.greenbg{background:#13a274}.goldbg{background:#d6a14e}.formpanel label{font-size:12px;display:block;font-weight:700;color:#526a5d;margin:17px 0 7px}.field{width:100%;border:1px solid #dae6dc;border-radius:8px;padding:12px 13px;font-size:14px;background:#fbfdfb;color:#213e32;font-family:inherit}.field:focus{outline:2px solid #92c7a5}.primarybutton,.secondarybutton{display:block;width:100%;border:0;border-radius:9px;padding:14px 12px;font-size:14px;font-weight:800;cursor:pointer;margin-top:19px}.primarybutton{background:#1a7653;color:white}.primarybutton:hover{background:#105b3e}.secondarybutton{background:#edf5ee;color:#1e6647;border:1px solid #c8e2cf;margin-top:10px}.separate{text-align:center;font-size:11px;color:#95a79b;margin:22px 0 0;letter-spacing:1px}.hint{font-size:12px;line-height:1.6;color:#819587;background:#f5f9f6;margin-top:20px;padding:12px;border-radius:8px}.history{margin-top:18px}.tablewrap{overflow-x:auto}.datatable{width:100%;border-collapse:collapse;text-align:left;min-width:780px}.datatable th{padding:14px 11px;border-bottom:1px solid #e4ece6;font-size:11px;letter-spacing:.6px;color:#6b8878}.datatable td{padding:16px 11px;border-bottom:1px solid #edf2ed;font-size:13px;color:#395446}.datatable tr:hover td{background:#f8fbf8}.action{color:#19794d;text-decoration:none;font-weight:700;margin-right:12px}.action.delete{color:#bd6259}.notice{margin-bottom:18px;border-radius:8px;padding:14px;font-size:13px}.notice.success{background:#e2f6e7;color:#23764b}.notice.error{background:#ffebeb;color:#9e3030}footer{padding:26px;text-align:center;font-size:12px;color:#95a89b}@media(max-width:1120px){.stats{grid-template-columns:repeat(2,1fr)}.layout{grid-template-columns:1fr}.sidebar{width:200px}.main{width:calc(100% - 200px);padding:28px}}@media(max-width:690px){.app{display:block}.sidebar{width:100%;height:auto;min-height:0;padding:14px;position:relative;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.brand{margin-right:auto;font-size:15px}.brandicon{width:32px;height:32px}.brand small{font-size:8px}.navhead,.sidefoot{display:none}.nav{padding:9px;font-size:12px;margin:0}.main{width:100%;padding:20px 13px}header{align-items:flex-start}h1{font-size:25px}.headpill{display:none}.metric{padding:17px;min-height:115px}.metricval{font-size:26px}.stats{gap:9px}.panel{padding:15px}.routeMap svg{height:300px}.mapfoot{gap:9px}.mapfoot span:last-child{margin-left:0}}
.leafletMap{width:100%;height:430px;border-radius:10px;background:#e9f1eb;z-index:0}.maptools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:-3px 0 12px}.maptool{cursor:pointer;background:#f1f7f2;color:#195a3a;border:1px solid #b9d8c5;border-radius:7px;padding:8px 10px;font:600 12px Segoe UI,Arial,sans-serif}.maptool:hover{background:#dbebdf}.mapcheck{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:#476456}.mapstatus{margin-top:9px;color:#456c56;font-size:12px}.mapnote{color:#82938b;font-size:11px;line-height:1.6;margin:12px 0 0}.redbg{background:#db5249}.bluebg{background:#2563eb}@media(max-width:690px){.leafletMap{height:340px}}

/* Self-contained GPS map: SVG overlays stay aligned with the tiled Web Mercator background. */
.leafletMap{position:relative;overflow:hidden;touch-action:none;cursor:grab;user-select:none;background:#e4eee7;min-height:340px}
.leafletMap.dragging{cursor:grabbing}
.gps-tile-plane,.gps-overlay{position:absolute;left:0;top:0;width:100%;height:100%;overflow:hidden}
.gps-tile-plane{z-index:1;pointer-events:none}.gps-overlay{z-index:2;pointer-events:none}
.gps-tile{position:absolute;width:256px;height:256px;object-fit:cover;max-width:none;opacity:1}
.gps-pin{pointer-events:auto;cursor:pointer}.gps-info{position:absolute;z-index:5;left:12px;bottom:12px;max-width:85%;padding:7px 10px;background:#fff;color:#183b2d;border:1px solid #bed3c5;border-radius:6px;font:12px Segoe UI,Arial,sans-serif;box-shadow:0 2px 8px #2222}
.gps-attrib{position:absolute;z-index:4;bottom:1px;right:3px;font:10px Arial,sans-serif;background:#ffffffe8;padding:2px 4px}
.gps-attrib a{color:#215b8b}
