@media (max-width: 768px) {
  body {
    font-size: 1.5rem;
  }
}
@media (min-width: 769px) {
  body {
    font-size: 1.25rem;
  }
}

.auth-banner {
  font-size: 0.8rem;
  color: #666;
  text-align: right;
  padding: 0.25rem 0;
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: inherit;
  padding: 0;
  text-decoration: underline;
}

.tx-list {
  margin-bottom: 2rem;
}

.tx-row {
  display: grid;
  grid-template-columns: 7rem 1fr 8rem 6rem;
  gap: 0.5rem;
  align-items: center;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 2px;
  background: var(--container);
  cursor: pointer;
  user-select: none;
}

.tx-row:hover {
  background: var(--highlight, #f5f5f5);
}

.tx-row.settlement {
  background: #d8d8d8;
  border-color: #aaa;
}

.tx-date {
  font-size: 0.8rem;
  color: #888;
  white-space: nowrap;
}

.tx-desc {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tx-payer {
  font-size: 0.85rem;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tx-amount {
  font-weight: 700;
  color: var(--primary);
  text-align: right;
}

.tx-row.settlement .tx-amount {
  color: #444;
}

.tx-detail {
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 4px 4px;
  padding: 0.75rem 1rem;
  background: var(--bg);
  margin-bottom: 8px;
}

.tx-shares {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.tx-shares .share-item {
  background: var(--container);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.tx-shares .share-item.disabled {
  opacity: 0.5;
}

.tx-shares .share-dollars {
  color: var(--primary);
  font-weight: 600;
}

.tx-note {
  font-style: italic;
  font-size: 0.85rem;
  color: #666;
  border-left: 3px solid var(--primary);
  padding-left: 0.5rem;
  margin-bottom: 0.5rem;
}

.tx-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.tx-actions form {
  display: inline;
  margin: 0;
}

@media (max-width: 600px) {
  .tx-row {
    grid-template-columns: 5.5rem 1fr 5rem;
  }
  .tx-payer {
    display: none;
  }
}
