/* ===== Sezione ROSA ===== */
#section-rosa .team-overall { margin: 6px 0 12px; }

/* Contenitore scroll con header sticky */
#section-rosa .table-wrap {
  border: 1px solid #243043;
  border-radius: 10px;
  overflow: auto;           /* abilita scroll verticale */
  max-height: 70vh;         /* altezza comoda */
  background: #0b1220;
}

/* Tabella */
#section-rosa .grid-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 920px;         /* evita che si stringa troppo */
}

/* Header sticky */
#section-rosa .grid-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #0a0f1a;
  color: #cbd5e1;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid #243043;
  padding: 10px 12px;
  text-align: left;
  white-space: nowrap;
}
#section-rosa .grid-table th.active-sort { text-decoration: underline; }

/* Celle */
#section-rosa .grid-table tbody td {
  padding: 8px 12px;
  border-bottom: 1px solid #1e293b;
  vertical-align: middle;
}
#section-rosa .grid-table tr:nth-child(even) td { background: #0d1626; }
#section-rosa .grid-table tr:nth-child(odd)  td { background: #0f1a2c; }

/* Colonne */
#section-rosa .main-col { width: 320px; }            /* Nome più largo */
#section-rosa .name-cell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#section-rosa .overall-cell strong { font-weight: 700; }

/* Evidenze */
#section-rosa .cond-low    { color: #ef4444; font-weight: 700; }
#section-rosa .cond-medium { color: #f59e0b; font-weight: 700; }
#section-rosa .cond-high   { color: #10b981; font-weight: 700; }
#section-rosa .infortunato { color: #f59e0b; font-weight: 700; margin-left: 4px; }
#section-rosa .player-injured td { opacity: .95; }

/* Colori trend da allenamento */
.stat-cell.up { color: #10b981; font-weight: 600; }
.stat-cell.down { color: #ef4444; font-weight: 600; }
