/* 
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: 1024px)  {

  .even {
    background: transparent;
  }
  
  .location td {
    white-space: nowrap;
  }
  
  /* Force table to not be like tables anymore */
  table.overview,
  table.overview thead,
  table.overview tbody,
  table.overview th,
  table.overview td,
  table.overview tr { 
    display: block;
    padding: 0;
    margin: 0;
  }
  
  table.overview .tb-delete {
    text-align: left;
  }
	
	table.overview th.th-first {
		display: none;
	}
  
  /* Hide table headers (but not display: none;, for accessibility) */
  table.overview thead tr { 
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  
  table.overview tr {
    border: none;
  }
  
  table.overview td.tb-max,
  table.overview td.tb-totalbids,
  table.overview td.tb-startprice,
  table.overview td.tb-end,
  table.overview td.tb-icon		{ 
    /* Behave  like a "row" */
    border: none; 
    position: relative;
    padding-left: 40% !important;
    width: 100%;
    text-align: left;
    font-style: normal;
  }
  
  table.overview em {
    font-style: normal;
  }
  
  table.overview td {
    padding: 4px 0 2px 0;
  }
  
  table.overview td.tb-device {
    background: #f0f0f0;
    margin-top: 20px;
    padding: 3px 3px 0 3px;
  }
  
  table.overview td.tb-device .floatleft {
    float: left;
    margin-right: 12px;
  }
  
  table.overview td:before { 
    /* Now like a table header */
    position: absolute;
    /* Top/left values mimic padding */
    top: 10px;
    left: 6px;
    width: 110px; 
    padding-right: 10px; 
    white-space: nowrap;
    text-align: left;
    font-weight: bold;
  }
  
  table.overview td:after {
    content: " ";
    clear: both;
  }
  
  /*
  Label the data
  */
  table.overview td:nth-of-type(1):before { content: ""; }
  table.overview td:nth-of-type(2):before { content: "Auktionsende:"; }
  table.overview td:nth-of-type(3):before { content: "Startpreis:"; }
  table.overview td:nth-of-type(4):before { content: "Höchstgebot:"; }
  table.overview td:nth-of-type(5):before { content: "Gebote:"; }
  table.overview td:nth-of-type(6):before { content: "Bietagent:"; }
  
  table.overview.watchlist td:nth-of-type(6):before { content: ""; }
}

/* Smartphones (portrait and landscape) ----------- */
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
  
  body { 
    padding: 0; 
    margin: 0; 
    width: 100%;
  }
}

/* iPads (portrait and landscape) ----------- */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
  
  body { 
    width: 100%; 
  }
}