/* Compact factory selector, three key totals, and the complete cost ticker. */
.overview-top,.dashboard-grid,.lower-grid{grid-template-columns:minmax(0,64fr) minmax(340px,36fr)}
.overview-main{min-width:0;display:grid;grid-template-rows:auto auto;gap:12px;align-content:start}
.overview-main .factory-map{margin:0}
.overview-main .kpi-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0}
.overview-main .kpi{min-width:0;padding:15px 14px 12px}
.overview-main .kpi-label{font-size:12px;gap:4px}
.overview-main .kpi-label small{display:none}
.overview-main .metric{margin:17px 0 14px;gap:4px;white-space:nowrap}
.overview-main .metric strong,.presentation .overview-main .metric strong{font-size:clamp(22px,1.8vw,32px);letter-spacing:-.6px}
.overview-main .metric>span{font-size:13px}
.overview-main .kpi-bottom{font-size:9px;gap:4px;line-height:1.5;flex-wrap:wrap}
.overview-main .kpi-cross{font-size:15px}
.overview-main .factory-map-heading,.presentation .overview-main .factory-map-heading{height:36px;padding:0 12px}
.overview-main .factory-map-heading h2{font-size:12px}
.overview-main .map-heading-en{display:none}
.overview-main .factory-lock-label{font-size:10px}
.overview-main .factory-map-stage,.presentation .overview-main .factory-map-stage{height:174px}
.overview-main .factory-map-foot,.presentation .overview-main .factory-map-foot{display:flex;min-height:26px;padding:6px 12px;font-size:8px}
.overview-main .factory-node{width:98px;min-height:65px;gap:5px;padding:4px 2px 5px;transform:translate(-50%,-17px)}
.overview-main .factory-pin,.overview-main .factory-all .factory-pin{width:26px;height:26px}
.overview-main .factory-pin svg{width:22px;height:22px}
.overview-main .factory-node-copy{gap:3px}
.overview-main .factory-node-copy strong,.presentation .overview-main .factory-node-copy strong{font-size:11px;letter-spacing:0}
.overview-main .factory-node-copy small,.presentation .overview-main .factory-node-copy small{font-size:8px}
.overview-main .factory-all .factory-node-copy strong{font-size:13px;letter-spacing:1px}
.overview-main .factory-reticle{width:60px;height:60px}
.overview-main .factory-all{--point-x:12%;--point-y:40%}
.overview-main .factory-qingyun{--point-x:82%;--point-y:17%}
.overview-main .factory-nansha{--point-x:35%;--point-y:64%}
.overview-main .factory-jiangyuan{--point-x:60%;--point-y:39%}
.overview-main .factory-zhuoruiyuan,.presentation .overview-main .factory-zhuoruiyuan{--point-x:84%;--point-y:66%}
.overview-main .map-north{right:9px;top:10px;font-size:8px}
.overview-main .map-north i{width:8px;height:17px}
.overview-main .map-north small{display:none}
.overview-main .map-sector-label{font-size:7px;letter-spacing:2px}
.overview-top>.spotlight{display:flex;flex-direction:column;min-width:0;margin:0}
.overview-top .spotlight-heading{padding:12px 14px;gap:7px;min-height:48px}
.overview-top .spotlight-heading h2{font-size:13px}
.overview-top .ticker-head{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:14px;padding:8px 14px}
.overview-top .ticker-head>span{display:block;grid-column:auto;grid-row:auto}
.overview-top .ticker-rows,.presentation .overview-top .ticker-rows{flex:1;display:grid;grid-template-rows:repeat(3,minmax(84px,1fr));min-height:252px}
.overview-top .ticker-rows>.chart-empty{grid-row:1/-1;align-self:center}
.overview-top .ticker-row,.presentation .overview-top .ticker-row{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:39px 24px;gap:4px 12px;min-height:0;padding:8px 14px;align-content:center}
.overview-top .ticker-event{grid-row:1;grid-column:1/-1;display:block;min-width:0}
.overview-top .ticker-event strong,.presentation .overview-top .ticker-event strong{font-size:13px;line-height:1.5;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.overview-top .ticker-department,.presentation .overview-top .ticker-department{grid-row:2;grid-column:1;padding:0;font-size:11px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.4}
.overview-top .ticker-amount,.presentation .overview-top .ticker-amount{grid-row:2;grid-column:2;font-size:20px;align-self:center}
.overview-top .ticker-foot{padding:8px 14px;gap:3px 8px;min-height:32px;color:#a9c8d8}
.overview-top.selector-only{grid-template-columns:minmax(0,64fr) minmax(340px,36fr)}
.overview-top.selector-only .kpi-grid,.overview-top.selector-only>.spotlight{display:none}
.record-clickable{cursor:pointer}
.record-clickable:hover td{background:#173b4e66}
.record-clickable:focus-visible{outline:2px solid #76dce9;outline-offset:-2px;background:#173b4e66}
.record-warnings{margin-top:24px;margin-bottom:0}
.records-table th:last-child,.records-table td:last-child{position:static;box-shadow:none}
.data-result{margin:0;padding:0 20px 16px;color:var(--text);overflow-wrap:anywhere}
.overview-top .spotlight-heading,.overview-top .ticker-head,.overview-top .ticker-foot,.overview-top .ticker-progress{flex-shrink:0}
.department-row{grid-template-columns:85px minmax(0,1fr) 112px}
.department-value{text-align:right;white-space:nowrap}
.department-value strong{font:11px var(--mono);color:#e3f2ff}
.department-row>span:first-child{white-space:normal;overflow-wrap:anywhere;line-height:1.5}
.department-row .bar-track{height:20px;position:relative;overflow:hidden;border-radius:2px;align-items:stretch}
.department-row .bar-track .department-fill{height:100%;flex:none}
.department-row .bar-track .department-share{position:absolute;inset:0;height:100%;display:grid;place-items:center;font:11px var(--mono);color:#fff;text-shadow:0 1px 3px #00101f,0 0 4px #00101f;white-space:nowrap}
@media(min-width:1051px){
  /* The left column determines the deck height; ticker content cannot grow it. */
  .overview-top:not(.selector-only)>.spotlight{contain:size;min-height:0}
  .overview-main .kpi-grid{min-height:146px}
  .overview-top .ticker-rows,.presentation .overview-top .ticker-rows{min-height:0;grid-template-rows:repeat(3,minmax(0,1fr))}
}
@media(min-width:1051px) and (max-width:1250px){
  .overview-main .kpi{padding:13px 10px 10px}
  .overview-main .kpi-label{font-size:10px}
  .overview-main .metric strong,.presentation .overview-main .metric strong{font-size:19px}
  .overview-main .metric>span{font-size:10px}
  .overview-main .kpi-bottom{font-size:8px}
  .overview-main .factory-node{width:90px}
  .overview-main .factory-node-copy strong{font-size:10px}
}
@media(max-width:1050px){
  .overview-top,.dashboard-grid,.lower-grid{grid-template-columns:minmax(0,1fr)}
  .overview-top.selector-only{grid-template-columns:minmax(0,1fr)}
  .overview-main .metric strong,.presentation .overview-main .metric strong{font-size:28px}
  .overview-main .factory-map-stage,.presentation .overview-main .factory-map-stage{height:186px}
  .overview-top .ticker-rows,.presentation .overview-top .ticker-rows{flex:none;min-height:300px;grid-template-rows:repeat(3,100px)}
}
@media(max-width:760px){
  .overview-main .factory-map-stage,.presentation .overview-main .factory-map-stage{height:264px}
  .overview-main .factory-node{width:100px}
  .overview-main .factory-all{--point-x:20%;--point-y:18%}
  .overview-main .factory-qingyun{--point-x:75%;--point-y:16%}
  .overview-main .factory-nansha{--point-x:23%;--point-y:64%}
  .overview-main .factory-jiangyuan{--point-x:66%;--point-y:44%}
  .overview-main .factory-zhuoruiyuan,.presentation .overview-main .factory-zhuoruiyuan{--point-x:76%;--point-y:76%}
  .overview-main .map-north{right:10px;top:94px}
  .overview-main .kpi-grid{gap:8px}
  .overview-main .kpi{padding:12px 10px 10px}
  .overview-main .metric strong,.presentation .overview-main .metric strong{font-size:clamp(16px,4.3vw,28px)}
  .overview-main .kpi-label{font-size:10px}
  .overview-main .metric>span{font-size:10px}
  .overview-main .kpi-bottom{font-size:8px}
  .overview-top .ticker-amount,.presentation .overview-top .ticker-amount{font-size:18px}
}
@media(max-width:500px){
  .overview-main .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .overview-main .kpi-total{grid-column:1/-1}
  .overview-main .kpi-total .metric{margin:10px 0}
  .overview-main .metric strong,.presentation .overview-main .metric strong{font-size:25px}
  .overview-main .kpi-total .metric strong{font-size:32px}
  .overview-main .factory-map-foot>span:last-child{display:none}
}
@media(max-width:360px){
  .overview-main .factory-node{width:90px}
  .overview-main .factory-node-copy strong{font-size:10px}
  .overview-main .factory-zhuoruiyuan,.presentation .overview-main .factory-zhuoruiyuan{--point-x:75%}
  .overview-main .factory-qingyun{--point-x:73%}
  .overview-top .spotlight-heading{padding:10px;gap:4px}
  .overview-top .spotlight-heading h2{font-size:12px}
  .overview-main .metric strong,.presentation .overview-main .metric strong{font-size:22px}
}

/* Keep the map available while a new month, department or search is loading. */
#overview-deck[aria-busy="true"] .kpi-grid,
#overview-deck[aria-busy="true"] #spotlight,
#page-dashboard[aria-busy="true"] > * {
  visibility: hidden;
}
