/*
 Max width before this PARTICULAR table gets nasty.
 This query will take effect for any screen smaller than 760px and also iPads specifically.
*/

@media only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1280px) {

  /* 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(odd) {
    background: #ccc;
  }

  td {
    /* Behave  like a "row" */
    border: none;
    border-bottom: 1px solid #eee;
    position: relative;
  }

  td:before {
    /* Now like a table header */
    position: absolute;
    /* Top/left values mimic padding */
    top: 0;
    left: 6px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    text-align: left;
  }

  /* Label the data
    You could also use a data-* attribute and content for this. That way "bloats" the HTML,
    this way means you need to keep HTML and CSS in sync. Lea Verou has a clever way to handle with text-shadow.
	*/

  /*? Encabezados tabla titulares */
  #table_titulares td:nth-of-type(1):before {
    content: "NOMBRES";
  }

  #table_titulares td:nth-of-type(2):before {
    content: "CURP";
  }

  #table_titulares td:nth-of-type(3):before {
    content: "TELÉFONO";
  }

  #table_titulares td:nth-of-type(4):before {
    content: "ACCIÓN";
  }

  /*? Encabezados tabla vehiculos */
  #table_cars td:nth-of-type(1):before {
    content: "TITULAR";
  }

  #table_cars td:nth-of-type(2):before {
    content: "ENGOMADO";
  }

  #table_cars td:nth-of-type(3):before {
    content: "SERIE";
  }

  #table_cars td:nth-of-type(4):before {
    content: "LOTERO";
  }

  #table_cars td:nth-of-type(5):before {
    content: "EXPEDICIÓN";
  }

  #table_cars td:nth-of-type(6):before {
    content: "ACCIÓN";
  }

  #table_cars td:nth-of-type(7):before {
    content: "ARCHIVO";
  }

  /*? Encabezados tabla adicionales */
  #table_aditionals td:nth-of-type(1):before {
    content: "NOMBRES";
  }

  #table_aditionals td:nth-of-type(2):before {
    content: "SERIE";
  }

  #table_aditionals td:nth-of-type(3):before {
    content: "ENGOMADO";
  }

  #table_aditionals td:nth-of-type(4):before {
    content: "ACCIÓN";
  }

  #table_aditionals td:nth-of-type(5):before {
    content: "DOC";
  }

  /*? Encabezados tabla engomados */
  #table_engomados td:nth-of-type(1):before {
    content: "ENGOMADO";
  }

  #table_engomados td:nth-of-type(2):before {
    content: "SUCURSAL";
  }

  #table_engomados td:nth-of-type(3):before {
    content: "ESTADO";
  }

  #table_engomados td:nth-of-type(4):before {
    content: "FECHA DE REGISTRO";
  }

  /*? Encabezados tabla loteros */
  #table_loteros td:nth-of-type(1):before {
    content: "NOMBRES";
  }

  #table_loteros td:nth-of-type(2):before {
    content: "ALIAS";
  }

  #table_loteros td:nth-of-type(3):before {
    content: "TELÉFONO";
  }

  #table_loteros td:nth-of-type(4):before {
    content: "SUCURSAL";
  }

  #table_loteros td:nth-of-type(5):before {
    content: "PLAN";
  }

  /*? Encabezados tabla renovaciones */
  #table_renovations td:nth-of-type(1):before {
    content: "NOMBRES";
  }

  #table_renovations td:nth-of-type(2):before {
    content: "TELÉFONO";
  }

  #table_renovations td:nth-of-type(3):before {
    content: "ENGOMADO";
  }

  #table_renovations td:nth-of-type(4):before {
    content: "VENCIMIENTO";
  }

  #table_renovations td:nth-of-type(5):before {
    content: "SUCURSAL";
  }

  #table_renovations td:nth-of-type(6):before {
    content: "RENOVAR";
  }

  /*? Encabezados tablas home */
  #tables_home td:nth-of-type(1):before {
    content: "ALTAS";
  }

  #tables_home td:nth-of-type(2):before {
    content: "ADICIONALES";
  }

  #tables_home td:nth-of-type(3):before {
    content: "CAMBIOS DE PROPIETARIO";
  }

  #tables_home td:nth-of-type(4):before {
    content: "TRASLADOS";
  }

  #tables_home td:nth-of-type(5):before {
    content: "CAMBIOS DE ORGANIZACIÓN";
  }

  #tables_home td:nth-of-type(6):before {
    content: "RENOVACIONES";
  }

  /*? Encabezados tablas cuentas */
  #cuentas td:nth-of-type(1):before {
    content: "TITULAR";
  }

  #cuentas td:nth-of-type(2):before {
    content: "ENGOMADO";
  }

  #cuentas td:nth-of-type(3):before {
    content: "LOTERO";
  }

  #cuentas td:nth-of-type(4):before {
    content: "MONTO";
  }

  #cuentas td:nth-of-type(5):before {
    content: "SUCURSAL";
  }

  #cuentas td:nth-of-type(6):before {
    content: "SALDAR";
  }

  #cuentas td:nth-of-type(7):before {
    content: "FECHA";
  }

  /*? Encabezados tabla traslados */
  #table_traslados td:nth-of-type(1):before {
    content: "CHÓFER";
  }

  #table_traslados td:nth-of-type(2):before {
    content: "ENGOMADO";
  }

  #table_traslados td:nth-of-type(3):before {
    content: "SERIE";
  }

  #table_traslados td:nth-of-type(4):before {
    content: "LOTERO";
  }

  #table_traslados td:nth-of-type(5):before {
    content: "ACCIÓN";
  }

  #table_traslados td:nth-of-type(6):before {
    content: "DOCS";
  }

  /*? Encabezados tabla asistencias */
  #table_asistencias td:nth-of-type(1):before {
    content: "NOMBRES";
  }

  #table_asistencias td:nth-of-type(2):before {
    content: "ENTRADA";
  }

  #table_asistencias td:nth-of-type(3):before {
    content: "ENTRADA REAL";
  }

  #table_asistencias td:nth-of-type(4):before {
    content: "SALIDA";
  }

  #table_asistencias td:nth-of-type(5):before {
    content: "SALIDA REAL";
  }

  table.bodywrapcenter>tr>td {
    width: 100%;
    float: left;
  }
}