/* Code for the conversion of simple TABLES to DIVs*/
/* DivTable.com */
.divTable{
	display: table;
	width: 100%;
}
.divTableRow {
	display: table-row;
}
.divTableHeading {
	background-color: #EEE;
	display: table-header-group;
}
.divTableCell, .divTableHead {
	border: 1px hidden #999999;
	display: table-cell;
	padding: 3px 10px;
}
.divTableHeading {
	background-color: #EEE;
	display: table-header-group;
	font-weight: bold;
}
.divTableFoot {
	background-color: #EEE;
	display: table-footer-group;
	font-weight: bold;
}
.divTableBody {
	display: table-row-group;
}
/* For newer results tables less than screen width */
.table-centre {
  margin-left: auto; 
  margin-right: auto;
}
.dnnFormItem input{ 
margin: 0; 
padding: 0; 
} 
.html_preview{ 
margin-top:60px; 
} 
/* 
Max width before the tables gets nasty
This query will take effect for any screen smaller than 760px
and also iPads specifically.
*/
@media 
only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px)  {
	/* Force table to not be like tables anymore */
	table, thead, tbody, th, td, tr { 
		display: block; 
		border-collapse: collapse;
	}
	/* Hide table headers (but not display: none;, for accessibility) */
	thead tr { 
		position: absolute;
		top: -9999px;
		left: -9999px;
	}
	tr { border: 1px solid #ccc; }
	td { 
		/* Behave  like a "row" */
		border: none;
/*		border-bottom: 1px solid #eee;  */
		position: relative;
		padding-left: 50%;
        margin-left:100px;
	}
	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;
        margin-left:-100px;
	}

	/*
	Label the Events table
	*/
.programme  td:nth-of-type(1):before { content: "Date"; }
.programme 	td:nth-of-type(2):before { content: "Evènement"; }
.programme 	td:nth-of-type(3):before { content: "Club/Lieu"; }
.programme 	td:nth-of-type(4):before { content: "Contact"; }
.programme 	td:nth-of-type(5):before { content: "Classement"; }
.programme 	td:nth-of-type(6):before { content: "Grade FFV"; }
  	/*
	Label the Results Tables (Named Races)
	*/
.results td:nth-of-type(1):before { content: "Régate"; }
.results td:nth-of-type(2):before { content: "No de Voile"; }
.results td:nth-of-type(3):before { content: "Barreur"; }
.results td:nth-of-type(4):before { content: "Equipier"; }
.results td:nth-of-type(5):before { content: "Club"; }
    /*
	Label the Results Tables (Ranked Finishers)
	*/
.rankresults td:nth-of-type(1):before { content: "Place"; }
.rankresults td:nth-of-type(2):before { content: "No de Voile"; }
.rankresults td:nth-of-type(3):before { content: "Barreur"; }
.rankresults td:nth-of-type(4):before { content: "Equipier"; }
.rankresults td:nth-of-type(5):before { content: "Club"; }
 /*
  Label the Fleet Details table
  */
.fleet td:nth-of-type(1):before { content: "Club"; }
.fleet td:nth-of-type(2):before { content: "Capitaine de Flotte"; }
.fleet td:nth-of-type(3):before { content: "Téléphone"; }
.fleet td:nth-of-type(4):before { content: "Navigation"; }
.fleet td:nth-of-type(5):before { content: "Détails";
}
  /*
  Label the Association Contacts table
  */
.contacts td:nth-of-type(1):before { content: "Fonction"; }
.contacts td:nth-of-type(2):before { content: "Nom"; }
.contacts td:nth-of-type(3):before { content: "Téléphone"; }
.contacts td:nth-of-type(4):before { content: "eMail"; }
   /* 
 Label the Results Summary table 1
  */
  .summarytable td:nth-of-type(1):before { content: "Rang"; }
  .summarytable td:nth-of-type(2):before { content: "No de Voile"; }
  .summarytable td:nth-of-type(3):before { content: "Catégorie"; }
  .summarytable td:nth-of-type(4):before { content: "Nom"; }
  .summarytable td:nth-of-type(5):before { content: "Equipage"; }
  .summarytable td:nth-of-type(6):before { content: "Club"; }
  .summarytable td:nth-of-type(7):before { content: "C1"; }
  .summarytable td:nth-of-type(8):before { content: "c2"; }
  .summarytable td:nth-of-type(9):before { content: "c3"; }
  .summarytable td:nth-of-type(10):before { content: "c4"; }
  .summarytable td:nth-of-type(11):before { content: "c5"; }
  .summarytable td:nth-of-type(12):before { content: "c6"; }
  .summarytable td:nth-of-type(13):before { content: "c7"; }
  .summarytable td:nth-of-type(14):before { content: "c8"; }
  .summarytable td:nth-of-type(15):before { content: "Net"; }
   /*
 Label the Results Summary table 2
  */
  .summarytable2 td:nth-of-type(1):before { content: "Rang"; }
  .summarytable2 td:nth-of-type(2):before { content: "No de Voile"; }
  .summarytable2 td:nth-of-type(3):before { content: "Bateau"; }
  .summarytable2 td:nth-of-type(4):before { content: "Equipage"; }
  .summarytable2 td:nth-of-type(5):before { content: "Points Net"; }
  .summarytable2 td:nth-of-type(6):before { content: "Manche 1"; }
  .summarytable2 td:nth-of-type(7):before { content: "Manche 2"; }
  .summarytable2 td:nth-of-type(8):before { content: "Manche 3"; }
  .summarytable2 td:nth-of-type(9):before { content: "Manche 4"; }
  .summarytable2 td:nth-of-type(10):before { content: "Manche 5"; }
}
/*
  Highlight Top 3 positons in Sailwave Tables
*/
.rank1 {
	background-color: #31acf1 !important;
  	color:darkred;
}
.rank2 {
    background-color: #ffc0cb !important;
   color:darkred;
}
.rank3 {
   background-color: #55ec7a !important;
   color:darkred;
}



