body {
  font-family: sans-serif;
  padding: 20px;
  background: #f5f5f5;
}
form {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}
label {
  display: flex;
  flex-direction: column;
}
.sheet {
  background: white;
  border: 2px solid #000;
  padding: 20px;
  max-width: 600px;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
td, th {
  border: 1px solid #000;
  padding: 6px;
  text-align: center;
}
.hidden {
  display: none;
}
@media print {
  body * {
    visibility: hidden;
  }

  #output, #output * {
    visibility: visible;
  }

  #output {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    color: black;
  }

  #printBtn {
    display: none;
  }
}
