/* For newer results tables less than screen width */
.table-centre {
  margin-left: auto; 
  margin-right: auto;
}
.dnnFormItem input{ 
margin: 0 !important; 
padding: 0 !important; 
} 
.html_preview{ 
margin-top:60px; 
} 
/* = table-dark in Bootstrap 5  */
.thead-dark{--bs-table-color:#fff;--bs-table-bg:#212529;--bs-table-border-color:#373b3e;--bs-table-striped-bg:#2c3034;--bs-table-striped-color:#fff;--bs-table-active-bg:#373b3e;--bs-table-active-color:#fff;--bs-table-hover-bg:#323539;--bs-table-hover-color:#fff;color:var(--bs-table-color);border-color:var(--bs-table-border-color)
}
/* 
Max width before the FFI 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;
	}
	/* Past Officers  */
.officers td:nth-of-type(1):before { content: "Year"; }
.officers td:nth-of-type(2):before { content: "Commodore"; }
.officers td:nth-of-type(3):before { content: "Treasurer"; }
.officers td:nth-of-type(4):before { content: "Secretary"; }
.officers td:nth-of-type(5):before { content: "Chief Measurer"; }
	/* Label the FFI Council Table */
.council td:nth-of-type(1):before { content: "Country"; }
.council td:nth-of-type(2):before { content: "Name"; }
	/*
	Label the Boat Register table
	*/
.register td:nth-of-type(1):before { content: "Boat Number"; }
.register td:nth-of-type(2):before { content: "Builder"; }
.register td:nth-of-type(3):before { content: "Material"; }
.register td:nth-of-type(4):before { content: "Comments"; }
.register td:nth-of-type(5):before { content: "Measured"; }
.register td:nth-of-type(6):before { content: "Names(s)"; }
.register td:nth-of-type(7):before { content: "Successes"; }
  	/*
	Label the Results Tables (Winners)
	*/
.winners td:nth-of-type(1):before { content: "Year"; }
.winners td:nth-of-type(2):before { content: "Sail No."; }
.winners td:nth-of-type(3):before { content: "Name"; }
.winners td:nth-of-type(4):before { content: "Country"; }
.winners td:nth-of-type(5):before { content: "Host or Club"; }
    /*
	Label the Results Tables (Trophies Helm & Crew)
	*/
.trophiesA td:nth-of-type(1):before { content: "Year"; }
.trophiesA td:nth-of-type(2):before { content: "Sail No."; }
.trophiesA td:nth-of-type(3):before { content: "Boat Name"; }
.trophiesA td:nth-of-type(4):before { content: "Helm Name"; }
.trophiesA td:nth-of-type(5):before { content: "Crew Name"; }
.trophiesA td:nth-of-type(6):before { content: "Country"; }
   /*
	Label the Results Tables (Trophies Helm or Crew. No Boat Name)
	*/
.trophiesB td:nth-of-type(1):before { content: "Year"; }
.trophiesB td:nth-of-type(2):before { content: "Sail No."; }
.trophiesB td:nth-of-type(3):before { content: "Name"; }
.trophiesB td:nth-of-type(4):before { content: "Country"; }
  /* 
 Label the Sailwave Results Summary table
  */
.summarytable td:nth-of-type(1):before { content: "Sail No."; }
.summarytable td:nth-of-type(2):before { content: "Helm Name"; }
.summarytable td:nth-of-type(3):before { content: "Crew Name"; }
.summarytable td:nth-of-type(4):before { content: "Position"; }
.summarytable td:nth-of-type(5):before { content: "Race 1"; }
.summarytable td:nth-of-type(6):before { content: "Race 2"; }
.summarytable td:nth-of-type(7):before { content: "Race 3"; }
.summarytable td:nth-of-type(8):before { content: "Race 4"; }
.summarytable td:nth-of-type(9):before { content: "Race 5"; }
.summarytable td:nth-of-type(10):before { content: "Race 6"; }
.summarytable td:nth-of-type(11):before { content: "Race 7"; }
.summarytable td:nth-of-type(12):before { content: "Points"; }
  /* 
 Label the Sailwave Results Summary table version 2
  */
.summarytable2 td:nth-of-type(1):before { content: "Position"; }
.summarytable2 td:nth-of-type(2):before { content: "Sail No."; }
.summarytable2 td:nth-of-type(3):before { content: "Helm Name"; }
.summarytable2 td:nth-of-type(4):before { content: "Crew Name"; }
.summarytable2 td:nth-of-type(5):before { content: "Club"; }
.summarytable2 td:nth-of-type(6):before { content: "Race 1"; }
.summarytable2 td:nth-of-type(7):before { content: "Race 2"; }
.summarytable2 td:nth-of-type(8):before { content: "Race 3"; }
.summarytable2 td:nth-of-type(9):before { content: "Race 4"; }
.summarytable2 td:nth-of-type(10):before { content: "Race 5"; }
.summarytable2 td:nth-of-type(11):before { content: "Race 6"; }
.summarytable2 td:nth-of-type(12):before { content: "Race 7"; }
.summarytable2 td:nth-of-type(13):before { content: "Gross"; }
.summarytable2 td:nth-of-type(14):before { content: "Nett"; }
   /* 
 Label the Worlds Results Summary table 
  */
.worldsresults td:nth-of-type(1):before { content: "Rank"; }
.worldsresults td:nth-of-type(2):before { content: "Boat No."; }
.worldsresults td:nth-of-type(3):before { content: "Fleet"; }
.worldsresults td:nth-of-type(4):before { content: "Boat Name"; }
.worldsresults td:nth-of-type(5):before { content: "Helm Name"; }
.worldsresults td:nth-of-type(6):before { content: "Race 1"; }
.worldsresults td:nth-of-type(7):before { content: "Race 2"; }
.worldsresults td:nth-of-type(8):before { content: "Race 3"; }
.worldsresults td:nth-of-type(9):before { content: "Race 4"; }
.worldsresults td:nth-of-type(10):before { content: "Race 5"; }
.worldsresults td:nth-of-type(11):before { content: "Race 6"; }
.worldsresults td:nth-of-type(12):before { content: "Race 7"; }
.worldsresults td:nth-of-type(13):before { content: "Race 8"; }
.worldsresults td:nth-of-type(14):before { content: "Race 9"; }
.worldsresults td:nth-of-type(15):before { content: "Race 10"; }
.worldsresults td:nth-of-type(16):before { content: "Race 11"; }
.worldsresults td:nth-of-type(17):before { content: "Race 12"; }
.worldsresults td:nth-of-type(18):before { content: "Total"; }
.worldsresults td:nth-of-type(19):before { content: "Nett"; }
   /* 
 Label the Worlds Results 2023 Summary table 
  */
.worldsresults23 td:nth-of-type(1):before { content: "Rank"; }
.worldsresults23 td:nth-of-type(2):before { content: "Boat No."; }
.worldsresults23 td:nth-of-type(3):before { content: "Boat Name"; }
.worldsresults23 td:nth-of-type(4):before { content: "Helm / Crew"; }
.worldsresults23 td:nth-of-type(5):before { content: "Total"; }
.worldsresults23 td:nth-of-type(6):before { content: "Nett"; }
.worldsresults23 td:nth-of-type(7):before { content: "Race 1"; }
.worldsresults23 td:nth-of-type(8):before { content: "Race 2"; }
.worldsresults23 td:nth-of-type(9):before { content: "Race 3"; }
.worldsresults23 td:nth-of-type(10):before { content: "Race 4"; }
.worldsresults23 td:nth-of-type(11):before { content: "Race 5"; }
.worldsresults23 td:nth-of-type(12):before { content: "Race 6"; }
.worldsresults23 td:nth-of-type(13):before { content: "Race 7"; }
.worldsresults23 td:nth-of-type(14):before { content: "Race 8"; }
.worldsresults23 td:nth-of-type(15):before { content: "Race 9"; }
.worldsresults23 td:nth-of-type(16):before { content: "Race 10"; }
   /* 
 Label the European Results Summary table 
  */
.europeresults td:nth-of-type(1):before { content: "Position"; }
.europeresults td:nth-of-type(2):before { content: "Boat No."; }
.europeresults td:nth-of-type(3):before { content: "Helm"; }
.europeresults td:nth-of-type(4):before { content: "Crew"; }
.europeresults td:nth-of-type(5):before { content: "Club or Boat"; }
.europeresults td:nth-of-type(6):before { content: "Race 1"; }
.europeresults td:nth-of-type(7):before { content: "Race 2"; }
.europeresults td:nth-of-type(8):before { content: "Race 3"; }
.europeresults td:nth-of-type(9):before { content: "Race 4"; }
.europeresults td:nth-of-type(10):before { content: "Race 5"; }
.europeresults td:nth-of-type(11):before { content: "Race 6"; }
.europeresults td:nth-of-type(12):before { content: "Race 7"; }
.europeresults td:nth-of-type(13):before { content: "Race 8"; }
.europeresults td:nth-of-type(14):before { content: "Race 9"; }
.europeresults td:nth-of-type(15):before { content: "Race 10"; }
.europeresults td:nth-of-type(16):before { content: "Total"; }
.europeresults td:nth-of-type(17):before { content: "Nett"; }
  /* 
 Label the Sailwave Results Summary table - 10 race nationals with fleet
  */
.summarytable-nats24 td:nth-of-type(1):before { content: "Rank"; }
.summarytable-nats24 td:nth-of-type(2):before { content: "Fleet"; }
.summarytable-nats24 td:nth-of-type(3):before { content: "Boat Name"; }
.summarytable-nats24 td:nth-of-type(4):before { content: "Sail No."; }
.summarytable-nats24 td:nth-of-type(5):before { content: "Club"; }
.summarytable-nats24 td:nth-of-type(6):before { content: "Helm Name"; }
.summarytable-nats24 td:nth-of-type(7):before { content: "Crew Name"; }
.summarytable-nats24 td:nth-of-type(8):before { content: "Race 1"; }
.summarytable-nats24 td:nth-of-type(9):before { content: "Race 2"; }
.summarytable-nats24 td:nth-of-type(10):before { content: "Race 3"; }
.summarytable-nats24 td:nth-of-type(11):before { content: "Race 4"; }
.summarytable-nats24 td:nth-of-type(12):before { content: "Race 5"; }
.summarytable-nats24 td:nth-of-type(13):before { content: "Race 6"; }
.summarytable-nats24 td:nth-of-type(14):before { content: "Race 7"; }
.summarytable-nats24 td:nth-of-type(15):before { content: "Race 8"; }
.summarytable-nats24 td:nth-of-type(16):before { content: "Race 9"; }
.summarytable-nats24 td:nth-of-type(17):before { content: "Race 10"; }
.summarytable-nats24 td:nth-of-type(18):before { content: "Total"; }
.summarytable-nats24 td:nth-of-type(19):before { content: "Nett"; }
  /*
  Label the Fixtures List
  */
.fixtures td:nth-of-type(1):before { content: "Dates"; }
.fixtures td:nth-of-type(2):before { content: "Event"; }
/* End of Collapse tables brace - do not remove */
}
/*
  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;
}
/* 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;
}



