.tx-preview-loading-row,
.tx-preview-state-row {
  display: none;
}

.tx-preview-state-row[hidden],
.tx-preview-loading-row[hidden] {
  display: none !important;
}

html.nv-cloudflare-preview-auth .tx-row-link,
html.nv-cloudflare-preview-auth .tx-empty-row,
html.nv-cloudflare-preview-auth .tx-pagination__pages,
html.nv-cloudflare-preview-auth .tx-pagination__rows {
  display: none !important;
}

html.nv-cloudflare-preview-auth body[data-preview-dataset="demo"] .tx-row-link:not([hidden]) {
  display: table-row !important;
}

html.nv-cloudflare-preview-auth .tx-toolbar {
  display: flex !important;
}

html.nv-cloudflare-preview-auth .tx-toolbar .tx-toolbar__actions {
  display: inline-flex !important;
}

html.nv-cloudflare-preview-auth .tx-toolbar.tx-toolbar--filters-ready .nv-select-wrap[hidden] {
  display: none !important;
}

.tx-native-search {
  display: flex;
  align-items: center;
  flex: 0 1 240px;
  min-width: 176px;
  height: 32px;
  padding: 0 6px 0 10px;
  border-radius: 999px;
  background: var(--dash-surface);
  color: var(--dash-text-subtle);
}

.tx-native-search[hidden] {
  display: none !important;
}

.tx-native-search:focus-within {
  outline: 2px solid var(--tx-focus-ring);
  outline-offset: 2px;
}

.tx-native-search > svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.tx-native-search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 8px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--tx-text);
  font: inherit;
  font-size: var(--nv-type-callout-size);
  letter-spacing: var(--nv-type-callout-tracking);
}

.tx-native-search input::placeholder {
  color: var(--dash-text-subtle);
}

.tx-native-search button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--dash-text-muted);
  cursor: pointer;
}

.tx-native-search button[hidden] {
  display: none;
}

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

.tx-native-search button:focus-visible {
  outline: 2px solid var(--tx-focus-ring);
  outline-offset: 1px;
}

.tx-native-search button svg {
  width: 14px;
  height: 14px;
}

html.nv-cloudflare-preview-auth .tx-empty-row:not([hidden]) {
  display: table-row !important;
}

html.nv-cloudflare-preview-auth .tx-table tbody .tx-empty-row > td,
html.nv-cloudflare-preview-auth .tx-table tbody .tx-preview-state-row > td,
html.nv-cloudflare-preview-auth .tx-table tbody .tx-preview-loading-row > td {
  display: table-cell !important;
}

@media (max-width: 480px) {
  .tx-native-search {
    flex-basis: 100%;
    min-width: 100%;
  }

  .tx-native-search input {
    font-size: 16px;
  }
}

html.nv-cloudflare-preview-auth body:not([data-nucleus-transactions-state]) .tx-summary,
html.nv-cloudflare-preview-auth body[data-nucleus-transactions-state="loading"] .tx-summary {
  visibility: visible;
}

html.nv-cloudflare-preview-auth body:not([data-nucleus-transactions-state]) [data-nv-stats="transactions"] .nv-o-stat__icon,
html.nv-cloudflare-preview-auth body[data-nucleus-transactions-state="loading"] [data-nv-stats="transactions"] .nv-o-stat__icon,
html.nv-cloudflare-preview-auth body:not([data-nucleus-transactions-state]) :is([data-nv-stats="transactions"] .nv-o-stat__label, [data-nv-stats="transactions"] .nv-o-stat__value, [data-nv-stats="transactions"] .nv-o-stat__meta),
html.nv-cloudflare-preview-auth body[data-nucleus-transactions-state="loading"] :is([data-nv-stats="transactions"] .nv-o-stat__label, [data-nv-stats="transactions"] .nv-o-stat__value, [data-nv-stats="transactions"] .nv-o-stat__meta) {
  color: transparent;
  background: linear-gradient(90deg, var(--dash-surface-hover) 28%, color-mix(in srgb, var(--dash-text) 12%, transparent) 50%, var(--dash-surface-hover) 72%);
  background-size: 220% 100%;
  animation: tx-preview-loading 1.35s ease-in-out infinite;
}

html.nv-cloudflare-preview-auth body:not([data-nucleus-transactions-state]) [data-nv-stats="transactions"] .nv-o-stat__icon svg,
html.nv-cloudflare-preview-auth body[data-nucleus-transactions-state="loading"] [data-nv-stats="transactions"] .nv-o-stat__icon svg {
  opacity: 0;
}

html.nv-cloudflare-preview-auth body:not([data-nucleus-transactions-state]) :is([data-nv-stats="transactions"] .nv-o-stat__label, [data-nv-stats="transactions"] .nv-o-stat__value, [data-nv-stats="transactions"] .nv-o-stat__meta),
html.nv-cloudflare-preview-auth body[data-nucleus-transactions-state="loading"] :is([data-nv-stats="transactions"] .nv-o-stat__label, [data-nv-stats="transactions"] .nv-o-stat__value, [data-nv-stats="transactions"] .nv-o-stat__meta) {
  width: fit-content;
  min-width: 42%;
  border-radius: 999px;
}

html.nv-cloudflare-preview-auth body:not([data-nucleus-transactions-state]) [data-nv-stats="transactions"] .nv-o-stat__value,
html.nv-cloudflare-preview-auth body[data-nucleus-transactions-state="loading"] [data-nv-stats="transactions"] .nv-o-stat__value {
  min-width: 30%;
}

html.nv-cloudflare-preview-auth body:not([data-nucleus-transactions-state]) [data-nv-stats="transactions"] .nv-o-stat__meta,
html.nv-cloudflare-preview-auth body[data-nucleus-transactions-state="loading"] [data-nv-stats="transactions"] .nv-o-stat__meta {
  min-width: 56%;
}

html.nv-cloudflare-preview-auth .tx-preview-loading-row:not([hidden]),
html.nv-cloudflare-preview-auth .tx-preview-state-row:not([hidden]) {
  display: table-row;
}

html.nv-cloudflare-preview-auth .tx-table {
  min-width: 0;
}

html.nv-cloudflare-preview-auth .tx-table tbody tr.tx-preview-row {
  cursor: default;
}

html.nv-cloudflare-preview-auth .tx-table tbody tr.tx-preview-row:hover {
  background: var(--dash-surface-hover);
}

html.nv-cloudflare-preview-auth .tx-pagination {
  justify-content: flex-start;
}

.tx-load-more {
  min-height: 36px;
  margin-left: auto;
  padding: 0 14px;
  border: 0;
  border-radius: var(--dash-radius-btn);
  background: var(--dash-surface);
  color: var(--tx-text);
  font: inherit;
  font-size: var(--nv-type-subhead-size);
  letter-spacing: var(--nv-type-subhead-tracking);
  font-weight: var(--nv-type-weight-semibold);
  cursor: pointer;
}

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

.tx-load-more:hover {
  background: var(--dash-surface-hover);
}

.tx-load-more:focus-visible {
  outline: 2px solid var(--tx-focus-ring);
  outline-offset: 2px;
}

.tx-load-more:disabled {
  cursor: wait;
  opacity: 0.64;
}

.tx-preview-skeleton {
  display: grid;
}

.tx-preview-skeleton span {
  position: relative;
  overflow: hidden;
  display: block;
  height: 56px;
  border-bottom: 1px solid var(--tx-border);
  background:
    radial-gradient(circle at 23% 50%, var(--dash-surface-hover) 0 14px, transparent 15px),
    linear-gradient(var(--dash-surface-hover) 0 0) 5% 50% / 9% 9px no-repeat,
    linear-gradient(var(--dash-surface-hover) 0 0) 27% 38% / 18% 9px no-repeat,
    linear-gradient(var(--dash-surface-hover) 0 0) 27% 64% / 11% 7px no-repeat,
    linear-gradient(var(--dash-surface-hover) 0 0) 55% 42% / 12% 9px no-repeat,
    linear-gradient(var(--dash-surface-hover) 0 0) 55% 66% / 8% 7px no-repeat,
    linear-gradient(var(--dash-surface-hover) 0 0) 76% 50% / 10% 9px no-repeat,
    linear-gradient(var(--dash-surface-hover) 0 0) 95% 50% / 8% 9px no-repeat;
}

.tx-preview-skeleton span::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 20%, color-mix(in srgb, var(--dash-text) 8%, transparent) 50%, transparent 80%);
  background-size: 220% 100%;
  animation: tx-preview-loading 1.35s ease-in-out infinite;
}

.tx-preview-skeleton span:last-child {
  border-bottom: 0;
}

@keyframes tx-preview-loading {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .tx-preview-skeleton span::after,
  html.nv-cloudflare-preview-auth body:not([data-nucleus-transactions-state]) .tx-summary :is(.nv-o-stat__icon, .nv-o-stat__label, .nv-o-stat__value, .nv-o-stat__meta),
  html.nv-cloudflare-preview-auth body[data-nucleus-transactions-state="loading"] .tx-summary :is(.nv-o-stat__icon, .nv-o-stat__label, .nv-o-stat__value, .nv-o-stat__meta) {
    animation: none;
  }
}

.tx-preview-row .tx-desc__avatar,
.tx-preview-row .tx-account__flag {
  display: grid;
  place-items: center;
  font-size: var(--nv-type-footnote-size);
  letter-spacing: var(--nv-type-footnote-tracking);
  font-weight: var(--nv-type-weight-semibold);
}

.tx-preview-row .tx-desc__title {
  overflow-wrap: anywhere;
}

.tx-preview-row .tx-account__mask {
  text-transform: capitalize;
}

.tx-category-select {
  min-width: 9.5rem;
  min-height: 40px;
  padding: 0 30px 0 10px;
  border: 0;
  border-radius: var(--dash-radius-btn);
  background: var(--dash-surface);
  color: var(--tx-text);
  font: inherit;
  font-size: var(--nv-type-callout-size);
  letter-spacing: var(--nv-type-callout-tracking);
  cursor: pointer;
}

.tx-category-select:hover {
  background: var(--dash-surface-hover);
}

.tx-category-select:focus-visible {
  outline: 2px solid var(--tx-focus-ring);
  outline-offset: 2px;
}

.tx-category-select:disabled {
  cursor: wait;
  opacity: 0.64;
}

.tx-preview-row[data-category-state="error"] .tx-category-select {
  outline: 2px solid var(--dash-danger, #dc2626);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  html.nv-cloudflare-preview-auth .tx-table thead th:nth-child(5),
  html.nv-cloudflare-preview-auth .tx-table tbody td:nth-child(5) {
    display: table-cell !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tx-preview-skeleton span {
    animation: none;
  }
}
.nv-cloudflare-preview-auth .tx-desc__link { color: inherit; text-decoration: none; }
.nv-cloudflare-preview-auth .tx-desc__link:hover { text-decoration: underline; text-underline-offset: 3px; }
