/*!
// CSS only Responsive Tables
// http://dbushell.com/2016/03/04/css-only-responsive-tables/
// by David Bushell
*/

.rtable {
  /*!
  // IE needs inline-block to position scrolling shadows otherwise use:
  // display: block;
  // max-width: min-content;
  */
  display: table;
  vertical-align: top;
  max-width: 100%;
  font-family: sans-serif;
  margin: 0 auto 20px;
  background: #fff;
  
  overflow-x: auto;
  
  /* optional - looks better for small cell values */
  white-space: nowrap;

  border-collapse: collapse;
  border-spacing: 0;
}

.rtable,
.rtable--flip tbody {
  /* optional - enable iOS momentum scrolling */
  -webkit-overflow-scrolling: touch;
  
  /* scrolling shadows */
  background: radial-gradient(left, ellipse, rgba(0,0,0, .2) 0%, rgba(0,0,0, 0) 75%) 0 center,
              radial-gradient(right, ellipse, rgba(0,0,0, .2) 0%, rgba(0,0,0, 0) 75%) 100% center;
  background-size: 10px 100%, 10px 100%;
  background-attachment: scroll, scroll;
  background-repeat: no-repeat;
}

.rtable thead th {
	text-align: center;
}

.rtable thead th:first-child {
	width: 50%;
	text-align: left;
}

.rtable td {
	font-size: 0.7em;
	line-height: 1.3em;
	text-align: center;
}

/* change these gradients from white to your background colour if it differs */
/* gradient on the first cells to hide the left shadow */
.rtable td:first-child,
.rtable--flip tbody tr:first-child {
  background-image: linear-gradient(to right, rgba(255,255,255, 1) 50%, rgba(255,255,255, 0) 100%);
  background-repeat: no-repeat;
  background-size: 20px 100%;
}
.rtable td:first-child {
	font-size: 0.7em;
	text-align: left;
}

/* gradient on the last cells to hide the right shadow */
.rtable td:last-child,
.rtable--flip tbody tr:last-child {
  background-image: linear-gradient(to left, rgba(255,255,255, 1) 50%, rgba(255,255,255, 0) 100%);
  background-repeat: no-repeat;
  background-position: 100% 0;
  background-size: 20px 100%;
}

.rtable th {
  font-size: 11px;
  text-align: left;
  text-transform: uppercase;
  background: #efefef;
}

.rtable th,
.rtable td {
  padding: 6px 12px;
  border: 1px solid #d9d7ce;
}
.rtable tr:hover {
	background: #f7f7f7;
}

/*
.rtable tr td a {
	padding: 6px 0;
	display: block;
}
.rtable tr td a:hover {
	background: #66cccc;
	color: #FFF;
}
*/