.main-table {
  width: 100%;
  /* max-width: 980px; */
  /* change to suit*/
  margin: auto;
  border: 1px solid #eaeaea;
  border-collapse: collapse;
}
.main-table thead th {
  background: #efedef;
  color: #fff;
  color: #fff;
  font-size: .8rem;
  /* padding: 5px 9px 6px 9px; */
  line-height: 1;
}
.main-table th,
.main-table td {
  vertical-align: top;
  text-align: left;
}
td.numbers {
  text-align: center;
}
.main-table td {
  font: size 0.8rem;
  padding: 9px 9px;
  border-bottom: 1px solid #999; /* dotted borders look bad on tables*/
  line-height: 1;
}
.table-heading {
  font-size: 0.8rem;
  margin: 3px;
}
.item-options {
  margin: 0 0 0.5rem;
  overflow: hidden;
  clear: both;
}
.item-options dt {
  margin: 0;
  font-weight: bold;
}
.item-options dt,
.item-options dd {
  display: flex;
  margin: 10;
  padding: 10 5px 0 0;
  vertical-align: top;
}
.item-options dt:after {
  content: ":";
}


@media screen and (max-width: 900px) {
  table.mobile-optimised {
    word-wrap: break-word;
    font-size: .8rem;
    border: none;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
   
  }
  
  .main-table.mobile-optimised thead {
    display: none;
  }
  .main-table.mobile-optimised td {
    display: flexbox;
    flex-wrap: wrap;
    max-width: 100%;
    /* overflow: hidden; */
    padding: 5px 5px;
    box-sizing: border-box;
    font-size: .8rem;
    text-align: right;
    background: #fff;
}

.mobile-optimised td:before {
    content: attr(data-th);
    display: flexbox;
    font-size: 85%;
    top: -0.0rem;
    float: left;
    color: #808080;
    min-width: 4rem;
    margin-left: 0px;
    margin-right: 1rem;
    text-align: left;
}

.mobile-optimised tr {
    display:flex;
    flex-direction: column;
   width: 2auto;
   overflow: hidden;
   flex-wrap: nowrap;
    float: right;
    margin: 10px;
    border: 1px solid #aaa;
    box-shadow: 3px 3px 6px rgba(0,0,0,0.25);
    background-color: white;
    }


  .mobile-optimised tr:nth-child(even){
      background-color: #fff;
    }
.mobile-optimised th {
  display:none;

}

  .item-options,
  .table-heading {
    font-size: .8rem;
    text-align: left;
  }
  .mobile-optimised .numbers {
    text-align: right;
  }
  .main-table tr:nth-child(odd) td {
    background: #ddd;
  }
}

.main-table tr:nth-child(odd) td {
    background: #ddd;
  }
.mobile-optimised label  {
    display: none;
    margin-right: 5px;
    width: auto;
    display: inline;
    position: relative;
    font-size: 100%;
    font-weight: normal;
    top: -5px;
    left: -3px;
    color: #808080;
}   
