
html:has(#mfc-quote),body:has(#mfc-quote){background:#0b171a!important;margin:0!important}
body:has(#mfc-quote){font:14px/1.5 Arial,Helvetica,sans-serif!important;color:#eefafa!important}
#mfc-quote,#mfc-quote *{box-sizing:border-box}
#mfc-quote{max-width:1150px;margin:0 auto;padding:20px 18px 36px;color:#eefafa;font-family:Arial,Helvetica,sans-serif}
#mfc-quote .mfc-quote-hero{border-radius:18px;background:#172e30;border:1px solid #375357;text-align:center;padding:29px 14px;margin-bottom:18px}
#mfc-quote .mfc-quote-hero span{font-size:12px;letter-spacing:2px;color:#9adbe1;font-weight:800}
#mfc-quote .mfc-quote-hero h1{font-size:38px;line-height:1.1;color:#ffc36a;margin:8px 0}
#mfc-quote .mfc-quote-hero p{color:#d7eced;margin:7px 0}
#mfc-quote .mfc-quote-panel{background:#20383c;border:1px solid #365459;border-radius:15px;padding:15px}
#mfc-quote .mfc-quote-panel h2{font:bold 21px Arial,sans-serif;background:#102629;color:#ffc36a;text-align:center;border-radius:10px;padding:13px;margin:0 0 15px}
#mfc-quote table{border-spacing:0!important;margin:0 auto!important;background:transparent!important;color:#fff}
#mfc-quote table td{background:#193438!important;color:#fff!important;font:13px/1.35 Arial,sans-serif!important;border:1px solid #315357!important;text-align:center!important;padding:9px 7px!important;vertical-align:middle}
#mfc-quote table td font,#mfc-quote table td b,#mfc-quote table td strong{color:inherit!important}
#mfc-quote table.mfc-quote-turno{width:100%!important;max-width:970px!important;margin:0 auto 5px!important}
#mfc-quote table.mfc-quote-turno td{color:#fff!important;font-weight:700!important;font-size:15px!important;background:#173236!important;text-align:center!important}
#mfc-quote table.mfc-quote-data{width:100%!important;max-width:970px!important;table-layout:fixed!important}
#mfc-quote table.mfc-quote-data tr:first-child td{background:#10282c!important;color:#ffc36a!important;font-weight:700!important;padding:12px 5px!important}
#mfc-quote table.mfc-quote-data td:first-child{width:28%!important}
#mfc-quote table.mfc-quote-data tr:nth-child(odd):not(:first-child) td{background:#213e42!important}
#mfc-quote table.mfc-quote-data td:not(:first-child){width:8%!important}
#mfc-quote table.mfc-quote-data .mfc-quote-partita{white-space:nowrap!important;font-weight:700!important}
#mfc-quote table.mfc-quote-data .mfc-quote-partita img{width:24px;height:24px;object-fit:contain;vertical-align:middle;margin:0 7px}
#mfc-quote .casa{color:#6bd29f!important}
#mfc-quote .fuori{color:#dc8094!important}
#mfc-quote table.mfc-quote-data td:not(:first-child) font{display:block;color:#fff!important;font-weight:700;font-size:14px}
#mfc-quote table.mfc-quote-data td:not(:first-child) br{display:block}
#mfc-quote table.mfc-quote-data td:not(:first-child){color:#9be3e1!important}
#mfc-quote input[type=button]{background:#bd293a!important;color:white!important;border:1px solid #d44050!important;border-radius:9px;padding:11px 18px;font:bold 13px Arial,sans-serif!important;cursor:pointer;margin:12px 5px}
#mfc-quote a{color:#8fe6e7!important}
#mfc-quote table:not(.mfc-quote-data):not(.mfc-quote-turno) td{background:transparent!important;border:0!important}
@media(max-width:850px){#mfc-quote{overflow-x:auto}#mfc-quote table.mfc-quote-data{min-width:850px!important}}

/* V2: palette uguale alla schedina, senza alcun fondo chiaro. */
html:has(#mfc-quote), body:has(#mfc-quote) {background:#0b171a!important;background-image:none!important;}
#mfc-quote .mfc-quote-panel{background:#20383c!important;padding:15px!important;}
#mfc-quote .mfc-quote-links{text-align:center;padding:8px 4px 20px!important;color:#eaf4f4!important;font:14px Arial,Helvetica,sans-serif!important;}
#mfc-quote .mfc-quote-links a{color:#8fe6e7!important;}
#mfc-quote .mfc-quote-links font{color:#eaf4f4!important;}
#mfc-quote .mfc-quote-panel>table:first-of-type{width:100%!important;max-width:100%!important;background:transparent!important;border:0!important;}
#mfc-quote .mfc-quote-panel>table:first-of-type>tbody>tr>td{background:#20383c!important;border:0!important;padding:3px!important;}
#mfc-quote table.mfc-quote-turno{border:1px solid #365459!important;margin:8px auto 5px!important;}
#mfc-quote table.mfc-quote-turno td,
#mfc-quote table.mfc-quote-turno td *{background:#173236!important;color:#fff!important;border:0!important;text-align:center!important;font-weight:700!important;}
#mfc-quote table.mfc-quote-data{border:1px solid #365459!important;border-collapse:collapse!important;border-spacing:0!important;max-width:1030px!important;}
#mfc-quote table.mfc-quote-data tr:first-child td,
#mfc-quote table.mfc-quote-data tr:first-child td *{background:#10282c!important;color:#ffc36a!important;font-weight:700!important;text-align:center!important;}
#mfc-quote table.mfc-quote-data tbody tr:nth-child(even) td,
#mfc-quote table.mfc-quote-data tbody tr:nth-child(even) td.totoD,
#mfc-quote table.mfc-quote-data tbody tr:nth-child(even) td.totoP,
#mfc-quote table.mfc-quote-data tbody tr:nth-child(even) td[bgcolor] {background:#213e42!important;background-image:none!important;}
#mfc-quote table.mfc-quote-data tbody tr:nth-child(odd):not(:first-child) td,
#mfc-quote table.mfc-quote-data tbody tr:nth-child(odd):not(:first-child) td.totoD,
#mfc-quote table.mfc-quote-data tbody tr:nth-child(odd):not(:first-child) td.totoP,
#mfc-quote table.mfc-quote-data tbody tr:nth-child(odd):not(:first-child) td[bgcolor] {background:#193438!important;background-image:none!important;}
#mfc-quote table.mfc-quote-data tr:not(:first-child) td{border:0!important;color:#9be3e1!important;padding:12px 5px!important;}
#mfc-quote table.mfc-quote-data tr:not(:first-child) td font,
#mfc-quote table.mfc-quote-data tr:not(:first-child) td font *{color:#fff!important;font-weight:700!important;}
#mfc-quote table.mfc-quote-data tr:not(:first-child) td.mfc-quote-partita,
#mfc-quote table.mfc-quote-data tr:not(:first-child) td.mfc-quote-partita span{font-weight:700!important;}
#mfc-quote table.mfc-quote-data tr:not(:first-child) td.mfc-quote-partita .casa{color:#6bd29f!important;}
#mfc-quote table.mfc-quote-data tr:not(:first-child) td.mfc-quote-partita .fuori{color:#dc8094!important;}
#mfc-quote table.mfc-quote-data td{box-shadow:none!important;background-image:none!important;}

/* V3 fixes: links above title, no white backgrounds. */
#mfc-quote .mfc-quote-panel{display:flex;flex-direction:column}
#mfc-quote .mfc-quote-links{order:-2;text-align:center;padding:2px 4px 12px!important;margin:0 auto!important;color:#eaf4f4!important;font:14px Arial,Helvetica,sans-serif!important}
#mfc-quote .mfc-quote-panel h2{order:-1}
#mfc-quote .mfc-quote-scriptwrap{width:100%;margin:0 auto}
#mfc-quote .mfc-quote-turno, 
#mfc-quote .mfc-quote-turno tbody,
#mfc-quote .mfc-quote-turno tr,
#mfc-quote .mfc-quote-turno td,
#mfc-quote .mfc-quote-turno td *,
#mfc-quote .mfc-quote-turno font{background:#173236!important;color:#fff!important;border-color:#365459!important;box-shadow:none!important}
#mfc-quote .mfc-quote-turno td{padding:10px 8px!important;font-size:15px!important;font-weight:700!important}
#mfc-quote .mfc-quote-data,
#mfc-quote .mfc-quote-data tbody,
#mfc-quote .mfc-quote-data tr,
#mfc-quote .mfc-quote-data td,
#mfc-quote .mfc-quote-data td *,
#mfc-quote .mfc-quote-data font{box-shadow:none!important}
#mfc-quote .mfc-quote-data tr:first-child td,
#mfc-quote .mfc-quote-data tr:first-child td *,
#mfc-quote .mfc-quote-data tr:first-child td font{background:#10282c!important;color:#ffc36a!important}
#mfc-quote .mfc-quote-data tr:not(:first-child) td font{background:transparent!important}

/* V4 cleanup */
#mfc-quote .mfc-quote-scriptwrap{display:block;width:100%;margin:0 auto 8px!important;padding:0!important}
#mfc-quote .mfc-quote-links{display:block!important;order:-5!important;padding:0 4px 14px!important;margin:0 auto 6px!important}
#mfc-quote .mfc-quote-panel h2{display:block!important;order:-4!important}
#mfc-quote .mfc-quote-panel > .mfc-quote-scriptwrap > table,
#mfc-quote .mfc-quote-panel > .mfc-quote-scriptwrap > table td{background:transparent!important;border:0!important;padding:0!important}
#mfc-quote table.mfc-quote-turno td,
#mfc-quote table.mfc-quote-turno td *,
#mfc-quote table.mfc-quote-turno tr,
#mfc-quote table.mfc-quote-turno tbody{background:#173236!important;color:#fff!important}

/* V5: link di navigazione sopra il titolo, senza ordine CSS ambiguo. */
#mfc-quote .mfc-quote-panel{display:flex!important;flex-direction:column!important}
#mfc-quote .mfc-quote-panel>.mfc-quote-links{order:0!important;align-self:stretch!important;margin:0 0 14px!important;padding:4px 0 7px!important;text-align:center!important}
#mfc-quote .mfc-quote-panel>h2{order:1!important;margin:0 0 15px!important}
#mfc-quote .mfc-quote-panel>.mfc-quote-scriptwrap{order:2!important}
#mfc-quote .mfc-quote-panel>table{order:3!important}


/* V6: intestazione identica alla home TotoFantaCalcio V11. */
#mfc-quote {padding:19px 18px 40px!important;font:14px/1.5 Arial,Helvetica,sans-serif!important}
#mfc-quote .mfc-quote-hero {background:#172e30!important;border:1px solid #375357!important;border-radius:19px!important;padding:32px 15px!important;text-align:center!important;margin:0 0 20px!important}
#mfc-quote .mfc-quote-hero span {font:800 12px/1.5 Arial,Helvetica,sans-serif!important;letter-spacing:2.2px!important;text-transform:uppercase!important;color:#9adbe1!important}
#mfc-quote .mfc-quote-hero h1 {font:bold clamp(25px,4vw,40px)/1.1 Arial,Helvetica,sans-serif!important;text-transform:uppercase!important;letter-spacing:normal!important;margin:10px 0!important;color:#ffc36a!important}
#mfc-quote .mfc-quote-hero p {font:14px/1.5 Arial,Helvetica,sans-serif!important;text-transform:none!important;letter-spacing:normal!important;margin:6px 0 0!important;color:#d7eced!important}
#mfc-quote .mfc-quote-panel > h2 {font:bold 20px/1.2 Arial,Helvetica,sans-serif!important;text-transform:none!important;color:#ffc36a!important}


/* V7 — navigazione "Vai a..." identica alla pagina principale TotoFantaCalcio */
#mfc-quote .mfc-quote-links,
#mfc-quote .mfc-quote-links .linkRapidi,
#mfc-quote .mfc-quote-links .linkRapidi p,
#mfc-quote .mfc-quote-links .linkRapidi font {
  font-family:Arial,Helvetica,sans-serif!important;
  font-size:14px!important;
  font-weight:400!important;
  line-height:1.65!important;
  letter-spacing:normal!important;
  text-transform:none!important;
  color:#d6e7e8!important;
}
#mfc-quote .mfc-quote-links .linkRapidi p {
  margin:0!important;
  padding:0!important;
  text-align:center!important;
}
#mfc-quote .mfc-quote-links .linkRapidi a,
#mfc-quote .mfc-quote-links .linkRapidi a:visited {
  font-family:Arial,Helvetica,sans-serif!important;
  font-size:14px!important;
  font-weight:400!important;
  line-height:inherit!important;
  color:#8fe6e7!important;
  text-decoration:underline!important;
  text-underline-offset:2px;
}
#mfc-quote .mfc-quote-links .linkRapidi a:hover {color:#ffc36a!important;}
