/* ================================================================
   transactions-table.css
   ================================================================ */

bm-transactions-table {
  display: block;
}

.tx-card {
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}

.tx-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.tx-title {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--text-strong);
}

.tx-sub {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tx-search-input {
  padding: 8px 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: "JetBrains Mono", monospace;
  width: 240px;
  background: var(--surface-page);
  color: var(--text-strong);
}

.tx-search-input:focus {
  outline: none;
  border-color: var(--green-primary);
  background: #fff;
}

.tx-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
}

.tx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.tx-table thead th {
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 8px 10px;
  background: var(--surface-page);
  border-bottom: 1px solid var(--border-soft);
  white-space: nowrap;
}

.tx-table thead th.num,
.tx-table tbody td.num {
  text-align: right;
  font-family: "JetBrains Mono", monospace;
}

.tx-table tbody td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-base);
  white-space: nowrap;
}

.tx-table tbody tr:hover {
  background: rgba(0, 158, 131, 0.04);
}

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

.tx-id {
  font-family: "JetBrains Mono", monospace;
  color: var(--green-deep);
  font-weight: 500;
}

.tx-loading {
  text-align: center;
  padding: 2rem 1rem !important;
  color: var(--text-muted);
}

.tx-loading.error {
  color: #b91c1c;
}

.tx-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-soft);
}

.tx-page-info {
  font-size: 12px;
  color: var(--text-muted);
}

.tx-btn {
  padding: 6px 14px;
  border: 1px solid var(--border-soft);
  background: #fff;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.tx-btn:hover:not(:disabled) {
  background: var(--surface-page);
  border-color: var(--green-primary);
}

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