/* Ledgerly styles */
:root {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
body {
  background: linear-gradient(180deg, #f1f5f9 0%, #eef2f7 100%);
  color: #0f172a;
}
.card {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.card-value {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.lbl {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.6rem 0.75rem;
  font-size: 0.95rem;
  background: #f8fafc;
  transition: border-color .15s, background .15s;
  color: #0f172a;
}
.input:focus {
  outline: none;
  border-color: #10b981;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}
.type-btn {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.6rem 0;
  font-weight: 600;
  color: #64748b;
  background: #f8fafc;
  transition: all .15s;
  font-size: 0.95rem;
}
.type-btn.active-rose {
  border-color: #f43f5e;
  background: #fff1f2;
  color: #e11d48;
}
.type-btn.active-emerald {
  border-color: #10b981;
  background: #ecfdf5;
  color: #059669;
}
.tx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.9rem;
  border-radius: 0.75rem;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  transition: background .12s;
}
.tx-row:hover { background: #fff; }
.tx-cat-dot {
  width: 10px; height: 10px; border-radius: 9999px; flex: none;
}
.tx-del {
  color: #94a3b8;
  padding: 0.35rem;
  border-radius: 0.5rem;
  transition: color .12s, background .12s;
}
.tx-del:hover { color: #ef4444; background: #fee2e2; }
/* scrollbar */
#txList::-webkit-scrollbar { width: 6px; }
#txList::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
#txList::-webkit-scrollbar-track { background: transparent; }
