/* wallet.css - dialog, wallet details, transactions table */

.dialog {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  z-index: 1200;
  width: 92%;
  max-width: 1000px;
  max-height: 86vh;
  overflow: auto;
  padding: 18px;
}

.dialog.hidden {
  display: none;
}

.dialog .dialog-close {
  position: absolute;
  right: 12px;
  top: 12px;
  background: transparent;
  border: 0;
  font-size: 22px;
  cursor: pointer;
}

.dialog-content {
  position: relative;
  padding: 18px 28px 28px 28px;
}

.wallet-section { margin-bottom: 16px; }
.wallet-section label { display:block; font-weight:700; margin-bottom:6px; }
.wallet-section .mono { font-family: ui-monospace, Menlo, monospace; background:#fafafa; padding:8px; border-radius:4px; border:1px solid #eee; }

/* Collapsible */
.collapsible-header { cursor: pointer; margin: 0; display:flex; align-items:center; justify-content:space-between; }
.collapsible-content { padding: 8px 0 0 0; }

/* Transactions */
.tx-toolbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:8px;
  gap: 12px;
}
.tx-toolbar .tx-pagination button { margin-left:6px; }

.tx-table {
  width:100%;
  border-collapse: collapse;
  font-size:14px;
}
.tx-table th, .tx-table td {
  text-align:left;
  padding:8px 10px;
  border-bottom:1px solid #eee;
}
.tx-table tbody tr:hover { background:#fcfcfc; }

.tx-type-in { color: #0a7; font-weight:700; }
.tx-type-out { color: #c22; font-weight:700; }

.tx-empty {
  padding:12px;
  color:#666;
  display:none;
  text-align:center;
}

/* Inspect modal specifics */
.inspect-body {
  font-family: monospace;
  white-space: pre-wrap;
  background: #f7f7f7;
  padding: 12px;
  border-radius: 6px;
  max-height: 50vh;
  overflow:auto;
  border: 1px solid #eee;
}

.inspect-actions {
  margin-top: 12px;
  display:flex;
  gap:8px;
}

/* small devices */
@media (max-width:600px) {
  .dialog { width: 96%; padding: 12px; }
  .tx-table th, .tx-table td { font-size: 13px; padding:6px 8px; }
}
