@page {
  size: Letter;
  margin: 0.75in;
}

html {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: #111;
}

body {
  max-width: 100%;
  margin: 0;
  line-height: 1.35;
}

h1 {
  font-size: 22px;
  margin: 0 0 0.25rem 0;
  font-weight: 700;
}

h3 {
  font-size: 16px;
  margin: 0 0 1rem 0;
  font-weight: 600;
}

h2 {
  font-size: 18px;
  margin: 1.15rem 0 0.6rem 0;
  font-weight: 700;
}

p {
  margin: 0.45rem 0;
}

strong {
  font-weight: 700;
}

hr {
  border: 0;
  border-top: 1px solid #333;
  margin: 1rem 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 0.35rem 0 1rem 0;
  page-break-inside: auto;
}

/* Keep all expense tables aligned across sections.
   The first two tables are the 2-column summary tables; all later tables are
   5-column expense tables with: # | Date | Description | LBP | USD. */
body > table:nth-of-type(n + 3) {
  table-layout: fixed !important;
}

body > table:nth-of-type(n + 3) th:nth-child(1),
body > table:nth-of-type(n + 3) td:nth-child(1) {
  width: 5% !important;
}

body > table:nth-of-type(n + 3) th:nth-child(2),
body > table:nth-of-type(n + 3) td:nth-child(2) {
  width: 12% !important;
}

body > table:nth-of-type(n + 3) th:nth-child(3),
body > table:nth-of-type(n + 3) td:nth-child(3) {
  width: 53% !important;
}

body > table:nth-of-type(n + 3) th:nth-child(4),
body > table:nth-of-type(n + 3) td:nth-child(4),
body > table:nth-of-type(n + 3) th:nth-child(5),
body > table:nth-of-type(n + 3) td:nth-child(5) {
  width: 15% !important;
  text-align: right !important;
}

thead {
  display: table-header-group;
}

tr {
  page-break-inside: avoid;
  page-break-after: auto;
}

th,
td {
  border: 1px solid #777;
  padding: 4px 6px;
  vertical-align: top;
}

th {
  background: #f0f0f0;
  font-weight: 700;
  text-align: left;
}

th[align="right"],
td[align="right"] {
  text-align: right;
}

th[align="center"],
td[align="center"] {
  text-align: center;
}

code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.95em;
}
