html.clubStatsDetailOpen,
html.clubStatsDetailOpen body,
body.clubStatsDetailOpen {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

html.peClubWorkspace.clubStatsDetailOpen[data-pe-tab="clubs"] body.mobileClubView #mobileClubContent,
html.clubStatsDetailOpen[data-pe-tab="clubs"] body #app.clubScreen .clubSectionPanels {
  overflow: hidden !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  overscroll-behavior: none !important;
  touch-action: none !important;
}

html[data-pe-tab="clubs"] #app.clubScreen .clubStatsDetailButton {
  box-sizing: border-box;
  appearance: none;
  font: inherit;
}

html[data-pe-tab="clubs"] #app.clubScreen[data-club-windows-pc="true"] .clubPcStatsStatusChips .clubStatsDetailChip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  padding: 5px 2px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #f1f6fa;
  color: #536b80;
  font-size: 9px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
}

html[data-pe-tab="clubs"] #app.clubScreen .clubStatsDetailChip b {
  color: #263b52;
  font-weight: 950;
}

html[data-pe-tab="clubs"] #app.clubScreen .clubStatsDetailTableButton {
  min-width: 34px;
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid #cbd9e6;
  border-radius: 8px;
  background: #f8fbfe;
  color: #263b52;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  cursor: pointer;
}

html[data-pe-tab="clubs"] #app.clubScreen .clubStatsDetailButton:not(:disabled):is(:hover, :focus-visible) {
  border-color: #3498db;
  background: #eaf6ff;
  outline: 2px solid rgba(52, 152, 219, .2);
  outline-offset: 1px;
}

html[data-pe-tab="clubs"] #app.clubScreen .clubStatsDetailButton:disabled {
  cursor: default;
  opacity: .62;
}

body.mobileClubView .mobileClubStatusGrid > .mobileClubStatsDetailButton {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  min-width: 0;
  padding: 7px 2px;
  border: 1px solid #e1e7ee;
  border-radius: 9px;
  background: #f8fafc;
  color: #647487;
  font-size: 9px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
}

body.mobileClubView .mobileClubStatusGrid > .mobileClubStatsDetailButton b {
  color: #263b52;
  font-size: 14px;
  font-weight: 950;
}

body.mobileClubView .mobileClubStatusGrid > .mobileClubStatsDetailButton:not(:disabled):is(:active, :focus-visible) {
  border-color: #3498db;
  background: #eaf6ff;
  outline: 2px solid rgba(52, 152, 219, .2);
  outline-offset: 1px;
}

body.mobileClubView .mobileClubStatusGrid > .mobileClubStatsDetailButton:disabled {
  cursor: default;
  opacity: .62;
}

.clubStatsDetailModal {
  z-index: 100600 !important;
  box-sizing: border-box;
  touch-action: none;
}

.clubStatsDetailCard {
  display: flex;
  flex-direction: column;
  width: min(640px, calc(100vw - 36px));
  max-height: min(84dvh, 760px);
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(15, 23, 42, .28);
  color: #22384d;
  touch-action: auto;
}

.clubStatsDetailCard > header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid #dbe5ee;
  background: #f8fbfe;
}

.clubStatsDetailCard > header > div {
  min-width: 0;
}

.clubStatsDetailCard > header :is(h3, p) {
  margin: 0;
}

.clubStatsDetailCard > header h3 {
  overflow: hidden;
  color: #1d344a;
  font-size: 19px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clubStatsDetailCard > header p {
  margin-top: 4px;
  color: #62778b;
  font-size: 12px;
  font-weight: 800;
}

.clubStatsDetailScroll {
  flex: 1 1 auto;
  min-height: 0;
  padding: 18px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.clubStatsDetailSummary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #cfe1ef;
  border-radius: 12px;
  background: #f2f9fe;
}

.clubStatsDetailSummary span {
  color: #35526b;
  font-weight: 900;
}

.clubStatsDetailSummary strong {
  color: #168ee0;
  font-size: 17px;
  font-weight: 950;
}

.clubStatsDetailList {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.clubStatsDetailList article {
  display: grid;
  grid-template-columns: minmax(150px, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid #dce5ed;
  border-radius: 12px;
  background: #fff;
}

.clubStatsDetailList article > div {
  display: grid;
  gap: 4px;
}

.clubStatsDetailList article strong {
  color: #243b50;
  font-size: 14px;
  font-weight: 950;
}

.clubStatsDetailList article span {
  color: #6b7f91;
  font-size: 12px;
  font-weight: 800;
}

.clubStatsDetailList article p {
  margin: 0;
  padding: 9px 11px;
  border-radius: 9px;
  background: #f5f8fb;
  color: #334b61;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.clubStatsDetailList article p.empty {
  color: #8999a8;
  font-weight: 700;
}

.clubStatsDetailLoading,
.clubStatsDetailEmpty,
.clubStatsDetailError {
  padding: 36px 16px;
  color: #64788b;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.6;
  text-align: center;
}

.clubStatsDetailError {
  color: #c0392b;
}

@media (max-width: 760px) {
  body.mobileClubView .mobileClubStatusGrid > .mobileClubStatsDetailButton {
    font-size: 8px;
    padding: 6px 1px;
  }

  .clubStatsDetailModal {
    align-items: flex-end !important;
    padding: 10px 10px max(10px, env(safe-area-inset-bottom)) !important;
  }

  .clubStatsDetailCard {
    width: 100%;
    max-height: 88dvh;
    border-radius: 18px;
  }

  .clubStatsDetailCard > header {
    gap: 10px;
    padding: 14px;
  }

  .clubStatsDetailCard > header h3 {
    font-size: 16px;
  }

  .clubStatsDetailScroll {
    padding: 14px;
  }

  .clubStatsDetailList article {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    padding: 12px;
  }
}
