/* Compact, readable Counter Sheet with natural horizontal scrolling for players. */
html body .report-workbook-dialog .formatted-counter-sheet .excel-sheet-scroll {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 10px !important;
  overflow: auto !important;
  overscroll-behavior: contain;
  background: #f6f7fb !important;
  scrollbar-color: #8793a4 #e8ecf2;
}

html body .report-workbook-dialog .formatted-counter-sheet .excel-sheet-table {
  width: max-content !important;
  min-width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  table-layout: fixed !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 10px rgb(20 35 60 / 8%) !important;
}

html body .report-workbook-dialog .formatted-counter-sheet .excel-sheet-table td {
  box-sizing: border-box !important;
  min-width: 0 !important;
  height: 30px !important;
  padding: 5px 6px !important;
  border-right: 1px solid #cbd5e1 !important;
  border-bottom: 1px solid #cbd5e1 !important;
  line-height: 1.15 !important;
  font-variant-numeric: tabular-nums;
  vertical-align: middle !important;
}

html body .report-workbook-dialog .formatted-counter-sheet .counter-title-row td {
  height: 44px !important;
  padding: 10px 12px !important;
  background: #352064 !important;
  color: #fff !important;
  text-align: center !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  white-space: normal !important;
}

html body .report-workbook-dialog .formatted-counter-sheet .counter-member-heading td {
  height: 38px !important;
  padding: 6px !important;
  text-align: center !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  line-height: 1.15 !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

html body .report-workbook-dialog .formatted-counter-sheet .counter-subheader-row td {
  height: 27px !important;
  padding: 4px 3px !important;
  text-align: center !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  letter-spacing: .025em !important;
  white-space: nowrap !important;
}

html body .report-workbook-dialog .formatted-counter-sheet .counter-data-row td:nth-of-type(odd) {
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  padding-inline: 2px !important;
  color: #111827 !important;
  text-align: center !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

html body .report-workbook-dialog .formatted-counter-sheet .counter-data-row td:nth-of-type(even) {
  width: 108px !important;
  min-width: 82px !important;
  padding-inline: 5px !important;
  text-align: center !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
}

html body .report-workbook-dialog .formatted-counter-sheet .counter-final-balance-row td {
  height: 32px !important;
  padding: 6px !important;
  background: #1f2937 !important;
  color: #fff !important;
  text-align: center !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
  border-color: #4b5563 !important;
}

@media (max-width: 600px) {
  html body .report-workbook-dialog .formatted-counter-sheet .excel-sheet-scroll { padding: 6px !important; }
  html body .report-workbook-dialog .formatted-counter-sheet .counter-member-heading td { font-size: 10px !important; }
  html body .report-workbook-dialog .formatted-counter-sheet .counter-data-row td:nth-child(even) {
    width: 88px !important;
    min-width: 72px !important;
  }
}
