﻿.PilotRatingSection .devkit-table {
	max-width: 768px;
}

.devkit-single-select-dropdown-wrapper fieldset .questionnaire .PilotRatingSection .devkit-form-row input[type='checkbox'] {
	width: 20px;
	min-width: 0;
}

@media screen and (max-width: 800px) {
	/* Width <= 800px */
	.PilotRatingSection .devkit-table {
		width: initial;
	}

	.PilotRatingSection .devkit-simple-table-wrapper .devkit-table {
		border-bottom: 0
	}

	.PilotRatingSection .devkit-simple-table-wrapper .devkit-table thead {
		display: none;
	}

	.PilotRatingSection .devkit-simple-table-wrapper .devkit-table tr {
		border-bottom: 1px solid #cccccc;
		display: block;
	}

	/* Stack table cells on small screen */
	.PilotRatingSection .devkit-simple-table-wrapper .devkit-table tbody td {
		border: 0;
		display: block;
		text-align: left;
	}

	/* Hide empty td cells on small screen */
	.PilotRatingSection .devkit-simple-table-wrapper .devkit-table tbody td.empty {
		display: none;
	}

	.PilotRatingSection .devkit-simple-table-wrapper .devkit-table tbody td .input-label {
		display: inline-block;
		font-size: 0.875rem;
		font-weight: bold;
	}
}

@media screen and (min-width: 801px) {
	/* Width >= 801px */
	.PilotRatingSection .devkit-simple-table-wrapper .devkit-table tbody td .input-label span {
		display: none;
	}

	.PilotRatingSection .devkit-table thead tr > th:nth-child(1) {
		width: 185px;
	}

	.PilotRatingSection .devkit-table thead tr > th:nth-child(2),
	.PilotRatingSection .devkit-table thead tr > th:nth-child(5) {
		width: 120px;
	}

	.PilotRatingSection .devkit-table thead tr > th:nth-child(3),
	.PilotRatingSection .devkit-table thead tr > th:nth-child(4) {
		width: 80px;
	}
	
	.PilotRatingSection .devkit-table tr th, .PilotRatingSection .devkit-table tr td {
		text-align: center;
	}

	.PilotRatingSection .devkit-table tr > th:nth-child(1), .PilotRatingSection .devkit-table tr > td:nth-child(1) {
		text-align: left;
	}
}

/* TODO Fix table widths between 960px and (1015px+margin) */