/* Squares Pro Stadium Lights — Revenue Center */
body:has(#revenue.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(#revenue.active) .app,body:has(#revenue.active) main{background:transparent!important;}
body:has(#revenue.active) main{width:100%!important;margin-left:0!important;padding:0 28px 38px!important;}
body:has(#revenue.active) #workspaceDock,body:has(#revenue.active) #saveStatusIndicator,body:has(#revenue.active) #undoLastActionBtn,body:has(#revenue.active) .footerNote{display:none!important;}

/* Stadium navigation drawer */
body:has(#revenue.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(#revenue.active) .sidebar{transform:translateX(0)!important;}
body:has(#revenue.active) .sidebar .brand,body:has(#revenue.active) .sidebar .navReorg,body:has(#revenue.active) .sidebar .modeSwitcher,body:has(#revenue.active) .sidebar .notificationBell,body:has(#revenue.active) .sidebar .smartAlertBell,body:has(#revenue.active) .sidebar .commandPaletteTrigger,body:has(#revenue.active) .sidebar .premiumHomeUpgrade{display:none!important;}
body:has(#revenue.active) .sidebar .premiumHomeNav{display:grid!important;gap:4px!important;margin:0!important;padding:0!important;}
body:has(#revenue.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(#revenue.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(#revenue.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(#revenue.active) .sidebar .premiumHomeNav button.active{background:transparent!important;border-color:transparent!important;box-shadow:none!important;}
body:has(#revenue.active) .sidebar .premiumHomeNav button:nth-child(8){color:#fff!important;background:linear-gradient(90deg,#075737,#0b9b61)!important;border-color:#49f0a4!important;box-shadow:0 0 14px rgba(54,230,148,.3),inset 3px 0 #a4ffd5!important;}
body:has(#revenue.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(#revenue.active) .sidebar .premiumDashThemePanel>span{color:#efbe40!important;font-size:8px!important;font-weight:1000!important;letter-spacing:.14em!important;}
body:has(#revenue.active) .sidebar .premiumDashThemePanel>b{font-size:12px!important;}
body:has(#revenue.active) .sidebar .premiumDashThemePreview{display:block!important;width:100%!important;height:48px!important;border:1px solid #31546b!important;}
body:has(#revenue.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;}

#revenue{max-width:1720px;margin:0 auto;padding:0!important;}
#revenue>.pageBackRow{display:none!important;}
#revenue .revenuePrintTitle{display:none;}
#revenue .stadiumRevenueHeader{display:grid;grid-template-columns:58px minmax(0,1fr) 58px;align-items:center;min-height:104px;padding:2px 42px 0;}
#revenue .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;}
#revenue .stadiumMenuButton{gap:5px;padding:14px;}
#revenue .stadiumMenuButton span{display:block;width:25px;height:3px;background:#d8e3e8;border-radius:2px;box-shadow:0 0 5px rgba(159,221,255,.42);}
#revenue .stadiumSettingsButton{font-size:30px;line-height:1;}
#revenue .stadiumBrandLockup{display:flex;align-items:center;justify-content:center;gap:clamp(14px,2.2vw,34px);min-width:0;}
#revenue .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));}
#revenue .stadiumBrandWords{text-align:center;white-space:nowrap;}
#revenue .stadiumMetalTitle{display:block;width:clamp(390px,41vw,620px);height:auto;filter:drop-shadow(0 7px 3px rgba(0,0,0,.84));}
#revenue .stadiumBrandWords small{display:block;margin-top:1px;color:#65efad;font-size:10px;font-weight:1000;font-style:italic;letter-spacing:.38em;text-shadow:0 2px 4px #000,0 0 9px rgba(58,225,146,.5);}

#revenue .stadiumRevenueStrip{display:grid;grid-template-columns:1fr 1.2fr 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:#39d78e;border-right-color:#39d78e;box-shadow:0 8px 20px rgba(0,0,0,.66);}
#revenue .stadiumRevenueStrip>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);}
#revenue .stadiumRevenueStrip>div:last-child{border-right:0;}
#revenue .stadiumRevenueStrip small{color:#65efad;font-size:8px;font-weight:1000;letter-spacing:.14em;}
#revenue .stadiumRevenueStrip>div>b{overflow:hidden;max-width:100%;color:#5dff9f;font-size:16px;font-style:italic;text-overflow:ellipsis;white-space:nowrap;text-shadow:0 0 8px rgba(61,255,139,.3);}
#revenue .stadiumRevenueStrip>div:first-child>b{color:#fff;font-size:14px;}
#revenue .stadiumRevenueStripCenter{flex-direction:row!important;gap:18px!important;}
#revenue .stadiumRevenueStripCenter strong{color:#fff;font-size:20px;font-style:italic;letter-spacing:.08em;text-shadow:0 0 9px rgba(55,176,255,.65);}
#revenue .stadiumRevenueStripCenter span{color:#efbd3a;font-size:10px;font-weight:1000;letter-spacing:.08em;text-transform:uppercase;}

#revenue .stadiumRevenueTopbar{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;}
#revenue .stadiumRevenueTopbar h2{color:#fff;font-size:22px;font-style:italic;text-transform:uppercase;}
#revenue .stadiumRevenueTopbar .tag{color:#93aabd;}
#revenue .stadiumRevenueActions{display:flex;gap:8px;justify-content:flex-end;}
#revenue .stadiumRevenueActions .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;}
#revenue .stadiumRevenueActions .btn:first-child{background:linear-gradient(#1e3850,#0b1c2b)!important;border:1px solid #56758c!important;}
#revenue .stadiumRevenueActions .btn:last-child{background:linear-gradient(#0ca862,#087144)!important;border:1px solid #4ff0a6!important;box-shadow:0 0 12px rgba(50,230,145,.28)!important;}

#revenue .stadiumRevenueCards{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:8px!important;margin:0 0 12px!important;}
#revenue .stadiumRevenueMetric{position:relative;overflow:hidden;min-width:0;min-height:112px!important;margin:0!important;padding:13px 14px!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;}
#revenue .stadiumRevenueMetric::after{content:"$";position:absolute;right:-2px;bottom:-20px;color:rgba(255,255,255,.035);font-size:82px;font-weight:1000;line-height:1;}
#revenue .collectedMetric{border-top-color:#3de596!important;}
#revenue .outstandingMetric{border-top-color:#efb82f!important;}
#revenue .payoutsMetric{border-top-color:#c26aff!important;}
#revenue .netMetric{border-top-color:#5dff9f!important;background:linear-gradient(150deg,#0b3224,#06150f)!important;}
#revenue .stadiumRevenueMetric small{display:block;color:#76ceff;font-size:7px;font-weight:1000;letter-spacing:.13em;}
#revenue .stadiumRevenueMetric .metric{position:relative;z-index:1;overflow:hidden;margin:5px 0 3px;color:#fff!important;font-size:clamp(21px,2vw,29px)!important;font-style:italic;text-overflow:ellipsis;white-space:nowrap;}
#revenue .collectedMetric .metric,#revenue .netMetric .metric{color:#5dff9f!important;text-shadow:0 0 8px rgba(61,255,139,.3);}
#revenue.revenueNetNegative .netMetric .metric,#revenue.revenueNetNegative #revenueStripNet{color:#ff7168!important;text-shadow:0 0 8px rgba(255,68,60,.34);}
#revenue .outstandingMetric .metric{color:#ffc94a!important;}
#revenue .stadiumRevenueMetric>span{display:block;color:#8da3b0;font-size:9px;font-weight:700;}
#revenue .revenueMetricTrack{height:6px;margin-top:9px;background:#02080c;border:1px solid #274354;}
#revenue .revenueMetricTrack i{display:block;width:0;height:100%;background:linear-gradient(90deg,#0ea765,#5dff9f);box-shadow:0 0 7px rgba(61,255,139,.5);transition:width .25s ease;}

#revenue .stadiumRevenuePanel{margin:0 0 12px;padding:15px!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,.12),inset 0 0 30px rgba(28,126,190,.08),0 12px 28px rgba(0,0,0,.56)!important;}
#revenue .leagueRevenuePanel{border-color:#5d9cc4!important;}
#revenue .playerBalancePanel{border-color:#36c985!important;}
#revenue .stadiumRevenueSectionTitle{display:flex;align-items:center;gap:11px;margin:0 0 12px;padding-bottom:9px;border-bottom:1px solid #29495d;}
#revenue .stadiumRevenueSectionTitle>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);}
#revenue .stadiumRevenueSectionTitle h3{margin:0;color:#f3bd3b;font-size:15px;font-style:italic;letter-spacing:.08em;text-transform:uppercase;}
#revenue .stadiumRevenueSectionTitle small{color:#8fa6b5;font-size:10px;font-weight:700;}

#revenue .revenueBreakdown{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;}
#revenue .revenueBreakdown>div{min-width:0;padding:11px 12px!important;color:#dce9ef!important;background:linear-gradient(140deg,#0d293b,#061019)!important;border:1px solid #31566d!important;border-radius:0!important;font-size:11px!important;font-weight:800!important;line-height:1.45!important;}
#revenue .revenueBreakdown>div b{color:#75d0ff;font-size:8px;letter-spacing:.08em;text-transform:uppercase;}
#revenue .revenueBreakdown>div:last-child{color:#5dff9f!important;border-color:#28865a!important;background:linear-gradient(140deg,#0b3224,#06150f)!important;}

#revenue #leagueMoneySummary,#revenue #playerBalanceTable{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;}
#revenue .revenueMiniTotals{display:flex!important;flex-wrap:wrap;gap:7px!important;margin-bottom:9px;}
#revenue .revenueMiniTotals+.br,#revenue .revenueMiniTotals+br{display:none;}
#revenue .revenueMiniTotals .pill{padding:6px 8px!important;color:#bceaff!important;background:#071f2e!important;border:1px solid #2e6c90!important;border-radius:2px!important;font-size:9px!important;font-weight:1000!important;}
#revenue #leagueMoneySummary table,#revenue #playerBalanceTable table{width:100%;min-width:760px;margin:0!important;border:1px solid #31566d!important;border-collapse:collapse!important;border-radius:0!important;background:#07111a!important;}
#revenue #leagueMoneySummary th,#revenue #playerBalanceTable th{padding:9px 10px!important;color:#9bddff!important;background:linear-gradient(180deg,#17354a,#0a1d2b)!important;border:0!important;border-right:1px solid #31566d!important;border-bottom:1px solid #4c7187!important;font-size:8px!important;font-weight:1000!important;letter-spacing:.1em!important;text-transform:uppercase;}
#revenue #leagueMoneySummary td,#revenue #playerBalanceTable td{padding:8px 10px!important;color:#e9f1f5!important;background:#07121b!important;border:0!important;border-right:1px solid #263f4e!important;border-bottom:1px solid #263f4e!important;font-size:10px!important;vertical-align:middle!important;}
#revenue #leagueMoneySummary tbody tr:nth-child(even) td,#revenue #playerBalanceTable tbody tr:nth-child(even) td{background:#091722!important;}
#revenue #leagueMoneySummary tbody tr:hover td,#revenue #playerBalanceTable tbody tr:hover td{background:#0e2534!important;}
#revenue #playerBalanceTable tbody tr.paidRow td{background:linear-gradient(90deg,rgba(7,61,39,.78),rgba(5,31,23,.88))!important;border-bottom-color:#23714e!important;}
#revenue #playerBalanceTable .pill{display:inline-block;margin:2px;padding:3px 6px;color:#b9e9ff!important;background:#071f2e!important;border:1px solid #2e6c90!important;border-radius:2px!important;font-size:9px!important;font-weight:900!important;}
#revenue #playerBalanceTable .statusPaid{color:#66ffa8!important;background:#062419!important;border-color:#218d56!important;}
#revenue #playerBalanceTable .statusOwe{color:#ffd365!important;background:#2d2107!important;border-color:#8c6d1d!important;}
#revenue #leagueMoneySummary.empty,#revenue #playerBalanceTable.empty{min-height:110px;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:1150px){#revenue .stadiumRevenueCards{grid-template-columns:repeat(3,1fr)!important;}#revenue .revenueBreakdown{grid-template-columns:repeat(2,1fr)!important;}}
@media(max-width:700px){
  body:has(#revenue.active) main{padding-inline:10px!important;}
  #revenue .stadiumRevenueHeader{padding-inline:4px;grid-template-columns:48px minmax(0,1fr) 48px;}
  #revenue .stadiumHeaderButton{width:44px;height:44px;}
  #revenue .stadiumBrandLockup>img:last-child{display:none;}
  #revenue .stadiumBrandLockup>img{width:54px;height:54px;}
  #revenue .stadiumMetalTitle{width:clamp(205px,55vw,360px);}
  #revenue .stadiumBrandWords small{font-size:7px;letter-spacing:.2em;}
  #revenue .stadiumRevenueStrip{grid-template-columns:1fr;}
  #revenue .stadiumRevenueStrip>div:not(.stadiumRevenueStripCenter){display:none;}
  #revenue .stadiumRevenueTopbar{display:grid!important;gap:10px;}
  #revenue .stadiumRevenueActions{justify-content:stretch;}
  #revenue .stadiumRevenueActions .btn{flex:1;min-width:0;}
  #revenue .stadiumRevenueCards{grid-template-columns:1fr 1fr!important;}
  #revenue .stadiumRevenueMetric:last-child{grid-column:1/3;}
  #revenue .revenueBreakdown{grid-template-columns:1fr 1fr!important;}
}

@media print{
  @page{size:letter portrait;margin:.45in;}
  body{background:#fff!important;color:#111!important;}
  body *{visibility:hidden!important;}
  #revenue,#revenue *{visibility:visible!important;}
  #revenue{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;}
  #revenue .revenuePrintTitle{display:flex!important;flex-wrap:wrap;align-items:baseline;justify-content:space-between;padding-bottom:10px;margin-bottom:12px;border-bottom:3px solid #111;}
  #revenue .revenuePrintTitle h1{flex:1 0 100%;margin:0 0 5px;color:#111!important;font-size:24px;}
  #revenue .revenuePrintTitle b,#revenue .revenuePrintTitle span{color:#333!important;font-size:11px;}
  #revenue .stadiumRevenueHeader,#revenue .stadiumRevenueStrip,#revenue .stadiumRevenueTopbar,#revenue .pageBackRow{display:none!important;}
  #revenue .stadiumRevenueCards{grid-template-columns:repeat(5,1fr)!important;gap:5px!important;}
  #revenue .stadiumRevenueMetric{min-height:0!important;padding:8px!important;background:#fff!important;border:1px solid #777!important;box-shadow:none!important;}
  #revenue .stadiumRevenueMetric::after,#revenue .revenueMetricTrack{display:none!important;}
  #revenue .stadiumRevenueMetric small,#revenue .stadiumRevenueMetric span{color:#555!important;font-size:7px!important;}
  #revenue .stadiumRevenueMetric .metric{color:#111!important;font-size:17px!important;text-shadow:none!important;}
  #revenue .stadiumRevenuePanel{padding:9px!important;margin:0 0 10px!important;color:#111!important;background:#fff!important;border:1px solid #777!important;box-shadow:none!important;page-break-inside:avoid;}
  #revenue .stadiumRevenueSectionTitle{margin-bottom:7px;padding-bottom:5px;border-bottom:1px solid #aaa;}
  #revenue .stadiumRevenueSectionTitle>span{display:none!important;}
  #revenue .stadiumRevenueSectionTitle h3{color:#111!important;font-size:12px;}
  #revenue .stadiumRevenueSectionTitle small{color:#555!important;font-size:8px;}
  #revenue .revenueBreakdown{grid-template-columns:repeat(4,1fr)!important;gap:4px!important;}
  #revenue .revenueBreakdown>div{padding:6px!important;color:#111!important;background:#fff!important;border:1px solid #bbb!important;font-size:9px!important;}
  #revenue .revenueBreakdown>div b{color:#333!important;font-size:7px!important;}
  #revenue .revenueMiniTotals .pill{padding:3px 5px!important;color:#111!important;background:#fff!important;border:1px solid #aaa!important;font-size:7px!important;}
  #revenue #leagueMoneySummary,#revenue #playerBalanceTable{overflow:visible!important;}
  #revenue #leagueMoneySummary table,#revenue #playerBalanceTable table{min-width:0!important;border-collapse:collapse!important;background:#fff!important;font-size:8px!important;}
  #revenue #leagueMoneySummary th,#revenue #playerBalanceTable th{padding:4px!important;color:#fff!important;background:#222!important;border:1px solid #222!important;font-size:7px!important;}
  #revenue #leagueMoneySummary td,#revenue #playerBalanceTable td,#revenue #playerBalanceTable tbody tr.paidRow td{padding:4px!important;color:#111!important;background:#fff!important;border:1px solid #bbb!important;font-size:8px!important;}
  #revenue #playerBalanceTable .pill{padding:1px 3px!important;color:#111!important;background:#fff!important;border:1px solid #aaa!important;font-size:7px!important;}
}
