/* TESSIRVE 5.19.487: exclusiva de Torneo Proyección y de fichas de Reserva.
   Reutiliza el render de Primera División. NO cambia el resto de las ligas. */
.ms-reserve-table .ms-reserve-team-name{display:inline-flex!important;align-items:baseline;gap:3px;min-width:0;max-width:100%;font-weight:750}
.ms-reserve-table .ms-reserve-base{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ms-reserve-table .ms-reserve-suffix{flex:0 0 auto;color:#8993a3!important;font-size:.92em!important;font-weight:500!important;white-space:nowrap}
html[data-tessirve-color-mode="dark"] .ms-reserve-table .ms-reserve-suffix{color:#a9b3c1!important}
.ms-reserve-coverage-note{font-size:11px;line-height:1.45;color:var(--ms-muted,#687287);padding:8px 10px 2px;margin:0}
.ms-reserve-table .ms-reserve-gf,.ms-reserve-table .ms-reserve-ga,.ms-reserve-table .ms-reserve-dg{white-space:nowrap;text-align:center;font-variant-numeric:tabular-nums}

/* El hero de Reserva es el MISMO componente institucional que el de Primera.
   Sólo cambia el contenido de la segunda línea: "Nombre oficial Reserva".
   Los títulos, estadísticas e historiales continúan siendo de los equipos [R]. */
body .ms-team-profile-reserva .ms-team-hero .ms-team-identity-copy p.ms-reserva-profile-subtitle{
 display:block!important;max-width:100%;margin:4px 0 0!important;padding:0!important;
 border:0!important;border-radius:0!important;box-shadow:none!important;
 background:transparent!important;color:var(--ms-hero-muted,rgba(255,255,255,.78))!important;
 font-size:clamp(.89rem,1.4vw,1.08rem)!important;font-weight:500!important;
 line-height:1.35!important;letter-spacing:0!important;text-align:inherit!important;
}
body .ms-team-profile-reserva .ms-team-hero h1{overflow-wrap:normal;word-break:normal}

/* Tablas de Reserva en PC: misma tipografía, estadísticas completas y sin
   botón expansor innecesario. Se preservan datos cargados/snapshots oficiales. */
@media(min-width:721px){
 body .ms-app.ms-competition-profile .ms-reserve-standings table.ms-reserve-table{min-width:0;width:100%;table-layout:auto}
 body .ms-app.ms-competition-profile .ms-reserve-standings table.ms-reserve-table .ms-standing-expand-cell,
 body .ms-app.ms-competition-profile .ms-reserve-standings table.ms-reserve-table .ms-standing-expand-head{display:none!important}
}

/* Celular:  # | Equipo | PTS | PJ | G | E | P | DG | +
   GF y GC están en el detalle accesible con '+'. No se ocultan PTS/PJ ni G/E/P.
   Todos los !important quedan limitados a la tabla de Reserva. */
@media(max-width:720px){
 body .ms-app.ms-competition-profile .ms-reserve-standings,
 body .ms-app.ms-competition-profile .ms-reserve-standings .ms-table-wrap{
   box-sizing:border-box!important;display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;
   overflow-x:hidden!important;overflow-y:visible!important;
 }
 body .ms-app.ms-competition-profile .ms-reserve-standings table.ms-reserve-table{
   box-sizing:border-box!important;display:table!important;min-width:0!important;max-width:100%!important;
   width:100%!important;table-layout:fixed!important;font-size:10px!important;
 }
 body .ms-app.ms-competition-profile .ms-reserve-standings table.ms-reserve-table :is(th,td){
   box-sizing:border-box!important;padding:7px 1px!important;line-height:1.15!important;
   vertical-align:middle!important;text-align:center!important;font-variant-numeric:tabular-nums;
 }
 body .ms-app.ms-competition-profile .ms-reserve-standings table.ms-reserve-table :is(th,td):nth-child(1){display:table-cell!important;width:24px!important}
 body .ms-app.ms-competition-profile .ms-reserve-standings table.ms-reserve-table :is(th,td):nth-child(2){display:table-cell!important;width:auto!important;text-align:left!important}
 body .ms-app.ms-competition-profile .ms-reserve-standings table.ms-reserve-table :is(th,td):nth-child(3){display:table-cell!important;width:30px!important}
 body .ms-app.ms-competition-profile .ms-reserve-standings table.ms-reserve-table :is(th,td):nth-child(4){display:table-cell!important;width:25px!important}
 body .ms-app.ms-competition-profile .ms-reserve-standings table.ms-reserve-table :is(th,td):nth-child(5),
 body .ms-app.ms-competition-profile .ms-reserve-standings table.ms-reserve-table :is(th,td):nth-child(6),
 body .ms-app.ms-competition-profile .ms-reserve-standings table.ms-reserve-table :is(th,td):nth-child(7){display:table-cell!important;width:22px!important}
 body .ms-app.ms-competition-profile .ms-reserve-standings table.ms-reserve-table :is(th,td):nth-child(8),
 body .ms-app.ms-competition-profile .ms-reserve-standings table.ms-reserve-table :is(th,td):nth-child(9){display:none!important}
 body .ms-app.ms-competition-profile .ms-reserve-standings table.ms-reserve-table :is(th,td):nth-child(10){display:table-cell!important;width:29px!important}
 body .ms-app.ms-competition-profile .ms-reserve-standings table.ms-reserve-table :is(th,td):nth-child(11){display:table-cell!important;width:24px!important}
 body .ms-app.ms-competition-profile .ms-reserve-standings table.ms-reserve-table .ms-standing-team-layout,
 body .ms-app.ms-competition-profile .ms-reserve-standings table.ms-reserve-table .ms-standing-team-layout>a,
 body .ms-app.ms-competition-profile .ms-reserve-standings table.ms-reserve-table .ms-standing-team-copy{
   min-width:0!important;max-width:100%!important;overflow:hidden!important;width:100%!important;
 }
 body .ms-app.ms-competition-profile .ms-reserve-standings table.ms-reserve-table .ms-standing-team-layout>a{
   display:flex!important;align-items:center!important;gap:4px!important;text-align:left!important;
 }
 body .ms-app.ms-competition-profile .ms-reserve-standings table.ms-reserve-table .ms-crest,
 body .ms-app.ms-competition-profile .ms-reserve-standings table.ms-reserve-table .ms-crest-fallback{
   box-sizing:border-box!important;flex:0 0 19px!important;height:19px!important;max-width:19px!important;width:19px!important;
 }
 body .ms-app.ms-competition-profile .ms-reserve-standings table.ms-reserve-table .ms-reserve-team-name{display:inline-flex!important;width:100%!important;gap:2px!important;font-size:10px!important;font-weight:750!important}
 body .ms-app.ms-competition-profile .ms-reserve-standings table.ms-reserve-table .ms-reserve-base{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
 body .ms-app.ms-competition-profile .ms-reserve-standings table.ms-reserve-table .ms-reserve-suffix{font-size:9px!important}
 body .ms-app.ms-competition-profile .ms-reserve-standings table.ms-reserve-table .ms-standing-points{font-weight:900!important}
 body .ms-app.ms-competition-profile .ms-reserve-standings table.ms-reserve-table .ms-standing-expand-head,
 body .ms-app.ms-competition-profile .ms-reserve-standings table.ms-reserve-table .ms-standing-expand-cell{display:table-cell!important}
 body .ms-app.ms-competition-profile .ms-reserve-standings table.ms-reserve-table .ms-standing-expand-cell button{display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:0!important;min-height:24px!important;min-width:22px!important;font-size:15px!important;font-weight:900!important;cursor:pointer!important}
 body .ms-app.ms-competition-profile .ms-reserve-standings table.ms-reserve-table tr.ms-standing-detail[hidden]{display:none!important}
 body .ms-app.ms-competition-profile .ms-reserve-standings table.ms-reserve-table tr.ms-standing-detail:not([hidden]){display:table-row!important}
 body .ms-app.ms-competition-profile .ms-reserve-standings table.ms-reserve-table tr.ms-standing-detail:not([hidden]) td{display:table-cell!important;width:100%!important;text-align:left!important;padding:8px!important}
 body .ms-app.ms-competition-profile .ms-reserve-standings table.ms-reserve-table thead th{font-size:9px!important;font-weight:850!important;white-space:nowrap!important}
 body .ms-team-profile-reserva .ms-team-hero .ms-team-identity-copy p.ms-reserva-profile-subtitle{font-size:.86rem!important}
}

/* 5.19.488: reforzar presentación REAL de tablas en vertical; independiente
   del contenedor de página y compatible con Tablas LIVE (sin tocar su plugin). */
@media (max-width:720px){
 .ms-reserve-standings.ms-standing-compact,.ms-reserve-standings .ms-table-wrap{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow:hidden!important}
 .ms-reserve-standings table.ms-reserve-table{display:table!important;width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed!important;border-collapse:collapse!important;font-size:10px!important}
 .ms-reserve-standings table.ms-reserve-table thead{display:table-header-group!important}
 .ms-reserve-standings table.ms-reserve-table tbody{display:table-row-group!important}
 .ms-reserve-standings table.ms-reserve-table tr.ms-standing-main{display:table-row!important}
 .ms-reserve-standings table.ms-reserve-table tr.ms-standing-detail[hidden]{display:none!important}
 .ms-reserve-standings table.ms-reserve-table th,.ms-reserve-standings table.ms-reserve-table td{padding:7px 1px!important;box-sizing:border-box!important;line-height:1.12!important;text-align:center!important;white-space:nowrap!important}
 .ms-reserve-standings table.ms-reserve-table tr.ms-standing-main :is(td,th):nth-child(1),.ms-reserve-standings table.ms-reserve-table thead th:nth-child(1){display:table-cell!important;width:22px!important}
 .ms-reserve-standings table.ms-reserve-table tr.ms-standing-main :is(td,th):nth-child(2),.ms-reserve-standings table.ms-reserve-table thead th:nth-child(2){display:table-cell!important;width:auto!important;text-align:left!important}
 .ms-reserve-standings table.ms-reserve-table tr.ms-standing-main :is(td,th):nth-child(3),.ms-reserve-standings table.ms-reserve-table thead th:nth-child(3){display:table-cell!important;width:27px!important}
 .ms-reserve-standings table.ms-reserve-table tr.ms-standing-main :is(td,th):nth-child(4),.ms-reserve-standings table.ms-reserve-table thead th:nth-child(4){display:table-cell!important;width:23px!important}
 .ms-reserve-standings table.ms-reserve-table tr.ms-standing-main :is(td,th):nth-child(5),.ms-reserve-standings table.ms-reserve-table tr.ms-standing-main :is(td,th):nth-child(6),.ms-reserve-standings table.ms-reserve-table tr.ms-standing-main :is(td,th):nth-child(7),.ms-reserve-standings table.ms-reserve-table thead th:nth-child(5),.ms-reserve-standings table.ms-reserve-table thead th:nth-child(6),.ms-reserve-standings table.ms-reserve-table thead th:nth-child(7){display:table-cell!important;width:18px!important}
 .ms-reserve-standings table.ms-reserve-table tr.ms-standing-main td:nth-child(8),.ms-reserve-standings table.ms-reserve-table tr.ms-standing-main td:nth-child(9),.ms-reserve-standings table.ms-reserve-table thead th:nth-child(8),.ms-reserve-standings table.ms-reserve-table thead th:nth-child(9){display:none!important}
 .ms-reserve-standings table.ms-reserve-table tr.ms-standing-main td:nth-child(10),.ms-reserve-standings table.ms-reserve-table thead th:nth-child(10){display:table-cell!important;width:25px!important}
 .ms-reserve-standings table.ms-reserve-table tr.ms-standing-main td:nth-child(11),.ms-reserve-standings table.ms-reserve-table thead th:nth-child(11){display:table-cell!important;width:21px!important}
 .ms-reserve-standings table.ms-reserve-table .ms-standing-team-cell .ms-standing-team-layout>a{display:flex!important;align-items:center!important;gap:3px!important;min-width:0!important;width:100%!important;overflow:hidden!important}
 .ms-reserve-standings table.ms-reserve-table .ms-standing-team-copy{display:block!important;min-width:0!important;overflow:hidden!important}
 .ms-reserve-standings table.ms-reserve-table .ms-reserve-team-name{display:flex!important;gap:2px!important;min-width:0!important;overflow:hidden!important;white-space:nowrap!important;font-size:9px!important}
 .ms-reserve-standings table.ms-reserve-table .ms-reserve-base{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
 .ms-reserve-standings table.ms-reserve-table .ms-reserve-suffix{flex:none!important;color:#939ba8!important;font-size:9px!important}
 .ms-reserve-standings table.ms-reserve-table .ms-crest,.ms-reserve-standings table.ms-reserve-table .ms-crest-fallback{width:17px!important;height:17px!important;max-width:17px!important;flex:none!important}
 .ms-reserve-standings table.ms-reserve-table .ms-standing-expand-cell button{display:inline-flex!important;min-width:20px!important;min-height:21px!important;justify-content:center!important;align-items:center!important;padding:0!important}
}
