//////////////////////////////////////////
// BASE TABLE CLASSES
//////////////////////////////////////////

table {
	margin: 1rem 0;
	width: 100%;
}

thead{

	@include break($table-fold){
		display: none;
	}
}

tr {
	vertical-align: middle;
	
	tbody &:nth-child(odd){
		background-color: $table-row-highlight;
	}
}

th, td {
	border-bottom: 1px solid #ddd;
	padding: 1rem 0.5rem;
	text-align: left;
	vertical-align: top;

	@include break($table-fold){
		display: block;
		width: auto;
		border-bottom: 0;
		empty-cells: hide !important;
		padding: 0.75rem 0.5rem;
	}

	&:first-child{

		&:empty{

			@include break($table-fold){
				display: block;
			}
		}
	}

	tbody &{

		&[data-title]:before {

			@include break($table-fold){
				content: attr(data-title);
				display: block;
				font-weight: 600;
				text-transform: uppercase;
				color: #555;
			}
		}

		&:empty[data-title]:before{
			content: '';
		}
	}
}

th{
	font-weight: 700;

	thead & {
		border-bottom: 2px solid #999;
	}	
}

td{

	&:empty{

		@include break($table-fold){
			display: none;
		}
	}
}



