/* Only the Current Account filter panel; the department/dashboard UI is unchanged. */
.transaction-filters.transaction-filters-aligned {
  display: grid;
  grid-template-columns: minmax(200px,1.6fr) repeat(6,minmax(120px,1fr));
  align-items: end;
  gap: 10px;
  padding: 14px;
}
.transaction-filters-aligned .transaction-filter-row {
  display: contents;
}
.transaction-filters-aligned .transaction-filter-row label { min-width: 0; margin: 0; }
.transaction-filters.transaction-filters-aligned .transaction-search { grid-column: auto; }
.transaction-filters-aligned :is(input, select) { width: 100%; min-width: 0; height: 36px; min-height: 36px; padding: 7px 10px; font-size: 12px; border-radius: 10px; }
.transaction-filters-aligned .transaction-filter-footer {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid #d8ccb866;
}
.transaction-filters-aligned .transaction-filter-summary { margin: 0; }
.transaction-filters-aligned .transaction-clear-filters { flex: 0 0 auto; width: auto; min-height: 32px; padding: 6px 12px; }
/* Reserve room for row actions after adding the Bank reference column. */
#content .current-account-register .table table :is(th,td):last-child { width: 154px !important; min-width: 154px; }
#content .current-account-register .table table { table-layout: fixed; width: 100%; }
#content .current-account-register .table table :is(th,td) { overflow-wrap: break-word; padding: 12px 8px; }
#content .current-account-register .table table :is(th,td):nth-child(1) { width: 42px; }
#content .current-account-register .table table :is(th,td):nth-child(2) { width: 90px; }
#content .current-account-register .table table :is(th,td):nth-child(3) { width: 70px; }
#content .current-account-register .table table :is(th,td):nth-child(8) { width: 160px; }
#content .current-account-register .table table :is(th,td):nth-child(9) { width: 95px; }
#content .current-account-register .table table :is(th,td):nth-child(10) { width: 100px; }
#content .current-account-register :is(.badge,.invoice-link-chip) { white-space: normal; overflow-wrap: break-word; }
@media (max-width: 1200px) { #content .current-account-register table { min-width: 1120px; } }
@media (max-width: 1250px) {
  .transaction-filters.transaction-filters-aligned { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .transaction-filters.transaction-filters-aligned .transaction-search { grid-column: span 2; }
}
@media (max-width: 900px) {
  .transaction-filters.transaction-filters-aligned { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .transaction-filters.transaction-filters-aligned { padding: 16px; }
  .transaction-filters.transaction-filters-aligned { grid-template-columns: minmax(0, 1fr); }
  .transaction-filters-aligned .transaction-filter-row .transaction-search { grid-column: auto; }
  .transaction-filters-aligned .transaction-filter-footer { flex-wrap: wrap; }
}
