body {
  background: #f3f3f3;
}

p {
  color: #369;
  font-weight: bold;
}

.main {
  background: white;
  border: 1px solid gray;
  padding: 1em;
}

#Data td:nth-child(n + 2) {
  text-align: right;
}

#Data th {
  background: #def;
}

#Data tr:nth-child(n + 2) > :last-child,
#Data td:last-child {
  background: yellow;
  border-left: 1px solid black;
}

#Data tr > :nth-child(2),
#Data tr:first-child th:last-child {
  border-left: 1px solid black;
}

#Data tr:nth-child(2) th {
  border-bottom: 1px solid black;
}

#Data tr:last-child td {
  background: yellow;
  text-align: right;
  border-top: 1px solid black;
}