/* Banner  */
#banner { position: relative; background: url("/assets/img/2026/ukopen_banner_2026_crop.jpg"); min-height: 150px; }
#banner .primary-overlay { background: rgba(21, 120, 120, 0.8); position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* #psh2-tbl-body { */

  /* overflow-x: auto; */
  /* overflow-y: auto; */
/* } */

/********************/
/* Golfstats Tables */
/********************/

/* html, body {
  max-width: 100vw !important;
  overflow-x: hidden !important;   prevents page-level horizontal scroll
} */

.golfstat-tbl-wrapper {
  width: 100%;
  max-height: 90dvh;
  min-height: -webkit-fill-available; 
  /* max-width: 100vw; */
  /* overflow-x: auto; */
  /* overflow-x: scroll;       enables horizontal scroll */
  overflow-y: auto;
  /* overflow: scroll; */
  box-sizing: border-box;
  display: block;
  /* white-space: nowrap; */
  /* background-color: white; */
}

.golfstat-tbl {
  margin-bottom: 0px;
  table-layout: auto;
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  /* width: auto; */
  /* overflow-x: hidden; */
  overflow: auto;
  border-spacing: 0;
  background-color: white;
}

.golfstat-tbl thead { 
  /* overflow-x: hidden; */
  background-color: whitesmoke;
  /* z-index: 10; */
}

.golfstat-tbl th {
  border-top: solid 1px;
  border-bottom: solid 1px;
  border-color: darkgray;
  background: whitesmoke;
  /* background-color: whitesmoke; */
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  z-index: 50;
}
.golfstat-tbl th,
.golfstat-tbl td {
  font-size: 75%;
  /* padding: 2px;
  padding-left: 3px;
  padding-right: 3px; */
  /* overflow: hidden; */
  white-space: nowrap;
  /* overflow: hidden; */
  min-width: max-content;
  /* padding: 8px 12px; */
  /* width: 100%; */
  /* overflow-x: auto; */
}

/* table.golfstat-tbl thead tr:nth-child(1) th:nth-child(2)  */
table.golfstat-tbl th.team-name-grp {
  /* top: 1px; */
  left: 0;
  z-index: 60;
  position: sticky;
  position: -webkit-sticky;
  background: whitesmoke;
}
table.golfstat-tbl thead tr:nth-child(2) th {
  top: 28px;
  z-index: 55;
}

/* table.golfstat-tbl thead tr:nth-child(2) th:nth-child(2), */
table.golfstat-tbl thead th.team-name-hdr {
  left:0;
  z-index: 60 !important;
  text-align: left;
  /* z-index: 19; */
  /* padding: 0;
  margin: 0; */
}

table.golfstat-tbl td:nth-child(2) {
  position: sticky;
  position: -webkit-sticky;
  left: 0;
  z-index: 1;
  text-align: left;
  /* background-color: #f4f0ec; */
  /* background-color: lightgray; */
  white-space: nowrap !important;
  /* font-weight: bold; */
}

table.golfstat-tbl tr.player-detail-row td {
  position: sticky;
  position: -webkit-sticky;
  left: 0;
  z-index: 1;
  /* background-color: #f4f0ec; */
  /* background-color: lightgray; */
  white-space: nowrap !important;
  /* font-weight: bold; */
}


table.golfstat-tbl tr:nth-child(even) td:nth-child(1) {
  background-color: white;
}
table.golfstat-tbl tr:nth-child(odd) td:nth-child(1) {
  background-color: #f2f2f2;
}
table.golfstat-tbl .col-grp-end {
  border-right: 1px solid darkgray;
}

.golfstat-tabs {
  /* width: fit-content; */
  width: auto;
  height: 40px;
  /* width: 50%; */
}
.golfstat-tab {
  border-bottom: 2px solid rgb(21, 120, 120);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  background-color: darkgray;
  padding: 2px;
  font-size: 80%;
}
.golfstat-tab-selected {
  border-top: 2px solid rgb(21, 120, 120);
  border-left: 2px solid rgb(21, 120, 120);
  border-right: 2px solid rgb(21, 120, 120);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom: none;
  /* font-size: 80%; */
  font-weight: bold;
  padding: 2px;
}


/* ─── Favorite pin cell ──────────────────────────────────────────────────────
   The star lives directly in the <td class="pin-btn">.
   No inner <button>, so row height is purely driven by the table's line-height.
---------------------------------------------------------------------------- */

td.pin-btn {
    cursor: pointer;
    color: #6c757d;           /* muted grey for unpinned star */
    font-size: 1rem;
    line-height: 1;
    padding: 0 2px;
    text-align: center;
    vertical-align: middle;
    user-select: none;        /* don't highlight the star on fast clicks */
    -webkit-user-select: none;

}

td.pin-btn.pinned {
    color: #198754;           /* Bootstrap success green for pinned star */
}

td.pin-btn:hover {
    color: #198754;
    opacity: 0.75;
}


/* ─── Pinned / main tbody separator ─────────────────────────────────────────
   A thick border on the last row of the pinned tbody creates a clear visual
   break without adding any extra elements or rows to the DOM.
---------------------------------------------------------------------------- */
#psh2-pinned-body tr:last-child td,
#psh-pinned-body tr:last-child td {
    border-bottom: 3px solid #198754;   /* green line matches star color */
}

/* Optional: subtle background tint on all pinned rows so they read as a
   group even when the table is striped. Adjust alpha to taste.            */
#psh2-pinned-body tr td,
#psh-pinned-body tr td {
    /* background-color: rgba(25, 135, 84, 0.07) !important; */
    /* background-color: rgb(25, 135, 84) !important; */
    background-color: rgb(238, 246, 242) !important;
    /* font-weight: bold; */
}

/* Team name formatting */

.team-name-hdr,
.team-name {
  text-align: left;
}

.team-rank {
  font-weight: bold;
  text-align: right;
}

.team-score,
.tb-score {
  font-weight: bold;
  text-align: right;
}

.team-rank-chg {
  text-align: right;
  font-weight: bold;
  white-space: nowrap;
}

.cut-bonus {
  text-align: right;
}

.player-score {
  text-align: right;
  font-weight: bold;
}

.player-thru {
  text-align: right;
}

/* Player name and abbreviation cell formatting  */

.player-name {
  visibility: visible;
  display: inline;
}
.player-abbrev {
  visibility: hidden;
  display: none;
}

.proj-miss-cut {
  color: red;
  font-weight: bold;
}

.cut-not-found {
  /* color: red; */
  color: darkred;
  font-weight: bold;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

/* Settings for smaller screen width */
@media (max-width:800px){
  .player-name-abbrev {
    /* max-width: 60px !important; */
    min-width: max-content;
    overflow: hidden;
    text-overflow: ellipsis;
  }
	.player-name { visibility: hidden; display: none; }
	.player-abbrev { visibility: visible; display: inline; }

  .player-thru {
    /* font-size: 0; */
    max-width: 15px;
    overflow: hidden;
  }
}



td.no-score-cell{
  text-align: right;
  font-weight: bold;
  color: red;
}

td.cut-sub {
  font-weight: bold;
  color: blue;
}

/* TB variant overrides */
/* .player-tb { */
    /* font-style: italic; */
    /* color: #71797E; */
    /* text-decoration: underline; */
/* }  */

.player-tb::after {
    /* content: "*"; */
    /* content: " \f111"; */
    /* content: "\f0a3"; */
    /* content: "\f450"; */
    content: "TB";
    font-family: FontAwesome;
    font-weight: bold;
    /* font-variant-position: super; */
    /* color: #f5a623; */
    vertical-align: middle;
    /* font-size: smaller; Or use a relative size like 0.75em */
    /* font-size: 0.5em; */
    font-size: 0.75em;
    /* color: #198754; */
    /* color: darkgray; */
    /* color: #7393B3; */
    color: #71797E;
    /* color: #FFBF00; */
    /* -webkit-text-stroke: .5px black; */
}