table#modulesTable td[data-column="name"] {font-weight: bold; text-align: left !important;}

#fieldsTable td:nth-child(n+6) { font-family: var(--fa-style-family-classic); font-size: 0.65em !important;  }
#fieldsTable td:nth-child(n+6):before { font-family: var(--font-family); font-size: 150%; }

/* Hide Key for current users */
body:not(.wowmaster) table#modulesTable	*[data-column="key"] {display: none;}

/* Hide non editable fields for current users */
body:not(.wowmaster) table#fieldsTable tbody tr:not( :has( td[data-column="actions"] a)) { display: none }

/* Hide exposed column for current users */
body:not(.wowmaster) table#fieldsTable tr *[data-column="exposed"]  { display: none; }

/* Hide empty columns for current users  */
body:not(.wowmaster) table#fieldsTable tr *[data-column="list source"],
body:not(.wowmaster) table#fieldsTable tr *[data-column="validation"],
body:not(.wowmaster) table#fieldsTable tr *[data-column="confirm"] { display: none; }
body:not(.wowmaster) table#fieldsTable td[data-column="list source"]:not(:empty),
body:not(.wowmaster) table#fieldsTable tbody:not(.wowmaster):has(  td[data-column="list source"]:not(:empty) ) td[data-column="list source"] ,
body:not(.wowmaster) table#fieldsTable thead:has( + tbody:not(.wowmaster) td[data-column="list source"]:not(:empty) ) th[data-column="list source"]
body:not(.wowmaster) table#fieldsTable td[data-column="validation"]:not(:empty),
body:not(.wowmaster) table#fieldsTable tbody:not(.wowmaster):has(  td[data-column="validation"]:not(:empty) ) td[data-column="validation"] ,
body:not(.wowmaster) table#fieldsTable thead:has( + tbody:not(.wowmaster) td[data-column="validation"]:not(:empty) ) th[data-column="validation"],
body:not(.wowmaster) table#fieldsTable td[data-column="confirm"]:not(:empty),
body:not(.wowmaster) table#fieldsTable tbody:not(.wowmaster):has(  td[data-column="confirm"]:not(:empty) ) td[data-column="confirm"] ,
body:not(.wowmaster) table#fieldsTable thead:has( + tbody:not(.wowmaster) td[data-column="confirm"]:not(:empty) ) th[data-column="confirm"] { display: table-row; }

/*  /home -> modulesTable .data */
table.data#modulesTable th:nth-child(1),
table.data#modulesTable th:nth-child(2),
table.data#modulesTable th:nth-last-child(1) { width: 1px; white-space: nowrap; }
table.data#modulesTable td:nth-child(1),
table.data#modulesTable td:nth-child(2),
table.data#modulesTable td:nth-last-child(1) { width: 1px; white-space: nowrap; text-align: center; }
table.data#modulesTable td {text-align: center;}

/*  (from) vertical tablet  */
@media screen and (min-width: 768px)
{
	table#previewTable td[data-column="approved"],
	table#previewTable td[data-column="answered"] { text-align: center; }

	/*  /module/:id/dataset -> datasetsTable  */
	table#datasetsTable th:nth-child(1) { width: 1px; white-space: nowrap; }
	table#datasetsTable td:nth-child(1) { width: 1px; white-space: nowrap; text-align: center; }

	/*  /module/:id/dataset/set/:id -> datasetDataTable  */
	table#datasetDataTable td { text-align: center; }
	table#datasetDataTable th { white-space: nowrap; }
	table#datasetDataTable th:last-child { width: 100%; }
	table#datasetDataTable td:last-child { width: 100%; text-align: left; }

	/*  /module/:id/fields -> fieldsTable  */
	table#fieldsTable th:nth-child(1),
	table#fieldsTable th:nth-child(n+3),
	table#fieldsTable td:nth-child(1),
	table#fieldsTable td:nth-child(n+3) { width: 1px; white-space: nowrap; text-align: center; }
	table#fieldsTable td:nth-child(2) { min-width: 10em; font-weight: bold;}

	/* Hide empty columns for current users  */
	body:not(.wowmaster) table#fieldsTable td[data-column="list source"]:not(:empty),
	body:not(.wowmaster) table#fieldsTable tbody:not(.wowmaster):has(  td[data-column="list source"]:not(:empty) ) td[data-column="list source"] ,
	body:not(.wowmaster) table#fieldsTable thead:has( + tbody:not(.wowmaster) td[data-column="list source"]:not(:empty) ) th[data-column="list source"]
	body:not(.wowmaster) table#fieldsTable td[data-column="validation"]:not(:empty),
	body:not(.wowmaster) table#fieldsTable tbody:not(.wowmaster):has(  td[data-column="validation"]:not(:empty) ) td[data-column="validation"] ,
	body:not(.wowmaster) table#fieldsTable thead:has( + tbody:not(.wowmaster) td[data-column="validation"]:not(:empty) ) th[data-column="validation"],
	body:not(.wowmaster) table#fieldsTable td[data-column="confirm"]:not(:empty),
	body:not(.wowmaster) table#fieldsTable tbody:not(.wowmaster):has(  td[data-column="confirm"]:not(:empty) ) td[data-column="confirm"] ,
	body:not(.wowmaster) table#fieldsTable thead:has( + tbody:not(.wowmaster) td[data-column="confirm"]:not(:empty) ) th[data-column="confirm"]  { display: table-cell; }

	/*  /module/:id/data -> dataTable  */
	table#dataTable th:nth-child(1),
	table#dataTable th:nth-child(2){ width: 1px; white-space: nowrap; }
	table#dataTable td:nth-child(1),
	table#dataTable td:nth-child(2) { width: 1px; white-space: nowrap; text-align: center; }
	table#dataTable td:nth-last-child(1) { text-align: center; }
	table#dataTable td[data-type=checkbox] { text-align: center; }

	/*  import csv -> csvTable  */
	table#csvTable th:nth-child(1) { width: 1px; white-space: nowrap; }
	table#csvTable td:nth-child(1) { width: 1px; white-space: nowrap; text-align: center; }

	/*  ecousersTable  */
	table#ecousersTable th:nth-child(1),
	table#ecousersTable th:nth-child(2),
	table#ecousersTable th:nth-last-child(1) { width: 1px; white-space: nowrap; }
	table#ecousersTable td:nth-child(1),
	table#ecousersTable td:nth-child(2),
	table#ecousersTable td:nth-last-child(1) { width: 1px; white-space: nowrap; text-align: center; }

	/*  ecousersModules  */
	table#ecousersModules th:nth-child(1),
	table#ecousersModules th:nth-child(2),
	table#ecousersModules th:nth-child(3),
	table#ecousersModules th:nth-last-child(1) { width: 1px; white-space: nowrap; }
	table#ecousersModules td:nth-child(1),
	table#ecousersModules td:nth-child(2),
	table#ecousersModules td:nth-child(3),
	table#ecousersModules td:nth-last-child(1) { width: 1px; white-space: nowrap; text-align: center; }
}

/*  (only) vertical tablet  */
@media screen and (min-width: 768px) and (max-width: 1023px)
{
	/*  /module/:id/register -> registerTable  */
	table#registerTable th:nth-child(4),
	table#registerTable th:nth-child(5) { display: none; }
	table#registerTable td:nth-child(4),
	table#registerTable td:nth-child(5) { display: none; }
}
