/* MaxFantacalcio | Invio Formazione - V6
   Modifica solo la grafica dentro il modulo centrale.
   Non altera regole, valori, righe, dati o eventi dei giocatori.
*/
.mfc-if-root {color:#fff!important;font-family:Arial,Helvetica,sans-serif!important}
.mfc-if-root > table,
.mfc-if-root table[bgcolor="#3333ff"],
.mfc-if-root table[bgcolor="#0000CC"],
.mfc-if-root table[bgcolor="#cccccc"],
.mfc-if-root table[bgcolor="#ffffff"],
.mfc-if-root td[bgcolor="#FFFFCC"] {
  background-color:#172e32!important;
  border-color:#36545a!important;
}
.mfc-if-root #frmIF{margin:10px auto 14px!important}
.mfc-if-root #frmIF table{width:auto!important;margin:auto!important}
.mfc-if-root #frmIF td{background:transparent!important;color:#fff!important;padding:6px!important;font:bold 13px Arial,sans-serif!important}
.mfc-if-root select,.mfc-if-root input[type=password],.mfc-if-root textarea {
  color:#fff!important;background:#10272c!important;border:1px solid #658287!important;
  border-radius:6px!important;padding:7px!important;font:13px Arial,sans-serif!important
}
.mfc-if-root input[type=submit],.mfc-if-root input[type=button]{
  background:#b9273a!important;color:#fff!important;border:1px solid #d54350!important;
  border-radius:7px!important;padding:9px 15px!important;font:bold 13px Arial,sans-serif!important;cursor:pointer
}
.mfc-if-root .mfc-if-rosa,.mfc-if-root .mfc-if-formazione{
  border-collapse:collapse!important;border:1px solid #436169!important;background:#182f33!important
}
.mfc-if-root .mfc-if-rosa td,.mfc-if-root .mfc-if-formazione td{
  border:1px solid #456268!important;background:#1b3438!important;
  color:#fff!important;text-align:center;vertical-align:middle!important;
  padding:5px 6px!important;font:12px/1.35 Arial,sans-serif!important
}
.mfc-if-root .mfc-if-rosa tr:nth-child(even)>td,
.mfc-if-root .mfc-if-formazione tr:nth-child(even)>td{background:#244247!important}
/* Oro esclusivamente sulle vere righe di intestazione */
.mfc-if-root .mfc-if-rosa tr:first-child>td,
.mfc-if-root .mfc-if-formazione tr:first-child>td,
.mfc-if-root .mfc-if-formazione tr:nth-child(13)>td{
  color:#ffc36a!important;background:#10282d!important;font-weight:bold!important
}
.mfc-if-root .mfc-if-rosa tr:first-child>td *,
.mfc-if-root .mfc-if-formazione tr:first-child>td *,
.mfc-if-root .mfc-if-formazione tr:nth-child(13)>td *{color:#ffc36a!important}
/* FORZA TUTTI I NOMI, incluso CONTINI, e tutti i numeri: bianco */
.mfc-if-root .mfc-if-rosa tr:has([id^="r_nome"])>td,
.mfc-if-root .mfc-if-rosa tr:has([id^="r_nome"])>td *,
.mfc-if-root .mfc-if-formazione tr:has([id^="f_nome"])>td,
.mfc-if-root .mfc-if-formazione tr:has([id^="f_nome"])>td *{
  color:#fff!important;
}
.mfc-if-root .mfc-if-rosa [id^="r_nome"],
.mfc-if-root .mfc-if-formazione [id^="f_nome"]{color:#fff!important;font-weight:600!important;cursor:pointer!important}
.mfc-if-root .mfc-if-rosa [id^="r_nome"]:hover{color:#ffc36a!important}
.mfc-if-root .mfc-if-rosa td span,.mfc-if-root .mfc-if-formazione td span{
  font-family:Arial,sans-serif!important;font-size:12px!important
}
/* Colonne MVu / FMu: solamente nascoste, dati invariati */
.mfc-if-root .mfc-if-rosa tr>td:nth-child(6),
.mfc-if-root .mfc-if-rosa tr>td:nth-child(7),
.mfc-if-root .mfc-if-rosa tr>th:nth-child(6),
.mfc-if-root .mfc-if-rosa tr>th:nth-child(7){display:none!important}
/* Adatta le larghezze ai contenuti, senza tagliare i nomi */
.mfc-if-root .mfc-if-rosa{
  width:100%!important;table-layout:auto!important;min-width:0!important
}
.mfc-if-root .mfc-if-rosa tr>td:nth-child(1){width:30px!important;min-width:30px!important}
.mfc-if-root .mfc-if-rosa tr>td:nth-child(2){
  width:auto!important;min-width:245px!important;text-align:left!important;white-space:nowrap!important
}
.mfc-if-root .mfc-if-rosa tr>td:nth-child(3),
.mfc-if-root .mfc-if-rosa tr>td:nth-child(4),
.mfc-if-root .mfc-if-rosa tr>td:nth-child(5){
  width:70px!important;min-width:60px!important;white-space:nowrap!important
}
.mfc-if-root .mfc-if-rosa tr>td:nth-child(8){
  width:120px!important;min-width:110px!important;white-space:nowrap!important
}
.mfc-if-root .mfc-if-rosa [id^="r_nome"]{
  display:inline!important;white-space:nowrap!important;
}
.mfc-if-root .mfc-if-formazione img[id^="f_maglia"]{
  width:30px!important;height:30px!important;object-fit:contain!important
}
.mfc-if-root .mfc-if-formazione [id^="f_nome"]{white-space:normal!important}
.mfc-if-root .mfc-if-principale>tbody>tr>td{vertical-align:top!important}
.mfc-if-root #formInvio td{color:#fff!important;font:bold 13px Arial,sans-serif!important}
.mfc-if-root #tempoRimasto{color:#fff!important}
/* Togli soltanto il box visivo non più richiesto */
.mfc-if-root img[src="css2/probabili.png"],
.mfc-if-root iframe[name="probform"]{display:none!important}



/* ===============================
   V8 - Hero iniziale stile Classifiche
   =============================== */
.mfc-if-root{color:#fff!important;font-family:Arial,Helvetica,sans-serif!important}
.mfc-if-root .mfc-if-hero{
  width:min(1120px,96%)!important;
  margin:18px auto 24px!important;
  padding:34px 24px 30px!important;
  border:1px solid #31545b!important;
  border-radius:24px!important;
  background:linear-gradient(90deg,#0d2a2e 0%, #103036 45%, #12353c 100%)!important;
  box-sizing:border-box!important;
  text-align:center!important;
}
.mfc-if-root .mfc-if-hero-kicker{
  color:#85d9e7!important;
  font:700 12px/1.2 Arial,sans-serif!important;
  letter-spacing:4px!important;
  margin:0 0 14px!important;
}
.mfc-if-root .mfc-if-hero-title{
  margin:0!important;
  color:#ffc96a!important;
  font:800 58px/1 Arial,sans-serif!important;
}
.mfc-if-root .mfc-if-hero-subtitle{
  margin:14px 0 0!important;
  color:#ffffff!important;
  font:400 15px/1.4 Arial,sans-serif!important;
}

/* Contenitore pagina come gli altri moduli */
.mfc-if-root #frmIF,
.mfc-if-root .mfc-if-info,
.mfc-if-root .mfc-if-principale,
.mfc-if-root #formInvio{
  width:min(1120px,96%)!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
.mfc-if-root #frmIF{
  margin-top:0!important;
  margin-bottom:10px!important;
  padding:24px 26px 12px!important;
  background:linear-gradient(90deg,#0e2a2f 0%,#12343a 100%)!important;
  border:1px solid #31545b!important;
  border-radius:20px 20px 0 0!important;
  box-sizing:border-box!important;
}
.mfc-if-root .mfc-if-info,
.mfc-if-root .mfc-if-principale,
.mfc-if-root #formInvio{
  background:linear-gradient(90deg,#0e2a2f 0%,#12343a 100%)!important;
  border-left:1px solid #31545b!important;
  border-right:1px solid #31545b!important;
  box-sizing:border-box!important;
}
.mfc-if-root .mfc-if-info{padding:0 26px 14px!important; margin-top:0!important; margin-bottom:0!important;}
.mfc-if-root .mfc-if-principale{padding:0 26px 0!important; margin-top:0!important;}
.mfc-if-root #formInvio{
  padding:16px 26px 26px!important;
  border-bottom:1px solid #31545b!important;
  border-radius:0 0 20px 20px!important;
  margin-top:0!important;
}

/* Barra superiore con filtri */
.mfc-if-root #frmIF table:first-child{width:100%!important; margin:0!important;}
.mfc-if-root #frmIF table:first-child td{padding:0 10px 0 0!important; vertical-align:middle!important; white-space:nowrap!important; color:#fff!important;}
.mfc-if-root #frmIF table:first-child td:first-child,
.mfc-if-root #frmIF table:first-child td:nth-child(2){width:auto!important}
.mfc-if-root #frmIF table:first-child td:last-child{width:1%!important; text-align:left!important}
.mfc-if-root #frmIF .t-xxsB,
.mfc-if-root #frmIF .t-xxs,
.mfc-if-root .mfc-if-info .t-xxsB,
.mfc-if-root .mfc-if-info .t-xxxs{font:600 13px/1.3 Arial,sans-serif!important;color:#fff!important}
.mfc-if-root #frmIF select,
.mfc-if-root #frmIF input[type=submit]{height:38px!important}
.mfc-if-root #frmIF select{min-width:96px!important}
.mfc-if-root #Invia{min-width:72px!important}

/* Competizioni e termine invio */
.mfc-if-root .mfc-if-info{border-collapse:collapse!important; width:calc(min(1120px,96%) - 0px)!important;}
.mfc-if-root .mfc-if-info td{background:transparent!important; border:none!important; padding:4px 6px!important; font:600 13px/1.35 Arial,sans-serif!important; color:#fff!important; vertical-align:middle!important}
.mfc-if-root .mfc-if-info .mfc-if-checkcell{width:28px!important; padding-left:0!important; padding-right:4px!important; text-align:center!important}
.mfc-if-root .mfc-if-info .mfc-if-matchcell{width:auto!important; text-align:left!important; white-space:normal!important; color:#fff!important}
.mfc-if-root .mfc-if-info .mfc-if-deadlinecell{
  width:280px!important;
  min-width:280px!important;
  text-align:center!important;
  color:#ffc96a!important;
  font:700 14px/1.45 Arial,sans-serif!important;
  padding:4px 0!important;
}
.mfc-if-root .mfc-if-info .mfc-if-deadlinecell b,
.mfc-if-root .mfc-if-info .mfc-if-deadlinecell strong,
.mfc-if-root .mfc-if-info .mfc-if-deadlinecell,
.mfc-if-root .mfc-if-info #tempoRimasto{color:#ffc96a!important}
.mfc-if-root .mfc-if-info #tempoRimasto{display:block!important; font:italic 12px/1.45 Arial,sans-serif!important; margin-top:2px!important}
.mfc-if-root .mfc-if-info input[type="checkbox"]{accent-color:#ffc96a!important}

/* Tabelle principali */
.mfc-if-root .mfc-if-principale>tbody>tr>td{padding-top:0!important; vertical-align:top!important}
.mfc-if-root .mfc-if-rosa,.mfc-if-root .mfc-if-formazione{width:100%!important}
.mfc-if-root .mfc-if-rosa tr:nth-child(2)>td{background:#244247!important;color:#fff!important}
.mfc-if-root .mfc-if-rosa td,.mfc-if-root .mfc-if-formazione td{color:#fff!important}
.mfc-if-root .mfc-if-rosa tr:first-child>td,
.mfc-if-root .mfc-if-formazione tr:first-child>td,
.mfc-if-root .mfc-if-formazione tr:nth-child(13)>td{color:#ffc96a!important}
.mfc-if-root .mfc-if-rosa tr:first-child>td *,
.mfc-if-root .mfc-if-formazione tr:first-child>td *,
.mfc-if-root .mfc-if-formazione tr:nth-child(13)>td *{color:#ffc96a!important}

/* Titolari / riserve */
.mfc-if-root .mfc-if-formazione [id^="f_nome"],
.mfc-if-root .mfc-if-formazione [id^="f_voto"],
.mfc-if-root .mfc-if-formazione [id^="f_mod"],
.mfc-if-root .mfc-if-formazione [id^="f_tot"]{color:#fff!important}

/* Responsive */
@media (max-width: 900px){
  .mfc-if-root .mfc-if-hero{padding:26px 16px!important; border-radius:18px!important}
  .mfc-if-root .mfc-if-hero-title{font-size:42px!important}
  .mfc-if-root .mfc-if-hero-subtitle{font-size:14px!important}
  .mfc-if-root #frmIF,
  .mfc-if-root .mfc-if-info,
  .mfc-if-root .mfc-if-principale,
  .mfc-if-root #formInvio{width:96%!important; padding-left:14px!important; padding-right:14px!important}
}



/* === V11: filtri veramente centrati e vicini === */
.mfc-if-root #frmIF{display:flex!important;justify-content:center!important;align-items:center!important;margin-bottom:10px!important}
.mfc-if-root #frmIF>table{display:table!important;width:max-content!important;max-width:100%!important;margin:0 auto!important;table-layout:auto!important}
.mfc-if-root #frmIF>table>tbody>tr{display:flex!important;align-items:center!important;justify-content:center!important;gap:13px!important;flex-wrap:wrap!important}
.mfc-if-root #frmIF>table>tbody>tr>td{display:block!important;flex:0 0 auto!important;width:auto!important;min-width:0!important;padding:0!important;text-align:left!important}
.mfc-if-root #frmIF>table>tbody>tr>td input[type=submit]{margin:0!important;min-width:72px!important}
/* Gli incontri rimangono allineati singolarmente alle spunte */
.mfc-if-root table.mfc-if-info{width:min(1120px,96%)!important;margin:0 auto!important;table-layout:auto!important;border-spacing:0!important;padding:0 22px 0!important}
.mfc-if-root table.mfc-if-info td{padding:5px 6px!important;background:transparent!important;border:none!important;color:#fff!important;font:600 13px Arial,sans-serif!important;vertical-align:middle!important}
.mfc-if-root table.mfc-if-info td.mfc-if-checkcell{width:24px!important;text-align:left!important;padding-right:1px!important}
.mfc-if-root table.mfc-if-info td.mfc-if-matchcell{width:auto!important;text-align:left!important}
/* La cella originale resta nel DOM per il conto alla rovescia, ma viene nascosta. */
.mfc-if-root table.mfc-if-info td.mfc-if-deadline-source{display:none!important}
.mfc-if-root .mfc-if-deadline-mirror{
 width:min(1120px,96%)!important;box-sizing:border-box!important;margin:0 auto 10px!important;
 text-align:center!important;padding:9px 15px 13px!important;
 background:linear-gradient(90deg,#0e2a2f 0%,#12343a 100%)!important;
 border-left:1px solid #31545b!important;border-right:1px solid #31545b!important;
 color:#ffc36a!important;font:700 14px/1.5 Arial,sans-serif!important
}
.mfc-if-root .mfc-if-deadline-mirror *{color:#ffc36a!important}
.mfc-if-root .mfc-if-deadline-mirror span{font:italic 12px/1.5 Arial,sans-serif!important}
/* Sovrascrive le vecchie regole nth-child responsabili dei colori sbagliati. */
.mfc-if-root .mfc-if-rosa tr.mfc-if-row-green>td,
.mfc-if-root .mfc-if-formazione tr.mfc-if-row-green>td{background:#244247!important;color:#fff!important}
.mfc-if-root .mfc-if-rosa tr.mfc-if-row-dark>td,
.mfc-if-root .mfc-if-formazione tr.mfc-if-row-dark>td{background:#1b3438!important;color:#fff!important}
.mfc-if-root .mfc-if-rosa tr.mfc-if-row-green>td *,
.mfc-if-root .mfc-if-rosa tr.mfc-if-row-dark>td *{color:#fff!important}
.mfc-if-root .mfc-if-formazione tr.mfc-if-row-green>td *,
.mfc-if-root .mfc-if-formazione tr.mfc-if-row-dark>td *{color:#fff!important}


/* V13 - tabella formazione, allineamento celle e stemmi Serie A */
.mfc-if-root .mfc-if-formazione td {
  text-align:center!important;
  vertical-align:middle!important;
}
.mfc-if-root .mfc-if-formazione [id^="f_nome"],
.mfc-if-root .mfc-if-formazione [id^="f_ruolo"],
.mfc-if-root .mfc-if-formazione [id^="f_nome"] *,
.mfc-if-root .mfc-if-formazione [id^="f_ruolo"] *{
  display:inline-block!important;
  text-align:center!important;
  vertical-align:middle!important;
}
.mfc-if-root .mfc-if-formazione img[id^="f_maglia"]{
  width:34px!important;
  height:34px!important;
  max-width:34px!important;
  object-fit:contain!important;
  vertical-align:middle!important;
}


/* V14 — centrare tutti i contenuti del tabellone formazione */
.mfc-if-root .mfc-if-formazione tr > td {
  text-align:center!important;
  vertical-align:middle!important;
}
.mfc-if-root .mfc-if-formazione tr > td:last-child,
.mfc-if-root .mfc-if-formazione tr > td:last-child * {
  text-align:center!important;
}
.mfc-if-root .mfc-if-formazione [id^="f_nome"],
.mfc-if-root .mfc-if-formazione [id^="f_nome"] *,
.mfc-if-root .mfc-if-formazione td:last-child [style] {
  float:none!important;
  text-align:center!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
.mfc-if-root .mfc-if-formazione td:last-child > * {
  display:block!important;
  width:100%!important;
  box-sizing:border-box!important;
}
.mfc-if-root .mfc-if-formazione img[id^="f_maglia"] {
  display:block!important;
  margin:2px auto!important;
}

/* V14 — riquadri Classifica e Prossimo turno nello stile delle card Home */
.mfc-if-root .mfc-if-mini-widgets {
  width:min(1070px,96%)!important;
  max-width:1070px!important;
  table-layout:fixed!important;
  border-collapse:separate!important;
  border-spacing:18px 0!important;
  margin:24px auto 30px!important;
  background:transparent!important;
  height:auto!important;
}
.mfc-if-root .mfc-if-mini-widgets > tbody > tr > td {
  width:50%!important;
  vertical-align:top!important;
  text-align:center!important;
  padding:14px 14px 18px!important;
  background:#193237!important;
  border:1px solid #35555b!important;
  border-radius:15px!important;
  background-image:none!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
.mfc-if-root .mfc-if-mini-widgets > tbody > tr > td:first-child::before,
.mfc-if-root .mfc-if-mini-widgets > tbody > tr > td:last-child::before {
  display:block;
  background:#0d252a;
  color:#ffc36a;
  font:bold 18px/1.2 Arial,sans-serif;
  padding:13px 7px;
  margin:0 0 13px;
  border-radius:9px;
  text-align:center;
}
.mfc-if-root .mfc-if-mini-widgets > tbody > tr > td:first-child::before {content:"CLASSIFICA"}
.mfc-if-root .mfc-if-mini-widgets > tbody > tr > td:last-child::before {content:"PROSSIMO TURNO"}
.mfc-if-root .mfc-if-mini-widgets img[src="css2/classifica.png"],
.mfc-if-root .mfc-if-mini-widgets img[src="css2/prossimo.png"] {display:none!important}
.mfc-if-root .mfc-if-mini-widgets table {
  margin:0 auto!important;
  max-width:100%!important;
  width:100%!important;
  border-collapse:collapse!important;
  border:none!important;
  background:#193237!important;
  background-image:none!important;
  color:#fff!important;
}
.mfc-if-root .mfc-if-mini-widgets table td,
.mfc-if-root .mfc-if-mini-widgets table th {
  background:#193237!important;
  background-image:none!important;
  color:#fff!important;
  border-color:#38585f!important;
  padding:6px 7px!important;
  font:600 12px/1.3 Arial,sans-serif!important;
  text-align:center!important;
}
.mfc-if-root .mfc-if-mini-widgets table tr:nth-child(even)>td {background:#244247!important}
.mfc-if-root .mfc-if-mini-widgets table tr:first-child>td,
.mfc-if-root .mfc-if-mini-widgets table tr:first-child>th{
  color:#ffc36a!important;
  background:#0e282d!important;
  font-weight:bold!important;
}
.mfc-if-root .mfc-if-mini-widgets table td img {
  max-width:22px!important;
  max-height:22px!important;
  width:auto!important;
  height:auto!important;
  object-fit:contain!important;
}
@media (max-width:850px){
 .mfc-if-root .mfc-if-mini-widgets {border-spacing:8px 0!important}
 .mfc-if-root .mfc-if-mini-widgets>tbody>tr>td {padding:10px!important}
 .mfc-if-root .mfc-if-mini-widgets table td {padding:4px 3px!important}
}


/* V15: nome di ogni titolare/riserve esattamente al centro della propria cella */
.mfc-if-root .mfc-if-formazione td.mfc-if-cell-nome {
 text-align:center!important; vertical-align:middle!important;
 padding:0 7px!important;
}
.mfc-if-root .mfc-if-formazione td.mfc-if-cell-nome > *{
 display:block!important; width:100%!important; margin:0!important;
 padding:0!important; position:static!important; top:auto!important;
 left:auto!important; bottom:auto!important; right:auto!important;
 transform:none!important; text-align:center!important;
 line-height:1.3!important;
}
.mfc-if-root .mfc-if-formazione td.mfc-if-cell-nome [id^="f_nome"]{
 display:block!important; width:100%!important; margin:0 auto!important;
 padding:0!important; position:static!important; top:auto!important;
 left:auto!important; transform:none!important;
 line-height:1.3!important; text-align:center!important;
}
.mfc-if-root .mfc-if-formazione td.mfc-if-cell-nome nobr{
 display:block!important; white-space:normal!important;
 line-height:1.3!important; margin:0!important; padding:0!important;
}

/* V15: Prossimo turno compatto con stemmi fantasquadre */
.mfc-if-root .mfc-if-mini-widgets > tbody > tr > td.mfc-if-next-card {
 padding-bottom:12px!important;
}
.mfc-if-root .mfc-if-next-card table{
 max-width:100%!important;
 margin:auto!important;
}
.mfc-if-root .mfc-if-next-card table td{
 padding:4px 6px!important;
}
.mfc-if-root .mfc-if-next-card .mfc-if-next-match td{
 padding:2px 4px!important;
}
.mfc-if-root .mfc-if-next-match-content{
 display:flex!important;
 align-items:center!important; justify-content:center!important;
 gap:6px!important; min-height:36px!important;
 width:100%!important;
}
.mfc-if-root .mfc-if-next-team{
 display:flex!important; flex:1 1 0!important; min-width:0!important;
 align-items:center!important; justify-content:center!important;
 gap:6px!important; color:#fff!important;
 font:600 12px/1.1 Arial,sans-serif!important;
}
.mfc-if-root .mfc-if-next-team img{
 display:inline-block; width:26px!important; height:26px!important;
 min-width:26px!important; max-width:26px!important; max-height:26px!important;
 object-fit:contain!important; vertical-align:middle!important;
}
.mfc-if-root .mfc-if-next-team span {color:#fff!important}
.mfc-if-root .mfc-if-next-sep{
 flex:0 0 auto!important; color:#ffc36a!important;
 font-weight:700!important;
}

/* V16: centratura VERA: rimuove il top:14px del tag legacy interno alla cella */
.mfc-if-root .mfc-if-formazione td:has([id^="f_nome"]) {
  text-align:center!important;vertical-align:middle!important;
  padding:0 6px!important;line-height:1.2!important;
}
.mfc-if-root .mfc-if-formazione td:has([id^="f_nome"]) [style*="top:"]{
  position:static!important;top:auto!important;left:auto!important;
  right:auto!important;height:auto!important;width:auto!important;
  transform:none!important;margin:0!important;
  display:block!important;text-align:center!important;
}
.mfc-if-root .mfc-if-formazione td:has([id^="f_nome"]) [id^="f_nome"]{
  display:block!important;position:static!important;
  text-align:center!important;width:100%!important;
  margin:0!important;padding:0!important;line-height:1.2!important;
}
/* Prossimo turno: righe più compatte, stemmi vicino alle squadre */
.mfc-if-root .mfc-if-next-card .mfc-if-next-match-content {min-height:29px!important;gap:4px!important}
.mfc-if-root .mfc-if-next-card .mfc-if-next-team img {width:23px!important;height:23px!important;max-width:23px!important;max-height:23px!important}
.mfc-if-root .mfc-if-next-card .mfc-if-next-match td {padding:2px!important}


/* V17: Numero, stemma e ruolo P/D/C/A centrati anche in verticale.
   Il legacy usa align=center position:relative top:14px; nel contenuto. */
.mfc-if-root .mfc-if-formazione tr:has([id^="f_nome"]) > td:nth-child(1),
.mfc-if-root .mfc-if-formazione tr:has([id^="f_nome"]) > td:nth-child(3){
 text-align:center!important;vertical-align:middle!important;
 padding:0!important;
}
.mfc-if-root .mfc-if-formazione tr:has([id^="f_nome"]) > td:nth-child(1) *,
.mfc-if-root .mfc-if-formazione tr:has([id^="f_nome"]) > td:nth-child(3) * {
 position:static!important;
 top:auto!important;bottom:auto!important;left:auto!important;right:auto!important;
 transform:none!important;
 height:auto!important;width:auto!important;
 margin:0!important;padding:0!important;
 text-align:center!important;vertical-align:middle!important;
 line-height:1.2!important;
}
.mfc-if-root .mfc-if-formazione tr:has([id^="f_nome"]) > td:nth-child(1) span,
.mfc-if-root .mfc-if-formazione tr:has([id^="f_nome"]) > td:nth-child(3) span{
 display:inline-block!important;
}
.mfc-if-root .mfc-if-formazione img[id^="f_maglia"][src*="spacer.gif"]{
 visibility:hidden!important;
}
.mfc-if-root .mfc-if-next-team img.mfc-if-optional-logo{
 width:23px!important;height:23px!important;object-fit:contain!important;
}


/* V18 - Prossimo turno: stemma (solo se disponibile) e nomi affiancati */
.mfc-if-root .mfc-next-fcm{width:100%!important}
.mfc-if-root .mfc-next-fcm .mfc-next-fixture{
  display:flex!important;
  align-items:center!important;justify-content:center!important;
  gap:8px!important;width:100%!important;min-height:32px!important;
}
.mfc-if-root .mfc-next-fcm .mfc-next-home,
.mfc-if-root .mfc-next-fcm .mfc-next-away{
  display:flex!important;align-items:center!important;
  gap:5px!important;min-width:0!important;flex:1 1 0!important;
}
.mfc-if-root .mfc-next-fcm .mfc-next-home{justify-content:flex-end!important;text-align:right!important}
.mfc-if-root .mfc-next-fcm .mfc-next-away{justify-content:flex-start!important;text-align:left!important}
.mfc-if-root .mfc-next-fcm .mfc-next-logo{
  flex:none!important;width:22px!important;height:22px!important;
  max-width:22px!important;object-fit:contain!important;
}
.mfc-if-root .mfc-next-fcm .mfc-next-dash{color:#ffc36a!important;flex:none!important}
/* La vecchia tabella della classifica conserva gli stessi dati e colori */

/* V19 - nessun flash bianco quando FCM aggiorna l'immagine del giocatore */
.mfc-if-root .mfc-if-formazione img[id^="f_maglia"] {
  background:transparent!important;
  background-image:none!important;
}
.mfc-if-root .mfc-if-formazione img[id^="f_maglia"].mfc-if-badge-loading {
  visibility:hidden!important;
}

/* V20 – Stato reale della rosa FCM (nessuna modifica alle funzioni).
   CambiaAttributiGiocatoreRosa() assegna t-xxsI se schierato,
   sia titolare sia riserva. La rimuove quando il giocatore esce. */
.mfc-if-root .mfc-if-rosa tr:has([id^="r_nome"].t-xxsI) > td [id^="r_nome"].t-xxsI,
.mfc-if-root .mfc-if-rosa tr:has([id^="r_nome"].t-xxsI) > td [id^="r_nome"].t-xxsI * {
  color:#FFC56C!important;
  -webkit-text-fill-color:#FFC56C!important;
}
/* Garantisce il ritorno a bianco quando FCM rimuove la classe selezionata. */
.mfc-if-root .mfc-if-rosa tr:has([id^="r_nome"]:not(.t-xxsI)) > td [id^="r_nome"]:not(.t-xxsI) {
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
