/* ADO · Visual-first Territory Intelligence, 2026-11-11 */
#adoPage{max-width:100%;color:#243148}
#adoPage button,#adoPage select{font-family:inherit}
#adoPage .ado-header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin:3px 0 15px}
.ado-kicker{color:#cb3450;font-size:9px;letter-spacing:.14em;font-weight:900}
.ado-header h1{margin:5px 0 8px;font-size:25px;line-height:1.17;letter-spacing:-.035em;font-weight:950;color:#1c2738}
.ado-header p{margin:0;color:#718097;font-size:11px;line-height:1.55;max-width:820px}
.ado-live-pill{flex-shrink:0;display:inline-block;background:#f3f6fa;border:1px solid #dfe5ee;color:#536780;border-radius:40px;font-size:9px;font-weight:850;padding:9px 12px}
.ado-toolbar{display:flex;gap:9px;align-items:end;flex-wrap:wrap;border:1px solid #e0e7f0;background:#fff;border-radius:14px;padding:12px 14px;margin-bottom:11px}
.ado-toolbar label{display:flex;flex:1;min-width:112px;flex-direction:column;gap:5px;color:#65748b;font-size:9px;font-weight:850}
.ado-toolbar .ado-mode-label{flex:1.7;min-width:190px}
.ado-toolbar select{font-size:11px;padding:9px 8px;border:1px solid #d8e0eb;border-radius:9px;background:#f9fbfd;color:#26364e;max-width:100%;min-height:36px;cursor:pointer}
.ado-btn{background:#fff;border:1px solid #d5dfe9;border-radius:9px;padding:9px 11px;color:#263a58;font-size:10px;font-weight:850;cursor:pointer;min-height:36px;line-height:1.2}
.ado-btn:hover{background:#f8fafc;border-color:#9badc0}
.ado-btn:focus-visible,.ado-toolbar select:focus-visible,.ado-tabs button:focus-visible{outline:2px solid #c52546;outline-offset:2px}
.ado-source{border:1px solid #e3e9f2;padding:9px 12px;border-radius:10px;background:#fff;color:#6d7c8f;font-size:9px;margin:0 0 12px;line-height:1.5}
.ado-quality{background:#fff6eb;border:1px solid #f1d4ab;color:#a06016;border-radius:10px;padding:11px 12px;margin:0 0 11px;font-size:10px;line-height:1.55}
.ado-quality[hidden],.ado-map-tip[hidden],#adoMapBack[hidden]{display:none}
.ado-stat-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:0 0 13px}
.ado-stat{min-width:0;border:1px solid #e1e7ef;background:#fff;border-radius:13px;padding:13px}
.ado-stat>span{display:block;font-size:8px;color:#7c8a9e;font-weight:900;letter-spacing:.045em;line-height:1.4}
.ado-stat>strong{display:block;font-size:18px;color:#18283d;font-weight:950;line-height:1.25;margin:7px 0 4px;overflow-wrap:anywhere}
.ado-stat small{font-size:9px;color:#758198;line-height:1.5}
.ado-stat .ado-negative{color:#d03b50}.ado-stat .ado-positive{color:#167a56}
.ado-map-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(260px,.85fr);gap:13px;align-items:stretch}
.ado-panel{border:1px solid #e2e8f1;border-radius:15px;background:#fff;padding:15px;min-width:0}
.ado-panel-heading{display:flex;align-items:start;justify-content:space-between;gap:12px}
.ado-mini-eyebrow{font-size:8px;font-weight:950;letter-spacing:.12em;color:#c53a55;margin-bottom:4px}
.ado-panel-heading h3{font-size:15px;line-height:1.25;letter-spacing:-.015em;color:#23324b;font-weight:950;margin:0 0 5px}
.ado-panel-heading p{font-size:10px;line-height:1.5;color:#8290a1;margin:0}
.ado-map-actions{display:flex;align-items:center;flex-wrap:wrap;justify-content:end;gap:6px}
.ado-map-actions .ado-btn{font-size:9px;padding:8px}
.ado-map-legend{display:flex;gap:7px 14px;align-items:center;flex-wrap:wrap;padding:11px 0 5px;min-height:36px}
.ado-map-legend span{display:inline-flex;align-items:center;gap:5px;font-size:9px;color:#576983;font-weight:650}
.ado-map-legend i{display:inline-block;border-radius:4px;width:11px;height:11px;flex:none;border:1px solid #00000014}
.ado-map-frame{position:relative;overflow:hidden;border:1px solid #e1e8f2;border-radius:12px;background:radial-gradient(circle at 50% 45%,#eef5fd,#f8fbff 72%);min-height:420px;display:flex;align-items:center;justify-content:center}
#adoMapSvg{width:100%;height:auto;max-height:560px;min-height:415px;display:block;touch-action:manipulation}
#adoMapSvg .ado-region{cursor:pointer;vector-effect:non-scaling-stroke;transition:fill .13s;stroke:#fff;stroke-width:2}
#adoMapSvg .ado-region:hover,#adoMapSvg .ado-region:focus{stroke:#1b314f;stroke-width:3.5;outline:none;filter:brightness(1.04)}
#adoMapSvg .ado-region.selected{stroke:#152944;stroke-width:4;filter:drop-shadow(0 0 2px #243f6860)}
#adoMapSvg .ado-region-label{pointer-events:none;font-family:Arial,sans-serif;font-size:19px;font-weight:900;text-anchor:middle;dominant-baseline:middle;fill:#142338;paint-order:stroke fill;stroke:#ffffffd9;stroke-width:4;stroke-linejoin:round}
#adoMapSvg .ado-region-label.kec{font-size:12px;stroke-width:2.5}
.ado-map-loading{position:absolute;inset:15px;background:#ffffffd9;display:grid;place-items:center;text-align:center;color:#71819a;font-size:11px;padding:25px}
.ado-map-loading[hidden]{display:none}
.ado-map-tip{position:absolute;left:10px;top:10px;max-width:min(255px,78%);min-width:180px;pointer-events:none;z-index:5;background:#fff;border:1px solid #dbe4ee;border-radius:11px;padding:11px 12px;box-shadow:0 12px 35px #26374b32;font-size:10px;line-height:1.6}
.ado-map-tip strong{font-size:12px;color:#1f2d42;display:block}
.ado-map-tip span{display:block;color:#68788e}
.ado-map-tip b{color:#1f2d42}
.ado-map-footnote{margin:10px 0 0;font-size:9px;line-height:1.55;color:#738398}
.ado-area-panel{display:flex;flex-direction:column;gap:12px}
.ado-area-status{font-size:9px;font-weight:900;color:#b83147;border-radius:30px;background:#fff1f3;padding:6px 8px;border:1px solid #f4d6da;white-space:nowrap}
.ado-detail-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ado-detail-stat{padding:11px;background:#f8fafe;border:1px solid #e8edf4;border-radius:10px;min-width:0}
.ado-detail-stat span{display:block;font-size:9px;color:#6e7e95;font-weight:650;line-height:1.35}
.ado-detail-stat strong{display:block;font-size:16px;line-height:1.25;margin:5px 0 3px;color:#263752;font-weight:900;overflow-wrap:anywhere}
.ado-detail-stat small{font-size:8px;color:#8490a2;line-height:1.45}
.ado-detail-stat.wide{grid-column:1/-1}
.ado-detail-stat .ado-negative{color:#cb3a4c}.ado-detail-stat .ado-positive{color:#16805c}
.ado-insight-head{font-size:11px;font-weight:900;color:#22324a}
.ado-insights{display:grid;gap:8px}
.ado-insight{border-left:3px solid #d3374c;background:#fafbfe;border-radius:7px;padding:9px 10px;color:#65748b;font-size:10px;line-height:1.55}
.ado-insight b{display:block;font-size:10px;color:#34445d;margin-bottom:2px}
.ado-panel-action{margin-top:auto;align-self:stretch;background:#d6314a;color:#fff;border-color:#d6314a}
.ado-panel-action:hover{background:#bb253e;color:#fff}
.ado-lower-panel{margin-top:13px}
.ado-tabs{display:flex;gap:8px;overflow:auto;padding:13px 0 11px}
.ado-tabs button{flex:none;font-size:10px;border:1px solid #dae2ed;background:#fff;padding:9px 12px;border-radius:9px;cursor:pointer;color:#5b6b82;font-weight:850}
.ado-tabs button.active{background:#202f46;color:#fff;border-color:#202f46}
.ado-scroll{width:100%;overflow:auto}
.ado-table{width:100%;min-width:680px;border-collapse:collapse;font-size:10px}
.ado-table th,.ado-table td{padding:11px 10px;border-bottom:1px solid #ecf0f6;text-align:right;white-space:nowrap;vertical-align:middle}
.ado-table thead th{color:#64758c;font-size:9px;background:#f7f9fc;font-weight:900}
.ado-table th:first-child,.ado-table td:first-child{text-align:left}
.ado-table tbody th{font-weight:850;color:#293a55}
.ado-table tbody th small{display:block;font-weight:550;color:#748198;font-size:8px;margin-top:3px}
.ado-table tbody tr:last-child td,.ado-table tbody tr:last-child th{border-bottom:0}
.ado-table .ado-negative{color:#d33b4e;font-weight:900}.ado-table .ado-positive{color:#158157;font-weight:900}
.ado-area-link{border:none;padding:4px 2px;cursor:pointer;color:#1d5a9f;background:transparent;font-size:inherit;font-weight:850;text-align:left}
.ado-area-link:hover{text-decoration:underline}
.ado-rank-badge{background:#ffeded;color:#bb2943;border-radius:6px;padding:5px 8px;font-weight:900}
.ado-scope{font-size:9px;color:#7a8598;text-align:right}
.ado-footnote{font-size:9px;line-height:1.65;color:#768298;margin-top:12px}
.ado-missing{color:#70829b;background:#f9fbff;border:1px solid #e2eaf4;border-radius:10px;padding:18px;font-size:11px;line-height:1.6}
@media(max-width:1400px){.ado-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1000px){.ado-map-layout{grid-template-columns:1fr}.ado-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.ado-map-frame{min-height:330px}#adoMapSvg{min-height:320px;max-height:500px}.ado-detail-body{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:630px){.ado-header{display:block!important}.ado-live-pill{display:inline-block;margin-top:11px}.ado-header h1{font-size:22px}.ado-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ado-toolbar label{min-width:0}.ado-toolbar .ado-mode-label{grid-column:1/-1;min-width:0}.ado-toolbar .ado-reset{grid-column:1/-1}.ado-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ado-stat{padding:11px}.ado-stat>strong{font-size:16px}.ado-panel{padding:11px}.ado-panel-heading{flex-wrap:wrap}.ado-map-actions{width:100%;justify-content:flex-start}.ado-map-frame{min-height:275px}#adoMapSvg{min-height:275px;max-height:360px}.ado-detail-body{grid-template-columns:repeat(2,minmax(0,1fr))}.ado-detail-stat strong{font-size:15px}.ado-map-legend{gap:7px}.ado-tabs button{padding:8px;font-size:9px}.ado-table{font-size:9px}}

/* Contextual filtering of operational KPI */
#adoPage .ado-toolbar .ado-sub-label{flex:1.65;min-width:185px}
#adoPage .ado-focus{display:flex;gap:5px 10px;align-items:center;flex-wrap:wrap;background:#f0f5fd;border:1px solid #dae6f5;color:#284468;padding:11px 13px;border-radius:11px;font-size:11px;line-height:1.45;margin:0 0 10px}
#adoPage .ado-focus b{font-weight:950;color:#b92845}
#adoPage .ado-focus small{display:block;flex-basis:100%;color:#6f7f93;font-size:9px}
#adoPage .ado-subcaption{grid-column:1/-1;font-size:10px;color:#697990;padding:0 2px 6px}
#adoPage .ado-selected-row{background:#f1f5ff}
#adoPage .ado-stat strong{line-height:1.35}
@media(max-width:750px){
 #adoPage .ado-toolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 #adoPage .ado-toolbar .ado-mode-label,#adoPage .ado-toolbar .ado-sub-label{grid-column:1/-1;min-width:0}
 #adoPage .ado-toolbar label{min-width:0}
 #adoPage .ado-toolbar select{width:100%;font-size:12px;min-height:40px}
 #adoPage .ado-toolbar .ado-reset{grid-column:1/-1}
 #adoPage .ado-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #adoPage .ado-stat{padding:11px;min-width:0}
 #adoPage .ado-stat strong{font-size:15px;overflow-wrap:anywhere}
 #adoPage .ado-map-layout{grid-template-columns:minmax(0,1fr)}
 #adoPage .ado-detail-body{grid-template-columns:repeat(2,minmax(0,1fr))}
 #adoPage .ado-map-actions{width:100%;justify-content:flex-start}
 #adoPage .ado-tabs{gap:5px}
 #adoPage .ado-tabs button{font-size:10px;padding:9px}
}

/* Territory Profile Scorecard — uses available space beneath the DIY map */
#adoPage .ado-map-panel{display:flex;flex-direction:column}
#adoPage .ado-territory-profile{margin-top:15px;padding:14px;border:1px solid #dce6ef;border-radius:12px;background:linear-gradient(160deg,#f8fafc,#f2f7fd)}
#adoPage .ado-profile-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin:0 0 13px}
#adoPage .ado-profile-heading h3{font-size:14px;font-weight:950;letter-spacing:-.01em;margin:0 0 4px;color:#1a334f}
#adoPage .ado-profile-heading p{color:#708197;font-size:9px;margin:0;line-height:1.55}
#adoPage .ado-profile-period{font-size:8px;line-height:1.5;color:#62758c;max-width:150px;text-align:right}
#adoPage .ado-profile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
#adoPage .ado-profile-card{background:white;display:flex;align-items:flex-start;gap:9px;border:1px solid #e2e8f1;border-radius:11px;padding:12px 10px;min-height:92px;min-width:0;box-shadow:0 2px 5px rgba(30,60,90,.025)}
#adoPage .ado-profile-symbol{width:28px;height:28px;flex:0 0 28px;background:#fce9ec;color:#bd2642;border-radius:9px;display:grid;place-items:center;font-weight:950;font-size:9px;letter-spacing:-.04em}
#adoPage .ado-profile-card:nth-child(3n+2) .ado-profile-symbol{background:#e8f3fd;color:#346ca8}
#adoPage .ado-profile-card:nth-child(3n) .ado-profile-symbol{background:#e8f6f0;color:#137e63}
#adoPage .ado-profile-stat{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}
#adoPage .ado-profile-stat>span{font-size:9px;color:#6b7b8e;font-weight:850;line-height:1.25}
#adoPage .ado-profile-stat strong{font-size:20px;line-height:1.12;font-weight:950;color:#172c45;overflow-wrap:anywhere}
#adoPage .ado-profile-stat small{font-size:8px;color:#8090a2;line-height:1.35;overflow-wrap:anywhere}
#adoPage .ado-profile-note{font-size:9px;line-height:1.6;margin:10px 0 0;color:#74839a}
@media(max-width:1280px){#adoPage .ado-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:860px){#adoPage .ado-profile-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){
 #adoPage .ado-territory-profile{padding:11px}
 #adoPage .ado-profile-heading{flex-direction:column}
 #adoPage .ado-profile-period{text-align:left;max-width:none}
 #adoPage .ado-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 #adoPage .ado-profile-card{padding:9px 7px;gap:7px;min-height:88px}
 #adoPage .ado-profile-symbol{width:24px;height:24px;flex-basis:24px;font-size:8px}
 #adoPage .ado-profile-stat>span{font-size:8px}
 #adoPage .ado-profile-stat strong{font-size:17px}
 #adoPage .ado-profile-stat small{font-size:7px}
}
