:root {
  color-scheme: light;
  font-family: Arial, sans-serif;
  color: #173d35;
  background: #eeeee9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
textarea {
  font: inherit;
}
button {
  background: #173d35;
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 14px 18px;
  cursor: pointer;
  min-height: 44px;
}
.toolbar {
  max-width: 900px;
  padding: 24px;
  margin: auto;
}
.toolbar > div {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
}
.toolbar p,
.privacy-note {
  font-size: 13px;
  line-height: 1.6;
  color: #53645c;
}
.sheet {
  background: white;
  max-width: 794px;
  margin: 0 auto;
  padding: 42px;
  box-shadow: 0 4px 30px #173d3510;
}
.form-header {
  display: flex;
  gap: 28px;
  align-items: center;
  border-bottom: 2px solid #173d35;
  padding-bottom: 22px;
}
.form-header img {
  filter: brightness(0);
  object-fit: contain;
  flex-shrink: 0;
}
.eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 8px;
}
h1 {
  font-family: Georgia, serif;
  font-size: 32px;
  margin: 0 0 10px;
}
.form-header p:last-child,
.intro {
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 0;
}
.intro {
  margin: 20px 0;
}
.customer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: bold;
}
.wide {
  grid-column: 1/-1;
}
input,
textarea {
  display: block;
  width: 100%;
  padding: 10px;
  border: 1px solid #c3cdc6;
  background: white;
  color: #173d35;
  border-radius: 2px;
  font-size: 16px;
  margin-top: 7px;
}
input {
  min-height: 44px;
}
textarea {
  resize: vertical;
}
.screen-note {
  font-size: 12px;
  color: #53645c;
  line-height: 1.5;
  margin: 24px 0 12px;
}
table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
  font-size: 13px;
}
caption {
  text-align: left;
  font:
    bold 20px Georgia,
    serif;
  margin-bottom: 12px;
}
th {
  text-align: left;
  background: #edf1ed;
  padding: 10px;
  border-bottom: 2px solid #173d35;
}
th:last-child {
  width: 30%;
}
td {
  border-bottom: 1px solid #bac5bd;
  padding: 10px;
  height: 36px;
  overflow-wrap: anywhere;
  vertical-align: top;
}
th + th,
td + td {
  border-left: 1px solid #bac5bd;
}
.notes {
  margin-top: 22px;
}
footer {
  font-size: 10px;
  line-height: 1.6;
  border-top: 1px solid #bac5bd;
  margin-top: 24px;
  padding-top: 12px;
}
.privacy-note {
  max-width: 794px;
  margin: 20px auto;
  padding: 0 20px;
}
.print-value {
  display: none;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #173d35;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  .sheet {
    padding: 24px 20px;
  }
  .form-header {
    gap: 16px;
    align-items: flex-start;
  }
  .form-header img {
    width: 76px;
    height: 60px;
  }
  h1 {
    font-size: 25px;
  }
  .customer {
    grid-template-columns: 1fr;
  }
  .toolbar > div {
    gap: 16px;
  }
  .toolbar button {
    width: 100%;
  }
}
@page {
  size: A4;
  margin: 14mm;
}
@media print {
  html,
  body {
    background: #fff;
    color: #111;
  }
  .toolbar,
  .privacy-note,
  .screen-note,
  noscript,
  input,
  textarea {
    display: none !important;
  }
  .sheet {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
    box-shadow: none;
  }
  .form-header {
    padding-bottom: 5mm;
    gap: 7mm;
  }
  .form-header img {
    width: 30mm;
    height: 22mm;
  }
  h1 {
    font-size: 25pt;
  }
  .intro {
    margin: 4mm 0;
    font-size: 9pt;
  }
  .customer {
    grid-template-columns: 1fr 1fr;
    gap: 3mm 6mm;
    margin-bottom: 5mm;
  }
  .print-value {
    display: block;
    min-height: 9mm;
    border-bottom: 1px solid #777;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    padding: 2mm 0;
    font-size: 11pt;
    font-weight: normal;
  }
  .notes-value {
    min-height: 20mm;
    border: 1px solid #999;
    padding: 3mm;
  }
  table {
    font-size: 10pt;
  }
  th {
    background: white;
    padding: 2.5mm;
  }
  td {
    height: 8mm;
    padding: 2mm;
  }
  thead {
    display: table-header-group;
  }
  tr,
  .customer,
  .form-header,
  .notes,
  footer {
    break-inside: avoid;
  }
  caption {
    font-size: 15pt;
  }
  footer {
    font-size: 8pt;
    margin-top: 5mm;
    padding-top: 3mm;
  }
  .notes {
    margin-top: 5mm;
  }
}
