/*
 * #Tables
 */

/*
 * Tables (displayed as <table>)
 */

table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
}

table th,
table td {
	overflow: hidden;
	padding: 0.75em 0.875em;
	text-align: left;
	text-overflow: ellipsis;
}

table td {
	color: #777;
}

/*
 * thead styling
 */

table.rwd__tbl_thead th {
	background: #333;
	color: #fff;
	font-weight: 700;
}

/*
 * Zebra striping table rows
 */

table.rwd__tbl_zebra tr:nth-of-type(odd) {
	background: #eee;
}

/*
 * Horizontal dividers
 */

table.rwd__tbl_hd th,
table.rwd__tbl_hd td {
	border-bottom: 1px solid #ddd;
}

/*
 * Tables (displayed as <div>s)
 */

/*! Copyright (c) 2014-2016 Chris Nager  https://github.com/chrisnager/ungrid (The MIT License (MIT)) */

.rwd__tbl {
	display: table;
	width: 100%;
	table-layout: fixed;
}

.rwd__tbl_cell {
	display: table-cell;
}

/*
 * Tables with middle vertical alignment
 */

.rwd__tbl_vertical_align__middle .rwd__tbl_cell {
	vertical-align: middle;
}

/*
 * Media Queries
 */

@media only screen and (max-width: 640px) {
	/*
	 * Tables with middle vertical alignment
	 */
	.rwd__tbl {
		display: block;
	}

	.rwd__tbl .rwd__tbl_cell {
		display: inline-block;
		width: 100%;
		padding: 0.25em 0;
	}
}
