input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

section.input-group {
  margin-bottom: 1rem;
  display: grid;
  align-items: baseline;
  grid-template-columns: 200px 250px;
  grid-template-rows: 1fr auto;
  grid-template-areas:
    "label input"
    "desc desc";
}

section.input-group:last-of-type {
  margin-bottom: 2rem;
}

section.input-group p {
  grid-area: desc;
  margin: 0.5rem 0 0;
  color: #666;
  font-style: italic;
}

.input-group label {
  grid-area: label;
  font-size: 1.125rem;
  margin-right: 0.5rem;
}

.input-wrapper {
  background-color: white;
  grid-area: input;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid #999;
  font-size: 1.125rem;
  line-height: 1.25;
  border-radius: 0.25rem;
}

.input-wrapper.postfix {
  justify-content: flex-end;
}

.input-wrapper span {
  padding: 0.25rem 0.75rem;
  background-color: rgba(0, 0, 0, 0.1);
}

.input-wrapper input {
  border: 0;
  padding: 0.25rem 0.5rem;
  font-size: 1.125rem;
  width: 100%;
  border-radius: 0.25rem;
}

.input-wrapper input:focus-visible {
  outline: 0;
}

.input-wrapper:has(input:focus-visible) {
  outline: 5px auto Highlight;
  outline: 5px auto -webkit-focus-ring-color;
}

table.value-grid {
  border-spacing: 0;
  border-collapse: collapse;
}

table.value-grid th,
table.value-grid td {
  border: 1px solid #999;
  padding: 0;
}
table.value-grid td:first-child,
table.value-grid th:first-child {
  padding: 0.5rem;
  text-align: center;
  background-color: rgba(162, 255, 0, 0.2);
}
table.value-grid td:not(.payment-number-cell) span {
  text-align: center;
  display: inline-block;
  padding: 0.5rem;
}
table.value-grid td:not(.payment-number-cell) span:first-of-type {
  width: 2rem;
  background-color: rgba(0, 0, 0, 0.1);
}
table.value-grid td:not(.payment-number-cell) span:last-of-type {
  width: 5rem;
}

@media print {
  div#page-content h2 {
    font-size: 2rem;
    margin: 0.75em 0;
    padding: 0 0.75em;
  }

  button.open-login {
    visibility: hidden;
  }

  table.value-grid {
    width: 100%;
  }

  table.value-grid td:first-child {
    font-weight: bold;
  }

  table.value-grid td:not(.payment-number-cell) span:first-of-type {
    border-right: 1px solid #999;
    font-weight: bold;
  }
}
