* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #e9edf3;
  color: #0f172a;
  font-family: "Segoe UI", Tahoma, "Traditional Arabic", sans-serif;
  font-size: 14px;
  line-height: 1.7;
  padding: 1.5rem 1rem 6rem;
}

/* Page constraints similar to report.css */
.sheet {
  width: 794px;
  max-width: 100%;
  margin: 0 auto;
  background: #fff;
  padding: 40px 48px;
  border-radius: 6px;
  box-shadow: 0 2px 16px rgb(15 23 42 / 12%);
}

.cover {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 3px solid #043a8e;
}

.cover__logo {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  margin-bottom: 16px;
}

.cover h1 {
  margin: 0 0 8px;
  font-size: 24px;
  color: #043a8e;
}

.cover h2 {
  margin: 0 0 12px;
  font-size: 18px;
  color: #64748b;
  border: none;
  padding: 0;
}

.cover p {
  margin: 0;
  font-size: 14px;
  color: #475569;
}

/* Grid/Sections */
h2 {
  font-size: 18px;
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
  color: #043a8e;
  page-break-after: avoid;
}

h3 {
  font-size: 15px;
  margin: 20px 0 12px;
  color: #0f172a;
  page-break-after: avoid;
}

p {
  margin: 0 0 16px;
}

/* Numbered Steps */
.step-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  counter-reset: step;
}

.step-list li {
  position: relative;
  padding-inline-start: 40px;
  margin-bottom: 16px;
}

.step-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #043a8e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

/* Notes and Callouts */
.callout {
  background: #f4f7fc;
  border-inline-start: 4px solid #043a8e;
  padding: 16px;
  border-radius: 6px;
  margin-bottom: 24px;
}

.callout--warn {
  background: #fff7ed;
  border-inline-start-color: #ea580c;
}

.callout h4 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #043a8e;
}

.callout--warn h4 {
  color: #ea580c;
}

.callout p {
  margin: 0;
  font-size: 13.5px;
}

/* Tables */
.table-wrap {
  margin: 20px 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  padding: 12px 16px;
  text-align: start;
  border-bottom: 1px solid #eef2f7;
}

th {
  background: #f4f7fc;
  font-weight: 700;
  color: #334155;
}

/* Mini Lists */
ul {
  margin: 0 0 16px;
  padding-inline-start: 24px;
}
li {
  margin-bottom: 8px;
}

/* Print Rules */
@page {
  size: A4;
  margin: 12mm;
}

@media print {
  body {
    background: #fff;
    padding: 0;
  }
  .sheet {
    width: auto;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
  }
  .section, .callout {
    page-break-inside: avoid;
    break-inside: avoid;
  }
  h2, h3 {
    page-break-after: avoid;
    break-after: avoid;
  }
  /* Ensure backgrounds render if supported */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

/* Mobile */
@media (max-width: 600px) {
  body {
    padding: 0;
    background: #fff;
  }
  .sheet {
    padding: 24px 20px;
    box-shadow: none;
  }
}

/* The app link, set big enough to be read off a printed page and typed. */
.link-big {
  font-size: 1.25rem;
  font-weight: 700;
  color: #043a8e;
  direction: ltr;
  text-align: center;
  letter-spacing: 0.02em;
  margin: 0.25rem 0 0.5rem;
}
