:root {
  color-scheme: light;
  color: #202720;
  background: #f1f3eb;
  font: 100%/1.4 system-ui, sans-serif;
}

body { margin: 0; }
main { max-width: 49rem; margin: 0 auto; padding: clamp(.85rem, 3vw, 2rem); background: white; }
h1 { font-size: clamp(1.65rem, 6vw, 2.5rem); line-height: 1.08; margin: .85rem 0 .55rem; }
h2 { font-size: 1.16rem; margin: 0 0 .25rem; }
p { margin: .3rem 0 .55rem; }
a { color: #245639; text-underline-offset: .18em; }
section { margin-top: 1.15rem; }
label { display: grid; gap: .2rem; font-size: .9rem; font-weight: 650; min-width: 0; }
input, select, button { box-sizing: border-box; font: inherit; }
input, select { width: 100%; height: 2.65rem; padding: .25rem; border: 1px solid #899488; border-radius: .2rem; background: white; color: #202720; }
:focus-visible { outline: 2px solid #216542; outline-offset: 2px; }
.job, .allowances { display: grid; gap: .7rem; }
.job { grid-template-columns: minmax(0, 1fr) 6rem; }
.allowances { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: .5rem; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
th, td { text-align: left; border: 1px solid #899488; padding: 0; }
th { padding: .25rem .3rem; font-size: .82rem; background: #eef3e9; }
td input { border: 0; border-radius: 0; }
[aria-labelledby="stock"] th:nth-child(3), [aria-labelledby="cuts"] th:nth-child(4) { width: 12%; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin: .75rem 0; }
.actions span, .print-credit { font-size: .85rem; }
.actions button { border-radius: .25rem; border: 0; padding: .6rem .85rem; background: #245639; color: white; }
.follow-up { margin-top: 1rem; padding-block: .6rem; border-top: 1px solid #899488; }
.follow-up a { display: inline-block; margin: .25rem .75rem .25rem 0; }
.print-credit { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

@media print {
  @page { margin: 13mm; }
  :root { background: white; font-size: 10pt; }
  main { max-width: none; margin: 0; padding: 0; }
  .screen { display: none; }
  h1 { margin: 0 0 .45rem; font-size: 20pt; }
  h2, caption { break-after: avoid; }
  section, tr { break-inside: avoid; }
  table, thead, tbody { display: block; }
  table { border-left: 1pt solid #596456; border-top: 1pt solid #596456; }
  tr { display: grid; grid-template-columns: 29% 29% 13% 29%; border-bottom: 1pt solid #596456; }
  [aria-labelledby="cuts"] tr { grid-template-columns: 29% 29% 29% 13%; }
  [aria-labelledby="stock"] th:nth-child(3), [aria-labelledby="cuts"] th:nth-child(4) { width: auto; }
  th, td { min-width: 0; border: 0; border-right: 1pt solid #596456; }
  th { background: white; }
  input, select { height: 1.9rem; padding: .15rem .3rem; }
  select { appearance: none; }
  td input { display: block; appearance: none; background: transparent; }
  .print-credit { display: block; margin-top: .8rem; }
}
