/* ============================================================
   MERION APP — extra product pages (wallet, team, notifications, tokenization)
   Reuses dashboard tokens & classes; adds only what's new.
   ============================================================ */

/* page-level view toggle (2 variations) reuses .tabs-list/.tab */
.view-switch { display: inline-flex; gap: 4px; }

/* DataTable placed inside a Card: neutralize the table-wrap's own border/bg/radius
   (it is itself a card) so it blends into the parent Card, and align columns to the
   card's 24px gutter. */
.card-table .table-wrap { border: none; border-radius: 0; background: transparent; overflow-x: auto; overflow-y: hidden; }
.card-table .table thead th { background: transparent; border-bottom: 1px solid var(--border); }
.card-table .table thead th:first-child,
.card-table .table tbody td:first-child { padding-left: 24px; }
.card-table .table thead th:last-child,
.card-table .table tbody td:last-child { padding-right: 24px; }
.card-table.divided { border-top: 1px solid var(--border); margin-top: 16px; }

/* clickable table rows + transaction detail */
.row-clickable { cursor: pointer; transition: background .12s ease; }
.row-clickable:hover { background: var(--accent); }
.tx-back { display: inline-flex; align-items: center; gap: 5px; background: none; border: none; cursor: pointer;
  font-family: var(--ui-font); font-size: 13px; font-weight: 600; color: var(--muted-foreground); padding: 0; margin-bottom: 16px; transition: color .14s ease; }
.tx-back:hover { color: var(--foreground); }
.tx-back .ic { font-size: 16px; }
.tx-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; }
.tx-party { display: flex; align-items: center; gap: 11px; margin-top: 14px; }
.tx-party-role { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-foreground); }
.tx-party-name { font-size: 14px; font-weight: 600; margin-top: 1px; }
.tx-arrow { margin: 10px 0 0 16px; color: var(--brand); }
.tx-arrow .ic { font-size: 18px; transform: rotate(90deg); }
.tx-value-card { display: flex; flex-direction: column; justify-content: center; }
.tx-value { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin-top: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tx-value-sub { font-size: 13px; color: var(--muted-foreground); margin-top: 2px; }
.tx-meta { margin-top: 14px; border-top: 1px solid var(--border); }
.tx-meta-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.tx-meta-row:last-child { border-bottom: none; }
.tx-meta-k { font-size: 13px; color: var(--muted-foreground); }
.tx-meta-v { font-size: 13px; font-weight: 500; text-align: right; word-break: break-all; }
@media (max-width: 720px) { .tx-grid { grid-template-columns: 1fr; } }

/* stat strip (team / tokenization headers) */
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-cell { padding: 16px 18px; }
.stat-cell .v { font-size: 24px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-cell .k { font-size: 12.5px; color: var(--muted-foreground); margin-top: 2px; }

/* setup banner (painel) */
.setup-banner { display: flex; align-items: center; gap: 14px; padding: 16px 20px; margin-bottom: 20px;
  border: 1px solid color-mix(in srgb, var(--brand) 32%, var(--border)); border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--brand) 7%, var(--card)); }
.setup-ic { width: 40px; height: 40px; border-radius: var(--radius); flex: none; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand); }
.setup-ic .ic { font-size: 20px; }
.setup-body { flex: 1; min-width: 0; }
.setup-t { font-size: 14.5px; font-weight: 600; }
.setup-d { font-size: 13px; color: var(--muted-foreground); margin-top: 2px; }
@media (max-width: 640px) { .setup-banner { flex-wrap: wrap; } }
