/* SNOH RP City Pulse isolated layout stylesheet */
#stats .leaderboard-panel {
  display:block !important;
  width:100% !important;
  box-sizing:border-box !important;
  margin:20px 0 !important;
  padding:22px !important;
  background:#121318 !important;
  border:1px solid #303139 !important;
}
#stats .leaderboard-panel > .department-stats-head {
  display:flex !important;
  width:100% !important;
  justify-content:space-between !important;
  align-items:center !important;
}
#stats .leaderboard-grid {
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:14px !important;
  width:100% !important;
  margin-top:14px !important;
}
#stats .leaderboard-card {
  display:block !important;
  box-sizing:border-box !important;
  min-width:0 !important;
  padding:18px !important;
  background:#1b1c22 !important;
  border:1px solid #34353d !important;
  border-top:3px solid #ed101b !important;
}
#stats .leaderboard-card h4 {
  display:block !important;
  margin:0 0 6px !important;
  color:#fff !important;
  font-size:17px !important;
  line-height:1.2 !important;
}
#stats .leaderboard-card > p {
  display:block !important;
  margin:0 0 14px !important;
  color:#a7a8b0 !important;
  font-size:11px !important;
}
#stats .leaderboard-card ol {
  display:block !important;
  list-style:none !important;
  margin:0 !important;
  padding:0 !important;
}
#stats .leaderboard-card li {
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  width:100% !important;
  min-height:38px !important;
  box-sizing:border-box !important;
  padding:9px 0 !important;
  border-top:1px solid #34353d !important;
  color:#eee !important;
  font-size:12px !important;
}
#stats .leaderboard-card li .leaderboard-rank {
  flex:0 0 25px !important;
  color:#f15b64 !important;
  font-weight:900 !important;
}
#stats .leaderboard-card li b {
  display:block !important;
  flex:1 1 auto !important;
  min-width:0 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
  color:#f2f2f4 !important;
}
#stats .leaderboard-card li strong {
  display:block !important;
  flex:0 0 auto !important;
  white-space:nowrap !important;
  color:#fff !important;
  font-size:11px !important;
}
#stats .city-pulse-columns {
  display:grid !important;
  grid-template-columns:minmax(0,1.4fr) minmax(290px,.9fr) !important;
  gap:16px !important;
  align-items:start !important;
  width:100% !important;
  margin-top:18px !important;
}
#stats .city-pulse-columns > .department-stats,
#stats .city-pulse-columns > .pulse-coming {
  display:block !important;
  width:100% !important;
  min-width:0 !important;
  box-sizing:border-box !important;
  margin:0 !important;
  padding:20px !important;
  background:#14151a !important;
  border:1px solid #303139 !important;
}
#stats .department-counts {
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  align-items:stretch !important;
  gap:12px !important;
  width:100% !important;
}
#stats .department-count-group {
  display:block !important;
  width:100% !important;
  min-width:0 !important;
  box-sizing:border-box !important;
  padding:14px !important;
  background:#1b1c22 !important;
  border:1px solid #34353d !important;
}
#stats .department-count-group h4 {
  display:block !important;
  margin:0 0 10px !important;
  color:#f15b64 !important;
  font-size:13px !important;
  line-height:1.3 !important;
  letter-spacing:.7px !important;
}
#stats .department-count-group > div {
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:10px !important;
  width:100% !important;
  box-sizing:border-box !important;
  margin:6px 0 0 !important;
  padding:9px 10px !important;
  background:#25262d !important;
  border-left:2px solid #ed101b !important;
  color:#e7e7eb !important;
  font-size:11px !important;
}
#stats .department-count-group > div strong {
  flex:0 0 auto !important;
  color:#fff !important;
}
#stats .pulse-coming {
  display:flex !important;
  flex-direction:column !important;
  gap:0 !important;
}
#stats .pulse-feature {
  display:flex !important;
  align-items:flex-start !important;
  gap:13px !important;
  padding:16px 0 !important;
  border-bottom:1px solid rgba(255,255,255,.1) !important;
}
#stats .pulse-feature:last-child { border-bottom:0 !important; }
#stats .pulse-feature > div { min-width:0 !important; }
#stats .pulse-feature b {
  display:block !important;
  color:#fff !important;
  font-size:14px !important;
}
#stats .pulse-feature p {
  display:block !important;
  color:#b8b9c0 !important;
  font-size:11px !important;
  line-height:1.5 !important;
}
@media (max-width:900px) {
  #stats .leaderboard-grid { grid-template-columns:1fr !important; }
  #stats .city-pulse-columns { grid-template-columns:1fr !important; }
}
@media (max-width:650px) {
  #stats .department-counts { grid-template-columns:1fr !important; }
  #stats .leaderboard-panel,
  #stats .city-pulse-columns > .department-stats,
  #stats .city-pulse-columns > .pulse-coming { padding:14px !important; }
}


/* Economy statistics panel */
#stats .economy-panel { gap:0 !important; }
#stats .economy-intro {
  color:#b8b9c0 !important; font-size:11px !important; line-height:1.5 !important;
  margin:10px 0 14px !important;
}
#stats .economy-metric-grid {
  display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:8px !important;
}
#stats .economy-metric {
  min-width:0 !important; padding:11px 12px !important; background:#1b1c22 !important;
  border:1px solid #303139 !important; border-left:2px solid #ed101b !important;
}
#stats .economy-metric span, #stats .economy-account-summary span {
  display:block !important; color:#aeb0b8 !important; font-size:9px !important;
  letter-spacing:.7px !important; line-height:1.4 !important;
}
#stats .economy-metric strong {
  display:block !important; color:#fff !important; font-size:19px !important;
  margin-top:5px !important; overflow-wrap:anywhere !important;
}
#stats .economy-metric.economy-wide { grid-column:1 / -1 !important; }
#stats .economy-metric.economy-wide strong { color:#f15b64 !important; font-size:23px !important; }
#stats .economy-account-summary {
  display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:8px !important; margin-top:10px !important; padding:12px !important;
  background:#101115 !important; border:1px solid #303139 !important;
}
#stats .economy-account-summary strong {
  display:block !important; color:#fff !important; font-size:15px !important; margin-top:5px !important;
}
#stats .economy-lists { display:grid !important; grid-template-columns:1fr !important; gap:12px !important; margin-top:16px !important; }
#stats .economy-lists section { min-width:0 !important; }
#stats .economy-lists h4 {
  color:#f15b64 !important; font-size:11px !important; letter-spacing:.7px !important;
  margin:0 0 7px !important;
}
#stats .economy-list { display:flex !important; flex-direction:column !important; gap:5px !important; }
#stats .economy-list p { color:#aeb0b8 !important; font-size:10px !important; margin:0 !important; }
#stats .economy-list-row {
  display:flex !important; align-items:center !important; justify-content:space-between !important;
  gap:8px !important; padding:8px 9px !important; background:#202127 !important;
  border-left:2px solid #ed101b !important; min-width:0 !important;
}
#stats .economy-list-row b { color:#f0f0f2 !important; font-size:10px !important; overflow-wrap:anywhere !important; }
#stats .economy-list-row span { color:#b8b9c0 !important; font-size:9px !important; text-align:right !important; flex:0 0 auto !important; }
#stats .economy-footnote {
  color:#898b94 !important; font-size:9px !important; line-height:1.5 !important;
  margin:13px 0 0 !important;
}
@media (max-width:650px) {
  #stats .economy-metric-grid, #stats .economy-account-summary { grid-template-columns:1fr 1fr !important; }
  #stats .economy-metric strong { font-size:16px !important; }
  #stats .economy-list-row { align-items:flex-start !important; flex-direction:column !important; }
  #stats .economy-list-row span { text-align:left !important; }
}


/* Full 14-division public City Intelligence layout */
#stats .city-intelligence-panels-full { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:14px !important; margin-top:18px !important; }
#stats .city-section-panel { min-width:0 !important; padding:14px !important; background:#14151a !important; border:1px solid #303139 !important; }
#stats .city-section-panel .department-stats-head { align-items:flex-start !important; gap:10px !important; }
#stats .city-section-panel .department-stats-head b { color:#f1f1f3 !important; font-size:11px !important; line-height:1.5 !important; }
#stats .metric-source-ready, #stats .metric-source-missing { font-size:8px !important; letter-spacing:.6px !important; white-space:nowrap !important; }
#stats .metric-source-ready { color:#78c99a !important; }
#stats .metric-source-missing { color:#e3a45a !important; }
#stats .city-full-metric-grid { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:7px !important; margin-top:12px !important; }
#stats .city-full-metric { min-width:0 !important; padding:9px !important; background:#202127 !important; border-left:2px solid #ed101b !important; }
#stats .city-full-metric span { display:block !important; color:#c4c5cb !important; font-size:9px !important; line-height:1.4 !important; }
#stats .city-full-metric strong { display:block !important; color:#fff !important; font-size:13px !important; margin-top:5px !important; overflow-wrap:anywhere !important; }
#stats .city-full-metric small { display:block !important; color:#898b94 !important; font-size:8px !important; line-height:1.4 !important; margin-top:4px !important; }
#stats .city-section-list { margin-top:10px !important; }
@media(max-width:760px) { #stats .city-intelligence-panels-full { grid-template-columns:1fr !important; } }
@media(max-width:420px) { #stats .city-full-metric-grid { grid-template-columns:1fr 1fr !important; } #stats .city-full-metric strong { font-size:11px !important; } }
