/* Squares Pro Stadium Lights — Reports & Analytics */
body:has(#reports.active){color:#edf4f8;background:linear-gradient(rgba(0,5,9,.28),rgba(0,5,9,.88)),url('../themes/stadium-lights-bg.png') center top/cover fixed!important;}
body:has(#reports.active) .app,body:has(#reports.active) main{background:transparent!important;}
body:has(#reports.active) main{width:100%!important;margin-left:0!important;padding:0 28px 38px!important;}
body:has(#reports.active) #workspaceDock,body:has(#reports.active) #saveStatusIndicator,body:has(#reports.active) #undoLastActionBtn,body:has(#reports.active) .footerNote{display:none!important;}

/* Stadium navigation drawer */
body:has(#reports.active) .sidebar{position:fixed!important;left:0!important;top:0!important;z-index:5000!important;width:min(290px,86vw)!important;height:100vh!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;padding:20px 14px!important;overflow-x:hidden!important;overflow-y:auto!important;transform:translateX(-105%)!important;transition:transform .24s ease!important;background:linear-gradient(180deg,rgba(4,14,24,.99),rgba(1,6,11,.99))!important;border-right:1px solid rgba(155,211,248,.58)!important;box-shadow:18px 0 50px rgba(0,0,0,.78),inset -1px 0 rgba(255,255,255,.08)!important;}
body.dashboardNavOpen:has(#reports.active) .sidebar{transform:translateX(0)!important;}
body:has(#reports.active) .sidebar .brand,body:has(#reports.active) .sidebar .navReorg,body:has(#reports.active) .sidebar .modeSwitcher,body:has(#reports.active) .sidebar .notificationBell,body:has(#reports.active) .sidebar .smartAlertBell,body:has(#reports.active) .sidebar .commandPaletteTrigger,body:has(#reports.active) .sidebar .premiumHomeUpgrade{display:none!important;}
body:has(#reports.active) .sidebar .premiumHomeNav{display:grid!important;gap:4px!important;margin:0!important;padding:0!important;}
body:has(#reports.active) .sidebar .premiumHomeNav button{display:flex!important;align-items:center!important;gap:10px!important;width:100%!important;min-height:39px!important;margin:0!important;padding:8px 11px!important;color:#dce8ef!important;background:transparent!important;border:1px solid transparent!important;border-radius:3px!important;font-size:13px!important;font-weight:850!important;text-align:left!important;box-shadow:none!important;cursor:pointer!important;}
body:has(#reports.active) .sidebar .premiumHomeNav button span{flex:0 0 23px!important;width:23px!important;color:#bcd9e9!important;font-size:19px!important;text-align:center!important;}
body:has(#reports.active) .sidebar .premiumHomeNav button:hover{color:#fff!important;background:rgba(20,105,159,.35)!important;border-color:rgba(67,181,247,.42)!important;}
body:has(#reports.active) .sidebar .premiumHomeNav button.active{background:transparent!important;border-color:transparent!important;box-shadow:none!important;}
body:has(#reports.active) .sidebar .premiumHomeNav button:nth-child(10){color:#fff!important;background:linear-gradient(90deg,#543306,#b57908)!important;border-color:#ffd55a!important;box-shadow:0 0 14px rgba(239,186,59,.32),inset 3px 0 #ffe894!important;}
body:has(#reports.active) .sidebar .premiumDashThemePanel{display:grid!important;grid-template-columns:1fr!important;gap:5px!important;width:100%!important;margin:auto 0 0!important;padding:10px!important;color:#fff!important;background:linear-gradient(180deg,#0a1b29,#02090e)!important;border:1px solid #9e7624!important;}
body:has(#reports.active) .sidebar .premiumDashThemePanel>span{color:#efbe40!important;font-size:8px!important;font-weight:1000!important;letter-spacing:.14em!important;}
body:has(#reports.active) .sidebar .premiumDashThemePanel>b{font-size:12px!important;}
body:has(#reports.active) .sidebar .premiumDashThemePreview{display:block!important;width:100%!important;height:48px!important;border:1px solid #31546b!important;}
body:has(#reports.active) .sidebar .premiumDashThemePanel>button{min-height:32px!important;color:#fff!important;background:linear-gradient(#19364c,#07131d)!important;border:1px solid #159dea!important;font-size:11px!important;font-weight:1000!important;cursor:pointer!important;}

#reports{max-width:1720px;margin:0 auto;padding:0!important;}
#reports>.pageBackRow{display:none!important;}
#reports .reportsPrintTitle{display:none;}
#reports .stadiumReportsHeader{display:grid;grid-template-columns:58px minmax(0,1fr) 58px;align-items:center;min-height:104px;padding:2px 42px 0;}
#reports .stadiumHeaderButton{display:grid;place-items:center;width:52px;height:52px;padding:0;color:#dce9f0;background:linear-gradient(145deg,rgba(25,39,50,.88),rgba(2,7,12,.95));border:1px solid #8299a7;border-radius:8px;box-shadow:inset 0 1px rgba(255,255,255,.18),0 8px 20px rgba(0,0,0,.6);cursor:pointer;}
#reports .stadiumMenuButton{gap:5px;padding:14px;}
#reports .stadiumMenuButton span{display:block;width:25px;height:3px;background:#d8e3e8;border-radius:2px;box-shadow:0 0 5px rgba(159,221,255,.42);}
#reports .stadiumSettingsButton{font-size:30px;line-height:1;}
#reports .stadiumBrandLockup{display:flex;align-items:center;justify-content:center;gap:clamp(14px,2.2vw,34px);min-width:0;}
#reports .stadiumBrandLockup>img{width:clamp(70px,5.8vw,88px);height:clamp(70px,5.8vw,88px);object-fit:contain;clip-path:polygon(50% 0,88% 10%,94% 28%,92% 70%,72% 89%,50% 100%,28% 89%,8% 70%,6% 28%,12% 10%);filter:drop-shadow(0 0 6px #fff) drop-shadow(0 0 15px rgba(38,150,255,.9));}
#reports .stadiumBrandWords{text-align:center;white-space:nowrap;}
#reports .stadiumMetalTitle{display:block;width:clamp(390px,41vw,620px);height:auto;filter:drop-shadow(0 7px 3px rgba(0,0,0,.84));}
#reports .stadiumBrandWords small{display:block;margin-top:1px;color:#f0c247;font-size:10px;font-weight:1000;font-style:italic;letter-spacing:.38em;text-shadow:0 2px 4px #000,0 0 9px rgba(239,186,59,.55);}

#reports .stadiumReportsStrip{display:grid;grid-template-columns:1fr 1.45fr 1fr;min-height:58px;margin:0 0 14px;color:#edf3f6;background:linear-gradient(180deg,rgba(12,23,32,.96),rgba(1,6,10,.98));border:1px solid #526571;border-left-color:#efba3b;border-right-color:#efba3b;box-shadow:0 8px 20px rgba(0,0,0,.66);}
#reports .stadiumReportsStrip>div{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;padding:8px 14px;border-right:1px solid rgba(113,139,155,.32);}
#reports .stadiumReportsStrip>div:last-child{border-right:0;}
#reports .stadiumReportsStrip small{color:#efbd3a;font-size:8px;font-weight:1000;letter-spacing:.14em;}
#reports .stadiumReportsStrip>div>b{overflow:hidden;max-width:100%;color:#fff;font-size:14px;font-style:italic;text-overflow:ellipsis;white-space:nowrap;}
#reports .stadiumReportsStrip>div:last-child>b{color:#5dff9f;font-size:17px;text-shadow:0 0 8px rgba(61,255,139,.3);}
#reports.reportsHealthWarn .stadiumReportsStrip>div:last-child>b{color:#ffc94a;}
#reports.reportsHealthBad .stadiumReportsStrip>div:last-child>b{color:#ff7168;text-shadow:0 0 8px rgba(255,68,60,.34);}
#reports .stadiumReportsStripCenter{flex-direction:row!important;gap:18px!important;}
#reports .stadiumReportsStripCenter strong{color:#fff;font-size:18px;font-style:italic;letter-spacing:.07em;text-shadow:0 0 9px rgba(55,176,255,.65);}
#reports .stadiumReportsStripCenter span{color:#efbd3a;font-size:10px;font-weight:1000;letter-spacing:.08em;text-transform:uppercase;}

#reports .stadiumReportsTopbar{margin:0 0 10px;padding:12px 16px;color:#edf4f8;background:linear-gradient(180deg,rgba(8,22,33,.96),rgba(2,9,15,.97));border:1px solid #537487;border-radius:0!important;}
#reports .stadiumReportsTopbar h2{color:#fff;font-size:22px;font-style:italic;text-transform:uppercase;}
#reports .stadiumReportsTopbar .tag{color:#93aabd;}
#reports .stadiumReportsActions{display:flex;gap:8px;justify-content:flex-end;}
#reports .stadiumReportsActions .btn{min-width:130px;min-height:39px;border-radius:3px!important;color:#fff!important;font-size:10px!important;font-weight:1000!important;text-transform:uppercase;}
#reports .stadiumReportsActions .btn:first-child{background:linear-gradient(#1e3850,#0b1c2b)!important;border:1px solid #56758c!important;}
#reports .stadiumReportsActions .btn:last-child{background:linear-gradient(#1178e8,#06459a)!important;border:1px solid #2caeff!important;box-shadow:0 0 12px rgba(31,145,255,.3)!important;}

#reports .stadiumReportsHero{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:18px;margin:0 0 10px!important;padding:15px 17px!important;color:#fff!important;background:linear-gradient(120deg,rgba(9,43,67,.98),rgba(3,12,20,.98))!important;border:1px solid #3b8fbe!important;border-left:5px solid #efb82f!important;border-radius:0!important;box-shadow:0 10px 24px rgba(0,0,0,.48),inset 0 1px rgba(255,255,255,.08)!important;}
#reports .stadiumReportsHero .heroLabel{color:#73d1ff;font-size:7px;font-weight:1000;letter-spacing:.14em;}
#reports .stadiumReportsHero .heroTitle{margin:3px 0;color:#fff;font-size:21px;font-weight:1000;font-style:italic;text-transform:uppercase;}
#reports .stadiumReportsHero .heroSub{color:#93a9b7;font-size:10px;font-weight:700;}
#reports .reportHeroStats{display:grid!important;grid-template-columns:repeat(3,minmax(90px,1fr));gap:7px!important;}
#reports .reportHeroStats span{display:flex!important;flex-direction:column;align-items:center;min-width:95px;padding:8px 10px!important;background:#06131d!important;border:1px solid #31566d!important;border-radius:0!important;}
#reports .reportHeroStats b{color:#fff;font-size:17px;font-style:italic;}
#reports .reportHeroStats small{color:#73d1ff;font-size:7px;font-weight:1000;letter-spacing:.1em;}

#reports .stadiumReportMetrics{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;margin:0 0 12px!important;}
#reports .stadiumReportMetrics .reportCard{position:relative;overflow:hidden;min-width:0;min-height:105px;margin:0;padding:13px 14px!important;color:#eaf2f6!important;background:linear-gradient(150deg,#0d293b,#061019)!important;border:1px solid #31566d!important;border-top:3px solid #2caeff!important;border-radius:0!important;box-shadow:inset 0 1px rgba(255,255,255,.06),0 8px 18px rgba(0,0,0,.38)!important;text-align:left;cursor:pointer;}
#reports .stadiumReportMetrics .reportCard::after{content:"▥";position:absolute;right:7px;bottom:-10px;color:rgba(255,255,255,.04);font-size:70px;line-height:1;}
#reports .stadiumReportMetrics .collectedReportMetric{border-top-color:#3de596!important;}
#reports .stadiumReportMetrics .outstandingReportMetric{border-top-color:#efb82f!important;}
#reports .stadiumReportMetrics .rateReportMetric{border-top-color:#c26aff!important;}
#reports .stadiumReportMetrics small{display:block;color:#76ceff;font-size:7px;font-weight:1000;letter-spacing:.13em;}
#reports .stadiumReportMetrics .metric{position:relative;z-index:1;margin:5px 0 3px;color:#fff!important;font-size:clamp(22px,2.2vw,30px)!important;font-style:italic;}
#reports .stadiumReportMetrics .collectedReportMetric .metric,#reports .stadiumReportMetrics .rateReportMetric .metric{color:#5dff9f!important;text-shadow:0 0 8px rgba(61,255,139,.28);}
#reports .stadiumReportMetrics .outstandingReportMetric .metric{color:#ffc94a!important;}
#reports .stadiumReportMetrics .reportCard>span{color:#8da3b0;font-size:9px;font-weight:700;}

#reports .stadiumReportsSplit{display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important;margin:0!important;}
#reports .stadiumReportsPanel{min-width:0;margin:0 0 12px!important;padding:14px!important;color:#eaf2f6!important;background:linear-gradient(180deg,rgba(5,17,27,.97),rgba(1,7,12,.98))!important;border:1px solid #349fe3!important;border-radius:0!important;box-shadow:inset 0 1px rgba(255,255,255,.1),inset 0 0 30px rgba(28,126,190,.07),0 10px 24px rgba(0,0,0,.5)!important;}
#reports .outstandingReportsPanel{border-color:#b78928!important;}
#reports .playerReportsPanel{border-color:#36c985!important;}
#reports .stadiumReportsSectionTitle{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:10px;margin:0 0 11px;padding-bottom:9px;border-bottom:1px solid #29495d;}
#reports .stadiumReportsSectionTitle>span{display:grid;place-items:center;width:34px;height:34px;color:#06101a;background:linear-gradient(145deg,#f7cc55,#a96e05);border:1px solid #ffe285;font-size:12px;font-weight:1000;clip-path:polygon(7px 0,100% 0,100% calc(100% - 7px),calc(100% - 7px) 100%,0 100%,0 7px);}
#reports .stadiumReportsSectionTitle h3{margin:0;color:#f3bd3b;font-size:14px;font-style:italic;letter-spacing:.06em;text-transform:uppercase;}
#reports .stadiumReportsSectionTitle small{display:block;color:#8fa6b5;font-size:9px;font-weight:700;}
#reports .stadiumReportsSectionTitle .btn{min-width:78px;min-height:30px!important;margin:0!important;padding:5px 8px!important;color:#bde8ff!important;background:linear-gradient(#17364b,#081824)!important;border:1px solid #3c789b!important;border-radius:2px!important;font-size:8px!important;font-weight:1000!important;text-transform:uppercase;}

#reports .advancedMetricRow,#reports .healthRow,#reports .advancedRankingRow,#reports .advancedPlayerRow,#reports .reportPaymentRow{margin:0 0 7px!important;padding:9px 10px!important;color:#e7f0f4!important;background:linear-gradient(90deg,rgba(15,43,61,.88),rgba(4,13,20,.94))!important;border:1px solid #31566d!important;border-radius:0!important;}
#reports .advancedMetricRow:last-child,#reports .healthRow:last-child,#reports .advancedRankingRow:last-child,#reports .advancedPlayerRow:last-child,#reports .reportPaymentRow:last-child{margin-bottom:0!important;}
#reports .advancedMetricHeader b,#reports .reportPaymentRow b,#reports .healthRow b{color:#fff;}
#reports .advancedMetricHeader span,#reports .healthRow>span{color:#7ed5ff!important;font-size:10px;font-weight:1000;}
#reports .advancedBar,#reports .reportBar{height:8px!important;margin:0!important;background:#02080c!important;border:1px solid #274354!important;border-radius:0!important;}
#reports .advancedBar span,#reports .reportBar span{background:linear-gradient(90deg,#0875d2,#35c6ff)!important;border-radius:0!important;box-shadow:0 0 7px rgba(39,181,255,.45);}
#reports .advancedBar.advancedGood span{background:linear-gradient(90deg,#0ea765,#5dff9f)!important;}
#reports .advancedBar.advancedWarn span{background:linear-gradient(90deg,#a45f09,#ffc94a)!important;}
#reports .health-good{border-left:4px solid #3de596!important;}
#reports .health-warn{border-left:4px solid #efb82f!important;}
#reports .health-bad{border-left:4px solid #ff6259!important;}
#reports .rankBadge,#reports .reportRank{display:grid!important;place-items:center!important;width:32px!important;height:32px!important;flex:0 0 32px!important;color:#f7ca4d!important;background:#08131b!important;border:1px solid #9c741d!important;border-radius:50%!important;font-size:10px!important;font-weight:1000!important;}
#reports .advancedRankingMain{min-width:0;}
#reports .advancedRankingMain .sub,#reports .reportPaymentRow .sub{margin-top:5px;color:#8198a6!important;font-size:9px;}
#reports .advancedPlayerStats{display:flex;gap:5px;flex-wrap:wrap;margin-top:7px;}
#reports .advancedPlayerStats span,#reports .reportMiniStats span{padding:4px 6px!important;color:#b9e9ff!important;background:#071f2e!important;border:1px solid #2e6c90!important;border-radius:2px!important;font-size:8px!important;font-weight:900!important;}
#reports .reportPaymentRow strong{color:#ffc94a!important;font-size:13px;}
#reports .reportProgressHeader,#reports .reportBoardTop{color:#fff;font-size:11px;}
#reports .reportProgressHeader span,#reports .reportBoardTop span{color:#73d1ff!important;}
#reports .reportMiniStats{margin-top:10px!important;}
#reports .reportStatList{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;}
#reports .reportStatList>div{padding:9px!important;color:#e7f0f4!important;background:linear-gradient(145deg,#0d293b,#061019)!important;border:1px solid #31566d!important;border-radius:0!important;}
#reports .reportStatList span{color:#76ceff!important;font-size:7px!important;}
#reports .reportStatList b{display:block;overflow:hidden;color:#fff!important;font-size:12px!important;text-overflow:ellipsis;white-space:nowrap;}
#reports .empty{min-height:105px;display:grid;place-items:center;color:#78909d;border:1px dashed #31566c;background:radial-gradient(circle at 50% 0,rgba(28,105,151,.15),transparent 60%);}

@media(max-width:1050px){#reports .stadiumReportsSplit{grid-template-columns:1fr!important;}}
@media(max-width:700px){
  body:has(#reports.active) main{padding-inline:10px!important;}
  #reports .stadiumReportsHeader{padding-inline:4px;grid-template-columns:48px minmax(0,1fr) 48px;}
  #reports .stadiumHeaderButton{width:44px;height:44px;}
  #reports .stadiumBrandLockup>img:last-child{display:none;}
  #reports .stadiumBrandLockup>img{width:54px;height:54px;}
  #reports .stadiumMetalTitle{width:clamp(205px,55vw,360px);}
  #reports .stadiumBrandWords small{font-size:7px;letter-spacing:.2em;}
  #reports .stadiumReportsStrip{grid-template-columns:1fr;}
  #reports .stadiumReportsStrip>div:not(.stadiumReportsStripCenter){display:none;}
  #reports .stadiumReportsTopbar{display:grid!important;gap:10px;}
  #reports .stadiumReportsActions{justify-content:stretch;}
  #reports .stadiumReportsActions .btn{flex:1;min-width:0;}
  #reports .stadiumReportsHero{grid-template-columns:1fr!important;}
  #reports .reportHeroStats{grid-template-columns:repeat(3,1fr)!important;}
  #reports .stadiumReportMetrics{grid-template-columns:1fr 1fr!important;}
  #reports .stadiumReportsSectionTitle{grid-template-columns:34px minmax(0,1fr);}
  #reports .stadiumReportsSectionTitle .btn{grid-column:1/3;width:100%;}
  #reports .reportStatList{grid-template-columns:1fr 1fr!important;}
}

@media print{
  @page{size:letter portrait;margin:.4in;}
  body{background:#fff!important;color:#111!important;}
  body *{visibility:hidden!important;}
  #reports,#reports *{visibility:visible!important;}
  #reports{display:block!important;position:absolute!important;left:0!important;top:0!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;color:#111!important;background:#fff!important;font-family:Arial,Helvetica,sans-serif!important;}
  #reports .reportsPrintTitle{display:flex!important;flex-wrap:wrap;align-items:baseline;justify-content:space-between;padding-bottom:9px;margin-bottom:10px;border-bottom:3px solid #111;}
  #reports .reportsPrintTitle h1{flex:1 0 100%;margin:0 0 4px;color:#111!important;font-size:22px;}
  #reports .reportsPrintTitle b,#reports .reportsPrintTitle span{color:#333!important;font-size:10px;}
  #reports .stadiumReportsHeader,#reports .stadiumReportsStrip,#reports .stadiumReportsTopbar,#reports .pageBackRow,#reports .stadiumReportsSectionTitle .btn{display:none!important;}
  #reports .stadiumReportsHero{padding:8px!important;margin-bottom:7px!important;color:#111!important;background:#fff!important;border:1px solid #777!important;box-shadow:none!important;}
  #reports .stadiumReportsHero .heroLabel,#reports .stadiumReportsHero .heroSub,#reports .reportHeroStats small{color:#555!important;}
  #reports .stadiumReportsHero .heroTitle,#reports .reportHeroStats b{color:#111!important;}
  #reports .reportHeroStats span{padding:4px!important;background:#fff!important;border:1px solid #aaa!important;}
  #reports .stadiumReportMetrics{gap:4px!important;margin-bottom:7px!important;}
  #reports .stadiumReportMetrics .reportCard{min-height:0!important;padding:7px!important;color:#111!important;background:#fff!important;border:1px solid #777!important;box-shadow:none!important;}
  #reports .stadiumReportMetrics .reportCard::after{display:none!important;}
  #reports .stadiumReportMetrics small,#reports .stadiumReportMetrics .reportCard>span{color:#555!important;font-size:7px!important;}
  #reports .stadiumReportMetrics .metric{color:#111!important;font-size:16px!important;text-shadow:none!important;}
  #reports .stadiumReportsSplit{grid-template-columns:1fr 1fr!important;gap:6px!important;}
  #reports .stadiumReportsPanel{padding:7px!important;margin:0 0 6px!important;color:#111!important;background:#fff!important;border:1px solid #777!important;box-shadow:none!important;page-break-inside:avoid;}
  #reports .stadiumReportsSectionTitle{grid-template-columns:1fr;margin-bottom:5px;padding-bottom:4px;border-bottom:1px solid #aaa;}
  #reports .stadiumReportsSectionTitle>span{display:none!important;}
  #reports .stadiumReportsSectionTitle h3{color:#111!important;font-size:10px;}
  #reports .stadiumReportsSectionTitle small{color:#555!important;font-size:7px;}
  #reports .advancedMetricRow,#reports .healthRow,#reports .advancedRankingRow,#reports .advancedPlayerRow,#reports .reportPaymentRow,#reports .reportStatList>div{padding:4px!important;margin-bottom:3px!important;color:#111!important;background:#fff!important;border:1px solid #bbb!important;}
  #reports .advancedMetricHeader b,#reports .reportPaymentRow b,#reports .healthRow b,#reports .reportProgressHeader,#reports .reportBoardTop,#reports .reportStatList b{color:#111!important;font-size:8px!important;}
  #reports .advancedMetricHeader span,#reports .healthRow>span,#reports .reportPaymentRow strong,#reports .reportProgressHeader span,#reports .reportBoardTop span{color:#333!important;font-size:8px!important;}
  #reports .advancedRankingMain .sub,#reports .reportPaymentRow .sub,#reports .reportStatList span{color:#555!important;font-size:6px!important;}
  #reports .advancedBar,#reports .reportBar{height:5px!important;border:1px solid #aaa!important;background:#eee!important;}
  #reports .rankBadge{width:24px!important;height:24px!important;flex-basis:24px!important;color:#111!important;background:#fff!important;border:1px solid #aaa!important;}
  #reports .advancedPlayerStats span,#reports .reportMiniStats span{padding:2px 3px!important;color:#111!important;background:#fff!important;border:1px solid #aaa!important;font-size:6px!important;}
}
