.wpps-tables {
  display: block;
}

.wpps-table {
  border: .25rem solid #e5e5e5;
  border-radius: 1rem;
  overflow: hidden;
}

.wpps-table + .wpps-table {
  margin-top: 3rem;
}

.wpps-table__header {
  padding: .5rem 7.5rem .75rem 1.5rem;
  background: #e5e5e5 url('../images/pig-cutout.png') no-repeat right 1.5rem top 50%;
  background-size: 5rem;
}

.wpps-table--butt .wpps-table__header {
  background-image: url('../images/pig-cutout-butt.png');
}

.wpps-table--loin .wpps-table__header {
  background-image: url('../images/pig-cutout-loin.png');
}

.wpps-table--ham .wpps-table__header {
  background-image: url('../images/pig-cutout-ham.png');
}

.wpps-table--belly .wpps-table__header {
  background-image: url('../images/pig-cutout-belly.png');
}

.wpps-table--picnic .wpps-table__header {
  background-image: url('../images/pig-cutout-picnic.png');
}

.wpps-table--spareribs .wpps-table__header {
  background-image: url('../images/pig-cutout-spareribs.png');
}

.wpps-table__header h3 {
  margin-bottom: .25rem;
}

.wpps-table__header p {
  margin-bottom: 0;
}

.wpps-table__table {
  overflow: auto;
}

.wpps-table table {
  margin-bottom: 0;
}

.wpps-table table thead th {
  min-width: 5rem;
  border: 0;
}

.wpps-table table td {
  border: 0;
  border-top: .125rem solid #e5e5e5;
  border-left: .125rem solid #e5e5e5;
}

.wpps-table table td,
.wpps-table table th {
  text-align: center;
}

.wpps-table table td:first-child,
.wpps-table table th:first-child {
  min-width: 9rem;
  text-align: left;
}

.wpps-table .positive-number,
.wpps-table .negative-number {
  display: block;
  min-width: 4rem;
}

.wpps-table .positive-number::after,
.wpps-table .negative-number::after {
  display: inline-block;
  width: .75rem;
  height: .75rem;
  margin-left: .25rem;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: '';
}

.wpps-table .positive-number {
  color: green;
}

.wpps-table .positive-number::after {
  background-image: url('../images/up-icon.png');
}

.wpps-table .negative-number {
  color: red;
}

.wpps-table .negative-number::after {
  background-image: url('../images/down-icon.png');
}

.wpps-table .neutral-number {
  color: purple;
}

.wpps-pdf-button + .wpps-week-selector {
  margin-top: 2rem;
}

@media screen and (min-width: 62rem) {
  .wpps-pdf-button + .wpps-week-selector {
    margin-top: 3rem;
  }
}

@media screen and (min-width: 81rem) {
  .wpps-tables {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
  }

  .wpps-table {
    width: calc(50% - 1rem);
  }

  .wpps-table + .wpps-table:nth-child(2) {
    margin-top: 0;
  }

  .wpps-table table td:first-child,
  .wpps-table table th:first-child {
    width: 9rem;
  }
}

@media screen and (min-width: 90rem) {
  .wpps-table {
    width: calc(50% - 1.5rem);
    border-width: .5rem;
  }

  .wpps-table table td:first-child,
  .wpps-table table th:first-child {
    width: 12.375rem;
  }
}
