* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f6f7f9;
  color: #17202a;
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 18px 56px;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 22px;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.04em;
}

h2 {
  margin: 0 0 14px;
  font-size: 1.25rem;
}

.eyebrow {
  margin: 0 0 6px;
  color: #5b6b7a;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.lede {
  max-width: 760px;
  color: #44515f;
  line-height: 1.55;
  font-size: 1.05rem;
}

.badge {
  padding: 10px 14px;
  border-radius: 999px;
  background: #17202a;
  color: white;
  font-weight: 700;
  white-space: nowrap;
}

.card {
  background: white;
  border: 1px solid #e0e5eb;
  border-radius: 18px;
  padding: 22px;
  margin: 18px 0;
  box-shadow: 0 12px 32px rgba(23, 32, 42, 0.06);
}

.file-box,
.form-grid label {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #d8dee6;
  border-radius: 14px;
  background: #fbfcfd;
  font-weight: 700;
}

input,
select {
  font: inherit;
}

input[type="file"],
input[type="text"],
input[type="number"],
input[type="date"],
select {
  width: 100%;
  padding: 10px;
  border: 1px solid #cdd5df;
  border-radius: 10px;
  background: white;
}

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

.form-grid .wide {
  grid-column: 1 / -1;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.actions.no-margin {
  margin-top: 0;
  justify-content: flex-end;
}

button {
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  background: #1f6feb;
  color: white;
}

button.secondary {
  background: #e7edf5;
  color: #17202a;
}

button.danger {
  background: #b42318;
  color: white;
}

button.small {
  padding: 8px 11px;
  font-size: 0.9rem;
}

.button-link {
  display: inline-block;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  background: #198754;
  color: white;
}

.button-link:hover {
  background: #157347;
  color: white;
  text-decoration: none;
}

.status {
  margin: 14px 0 0;
  color: #44515f;
  font-weight: 700;
}

.muted {
  color: #5b6b7a;
  line-height: 1.5;
}

.hidden {
  display: none !important;
}

.section-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
}

.summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 16px;
}

.summary span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef4ff;
  font-weight: 800;
}

.filter-line {
  margin: 10px 0 14px;
  font-weight: 700;
}

.table-wrap {
  overflow: auto;
  border: 1px solid #e0e5eb;
  border-radius: 14px;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 1080px;
  font-size: 0.92rem;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid #e9edf2;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f1f4f8;
  position: sticky;
  top: 0;
  z-index: 1;
}

td.amount {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

td.cancelled {
  color: #9a3412;
  font-weight: 800;
}

td.active {
  color: #067647;
  font-weight: 800;
}

@media (max-width: 900px) {

  .hero,
  .section-header,
  .form-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .badge {
    justify-self: start;
  }

  .actions.no-margin {
    justify-content: flex-start;
  }
}