/* FM27 V10.73.6: presentation only, no game fields or handlers changed. */
/* Landscape position map - football pitch from left (defence) to right (attack). */
body.fm27-midnight .fm27-position-map{max-width:560px;aspect-ratio:1.82;margin-inline:auto;background:repeating-linear-gradient(90deg,#155f51 0%,#155f51 24%,#176b5b 24%,#176b5b 50%)}
body.fm27-midnight .fm27-position-map:before{background:linear-gradient(to right,transparent 49.75%,#b9dacaad 50%,transparent 50.25%)}
body.fm27-midnight .fm27-position-map:after{left:42%;top:28%;width:16%;height:44%;border-radius:50%}
body.fm27-midnight .fm27-position-map .fm27-pos-T{left:8%;top:50%}
body.fm27-midnight .fm27-position-map .fm27-pos-LV{left:27%;top:14%}
body.fm27-midnight .fm27-position-map .fm27-pos-IV{left:23%;top:50%}
body.fm27-midnight .fm27-position-map .fm27-pos-RV{left:27%;top:86%}
body.fm27-midnight .fm27-position-map .fm27-pos-DM{left:43%;top:50%}
body.fm27-midnight .fm27-position-map .fm27-pos-LM{left:55%;top:15%}
body.fm27-midnight .fm27-position-map .fm27-pos-ZM{left:55%;top:50%}
body.fm27-midnight .fm27-position-map .fm27-pos-RM{left:55%;top:85%}
body.fm27-midnight .fm27-position-map .fm27-pos-OM{left:68%;top:50%}
body.fm27-midnight .fm27-position-map .fm27-pos-LS{left:84%;top:15%}
body.fm27-midnight .fm27-position-map .fm27-pos-MS{left:91%;top:50%}
body.fm27-midnight .fm27-position-map .fm27-pos-RS{left:84%;top:85%}
body.fm27-midnight .fm27-position-rating{justify-content:space-between}
body.fm27-midnight .fm27-position-rating .fm27-report-stars{margin-left:auto}
body.fm27-midnight .fm27-deal-fields [aria-invalid="true"]{border-color:#ff8b92!important;box-shadow:0 0 0 1px rgba(244,100,112,.2)}
/* Dedicated club column, never append a badge after player names. */
body.fm27-midnight .fm27-market-club-cell{width:74px;min-width:65px;text-align:center;vertical-align:middle}
body.fm27-midnight .fm27-market-club-cell .fm27-club-mark{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;max-width:48px;margin:0}
body.fm27-midnight .fm27-market-club-cell .fm27-club-mark img{max-width:42px;max-height:42px;object-fit:contain}
/* Search icon stays anchored inside its INPUT even on narrow screens. */
@media(max-width:759.98px){
 body.fm27-squad-page .fm27-roster-panel-head .fm27-roster-controls .fm27-roster-search{position:relative!important;flex:1 1 165px!important;min-width:0!important;width:auto!important;max-width:none!important}
 body.fm27-squad-page .fm27-roster-panel-head .fm27-roster-controls .fm27-roster-search input{box-sizing:border-box!important;min-width:0!important;width:100%!important;max-width:100%!important;padding-left:34px!important}
 body.fm27-squad-page .fm27-roster-panel-head .fm27-roster-controls .fm27-roster-search i{position:absolute!important;left:11px!important;top:50%!important;transform:translateY(-50%)!important;pointer-events:none!important;z-index:2}
 body.fm27-squad-page .fm27-roster-panel-head .fm27-roster-controls #fm27RosterPosition{flex:0 1 137px!important;width:137px!important;max-width:145px!important;min-width:118px!important;padding-right:25px!important}
}
@media(max-width:390px){body.fm27-squad-page .fm27-roster-panel-head .fm27-roster-controls .fm27-roster-search{flex-basis:145px!important}}
/* Native OWS fire-player modal is detached from clipped responsive table in JS. */
body.fm27-midnight .fm27-fire-modal-fixed{z-index:1060!important}
body.fm27-midnight .fm27-fire-modal-fixed .modal-dialog{max-width:min(440px,calc(100vw - 24px));margin:1rem auto;position:relative;z-index:2}
body.fm27-midnight .fm27-fire-modal-fixed .modal-content{color:#f5f7ff;background:#202a43;border:1px solid #637190;box-shadow:0 15px 45px #0008}
body.fm27-midnight .fm27-fire-modal-fixed .modal-footer{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
body.fm27-midnight .fm27-fire-modal-fixed .modal-footer>a,body.fm27-midnight .fm27-fire-modal-fixed .modal-footer>button{pointer-events:auto;position:relative;z-index:3}
