.loc { --online:#158269; --offline:#62788a; --alarm:#b84838; display:grid; gap:16px; min-width:0; }
.loc h1,.loc h2,.loc h3 {margin:0}
.loc h1 {font-size:26px;letter-spacing:.02em}
.loc h2 {font-size:16px}
.loc-heading,.loc header,.loc-ledger footer {display:flex;align-items:center;gap:12px}
.loc-heading,.loc-ledger header {justify-content:space-between}
.loc-heading>div,.loc-filter {display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.loc-heading label,.loc-filter label {color:var(--muted);font-size:13px}
.loc-notice {color:#526c81;font-size:13px;margin-top:-8px}
.loc-notice button {color:var(--blue);text-decoration:underline}
.loc-stats {display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) minmax(175px,1.4fr);border:1px solid var(--line);border-radius:10px;background:white;overflow:hidden}
.loc-stats>div {padding:16px 20px;border-right:1px solid var(--line)}
.loc-stats span,.loc-stats strong {display:block}
.loc-stats span {font-size:12px;color:var(--muted)}
.loc-stats strong {margin-top:6px;font-size:28px;font-weight:600;font-variant-numeric:tabular-nums}
.loc-stats>div:nth-child(2) strong {color:var(--online)}
.loc-stats>div:nth-child(4) strong {color:var(--alarm)}
.loc-stats>div:last-child {border:0}
.loc-stats>div:last-child strong {font-size:15px;margin-top:14px}
.loc-work {display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,27%);gap:14px}
.loc-map,.loc-aside,.loc-ledger {min-width:0;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff}
.loc-map {height:420px;position:relative;background:#203e56;color:#eff8ff;display:flex;flex-direction:column}
.loc-map header {padding:12px 16px;background:#294a64}
.loc-map header span {color:#c5deea;font-size:12px}
.loc-map header button {margin-left:auto}
.loc-map button {color:inherit;border-radius:5px;padding:5px 9px;background:#3b5e78}
.loc-stage {min-height:0;flex:1;position:relative;overflow:hidden;background:radial-gradient(ellipse at 52% 47%,#315973,#203e56)}
.loc-stage svg[aria-label^="设备位置分布"] {display:block;height:100%;width:100%;touch-action:none;cursor:grab}
.loc-land {fill:#436b80;stroke:#81a2ae;stroke-width:.75;vector-effect:non-scaling-stroke}
.loc-place {fill:#d3e4ed;text-anchor:middle;pointer-events:none}
.loc-dot {cursor:pointer;--pin:#738a99}
.loc-dot.online {--pin:#07816c}
.loc-dot.alarm {--pin:#c44f39}
.loc-dot circle {fill:var(--pin);stroke:white;stroke-width:1.5}
.loc-dot.chosen circle,.loc-dot:focus-visible circle {stroke:#fff19a;stroke-width:4}
.loc-dot text {fill:white;font:bold 13px sans-serif;pointer-events:none}
.loc-tools,.loc-legend,.loc-popup {position:absolute;z-index:1}
.loc-tools {right:12px;bottom:12px;display:flex;gap:4px}
.loc-legend {left:12px;bottom:12px;display:flex;gap:10px;background:#203e56e8;padding:6px 8px;border-radius:4px;font-size:11px}
.loc-legend span:before {content:'';display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:4px;background:#9cb0bf}
.loc-legend .online:before {background:#51d6ad}
.loc-legend .alarm:before {background:#ff8e70}
.loc-map-empty:not(:empty) {position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);background:#1b364f;padding:8px 14px;border-radius:4px;white-space:nowrap}
.loc-popup {top:55px;left:12px;max-width:75%;color:var(--ink);background:white;border-radius:7px;padding:10px 14px;box-shadow:0 4px 14px #152c4328}
.loc-popup strong,.loc-popup span,.loc-popup small {display:block}
.loc-popup span,.loc-popup small {font-size:12px;margin-top:4px}
.loc-popup button {float:right;margin-left:8px;background:#eef3f8}
.loc-map:fullscreen,.loc-map.expanded {height:100%;width:100%;border-radius:0}
.loc-map.expanded {position:fixed;inset:0;z-index:9999}
.loc-aside {height:420px;overflow:auto;padding:16px}
.loc-aside header {padding-bottom:10px;border-bottom:1px solid var(--line)}
.loc-aside h3 {font-size:13px;color:#396386;margin:12px 0 5px}
.loc-aside dl {margin:0}
.loc-aside dl div {display:flex;justify-content:space-between;gap:10px;padding:4px 0;font-size:12px}
.loc-aside dt {color:var(--muted);white-space:nowrap}
.loc-aside dd {margin:0;text-align:right;overflow-wrap:anywhere}
.loc-ledger header,.loc-filter,.loc-ledger footer {padding:12px 16px}
.loc-filter {border-top:1px solid var(--line);gap:8px}
.loc-filter select,.loc-filter input[type=search],.loc-ledger footer select {border:1px solid #cfdae6;border-radius:5px;padding:6px 8px;color:var(--ink);background:white}
.loc-filter input[type=search] {width:165px}
.loc-filter label,.loc-ledger footer label {white-space:nowrap}
.loc-ledger footer {flex-wrap:wrap}
.loc-filter [data-tabs] {display:flex;flex-wrap:wrap;gap:3px;margin-right:auto}
.loc-filter [data-tabs] button {border-radius:5px;padding:6px 8px;color:#577088}
.loc-filter button[aria-pressed=true] {background:#e4effb;color:#23568c}
.loc-scroll {overflow:auto}
.loc-scroll table {width:100%;border-collapse:collapse;white-space:nowrap;font-size:13px}
.loc-scroll th,.loc-scroll td {padding:10px 14px;text-align:left;border-bottom:1px solid var(--line)}
.loc-scroll th {background:#f5f8fb;color:#62758a;font-size:12px}
.loc-scroll tr[data-id] {cursor:pointer}
.loc-scroll tr[data-id]:hover,.loc-scroll tr[aria-selected=true] {background:#eff6fd}
.loc-scroll td button {color:#2c6194;padding:0}
.loc-status {font-size:12px;border-radius:4px;padding:3px 6px;color:var(--offline);background:#eff3f6}
.loc-status.online {background:#e8f5ee;color:var(--online)}
.loc-status.alarm {background:#fff0e9;color:var(--alarm)}
.loc-ledger footer span {margin-right:auto;color:var(--muted)}
.loc-empty {padding:20px;color:var(--muted);font-size:13px}
@media(max-width:900px){.loc-work{grid-template-columns:1fr}.loc-aside{height:auto;max-height:320px}.loc-stats{grid-template-columns:repeat(4,1fr)}.loc-stats>div:last-child{grid-column:1/-1;border-top:1px solid var(--line);display:flex;align-items:center;gap:12px}.loc-stats>div:last-child strong{margin:0}.loc-stats>div{padding:10px}.loc-heading{flex-wrap:wrap}.loc-map{height:380px}}
@media(max-width:520px){.loc-filter [data-tabs]{width:100%}.loc-map{height:330px}.loc-legend{bottom:45px}.loc-heading>div{gap:6px}}
.loc-map {height:clamp(460px,57vh,760px)}
.loc-aside {height:clamp(460px,57vh,760px)}
.loc-map header {flex-wrap:wrap;gap:8px}
.loc-map header select {margin-left:auto;padding:5px 8px;border:1px solid #829bac;border-radius:5px;background:#fff;color:#284861}
.loc-map header button {margin-left:0}
.loc-engine,.loc-provider-pane {position:absolute;inset:0}
.loc-stage {isolation:isolate}
.loc-stage .leaflet-container {background:#e5e9e7;color:#284861}
.loc-map .leaflet-control-attribution {color:#333;font-size:10px}
.loc-map-status:not(:empty) {background:#fff4df;color:#674b22;padding:6px 10px;font-size:12px}
.loc-tools,.loc-legend {bottom:27px}
.loc-popup {width:min(270px,70%);max-height:calc(100% - 114px);overflow:auto}
.loc-popup dl {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px;border-block:1px solid #d9e4ea;padding:8px 0;margin:8px 0;font-size:12px}
.loc-popup dl div:nth-last-child(-n+2){grid-column:1/-1}
.loc-popup dt,.loc-popup dd {display:inline;margin:0}
.loc-popup dt {color:#657c8a;margin-right:5px}
.loc-popup [data-do=detail]{float:none;margin:0;color:#225980}
@media(max-width:520px){.loc-map header select{max-width:138px}.loc-map{height:435px}.loc-aside{height:auto}.loc-legend{bottom:56px}}

.loc-popup nav {display:flex;align-items:center;gap:8px;margin-top:9px;font-size:12px}
.loc-popup nav small {margin:0;color:#62788a}
