
.geo-result-card{border:1px solid #dce5e1;border-radius:12px;margin:10px 0;background:#fff}
.geo-result-card summary{padding:12px 14px;cursor:pointer}
.geo-result-body{padding:0 14px 14px}
.geo-feature{border-top:1px solid #e5ece8;padding-top:10px;margin-top:10px}
.geo-feature dl,.geo-attrs{display:grid;grid-template-columns:minmax(120px,220px) 1fr;gap:5px 12px;margin:8px 0}
.geo-feature dt,.geo-attrs dt{font-weight:700;color:#53655d}.geo-feature dd,.geo-attrs dd{margin:0;word-break:break-word}
.geo-error{color:#a2362b}
.record-geo-results{margin-top:16px}

.format-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.format-grid>div{border:1px solid #dce5e1;border-radius:12px;padding:12px;display:flex;flex-direction:column;background:#fff}
.format-grid span{font-size:.8rem;color:#66756f;margin-top:3px}
.vector-format-help{margin-top:14px}

.territorial-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:12px 0 16px}
.territorial-kpi{background:#fff;border:1px solid #dce5e1;border-radius:14px;padding:16px;box-shadow:0 8px 26px rgba(20,60,45,.04)}
.territorial-kpi b{display:block;font-size:1.7rem}.territorial-kpi span{font-size:.82rem;color:#66756f}
.territorial-kpi.attention-high{border-left:4px solid #ad3d32}
.territorial-actions{display:grid;gap:14px}
.territorial-progress>div{display:flex;justify-content:space-between;gap:12px;margin-bottom:6px}
.territorial-progress progress{width:100%;height:14px}
.territorial-filterbar{display:flex;gap:12px;align-items:end;justify-content:space-between;flex-wrap:wrap}
.territorial-filterbar label{display:grid;gap:5px}
.territorial-records .summary-cell{min-width:320px;max-width:560px;white-space:normal;line-height:1.4}
.territorial-status,.attention{display:inline-flex;border-radius:999px;padding:5px 9px;font-size:.74rem;font-weight:700;white-space:nowrap}
.status-current{background:#e6f4ec;color:#17653e}.status-pending{background:#eef1f0;color:#56615c}.status-outdated{background:#fff2d8;color:#8c5c00}.status-partial{background:#fff0e6;color:#9b4e16}.status-error{background:#fde8e5;color:#9b2e25}
.attention-high{background:#fde8e5;color:#9b2e25}.attention-medium{background:#fff2d8;color:#8c5c00}.attention-low{background:#e6f4ec;color:#17653e}.attention-none{background:#eef1f0;color:#66756f}
#territorialRows tr.is-processing{opacity:.55}
.territorial-summary-box{background:#f5f9f7;border-left:4px solid #1d7550;border-radius:10px;padding:14px;margin:12px 0}
.page-head.compact{margin-bottom:8px}
@media(max-width:850px){.territorial-overview{grid-template-columns:1fr 1fr}.territorial-records .summary-cell{min-width:240px}}
@media(max-width:520px){.territorial-overview{grid-template-columns:1fr 1fr}.territorial-kpi{padding:12px}.territorial-kpi b{font-size:1.35rem}}

.dashboard-module-head{display:flex;justify-content:space-between;gap:14px;align-items:center;flex-wrap:wrap}
.dashboard-territorial-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:12px}
.dashboard-territorial-grid>div{background:#f5f9f7;border-radius:10px;padding:12px}
.dashboard-territorial-grid b{display:block;font-size:1.35rem}.dashboard-territorial-grid span{font-size:.78rem;color:#66756f}
@media(max-width:650px){.dashboard-territorial-grid{grid-template-columns:1fr 1fr}}

.territorial-map-section{padding:0;overflow:hidden}
.territorial-map-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;flex-wrap:wrap;padding:18px 18px 8px}
.territorial-map-head h2{margin:0 0 5px}.territorial-map-head p{margin:0;color:#66756f}
.territorial-map-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;padding:10px 18px;border-top:1px solid #e7eeea;border-bottom:1px solid #e7eeea;background:#f8faf9}
.territorial-map-filters{display:flex;gap:12px;flex-wrap:wrap}
.territorial-map-filters label{display:inline-flex;align-items:center;gap:6px;font-size:.83rem;cursor:pointer}
.territorial-map-filters input{margin:0}
.map-dot{width:11px;height:11px;border-radius:50%;display:inline-block}
.dot-high{background:#b9362b}.dot-medium{background:#d59a00}.dot-low,.dot-none{background:#238b57}.dot-pending{background:#7b8681}
.territorial-map-count{font-size:.82rem;color:#66756f}.territorial-map-count b{color:#25352f}
.territorial-map{height:min(62vh,620px);min-height:420px;width:100%;background:#e8eeeb}
.territorial-map-note{display:flex;gap:18px;flex-wrap:wrap;padding:9px 18px 14px;color:#66756f;font-size:.75rem}
.map-line{width:24px;display:inline-block;vertical-align:middle;margin-right:5px;border-top:3px solid #6b746f}.map-line.dashed{border-top-style:dashed}
.territorial-popup{min-width:260px;max-width:390px}
.territorial-popup-title{font-size:1rem;font-weight:700;color:#173128}
.territorial-popup-meta{font-size:.78rem;font-weight:700;margin-top:3px}
.territorial-popup-coord{font-size:.72rem;color:#66756f;margin:4px 0 8px}
.territorial-popup p{font-size:.82rem;line-height:1.42;margin:8px 0}
.territorial-popup-hits{border-top:1px solid #e2e8e5;margin-top:8px;padding-top:8px}
.territorial-popup-hit{padding:6px 0;border-bottom:1px dashed #e5ebe8}
.territorial-popup-hit>b{display:block;font-size:.8rem}
.territorial-popup-hit>span{display:block;font-size:.72rem;color:#66756f;margin:1px 0 3px}
.territorial-popup-attr{font-size:.7rem;line-height:1.35}
.territorial-popup-empty{font-size:.75rem;color:#66756f;margin-top:8px}
.territorial-popup-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.territorial-popup-actions a{font-size:.75rem;font-weight:700;text-decoration:none}
#territorialRows tr.map-selected{outline:2px solid #2e7957;outline-offset:-2px;background:#f0f7f3}
.row-actions{display:flex;gap:5px;flex-wrap:wrap}
@media(max-width:680px){
 .territorial-map{height:58vh;min-height:360px}
 .territorial-map-head,.territorial-map-toolbar,.territorial-map-note{padding-left:12px;padding-right:12px}
 .territorial-map-filters{gap:8px}
}

.territorial-layer-health-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;flex-wrap:wrap}
.territorial-layer-health-head h2{margin:0 0 5px}.territorial-layer-health-head p{margin:0;color:#66756f}
.territorial-layer-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:14px}
.territorial-layer-stats>div{background:#f5f9f7;border-radius:10px;padding:12px}
.territorial-layer-stats b{display:block;font-size:1.35rem}.territorial-layer-stats span{font-size:.78rem;color:#66756f}
.status-no_layers{background:#fde8e5;color:#9b2e25}
@media(max-width:650px){.territorial-layer-stats{grid-template-columns:1fr 1fr}}
