/* 
Max width before this PARTICULAR table gets nasty
This query will take effect for any screen smaller than 760px
and also iPads specifically.
*/
@media screen and (max-width: 1024px) {
  /* Force table to not be like tables anymore */
  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  /* Hide table headers (but not display: none;, for accessibility) */
  thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  tr:nth-child(even) {
    background-color: #f1f1f1;
  }

  @media screen and (min-width: 1024px) {
    .tab18 td {
      display: table-cell;
    }
  }

  tr {
    border: 1px solid #ccc;
  }

  td {
    /* Behave  like a "row" */
    border: none;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 10%;
  }

  td:before {
    /* Now like a table header */
    /*position: absolute;*/
    /* Top/left values mimic padding */
    top: 6px;
    left: 6px;
    width: 45%;
    padding-right: 50px;
    white-space: nowrap;
  }

  /*
  Label the data
  */
  .tab18 td {
    display: flex;
    justify-content: space-between;
  }

  .tab18 td:before {
    font-weight: bold;
  }

  .tab18 td:nth-of-type(1):before {
    content: "Program*";
  }
  .tab18 td:nth-of-type(2):before {
    content: "Purdue West Lafayette";
  }
  .tab18 td:nth-of-type(3):before {
    content: "Purdue Indianapolis";
  }
  .tab18 td:nth-of-type(4):before {
    content: "Combined Enrollment";
  }
  .tab18 td:nth-of-type(5):before {
    content: "ABET Accredited";
  }
  .tab18 td:nth-of-type(6):before {
    content: "Degrees Awarded Previous Fall";
  }
  .tab18 td:nth-of-type(7):before {
    content: "Degrees Awarded Spring";
  }
  .tab18 td:nth-of-type(8):before {
    content: "Degrees Awarded Summer";
  }
  .tab18 td:nth-of-type(9):before {
    content: "Degrees Awarded Total";
  }

  .tab17 td:nth-of-type(1):before {
    content: "Program*";
    font-weight: bold;
  }
  .tab17 td:nth-of-type(2):before {
    content: "Fall Enrollment";
    font-weight: bold;
  }
  .tab17 td:nth-of-type(3):before {
    content: "ABET Accredited";
    font-weight: bold;
  }
  .tab17 td:nth-of-type(4):before {
    content: "Degrees Awarded Previous Fall";
    font-weight: bold;
  }
  .tab17 td:nth-of-type(5):before {
    content: "Degrees Awarded Spring";
    font-weight: bold;
  }
  .tab17 td:nth-of-type(6):before {
    content: "Degrees Awarded Summer";
    font-weight: bold;
  }
  .tab17 td:nth-of-type(7):before {
    content: "Degrees Awarded Total";
    font-weight: bold;
  }

  .tab16 td:nth-of-type(1):before {
    content: "Program*";
    font-weight: bold;
  }
  .tab16 td:nth-of-type(2):before {
    content: "Fall 16 Enrollment";
    font-weight: bold;
  }
  .tab16 td:nth-of-type(3):before {
    content: "ABET Accredited";
    font-weight: bold;
  }
  .tab16 td:nth-of-type(4):before {
    content: "Degrees Awarded Fall 2015";
    font-weight: bold;
  }
  .tab16 td:nth-of-type(5):before {
    content: "Degrees Awarded Spring 2016";
    font-weight: bold;
  }
  .tab16 td:nth-of-type(6):before {
    content: "Degrees Awarded Summer 2016";
    font-weight: bold;
  }
  .tab16 td:nth-of-type(7):before {
    content: "Degrees Awarded Total";
    font-weight: bold;
  }

  .tab15 td:nth-of-type(1):before {
    content: "Program*";
    font-weight: bold;
  }
  .tab15 td:nth-of-type(2):before {
    content: "Fall 15 Enrollment";
    font-weight: bold;
  }
  .tab15 td:nth-of-type(3):before {
    content: "ABET Accredited";
    font-weight: bold;
  }
  .tab15 td:nth-of-type(4):before {
    content: "Degrees Awarded Fall 2014";
    font-weight: bold;
  }
  .tab15 td:nth-of-type(5):before {
    content: "Degrees Awarded Spring 2015";
    font-weight: bold;
  }
  .tab15 td:nth-of-type(6):before {
    content: "Degrees Awarded Summer 2015";
    font-weight: bold;
  }
  .tab15 td:nth-of-type(7):before {
    content: "Degrees Awarded Total";
    font-weight: bold;
  }

  .tab14 td:nth-of-type(1):before {
    content: "Program*";
    font-weight: bold;
  }
  .tab14 td:nth-of-type(2):before {
    content: "Fall 14 Enrollment";
    font-weight: bold;
  }
  .tab14 td:nth-of-type(3):before {
    content: "ABET Accredited";
    font-weight: bold;
  }
  .tab14 td:nth-of-type(4):before {
    content: "Degrees Awarded Fall 2013";
    font-weight: bold;
  }
  .tab14 td:nth-of-type(5):before {
    content: "Degrees Awarded Spring 2014";
    font-weight: bold;
  }
  .tab14 td:nth-of-type(6):before {
    content: "Degrees Awarded Summer 2014";
    font-weight: bold;
  }
  .tab14 td:nth-of-type(7):before {
    content: "Degrees Awarded Total";
    font-weight: bold;
  }

  .tab13 td:nth-of-type(1):before {
    content: "Program*";
    font-weight: bold;
  }
  .tab13 td:nth-of-type(2):before {
    content: "Fall 13 Enrollment";
    font-weight: bold;
  }
  .tab13 td:nth-of-type(3):before {
    content: "ABET Accredited";
    font-weight: bold;
  }
  .tab13 td:nth-of-type(4):before {
    content: "Degrees Awarded Fall 2012";
    font-weight: bold;
  }
  .tab13 td:nth-of-type(5):before {
    content: "Degrees Awarded Spring 2013";
    font-weight: bold;
  }
  .tab13 td:nth-of-type(6):before {
    content: "Degrees Awarded Summer 2013";
    font-weight: bold;
  }
  .tab13 td:nth-of-type(7):before {
    content: "Degrees Awarded Total";
    font-weight: bold;
  }
}
