/* R8: matching filter panels; compact, equal tournament cards; wider ledger total. */
/* Shared desktop rails: the content column consumes all recovered space. */
@media(min-width:901px) {
  #workspace#workspace#workspace {grid-template-columns:190px minmax(0,1fr)!important;}
  #workspace#workspace#workspace.br1038-right-menu {grid-template-columns:190px minmax(0,1fr) 190px!important;}
}
@media(min-width:721px) and (max-width:900px) {
  #workspace#workspace#workspace {grid-template-columns:150px minmax(0,1fr)!important;}
  #workspace#workspace#workspace.br1038-right-menu {grid-template-columns:150px minmax(0,1fr) 150px!important;}
}
#workspace#workspace#workspace>.content {
  min-width:0!important; width:auto!important; max-width:none!important;
  margin-inline:0!important; padding-inline:12px!important; box-sizing:border-box!important;
}
#workspace#workspace#workspace>aside:first-child {
  min-width:0!important; width:auto!important; max-width:none!important;
  padding-inline:10px!important; box-sizing:border-box!important;
}
#workspace#workspace#workspace>.content>:is(.heading,#br1050-controls,#filters,#financialSummary,#cards,#body) {
  min-width:0!important; box-sizing:border-box!important;
}
#workspace#workspace#workspace#workspace:is([data-br283-view="tournamentSettlement"],[data-br283-view="ledger"],[data-br283-view="memberFinance"]) #filters {
  align-items:stretch!important;
}
#workspace#workspace#workspace#workspace:is([data-br283-view="tournamentSettlement"],[data-br283-view="ledger"],[data-br283-view="memberFinance"]) #filters>:is(.br-organization-picker,.br-period-host) {
  align-self:stretch!important; height:auto!important;
}
#workspace#workspace#workspace#workspace[data-br283-view="tournamentSettlement"] #cards:has(>.card:nth-child(7):last-child) {
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  grid-auto-rows:minmax(90px,1fr)!important;
}
#workspace#workspace#workspace#workspace[data-br283-view="tournamentSettlement"] #cards:has(>.card:nth-child(7):last-child)>.card {
  grid-column:auto!important;
}
#workspace#workspace#workspace#workspace[data-br283-view="ledger"] #cards:has(>.card:nth-child(4):last-child) {
  grid-template-columns:repeat(3,minmax(0,1fr)) minmax(0,1.4fr)!important;
}
/* Keep period and settlement state on one line; preserve extra warning lines. */
#workspace#workspace#workspace#workspace[data-br283-view="memberFinance"] #body>.note:has(>p:last-child.muted)>p {
  margin:0!important; line-height:1.5!important;
}
#workspace#workspace#workspace#workspace[data-br283-view="memberFinance"] #body>.note:has(>p:last-child.muted)>p:nth-child(-n+2) {
  display:inline!important;
}
#workspace#workspace#workspace#workspace[data-br283-view="memberFinance"] #body>.note:has(>p:last-child.muted)>p:first-child::after {
  content:" · ";
}
#workspace#workspace#workspace#workspace[data-br283-view="memberFinance"] #body>.note:has(>p:last-child.muted)>p:nth-child(n+3) {
  display:block!important; margin-top:8px!important;
}
/* The 15-column member summary has its own scroll surface and readable cells. */
#workspace#workspace#workspace#workspace[data-br283-view="memberFinance"] #body>.table-wrap:has(>table>thead>tr>th:nth-child(15):last-child) {
  width:100%!important; max-width:100%!important; min-width:0!important;
  overflow-x:auto!important; overflow-y:auto!important; box-sizing:border-box!important;
}
#workspace#workspace#workspace#workspace[data-br283-view="memberFinance"] #body>.table-wrap>table:has(>thead>tr>th:nth-child(15):last-child) {
  table-layout:auto!important; width:100%!important; min-width:1480px!important;
  max-width:none!important; zoom:1!important;
}
#workspace#workspace#workspace#workspace[data-br283-view="memberFinance"] #body>.table-wrap>table:has(>thead>tr>th:nth-child(15):last-child) :is(th,td) {
  width:auto!important; min-width:0!important; max-width:none!important;
  white-space:nowrap!important; overflow-wrap:normal!important; word-break:keep-all!important;
  font-size:12px!important; line-height:1.45!important; padding:9px 10px!important;
}
#workspace#workspace#workspace#workspace[data-br283-view="memberFinance"] #body>.table-wrap>table:has(>thead>tr>th:nth-child(15):last-child) :is(th,td):nth-child(-n+3) {
  min-width:112px!important; text-align:left!important;
}
#workspace#workspace#workspace#workspace[data-br283-view="memberFinance"] #body>.table-wrap>table:has(>thead>tr>th:nth-child(15):last-child) td:nth-child(n+4):nth-child(-n+14) {
  text-align:right!important; font-variant-numeric:tabular-nums;
}
#workspace#workspace#workspace#workspace[data-br283-view="memberFinance"] #body>.table-wrap>table:has(>thead>tr>th:nth-child(15):last-child) :is(th,td):last-child {
  min-width:72px!important; text-align:center!important;
}
#workspace#workspace#workspace#workspace[data-br283-view="memberFinance"] #body>.table-wrap>table:has(>thead>tr>th:nth-child(15):last-child) td :is(a,span,button) {
  white-space:nowrap!important; overflow-wrap:normal!important; word-break:keep-all!important;
}
@media(max-width:1200px) {
  #workspace#workspace#workspace#workspace[data-br283-view="tournamentSettlement"] #cards:has(>.card:nth-child(7):last-child),
  #workspace#workspace#workspace#workspace[data-br283-view="ledger"] #cards:has(>.card:nth-child(4):last-child) {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:700px) {
  #workspace#workspace#workspace#workspace[data-br283-view="tournamentSettlement"] #cards:has(>.card:nth-child(7):last-child),
  #workspace#workspace#workspace#workspace[data-br283-view="ledger"] #cards:has(>.card:nth-child(4):last-child) {
    grid-template-columns:minmax(0,1fr)!important;
  }
}
