/* SportPress league tables → mismo diseño que Fútbol Uruguayo */

.sdu-phase-panel .sdu-table-wrap .sp-template-league-table {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.sp-template-league-table {
  --sdu-bg: #ffffff;
  --sdu-bg-soft: #f8fafc;
  --sdu-border: #e2e8f0;
  --sdu-text: #0f172a;
  --sdu-muted: #64748b;
  --sdu-radius: 10px;
  --sdu-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);

  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  background: var(--sdu-bg);
  border: 1px solid var(--sdu-border);
  border-radius: var(--sdu-radius);
  box-shadow: var(--sdu-shadow);
  color: var(--sdu-text);
  font-size: 14px;
  line-height: 1.35;
  -webkit-text-size-adjust: 100%;
}

.sp-template-league-table .sp-table-wrapper,
.sp-template-league-table .sp-scrollable-table-wrapper,
.sp-template-league-table .dataTables_wrapper {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: auto !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.sp-template-league-table table.sp-league-table,
.sp-template-league-table table.sp-data-table,
table.sp-league-table {
  display: table !important;
  width: 100% !important;
  min-width: 520px !important;
  margin: 0 !important;
  table-layout: auto !important;
  border-collapse: collapse !important;
  border: 0 !important;
  background: #fff !important;
  font-size: 12px !important;
  color: #0f172a !important;
}

.sp-template-league-table table.dataTable,
table.sp-league-table.dataTable {
  border-bottom: 0 !important;
}

.sp-template-league-table thead th,
table.sp-league-table thead th {
  background: #f8fafc !important;
  background-image: none !important;
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  text-transform: uppercase !important;
  text-align: center !important;
  padding: 8px 10px !important;
  border: 1px solid #ededed !important;
  border-bottom: 1px solid #e2e8f0 !important;
  white-space: nowrap !important;
}

.sp-template-league-table thead th.data-name,
table.sp-league-table thead th.data-name {
  text-align: left !important;
}

.sp-template-league-table tbody td,
table.sp-league-table tbody td {
  background: #fff !important;
  color: #0f172a !important;
  padding: 8px 10px !important;
  border: 1px solid #ededed !important;
  border-bottom: 1px solid #e2e8f0 !important;
  text-align: center !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
}

.sp-template-league-table tbody tr,
.sp-template-league-table tbody tr.odd,
.sp-template-league-table tbody tr.even,
table.sp-league-table tbody tr.odd,
table.sp-league-table tbody tr.even,
table.dataTable.sp-league-table tbody tr.odd,
table.dataTable.sp-league-table tbody tr.even {
  background: #fff !important;
}

.sp-template-league-table .data-rank,
table.sp-league-table .data-rank {
  width: 40px;
}

.sp-template-league-table .data-p,
.sp-template-league-table .data-w,
.sp-template-league-table .data-d,
.sp-template-league-table .data-l,
.sp-template-league-table .data-gd,
.sp-template-league-table .data-f,
.sp-template-league-table .data-a,
.sp-template-league-table .data-pts,
table.sp-league-table .data-p,
table.sp-league-table .data-w,
table.sp-league-table .data-d,
table.sp-league-table .data-l,
table.sp-league-table .data-gd,
table.sp-league-table .data-pts {
  width: 48px;
}

.sp-template-league-table td.data-pts,
table.sp-league-table td.data-pts {
  font-weight: 700 !important;
}

.sp-template-league-table td.data-name,
table.sp-league-table td.data-name,
.sp-template-league-table th.data-name,
table.sp-league-table th.data-name {
  text-align: left !important;
  width: auto;
}

.sp-template-league-table td.data-name.has-logo,
table.sp-league-table td.data-name.has-logo {
  white-space: nowrap !important;
}

.sp-template-league-table td.data-name .team-logo,
table.sp-league-table td.data-name .team-logo {
  display: inline-block !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 6px 0 0 !important;
  padding: 0 !important;
  vertical-align: middle !important;
  float: none !important;
}

.sp-template-league-table td.data-name .team-logo img,
table.sp-league-table td.data-name .team-logo img,
.sp-template-league-table td.data-name img,
table.sp-league-table td.data-name img {
  display: inline-block !important;
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  object-fit: contain !important;
  vertical-align: middle !important;
  float: none !important;
}

.sp-template-league-table .dataTables_filter,
.sp-template-league-table .dataTables_info,
.sp-template-league-table .dataTables_length,
.sp-template-league-table .dataTables_paginate {
  display: none !important;
}

.sp-template-league-table table.dataTable thead .sorting,
.sp-template-league-table table.dataTable thead .sorting_asc,
.sp-template-league-table table.dataTable thead .sorting_desc,
table.sp-league-table.dataTable thead .sorting,
table.sp-league-table.dataTable thead .sorting_asc,
table.sp-league-table.dataTable thead .sorting_desc {
  background-image: none !important;
  cursor: default;
}

.sp-template-league-table table.dataTable thead .sorting:before,
.sp-template-league-table table.dataTable thead .sorting:after,
.sp-template-league-table table.dataTable thead .sorting_asc:before,
.sp-template-league-table table.dataTable thead .sorting_asc:after,
.sp-template-league-table table.dataTable thead .sorting_desc:before,
.sp-template-league-table table.dataTable thead .sorting_desc:after {
  display: none !important;
  content: none !important;
}

@media (max-width: 640px) {
  .sp-template-league-table {
    font-size: 13px;
  }

  .sp-template-league-table table.sp-league-table,
  .sp-template-league-table table.sp-data-table,
  table.sp-league-table {
    min-width: 0 !important;
    table-layout: fixed !important;
  }

  .sp-template-league-table thead th,
  .sp-template-league-table tbody td,
  table.sp-league-table thead th,
  table.sp-league-table tbody td {
    padding: 6px 2px !important;
    font-size: 11px !important;
    overflow: hidden;
  }

  .sp-template-league-table thead th.data-name,
  .sp-template-league-table tbody td.data-name,
  table.sp-league-table thead th.data-name,
  table.sp-league-table tbody td.data-name {
    padding-left: 6px !important;
    padding-right: 4px !important;
  }

  .sp-template-league-table .data-rank,
  table.sp-league-table .data-rank {
    width: 28px;
  }

  .sp-template-league-table .data-p,
  .sp-template-league-table .data-w,
  .sp-template-league-table .data-d,
  .sp-template-league-table .data-l,
  .sp-template-league-table .data-gd,
  .sp-template-league-table .data-pts,
  table.sp-league-table .data-p,
  table.sp-league-table .data-w,
  table.sp-league-table .data-d,
  table.sp-league-table .data-l,
  table.sp-league-table .data-gd,
  table.sp-league-table .data-pts {
    width: 30px;
  }
}

/* SportPress goleadores / lista de jugadores → mismo diseño de tabla, sin tocar puestos */

.sp-template-player-list {
  --sdu-bg: #ffffff;
  --sdu-bg-soft: #f8fafc;
  --sdu-border: #e2e8f0;
  --sdu-text: #0f172a;
  --sdu-muted: #64748b;
  --sdu-radius: 10px;
  --sdu-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);

  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  background: var(--sdu-bg);
  border: 1px solid var(--sdu-border);
  border-radius: var(--sdu-radius);
  box-shadow: var(--sdu-shadow);
  color: var(--sdu-text);
  font-size: 14px;
  line-height: 1.35;
  -webkit-text-size-adjust: 100%;
}

.sp-template-player-list .sp-table-caption {
  margin: 0;
  padding: 10px 12px 0;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.sp-template-player-list .sp-table-wrapper,
.sp-template-player-list .sp-scrollable-table-wrapper,
.sp-template-player-list .dataTables_wrapper {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: auto !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.sp-template-player-list table.sp-player-list,
.sp-template-player-list table.sp-data-table,
table.sp-player-list {
  display: table !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  table-layout: auto !important;
  border-collapse: collapse !important;
  border: 0 !important;
  background: #fff !important;
  font-size: 12px !important;
  color: #0f172a !important;
}

.sp-template-player-list table.dataTable,
table.sp-player-list.dataTable {
  border-bottom: 0 !important;
}

.sp-template-player-list thead th,
table.sp-player-list thead th {
  background: #f8fafc !important;
  background-image: none !important;
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  text-transform: uppercase !important;
  text-align: center !important;
  padding: 8px 10px !important;
  border: 1px solid #ededed !important;
  border-bottom: 1px solid #e2e8f0 !important;
  white-space: nowrap !important;
}

.sp-template-player-list thead th.data-name,
.sp-template-player-list thead th.data-team,
table.sp-player-list thead th.data-name,
table.sp-player-list thead th.data-team {
  text-align: left !important;
}

.sp-template-player-list tbody td,
table.sp-player-list tbody td {
  background: #fff !important;
  color: #0f172a !important;
  padding: 8px 10px !important;
  border: 1px solid #ededed !important;
  border-bottom: 1px solid #e2e8f0 !important;
  text-align: center !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
}

.sp-template-player-list tbody tr,
.sp-template-player-list tbody tr.odd,
.sp-template-player-list tbody tr.even,
table.sp-player-list tbody tr.odd,
table.sp-player-list tbody tr.even,
table.dataTable.sp-player-list tbody tr.odd,
table.dataTable.sp-player-list tbody tr.even {
  background: #fff !important;
}

.sp-template-player-list .data-rank,
table.sp-player-list .data-rank {
  width: 40px;
}

.sp-template-player-list td.data-name,
.sp-template-player-list th.data-name,
.sp-template-player-list td.data-team,
.sp-template-player-list th.data-team,
table.sp-player-list td.data-name,
table.sp-player-list th.data-name,
table.sp-player-list td.data-team,
table.sp-player-list th.data-team {
  text-align: left !important;
  width: auto;
}

.sp-template-player-list td.data-name.has-photo,
.sp-template-player-list td.data-name.has-logo,
.sp-template-player-list td.data-team.has-logo,
table.sp-player-list td.data-name.has-photo,
table.sp-player-list td.data-name.has-logo,
table.sp-player-list td.data-team.has-logo {
  white-space: nowrap !important;
}

.sp-template-player-list td.data-name .player-photo,
.sp-template-player-list td.data-name .team-logo,
.sp-template-player-list td.data-team .team-logo,
table.sp-player-list td.data-name .player-photo,
table.sp-player-list td.data-name .team-logo,
table.sp-player-list td.data-team .team-logo {
  display: inline-block !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 6px 0 0 !important;
  padding: 0 !important;
  vertical-align: middle !important;
  float: none !important;
}

.sp-template-player-list td.data-name img,
.sp-template-player-list td.data-team img,
table.sp-player-list td.data-name img,
table.sp-player-list td.data-team img {
  display: inline-block !important;
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  object-fit: contain !important;
  vertical-align: middle !important;
  float: none !important;
}

.sp-template-player-list td.data-name a,
.sp-template-player-list td.data-team a,
table.sp-player-list td.data-name a,
table.sp-player-list td.data-team a {
  color: #0f172a !important;
  text-decoration: none !important;
  font-weight: 600;
}

.sp-template-player-list .dataTables_filter,
.sp-template-player-list .dataTables_info,
.sp-template-player-list .dataTables_length,
.sp-template-player-list .dataTables_paginate {
  display: none !important;
}

.sp-template-player-list table.dataTable thead .sorting,
.sp-template-player-list table.dataTable thead .sorting_asc,
.sp-template-player-list table.dataTable thead .sorting_desc,
table.sp-player-list.dataTable thead .sorting,
table.sp-player-list.dataTable thead .sorting_asc,
table.sp-player-list.dataTable thead .sorting_desc {
  background-image: none !important;
  cursor: default;
}

.sp-template-player-list table.dataTable thead .sorting:before,
.sp-template-player-list table.dataTable thead .sorting:after,
.sp-template-player-list table.dataTable thead .sorting_asc:before,
.sp-template-player-list table.dataTable thead .sorting_asc:after,
.sp-template-player-list table.dataTable thead .sorting_desc:before,
.sp-template-player-list table.dataTable thead .sorting_desc:after {
  display: none !important;
  content: none !important;
}

@media (max-width: 640px) {
  .sp-template-player-list {
    font-size: 13px;
  }

  .sp-template-player-list table.sp-player-list,
  .sp-template-player-list table.sp-data-table,
  table.sp-player-list {
    min-width: 0 !important;
    table-layout: fixed !important;
  }

  .sp-template-player-list thead th,
  .sp-template-player-list tbody td,
  table.sp-player-list thead th,
  table.sp-player-list tbody td {
    padding: 6px 2px !important;
    font-size: 11px !important;
    overflow: hidden;
  }

  .sp-template-player-list thead th.data-name,
  .sp-template-player-list tbody td.data-name,
  .sp-template-player-list thead th.data-team,
  .sp-template-player-list tbody td.data-team,
  table.sp-player-list thead th.data-name,
  table.sp-player-list tbody td.data-name,
  table.sp-player-list thead th.data-team,
  table.sp-player-list tbody td.data-team {
    padding-left: 6px !important;
    padding-right: 4px !important;
  }

  .sp-template-player-list .data-rank,
  table.sp-player-list .data-rank {
    width: 28px;
  }
}

/* SportPress eventos → mismas tarjetas que Fútbol Uruguayo */

.sdu-sp-event-blocks,
.sp-template-event-blocks.sdu-sp-event-blocks,
.sp-template-event-list.sdu-sp-event-blocks {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.sdu-sp-events {
  width: 100%;
  max-width: 100%;
}

.sdu-sp-events-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.sdu-sp-events-all {
  margin-top: 10px;
  padding-top: 0;
  border-top: 0;
}

.sdu-sp-events .sdu-link,
.sdu-sp-detail .sdu-link,
.sdu-sp-event-blocks .sdu-link {
  color: #2196f3 !important;
  text-decoration: none !important;
  font-weight: 700 !important;
}

.sdu-sp-event-blocks .sp-table-caption {
  display: none;
}

.sdu-sp-detail,
.sdu-sp-detail .sdu-root {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.single-sp_event .sp-template-event-logos,
.single-sp_event .sp-template-event-results,
.single-sp_event .sp-template-event-details,
.single-sp_event .sp-template-event-venue,
.single-sp_event .sp-template-event-performance,
.single-sp_event .sp-template-event-staff,
.single-sp_event .sp-event-logos,
.single-sp_event .sp-event-results,
.single-sp_event .sp-event-details,
.single-sp_event .sp-event-venue,
.single-sp_event table.sp-event-performance,
.single-sp_event .sdp-wrap {
  display: none !important;
}
