:root{color-scheme:dark;--bg:#061122;--panel:#0c1e35;--line:#203b5b;--cyan:#41dafa;--muted:#91a9c6;--green:#57ddb2;--red:#ff8a97}*{box-sizing:border-box}body{margin:0;font:14px/1.55 "Microsoft YaHei",system-ui,sans-serif;background:radial-gradient(ellipse at 50% 0,#103c6c 0,transparent 55%),var(--bg);color:#e8f2ff}header{padding:23px 30px 18px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #25547c;gap:20px}h1{margin:0;font-size:27px;letter-spacing:5px}h2{font-size:18px;margin:0 0 18px}h3{font-size:16px;margin:0 0 16px}.brand{font-weight:900;font-size:25px;letter-spacing:2px}.brand span{color:var(--cyan)}small,.muted{color:var(--muted)}.brand small{display:block;font-size:12px;font-weight:400;letter-spacing:3px}nav{display:flex;gap:8px;padding:15px 30px}button,input,select{font:inherit;color:inherit;border:1px solid var(--line);background:#10243e;border-radius:6px;padding:9px 13px}button{cursor:pointer}button:hover,button.active{border-color:var(--cyan);background:#173b5a;color:var(--cyan)}button.primary{background:#147cb3;border-color:#2aa8da;color:white}button:disabled{opacity:.45;cursor:wait}main{padding:0 30px 35px;max-width:1920px;margin:auto}.toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 0 18px}.toolbar label{color:var(--muted)}.toolbar .push{margin-left:auto}.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:20px}.card,.panel{background:linear-gradient(140deg,#102a46d9,#0a1b30f0);border:1px solid var(--line);border-radius:8px;padding:20px;min-width:0}.card{border-top:2px solid #368ec0}.card .num{font-family:system-ui;font-size:34px;letter-spacing:1px;font-weight:650;margin:9px 0;color:#f2faff}.card small{display:block}.grid{display:grid;grid-template-columns:1.7fr 1fr;gap:20px;margin-bottom:20px}.up{color:var(--green)}.down{color:var(--red)}.note{padding:12px 16px;border-left:3px solid #d4a74d;background:#332d2040;color:#e1c891;margin:16px 0}.table-wrap{overflow:auto;max-height:620px}table{border-collapse:collapse;width:100%;white-space:nowrap}th,td{padding:12px 15px;text-align:right;border-bottom:1px solid #1a3552}th{background:#132c47;color:#a9c4e3;position:sticky;top:0;z-index:1;font-weight:500}th:first-child,td:first-child{text-align:left}tbody tr:hover{background:#163a544d}td.name{max-width:350px;overflow:hidden;text-overflow:ellipsis}.link{border:0;padding:0;background:transparent;color:var(--cyan);text-align:left}.trail{display:flex;gap:10px;align-items:center;margin:8px 0 15px;flex-wrap:wrap}.bars{display:flex;flex-direction:column;gap:17px}.bar-line{display:grid;grid-template-columns:125px 1fr 95px;gap:14px;align-items:center}.track{height:10px;background:#19324d;border-radius:4px;overflow:hidden}.fill{height:100%;background:linear-gradient(90deg,#2875d0,#42d6ec);border-radius:4px}.bar-line b{text-align:right;font-family:system-ui}.legend{display:flex;gap:20px;color:var(--muted);margin-top:12px}.legend span:before{content:"";display:inline-block;width:9px;height:9px;margin-right:8px;background:var(--cyan)}.legend span:nth-child(2):before{background:#8b93e6}.legend span:nth-child(3):before{background:#e6bd63}svg.chart{width:100%;height:245px}svg text{font:12px system-ui;fill:#9db8d5}.meta{color:var(--muted);font-size:13px;margin:14px 0}.wide{min-width:1250px}.empty{text-align:center;padding:45px;color:var(--muted)}dialog{background:#0c2038;color:#e7f2ff;border:1px solid #315a7c;border-radius:10px;width:580px;max-width:95vw;padding:25px}dialog::backdrop{background:#000a}#fields{display:grid;grid-template-columns:1fr 1fr;gap:15px}#fields h2,#fields .full{grid-column:1/-1}#fields label{display:flex;flex-direction:column;gap:7px;color:#a9bfd7}footer{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#185675;border:1px solid #42c7df;border-radius:6px;padding:12px 22px;display:none;z-index:10}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;max-width:850px}.form-grid label{display:flex;flex-direction:column;gap:8px}.badge{font-size:12px;padding:3px 8px;background:#234561;color:#bde9ff;border-radius:4px}.metric-title{display:flex;justify-content:space-between;align-items:center}.search{min-width:260px}.row-count{margin-left:auto;color:var(--muted)}@media(max-width:1000px){header{flex-wrap:wrap}h1{font-size:22px}.grid{grid-template-columns:1fr}.kpis{grid-template-columns:repeat(2,1fr)}nav{overflow:auto}main{padding:0 15px 20px}header,nav{padding-left:15px;padding-right:15px}.num{font-size:27px!important}}@media(max-width:550px){.kpis{grid-template-columns:1fr}.form-grid,#fields{grid-template-columns:1fr}h1{letter-spacing:1px}.brand small{display:none}.bar-line{grid-template-columns:100px 1fr 80px}}

.forecast-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;padding:16px;background:var(--panel);border:1px solid var(--line);border-radius:8px}.forecast-filters label{display:flex;flex-direction:column;gap:6px;color:var(--muted)}.forecast-filters input,.forecast-filters select{width:100%;min-width:0}.filter-actions{display:flex;gap:8px;align-items:end}.forecast-total{color:var(--cyan);font-size:14px;margin-top:5px}

/* Compact forecast filters: two rows on desktop. */
.forecast-filters{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px 12px;padding:12px}
.forecast-filters label{gap:3px;font-size:13px;line-height:1.4}
.forecast-filters input,.forecast-filters select{padding:5px 8px;height:32px;font-size:13px;border-radius:4px}
.forecast-filters .filter-actions{align-items:end;gap:8px}
.forecast-filters .filter-actions button{height:32px;padding:4px 14px;font-size:13px}
@media(max-width:900px){.forecast-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:550px){.forecast-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}

.forecast-summary{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:14px}.forecast-summary>span{color:var(--muted)}.forecast-summary output{padding:6px 12px;border:1px solid var(--line);border-radius:5px;background:#10243e;color:var(--cyan);font-weight:600;font-variant-numeric:tabular-nums}

.world-panel{margin-bottom:20px;position:relative;background:radial-gradient(ellipse at center,#103859,#091c31 75%)}
.world-map{max-width:1100px;margin:0 auto}.world-map svg{width:100%;display:block;max-height:420px}
.world-map [data-map-country]{cursor:pointer;transition:fill .12s}
.world-map [data-map-country]:hover,.world-map [data-map-country]:focus{stroke:#e2ffff;stroke-width:1.8;outline:none;filter:brightness(1.3)}
.world-legend{display:flex;justify-content:center;gap:10px;align-items:center;flex-wrap:wrap;color:var(--muted);font-size:13px}
.map-scale{display:inline-block;width:120px;height:8px;background:linear-gradient(90deg,#215581,#68e9ed);border-radius:4px}
.map-none{display:inline-block;width:12px;height:12px;background:#19334e;border:1px solid #387095}
.map-credit{font-size:12px;color:var(--muted);text-align:right;margin-top:8px}
.map-tooltip{position:fixed;z-index:50;pointer-events:none;background:#071829f5;border:1px solid #47bdde;box-shadow:0 8px 24px #0008;border-radius:8px;padding:12px 16px;min-width:215px;max-width:320px;line-height:1.8;font-size:14px}
.map-tooltip strong{font-size:17px;color:var(--cyan)}.map-tooltip b{color:#fff}

.brand .logo-h{color:#EA4335}.brand .logo-u{color:#FBBC05}.brand .logo-g{color:#4285F4}.brand .logo-e{color:#34A853}

.achievement-tree .tree-name{position:relative;min-height:30px;display:flex;align-items:center;padding-left:calc(var(--tree-depth)*26px)}
.achievement-tree .tree-toggle{display:inline-flex;align-items:center;gap:9px;border:0;background:transparent;padding:4px 0;color:var(--cyan);text-align:left}
.tree-icon{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border:1px solid #487995;border-radius:3px;font-size:16px;line-height:1;flex-shrink:0}
.tree-leaf{padding:4px 0 4px 27px;color:#bed4e9}
.tree-child .tree-connector{position:absolute;left:calc(var(--tree-depth)*26px - 18px);top:-13px;height:29px;width:14px;border-left:1px dashed #5787a6;border-bottom:1px dashed #5787a6}
.achievement-tree .tree-parent{background:#102b4445;font-weight:600}.achievement-tree .tree-child{background:#0b203440}
.achievement-tree td:first-child{min-width:245px}

.monthly-tree{border-collapse:separate;border-spacing:0}
.monthly-tree th,.monthly-tree td{background:var(--period-bg,#10243e)}
.monthly-tree thead tr:first-child th{top:0;height:46px;z-index:4}
.monthly-tree thead tr:nth-child(2) th{top:46px;z-index:3}
.monthly-tree thead tr:first-child th:first-child{position:sticky;left:0;top:0;z-index:8;background:#15324b;min-width:270px;border-right:2px solid #4a789b;box-shadow:5px 0 8px #0004}
.monthly-tree tbody td:first-child{position:sticky;left:0;z-index:2;background:#10283f;border-right:2px solid #4a789b;box-shadow:5px 0 8px #0004;min-width:270px}
.monthly-tree .tree-child td:first-child{background:#0c2136}
.monthly-tree .period-ytd{--period-bg:#17435a}
.monthly-tree td:nth-child(6n+2){border-left:2px solid #60839d66}
.monthly-tree th[class^="period-"]{color:#e2edf8}
.monthly-tree tbody tr:hover td:not(:first-child){background:color-mix(in srgb,var(--period-bg) 85%,white)}

.monthly-tree .period-1{--period-bg:#13364b}
.monthly-tree .period-2{--period-bg:#183e40}
.monthly-tree .period-3{--period-bg:#303552}
.monthly-tree .period-4{--period-bg:#443541}
.monthly-tree .period-5{--period-bg:#3e4025}
.monthly-tree .period-6{--period-bg:#243e51}
.monthly-tree .period-7{--period-bg:#3b2e50}
.monthly-tree .period-8{--period-bg:#234332}
.monthly-tree .period-9{--period-bg:#49322d}
.monthly-tree .period-10{--period-bg:#21364e}
.monthly-tree .period-11{--period-bg:#3c3b50}
.monthly-tree .period-12{--period-bg:#354225}
/* Overview follows the business sketch: metrics / world / rankings. */
.login-card{max-width:460px;margin:9vh auto;padding:36px}.login-card h2{margin-top:15px;font-size:23px}.login-card form,.login-card label{display:flex;flex-direction:column;gap:10px}.login-card form{gap:20px}.login-card input{width:100%}.eyebrow{font-size:11px;letter-spacing:3px;color:var(--cyan)}#login-error{color:var(--red);margin:0}#connection{font-size:12px;white-space:nowrap}#connection button{padding:5px 8px;font-size:12px}nav .push{margin-left:auto}.admin-tabs{border-bottom:1px solid var(--line);margin-bottom:20px}.cockpit-mode{background:radial-gradient(ellipse at 50% 40%,#084c9360,transparent 55%),linear-gradient(140deg,#030e2c,#061b42 60%,#020c23)}.cockpit-mode header{padding-top:17px;padding-bottom:15px;background:linear-gradient(90deg,#051738,#07346b80,#051738)}.cockpit-mode h1{color:#f2fbff;text-shadow:0 0 25px #4abafa80}.cockpit-mode nav{padding-top:10px;padding-bottom:8px}.screen-caption{display:flex;align-items:center;gap:18px;color:#89b1d9;font-size:12px;padding:5px 0 12px}.screen-caption>span:first-child{letter-spacing:3px;color:#56c7f2;margin-right:auto}.screen-caption button{font-size:12px;padding:5px 12px}.cockpit-layout{display:grid;grid-template-columns:minmax(250px,1fr) minmax(400px,2.55fr) minmax(250px,1fr);gap:18px;min-height:650px;height:calc(100vh - 185px);max-height:1000px}.screen-column{display:grid;grid-template-rows:1.15fr 1fr 1fr;gap:16px;min-width:0}.screen-panel{background:linear-gradient(120deg,#0a2e5999,#061938d9);border:1px solid #2168a270;box-shadow:inset 0 0 26px #1268b019;text-align:left;border-radius:3px;padding:18px;min-width:0;overflow:hidden;position:relative}.screen-panel:before{content:"";position:absolute;left:0;top:0;width:40px;height:3px;background:#44cdf2;box-shadow:0 0 10px #29bef5}.screen-panel:hover{background:linear-gradient(120deg,#0e3b6b,#092040);box-shadow:0 0 20px #1ebaff20;color:inherit}.screen-heading{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:16px;font-weight:600;color:#e4f3ff;margin-bottom:14px}.screen-heading>span{font-size:11px;color:#6ca7d6;font-weight:400;white-space:nowrap}.screen-metric{display:flex;flex-direction:column;margin-bottom:10px}.screen-metric>span{font-size:12px;color:#8baecc}.screen-metric strong{font:600 clamp(23px,2vw,35px)/1.4 system-ui;color:#64e2ff;letter-spacing:1px}.screen-metric strong small{font:11px 'Microsoft YaHei';margin-left:7px;letter-spacing:0;color:#7facce}.metric-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}.metric-pair .screen-metric strong{font-size:21px;color:#e8f5ff}.metric-module>small{font-size:10px}.screen-center{position:relative;display:flex;flex-direction:column;justify-content:center;min-width:0;border:1px solid #287bb63d;background:radial-gradient(ellipse,#0c548547,transparent 65%);overflow:hidden}.screen-center .world-panel{border:0;background:none;box-shadow:none;padding:20px 12px;margin:0;width:100%}.screen-center .metric-title{flex-wrap:wrap;gap:8px}.screen-center h2{font-size:20px;margin:0}.screen-center .metric-title>.muted{font-size:11px}.screen-center .world-map{margin-top:36px}.screen-center .world-map svg{width:100%;height:auto;max-height:none;filter:drop-shadow(0 0 10px #1dabe42e)}.screen-center .world-legend{font-size:10px;gap:8px;flex-wrap:wrap}.screen-center .meta{font-size:10px;max-height:50px;overflow:auto}.screen-center .map-credit{font-size:9px}.map-details{align-self:center;font-size:12px;color:#5ed6f4;background:#0a284b;margin-top:12px}.screen-bottom{margin-top:35px;display:flex;flex-direction:column;align-items:center;gap:8px;color:#8eacc8}.screen-bottom>strong{font:600 38px system-ui;letter-spacing:3px;color:#e8faff;text-shadow:0 0 22px #25baff70}.screen-bottom small{font-size:12px;letter-spacing:0}.screen-bottom button{font-size:12px;border:0;background:transparent;color:#5dcdf2}.screen-rank{display:grid;grid-template-columns:21px minmax(0,1fr) 65px;gap:9px;margin-top:12px;align-items:center}.screen-rank i{font:italic 15px system-ui;color:#5483ad}.screen-rank:nth-child(2) i{color:#ffc265}.screen-rank span{font-size:12px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#bbd1e7}.screen-rank b{font:500 12px system-ui;text-align:right;color:#71d9f5}.rank-track{height:4px;background:#153250;margin-top:6px}.rank-track div{height:100%;background:linear-gradient(90deg,#126adb,#48dfec)}
@media(min-width:1700px){.screen-rank{margin-top:18px}.screen-panel{padding:24px}.screen-metric{margin-bottom:18px}}
@media(max-width:1100px){.cockpit-layout{grid-template-columns:230px minmax(280px,1fr);height:auto;max-height:none}.cockpit-layout>.screen-column:last-child{grid-column:1/-1;grid-template-columns:repeat(3,1fr);grid-template-rows:auto}.screen-center{min-height:650px}.screen-panel{padding:14px}.screen-caption>span:first-child{letter-spacing:1px}}
@media(max-width:650px){.cockpit-layout{display:flex;flex-direction:column}.screen-column,.cockpit-layout>.screen-column:last-child{display:flex;flex-direction:column}.screen-center{min-height:420px;order:-1}.screen-panel{width:100%}.screen-caption{flex-wrap:wrap}.screen-center .world-map{margin-top:12px}.screen-bottom{margin:12px}.cockpit-mode header h1{font-size:18px}.login-card{margin:5vh auto;padding:24px}}
/* Map header total and lower monthly trend. */
.screen-center{justify-content:flex-start}.screen-total{flex:none;text-align:center;padding:16px 12px 8px;color:#9bbddc}.screen-total>span{display:block;font-size:13px;letter-spacing:2px}.screen-total>strong{display:block;font:600 36px/1.3 system-ui;letter-spacing:3px;color:#e8faff;text-shadow:0 0 22px #25baff70}.screen-total small{font-size:12px;letter-spacing:0}.screen-center .world-panel{flex:1;min-height:0;display:flex;flex-direction:column;padding:10px 12px 0}.screen-center .world-map{flex:1;min-height:120px;margin-top:12px;display:flex;align-items:center;justify-content:center}.screen-center .world-map svg{height:100%;max-height:330px;width:100%;min-height:0}.screen-center .map-details{margin:6px 0;font-size:11px;padding:4px 10px}.screen-trend{flex:none;width:100%;padding:10px 16px 12px;border-top:1px solid #287bb640;background:#061b3633}.screen-trend .screen-heading{margin:0 0 5px;font-size:14px}.screen-trend button{font-size:11px;padding:3px 8px;background:transparent;border:0;color:#5dcdf2}.screen-trend svg.chart{height:150px;display:block}.screen-trend .legend{font-size:10px;gap:12px;margin-top:4px;flex-wrap:wrap}@media(min-width:1700px){.screen-trend svg.chart{height:180px}}@media(max-width:1100px){.screen-center .world-map{min-height:190px}.screen-center .world-map svg{height:auto}}@media(max-width:650px){.screen-total>strong{font-size:30px}.screen-trend{padding:10px}.screen-trend svg.chart{height:150px}.screen-center .world-panel{flex:auto}.screen-center .world-map{min-height:140px}}
.screen-center .world-map{position:relative;padding-bottom:125px;min-height:230px}.country-top{position:absolute;bottom:0;left:5px;width:min(340px,95%);padding:8px 10px;border:1px solid #3287bc66;border-radius:5px;background:#061b35e8;box-shadow:0 6px 24px #00142b70;z-index:2}.country-top-title{font-size:11px;color:#a4d9f1;display:flex;justify-content:space-between;gap:6px}.country-top-title small{font-size:9px;color:#719ab9}.country-donuts{display:flex;justify-content:space-around;gap:7px;margin-top:6px}.country-donut-item{display:flex;flex-direction:column;align-items:center;border:0;background:transparent;padding:0;gap:2px;min-width:0;width:33%}.country-donut{display:flex;align-items:center;justify-content:center;width:62px;height:62px;border-radius:50%;background:conic-gradient(var(--ring) var(--share),#234058 0)}.country-donut>span{display:flex;align-items:center;justify-content:center;text-align:center;width:48px;height:48px;border-radius:50%;background:#081e37;font-size:9px;line-height:1.1;padding:4px;overflow-wrap:anywhere;color:#d5edff;overflow:hidden}.country-donut-item b{font:600 12px system-ui;color:#8de7ff}.country-donut-item>small{font-size:9px;color:#aac4db}.country-donut-item:hover{background:transparent}.country-donut-item:hover .country-donut{filter:drop-shadow(0 0 5px var(--ring))}@media(max-width:1100px){.screen-center .world-map{min-height:295px}}@media(max-width:650px){.screen-center .world-map{min-height:275px}.country-top{width:290px}}
/* Three linked country pies float directly over the map, without a separate panel. */
.screen-center .world-map{padding-bottom:0;position:relative;min-height:230px}
.country-top{left:2%;bottom:3%;width:auto;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;pointer-events:none}
.country-top-title{display:none}
.country-donuts{flex-direction:column;gap:12px;margin:0;align-items:flex-start}
.country-donut-item{width:84px;pointer-events:auto;gap:1px;border-radius:0;background:transparent}
.country-donut-item:hover{background:transparent}
.country-donut{width:52px;height:52px}
.country-donut>span{width:40px;height:40px;font-size:8px;background:#082442e8}
.country-donut-item b{font-size:10px}
.country-donut-item>small{font-size:8px;white-space:nowrap}
.country-donut-item:focus-visible{outline:2px solid #69e3ff;outline-offset:3px;border-radius:5px}
@media(min-width:1700px){.country-donut{width:62px;height:62px}.country-donut>span{width:48px;height:48px;font-size:9px}.country-donuts{gap:16px}.country-donut-item{width:94px}}
@media(max-width:1100px){.screen-center .world-map{min-height:280px}.country-top{width:auto;left:0;bottom:0}.country-donuts{gap:8px}.country-donut-item{width:70px}}
@media(max-width:650px){.screen-center .world-map{min-height:245px}.country-donut{width:44px;height:44px}.country-donut>span{width:34px;height:34px;font-size:7px}.country-donut-item{width:64px}.country-donuts{gap:6px}}
/* Full representative ranking scrolls upward and loops from the first place. */
.rep-rank-module{display:flex;flex-direction:column;min-height:0;width:100%}.rep-rank-module .screen-heading{flex:none;width:100%}.rep-rank-viewport{flex:1;min-height:0;overflow:hidden;width:100%;text-align:left}.rep-rank-track{width:100%}.rep-rank-group{display:flow-root}.rep-rank-module .screen-rank{height:40px;margin:0;padding:5px 0;grid-template-columns:24px minmax(0,1fr) 65px}.rep-rank-copy{display:none}.rep-rank-viewport.is-scrolling .rep-rank-copy{display:flow-root}.rep-rank-viewport.is-scrolling .rep-rank-track{animation:rep-rank-up var(--rep-duration,40s) linear infinite;will-change:transform}.rep-rank-module:hover .rep-rank-track,.rep-rank-module:focus-visible .rep-rank-track{animation-play-state:paused}@keyframes rep-rank-up{from{transform:translateY(0)}to{transform:translateY(-50%)}}@media(max-width:1100px){.rep-rank-viewport{flex:none;height:200px}}@media(prefers-reduced-motion:reduce){.rep-rank-viewport.is-scrolling .rep-rank-track{animation:none}.rep-rank-viewport{overflow-y:auto}.rep-rank-viewport.is-scrolling .rep-rank-copy{display:none}}
.rep-rank-module .rep-rank-viewport{max-height:200px}.cockpit-layout>.screen-column{min-height:0;grid-template-rows:minmax(0,1.15fr) minmax(0,1fr) minmax(0,1fr)}@media(max-width:1100px){.cockpit-layout>.screen-column:last-child{grid-template-rows:auto}}
/* Align the map heading to the top and the floating country charts to its far left. */
.screen-center .world-panel{position:relative;justify-content:flex-start}
.screen-center .world-panel>.metric-title{align-self:stretch;align-items:flex-start;flex:none;margin:0 0 6px;padding:0}
.screen-center .world-panel>.metric-title h2{align-self:flex-start;margin:0}
.screen-center .world-map{width:100%;align-self:stretch;margin-top:0}
.screen-center .country-top{left:0;right:auto;transform:none}
@media(max-width:1100px){.screen-center .country-top{left:0}}
@media(max-width:650px){.screen-center .country-top{left:0}}
.screen-center .world-panel{position:static}
.screen-center .world-panel>.metric-title{position:absolute;top:12px;left:12px;right:12px;z-index:1}
.screen-center .screen-total{padding-top:48px}
@media(max-width:650px){.screen-center .screen-total{padding-top:64px}}
/* Reserve enough room for the sales achievement percentage on shorter screens. */
.cockpit-layout>.screen-column:first-child{grid-template-rows:minmax(250px,1.25fr) minmax(180px,1fr) minmax(160px,.9fr)}
.sales-target-module{padding:14px 18px}
.sales-target-module .screen-heading{margin-bottom:10px}
.sales-target-module .screen-metric{margin-bottom:6px}
.sales-target-module .screen-metric strong{font-size:28px;line-height:1.2}
.sales-target-module .metric-pair{border-top:1px solid #287bb640;padding-top:8px;margin-top:4px}
.sales-target-module .metric-pair .screen-metric{margin-bottom:0}
.sales-target-module .metric-pair .screen-metric strong{font-size:23px;color:#64e2ff;line-height:1.25}
/* Give the world map more space and keep the floating country pies compact. */
.screen-center .world-map svg{max-height:430px}
.screen-center .screen-total{padding-bottom:3px}
.screen-trend svg.chart{height:125px}
.screen-center .country-donut{width:42px;height:42px}
.screen-center .country-donut>span{width:32px;height:32px;font-size:7px;padding:2px}
.screen-center .country-donut-item{width:68px}
.screen-center .country-donut-item b{font-size:9px}
.screen-center .country-donut-item>small{font-size:8px}
.screen-center .country-donuts{gap:8px}
@media(min-width:1700px){.screen-center .world-map svg{max-height:480px}.screen-trend svg.chart{height:150px}.screen-center .country-donut{width:48px;height:48px}.screen-center .country-donut>span{width:37px;height:37px;font-size:8px}}
@media(max-width:650px){.screen-center .country-donut{width:36px;height:36px}.screen-center .country-donut>span{width:28px;height:28px;font-size:6px}.screen-center .country-donut-item{width:58px}.screen-center .country-donuts{gap:5px}}
/* Put the global sales total first, above the map heading. */
.screen-center .screen-total{order:0;padding:12px 12px 8px;flex:none}
.screen-center .world-panel{order:1;position:relative}
.screen-center .world-panel>.metric-title{position:static;top:auto;left:auto;right:auto;margin:0 0 6px}
.screen-center>.map-details{order:2}
.screen-center>.screen-trend{order:3}
@media(max-width:650px){.screen-center .screen-total{padding-top:12px}}
/* Larger map, with three compact pies in one floating bottom-left row. */
.screen-center .world-panel{flex:1;min-height:0;padding-top:14px}
.screen-center .world-map{padding-bottom:0;min-height:260px}
.screen-center .world-map svg{max-height:560px;width:100%;height:100%}
.screen-center .country-top{left:0;bottom:0;width:auto;padding:0;background:transparent;border:0;box-shadow:none}
.screen-center .country-donuts{flex-direction:row;align-items:flex-end;gap:7px;margin:0}
.screen-center .country-donut-item{width:62px;gap:1px}
.screen-center .country-donut{width:36px;height:36px}
.screen-center .country-donut>span{width:28px;height:28px;padding:2px;font-size:6px}
.screen-center .country-donut-item b{font-size:9px}
.screen-center .country-donut-item>small{font-size:8px}
@media(min-width:1700px){.screen-center .world-map svg{max-height:650px}.screen-center .country-donut{width:40px;height:40px}.screen-center .country-donut>span{width:31px;height:31px;font-size:7px}}
@media(max-width:1100px){.screen-center .world-map{min-height:300px}.screen-center .world-map svg{height:auto}}
@media(max-width:650px){.screen-center .world-map{min-height:250px}.screen-center .country-donut-item{width:58px}.screen-center .country-donuts{gap:4px}}

/* Lower cockpit row: monthly trend and invoice product-level-three top five. */
.screen-lower-grid{order:3;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:12px;flex:none;width:100%;border-top:1px solid #287bb640;align-items:stretch}
.screen-lower-grid .screen-trend{border-top:0;min-width:0;padding:12px}
.product-third-ranking{min-width:0;padding:10px 10px 10px 0}
.product-third-ranking>.screen-panel{width:100%;height:100%;padding:10px 12px;display:block}
.product-third-ranking .screen-heading{font-size:14px;margin-bottom:8px;flex-wrap:wrap}
.product-third-ranking .screen-rank{margin-top:8px;grid-template-columns:20px minmax(0,1fr) 65px;gap:6px}
.product-third-ranking .screen-rank span{font-size:11px}
.product-third-ranking .rank-track{margin-top:3px;height:3px}
.screen-lower-grid svg.chart{width:100%}
@media(max-width:1350px){.screen-lower-grid{grid-template-columns:minmax(0,1fr)}.product-third-ranking{padding:0 12px 12px}.screen-center{overflow:visible}.cockpit-layout{height:auto;max-height:none}}
@media(max-width:650px){.screen-lower-grid .screen-trend{padding:10px}.product-third-ranking{padding:0 10px 10px}}

.product-third-ranking>.rep-rank-module{display:flex;height:210px}
.product-third-ranking .rep-rank-viewport{height:158px;max-height:158px;flex:1}
.product-third-ranking .rep-rank-module .screen-rank{height:32px;margin:0;padding:4px 0}

.sales-rays{pointer-events:none}.sales-ray-base{fill:none;stroke:#ffd17a;opacity:.17}.sales-ray-pulse{fill:none;stroke:#ffe6a0;stroke-linecap:round;stroke-dasharray:5 95;stroke-dashoffset:5;opacity:0;animation:sales-ray-flight var(--ray-duration) linear var(--ray-delay) infinite;filter:drop-shadow(0 0 2px #ffca58)}.sales-ray-end{fill:#ffe3a0;opacity:.8}.sales-origin{fill:#fff2ba;stroke:#ffb948;stroke-width:1.5}.sales-origin-halo{fill:#ffc55e22;stroke:#ffc55e;stroke-width:1;transform-box:fill-box;transform-origin:center;animation:sales-origin-pulse 2.2s ease-out infinite}.sales-origin-label{fill:#fff1be;font-size:11px;font-weight:600;paint-order:stroke;stroke:#082b4e;stroke-width:3px}
@keyframes sales-ray-flight{0%{stroke-dashoffset:5;opacity:0}8%{opacity:.95}85%{opacity:.95}100%{stroke-dashoffset:-95;opacity:0}}
@keyframes sales-origin-pulse{0%{transform:scale(.5);opacity:1}100%{transform:scale(1.8);opacity:0}}
@media(prefers-reduced-motion:reduce){.sales-ray-pulse{animation:none;opacity:0}.sales-origin-halo{animation:none}.sales-ray-base{opacity:.3}}

/* Let the cockpit grow when the map footer and lower panels need more room. */
.cockpit-layout{height:auto;max-height:none;min-height:max(650px,calc(100vh - 185px))}
.screen-center .world-panel{flex:1 0 auto;min-height:auto;padding-bottom:8px}
.screen-center .world-map{flex:none;min-height:0;aspect-ratio:900/390}
.screen-center .world-map svg{display:block;width:100%;height:100%;max-height:none;flex:none}
.screen-center .world-legend,.screen-center .map-credit,.screen-center .world-panel>.metric-title{flex-shrink:0}
.screen-center .meta{flex-shrink:0;max-height:none;overflow:visible}
.screen-center>.map-details{flex-shrink:0}

/* Hide map footnotes only in the cockpit; keep analysis footnotes. */
.cockpit-mode .screen-center .world-panel>.meta,.cockpit-mode .screen-center .world-panel>.map-credit{display:none}

.shipping-report-scroll{max-height:70vh;overflow:auto}.shipping-template-table{border-collapse:separate;border-spacing:0;min-width:100%;font-variant-numeric:tabular-nums}.shipping-template-table th,.shipping-template-table td{white-space:nowrap;min-width:105px;border-right:1px solid #24415f;text-align:right}.shipping-template-table thead th{background:#123d62;color:#d6f4ff}.shipping-template-table tr>:first-child{position:sticky;left:0;z-index:1;background:#0d2946;text-align:left;min-width:170px}.shipping-template-table thead{position:sticky;top:0;z-index:3}.shipping-template-table thead tr>:first-child{background:#123d62}.shipping-template-table .shipping-total>*{background:#164c65;font-weight:700;color:#83eaff}.shipping-template-table tbody tr:hover td{background:#14354f}.shipping-report-panel .toolbar{flex-wrap:wrap}.shipping-tabs{flex-wrap:wrap}

/* Top horizontal filter ribbon for international reporting pages. */
.horizontal-filterbar,.shipping-report-panel .horizontal-filterbar{display:flex;flex-wrap:nowrap;align-items:flex-end;gap:14px;overflow-x:auto;padding:12px 14px;margin-bottom:14px;border:1px solid var(--line);border-radius:8px;background:#0c223a;max-width:100%}
.horizontal-filterbar>label{display:flex;flex:0 0 auto;flex-direction:column;gap:5px;white-space:nowrap;font-size:12px;min-width:145px}
.horizontal-filterbar>label input,.horizontal-filterbar>label select{height:36px;min-width:145px;max-width:280px;padding:6px 10px;font-size:13px}
.horizontal-filterbar>button,.horizontal-filterbar>.badge,.horizontal-filterbar>.muted{flex-shrink:0;white-space:nowrap}
.forecast-filters{display:flex;flex-wrap:nowrap;overflow-x:auto;align-items:flex-end;max-width:100%}
.forecast-filters>label{flex:0 0 165px}.forecast-filters>.filter-actions{flex-shrink:0}

/* Matrix hierarchy: separate parent/child columns like the reference report. */
.hierarchy-matrix{border-collapse:separate;border-spacing:0;font-size:12px}
.hierarchy-matrix th,.hierarchy-matrix td{padding:7px 10px;border-bottom:1px solid #29425a}
.hierarchy-matrix .hierarchy-cell,.monthly-tree tbody td.hierarchy-cell:first-child,.monthly-tree thead tr:first-child th.hierarchy-cell:first-child{position:sticky;left:calc(var(--hierarchy-index)*150px);min-width:150px;width:150px;max-width:150px;text-align:left;background:#10283f;border-right:1px solid #385269;box-shadow:none;z-index:2;white-space:normal;overflow-wrap:anywhere}
.hierarchy-matrix thead .hierarchy-cell,.monthly-tree thead tr:first-child th.hierarchy-cell:first-child{background:#183c58;z-index:6}
.hierarchy-matrix .tree-parent td{font-weight:600}.hierarchy-matrix .tree-child td{font-weight:400}
.hierarchy-matrix .tree-toggle{font-size:12px;display:flex;align-items:flex-start;gap:6px;text-align:left;white-space:normal;padding:0}
.hierarchy-matrix .tree-icon{flex:none;width:14px;height:14px;line-height:12px;border:1px solid #7093aa;border-radius:2px;font-size:12px;margin-top:3px}
.hierarchy-matrix .tree-leaf{padding-left:20px}.hierarchy-matrix .hierarchy-active{color:#d8f4ff}
@media(max-width:900px){.hierarchy-matrix .hierarchy-cell,.monthly-tree tbody td.hierarchy-cell:first-child,.monthly-tree thead tr:first-child th.hierarchy-cell:first-child{position:static}}

/* Compact cockpit and report density. */
@media(min-width:1101px){
.cockpit-mode header{padding:8px 24px}.cockpit-mode header h1{font-size:23px}.cockpit-mode nav{padding:6px 24px}.cockpit-mode nav button{padding:6px 12px}.cockpit-mode main{padding:0 24px 8px}.screen-caption{padding:3px 0 7px}
.cockpit-layout{grid-template-columns:minmax(200px,1fr) minmax(450px,2.8fr) minmax(200px,1fr);gap:10px;height:calc(100dvh - 175px);min-height:0;max-height:none}
.cockpit-layout>.screen-column,.cockpit-layout>.screen-column:first-child{grid-template-rows:repeat(3,minmax(0,1fr));gap:9px;min-height:0}
.screen-panel,.sales-target-module{padding:10px 12px}.screen-heading{font-size:13px;margin-bottom:8px}.screen-heading>span{font-size:10px}.screen-metric{margin-bottom:5px}.screen-metric>span{font-size:10px}.screen-metric strong,.sales-target-module .screen-metric strong{font-size:24px;line-height:1.15}.metric-pair .screen-metric strong,.sales-target-module .metric-pair .screen-metric strong{font-size:18px}.screen-metric strong small{font-size:9px}.screen-rank{margin-top:7px;gap:6px}.screen-rank span,.screen-rank b{font-size:10px}.screen-rank i{font-size:12px}.rank-track{margin-top:3px}.screen-panel>small{font-size:9px}
.screen-center{min-height:0;overflow:hidden}.screen-center .world-panel{flex:1 1 0;min-height:0;padding:8px 10px 0}.screen-center .world-map{flex:1 1 0;aspect-ratio:auto;min-height:0;margin-top:0}.screen-center .world-map svg{min-height:0}.screen-center h2{font-size:17px}.screen-center .world-legend{margin:3px 0;font-size:9px}.screen-center>.map-details{margin:3px 0;padding:2px 8px}
.screen-lower-grid{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:8px}.screen-lower-grid .screen-trend{padding:7px 10px}.screen-lower-grid .screen-trend svg.chart{height:110px}.screen-lower-grid .screen-heading{font-size:12px}.screen-trend .legend{font-size:9px;gap:6px}.product-third-ranking{padding:6px 6px 6px 0}.product-third-ranking>.rep-rank-module{height:157px;padding:7px 9px}.product-third-ranking .screen-heading{font-size:12px}.product-third-ranking .rep-rank-module .screen-rank{height:26px}.rep-rank-module .screen-rank{height:30px}.sales-target-module .metric-pair{padding-top:4px;margin-top:4px}
}
.hierarchy-matrix{width:max-content;min-width:100%;font-size:11px}.hierarchy-matrix th,.hierarchy-matrix td{padding:3px 6px;line-height:1.35}.hierarchy-matrix .tree-toggle{font-size:11px;line-height:1.35}.hierarchy-matrix .tree-icon{margin-top:0;width:12px;height:12px;line-height:10px}
.hierarchy-matrix .hierarchy-cell,.monthly-tree tbody td.hierarchy-cell:first-child,.monthly-tree thead tr:first-child th.hierarchy-cell:first-child{position:static;min-width:65px;width:auto;max-width:230px;white-space:normal;overflow-wrap:normal}
.monthly-tree thead tr:first-child th{height:30px}.monthly-tree thead tr:nth-child(2) th{top:30px}.hierarchy-matrix th:not(.hierarchy-cell),.hierarchy-matrix td:not(.hierarchy-cell){min-width:65px}
#customer-products-dialog{width:900px;max-width:95vw}#customer-products-dialog th,#customer-products-dialog td{padding:5px 10px;font-size:12px}

.hierarchy-matrix{width:max-content;min-width:0;table-layout:auto}.hierarchy-matrix .hierarchy-cell,.monthly-tree tbody td.hierarchy-cell:first-child,.monthly-tree thead tr:first-child th.hierarchy-cell:first-child{min-width:0;width:auto;max-width:220px;white-space:nowrap}.hierarchy-matrix .tree-toggle{white-space:nowrap}.hierarchy-matrix th,.hierarchy-matrix td{padding-left:7px;padding-right:7px}
.achievement-tree.hierarchy-matrix td.hierarchy-cell:first-child{min-width:0;width:auto;max-width:220px}
