/* Two-column layout for EOT */
main {
  display: grid;
  grid-template-columns: 2fr 1fr; /* left = content, right = aside */
  gap: 20px;
  padding: 20px;
  align-items: start; /* keep aside aligned at the top */
}

@media (max-width: 900px) {
  main {
    grid-template-columns: 1fr;
  }
}

/* ====== Transaction Table ====== */

/* Wrapper (only scrolls on small screens) */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  border: 1px solid var(--panel-border, #1a2746);
}

/* Table adjusts width naturally */
#txTable {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

/* General cell styles */
#txTable th,
#txTable td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--row-border, #2a3555);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Allow wrapping for wide text columns */
#txTable td:nth-child(4),   /* Token IDs */
#txTable td:nth-child(7),   /* Timestamp */
#txTable th:nth-child(4),
#txTable th:nth-child(7) {
  white-space: normal;
  word-break: break-word;
}

/* Table header */
#txTable th {
  background: var(--th-bg, #0d1935);
  color: var(--text, #e6edf7);
  font-size: 13px;
  position: sticky;
  top: 0;
  z-index: 1;
}

/* Optional: Hide Token IDs on very small screens */
@media (max-width: 600px) {
  #txTable th:nth-child(4),
  #txTable td:nth-child(4) {
    display: none;
  }
}
