/* 
    Document   : auto-display-table
    Created on : 02/07/2024, 11:01:54 AM
    Author     : Tebalo Thatho
    Description:
        Demonstration of the responsive tables method described at by Chris Coyier
		at http://css-tricks.com/responsive-data-tables/
*/

@media only screen and (max-width: 800px) {
	
	/* Force table to not be like tables anymore */
	#auto-display-table table, 
	#auto-display-table thead, 
	#auto-display-table tbody, 
	#auto-display-table th, 
	#auto-display-table td, 
	#auto-display-table tr { 
		display: block; 
	}

	/* Hide table headers (but not display: none;, for accessibility) */
	#auto-display-table thead tr { 
		position: absolute;
		top: -9999px;
		left: -9999px;
	}

	#auto-display-table tr { border: 1px solid #ccc; }

	#auto-display-table td { 
		/* Behave  like a "row" */
		border: none;
		border-bottom: 1px solid #eee; 
		position: relative;
		padding-left: 50%; 
		white-space: normal;
		text-align:left;
	}

	#auto-display-table td:before { 
		/* Now like a table header */
		position: absolute;
		/* Top/left values mimic padding */
		top: 6px;
		left: 6px;
		width: 45%; 
		padding-right: 10px; 
		white-space: nowrap;
		text-align:left;
		font-weight: bold;
	}

	/*
	Label the data
	*/
	#auto-display-table td:before { content: attr(data-title); }
}
	