:root {
  --navy: #061d35;
  --blue: #0b5eb4;
  --muted: #607286;
  --line: #dce6ef;
  --green: #18794e;
  --amber: #8a5b00;
  --red: #a4262c;
  font-family:
    "Manrope",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: #10263d;
  background: #f5f8fa;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
.sys-header {
  background: var(--navy);
  color: #fff;
}
.sys-header .shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.sys-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sys-brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.sys-brand strong,
.sys-brand small {
  display: block;
}
.sys-brand small {
  color: #bfd3e7;
  font-size: 0.72rem;
  margin-top: 2px;
}
.shell {
  width: min(1040px, calc(100% - 36px));
  margin: auto;
}
.sys-main {
  padding: 42px 0 70px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 27px;
  box-shadow: 0 16px 48px rgba(6, 29, 53, 0.07);
}
.panel-narrow {
  max-width: 720px;
  margin: auto;
}
.eyebrow {
  color: var(--blue);
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 850;
  letter-spacing: 0.09em;
}
.panel h1 {
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  margin: 7px 0 10px;
}
.lead {
  color: var(--muted);
  line-height: 1.7;
}
.status-box {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  margin: 22px 0;
}
.status-box.paid {
  background: #edf9f2;
  border-color: #b6dfc8;
  color: #155f3c;
}
.status-box.pending {
  background: #fff8e6;
  border-color: #ecd79a;
  color: #715000;
}
.status-box.error,
.status-box.failed,
.status-box.cancelled,
.status-box.manual_review {
  background: #fff1f0;
  border-color: #efc4c1;
  color: #8d2825;
}
.status-box h2 {
  margin: 0 0 5px;
  font-size: 1.15rem;
}
.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  margin: 22px 0;
}
.details div {
  background: #fff;
  padding: 15px;
}
.details small,
.details strong {
  display: block;
}
.details small {
  color: var(--muted);
  font-size: 0.72rem;
  margin-bottom: 5px;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border-radius: 11px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  border: 0;
  cursor: pointer;
}
.btn.secondary {
  background: #eef5fb;
  color: #0a579f;
}
.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  font-weight: 750;
  font-size: 0.8rem;
}
.field input {
  min-height: 47px;
  border: 1px solid #cbd9e4;
  border-radius: 11px;
  padding: 0 13px;
  font: inherit;
}
.alert {
  padding: 13px 15px;
  border-radius: 11px;
  background: #fff1f0;
  color: #8d2825;
  margin: 15px 0;
}
.alert.info {
  background: #eaf4ff;
  border-color: #b9d8f2;
  color: #154f7d;
}
.privacy h2 {
  margin-top: 30px;
  font-size: 1.08rem;
}
.privacy p,
.privacy li {
  color: #445f75;
  line-height: 1.75;
}
.preference-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--line);
}
.preference-summary div {
  padding: 16px;
  background: #fff;
}
.preference-summary small,
.preference-summary strong {
  display: block;
}
.preference-summary small {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.72rem;
}
.preference-stop {
  background: #a4262c;
}
.receipt {
  max-width: 820px;
  margin: auto;
}
.receipt-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 20px;
}
.receipt-logos {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}
.receipt-logos img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: contain;
}
.receipt-logos img.school-emblem {
  width: 58px;
  height: 76px;
  border-radius: 0;
}
.receipt-title {
  text-align: right;
}
.receipt-title h1 {
  margin: 0;
  font-size: 1.7rem;
}
.receipt-number {
  font-weight: 850;
  color: var(--blue);
}
.receipt-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
}
.receipt-table th,
.receipt-table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
.receipt-table th {
  width: 34%;
  color: var(--muted);
  font-size: 0.78rem;
}
.receipt-table .receipt-address {
  line-height: 1.6;
}
.receipt-total {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  background: #eef5fb;
  border-radius: 14px;
  padding: 18px;
  font-size: 1.15rem;
  font-weight: 900;
}
.receipt-declaration {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  margin-top: 18px;
  padding: 17px 18px;
  border: 1px solid #cbddec;
  border-radius: 14px;
  background: #f4f8fc;
  box-shadow: inset 4px 0 0 var(--blue);
}
.receipt-declaration-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #e3eff8;
}
.receipt-declaration-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.receipt-declaration > div > span {
  color: var(--blue);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.receipt-declaration blockquote {
  margin: 7px 0 0;
  color: #263e52;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.88rem;
  font-style: italic;
  line-height: 1.65;
}
.receipt-declaration small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.45;
}
.receipt-note {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 24px;
}
.receipt-confidential {
  margin: 14px 0 0;
  padding: 11px 14px;
  border: 1px solid #dbe5f1;
  border-radius: 10px;
  color: #506078;
  font-size: 0.76rem;
}
.void-mark {
  border: 3px solid #a4262c;
  color: #a4262c;
  text-align: center;
  padding: 12px;
  font-size: 1.3rem;
  font-weight: 900;
  transform: rotate(-2deg);
  margin: 20px 0;
}
@media (max-width: 620px) {
  .details {
    grid-template-columns: 1fr;
  }
  .preference-summary {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 21px;
  }
  .sys-main {
    padding-top: 26px;
  }
  .receipt-head {
    display: block;
  }
  .receipt-logos {
    margin-bottom: 16px;
  }
  .receipt-title {
    text-align: left;
    margin-top: 16px;
  }
  .receipt-declaration {
    grid-template-columns: 1fr;
  }
}
@media print {
  .sys-header,
  .no-print {
    display: none !important;
  }
  :root,
  body {
    background: #fff;
  }
  .sys-main {
    padding: 0;
  }
  .panel {
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .shell {
    width: 100%;
  }
}
