/* FM27 R27.86 – homepage only, additive to installed R27.85. */
/* Remove the old dedicated lineup row; show a compact, hoverable status next to the fixture date. */
body.fm27-midnight .fm27-home-dashboard .fmh-r2786-hidden{display:none}
body.fm27-midnight .fm27-home-dashboard .fmh-r2786-lineup-icon{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:19px;height:20px;margin-left:4px;line-height:1;cursor:help;outline-offset:3px}
body.fm27-midnight .fm27-home-dashboard .fmh-r2786-lineup-icon.is-missing{color:#ffbf68}
body.fm27-midnight .fm27-home-dashboard .fmh-r2786-lineup-icon.is-ready{color:#2fe1a1}
body.fm27-midnight .fm27-home-dashboard .fmh-r2786-lineup-icon .bi{font-size:1rem}
body.fm27-midnight .fm27-home-dashboard .fmh-r2786-lineup-icon::after{content:attr(data-tooltip);position:absolute;z-index:20;bottom:calc(100% + 7px);left:50%;transform:translateX(-50%) translateY(3px);padding:6px 9px;border:1px solid #52749c;background:#162740;box-shadow:0 5px 15px #0008;border-radius:6px;color:#eff6ff;font-size:.69rem;font-weight:550;line-height:1.3;white-space:nowrap;pointer-events:none;opacity:0;visibility:hidden;transition:opacity .14s,transform .14s}
body.fm27-midnight .fm27-home-dashboard .fmh-r2786-lineup-icon:hover::after,body.fm27-midnight .fm27-home-dashboard .fmh-r2786-lineup-icon:focus-visible::after{opacity:1;visibility:visible;transform:translateX(-50%) translateY(0)}
/* Keep three top panels level after the additional table-position line. */
body.fm27-midnight .fm27-home-dashboard .fmh-next .fmh-fixture-main{padding-top:12px;padding-bottom:4px;min-height:0}
body.fm27-midnight .fm27-home-dashboard .fmh-next .fmh-team{gap:5px}
body.fm27-midnight .fm27-home-dashboard .fmh-next .fmh-primary{margin-top:10px;margin-bottom:11px}
body.fm27-midnight .fm27-home-dashboard .fmh-next .fmh-fixture-meta{min-height:22px}
/* Match existing dual yellow/red card symbol, instead of the unrelated credit card icon. */
body.fm27-midnight .fm27-home-dashboard .fmh-r2786-yellowred{display:block;width:22px;height:19px;overflow:visible;filter:drop-shadow(0 1px 2px #0005)}
/* Show actual ledger-based trends only if history is available; the remaining budget fields
   deliberately retain their original values with no synthetic sparklines. */
body.fm27-midnight .fm27-home-dashboard .fmh-r2786-finance-reading{display:flex;justify-content:flex-end;align-items:center;gap:8px;min-width:0;white-space:nowrap}
body.fm27-midnight .fm27-home-dashboard .fmh-r2786-finance-reading>strong{font-size:.82rem}
body.fm27-midnight .fm27-home-dashboard .fmh-r2786-finance-trend{display:inline-flex;align-items:center;gap:3px;font-size:.72rem;font-weight:800;min-width:48px;justify-content:flex-end;cursor:help;font-variant-numeric:tabular-nums}
body.fm27-midnight .fm27-home-dashboard .fmh-r2786-finance-trend.is-positive{color:#38e6ab}
body.fm27-midnight .fm27-home-dashboard .fmh-r2786-finance-trend.is-negative{color:#ff6b7c}
body.fm27-midnight .fm27-home-dashboard .fmh-r2786-finance-trend.is-neutral{color:#aabed6}
body.fm27-midnight .fm27-home-dashboard .fmh-r2786-finance-spark{width:67px;height:29px;flex:none;color:#38d9a1}
body.fm27-midnight .fm27-home-dashboard .fmh-r2786-finance-trend.is-negative + .fmh-r2786-finance-spark{color:#ff6b7c}
body.fm27-midnight .fm27-home-dashboard .fmh-finance-item.has-trend{grid-template-columns:35px minmax(0,1fr) minmax(0,max-content)}
@media(max-width:1600px){body.fm27-midnight .fm27-home-dashboard .fmh-r2786-finance-spark{width:51px}body.fm27-midnight .fm27-home-dashboard .fmh-r2786-finance-reading{gap:5px}}
@media(max-width:1420px){body.fm27-midnight .fm27-home-dashboard .fmh-r2786-finance-spark{display:none}body.fm27-midnight .fm27-home-dashboard .fmh-r2786-finance-trend{font-size:.66rem;min-width:auto}}
@media(max-width:680px){body.fm27-midnight .fm27-home-dashboard .fmh-r2786-lineup-icon::after{max-width:220px;white-space:normal;text-align:center}body.fm27-midnight .fm27-home-dashboard .fmh-next .fmh-fixture-main{padding-top:13px}}
/* At medium widths the finance card uses a two-column inner list; retain readable euro amounts. */
@media(min-width:681px) and (max-width:1100px){
 body.fm27-midnight .fm27-home-dashboard .fmh-finance .fmh-r2786-finance-trend{display:none}
 body.fm27-midnight .fm27-home-dashboard .fmh-next .fmh-fixture-main{grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);gap:2px;padding-inline:8px}
 body.fm27-midnight .fm27-home-dashboard .fmh-next .fmh-team-logo{width:clamp(55px,6.5vw,72px);height:clamp(55px,6.5vw,72px)}
 body.fm27-midnight .fm27-home-dashboard .fmh-next .fmh-fixture-meta{padding-inline:6px;font-size:.70rem}
}
@media(min-width:681px) and (max-width:980px){
 body.fm27-midnight .fm27-home-dashboard .fmh-finance-list{display:flex!important;flex-direction:column!important}
 body.fm27-midnight .fm27-home-dashboard .fmh-finance .fmh-r2786-finance-trend{display:inline-flex}
}
