* { box-sizing: border-box; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  background: #f5f5f5;
  color: #222;
}
.topbar {
  background: #283593;
  color: #fff;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.topbar h1 { margin: 0; font-size: 1.1rem; }
.topbar nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.topbar nav a {
  color: #c5cae9;
  text-decoration: none;
  font-size: 0.9rem;
}
.topbar nav a.active,
.topbar nav a:hover {
  color: #fff;
  text-decoration: underline;
}
.link-button {
  background: none;
  border: none;
  color: #c5cae9;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
}
.link-button:hover { text-decoration: underline; color: #fff; }
.container {
  max-width: 960px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}
h2 { margin-top: 0; }
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #3949ab;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}
.btn:hover { background: #303f9f; }
.btn-secondary {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #e0e0e0;
  color: #333;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
}
.btn-secondary:hover { background: #d5d5d5; }
.form {
  background: #fff;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.form-row {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}
.form-row label { font-weight: 600; margin-bottom: 0.25rem; }
.form-row input,
.form-row select,
.form-row textarea {
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
}
.form-actions { margin-top: 1rem; }
.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.table th,
.table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #eee;
  font-size: 0.85rem;
}
.table th {
  background: #eeeeee;
  text-align: left;
}
.table tr:last-child td { border-bottom: none; }
.footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
  color: #777;
}
.print-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}
.cheque-sheet {
  position: relative;
  background: #fafafa;
  border: 1px solid #999;
  box-shadow: 0 0 0 1px #fff, 0 2px 6px rgba(0,0,0,0.2);
  margin: 0 auto;
  overflow: hidden;
}
.cheque-sheet.has-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.cheque-field {
  position: absolute;
  white-space: nowrap;
}
.cheque-words {
  max-width: 540px;
  white-space: normal;
}
.hint {
  font-size: 0.85rem;
  color: #555;
  background: #fff8e1;
  border: 1px solid #ffe082;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.error {
  background: #ffebee;
  border: 1px solid #ef9a9a;
  color: #b71c1c;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
}
