* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 40px 16px;
  background: #eef2f6;
  color: #17202a;
  font-family: Arial, sans-serif;
}

.card {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 28px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.10);
}

.card.wide {
  width: min(1400px, 100%);
}

.home-card {
  margin-top: 80px;
  text-align: center;
}

h1 {
  margin-top: 0;
  color: #1f4e79;
}

.actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.button,
button {
  display: inline-block;
  padding: 11px 18px;
  border: 0;
  border-radius: 7px;
  background: #1f4e79;
  color: white;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
}

.button.secondary {
  background: #446a46;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: block;
  font-weight: bold;
}

input,
select {
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid #b8c2cc;
  border-radius: 6px;
}

form button {
  margin-top: 20px;
}

.message {
  min-height: 22px;
  font-weight: bold;
}

.back-link {
  display: inline-block;
  margin-top: 18px;
}

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

table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
}

th,
td {
  padding: 10px;
  border: 1px solid #d1d9e0;
  text-align: left;
  white-space: nowrap;
}

th {
  background: #1f4e79;
  color: white;
}

@media (max-width: 650px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
