/*   Max width before this PARTICULAR table gets nastyThis query will take effect for any screen smaller than 760pxand also iPads specifically.  */

/*   Force table to not be like tables anymore   */

@media only screen and (max-width: 600px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }
}

/*   Hide table headers (but not display: none;, for accessibility)   */

@media only screen and (max-width: 600px) {
  thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  tr {
    border: 1px solid #ccc;
  }
  td {
    border: none;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 50% !important;
    padding-right: 0.25rem !important;
  }
  td:before {
    position: absolute;
    top: 0.75rem;
    left: 4px;
    width: 45%;
    white-space: nowrap;
  }
  caption {
    width: 80vw;
  }
}

/*   Label the data   */

@media only screen and (max-width: 600px) {
  #consumir-mais td:nth-of-type(1):before {
    content: "Consumir mais";
    font-weight: 800;
  }
  td:nth-of-type(2):before {
    content: "Alvo";
    font-weight: 800;
  }
  td:nth-of-type(3):before {
    content: "Comentarios";
    font-weight: 800;
  }
  #consumir-menos td:nth-of-type(1):before, #consumir-menos-es td:nth-of-type(1):before {
    content: "Consumir menos";
    font-weight: 800;
  }
  #consumir-mas td:nth-of-type(1):before {
    content: "Consumir mas";
    font-weight: 800;
  }
  #consumir-mas td:nth-of-type(2):before, #consumir-menos-es td:nth-of-type(2):before {
    content: "Objetivo";
    font-weight: 800;
  }
  #consumir-mas td:nth-of-type(3):before, #consumir-menos-es td:nth-of-type(3):before {
    content: "Comentarios";
    font-weight: 800;
  }
}

@media only screen and (max-width: 330px) {
  #consumir-menos td:nth-of-type(1):before, #consumir-menos-es td:nth-of-type(1):before {
    content: "Consumir menos";
    max-width: 50%;
    font-weight: 800;
  }
}

