* {
  box-sizing: border-box;
}

body {
  background: #f4f4f4;
}

#Data table {
  background: white;
}

.selected {
  background: #bfb;
}

#limit, #past {
  width: 5em;
}

input {
  background: lightyellow;
}

input:focus {
  background: yellow;
}

#Data tr:hover {
  background: #eee;
}

.nowrap {
  white-space: nowrap;
}

#Data td:nth-child(2) { /* Paid */
  white-space: nowrap;
  color: black;
}

#Data tr > :nth-child(3) { /* tb */
  display: none;
}

caption {
  border: 1px solid black;
  border-bottom: none;
  background: #333;
  color: #eee;
}

table.options {
  background: #eee;
}

.match {
  color: #aaa;
}

#Data table {
  display: none;
}

div.tables {
  background: #444;
  padding: 0.2em;
  padding-top: 1em;
}

nav {
  background: #333;
  padding: 0.2em;
  color: white;
  font-weight: bold;
  font-size: 16px;
}

nav span {
  display: inline-block;
  transform: translatey(0.5em);
}

nav span:not(:first-child) {
  margin-left: 2em;
}

nav button {
  width: 6em;
  height: 3em;
  vertical-align: top;
}

table.options {
  float: right;
}

table.search {
  background: #eee;
}

button.clear {
  float: right;
  margin-left: 1em;
  font-size: 90%;
  padding: 0em 0.2em;
}

div.inputs {
  background: #f4f4f4;
  border-bottom: 1px solid #666;
}

label:hover {
  color: blue;
  cursor: pointer;
}

.note {
  font-size: 90%;
  color: brown;
}

select {
  width: 13em;
}

.missing {
  color: red;
}

#Data tr > :nth-child(1) {
  width: 15em;
  font-size: 90%;
  background: #eee;
}

#Data tr > :nth-child(2) {
  background: #eee;
  border-right: 1px solid black;
}

#Data thead td:nth-child(1) {
  font-weight: bold;
  text-align: center;
}

#Data tr {
  vertical-align: top;
}

button {
  position: relative;
}

button sup {
  position: absolute;
  top: 2px;
  left: 2px;
  text-decoration: underline;
  color: gray;
}

#Data td:nth-child(n + 3) {
  cursor: pointer;
}

#Edit {
  display: none;
}

div.tables button {
  height: 3em;
}