/* Preview v10: desktop player utility row + Shots/Regional polish. */
@media(min-width:701px){
  #outrightOddsControls.l1ps-with-filter{
    grid-template-columns:minmax(230px,1fr) auto minmax(90px,1fr)!important;
    align-items:center!important;
    gap:8px!important;
  }
  #outrightOddsControls.l1ps-with-filter #l1psSampleFilters{
    grid-column:1;
    justify-self:start;
    display:flex!important;
    width:auto;
    max-width:none;
    margin:0;
    padding:0 2px;
    border:0;
    border-radius:0;
    background:transparent;
    gap:6px;
    font-size:9.5px;
  }
  #outrightOddsControls.l1ps-with-filter #l1psSampleFilters .l1ps-filter-title{font-size:9px;opacity:.72}
  #outrightOddsControls.l1ps-with-filter #l1psSampleFilters input{width:46px;height:23px}
  #outrightOddsControls.l1ps-with-filter #l1psSampleFilters button{height:23px;padding:0 6px}
  #outrightOddsControls.l1ps-with-filter .outright-odds-provider-group{grid-column:2;justify-self:center}
  #outrightOddsControls.l1ps-with-filter .outright-odds-format-group{grid-column:3;justify-self:end}
  #tableContainer > #l1psSampleFilters:not(.l1ps-filter-embedded){margin-left:0;margin-right:auto}

  #handicapTable.l1psh-table{width:min(100%,940px)!important;table-layout:fixed!important}
  #handicapTable.l1psh-table th:nth-child(1),#handicapTable.l1psh-table td:nth-child(1){width:25%!important}
  #handicapTable.l1psh-table th:nth-child(2),#handicapTable.l1psh-table td:nth-child(2){width:22%!important}
  #handicapTable.l1psh-table th:nth-child(3),#handicapTable.l1psh-table td:nth-child(3){width:8%!important}
  #handicapTable.l1psh-table th:nth-child(4),#handicapTable.l1psh-table td:nth-child(4){width:10%!important}
  #handicapTable.l1psh-table th:nth-child(5),#handicapTable.l1psh-table td:nth-child(5){width:9%!important}
  #handicapTable.l1psh-table th:nth-child(6),#handicapTable.l1psh-table td:nth-child(6){width:8%!important}
  #handicapTable.l1psh-table th:nth-child(7),#handicapTable.l1psh-table td:nth-child(7),
  #handicapTable.l1psh-table th:nth-child(8),#handicapTable.l1psh-table td:nth-child(8){width:9%!important}

  table.l1mc-regional-grid-lock{width:100%!important;table-layout:fixed!important}
  table.l1mc-regional-grid-lock th,table.l1mc-regional-grid-lock td{box-sizing:border-box!important}
  table.l1mc-regional-grid-lock th:nth-child(1),table.l1mc-regional-grid-lock td:nth-child(1){width:4.5%!important}
  table.l1mc-regional-grid-lock th:nth-child(2),table.l1mc-regional-grid-lock td:nth-child(2){width:6%!important}
  table.l1mc-regional-grid-lock th:nth-child(3),table.l1mc-regional-grid-lock td:nth-child(3){width:35%!important}
  table.l1mc-regional-grid-lock th:nth-child(4),table.l1mc-regional-grid-lock td:nth-child(4),
  table.l1mc-regional-grid-lock th:nth-child(5),table.l1mc-regional-grid-lock td:nth-child(5),
  table.l1mc-regional-grid-lock th:nth-child(6),table.l1mc-regional-grid-lock td:nth-child(6),
  table.l1mc-regional-grid-lock th:nth-child(7),table.l1mc-regional-grid-lock td:nth-child(7),
  table.l1mc-regional-grid-lock th:nth-child(8),table.l1mc-regional-grid-lock td:nth-child(8),
  table.l1mc-regional-grid-lock th:nth-child(9),table.l1mc-regional-grid-lock td:nth-child(9){width:6%!important}
  table.l1mc-regional-grid-lock th:nth-child(10),table.l1mc-regional-grid-lock td:nth-child(10){width:8%!important}
  table.l1mc-regional-grid-lock th:nth-child(11),table.l1mc-regional-grid-lock td:nth-child(11){width:10.5%!important}
}

@media(max-width:700px){
  #handicapTable.l1psh-table{width:100%!important;table-layout:fixed!important}
  #handicapTable.l1psh-table th:nth-child(1),#handicapTable.l1psh-table td:nth-child(1){width:44%!important}
  #handicapTable.l1psh-table th:nth-child(2),#handicapTable.l1psh-table td:nth-child(2){width:14%!important}
  #handicapTable.l1psh-table th:nth-child(3),#handicapTable.l1psh-table td:nth-child(3){width:12%!important}
  #handicapTable.l1psh-table th:nth-child(4),#handicapTable.l1psh-table td:nth-child(4),
  #handicapTable.l1psh-table th:nth-child(5),#handicapTable.l1psh-table td:nth-child(5){width:15%!important}
}

/* Final alignment polish: card markers + structurally locked Regional grids. */
.l1v11-sr-only{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}
.l1v11-card-head{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:2px;
  min-height:13px;
  vertical-align:middle;
  line-height:1;
  opacity:1!important;
}
.l1v11-card-icon{
  display:inline-block;
  width:8px;
  height:11px;
  border-radius:1px;
  box-shadow:0 0 0 1px rgba(255,255,255,.13) inset;
  flex:0 0 auto;
}
.l1v11-card-icon.is-yellow{background:#f2cd3f}
.l1v11-card-icon.is-red{background:#e24b55}
.l1v11-card-rate,.l1v11-card-prefix{font-size:.92em;font-weight:700;line-height:1;opacity:1!important}

/* Player-table convention: descriptive text reads from the left; measured
   statistics are centred directly under centred headings. */
#handicapTable.top-scorer-table th.top-scorer-player,
#handicapTable.top-scorer-table td.top-scorer-player,
#handicapTable.top-scorer-table th.top-scorer-team,
#handicapTable.top-scorer-table td.top-scorer-team,
#handicapTable.l1pc-table th.l1pc-player,
#handicapTable.l1pc-table td.l1pc-player,
#handicapTable.l1pc-table th.l1pc-team,
#handicapTable.l1pc-table td.l1pc-team{
  text-align:left!important;
}
#handicapTable.top-scorer-table th.top-scorer-num,
#handicapTable.top-scorer-table td.top-scorer-num,
#handicapTable.l1pc-table th.top-scorer-num,
#handicapTable.l1pc-table td.top-scorer-num{
  text-align:center!important;
}

/* DataTables places its sort glyph at the right edge of the TH. Symmetric
   padding keeps the visible heading exactly centred above centred values. */
#handicapTable.top-scorer-table thead th.top-scorer-num,
#handicapTable.l1pc-table thead th.top-scorer-num{
  text-align:center!important;
  padding-left:10px!important;
  padding-right:10px!important;
  background-position:right 2px center!important;
}
#handicapTable.l1pc-table thead th.top-scorer-num .l1v11-card-head{
  margin-left:auto;
  margin-right:auto;
}

/* Legacy pseudo-labels are explicitly disabled now that all desktop card
   columns use the same real icon/header markup. */
@media(min-width:701px){
  #tableContainer.l1pc-cards-mode #handicapTable.l1pc-table thead th:nth-child(9),
  #tableContainer.l1pc-cards-mode #handicapTable.l1pc-table thead th:nth-child(10),
  #tableContainer.l1pc-cards-mode #handicapTable.l1pc-table thead th:nth-child(11),
  #tableContainer.l1pc-cards-mode #handicapTable.l1pc-table thead th:nth-child(12){
    font-size:inherit!important;
  }
  #tableContainer.l1pc-cards-mode #handicapTable.l1pc-table thead th:nth-child(9)::before,
  #tableContainer.l1pc-cards-mode #handicapTable.l1pc-table thead th:nth-child(10)::before,
  #tableContainer.l1pc-cards-mode #handicapTable.l1pc-table thead th:nth-child(11)::before,
  #tableContainer.l1pc-cards-mode #handicapTable.l1pc-table thead th:nth-child(12)::before,
  #tableContainer.l1pc-cards-mode #handicapTable.l1pc-table thead th:nth-child(9)::after,
  #tableContainer.l1pc-cards-mode #handicapTable.l1pc-table thead th:nth-child(10)::after,
  #tableContainer.l1pc-cards-mode #handicapTable.l1pc-table thead th:nth-child(11)::after,
  #tableContainer.l1pc-cards-mode #handicapTable.l1pc-table thead th:nth-child(12)::after{
    content:none!important;
    display:none!important;
  }
}

#regionalsContainer table.l1v11-regional-grid{
  width:100%!important;
  table-layout:fixed!important;
  border-collapse:collapse!important;
}
#regionalsContainer table.l1v11-regional-grid th,
#regionalsContainer table.l1v11-regional-grid td{
  box-sizing:border-box!important;
  min-width:0!important;
  padding-left:5px!important;
  padding-right:5px!important;
}
#regionalsContainer table.l1v11-regional-grid th:nth-child(1),
#regionalsContainer table.l1v11-regional-grid td:nth-child(1){width:4.5%!important;text-align:center!important}
#regionalsContainer table.l1v11-regional-grid th:nth-child(2),
#regionalsContainer table.l1v11-regional-grid td:nth-child(2){width:6%!important;text-align:center!important}
#regionalsContainer table.l1v11-regional-grid th:nth-child(3),
#regionalsContainer table.l1v11-regional-grid td:nth-child(3){width:35%!important;text-align:left!important}
#regionalsContainer table.l1v11-regional-grid th:nth-child(4),
#regionalsContainer table.l1v11-regional-grid td:nth-child(4),
#regionalsContainer table.l1v11-regional-grid th:nth-child(5),
#regionalsContainer table.l1v11-regional-grid td:nth-child(5),
#regionalsContainer table.l1v11-regional-grid th:nth-child(6),
#regionalsContainer table.l1v11-regional-grid td:nth-child(6),
#regionalsContainer table.l1v11-regional-grid th:nth-child(7),
#regionalsContainer table.l1v11-regional-grid td:nth-child(7),
#regionalsContainer table.l1v11-regional-grid th:nth-child(8),
#regionalsContainer table.l1v11-regional-grid td:nth-child(8),
#regionalsContainer table.l1v11-regional-grid th:nth-child(9),
#regionalsContainer table.l1v11-regional-grid td:nth-child(9){width:6%!important;text-align:center!important}
#regionalsContainer table.l1v11-regional-grid th:nth-child(10),
#regionalsContainer table.l1v11-regional-grid td:nth-child(10){width:8%!important;text-align:center!important}
#regionalsContainer table.l1v11-regional-grid th:nth-child(11),
#regionalsContainer table.l1v11-regional-grid td:nth-child(11){width:10.5%!important;text-align:center!important}

#regionalsContainer .dataTables_wrapper,
#regionalsContainer .dataTables_scroll,
#regionalsContainer .dataTables_scrollHead,
#regionalsContainer .dataTables_scrollBody,
#regionalsContainer .dataTables_scrollHeadInner{width:100%!important}
#regionalsContainer .dataTables_scrollHeadInner table.l1v11-regional-grid{width:100%!important}

/* v12: the standard player table uses one fixed physical grid on desktop.
   DataTables' percentage column recipe can therefore drive both header and body
   without the small divider drift visible after several tab transitions. */
@media(min-width:701px){
  #handicapTable.l1ps-sortable-player-stats{
    width:100%!important;
    table-layout:fixed!important;
    border-collapse:collapse!important;
  }
  #handicapTable.l1ps-sortable-player-stats th,
  #handicapTable.l1ps-sortable-player-stats td{
    box-sizing:border-box!important;
    min-width:0!important;
  }
  #handicapTable.l1ps-sortable-player-stats thead th{white-space:nowrap!important}
}

@media(max-width:700px){
  /* v12: reserve a real gutter for the DataTables sort indicator. The table
     columns stay exactly the same width; only heading content moves a few pixels
     away from the arrows so /90 and card icons can never touch them. */
  #handicapTable.top-scorer-table thead th.top-scorer-num,
  #handicapTable.l1pc-table thead th.top-scorer-num{
    padding-left:3px!important;
    padding-right:14px!important;
    background-position:right 3px center!important;
  }
  #handicapTable.l1pc-table thead th.top-scorer-num .l1v11-card-head{
    transform:translateX(-3px);
  }
  #handicapTable.l1psh-table thead th.top-scorer-num{
    text-indent:-3px;
  }
  #handicapTable.top-scorer-table thead th.top-scorer-player,
  #handicapTable.l1pc-table thead th.l1pc-player{
    padding-right:16px!important;
    background-position:right 3px center!important;
  }
  #regionalsContainer table.l1v11-regional-grid th,
  #regionalsContainer table.l1v11-regional-grid td{
    padding-left:4px!important;
    padding-right:4px!important;
  }
}

/* v13: Goals/Assists desktop headers get the same real sorter gutter as the
   compact companion tables. Equal side padding keeps each label centred above
   its values while moving the DataTables indicator away from the text. */
@media(min-width:701px){
  #handicapTable.l1ps-sortable-player-stats thead th.top-scorer-num{
    padding-left:16px!important;
    padding-right:16px!important;
    background-position:right 5px center!important;
  }
  #handicapTable.l1ps-sortable-player-stats thead th.top-scorer-player,
  #handicapTable.l1ps-sortable-player-stats thead th.top-scorer-team{
    padding-right:18px!important;
    background-position:right 5px center!important;
  }
}
