/* ================= v28 (owner): transactions. One Filters button instead of six menus, a way to clear, chips for what is applied, pages instead of a long table ================= */
.tx-bar { flex-wrap: nowrap; }
.tx-bar .search { flex: 1 1 auto; min-width: 0; }
.tx-tools { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.tx-tools .btn svg { width: 15px; height: 15px; }
.fcount { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--brand); color: var(--on-brand); font: 600 11px/18px var(--font); text-align: center; }
.fchips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 22px; border-bottom: 1px solid var(--line); }
.fchip { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 28px; padding: 3px 8px 3px 12px; border-radius: var(--pill); background: var(--badge); border: 1px solid var(--line-strong); color: var(--ink-strong); font-size: 12.5px; transition: border-color var(--t1) ease-out, background var(--t1) ease-out; }
.fchip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fchip svg { width: 13px; height: 13px; color: var(--ink-2); flex: none; }
.fchip:hover { border-color: var(--hover-line); } .fchip:hover svg { color: var(--ink-strong); }
.fchip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; padding: 12px 22px; border-top: 1px solid var(--line); }
.pager .pg { display: inline-flex; align-items: center; gap: 10px; }
.pager .btn svg { width: 14px; height: 14px; }
.pager .btn:disabled { opacity: .45; cursor: default; }
.pager select { width: auto; min-height: 30px; padding-block: 2px; font-size: 12.5px; }
.pager label { white-space: nowrap; margin-left: 8px; }
#tx-card { scroll-margin-top: 84px; }
.f-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.f-grid select { width: 100%; }
/* the filter pop-up: centred on a wide screen; on a phone it is the same bottom sheet as every other panel */
@media (min-width: 921px) {
  .drawer.pop { top: 50%; left: 50%; right: auto; bottom: auto; width: min(540px, calc(100% - 32px)); max-height: calc(100% - 48px); transform: translate(-50%, -50%); }
  #overlay.in .drawer.pop { animation: pop-in 220ms var(--ease) both; }
  #overlay.out .drawer.pop { animation: pop-out 140ms var(--ease-in) both; }
}
@keyframes pop-in { from { opacity: 0; transform: translate(-50%, -48%) scale(.97); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes pop-out { from { opacity: 1; transform: translate(-50%, -50%); } to { opacity: 0; transform: translate(-50%, -49%) scale(.98); } }
@media (max-width: 920px) {
  .fchips, .pager { padding-inline: 16px; }
  .fchip { min-height: 36px; padding-block: 6px; font-size: 14px; }
  .pager .btn { min-height: 44px; min-width: 44px; } .pager select { min-height: 44px; font-size: 16px; }
}
@media (max-width: 560px) {
  .f-grid { grid-template-columns: minmax(0, 1fr); }
  .tx-bar { flex-wrap: wrap; } .tx-bar .search { flex-basis: 100%; }
  .tx-tools { width: 100%; } .tx-tools .btn { flex: 1 1 0; justify-content: center; }
  .pager { justify-content: center; } .pager .pg { width: 100%; justify-content: space-between; }
  .pager .pg:first-child { justify-content: flex-start; } .pager .pg:first-child .note.num { margin-right: auto; }
  .drawer.pop footer .btn.primary { flex: 1 1 100%; } .drawer.pop footer .btn.ghost { flex: 1 1 0; }
}

