/* FM27 V10.85.28 – compact scouting tables. Display only; business rules unchanged. */
.fm27-v8528-scout-layout{display:grid;grid-template-columns:minmax(235px,275px) minmax(0,1fr);align-items:start;gap:18px;margin:18px 0 24px}
.fm27-v8528-scout-filters{background:#142139;border:1px solid #354969;border-radius:12px;overflow:hidden;color:#e4ebfc}
.fm27-v8528-search-form{padding:16px;display:flex;flex-direction:column;gap:10px}
.fm27-v8528-search-form h2{font-size:1.02rem;line-height:1.4;font-weight:800;margin:-16px -16px 7px;padding:17px 16px;border-bottom:1px solid #354969;color:#f5f8ff}
.fm27-v8528-search-form>label{font-weight:740;color:#c6d6f3;font-size:.76rem;margin-top:7px}
.fm27-v8528-search-form .form-control,.fm27-v8528-search-form .form-select{border:1px solid #425878!important;background:#0d1a2e!important;color:#ecf4ff!important;min-height:39px;font-size:.81rem;border-radius:7px;box-shadow:none}
.fm27-v8528-search-form .form-control::placeholder{color:#91a5c1}
.fm27-v8528-search-form :is(.form-control,.form-select):focus{border-color:#9e8aff!important;outline:2px solid #a38aff3b}
.fm27-v8528-extra{border-top:1px solid #34445e;margin-top:13px;padding-top:15px}
.fm27-v8528-extra summary{font-size:.84rem;cursor:pointer;font-weight:800;color:#d5c6ff;padding:4px 0 6px;list-style:none;display:flex;gap:8px;align-items:center}
.fm27-v8528-extra summary::after{content:'+';margin-left:auto;font-size:1.12rem}
.fm27-v8528-extra[open] summary::after{content:'−'}
.fm27-v8528-range{border:0;margin:12px 0 0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.fm27-v8528-range legend{grid-column:1 / -1;color:#c6d6f3;font-size:.76rem;margin:0;font-weight:740}
.fm27-v8528-range label{display:flex;flex-direction:column;gap:5px;min-width:0;color:#a8bbd6;font-size:.72rem}
.fm27-v8528-range .form-control{min-width:0;width:100%;padding:7px 8px}
.fm27-v8528-submit{width:100%;display:flex;gap:8px;justify-content:center;align-items:center;margin-top:12px;min-height:41px;font-weight:750}
.fm27-v8528-reset{text-align:center;color:#aabddf;text-decoration:none;font-size:.79rem;padding:3px}
.fm27-v8528-reset:hover{color:#fff;text-decoration:underline}
.fm27-v8528-scout-results{background:#131f33;border:1px solid #334865;border-radius:12px;overflow:hidden;min-width:0}
.fm27-v8528-result-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:14px 16px;border-bottom:1px solid #344660;color:#afc3e3}
.fm27-v8528-result-head h2{font-weight:850;font-size:1.08rem;margin:0 0 3px;color:#f5f7ff}
.fm27-v8528-result-head span{font-size:.79rem}
.fm27-v8528-scroll{overflow-x:auto}
.fm27-v8528-player-table{border-collapse:collapse;width:100%;min-width:870px;margin:0!important;color:#e9f0ff;font-size:.81rem;vertical-align:middle}
.fm27-v8528-player-table thead th{background:#17263e!important;border-bottom:1px solid #354762!important;color:#b2c7eb!important;text-transform:uppercase;letter-spacing:.045em;font-size:.68rem;font-weight:850;padding:12px 11px;white-space:nowrap}
.fm27-v8528-player-table tbody td{background:#131f33!important;color:#e9f0ff!important;border-bottom:1px solid #32435d!important;padding:10px 11px;vertical-align:middle;line-height:1.25}
.fm27-v8528-player-table tbody tr:nth-child(even) td{background:#16243a!important}
.fm27-v8528-player-table tbody tr:hover td{background:#223450!important}
.fm27-v8528-player-table tbody tr:last-child td{border-bottom:0!important}
.fm27-v8528-player-table a{color:#f0f3ff;text-decoration:none;font-weight:760}
.fm27-v8528-player-table a:hover{color:#c9b5ff;text-decoration:underline}
.fm27-v8528-player-identity{display:flex;align-items:center;gap:9px;min-width:165px}
.fm27-v8528-avatar{display:inline-flex;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:38px;border-radius:7px;overflow:hidden;background:#253656;border:1px solid #41577a;color:#acc2dd}
.fm27-v8528-avatar img{width:100%;height:100%;object-fit:cover;object-position:center top}
.fm27-v8528-avatar .bi{font-size:1.1rem}
.fm27-v8528-rating>span{display:inline-flex;min-width:38px;padding:6px 7px;align-items:center;justify-content:center;border:1px solid #6a55c4;background:linear-gradient(135deg,#7651d4,#53359d);border-radius:6px;color:#fff;font-weight:860;font-variant-numeric:tabular-nums}
.fm27-v8528-nation{display:inline-flex;align-items:center;gap:7px;font-weight:760;white-space:nowrap;font-size:.76rem;color:#dce8fb}
.fm27-v8528-nation img{width:21px;height:15px;object-fit:cover;border:1px solid #ffffff26;border-radius:1px}
.fm27-v8528-club{display:inline-flex;align-items:center;gap:8px;min-width:130px;max-width:245px}
.fm27-v8528-club img{width:25px;height:25px;object-fit:contain;flex:none}
.fm27-v8528-club span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fm27-v8528-club>.bi{width:25px;text-align:center;flex:none;color:#9faecc}
.fm27-v8528-positions{white-space:nowrap;font-size:.77rem;color:#bdabff!important;font-weight:760}
.fm27-v8528-positions span{color:#a99acb;font-weight:620}
.fm27-v8528-money{font-size:.8rem;white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:740}
.fm27-v8528-watch form{margin:0}
.fm27-v8528-star{width:37px;height:36px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #40577a;background:#15243c;color:#e8bd52!important;border-radius:9px;font-size:1rem;cursor:pointer;text-decoration:none!important}
.fm27-v8528-star:is(:hover,:focus-visible),.fm27-v8528-star.is-watched{color:#ffd273!important;border-color:#887440;background:#25314b}
.fm27-v8528-no-hits{text-align:center;padding:35px!important;color:#b3c4da!important}
.fm27-v8528-pagination{border-top:1px solid #344660;padding:13px 16px;display:flex;justify-content:center}
.fm27-v8528-pagination .pagination{margin:0;gap:4px;flex-wrap:wrap}
.fm27-v8528-pagination .page-link{background:#182840;color:#d8e7ff;border:1px solid #445675;border-radius:6px;font-size:.81rem;min-width:32px;text-align:center}
.fm27-v8528-pagination .active .page-link{background:#704cb5;border-color:#9473df;color:#fff}
/* Own squad: fixed columns, preserve the original action menu and all handlers. */
body.fm27-squad-page #playerTable.fm27-v8528-roster-table{min-width:900px!important}
body.fm27-squad-page #playerTable.fm27-v8528-roster-table th{font-size:.69rem!important}
body.fm27-squad-page #playerTable.fm27-v8528-roster-table td{padding:9px 11px!important;vertical-align:middle!important}
body.fm27-squad-page #playerTable.fm27-v8528-roster-table tbody tr>td{background:#1a2740!important;color:#ebeffa!important}
body.fm27-squad-page #playerTable.fm27-v8528-roster-table tbody tr:nth-of-type(even)>td{background:#1d2a44!important}
body.fm27-squad-page #playerTable.fm27-v8528-roster-table tbody tr:hover>td{background:#293456!important}
.fm27-v8528-own-player{min-width:300px}
.fm27-v8528-own-player-row{display:flex;align-items:center;gap:12px;justify-content:space-between;min-width:0}
.fm27-v8528-own-player-row>.fm27-v8528-player-identity{min-width:0;flex:1 1 auto}
.fm27-v8528-own-player .fm27-v8528-player-label{display:flex;align-items:center;gap:6px;flex-wrap:wrap;line-height:1.2;font-size:.81rem;font-weight:760}
.fm27-v8528-player-label a{color:#f0ecff;text-decoration:none}
.fm27-v8528-player-label a:hover{text-decoration:underline;color:#fff}
.fm27-v8528-player-subline{display:block;font-size:.72rem;color:#adbfe0;margin-top:3px}
.fm27-v8528-own-actions{flex:0 0 83px;width:83px;display:flex;justify-content:flex-end;align-items:center}
.fm27-v8528-own-actions>.btn-group .btn{white-space:nowrap;font-size:.71rem;padding:4px 8px;max-width:80px}
.fm27-v8528-own-actions .dropdown-menu{z-index:1090}
.fm27-v8528-contract-warning{color:#ff9ba6;font-size:.85rem;margin-left:4px}
body.fm27-squad-page #playerTable.fm27-v8528-roster-table .fm27-v8528-nation,body.fm27-squad-page #playerTable.fm27-v8528-roster-table .fm27-v8528-positions{font-size:.75rem}
body.fm27-squad-page #playerTable.fm27-v8528-roster-table td.fm27-v8528-rating>span{background:#354267;border-color:#566289}
/* External team's AJAX-loaded squad table – no controls or filtering changes. */
.fm27-v8528-external-wrap{border:1px solid #374966;border-radius:12px;overflow-x:auto}
.fm27-v8528-external-table{min-width:800px!important}
.fm27-v8528-external-table td:nth-child(2){min-width:200px}
.fm27-v8528-option-actions{min-width:225px}
.fm27-v8528-option-actions .fm27-agent-box{margin:0 0 7px}
.fm27-v8528-option-actions .fm27-v8528-exercise-form{margin-top:7px}
@media(max-width:1199px){.fm27-v8528-scout-layout{grid-template-columns:240px minmax(0,1fr);gap:12px}}
@media(max-width:900px){.fm27-v8528-scout-layout{grid-template-columns:minmax(0,1fr)}.fm27-v8528-scout-filters{max-width:none}.fm27-v8528-search-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 12px}.fm27-v8528-search-form h2,.fm27-v8528-extra,.fm27-v8528-submit,.fm27-v8528-reset{grid-column:1 / -1}.fm27-v8528-search-form>label{align-self:end}.fm27-v8528-range{grid-template-columns:1fr 1fr}}
@media(max-width:540px){.fm27-v8528-search-form{display:flex}.fm27-v8528-scout-layout{margin:10px 0}.fm27-v8528-result-head{padding:12px}.fm27-v8528-player-table thead th,.fm27-v8528-player-table tbody td{padding:9px 8px}}
