* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: system-ui, sans-serif;
  background: #f3f4f6;
  color: #111827;
}

.card {
  width: 100%;
  max-width: 360px;
  margin: 1rem;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.card.wide { max-width: 900px; }
.hidden { display: none; }

h1 { margin: 0 0 1rem; font-size: 1.4rem; }

form { display: flex; flex-direction: column; gap: 0.75rem; }

input {
  padding: 0.65rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
}

button {
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

button:disabled { opacity: 0.6; cursor: default; }
button.secondary { background: #e5e7eb; color: #111827; }

header { display: flex; justify-content: space-between; align-items: center; }

.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }

th, td { padding: 0.7rem 0.8rem; text-align: left; border-bottom: 1px solid #e5e7eb; }
th { background: #f9fafb; font-weight: 600; white-space: nowrap; }

td.num, th.num { text-align: right; }
.low { color: #dc2626; font-weight: 600; }
.ok { color: #16a34a; font-weight: 600; }

.error { color: #dc2626; margin: 0; min-height: 1.2em; }
#status { color: #6b7280; margin: 1rem 0 0; }
