/* FM27 R27.25.19 – staff content design ONLY; green bar geometry remains owned by Kader CSS.
   Never redefine .fm27-context-band chrome, its color, radius, borders or gap. */
body.fm27-midnight .fm27-r272519-staff{width:100%;max-width:none;margin:0;min-width:0;color:#e6eef9}
body.fm27-midnight .fm27-r272519-staff *{box-sizing:border-box}
body.fm27-midnight.fm27-squad-page .fm27-staff-summary{grid-template-columns:minmax(0,1fr) 124px 124px 124px 220px}
body.fm27-midnight .fm27-staff-summary-title{display:flex;align-items:center;padding:0 .8rem;min-width:0}
body.fm27-midnight .fm27-staff-summary-title .fm27-context-band-caption{display:inline-flex;align-items:center;gap:8px;font-weight:800;color:#f5fffb}
body.fm27-midnight.fm27-squad-page .fm27-staff-summary .fm27-roster-metric{border-right:0;border-left:1px solid #ffffff25}
body.fm27-midnight.fm27-squad-page .fm27-staff-summary .fm27-roster-metric>strong{font-size:clamp(.92rem,1.12vw,1.08rem);white-space:normal}
body.fm27-midnight .fm27-staff-toolbar{min-width:0}
body.fm27-midnight .fm27-staff-view-tabs{display:flex;align-items:center;justify-content:flex-start;gap:5px;flex:1 1 auto;min-width:0;margin:0}
body.fm27-midnight .fm27-staff-view-tabs a{border:1px solid transparent;border-radius:7px;white-space:nowrap;min-height:35px;padding:7px 10px;color:#d3eee5;font-size:12px;font-weight:750}
body.fm27-midnight .fm27-staff-view-tabs a.is-active{background:#13917e;border-color:#79d5c1;color:#fff}
body.fm27-midnight .fm27-staff-toolbar-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto;min-width:0;margin-left:auto}
body.fm27-midnight .fm27-staff-toolbar-actions .btn{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
body.fm27-midnight .fm27-staff-filter-active{font-size:11px;color:#dff9e9;white-space:nowrap}
body.fm27-midnight .fm27-staff-overview{display:grid;gap:14px;min-width:0}
body.fm27-midnight .fm27-staff-overview-panel{padding:0;border-color:#35465e;background:#121d31;margin:0;border-radius:10px;box-shadow:none;overflow:hidden}
body.fm27-midnight .fm27-staff-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 17px;background:#1c2a43;border-bottom:1px solid #364862}
body.fm27-midnight .fm27-staff-section-title h3{margin:0;font-size:14px;line-height:1.35;font-weight:800;color:#f4f8ff}
body.fm27-midnight .fm27-staff-section-title span{color:#a5bed0;font-size:11px;font-weight:650}
body.fm27-midnight .fm27-staff-coach-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
body.fm27-midnight .fm27-staff-coach-grid .fm27-staff-person:nth-child(odd){border-right:1px solid #283953}
body.fm27-midnight .fm27-staff-coach-grid .fm27-staff-person:nth-last-child(-n+2){border-bottom:0}
body.fm27-midnight .fm27-staff-scout-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;min-width:0}
body.fm27-midnight .fm27-staff-person{display:flex;align-items:center;justify-content:flex-start;gap:13px;padding:14px 16px;margin:0;min-height:80px;border-bottom:1px solid #293953;background:#121d31;color:#eef5ff;min-width:0}
body.fm27-midnight .fm27-staff-person:last-child{border-bottom:0}
body.fm27-midnight .fm27-staff-avatar{display:grid;place-items:center;width:39px;height:39px;min-width:39px;border-radius:9px;background:#1b4d50;border:1px solid #3b777a;color:#9be8d5;font-size:18px}
body.fm27-midnight .fm27-staff-person-main{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1 1 auto}
body.fm27-midnight .fm27-staff-person-main .fm27-staff-kicker{font-size:10px;font-weight:780;color:#8cdbca;letter-spacing:.08em}
body.fm27-midnight .fm27-staff-person-main strong{color:#fff;font-size:13px;line-height:1.35;font-weight:800;overflow-wrap:anywhere}
body.fm27-midnight .fm27-staff-person-main small{display:block;font-size:11px;line-height:1.4;color:#acbfd3;opacity:1}
body.fm27-midnight .fm27-staff-person-main .fm27-staff-country-knowledge{color:#9cd2c5}
body.fm27-midnight .fm27-staff-rating{display:inline-grid;place-items:center;flex:0 0 auto;min-width:37px;min-height:31px;padding:4px 8px;font-size:14px;font-weight:840;border:1px solid #547e65;border-radius:7px;background:#254934;color:#b4eab8;font-variant-numeric:tabular-nums}
body.fm27-midnight .fm27-staff-rating.is-empty{background:#1c2b40;color:#9cadbe;border-color:#48576d}
body.fm27-midnight .fm27-staff-empty{padding:20px 17px;margin:0;color:#adbed3;font-size:12px}
body.fm27-midnight .fm27-staff-market-panel{padding:0;margin:0;border:1px solid #35465e;background:#121d31;border-radius:10px;overflow:hidden;box-shadow:none}
body.fm27-midnight .fm27-staff-market-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;background:#1c2a43;border-bottom:1px solid #384963;padding:11px 13px}
body.fm27-midnight .fm27-staff-role-tabs{display:flex;align-items:center;justify-content:flex-start;gap:5px;flex-wrap:wrap;margin:0;min-width:0}
body.fm27-midnight .fm27-staff-role-tabs a{display:inline-flex;align-items:center;justify-content:center;padding:8px 10px;border-radius:7px;border:1px solid transparent;font-size:12px;font-weight:750;text-decoration:none;white-space:nowrap;color:#c9d8e7}
body.fm27-midnight .fm27-staff-role-tabs a:hover{color:#fff;background:#ffffff14}
body.fm27-midnight .fm27-staff-role-tabs a.is-active{background:#245954;color:#f0fff9;border-color:#4d9b8a}
body.fm27-midnight .fm27-staff-list-context{font-size:11px;color:#a8c0d3;white-space:nowrap}
body.fm27-midnight .fm27-staff-market-table{margin:0;background:transparent;color:#dce9f8;font-size:12px;width:100%;min-width:815px}
body.fm27-midnight .fm27-staff-market-table thead th{background:#202e45;color:#c3d2e7;border-bottom:1px solid #41536c;text-transform:uppercase;letter-spacing:.035em;font-size:10px;font-weight:760;padding:12px 13px;vertical-align:middle;white-space:nowrap}
body.fm27-midnight .fm27-staff-market-table tbody td{background:transparent;color:#dce9f8;padding:12px 13px;vertical-align:middle;border-bottom:1px solid #2a3b52}
body.fm27-midnight .fm27-staff-market-table tbody tr:nth-child(even){background:#ffffff05}
body.fm27-midnight .fm27-staff-market-table tbody tr:last-child td{border-bottom:0}
body.fm27-midnight .fm27-staff-market-table td strong{color:#f4f7ff;font-weight:760}
body.fm27-midnight .fm27-staff-market-table td small{font-size:10px;color:#9fb5c7;opacity:1;margin-top:4px}
body.fm27-midnight .fm27-staff-facts{color:#cfdef1;white-space:nowrap;font-variant-numeric:tabular-nums}
body.fm27-midnight .fm27-staff-rating-table{min-width:34px;min-height:27px;font-size:12px}
body.fm27-midnight .fm27-staff-money{white-space:nowrap;font-weight:760;font-variant-numeric:tabular-nums}
body.fm27-midnight .fm27-staff-hire{display:flex;align-items:center;gap:7px;flex-wrap:nowrap;margin:0}
body.fm27-midnight .fm27-staff-hire select{width:148px;min-width:125px;height:34px;background:#1c2d45;border:1px solid #536780;border-radius:7px;color:#f3f8ff;font-size:11px;padding:5px 26px 5px 8px}
body.fm27-midnight .fm27-staff-hire button{font-size:11px;font-weight:750;min-height:34px;padding:5px 10px;color:#d9f9e8;border-color:#4f9c89;white-space:nowrap}
body.fm27-midnight .fm27-staff-pages{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0;padding:14px 18px;max-width:none;border-top:1px solid #2f405b;color:#b0c2d7;font-size:12px}
body.fm27-midnight .fm27-staff-pages a{display:inline-flex;align-items:center;gap:5px;text-decoration:none;color:#b5eddb;padding:6px 9px;border-radius:6px;border:1px solid #42796b;background:#203d43}
body.fm27-midnight .fm27-staff-pages a:hover{background:#275c52;color:#fff}
body.fm27-midnight .fm27-staff-filter-modal .modal-content{background:#182840;border:1px solid #465e79;border-radius:13px;color:#eff5ff;box-shadow:0 20px 56px #0008}
body.fm27-midnight .fm27-staff-filter-modal .modal-header,body.fm27-midnight .fm27-staff-filter-modal .modal-footer{border-color:#394f68;background:#203049;padding:16px 20px}
body.fm27-midnight .fm27-staff-filter-modal .modal-header small{font-size:10px;color:#8bceb9;letter-spacing:.095em;font-weight:750}
body.fm27-midnight .fm27-staff-filter-modal .modal-title{font-size:18px;font-weight:800;margin-top:3px}
body.fm27-midnight .fm27-staff-filter-modal .modal-body{padding:20px;display:grid;gap:17px}
body.fm27-midnight .fm27-staff-filter-field{display:grid;gap:7px}
body.fm27-midnight .fm27-staff-filter-field>label{color:#cfdded;font-size:12px;font-weight:700}
body.fm27-midnight .fm27-staff-filter-input{display:flex;align-items:center;gap:11px}
body.fm27-midnight .fm27-staff-filter-input>span{font-size:11px;color:#9cb8ca;white-space:nowrap}
body.fm27-midnight .fm27-staff-filter-modal .form-control,body.fm27-midnight .fm27-staff-filter-modal .form-select{height:40px;color:#f7faff;background:#142238!important;border:1px solid #506987!important;border-radius:8px;font-size:13px}
body.fm27-midnight .fm27-staff-filter-modal .form-control:focus,body.fm27-midnight .fm27-staff-filter-modal .form-select:focus{border-color:#93d5c6!important;box-shadow:0 0 0 3px #83cabb22!important}
body.fm27-midnight .fm27-staff-filter-modal .modal-footer .btn{font-size:12px;padding:9px 13px;border-radius:7px}
@media(max-width:1100px){
 body.fm27-midnight.fm27-squad-page .fm27-staff-summary{grid-template-columns:minmax(0,1fr) repeat(3,110px) 175px}
 body.fm27-midnight .fm27-staff-scout-grid{grid-template-columns:1fr}
}
@media(max-width:800px){
 body.fm27-midnight.fm27-squad-page .fm27-staff-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.fm27-midnight .fm27-staff-summary-title{grid-column:1/-1;min-height:38px}
 body.fm27-midnight.fm27-squad-page .fm27-staff-summary .fm27-roster-metric{min-height:46px;border-top:1px solid #ffffff25}
 body.fm27-midnight.fm27-squad-page .fm27-staff-summary .fm27-roster-metric:nth-child(2n){border-left:0}
 body.fm27-midnight .fm27-staff-toolbar{align-items:center}
 body.fm27-midnight .fm27-staff-toolbar-actions{margin-left:auto;width:auto;justify-content:flex-end;flex:0 0 auto}
}
@media(max-width:550px){
 body.fm27-midnight .fm27-staff-toolbar{align-items:flex-start;flex-wrap:wrap}
 body.fm27-midnight .fm27-staff-view-tabs{width:100%;flex:1 1 100%;justify-content:flex-start}
 body.fm27-midnight .fm27-staff-toolbar-actions{width:100%;margin-left:0;justify-content:flex-start}
 body.fm27-midnight .fm27-staff-summary-title{padding-left:.4rem}
 body.fm27-midnight .fm27-staff-coach-grid{grid-template-columns:1fr}
 body.fm27-midnight .fm27-staff-coach-grid .fm27-staff-person{border-right:0;border-bottom:1px solid #283953}
 body.fm27-midnight .fm27-staff-coach-grid .fm27-staff-person:last-child{border-bottom:0}
 body.fm27-midnight .fm27-staff-person{padding:12px}
 body.fm27-midnight .fm27-staff-market-heading{align-items:flex-start}
 body.fm27-midnight .fm27-staff-list-context{width:100%}
}
/* Keep the intentionally scrollable market table inside its own panel, not the page. */
body.fm27-midnight .fm27-staff-market-panel .table-responsive{display:block;max-width:100%;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
