/*

RESPONSTABLE 2.0 by jordyvanraaij
  Designed mobile first!

If you like this solution, you might also want to check out the 1.0 version:
  https://gist.github.com/jordyvanraaij/9069194

*/

table {
 border-collapse: separate;
 border-spacing:0;
}
.responstable {
  margin: 1em 0;
  width: 100%;
  overflow: hidden;
  background: #FFF;
  color: #000;
  border-radius: 10px;
  border: 1px solid #E6E6E6;
}
.responstable tr {
  /* border: 1px solid #D9E4E6; */
  border: 1px solid #E6E6E6;
}
.responstable tr:nth-child(odd) {
  background-color: #FAFAFA;
}
.responstable th {
  display: none;
  border: 1px solid #E6E6E6;
  background-color: #95c11f;
  /* background-color: rgba(142,127,25,.3); */
  
  color: #fff;
  padding: 1em;
}
.responstable th:first-child {
  display: table-cell;
  text-align: center;
}
.responstable th:nth-child(2) {
  display: table-cell;
}
.responstable th:nth-child(2) span {
  display: none;
}
.responstable th:nth-child(2):after {
  content: attr(data-th);
}
.responstable td p {
  font-family: sans-serif;
  font-size: 100%;
  font-style: normal;
  font-weight: normal;
  line-height: 1.2;
}

@media (min-width: 680px) {
  .responstable th:nth-child(2) span {
    display: block;
  }
  .responstable th:nth-child(2):after {
    display: none;
  }
}
.responstable td {
  display: block;
  word-wrap: break-word;
  max-width: 7em;
}
.responstable td:first-child {
  display: table-cell;
  text-align: left;
  border-right: 1px solid #E6E6E6;
}
@media (min-width: 680px) {
  .responstable td {
    border: 1px solid #E6E6E6;
  }
}
.responstable th, .responstable td {
  text-align: center;
  margin: .5em 1em;
}
.responstable td {
  text-align: left;
}

@media (min-width: 680px) {
  .responstable th, .responstable td {
    display: table-cell;
    padding: 1em;
    vertical-align: top;
  }
}

