/**
 * Quiz Report Styles.
 *
 * @package WDM_Quiz_Report_Customization
 * @since 1.0.0
 */

.wdm-quiz-report-section {
	margin-top: 30px;
	padding: 25px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	clear: both;
}

.wdm-quiz-report-header h3 {
	margin: 0 0 15px 0;
	padding: 0;
	font-size: 18px;
	font-weight: 600;
}

.wdm-quiz-report-filters {
	margin-bottom: 25px;
}

.wdm-quiz-report-course-selector {
	display: flex;
	align-items: center;
	gap: 0px;
	margin-bottom: 25px;
	padding: 15px 0;
}

.wdm-quiz-report-course-selector label {
	font-weight: 600;
	min-width: 97px;
	margin-right: 10px;
	font-size: 14px;
}

.wdm-quiz-report-filters select {
	min-width: 250px;
	padding: 10px 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	margin-right: 15px;
	font-size: 14px;
}

.wdm-quiz-report-filters input[type="button"] {
	padding: 10px 25px;
	cursor: pointer;
	white-space: nowrap;
	font-size: 14px;
	border-radius: 30px;
}

.wdm-quiz-report-search {
	margin-top: 15px;
}

.wdm-quiz-report-search label {
	display: inline-block;
	margin-right: 10px;
	font-weight: 600;
	font-size: 14px;
}

.wdm-quiz-report-search input[type="text"] {
	min-width: 250px;
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.wdm-quiz-report-loading {
	text-align: center;
	padding: 40px;
}

.wdm-quiz-report-loading .dashicons {
	font-size: 32px;
	width: 32px;
	height: 32px;
	margin-bottom: 10px;
}

.wdm-quiz-report-loading .spin {
	animation: wdm-spin 1s linear infinite;
}

@keyframes wdm-spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

.wdm-quiz-report-table-wrapper {
	overflow-x: auto;
	margin-top: 20px;
	-webkit-overflow-scrolling: touch;
}

.wdm-quiz-report-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 600px;
}

.wdm-quiz-report-table th,
.wdm-quiz-report-table td {
	padding: 12px;
	text-align: left;
	border: 1px solid #ddd;
}

.wdm-quiz-report-table thead th {
	background-color: #f5f5f5;
	font-weight: 600;
	position: sticky;
	top: 0;
	z-index: 10;
}

.wdm-quiz-report-table thead th:not(.student-name-col):not(.average-per-student-col) {
	background-color: #f5f5f5;
	z-index: 10;
	position: sticky;
	top: 0;
	width: 1%;
	white-space: nowrap;
	overflow: visible;
	padding: 12px 8px;
}

.wdm-quiz-report-table tbody tr:nth-child(even) {
	background-color: #f9f9f9;
}

.wdm-quiz-report-table tbody tr:hover {
	background-color: #f0f0f0;
}

.wdm-quiz-report-table tfoot td {
	background-color: #f5f5f5;
	font-weight: 600;
}

.wdm-quiz-report-table .student-name-col {
	min-width: 150px;
	max-width: 150px;
	position: sticky;
	left: 0;
	background-color: #fff;
	z-index: 5;
	text-align: left;
	padding-left: 15px;
	border-right: 2px solid #ddd;
	box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
}

.wdm-quiz-report-table thead th.student-name-col {
	background-color: #f5f5f5;
	z-index: 16;
	text-align: left;
	padding-left: 15px;
	border-right: 2px solid #ddd;
	box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
	min-width: 200px;
	max-width: 200px;
	width: 200px;
	position: sticky;
	left: 0;
	top: 0;
}

.wdm-quiz-report-table tbody tr .student-name-col {
	background-color: #fff;
}

.wdm-quiz-report-table tbody tr:nth-child(even) .student-name-col {
	background-color: #f9f9f9;
}

.wdm-quiz-report-table tbody tr:hover .student-name-col {
	background-color: #f0f0f0;
}

.wdm-quiz-report-table tfoot td.student-name-col {
	background-color: #f5f5f5;
	z-index: 14;
	text-align: left;
	padding-left: 15px;
	border-right: 2px solid #ddd;
}

.wdm-quiz-report-empty {
	text-align: center;
	padding: 40px;
	color: #666;
}

.wdm-quiz-report-table td:not(.student-name-col):not(.average-per-student-col) {
	width: 1%;
	text-align: center;
	white-space: nowrap;
	padding: 12px 8px;
}

.wdm-quiz-report-table td.student-name-col {
	text-align: left;
}

.wdm-quiz-report-table td .student-name {
	font-weight: 500;
}

.wdm-quiz-report-table .wdm-no-attempt {
	color: #9ea3ae;
	font-style: italic;
}

.wdm-quiz-report-table .average-per-student-col {
	background-color: #f9f9f9;
	font-weight: 600;
	border-left: 2px solid #ddd;
	width: 1%;
	text-align: center;
	padding: 12px 8px;
	white-space: nowrap;
}

.wdm-quiz-report-table thead th.average-per-student-col {
	background-color: #f5f5f5;
	position: sticky;
	top: 0;
	z-index: 10;
}

.wdm-quiz-report-table tfoot td.average-per-student-col {
	background-color: #f5f5f5;
	font-weight: 600;
}

#tab-2 #wdm_ldgr_group_report td{
	padding:10px 6px !important;
}

@media screen and (max-width: 768px) {
	.wdm-quiz-report-filters .wdm-select-wrapper {
		flex-direction: column;
		align-items: flex-start;
	}

	.wdm-quiz-report-filters select {
		width: 100%;
	}

	.wdm-quiz-report-table-wrapper {
		overflow-x: scroll;
	}
}

