/* Byteobill customer dues: balanced summary, readable bills, responsive tables. */
.bo-dues .dues-heading { align-items: center; }
.bo-dues .dues-heading .row { flex-wrap: wrap; }
.bo-dues .dues-stats { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.bo-dues .dues-stats .stat { min-width: 0; }
.bo-dues .dues-stats .stat:nth-child(-n+2) { grid-column: span 2; }
.bo-dues .dues-stats .value { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.bo-dues .dues-list-head { display: flex; align-items: end; justify-content: space-between; gap: .75rem 1rem; margin-bottom: .7rem; }
.bo-dues .dues-list-head h3 { margin: 0 0 .2rem; }
.bo-dues .dues-list-head p { margin: 0; }
.bo-dues .dues-filters { display: flex; gap: .5rem; min-width: 0; }
.bo-dues .dues-filters input { width: clamp(210px, 22vw, 340px); }
.bo-dues .dues-filters select { width: 155px; }
.bo-dues .dues-table { width: 100%; table-layout: fixed; }
.bo-dues .dues-table th:first-child { width: 34%; }
.bo-dues .dues-table th:nth-child(n+2):nth-child(-n+5) { width: 9%; }
.bo-dues .dues-table th:nth-child(6) { width: 14%; }
.bo-dues .dues-table th:last-child { width: 16%; }
.bo-dues .dues-table td { vertical-align: top; }
.bo-dues .dues-table td:first-child { overflow-wrap: anywhere; }
.bo-dues .dues-actions { white-space: normal; }
.bo-dues .dues-actions .btn { margin: 0 .25rem .25rem 0; }
.bo-dues .dues-bills { margin-top: .4rem; font-size: .8rem; }
.bo-dues .dues-bills summary { color: var(--primary); cursor: pointer; font-weight: 600; width: max-content; max-width: 100%; }
.bo-dues .dues-bills summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.bo-dues .dues-bill-list { display: grid; gap: .3rem; margin-top: .45rem; }
.bo-dues .dues-bill-list > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: .2rem .55rem; }
.bo-dues .dues-bill-list span { color: var(--muted); }
.bo-dues .dues-bill-list strong { margin-left: auto; font-variant-numeric: tabular-nums; }
.bo-dues .dues-receipts-card h3 { margin-bottom: .65rem; }
.bo-dues tr[hidden] { display: none !important; }
@media (max-width: 1600px) {
  .bo-dues .dues-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .bo-dues .dues-list-head { align-items: stretch; flex-direction: column; }
  .bo-dues .dues-filters input { flex: 1 1 auto; width: auto; min-width: 0; }
}
@media (max-width: 900px) {
  .bo-dues .dues-table { min-width: 850px; }
}
@media (max-width: 768px) {
  .bo-dues .dues-heading .row, .bo-dues .dues-filters { width: 100%; }
  .bo-dues .dues-heading .row .btn { flex: 1 1 0; text-align: center; }
  .bo-dues .dues-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bo-dues .dues-stats .stat:nth-child(-n+2) { grid-column: span 1; }
  .bo-dues .dues-stats .stat .value { white-space: normal; font-size: clamp(1rem, 4.8vw, 1.35rem); }
  .bo-dues .dues-filters select { flex: 0 0 42%; width: 42%; }
  .bo-dues .dues-table, .bo-dues .dues-receipts { min-width: 0; table-layout: auto; }
  .bo-dues .dues-table tr[data-party], .bo-dues .dues-receipts tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem .6rem; padding: .7rem 0; }
  .bo-dues .dues-table tr[data-party] td:first-child, .bo-dues .dues-receipts tr td:nth-child(2) { grid-column: 1 / -1; }
  .bo-dues .dues-table td, .bo-dues .dues-receipts td { min-width: 0; }
  .bo-dues .dues-table td.num, .bo-dues .dues-receipts td.num { text-align: left; }
  .bo-dues .dues-table td.empty-age { display: none; }
  .bo-dues .dues-table td.dues-total { font-size: 1.05rem; }
  .bo-dues .dues-table td.dues-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .4rem; }
  .bo-dues .dues-actions .btn { flex: 1 1 0; margin: 0; min-height: 40px; }
  .bo-dues .dues-receipts tr td:first-child { grid-column: 1; }
  .bo-dues .dues-receipts tr td:nth-child(2) { order: -1; }
}
