/* 
Generic Styling, for Desktops/Laptops 
*/
table { 
    width: 100%; 
    border-collapse: collapse; 
  }
  /* Zebra striping */
  tr:nth-of-type(odd) { 
    background: #eee; 
  }
  th { 
    background: rgb(214, 211, 211); 
    color: white; 
    font-weight: bold; 
  }
  td, th { 
    padding: 6px; 
    border: 1px solid #ccc; 
    text-align: left; 
  }



  /* 
styling for mobile
*/
@media only screen and (max-width: 760px), (min-device-width: 768px) and (max-device-width: 1024px)  {

	table, thead, tbody, th, td, tr { 
		display: block; 
	}
	/* Makes hader out of view */
	thead tr { 
		position: absolute;
		top: -99999px;
		left: -99999px;
	}
	
	tr { border: 1px solid #ccc; }
	
	td { 
		/* Behave  like a "row" */
		border: none;
		border-bottom: 1px solid #eee; 
		position: relative;
		padding-left: 50%; 
    }
    tr { margin-bottom: 15px}
	
	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;
	}

	/* Repayment Table */

	.repayment-table td:nth-of-type(1):before { content: "PaymentID"; }
	.repayment-table td:nth-of-type(2):before { content: "Date Paid"; }
	.repayment-table td:nth-of-type(3):before { content: "Amount Paid"; }
	.repayment-table td:nth-of-type(4):before { content: "Loan Balance"; }
}
