/* Compact, readable Counter Sheet fitting all 7 columns and 15+ rows on tablet & desktop. */
html body .report-workbook-dialog .formatted-counter-sheet .excel-sheet-scroll {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 6px !important;
  overflow: auto !important;
  overscroll-behavior: contain;
  background: #f6f7fb !important;
  scrollbar-color: #8793a4 #e8ecf2;
}

html body .report-workbook-dialog .formatted-counter-sheet .excel-sheet-zoom {
  width: 100% !important;
  min-width: 680px !important;
}

html body .report-workbook-dialog .formatted-counter-sheet .excel-sheet-table {
  width: 100% !important;
  min-width: 680px !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: 24px !important;
  padding: 3px 4px !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: 34px !important;
  padding: 6px 10px !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-subtitle-row td {
  height: 24px !important;
  padding: 3px 10px !important;
  background: #f2edfc !important;
  color: #4d328a !important;
  text-align: center !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  white-space: normal !important;
}

html body .report-workbook-dialog .formatted-counter-sheet .counter-tier-spacer td {
  height: 12px !important;
  padding: 0 !important;
  background: #e2e8f0 !important;
  border-top: 2px solid #94a3b8 !important;
  border-bottom: 2px solid #94a3b8 !important;
}

html body .report-workbook-dialog .formatted-counter-sheet .counter-member-heading td {
  height: 32px !important;
  padding: 4px !important;
  text-align: center !important;
  font-size: 10.5px !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: 22px !important;
  padding: 2px !important;
  text-align: center !important;
  font-size: 8.5px !important;
  font-weight: 800 !important;
  letter-spacing: .02em !important;
  white-space: nowrap !important;
}

html body .report-workbook-dialog .formatted-counter-sheet .counter-data-row td:nth-of-type(odd) {
  padding-inline: 2px !important;
  color: #111827 !important;
  text-align: center !important;
  font-size: 9.5px !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) {
  padding-inline: 4px !important;
  text-align: center !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
}

html body .report-workbook-dialog .formatted-counter-sheet .counter-final-balance-row td {
  height: 26px !important;
  padding: 3px 4px !important;
  background: #1f2937 !important;
  color: #fff !important;
  text-align: center !important;
  font-size: 12px !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: 4px !important; }
  html body .report-workbook-dialog .formatted-counter-sheet .counter-member-heading td { font-size: 9.5px !important; }
}
