/* Matte Messingschilder: only manager data-table headers. */
:root { --fm-table-identity-shadow: 5px 0 8px -7px rgba(0, 0, 0, 0.9); --fm-table-head: #baa86f; --fm-table-head-active: #d1bf83; --fm-table-head-ink: #142b22; --fm-player-table-head-height: 48px; }
/* One header rhythm for roster, contracts, training and transfer lists. */
body .manager-shell .manager-content table:is(.squad-table, .contracts-overview-table, .training-assignment-table) thead th {
  box-sizing: border-box;
  height: var(--fm-player-table-head-height);
  padding: 0;
  vertical-align: middle;
}
body .manager-shell .manager-content table:is(.squad-table, .contracts-overview-table, .training-assignment-table) thead th :is(.squad-sort-button, .contract-sort-button, .training-table-sort) {
  box-sizing: border-box;
  width: 100%;
  min-height: calc(var(--fm-player-table-head-height) - 2px);
  padding: 5px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
body .manager-shell .manager-content table thead th {
  background: var(--fm-table-head);
  color: var(--fm-table-head-ink);
  font-family: var(--fm-font-body-family, sans-serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .025em;
  line-height: 1.3;
  text-transform: none;
  text-shadow: none;
  border-bottom: 2px solid #756735;
}
body .manager-shell .manager-content table thead th :is(.training-table-sort, .squad-sort-button, .contract-sort-button) {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-shadow: none;
}
/* Sticky identity columns must use the header palette, not the body-cell fill. */
body .manager-shell .manager-content table.contracts-overview-table:not(.transfer-market-overview-table) thead th:nth-child(-n+2),
body .manager-shell .manager-content table.squad-table thead th:nth-child(-n+2),
body .manager-shell .manager-content table.training-assignment-table thead th:nth-child(-n+2) {
  background: var(--fm-table-head);
  color: var(--fm-table-head-ink);
}
body .manager-shell .manager-content table thead th[aria-sort="ascending"],
body .manager-shell .manager-content table thead th[aria-sort="descending"] {
  background: var(--fm-table-head-active);
  box-shadow: inset 0 -3px var(--fm-table-head-ink);
}
body .manager-shell .manager-content table:is(.contracts-overview-table, .squad-table, .training-assignment-table) thead th:nth-child(-n+2):is([aria-sort="ascending"], [aria-sort="descending"]) {
  background: var(--fm-table-head-active);
}
body .manager-shell .manager-content table thead th[aria-sort] :is(.training-table-sort, .squad-sort-button, .contract-sort-button) { color: var(--fm-table-head-ink); }
body .manager-shell .manager-content table thead th :is(.training-table-sort, .squad-sort-button, .contract-sort-button):hover { color: var(--fm-table-head-ink); background: #142b2212; }
body .manager-shell .manager-content table thead th :is(.training-table-sort, .squad-sort-button, .contract-sort-button):focus-visible { outline: 2px solid var(--fm-table-head-ink); outline-offset: -2px; }
body .manager-shell .manager-content table thead th[aria-sort="ascending"] button::after { content: " ↑"; margin-left: 3px; font-weight: 700; }
body .manager-shell .manager-content table thead th[aria-sort="descending"] button::after { content: " ↓"; margin-left: 3px; font-weight: 700; }
@media (max-width: 760px) {
  body .manager-shell .manager-content table thead th { font-size: 11px; }
  body .manager-shell .manager-content table thead th button { white-space: normal; }
}

/* Gemeinsamer dunkler Identitätsbereich mit Schattenkante wie im Training. */
body .manager-shell .manager-content table:is(.squad-table, .contracts-overview-table, .training-assignment-table) tbody td:nth-child(-n+2) {
  background: #1b2d25;
}
body .manager-shell .manager-content table:is(.squad-table, .contracts-overview-table, .training-assignment-table) :is(th, td):nth-child(2) {
  box-shadow: var(--fm-table-identity-shadow);
}
body .manager-shell .manager-content table:is(.squad-table, .contracts-overview-table, .training-assignment-table) thead th:nth-child(2):is([aria-sort="ascending"], [aria-sort="descending"]) {
  box-shadow: inset 0 -3px var(--fm-table-head-ink), var(--fm-table-identity-shadow);
}

/* Separate club identity from league results with the same training shadow. */
body .manager-shell .manager-content .league-table-section table :is(th, td):nth-child(2) {
  box-shadow: var(--fm-table-identity-shadow);
}
/* The player name is the second progress column; the position has its own cell. */
@media (min-width: 601px) {
  body .manager-shell .manager-content .progress-table thead th:nth-child(2),
  body .manager-shell .manager-content .progress-table tbody th {
    box-shadow: var(--fm-table-identity-shadow);
  }
}
