:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #475569;
  --line: #dbe2ea;
  --primary: #0f766e;
  --primary-dark: #115e59;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.container {
  width: min(920px, 92vw);
  margin: 0 auto;
}

.topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.nav-link {
  margin-right: 10px;
  color: var(--muted);
  text-decoration: none;
}

.page-content {
  padding: 26px 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
}

.button {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 600;
}

.button:hover {
  background: var(--primary-dark);
}

.button-secondary {
  background: #334155;
}

.button-secondary:hover {
  background: #1f2937;
}

.alert {
  border: 1px solid #ef4444;
  background: #fef2f2;
  color: #991b1b;
  border-radius: 8px;
  padding: 10px;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.meta-grid > div {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 14px;
}

td {
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}

.amount {
  text-align: right;
  white-space: nowrap;
}

.footer {
  color: var(--muted);
  padding: 20px 0;
}
