/* Simple printable table worksheet */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 1.25in 1in 1.5in;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11pt;
  line-height: 1.35;
  color: #000;
  background: #fff;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: 14pt;
  font-weight: 700;
}

h2 {
  margin: 1.5rem 0 0.35rem;
  font-size: 12pt;
  font-weight: 700;
}

.worksheet-instructions {
  margin: 0 0 1rem;
  max-width: 6.5in;
}

.worksheet-actions {
  margin: 0 0 1.25rem;
}

.worksheet-actions button,
.worksheet-actions a {
  font-family: inherit;
  font-size: 10pt;
  margin-right: 0.5rem;
}

.worksheet-table {
  width: 100%;
  max-width: 6.5in;
  border-collapse: collapse;
  table-layout: fixed;
  margin-bottom: 0.25rem;
}

.worksheet-table th,
.worksheet-table td {
  border: 1px solid #000;
  padding: 0.25rem 0.4rem;
  vertical-align: middle;
  text-align: left;
}

.worksheet-table th {
  font-weight: 700;
  text-align: center;
}

.worksheet-table th:first-child,
.worksheet-table td:first-child {
  width: 58%;
  text-align: left;
}

.worksheet-table th:nth-child(2),
.worksheet-table td:nth-child(2),
.worksheet-table th:nth-child(3),
.worksheet-table td:nth-child(3) {
  width: 21%;
  text-align: center;
}

.worksheet-table tbody td:nth-child(2),
.worksheet-table tbody td:nth-child(3) {
  height: 1.35rem;
}

@media print {
  body {
    padding: 0.5in;
  }

  .no-print {
    display: none !important;
  }

  h2 {
    page-break-after: avoid;
  }

  .worksheet-table {
    page-break-inside: avoid;
  }
}
