body {
  font-family: sans-serif;
}

main {
  margin: 10px 10px 50px;
  overflow: auto;
}

div {
  padding:5px;
}

label {
  min-width: 100px;
  display: inline-block;
  padding-left: 4px;
}

table {
  cursor: text;
}

tr:empty {
  height: 20px;
}

td,
th {
  padding: 3px 6px;
  border: 1px solid darkgray;
  background-color: lightgray;
  white-space: nowrap;
}

th {
  min-width: 85px
}

td {
  position: relative;
}

td:nth-child(4n + 2),
td:nth-child(4n + 5),
th:nth-child(2n) {
  background-color: transparent;
}

td:nth-child(2n + 4) {
  font-style: italic;
  font-weight: bold;
  text-align: right;
}

td:first-child:hover::after {
  content: "❌";
  cursor: pointer;
  font-size: small;
  position: absolute;
  right: 2px;
  top: 0;
  background-color: #d3d3d3;
  padding: 0 2px;
  box-shadow: -3px 0px 5px #d3d3d3;
}

label[for],
button {
  cursor: pointer;
}

button {
  margin-left: 4px;
  padding: 3px 6px;
}

input[type="text"] {
  padding: 3px 6px;
  width: 80px;
}

input[type="text"]::placeholder {
  color: darkgrey;
}

#error {
  border: 2px solid darkred;
  background: lightpink;
  display: inline-block;
  color: darkred;
  margin: 10px 8px;
  white-space: pre;
}

#error:empty {
  display: none;
}

.hidden {
  opacity: 0;
  transition-duration: 1s;
}
