/* FM27 R27.25.23 – geometry comes from fm27-context-bars-v10723.css.
   This file only adapts placement/content and controls; never redefine bar gradient/radius/border. */
body.fm27-midnight.fm27-r272523-ui-page .fm27-management-bands.fm27-r272523-bands{display:block;min-width:0;margin:0 0 16px;padding:0;gap:0}
body.fm27-midnight.fm27-r272523-ui-page .fm27-r272523-primary{grid-template-columns:repeat(4,minmax(0,1fr));}
body.fm27-midnight.fm27-r272523-ui-page .fm27-r272523-primary>.fm27-r272523-title>span{letter-spacing:.045em;text-transform:uppercase}
body.fm27-midnight.fm27-r272523-ui-page .fm27-r272523-primary>.fm27-r272523-title>strong{font-size:clamp(1rem,1.5vw,1.22rem)}
body.fm27-midnight.fm27-r272523-ui-page .fm27-r272523-primary>.fm27-roster-metric:last-child:nth-child(1){grid-column:1/-1}
body.fm27-midnight.fm27-r272523-ui-page .fm27-r272523-primary:has(>.fm27-roster-metric:nth-child(3):last-child){grid-template-columns:2fr 1fr 1fr}
body.fm27-midnight.fm27-r272523-ui-page .fm27-r272523-primary:has(>.fm27-roster-metric:nth-child(2):last-child){grid-template-columns:2fr 1fr}
body.fm27-midnight.fm27-r272523-ui-page .fm27-r272523-secondary{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.6rem;min-width:0}
body.fm27-midnight.fm27-r272523-ui-page .fm27-r272523-tabs{min-width:0;display:flex;flex-wrap:wrap;gap:5px;align-items:center;padding:0;margin:0;border:0!important;background:transparent!important}
body.fm27-midnight.fm27-r272523-ui-page .fm27-r272523-tabs .nav-item{margin:0}
/* Reuse the exact green radio-tab proportions of the transfer-market filter. */
body.fm27-midnight.fm27-r272523-ui-page .fm27-r272523-tab,
body.fm27-midnight.fm27-r272523-ui-page .fm27-r272523-tabs .nav-link{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:35px;margin:0;padding:7px 10px!important;background:transparent!important;border:1px solid transparent!important;border-radius:7px!important;box-shadow:none!important;color:#d1ede5!important;font-size:12px;font-weight:750;line-height:1.3;font-family:inherit;letter-spacing:0;text-decoration:none;white-space:nowrap;cursor:pointer}
body.fm27-midnight.fm27-r272523-ui-page .fm27-r272523-tabs .nav-link{font-size:12px!important;font-weight:750!important;line-height:1.3!important}
body.fm27-midnight.fm27-r272523-ui-page .fm27-r272523-tab:hover,
body.fm27-midnight.fm27-r272523-ui-page .fm27-r272523-tabs .nav-link:hover{background:#ffffff15!important;color:#fff!important}
body.fm27-midnight.fm27-r272523-ui-page .fm27-r272523-tab.is-active,
body.fm27-midnight.fm27-r272523-ui-page .fm27-r272523-tabs .nav-link.active{background:#13917e!important;border-color:#79d5c1!important;color:#fff!important}
body.fm27-midnight.fm27-r272523-ui-page .fm27-r272523-tab:focus-visible,
body.fm27-midnight.fm27-r272523-ui-page .fm27-r272523-tabs .nav-link:focus-visible{outline:2px solid #f0cb73!important;outline-offset:2px}
body.fm27-midnight.fm27-r272523-ui-page .fm27-r272523-action{display:inline-flex;align-items:center;gap:8px;cursor:pointer;background:#155b55;color:#f3fafa;border:1px solid #6da89c;border-radius:7px;padding:7px 12px;font-size:12px;font-weight:760;min-height:35px}
body.fm27-midnight.fm27-r272523-ui-page .fm27-r272523-action:hover,
body.fm27-midnight.fm27-r272523-ui-page .fm27-r272523-action:focus-visible{background:#266f65;color:#fff;border-color:#9edbd0;outline:2px solid #b8a6ff;outline-offset:2px}
body.fm27-midnight.fm27-r272523-ui-page .fm27-r272523-filter{display:flex;align-items:center;flex-wrap:wrap;gap:7px;min-width:0;margin:0 0 0 auto}
body.fm27-midnight.fm27-r272523-ui-page .fm27-r272523-filter label{font-size:11px;font-weight:730;color:#c9e7df;white-space:nowrap}
body.fm27-midnight.fm27-r272523-ui-page .fm27-r272523-filter select{background:#143747!important;color:#effbf8!important;border:1px solid #66847e!important;border-radius:7px;font-size:12px;min-height:35px;height:35px;width:auto;min-width:138px;max-width:100%}
body.fm27-midnight.fm27-r272523-ui-page .fm27-r272523-filter select:focus-visible{outline:2px solid #f0cb73;outline-offset:2px}
body.fm27-midnight.fm27-r272523-ui-page [data-fm27-ui-panel][hidden],
body.fm27-midnight.fm27-r272523-ui-page .fm27-r272523-filter[hidden]{display:none!important}
/* Prevent old matchday overrides from introducing mismatched 10px spacing and rounding. */
body.fm27-midnight.fm27-r272523-ui-page.fm27-r2714-matchwork .fm27-r272523-bands{gap:0!important;margin:0 0 16px!important}
/* Preserve the stadium-plan layout from R27.25.22, not its retired header navigation. */
body.fm27-midnight.fm27-r272523-ui-page .fm27-r272523-secondary:has(.fm27-r272523-action){justify-content:flex-start}
@media(max-width:750px){
 body.fm27-midnight.fm27-r272523-ui-page .fm27-r272523-primary{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.fm27-midnight.fm27-r272523-ui-page .fm27-r272523-primary>.fm27-r272523-title{grid-column:1/-1;border-right:0!important;border-bottom:1px solid #ffffff25!important}
 body.fm27-midnight.fm27-r272523-ui-page .fm27-r272523-primary>.fm27-roster-metric:nth-child(2){border-right:1px solid #ffffff25}
 body.fm27-midnight.fm27-r272523-ui-page .fm27-r272523-primary>.fm27-roster-metric:last-child:nth-child(even){grid-column:1/-1;border-top:1px solid #ffffff25;border-right:0}
 body.fm27-midnight.fm27-r272523-ui-page .fm27-r272523-secondary{align-items:flex-start}
}
@media(max-width:530px){
 body.fm27-midnight.fm27-r272523-ui-page .fm27-r272523-tabs{gap:2px;width:100%}
 body.fm27-midnight.fm27-r272523-ui-page .fm27-r272523-tab,
 body.fm27-midnight.fm27-r272523-ui-page .fm27-r272523-tabs .nav-link{white-space:normal;text-align:center;font-size:11px!important;padding:7px 8px!important}
 body.fm27-midnight.fm27-r272523-ui-page .fm27-r272523-filter{margin-left:0;width:100%;justify-content:flex-start}
 body.fm27-midnight.fm27-r272523-ui-page .fm27-r272523-filter select{flex:1 1 130px;min-width:0}
}
