.responsive-table {
  overflow-x: auto;
}

table.prog-rows {
  margin: 0 0 10px;
}

table.prog-rows thead {
  background-color: #3d3c6f;
  color: #fff;
}

table.prog-rows thead tr th {
  height: 30px;
}

table.prog-rows td, table.prog-rows th {
  border: none;
  border-bottom: 1px solid #ddd;
  padding: 8px 9px;
  text-align: center;
}

table.prog-rows tbody tr:hover {
  /*background: #fafafa;*/
}

table.prog-rows td:first-child {
  width: 70px;
  height: 50px;
}

table.prog-rows td:last-child {
  padding: 0;
  position: relative;
  width: 20%;
}

table.prog-rows td:last-child a {
  /*position: absolute;*/
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 5px 0;
  text-decoration: none;
}

table.prog-rows td:last-child a button {
  display: block;
    width: 70%;
    padding: 10px 0px;
    margin: 0px auto;
    background-color: #e67e22;
    border-bottom: solid 5px #d35400;
    color: #fff;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;

}

table.prog-rows td:last-child a button span {
  transition: all 0.2s;
  color: #000;
}

table.prog-rows td:last-child a button:hover, 
table.prog-rows td:last-child a button:hover span {
  background: #3d3c6f;
  border-bottom: solid 5px #17163a;
  color: #fff;
}

table.prog-rows td img {
  height: auto;
  width: auto;
}

table.prog-rows th {
  text-transform: uppercase;
  position: relative;
  height: 44px;
  font-size: 0.9em;
}

table.prog-rows th.ex-p {
  padding-right: 10px;
}

table.prog-rows tr:nth-child(even) {
  background: #f5f5f5;
}

table.prog-rows th .sorting {
  display: block;
  position: absolute;
  right: 0;
  top: 0;
  width: 10px;
}

table.prog-rows th .sorting .sort-asc,
table.prog-rows th .sorting .sort-desc {
  cursor: pointer;
  display: inline-block;
  width: 11px;
}

table.prog-rows th .sorting .sort-asc:hover,
table.prog-rows th .sorting .sort-desc:hover {
  background: #000;
  color: #fff
}

table.prog-rows th span {
  /* padding-right: 8px; */
  box-sizing: border-box;
}

.estimated > span {
  display: block;
} 

.date-days {
  font-weight: bold;
}

.date-close {
  color: #efa300;
}

.date-over {
  color: #ff0000;
}

.last-update {
  text-align: center;
  color: #868686;
  font-weight: bold;
}

/* Mobile styling */

@media (max-width: 767px) {

  table.prog-rows td, table.prog-rows th {
    padding: 5px 3px;
  }

  table.prog-rows td:last-child {
    max-width: initial;
    width: initial;
    padding: 5px 3px;
  }

  /* removes linebreak on mobile */
  table.prog-rows td br {
    display: none
  }

  table.prog-rows td:first-child {
    width: initial;
    height: initial;
    text-align: center;
    padding: 10px 0;
  }
}

@media 
only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px)  {

	/* Force table to not be like tables anymore */
	table.prog-rows, table.prog-rows thead, table.prog-rows tbody, table.prog-rows th, table.prog-rows td, table.prog-rows tr { 
		display: block; 
	}
	
	/* Hide table headers (but not display: none;, for accessibility) */
	table.prog-rows thead tr { 
		position: absolute;
		top: -9999px;
		left: -9999px;
	}
	
	table.prog-rows tr { 
    border: 1px solid #ccc;
    margin-bottom: 15px;
  }
	
	table.prog-rows td { 
		/* Behave  like a "row" */
		border: none;
		border-bottom: 1px solid #eee; 
		position: relative;
		padding-left: 50%; 
	}
	
	table.prog-rows td:before { 
		/* Now like a table header */
	  position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    font-weight: bold;
    font-size: 0.9em;
		width: 35%; 
		padding: 0 10px; 
		white-space: initial;
  }
  
  table.prog-rows td,
  table.prog-rows th,
  table.prog-rows td:last-child {
    text-align: left;
    padding-left: 35%;
  }

  table.prog-rows td:last-child {
    height: 40px;
    padding-left: 0;
  }

  table.prog-rows td:last-child a {
    padding: 0;
    
  }

  table.prog-rows td:last-child a button {
    max-width: 150px;
  }
	
	/*
	Label the data
  */
  table.prog-rows td:nth-of-type(1):before { content: ""; }
  table.prog-rows td:nth-of-type(2):before { content: "Slot"; }
	table.prog-rows td:nth-of-type(3):before { content: "Current Jackpot"; }
	table.prog-rows td:nth-of-type(4):before { content: "Avg. Jackpot Hit"; }
	table.prog-rows td:nth-of-type(5):before { content: "Jackpot Day Estimate"; }
	/*td:nth-of-type(6):before { content: "Available at"; }
}