/* Transactions page — extends dashboard shell tokens */

:root {
  --tx-purple: var(--dash-accent);
  --tx-purple-soft: var(--dash-surface-hover);
  --tx-card-elevated: var(--dash-elevated);
  --tx-border: rgba(255, 255, 255, 0.08);
  --tx-text: #f4f4f5;
  --tx-orange: #f59e0b;
  --tx-orange-soft: rgba(245, 158, 11, 0.14);
  --tx-right-w: 320px;
  --tx-focus-ring: color-mix(in srgb, var(--dash-accent-muted) 34%, transparent);
}

body.tx-page {
  --dash-purple: var(--tx-purple);
  --dash-purple-soft: var(--tx-purple-soft);
}


.tx-page .dash-new-btn,
.tx-page .dash-pro__btn {
  background: var(--tx-purple);
}

.tx-page .dash-search input:focus {
  border-color: var(--dash-border-strong);
  box-shadow: 0 0 0 3px var(--dash-surface-hover);
}

/* Layout */
.tx-content {
  padding: var(--dash-content-y, 32px) var(--dash-page-x, 32px);
  padding-left: calc(var(--dash-page-x, 32px) + var(--dash-mobile-nav-gutter, 0px));
  padding-bottom: calc(var(--dash-content-y, 32px) + var(--dash-content-pad-bottom, 0px));
  flex: 1;
  min-width: 0;
  container-type: inline-size;
  container-name: tx-content;
}

.tx-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

.tx-main {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  container-type: inline-size;
  container-name: tx-main dash-page-main;
}

/* Page head */
.tx-head {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tx-title {
  margin: 0;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #f4f4f5;
}

/* Toolbar: type + filter selects + actions in one row */
.tx-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.tx-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.tx-chips::-webkit-scrollbar {
  display: none;
}

.tx-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: none;
  background: var(--dash-surface);
  color: var(--dash-text-muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: background var(--dash-transition), color var(--dash-transition);
}

.tx-chip:hover {
  background: var(--dash-surface-hover);
  color: var(--tx-text);
}

.tx-chip:focus-visible,
.tx-icon-btn:focus-visible,
.tx-row-link:focus-visible,
.tx-row-action:focus-visible,
.tx-action-menu__item:focus-visible,
.tx-page-btn:focus-visible,
.tx-pagination__select:focus-visible,
.tx-panel__clear:focus-visible,
.tx-btn:focus-visible,
.tx-empty__btn:focus-visible {
  outline: 2px solid var(--tx-focus-ring);
  outline-offset: 2px;
}

.tx-chip__badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #f4f4f5;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

body.tx-page .tx-chip__badge {
  color: #f4f4f5;
}

.tx-chip__badge[hidden] {
  display: none;
}

body.tx-page .tx-chip--filters:focus-visible {
  outline-color: rgba(255, 255, 255, 0.16);
}

.tx-chip__chev {
  width: 14px;
  height: 14px;
  opacity: 0.5;
}

.tx-toolbar__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.tx-filter-popover {
  position: fixed;
  top: var(--tx-filter-popover-top, 120px);
  left: var(--tx-filter-popover-left, 0);
  z-index: 120;
  width: min(360px, calc(100vw - 48px));
  padding: 18px;
  border-radius: var(--dash-radius-card);
  background: #151515;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.58);
}

.tx-filter-popover[hidden] {
  display: none;
}

.tx-filter-popover__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.tx-filter-popover__sub {
  margin: 4px 0 0;
  color: var(--dash-text-muted);
  font-size: 12px;
}

.tx-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: var(--dash-surface);
  color: var(--dash-text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background var(--dash-transition), color var(--dash-transition);
}

.tx-icon-btn:hover {
  background: var(--dash-surface-hover);
  color: var(--tx-text);
}

.tx-icon-btn[aria-pressed='true'] {
  background: var(--tx-purple-soft);
  color: var(--tx-text);
}

/* Summary — separate islands with 4px gap */
.tx-summary {
  display: grid;
  gap: 4px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.tx-summary__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  min-width: 0;
  background: var(--dash-card);
  border: none;
  border-radius: var(--dash-radius-card);
}

.tx-summary__item > div:not(.tx-summary__icon) {
  min-width: 0;
  flex: 1;
}

.tx-summary__icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  max-width: 36px;
  flex: 0 0 36px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.tx-summary__icon--green { background: var(--dash-green-soft); color: var(--dash-green); }
.tx-summary__icon--red { background: var(--dash-red-soft); color: var(--dash-red); }
.tx-summary__icon--purple { background: var(--tx-purple-soft); color: var(--tx-purple); }
.tx-summary__icon--blue { background: var(--dash-blue-soft); color: var(--dash-blue); }

.tx-summary__label {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--dash-text-muted);
}

.tx-summary__value {
  margin: 0 0 4px;
  font-weight: 600;
}

.tx-summary__meta {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
}

.tx-summary__meta--up { color: var(--dash-green); }
.tx-summary__meta--down { color: var(--dash-red); }
.tx-summary__meta--muted { color: var(--dash-text-subtle); }

/* Table card */
.tx-table-card {
  background: var(--dash-card);
  border: none;
  border-radius: var(--dash-radius-card);
  box-shadow: none;
  overflow: hidden;
}

.tx-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.tx-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 880px;
}

.tx-table thead th {
  padding: 14px 20px;
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  color: var(--dash-text-subtle);
  border-bottom: 1px solid var(--tx-border);
  white-space: nowrap;
}

.tx-table thead th.tx-amount,
.tx-table tbody td.tx-amount {
  text-align: right;
}

.tx-table thead th:last-child:has(.dash-sr-only),
.tx-table tbody td:last-child:has(.tx-row-action) {
  width: 44px;
  padding-left: 8px;
}

.tx-table thead th:first-child,
.tx-table tbody td:first-child {
  width: 44px;
  padding-left: 20px;
}

.tx-table tbody tr {
  transition: background var(--dash-transition);
}

.tx-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.tx-table tbody tr.is-selected {
  background: rgba(255, 255, 255, 0.045);
}

.tx-table tbody tr.is-filtered-out {
  display: none;
}

.tx-table tbody tr.is-page-hidden {
  display: none;
}

.tx-row-link {
  cursor: pointer;
}

.tx-row-link:focus-visible {
  background: rgba(255, 255, 255, 0.04);
}

.tx-table tbody td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.tx-table tbody tr:last-child td {
  border-bottom: none;
}

.tx-check {
  cursor: pointer;
}

.tx-date {
  font-size: 13px;
  color: var(--dash-text-muted);
  white-space: nowrap;
}

.tx-desc {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
}

.tx-desc__avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--tx-text);
}

.tx-desc__avatar--brand-aws { background: #252f3e; color: #ff9900; }
.tx-desc__avatar--brand-spotify { background: #11331e; color: #1ed760; }
.tx-desc__avatar--brand-apple { background: #2a2a2c; color: #f5f5f7; }
.tx-desc__avatar--brand-usdt { background: rgba(38, 161, 123, 0.14); color: #26a17b; }
.tx-desc__avatar--brand-acme { background: var(--tx-purple-soft); color: var(--tx-purple); }
.tx-desc__avatar--income { background: var(--dash-green-soft); color: var(--dash-green); }
.tx-desc__avatar--transfer { background: var(--tx-purple-soft); color: var(--tx-purple); }

.tx-desc__avatar svg {
  width: 16px;
  height: 16px;
}

.tx-desc__avatar--logo {
  overflow: hidden;
}

.tx-desc__avatar--logo img {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.tx-desc__avatar--brand-aws img {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.28));
}

.tx-desc__avatar--mono img {
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

.tx-desc__title {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--tx-text);
}

.tx-desc__sub {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--dash-text-subtle);
}

.tx-account {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tx-account__flag {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  overflow: hidden;
}

.tx-account__flag--eu { background: var(--dash-blue-soft); color: var(--dash-blue); }
.tx-account__flag--us { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.tx-account__flag--crypto { background: rgba(38, 161, 123, 0.14); color: #26a17b; }

.tx-account__flag img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tx-account__flag--crypto img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.tx-account__name {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
}

.tx-account__mask {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--dash-text-subtle);
}

.tx-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--dash-text-muted);
}

.tx-category__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tx-amount {
  text-align: right;
  white-space: nowrap;
}

.tx-amount__primary {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.tx-amount__primary--in { color: var(--dash-green); }
.tx-amount__primary--out { color: var(--dash-red); }

.tx-amount__secondary {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--dash-text-subtle);
}

.tx-status {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.tx-status--completed {
  background: var(--dash-green-soft);
  color: var(--dash-green);
}

.tx-status--pending {
  background: var(--tx-orange-soft);
  color: var(--tx-orange);
}

.tx-status--failed {
  background: var(--dash-red-soft);
  color: var(--dash-red);
}

.tx-row-action {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--dash-text-subtle);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--dash-transition), color var(--dash-transition);
}

.tx-row-action:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--tx-text);
}

.tx-density-btn .tx-density-icon--comfort {
  display: none;
}

.tx-page--compact .tx-density-btn {
  background: rgba(255, 255, 255, 0.12);
  color: var(--tx-text);
}

.tx-page--compact .tx-density-btn .tx-density-icon--compact {
  display: none;
}

.tx-page--compact .tx-density-btn .tx-density-icon--comfort {
  display: block;
}

.tx-action-menu {
  position: fixed;
  z-index: 80;
  min-width: 168px;
  padding: 6px;
  border-radius: 14px;
  background: var(--dash-popover-bg, #202020);
  border: 1px solid var(--tx-border);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

.tx-action-menu[hidden] {
  display: none;
}

.tx-action-menu__item {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--tx-text);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.tx-action-menu__item:hover {
  background: var(--dash-surface-hover);
}

/* Pagination */
.tx-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid var(--tx-border);
}

.tx-pagination--single-page {
  grid-template-columns: minmax(0, 1fr) auto;
}

.tx-pagination__info {
  margin: 0;
  font-size: 13px;
  color: var(--dash-text-subtle);
}

.tx-pagination__pages {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tx-pagination__pages[hidden] {
  display: none;
}

.tx-page-btn {
  appearance: none;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--dash-text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--dash-transition), color var(--dash-transition);
}

.tx-page-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--tx-text);
}

.tx-page-btn.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: #f4f4f5;
}

.tx-page-btn[aria-current='page'] {
  background: rgba(255, 255, 255, 0.08);
  color: #f4f4f5;
}

body.tx-page .tx-page-btn.is-active,
body.tx-page .tx-page-btn[aria-current='page'] {
  background: rgba(255, 255, 255, 0.08);
  color: #f4f4f5;
}

.tx-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.tx-page-btn:disabled:hover {
  background: transparent;
  color: var(--dash-text-muted);
}

.tx-pagination__rows {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--dash-text-subtle);
}

.tx-pagination--single-page .tx-pagination__rows {
  grid-column: 2;
}

.tx-pagination__select {
  min-height: 36px;
  padding: 0 34px 0 14px;
  border-radius: 999px;
  border: none;
  background: var(--tx-card-elevated);
  color: var(--tx-text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.tx-pagination__rows .nv-select-wrap {
  --nv-select-height: 36px;
  width: 68px;
}

.tx-pagination__rows .nv-select__trigger {
  width: 100%;
  justify-content: flex-start;
  border-radius: 999px;
  background: var(--tx-card-elevated);
  color: var(--tx-text);
  font-size: 13px;
  font-weight: 500;
  padding-inline: 14px 32px;
}

.tx-pagination__rows .nv-select__trigger:hover,
.tx-pagination__rows .nv-select-wrap.is-open .nv-select__trigger {
  background: rgba(255, 255, 255, 0.08);
  color: var(--tx-text);
}

.tx-pagination__rows .nv-select__trigger:focus-visible {
  outline: 2px solid var(--tx-focus-ring);
  outline-offset: 2px;
}

/* Empty state */
.tx-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 36px 20px;
  text-align: center;
}

.tx-empty__title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--tx-text);
}

.tx-empty__copy {
  margin: 0;
  max-width: 42ch;
  font-size: 13px;
  color: var(--dash-text-subtle);
}

.tx-empty__btn {
  margin-top: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: var(--dash-radius-btn);
  background: var(--dash-surface-hover);
  color: var(--tx-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dash-transition), color var(--dash-transition);
}

.tx-empty__btn:hover {
  background: var(--dash-border-hover);
}

/* Right panel — filters */
.tx-panel {
  background: var(--dash-card);
  border: none;
  border-radius: var(--dash-radius-card);
  padding: 0;
  box-shadow: none;
}

.tx-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 0 18px;
  margin: 0;
  cursor: pointer;
  list-style: none;
  color: var(--tx-text);
}

.tx-panel__head::-webkit-details-marker {
  display: none;
}

.tx-panel__title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.tx-panel__chevron {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--dash-text-muted);
  transition: background var(--dash-transition), color var(--dash-transition), transform var(--dash-transition);
}

.tx-panel__head:hover .tx-panel__chevron {
  background: var(--dash-surface-hover);
  color: var(--tx-text);
}

.tx-disclosure[open] .tx-panel__chevron {
  transform: rotate(180deg);
}

.tx-disclosure__body {
  padding: 0 18px 18px;
}

.tx-disclosure__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -2px 0 14px;
  color: var(--dash-text-muted);
  font-size: 12px;
  font-weight: 500;
}

.tx-panel__clear {
  border: none;
  background: transparent;
  color: var(--dash-text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}

.tx-panel__clear:hover {
  color: var(--tx-text);
  filter: none;
}

.tx-field {
  margin-bottom: 16px;
}

.tx-field__label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--dash-text-muted);
}

.tx-field__input,
.tx-field__select {
  width: 100%;
  min-height: var(--control-height-md, 41px);
  padding: 0 var(--control-padding-x, 14px);
  border-radius: var(--dash-radius-input);
  border: 1px solid transparent;
  background: var(--tx-card-elevated);
  color: var(--tx-text);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--dash-transition), box-shadow var(--dash-transition);
}

.tx-field__input::placeholder {
  color: var(--dash-text-subtle);
}

.tx-field__input:focus,
.tx-field__select:focus,
.tx-field__input:focus-visible,
.tx-field__select:focus-visible {
  border-color: var(--dash-border-strong);
  box-shadow: 0 0 0 3px var(--tx-focus-ring);
}

.tx-field__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.tx-field .nv-select-wrap {
  display: flex;
  width: 100%;
  flex-shrink: 1;
}

.tx-field .nv-select__trigger {
  width: 100%;
  justify-content: flex-start;
  min-height: var(--control-height-md, 41px);
  height: auto;
  border-radius: var(--dash-radius-input);
  border: 1px solid transparent;
  background: var(--tx-card-elevated);
  color: var(--tx-text);
  font-size: 1rem;
  font-weight: 400;
}

.tx-field .nv-select__trigger:hover,
.tx-field .nv-select-wrap.is-open .nv-select__trigger {
  background: var(--tx-card-elevated);
  border-color: var(--dash-border-strong);
  color: var(--tx-text);
}

.tx-field .nv-select__trigger:focus-visible {
  outline: none;
  border-color: var(--dash-border-strong);
  box-shadow: 0 0 0 3px var(--tx-focus-ring);
}

.tx-field .nv-select__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tx-panel__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.tx-btn {
  width: 100%;
  min-height: var(--control-height-md, 41px);
  border-radius: var(--dash-radius-btn);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: filter var(--dash-transition), background var(--dash-transition), transform var(--dash-transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tx-btn--primary {
  border: none;
  background: var(--tx-purple);
  color: #fff;
}

.tx-btn--primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.tx-btn--secondary {
  border: none;
  background: transparent;
  color: var(--dash-text-muted);
}

.tx-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--tx-text);
}

.tx-btn--filter-apply {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: var(--tx-card-elevated);
  color: var(--tx-text);
}

.tx-btn--filter-apply:hover {
  background: rgba(255, 255, 255, 0.08);
}

.tx-btn--save-view {
  flex: 0 0 var(--control-height-md, 41px);
  width: var(--control-height-md, 41px);
  min-height: var(--control-height-md, 41px);
  padding: 0;
  border: none;
  border-radius: var(--dash-radius-btn);
  background: var(--tx-card-elevated);
  color: var(--dash-text-muted);
}

.tx-btn--save-view svg {
  width: 15px;
  height: 15px;
  opacity: 0.84;
}

.tx-btn--save-view:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--tx-text);
}

.tx-btn--save-view:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px var(--tx-focus-ring);
  color: var(--tx-text);
}

.tx-btn--ghost {
  border: none;
  background: transparent;
  color: var(--tx-purple);
  height: auto;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 600;
  width: auto;
}

.tx-btn--ghost svg {
  width: 14px;
  height: 14px;
}

.tx-btn--ghost:hover {
  filter: brightness(1.1);
}

.tx-page--compact .tx-table thead th {
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 11px;
}

.tx-page--compact .tx-table tbody td {
  padding-top: 7px;
  padding-bottom: 7px;
  font-size: 12px;
}

.tx-page--compact .tx-table thead th:first-child,
.tx-page--compact .tx-table tbody td:first-child {
  width: 38px;
}

.tx-page--compact .tx-desc {
  gap: 10px;
  min-width: 180px;
}

.tx-page--compact .tx-desc__avatar {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-size: 11px;
}

.tx-page--compact .tx-desc__avatar svg {
  width: 14px;
  height: 14px;
}

.tx-page--compact .tx-desc__avatar--logo img {
  width: 22px;
  height: 22px;
}

.tx-page--compact .tx-desc__avatar--brand-aws img {
  width: 27px;
  height: 27px;
}

.tx-page--compact .tx-desc__title,
.tx-page--compact .tx-account__name {
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
}

.tx-page--compact .tx-desc__sub,
.tx-page--compact .tx-account__mask,
.tx-page--compact .tx-amount__secondary {
  display: none;
}

.tx-page--compact .tx-account {
  gap: 8px;
}

.tx-page--compact .tx-account__flag {
  width: 22px;
  height: 22px;
  font-size: 9px;
}

.tx-page--compact .tx-account__flag--crypto img {
  width: 19px;
  height: 19px;
}

.tx-page--compact .tx-category {
  gap: 6px;
  font-size: 12px;
}

.tx-page--compact .tx-category__dot {
  width: 6px;
  height: 6px;
}

.tx-page--compact .tx-amount__primary {
  font-size: 13px;
}

.tx-page--compact .tx-status {
  padding: 3px 8px;
  font-size: 11px;
}

.tx-page--compact .tx-row-action {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.tx-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--dash-popover-bg, #202020);
  border: 1px solid var(--tx-border);
  color: var(--tx-text);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity var(--dash-transition), transform var(--dash-transition);
}

.tx-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive (container + viewport) ── */

/* Stack main + aside when content column is too narrow (sidebar eats viewport width) */
@container tx-content (max-width: 960px) {
  .tx-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@container tx-content (max-width: 720px) {
  .tx-toolbar {
    flex-wrap: wrap;
    gap: 10px;
  }

  .tx-toolbar > .nv-select-wrap:first-child,
  .tx-toolbar > select.nv-select:first-child {
    flex: 0 0 auto;
  }

  .tx-chips {
    flex: 1 1 100%;
  }
}

@container tx-main (max-width: 560px) {
  .tx-table thead th:nth-child(4),
  .tx-table tbody td:nth-child(4),
  .tx-table thead th:nth-child(5),
  .tx-table tbody td:nth-child(5) {
    display: none;
  }

  .tx-table {
    min-width: 560px;
  }
}

@container tx-main (max-width: 420px) {
  .tx-table thead th:nth-child(2),
  .tx-table tbody td:nth-child(2),
  .tx-table thead th:nth-child(8),
  .tx-table tbody td:nth-child(8) {
    display: none;
  }

  .tx-table {
    min-width: 420px;
  }

  .tx-desc {
    min-width: 0;
  }

  .tx-desc__sub {
    display: none;
  }
}

@media (max-width: 1200px) {
  .tx-content {
    padding: var(--dash-content-y, 24px) var(--dash-page-x, 24px);
    padding-left: calc(var(--dash-page-x, 24px) + var(--dash-mobile-nav-gutter, 0px));
    padding-bottom: calc(var(--dash-content-y, 24px) + var(--dash-content-pad-bottom, 0px));
  }
}

@media (max-width: 800px) {
  .tx-content {
    padding-bottom: calc(var(--dash-content-y, 16px) + var(--dash-content-pad-bottom, 0px));
  }
}

@media (max-width: 768px) {
  .tx-main {
    gap: 16px;
  }

  .tx-title {
    font-size: clamp(24px, 6vw, 28px);
  }

  .tx-summary__item {
    padding: 14px 16px;
  }

  .tx-table thead th,
  .tx-table tbody td {
    padding: 12px 14px;
  }

  .tx-table thead th:first-child,
  .tx-table tbody td:first-child {
    padding-left: 14px;
  }

  .tx-pagination {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 16px;
  }

  .tx-pagination__info {
    text-align: center;
    font-size: 12px;
  }

  .tx-pagination__pages {
    justify-content: center;
    flex-wrap: wrap;
  }

  .tx-pagination__rows {
    justify-self: center;
    flex-wrap: wrap;
    justify-content: center;
  }

  .tx-panel {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .tx-desc__avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .tx-desc__title {
    font-size: 14px;
  }

  .tx-pagination__pages .tx-page-btn:nth-child(n + 3):nth-child(-n + 5) {
    display: none;
  }

  .tx-page-btn {
    min-width: 36px;
    height: 36px;
  }

}
