@page {
  size: A4 portrait;
  margin: 14mm;
}

* {
  box-sizing: border-box;
}

html {
  color: #111;
  background: #fff;
  font: 14px/1.35 Arial, sans-serif;
}

body {
  width: 100%;
  max-width: 210mm;
  margin: 0 auto;
  padding: 14mm;
}

h1 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.2;
}

p {
  margin: 0 0 14px;
  font-size: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  padding: 7px 8px;
  border: 1px solid #909090;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

th:first-child {
  width: 29%;
}

th {
  background: #f0f0f0;
}

tr {
  break-inside: avoid;
}

td div {
  min-height: 28px;
}

[contenteditable]:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

@media screen and (max-width: 600px) {
  body {
    padding: 16px;
  }

  th:first-child {
    width: 33%;
  }
}

@media print {
  body {
    max-width: none;
    padding: 0;
  }

  .screen-instructions {
    display: none;
  }
}
