
/* BGMS Club/Event finance reporting parity — V78 */
.finance-reporting-parity {
  margin-bottom: 20px;
}

.finance-reporting-parity__header,
.finance-reporting-section__head {
  align-items: flex-start;
  gap: 16px;
}

.finance-reporting-parity__eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.finance-reporting-parity__body {
  display: grid;
  gap: 18px;
}

.finance-reporting-lifecycle,
.finance-reporting-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.finance-reporting-lifecycle > div,
.finance-reporting-kpi {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-subtle, #f8fafc);
}

.finance-reporting-lifecycle span,
.finance-reporting-kpi span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.finance-reporting-lifecycle strong,
.finance-reporting-kpi strong {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-reporting-kpi--credit strong {
  color: #047857;
}

.finance-reporting-kpi--debit strong {
  color: #b91c1c;
}

.finance-reporting-kpi--balance strong {
  color: #1d4ed8;
}

.finance-reporting-section {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface, #fff);
}

.finance-reporting-section__head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 13px;
}

.finance-reporting-section__head h3 {
  margin: 0;
}

.finance-reporting-section__head p,
.finance-reporting-footnote {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.finance-reporting-member-search {
  min-width: min(100%, 320px);
}

.finance-reporting-member-search label,
.finance-reporting-filters label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.finance-reporting-member-search > div {
  display: flex;
  gap: 7px;
}

.finance-reporting-member-search input {
  min-width: 0;
  flex: 1;
}

.finance-reporting-filters {
  display: grid;
  grid-template-columns: 2fr repeat(4, minmax(130px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}

.finance-reporting-filter-actions {
  display: flex;
  gap: 7px;
}

.finance-reporting-table {
  min-width: 960px;
}

.finance-reporting-ledger-table {
  min-width: 1500px;
}

.finance-reporting-muted {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.finance-reporting-reference {
  color: var(--muted);
  font-size: 11px;
}

.finance-reporting-description-cell {
  min-width: 240px;
  max-width: 360px;
}

.finance-reporting-description {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-reporting-reference-heading,
.finance-reporting-reference-cell {
  min-width: 170px;
  max-width: 230px;
}

.finance-reporting-reference-cell {
  direction: ltr;
  unicode-bidi: isolate;
}

.finance-reporting-reference {
  display: block;
  direction: ltr;
  unicode-bidi: isolate;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-reporting-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.finance-reporting-pagination > div {
  display: flex;
  gap: 7px;
}

.finance-reporting-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1100px) {
  .finance-reporting-lifecycle,
  .finance-reporting-kpis,
  .finance-reporting-two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .finance-reporting-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .finance-reporting-lifecycle,
  .finance-reporting-kpis,
  .finance-reporting-two-column,
  .finance-reporting-filters {
    grid-template-columns: 1fr;
  }

  .finance-reporting-section__head,
  .finance-reporting-member-search > div,
  .finance-reporting-filter-actions,
  .finance-reporting-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .finance-reporting-member-search,
  .finance-reporting-member-search .btn,
  .finance-reporting-filter-actions .btn,
  .finance-reporting-pagination .btn {
    width: 100%;
  }
}

/* BGMS V92 R16 - Major Event ledger table content layout */
/* Event-only presentation. Column profile is discovered from the current source. */
[data-finance-reporting-parity][data-finance-domain="event"]
[data-finance-transaction-ledger] {
  min-width: 0 !important;
}

[data-finance-reporting-parity][data-finance-domain="event"]
[data-finance-transaction-ledger] > .table-scroll {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  overscroll-behavior-inline: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

[data-finance-reporting-parity][data-finance-domain="event"]
.finance-reporting-ledger-table {
  width: max-content !important;
  min-width: 1400px !important;
  table-layout: fixed !important;
  border-collapse: separate;
  border-spacing: 0;
}

[data-finance-reporting-parity][data-finance-domain="event"]
.finance-reporting-ledger-table th,
[data-finance-reporting-parity][data-finance-domain="event"]
.finance-reporting-ledger-table td {
  box-sizing: border-box;
  min-width: 0 !important;
  vertical-align: middle !important;
  line-height: 1.65 !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

[data-finance-reporting-parity][data-finance-domain="event"]
.finance-reporting-ledger-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  white-space: nowrap !important;
  text-align: center;
}

[data-finance-reporting-parity][data-finance-domain="event"]
.finance-reporting-description-cell,
[data-finance-reporting-parity][data-finance-domain="event"]
.finance-reporting-reference-cell {
  overflow: hidden !important;
}

[data-finance-reporting-parity][data-finance-domain="event"]
.finance-reporting-description,
[data-finance-reporting-parity][data-finance-domain="event"]
.finance-reporting-reference {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

[data-finance-reporting-parity][data-finance-domain="event"]
.finance-reporting-reference-cell {
  direction: ltr !important;
  text-align: left !important;
  unicode-bidi: plaintext;
}

[data-finance-reporting-parity][data-finance-domain="event"]
.finance-reporting-ledger-table tbody tr {
  min-height: 58px;
}


/* BGMS V92 R15 discovered profile: 9 columns
   1 date | 2 player | 3 type | 4 credit | 5 debit | 6 balance |
   7 description | 8 reference | 9 actor */
[data-finance-reporting-parity][data-finance-domain="event"]
.finance-reporting-ledger-table { min-width: 1400px !important; }

[data-finance-reporting-parity][data-finance-domain="event"]
.finance-reporting-ledger-table :is(th,td):nth-child(1) {
  width: 155px !important;
  white-space: nowrap !important;
}

[data-finance-reporting-parity][data-finance-domain="event"]
.finance-reporting-ledger-table :is(th,td):nth-child(2) {
  width: 180px !important;
}

[data-finance-reporting-parity][data-finance-domain="event"]
.finance-reporting-ledger-table :is(th,td):nth-child(3) {
  width: 185px !important;
}

[data-finance-reporting-parity][data-finance-domain="event"]
.finance-reporting-ledger-table :is(th,td):nth-child(4),
[data-finance-reporting-parity][data-finance-domain="event"]
.finance-reporting-ledger-table :is(th,td):nth-child(5) {
  width: 135px !important;
  white-space: nowrap !important;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

[data-finance-reporting-parity][data-finance-domain="event"]
.finance-reporting-ledger-table :is(th,td):nth-child(6) {
  width: 165px !important;
  white-space: nowrap !important;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

[data-finance-reporting-parity][data-finance-domain="event"]
.finance-reporting-ledger-table :is(th,td):nth-child(7) {
  width: 245px !important;
}

[data-finance-reporting-parity][data-finance-domain="event"]
.finance-reporting-ledger-table :is(th,td):nth-child(8) {
  width: 220px !important;
}

[data-finance-reporting-parity][data-finance-domain="event"]
.finance-reporting-ledger-table :is(th,td):nth-child(9) {
  width: 140px !important;
}

[data-finance-reporting-parity][data-finance-domain="event"]
.finance-reporting-ledger-table td:nth-child(2),
[data-finance-reporting-parity][data-finance-domain="event"]
.finance-reporting-ledger-table td:nth-child(3),
[data-finance-reporting-parity][data-finance-domain="event"]
.finance-reporting-ledger-table td:nth-child(9) {
  white-space: normal !important;
  overflow-wrap: break-word !important;
}

[data-finance-reporting-parity][data-finance-domain="event"]
.finance-reporting-ledger-table td:nth-child(3) strong,
[data-finance-reporting-parity][data-finance-domain="event"]
.finance-reporting-ledger-table td:nth-child(3) .finance-reporting-muted {
  display: block !important;
}

