/* FM27 R27.84 — pure presentation: roster and sponsor cards. */
body.fm27-midnight.fm27-myteam-page #playerTable.fm27-roster-table > thead {display:table-header-group!important;visibility:visible!important}
body.fm27-midnight.fm27-myteam-page #playerTable.fm27-roster-table > thead > tr {display:table-row!important}
body.fm27-midnight.fm27-myteam-page #playerTable.fm27-roster-table > thead > tr > th[data-roster-sort]:not([hidden]) {display:table-cell!important;visibility:visible!important;opacity:1!important;color:#c5d7ee!important;background:#17263e!important;vertical-align:middle!important;white-space:nowrap!important;cursor:pointer;font-weight:780!important;text-indent:0!important}
body.fm27-midnight.fm27-myteam-page #playerTable.fm27-roster-table > thead > tr > th[hidden],body.fm27-midnight.fm27-myteam-page #playerTable.fm27-roster-table tbody td[hidden] {display:none!important}
body.fm27-midnight.fm27-myteam-page #playerTable.fm27-roster-table th[data-roster-sort]:focus-visible{outline:2px solid #55dabb;outline-offset:-3px}
body.fm27-midnight.fm27-myteam-page #playerTable.fm27-roster-table .fm27-r2784-sort-icon{font-size:.67rem;opacity:.58;display:inline-block;vertical-align:middle;margin-left:4px}
body.fm27-midnight.fm27-myteam-page #playerTable.fm27-roster-table th[aria-sort="ascending"] .fm27-r2784-sort-icon,body.fm27-midnight.fm27-myteam-page #playerTable.fm27-roster-table th[aria-sort="descending"] .fm27-r2784-sort-icon{opacity:1;color:#53e0b2}
body.fm27-midnight .fm27-r2784-sponsor-brand{display:flex;gap:14px;align-items:center;min-width:0}
body.fm27-midnight .fm27-r2784-sponsor-brand>div{min-width:0}
body.fm27-midnight .fm27-r2784-sponsor-art{width:74px;height:74px;flex:0 0 74px;object-fit:contain;padding:7px;background:linear-gradient(145deg,#17273d,#102339);border:1px solid #42617a;border-radius:15px;box-shadow:0 10px 23px rgba(4,11,24,.24)}
body.fm27-midnight .fm27-sponsor-current .fm27-r2784-sponsor-art{width:90px;height:90px;flex-basis:90px}
body.fm27-midnight .fm27-sponsor-grid .fm27-sponsor-offer-top{gap:9px}
body.fm27-midnight .fm27-sponsor-grid .fm27-sponsor-chip{flex:none}
body.fm27-midnight .fm27-sponsor-current-title>div{min-width:0}
body.fm27-midnight .fm27-sponsor-grid .fm27-sponsor-offer{box-shadow:0 5px 14px rgba(2,8,19,.16)}
body.fm27-midnight .fm27-sponsor-terms{font-variant-numeric:tabular-nums}
@media(max-width:650px){body.fm27-midnight .fm27-r2784-sponsor-art{width:58px;height:58px;flex-basis:58px}body.fm27-midnight .fm27-sponsor-current .fm27-r2784-sponsor-art{width:64px;height:64px;flex-basis:64px}}
/* Weekly finances: visually distinguish actual booked income/expenses; never infer trends. */
body.fm27-midnight .fm27-r2743-weekly-totals>div{padding:13px 16px;background:#1b2a42;border-color:#3e546f}
body.fm27-midnight .fm27-r2743-weekly-totals>div:first-child{border-top:2px solid #46bb99}
body.fm27-midnight .fm27-r2743-weekly-totals>div:nth-child(2){border-top:2px solid #da7187}
body.fm27-midnight .fm27-r2743-weekly-totals>div:last-child{border-top:2px solid #8d9cf0}
body.fm27-midnight .fm27-r2743-weekly-category{padding:13px 16px;background:#1b2942}
body.fm27-midnight .fm27-r2743-weekly-header>span{background:#25344d;border:1px solid #3d526e;border-radius:7px;padding:7px 10px;font-variant-numeric:tabular-nums}

/* Sponsor-UI: compact brand-header layout for V9 sponsor cards; no financial logic changes. */
body.fm27-midnight .fm27-sponsor-grid .fm27-sponsor-offer-top.fm27-r38-sponsor-head{display:block!important;position:relative;min-height:104px;padding:8px 0 10px;border-bottom:0}
body.fm27-midnight .fm27-r38-sponsor-brand{display:grid;grid-template-columns:minmax(0,43%) minmax(0,57%);align-items:center;width:100%;min-width:0;min-height:86px}
body.fm27-midnight .fm27-r38-sponsor-logo{display:flex;align-items:center;justify-content:center;min-width:0;padding:0 14px 0 2px}
body.fm27-midnight .fm27-r38-sponsor-logo img{display:block;width:100%;max-width:230px;height:auto;max-height:76px;object-fit:contain;object-position:center}
body.fm27-midnight .fm27-r38-sponsor-copy{display:flex;flex-direction:column;justify-content:center;align-self:stretch;min-width:0;padding:16px 6px 12px 17px;border-left:1px solid #93a5bf58}
body.fm27-midnight .fm27-r38-sponsor-copy .fm27-sponsor-eyebrow{display:block;line-height:1.35;margin:0 0 5px;font-size:10px;letter-spacing:.10em}
body.fm27-midnight .fm27-sponsor-offer .fm27-r38-sponsor-copy h3{margin:0!important;color:#f8faff!important;font-size:clamp(15px,1.2vw,21px)!important;line-height:1.23;overflow-wrap:normal;word-break:normal}
body.fm27-midnight .fm27-r38-sponsor-head .fm27-sponsor-chip{position:absolute;top:0;right:0;z-index:1;line-height:1.2}
body.fm27-midnight .fm27-sponsor-current .fm27-r38-active-brand{width:min(660px,100%)}
body.fm27-midnight .fm27-sponsor-current .fm27-r38-sponsor-logo img{max-width:235px;max-height:80px}
@media(min-width:1001px) and (max-width:1450px){
 body.fm27-midnight .fm27-sponsor-grid .fm27-r38-sponsor-brand{grid-template-columns:minmax(0,39%) minmax(0,61%)}
 body.fm27-midnight .fm27-sponsor-grid .fm27-r38-sponsor-logo{padding-right:8px}
 body.fm27-midnight .fm27-sponsor-grid .fm27-r38-sponsor-copy{padding-left:11px;padding-top:27px;padding-bottom:6px}
 body.fm27-midnight .fm27-sponsor-grid .fm27-r38-sponsor-copy .fm27-sponsor-eyebrow{font-size:9px}
 body.fm27-midnight .fm27-sponsor-grid .fm27-r38-sponsor-copy h3{font-size:15px!important}
}
@media(max-width:450px){
 body.fm27-midnight .fm27-sponsor-grid .fm27-r38-sponsor-brand{grid-template-columns:minmax(0,38%) minmax(0,62%)}
 body.fm27-midnight .fm27-sponsor-grid .fm27-r38-sponsor-logo{padding-right:8px}
 body.fm27-midnight .fm27-sponsor-grid .fm27-r38-sponsor-copy{padding:26px 3px 9px 10px}
 body.fm27-midnight .fm27-sponsor-grid .fm27-r38-sponsor-copy h3{font-size:16px!important}
 body.fm27-midnight .fm27-sponsor-current-title{gap:8px}
}
