/* FM27 V10.65 — Mannschaft und Kaderplanung, additive presentation only.
   Scoped with classes in layout.twig; no new business interactions or Ajax handlers. */
body.fm27-midnight .fm27-workspace-intro {
  display:flex;align-items:center;justify-content:space-between;gap:1.15rem 1.65rem;
  padding:1.35rem 1.5rem;margin:0 0 1.35rem;
  background:linear-gradient(110deg,#252945 0%,#1d2945 62%,#202544 100%);
  border:1px solid #465074;border-radius:17px;min-width:0;
}
body.fm27-midnight .fm27-workspace-copy {min-width:0;max-width:800px;}
body.fm27-midnight .fm27-workspace-kicker {display:flex;align-items:center;gap:.46rem;
  font-size:.7rem;font-weight:800;letter-spacing:.095em;color:#bca5ff;margin-bottom:.45rem;}
body.fm27-midnight .fm27-workspace-intro h2 {color:#f8f7ff!important;font-size:clamp(1.25rem,1.8vw,1.7rem);font-weight:780;letter-spacing:-.035em;margin:0 0 .45rem;}
body.fm27-midnight .fm27-workspace-intro p {color:#c0cae1;margin:0;font-size:.91rem;line-height:1.55;max-width:65ch;}
body.fm27-midnight .fm27-workspace-actions {display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:.55rem;}
body.fm27-midnight .fm27-workspace-actions .btn,body.fm27-midnight .fm27-workspace-intro > .btn {white-space:nowrap;}
body.fm27-midnight .fm27-workspace-counter {display:flex;flex-direction:column;gap:.1rem;
  min-width:105px;padding:.3rem 1rem;text-align:center;border-right:1px solid #566080;}
body.fm27-midnight .fm27-workspace-counter strong {color:#e8daff;font-size:1.65rem;font-weight:800;line-height:1.15;font-variant-numeric:tabular-nums;}
body.fm27-midnight .fm27-workspace-counter span {font-size:.73rem;color:#b2bbd4;white-space:nowrap;}
/* Kader: preserve table markup, Ajax actions and column order; improve readability. */
body.fm27-squad-page #playerTable {width:100%;margin-top:.5rem;border-collapse:separate;border-spacing:0;}
body.fm27-squad-page #playerTable tbody tr {transition:background-color .15s ease;}
body.fm27-squad-page #playerTable tbody tr:hover {background:#293452;}
body.fm27-squad-page #playerTable td:nth-child(2) a:not(.btn),body.fm27-squad-page #playerTable td:nth-child(2) p>a:first-child {font-weight:720;color:#e6d9ff;}
body.fm27-squad-page #playerTable td:nth-child(2) {min-width:190px;}
body.fm27-squad-page #playerTable td:first-child {width:100px;}
body.fm27-squad-page #playerTable td:first-child p {margin:.24rem 0 0;font-size:.76rem;color:#b8c6df;}
body.fm27-squad-page #playerTable .btn-group {margin:.25rem 0;}
body.fm27-squad-page #playerTable tbody tr.table-danger,body.fm27-squad-page #playerTable tbody tr.table-danger > * {
  background:#472738!important;color:#ffe0e8!important;}
body.fm27-squad-page #playerTable tfoot td {background:#212b44;font-weight:740;}
/* Player profile: real information is never replaced with invented ratings. */
body.fm27-squad-page .fm27-player-hero {display:flex;align-items:center;gap:1.5rem;min-height:190px;
  padding:1.2rem 1.55rem;margin-bottom:1.45rem;border-radius:18px;
  border:1px solid #465376;background:linear-gradient(108deg,#1f2842,#30284b 75%,#25243e);}
body.fm27-squad-page .fm27-player-portrait {height:148px;width:148px;min-width:148px;flex-shrink:0;
  border-radius:17px;display:flex;align-items:center;justify-content:center;
  border:1px solid #556282;overflow:hidden;background:#172035;}
body.fm27-squad-page .fm27-player-portrait img {display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom;}
body.fm27-squad-page .fm27-player-portrait>.bi {color:#a794ca;font-size:4.8rem;}
body.fm27-squad-page .fm27-player-hero-copy h2 {margin:.12rem 0 .8rem;font-size:clamp(1.4rem,2.3vw,2.05rem);line-height:1.2;font-weight:820;letter-spacing:-.045em;}
body.fm27-squad-page .fm27-player-meta {display:flex;gap:.5rem 1rem;flex-wrap:wrap;color:#d9e0f3;font-size:.9rem;}
body.fm27-squad-page .fm27-player-meta>* {display:inline-flex;align-items:center;gap:.45rem;}
body.fm27-squad-page .fm27-player-meta .bi {color:#baa4ff;}
body.fm27-squad-page .fm27-player-status {display:inline-flex;align-items:center;gap:.45rem;margin-top:.7rem;
  border-radius:8px;padding:.25rem .65rem;background:#243b52;color:#b8f0ee;font-size:.78rem;font-weight:650;}
body.fm27-squad-page #playerTab {gap:.25rem;}
body.fm27-squad-page #playerTab .nav-link {padding:.75rem 1.05rem;}
body.fm27-squad-page #playerTab+.tab-content {padding:1rem .25rem!important;}
body.fm27-squad-page #playerTab+.tab-content dt {font-size:.78rem;color:#aebdd7;font-weight:640;}
body.fm27-squad-page #playerTab+.tab-content dd {font-size:.95rem;margin-bottom:.85rem;}
/* Matchday formation page: preserve OWS pitch geometry and all drag/drop selectors. */
body.fm27-squad-page #formationForm {margin-top:.75rem;}
body.fm27-squad-page #formationForm h4 {font-weight:750;font-size:1.1rem;margin-bottom:1.25rem;}
body.fm27-squad-page #formationForm .pitchColumn {padding:1rem;border:1px solid #394762;
  border-radius:14px;background:#151f32;min-width:0;}
body.fm27-squad-page #formationForm #pitch {max-width:100%;}
body.fm27-squad-page #formationForm .playerBlockedLabel {color:#ff9fb0;}
body.fm27-squad-page #formationForm .positionLabel {text-shadow:0 1px 2px #162433a8;}
body.fm27-squad-page #formationForm table {border-radius:9px;}
/* Training and development: use existing forms, no schedule or effect changes. */
body.fm27-squad-page .fm27-training-intro,body.fm27-squad-page .fm27-youth-intro {margin-bottom:1.3rem;}
body.fm27-squad-page .fm27-youth-intro .fm27-workspace-counter {border-right:0;border-left:1px solid #566080;}
body.fm27-squad-page .progress {background:#101b2e;border:1px solid #3b4665;border-radius:8px;overflow:hidden;}
body.fm27-squad-page .progress-bar {background:#8463dc;}
body.fm27-squad-page .badge.bg-danger {background:#a63c58!important;}
/* Recruitment: visual skin only for pre-existing forms, modal filters and controls. */
body.fm27-recruitment-page #market-search {border:1px solid #495778;background:#202940;box-shadow:0 12px 30px #0000001c;}
body.fm27-recruitment-page #market-search .card-body {padding:1.3rem;}
body.fm27-recruitment-page #market-search .card-title {color:#edeeff;margin:0 0 1.15rem;font-weight:780;}
body.fm27-recruitment-page #market-search details {background:#172136;padding:.85rem 1rem;border-radius:10px;border:1px solid #3d4965;}
body.fm27-recruitment-page #market-search summary {color:#dacaff;font-weight:680;cursor:pointer;}
body.fm27-recruitment-page #transferTab {gap:.25rem;margin-bottom:1rem;flex-wrap:wrap;}
body.fm27-recruitment-page #transferTab .nav-link {border-radius:8px;padding:.6rem .9rem;}
body.fm27-recruitment-page .tab-content .table-responsive,body.fm27-recruitment-page #pagecontent>.table-responsive {border-radius:12px;}
body.fm27-recruitment-page .modal-content {border:1px solid #57618b;box-shadow:0 25px 90px #060a14a8;}
body.fm27-recruitment-page .form-range {accent-color:#b193ff;}
body.fm27-recruitment-page .fm27-scout-search-form {border:1px solid #475575;background:#1c2941;border-radius:15px;
  padding:1.15rem 1.25rem;margin:0;gap:.3rem;}
body.fm27-recruitment-page .fm27-scout-search-form .mb-3 {min-width:180px;}
body.fm27-recruitment-page form button[type='submit'] {white-space:normal;}
body.fm27-recruitment-page td form {margin:0 0 .35rem;}
body.fm27-recruitment-page td form .btn {margin:.12rem .14rem .12rem 0;}
/* Important: no selectors for test IDs, hidden inputs, slider events or ajaxLink binding. */
@media(max-width:992px){
 body.fm27-midnight .fm27-workspace-intro {align-items:flex-start;flex-direction:column;}
 body.fm27-midnight .fm27-workspace-actions {justify-content:flex-start;}
 body.fm27-midnight .fm27-workspace-counter {padding:.2rem .85rem .2rem 0;}
}
@media(max-width:650px){
 body.fm27-midnight .fm27-workspace-intro {padding:1.1rem;}
 body.fm27-squad-page .fm27-player-hero {gap:1rem;padding:1rem;align-items:flex-start;}
 body.fm27-squad-page .fm27-player-portrait {width:92px;height:112px;min-width:92px;}
 body.fm27-squad-page .fm27-player-portrait>.bi {font-size:3.1rem;}
 body.fm27-squad-page .fm27-player-meta {font-size:.8rem;gap:.4rem .7rem;}
 body.fm27-squad-page #playerTable td:nth-child(2) {min-width:175px;}
 body.fm27-squad-page #formationForm .pitchColumn {padding:.4rem;}
}
@media(prefers-reduced-motion:reduce){body.fm27-squad-page #playerTable tbody tr {transition:none;}}
