/* FM27 R27.82 · one UI-only layer, based on deployed R27.81. */
/* Five fixtures: bottom-row equal-height behavior remains owned by R27.38. */
body.fm27-midnight .fm27-home-dashboard .fmh-recent{display:flex;flex-direction:column;min-width:0}
body.fm27-midnight .fm27-home-dashboard .fmh-recent .fmh-form{display:none!important}
body.fm27-midnight .fm27-home-dashboard .fmh-recent-list{flex:1 1 auto;min-height:0;justify-content:space-evenly;padding:7px 11px 10px}
body.fm27-midnight .fm27-home-dashboard .fmh-recent-list>.fmh-result-row{flex:1 1 0;min-height:45px;max-height:72px;padding-top:7px;padding-bottom:7px}
body.fm27-midnight .fm27-home-dashboard .fmh-recent-list .fmh-result-row time{font-size:.76rem;font-weight:620;white-space:nowrap}
body.fm27-midnight .fm27-home-dashboard .fmh-recent-list .fmh-result-row>img{margin-right:5px}
/* Four explicit columns: photo, card/injury, player/reason, time missing. */
body.fm27-midnight .fm27-home-dashboard a.fm27-r2782-incident{
 display:grid!important;grid-template-columns:37px 28px minmax(0,1fr) minmax(59px,auto)!important;
 align-items:center;column-gap:9px;min-height:53px;padding:7px 4px;
 color:#eaf1ff;text-decoration:none;
}
body.fm27-midnight .fm27-home-dashboard .fm27-r2782-incident-avatar{
 display:grid;place-items:center;overflow:hidden;width:36px;height:39px;border-radius:6px;background:#2a3b59;
}
body.fm27-midnight .fm27-home-dashboard .fm27-r2782-incident-avatar img{width:100%;height:100%;object-fit:cover;object-position:top}
body.fm27-midnight .fm27-home-dashboard .fm27-r2782-incident-avatar>.bi{font-size:1.25rem;color:#a8b9d5}
body.fm27-midnight .fm27-home-dashboard .fm27-r2782-incident-badge{display:grid!important;place-items:center;width:25px;height:26px;background:transparent}
body.fm27-midnight .fm27-home-dashboard .fm27-r2782-incident-badge>.bi{font-size:1.18rem;line-height:1}
body.fm27-midnight .fm27-home-dashboard .fm27-r2782-incident-badge.is-injured>.bi{color:#ff5269}
body.fm27-midnight .fm27-home-dashboard .fm27-r2782-incident-badge.is-blocked>.bi{color:#ffd54a}
body.fm27-midnight .fm27-home-dashboard .fm27-r2782-incident-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
body.fm27-midnight .fm27-home-dashboard .fm27-r2782-incident-copy strong{font-size:.75rem;font-weight:770;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.fm27-midnight .fm27-home-dashboard .fm27-r2782-incident-copy small{font-size:.67rem;color:#a7b9d6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.fm27-midnight .fm27-home-dashboard .fm27-r2782-incident-duration{display:block!important;text-align:right;white-space:nowrap;color:#bed0e9;font-size:.69rem;font-variant-numeric:tabular-nums}
/* Roster: no duplicate header text or style-dependent sort-button label. Both
   header and data cells receive explicit display state via the existing JS. */
body.fm27-midnight.fm27-myteam-page #playerTable.fm27-roster-table thead tr{display:table-row!important;visibility:visible!important}
body.fm27-midnight.fm27-myteam-page #playerTable.fm27-roster-table thead th[data-fm27-label]:not([hidden]){display:table-cell!important;color:#cbd9f1!important;visibility:visible!important;opacity:1!important;text-indent:0!important;font-size:.7rem!important;line-height:1.35!important;white-space:nowrap!important}
body.fm27-midnight.fm27-myteam-page #playerTable.fm27-roster-table thead .fm27-r2782-col-title{display:inline!important;font-size:inherit!important;font-weight:790!important;color:inherit!important;visibility:visible!important;opacity:1!important;white-space:nowrap!important;text-transform:inherit!important}
body.fm27-midnight.fm27-myteam-page #playerTable.fm27-roster-table thead 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 thead .fm27-r272-sort{display:inline-flex!important;vertical-align:middle;align-items:center;margin-left:5px}
/* Ticker reuses the engine's original text and icons, with clearer event cards. */
body.fm27-midnight #reporttable.fm27-r2782-live-ticker{width:100%;border-collapse:separate;border-spacing:0 5px;table-layout:fixed}
body.fm27-midnight #reporttable.fm27-r2782-live-ticker col.ws-col-60{width:45px}
body.fm27-midnight #reporttable.fm27-r2782-live-ticker tr.fm27-r2782-ticker-event td{background:#192942;border-top:1px solid #314762;border-bottom:1px solid #314762;padding:10px 12px;vertical-align:top}
body.fm27-midnight #reporttable.fm27-r2782-live-ticker tr.fm27-r2782-ticker-event td:first-child{border-left:1px solid #314762;border-radius:9px 0 0 9px;padding:10px 5px;text-align:center}
body.fm27-midnight #reporttable.fm27-r2782-live-ticker tr.fm27-r2782-ticker-event td:last-child{border-right:1px solid #314762;border-radius:0 9px 9px 0}
body.fm27-midnight #reporttable.fm27-r2782-live-ticker .report_minute{font-size:.75rem;font-weight:780;color:#bed4ef;margin:0 0 4px}
body.fm27-midnight #reporttable.fm27-r2782-live-ticker .report_comment{font-size:.78rem;line-height:1.55;color:#e4ecfa;margin:0}
body.fm27-midnight #reporttable.fm27-r2782-live-ticker tr[data-event-type="Tor"] td,
body.fm27-midnight #reporttable.fm27-r2782-live-ticker tr[data-event-type="Tor_mit_vorlage"] td,
body.fm27-midnight #reporttable.fm27-r2782-live-ticker tr[data-event-type="Elfmeter_erfolg"] td{border-color:#367858;background:#193547}
body.fm27-midnight #reporttable.fm27-r2782-live-ticker tr[data-event-type="Karte_rot"] td,
body.fm27-midnight #reporttable.fm27-r2782-live-ticker tr[data-event-type="Karte_gelb_rot"] td{border-color:#77516a;background:#31263e}
body.fm27-midnight #reporttable.fm27-r2782-live-ticker tr[data-event-type="Verletzung"] td{border-color:#77546a;background:#2e263e}
body.fm27-midnight #reporttable.fm27-r2782-live-ticker .fm27-r2782-ticker-icon i{font-size:1.1rem}
@media(max-width:680px){
 body.fm27-midnight .fm27-home-dashboard .fmh-recent-list>.fmh-result-row{max-height:none}
 body.fm27-midnight .fm27-home-dashboard a.fm27-r2782-incident{grid-template-columns:34px 23px minmax(0,1fr) auto!important;gap:6px}
 body.fm27-midnight .fm27-home-dashboard .fm27-r2782-incident-avatar{width:33px;height:36px}
 body.fm27-midnight .fm27-home-dashboard .fm27-r2782-incident-duration{font-size:.64rem}
 body.fm27-midnight #reporttable.fm27-r2782-live-ticker tr.fm27-r2782-ticker-event td{padding:8px 6px}
}
body.fm27-midnight #reporttable.fm27-r2782-live-ticker .fm27-r2782-event-badge{display:inline-flex;vertical-align:middle;align-items:center;margin:0 0 5px;padding:2px 7px;border-radius:5px;background:#30415f;color:#c7d7f2;font-size:.63rem;font-weight:760;letter-spacing:.015em}
body.fm27-midnight #reporttable.fm27-r2782-live-ticker tr[data-event-type="Tor"] .fm27-r2782-event-badge,
body.fm27-midnight #reporttable.fm27-r2782-live-ticker tr[data-event-type="Tor_mit_vorlage"] .fm27-r2782-event-badge{background:#185646;color:#80f3be}
body.fm27-midnight #reporttable.fm27-r2782-live-ticker tr[data-event-type="Karte_rot"] .fm27-r2782-event-badge,
body.fm27-midnight #reporttable.fm27-r2782-live-ticker tr[data-event-type="Karte_gelb_rot"] .fm27-r2782-event-badge{background:#563046;color:#ffc7d0}
body.fm27-midnight #reporttable.fm27-r2782-live-ticker .fm27-r2782-yellowred{position:relative;display:inline-block;width:21px;height:19px;vertical-align:middle}
body.fm27-midnight #reporttable.fm27-r2782-live-ticker .fm27-r2782-yellowred i{position:absolute;width:13px;height:17px;border-radius:2px;transform:rotate(-7deg);left:1px;top:1px;background:#efd537}
body.fm27-midnight #reporttable.fm27-r2782-live-ticker .fm27-r2782-yellowred .fm27-r2782-card-red{background:#ed485a;left:7px;top:0;transform:rotate(8deg)}
