/* TESSIRVE 5.17.316 — tablas de Liga: columnas dentro de pantalla.
   5.19.428/Core dibuja el + a 28px, pero reglas antiguas reservaban 19-22px.
   El CSS NO cambia datos, títulos, tablas LIVE, descensos, colores ni interacciones.
   Ámbito: sólo tablas compactas de competición y ancho <=720px. */
@media (max-width:720px) {
  body.tessirve-theme.single-ms_competition .ms-app.ms-competition-profile .ms-table-grid {
    box-sizing:border-box!important;
    grid-template-columns:minmax(0,1fr)!important;
    min-width:0!important;
    max-width:100%!important;
  }
  body.tessirve-theme.single-ms_competition .ms-app.ms-competition-profile .ms-table-grid>.ms-standing-card,
  body.tessirve-theme.single-ms_competition .ms-app.ms-competition-profile .ms-standing-compact[data-ms-compact-table],
  body.tessirve-theme.single-ms_competition .ms-app.ms-competition-profile .ms-standing-compact[data-ms-compact-table]>.ms-table-wrap {
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
  }
  /* La tabla nunca debe imponer un ancho mayor al contenedor; sin scroll horizontal. */
  body.tessirve-theme.single-ms_competition .ms-app.ms-competition-profile .ms-standing-compact[data-ms-compact-table]>.ms-table-wrap {
    overflow-x:visible!important;
    overflow-y:visible!important;
    padding-right:2px!important;
  }
  body.tessirve-theme.single-ms_competition .ms-app.ms-competition-profile .ms-standing-compact[data-ms-compact-table]>.ms-table-wrap>table.ms-standing-table:not(.ms-average-table) {
    display:table!important;
    box-sizing:border-box!important;
    table-layout:fixed!important;
    border-collapse:collapse!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
  }
  body.tessirve-theme.single-ms_competition .ms-app.ms-competition-profile .ms-standing-compact[data-ms-compact-table] table.ms-standing-table:not(.ms-average-table) :is(th,td){
    box-sizing:border-box!important;
    padding:6px 1px!important;
    min-width:0!important;
    vertical-align:middle!important;
  }
  body.tessirve-theme.single-ms_competition .ms-app.ms-competition-profile .ms-standing-compact[data-ms-compact-table] table.ms-standing-table:not(.ms-average-table) :is(th,td):first-child {
    width:24px!important;min-width:24px!important;max-width:24px!important;
  }
  body.tessirve-theme.single-ms_competition .ms-app.ms-competition-profile .ms-standing-compact[data-ms-compact-table] table.ms-standing-table:not(.ms-average-table) :is(th,td):nth-child(2) {
    width:auto!important;min-width:0!important;max-width:none!important;
    text-align:left!important;
  }
  body.tessirve-theme.single-ms_competition .ms-app.ms-competition-profile .ms-standing-compact[data-ms-compact-table] table.ms-standing-table:not(.ms-average-table) :is(th,td):nth-child(3) {
    width:32px!important;min-width:32px!important;max-width:32px!important;
  }
  body.tessirve-theme.single-ms_competition .ms-app.ms-competition-profile .ms-standing-compact[data-ms-compact-table] table.ms-standing-table:not(.ms-average-table) :is(th,td):nth-child(n+4):nth-child(-n+7) {
    width:24px!important;min-width:24px!important;max-width:24px!important;
  }
  /* Esas cifras existen dentro del +, nunca en columnas laterales del celular. */
  body.tessirve-theme.single-ms_competition .ms-app.ms-competition-profile .ms-standing-compact[data-ms-compact-table] table.ms-standing-table:not(.ms-average-table) :is(th,td).ms-standing-extra-col {
    display:none!important;
  }
  /* 36px: 28px del botón + 3px de aire en ambos lados. */
  body.tessirve-theme.single-ms_competition .ms-app.ms-competition-profile .ms-standing-compact[data-ms-compact-table] table.ms-standing-table:not(.ms-average-table) :is(th,td).ms-standing-expand-head,
  body.tessirve-theme.single-ms_competition .ms-app.ms-competition-profile .ms-standing-compact[data-ms-compact-table] table.ms-standing-table:not(.ms-average-table) :is(th,td).ms-standing-expand-cell {
    display:table-cell!important;
    box-sizing:border-box!important;
    width:36px!important;min-width:36px!important;max-width:36px!important;
    padding:3px 4px!important;
    text-align:center!important;
    overflow:visible!important;
  }
  body.tessirve-theme.single-ms_competition .ms-app.ms-competition-profile .ms-standing-compact[data-ms-compact-table] .ms-standing-team-layout,
  body.tessirve-theme.single-ms_competition .ms-app.ms-competition-profile .ms-standing-compact[data-ms-compact-table] .ms-standing-team-layout>a,
  body.tessirve-theme.single-ms_competition .ms-app.ms-competition-profile .ms-standing-compact[data-ms-compact-table] .ms-standing-team-copy {
    min-width:0!important;
    max-width:100%!important;
  }
  body.tessirve-theme.single-ms_competition .ms-app.ms-competition-profile .ms-standing-compact[data-ms-compact-table] .ms-standing-team-copy>strong {
    min-width:0!important;
    max-width:100%!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    overflow:hidden!important;
  }
  /* El detalle desplegado continúa en una única fila de ancho 100%. */
  body.tessirve-theme.single-ms_competition .ms-app.ms-competition-profile .ms-standing-compact[data-ms-compact-table] table.ms-standing-table:not(.ms-average-table) tbody tr.ms-standing-detail:not([hidden])>td:first-child {
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    white-space:normal!important;
  }
}
@media (max-width:360px) {
  body.tessirve-theme.single-ms_competition .ms-app.ms-competition-profile .ms-standing-compact[data-ms-compact-table] table.ms-standing-table:not(.ms-average-table) :is(th,td):first-child {width:22px!important;min-width:22px!important;max-width:22px!important;}
  body.tessirve-theme.single-ms_competition .ms-app.ms-competition-profile .ms-standing-compact[data-ms-compact-table] table.ms-standing-table:not(.ms-average-table) :is(th,td):nth-child(3) {width:30px!important;min-width:30px!important;max-width:30px!important;}
  body.tessirve-theme.single-ms_competition .ms-app.ms-competition-profile .ms-standing-compact[data-ms-compact-table] table.ms-standing-table:not(.ms-average-table) :is(th,td):nth-child(n+4):nth-child(-n+7) {width:22px!important;min-width:22px!important;max-width:22px!important;}
  body.tessirve-theme.single-ms_competition .ms-app.ms-competition-profile .ms-standing-compact[data-ms-compact-table] table.ms-standing-table:not(.ms-average-table) :is(th,td).ms-standing-expand-head,
  body.tessirve-theme.single-ms_competition .ms-app.ms-competition-profile .ms-standing-compact[data-ms-compact-table] table.ms-standing-table:not(.ms-average-table) :is(th,td).ms-standing-expand-cell {width:34px!important;min-width:34px!important;max-width:34px!important;padding:3px!important;}
}
