/* Shared competition-panel pilot: scope all rules to the supported league cards. */
#bt-shared-competition-panel {
 box-sizing:border-box;
 width:min(900px,calc(100% - 24px));
 max-width:100%;
 margin:8px auto 24px;
 background:#25263c;color:#f7f8ff;
 border:1px solid #363753;border-radius:9px;overflow:hidden;
}
#bt-shared-competition-panel *{box-sizing:border-box}
#bt-shared-competition-panel .bt-competition-panel-heading{
 background:#2d2e4c;
 padding:12px 14px;
 display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
 gap:7px;min-height:53px;
}
#bt-shared-competition-panel .bt-competition-title{
 font:800 19px/1.25 Arial,sans-serif;
 min-width:0;overflow-wrap:normal;
}
#bt-shared-competition-panel .bt-competition-heading-tools{
 margin-left:auto;display:flex;align-items:center;justify-content:flex-end;min-width:0;
}
#bt-shared-competition-panel .bt-competition-format{
 display:flex;gap:1px;align-items:center;
 padding:2px;background:#404263;
 border:1px solid #575b87;border-radius:16px;
}
#bt-shared-competition-panel .bt-competition-format[hidden]{display:none!important}
#bt-shared-competition-panel .bt-competition-format-option{
 border:0;border-radius:12px;padding:5px 8px;
 color:#d6daed;background:transparent;cursor:pointer;
 font:700 10px/1.15 Arial,sans-serif;
}
#bt-shared-competition-panel .bt-competition-format-option.selected{background:#06b5da;color:#142138;}
#bt-shared-competition-panel .bt-competition-format-option:focus-visible{
 outline:2px solid #b1eaff;outline-offset:2px;
}
#bt-shared-competition-panel .bt-competition-panel-nav{
 display:flex;flex-direction:column;align-items:stretch;
 padding:9px 9px 1px;min-width:0;
}
#bt-shared-competition-panel .bt-competition-panel-nav>.btn-group,
#bt-shared-competition-panel .bt-competition-panel-nav>.bt-nav-group{
 display:flex;align-items:center;justify-content:center;
 flex-wrap:wrap;gap:4px;margin:5px auto;max-width:100%;width:100%;
}
#bt-shared-competition-panel .bt-competition-panel-nav>#bt-odds-market-rail {
 width:100%;max-width:100%;margin:5px auto;
}
#bt-shared-competition-panel .bt-competition-panel-nav [hidden]{display:none!important}
#bt-shared-competition-panel .bt-competition-panel-content{padding:8px 9px 12px;min-width:0;}
#bt-shared-competition-panel #tableContainer{
 width:100%;max-width:none;margin:0;padding:0;min-width:0;
}
#bt-shared-competition-panel #outrightOddsControls{
 display:flex;justify-content:center;min-width:0;max-width:100%;
}
#bt-shared-competition-panel #outrightOddsControls .outright-odds-format-group{
 position:absolute!important;width:1px!important;height:1px!important;
 padding:0!important;margin:0!important;opacity:0!important;
 overflow:hidden!important;pointer-events:none!important;
}
#bt-shared-competition-panel #outrightOddsControls .outright-odds-provider-group{
 max-width:100%;min-width:0;margin-inline:auto;
}
#bt-shared-competition-panel #handicapTable{width:100%!important}
@media(max-width:480px){
 #bt-shared-competition-panel{width:calc(100% - 20px);}
 #bt-shared-competition-panel .bt-competition-panel-heading{padding:10px 11px;}
 #bt-shared-competition-panel .bt-competition-title{font-size:17px;}
 #bt-shared-competition-panel .bt-competition-panel-content{padding-inline:6px;}
 #bt-shared-competition-panel .bt-competition-format-option{font-size:9px;padding:5px 6px;}
}
/* Keep narrow tables horizontally scrollable rather than cropping their last columns. */
#bt-shared-competition-panel #handicapTable_wrapper {overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;}

/* Reusable policy inherited from the signed-off Premier League panel. */
@media (min-width:701px){#bt-shared-competition-panel{overflow-anchor:none;}#bt-shared-competition-panel #tableContainer{margin-inline:auto!important;}}
#bt-shared-competition-panel #regionalsContainer .dataTables_scrollBody table thead{visibility:hidden!important;}


/* Shared mobile Run-in heading polish: visual abbreviations only.
   Keep original accessible sort labels and full source semantics unchanged. */
@media (max-width: 600px) {
  #bt-shared-competition-panel .bt-runin-table [data-bt-runin-mobile-column="opponents-ppg"] {
    font-size: 0 !important;
    letter-spacing: normal;
  }
  #bt-shared-competition-panel .bt-runin-table [data-bt-runin-mobile-column="opponents-ppg"]::after {
    content: "Opp. PPG";
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
  }
  #bt-shared-competition-panel .bt-runin-table .bt-runin-mobile-difference-label {
    font-size: 0 !important;
  }
  #bt-shared-competition-panel .bt-runin-table .bt-runin-mobile-difference-label::after {
    content: "Diff";
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
  }
  #bt-shared-competition-panel .bt-runin-table [data-bt-runin-mobile-column="remaining"] .bt-runin-mobile-sort-button {
    font-size: 0 !important;
  }
  #bt-shared-competition-panel .bt-runin-table [data-bt-runin-mobile-column="remaining"] .bt-runin-mobile-sort-button::before {
    content: "Left";
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
  }
}


/* Desktop handicap tables include 14 columns for PPG; never crop Total/Tot
   behind the panel's overflow border. Preserve compact mobile presentation. */
@media (min-width:1100px) {
  body.bt-handicap-table-active #bt-shared-competition-panel {
    width:min(1060px,calc(100% - 24px));
  }
}
@media (min-width:701px) {
  body.bt-handicap-table-active #bt-shared-competition-panel #tableContainer {
    width:100%!important;
    max-width:100%!important;
    overflow-x:auto!important;
    overscroll-behavior-x:contain;
  }
  body.bt-handicap-table-active #bt-shared-competition-panel #handicapTable_wrapper {
    max-width:100%!important;
    overflow-x:auto!important;
    overscroll-behavior-x:contain;
  }
}


/* Shared desktop Player Stats alignment, all supported competition panels.
   The legacy Player Stats renderer requests a fixed 1120px container, whereas
   the shared competition panel defaults to 900px and clips right-hand columns.
   Expand only the desktop Player Stats panel; centre the existing table.
   Preserve native narrow/mobile horizontal scrolling and all data/renderers. */
@media (min-width: 701px) {
  body.bt-player-screen-active #bt-shared-competition-panel {
    width: min(1160px, calc(100% - 24px));
  }
  body.bt-player-screen-active #bt-shared-competition-panel #tableContainer {
    box-sizing: border-box;
    width: min(1120px, 100%) !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow-x: auto !important;
    overscroll-behavior-x: contain;
  }
  body.bt-player-screen-active #bt-shared-competition-panel #handicapTable_wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
  }
}
