* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
}
.container { padding: 18px; }
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: #0f172a;
  padding: 8px 0;
}
.btn {
  border: 1px solid #334155;
  background: #1e293b;
  color: #e2e8f0;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.btn:hover { background: #334155; }
.btn-danger { border-color: #7f1d1d; background: #450a0a; }
.btn-danger:hover { background: #7f1d1d; }
.card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
}
.table-wrap { overflow-x: auto; border: 1px solid #1f2937; border-radius: 10px; }
table { width: 100%; border-collapse: collapse; min-width: 1200px; }
th, td { border-bottom: 1px solid #1f2937; vertical-align: top; padding: 10px; text-align: left; }
th { background: #111827; position: sticky; top: 0; }
a { color: #93c5fd; text-decoration: none; }
a:hover { text-decoration: underline; }
.status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid transparent;
}
.st-new { background: #1e293b; border-color: #475569; }
.st-in_progress { background: #1e3a8a; border-color: #3b82f6; }
.st-stuck { background: #7c2d12; border-color: #f97316; }
.st-completed { background: #14532d; border-color: #22c55e; }
.st-voided, .st-declined { background: #7f1d1d; border-color: #ef4444; }
.signer {
  background: #0b1220;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 6px;
}
.small { color: #94a3b8; font-size: 12px; }
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
}
.login-card {
  width: min(460px, 95vw);
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 22px;
}
.field-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.field-row input {
  flex: 1;
  background: #0b1220;
  border: 1px solid #334155;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 8px;
}
.filter-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-item {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  text-transform: lowercase;
}
.loading-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(2, 6, 23, 0.68);
  z-index: 100;
}
.spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid #334155;
  border-top-color: #38bdf8;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
