/* Variables. */
:root {
	--mr-text-color: #294C74;
}

/* Global CSS. */
.mila-reports p {
	margin: 0;
	padding: 0;
	color: var(--mr-text-color);
}

.mila-reports strong {
	font-weight: 600;
}

.mila-reports select,
.mila-reports select:focus {
	position: relative;
	padding: 10px 20px;
	border: none;
	border-left: 16px solid transparent;
	border-radius: 4px;
	outline: 1px solid #294C74;
}

.mila-reports .button,
.mila-reports .button:hover {
	font-weight: 600;
	background-color: #EE6632;
	color: #fff;
	border: 1px solid #EE6632;
}

.mila-reports table {
	width: 100%;
	border-collapse: collapse;
}

.mila-reports tr,
.mila-reports tr:nth-child(even),
.mila-reports tr:nth-child(odd) {
	background-color: #EDF0E9;
}

.mila-reports th,
.mila-reports td {
	padding: 10px 15px;
	font-size: 15px;
	font-weight: 400;
	text-align: right;
	line-height: 1.3;
	border: 2px solid #fff !important;
}

.mila-reports th {
	font-weight: 600;
	background-color: #294C74;
	color: #fff;
}

.mila-reports th:first-child {
	border: none;
	border-radius: 0 20px 20px 0;
}

.mila-reports th:last-child {
	border: none;
	border-radius: 20px 0 0 20px;
}

.mila-reports td {
	padding: 10px 10px;
	background-color: #EDF0E9 !important;
}

.mila-reports td:first-child {
	border-radius: 0 20px 20px 0;
}

.mila-reports td:last-child {
	border-radius: 20px 0 0 20px;
}

.mila-reports .mila-table-wrapper {
	overflow-x: auto;
}

/* Other CSS. */
.mila-header {
	display: flex;
	flex-direction: row-reverse;
	justify-content: space-between;
	gap: 10px;
}

.mila-header__col {
	display: flex;
}

.mila-header__col h3 {
	margin: 0;
	padding: 0;
	font-size: 24px;
	color: var(--mr-text-color);
}

.mila-header-user {
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	gap: 20px;
}

.mila-header-user img {
	width: 40px;
	height: 40px;
}

.mila-title {
	margin-bottom: 40px;
	font-size: 60px;
    font-weight: 600;
	color: var(--mr-text-color);
}

.mila-filters {
	display: flex;
	align-items: flex-end;
	gap: 20px;
	margin-bottom: 40px;
}

.mila-filter label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
	color: #7E7E7E;
}

.mila-filter.disabled {
	opacity: 0.5;
	pointer-events: none;
	user-select: none;
}

.mila-reports .divider {
	padding: 10px 0;
	border-bottom: 1px dashed var(--mr-text-color);
}

.mila-reports .divider:last-child {
	border: none;
}

.mila-marks-graph {
	margin-top: 40px;
	padding: 40px 30px;
    height: 300px;
    width: 600px;
    background: #f1f1f1;
    display: flex;
	position: relative;
}

.mila-marks-graph__item {
    width: 25%;
    display: flex;
    justify-content: center;
    gap: 10px;
	position: relative;
}

.mila-marks-graph__1st_session,
.mila-marks-graph__2nd_session {
	position: relative;
	width: 30%;
    background: #ccc;
    height: 100%;
    border-radius: 999px;
}

.mila-marks-graph__item .bar {
	width: 100%;
    background: #000;
    position: absolute;
    bottom: 0;
    border-radius: 999px;
}

.mila-marks-graph__1st_session .bar {
	background: darkorange;
}

.mila-marks-graph__2nd_session .bar {
	background: darkgreen;
}

.mila-marks-graph__1st_session .count,
.mila-marks-graph__2nd_session .count {
    width: 100%;
    position: absolute;
    top: -20px;
	text-align: center;
}

.mila-marks-graph__item-label {
	position: absolute;
    bottom: -20px;
}

.mila-marks-graph__label_y {
	position: absolute;
    right: -30px;
    bottom: 55px;
    transform: rotate(-90deg);
}

.mila-marks-graph__label_x {
	position: absolute;
    right: 30px;
    bottom: 0;
}

.mila-marks-graph-indicators {
	margin-top: 20px;
}

.mila-marks-graph-indicators__item {}

.mila-marks-graph-indicators__item.first-session::before,
.mila-marks-graph-indicators__item.second-session::before {
	content: "";
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    border-radius: 100%;
}

.mila-marks-graph-indicators__item.first-session::before {
	background: darkorange;
}

.mila-marks-graph-indicators__item.second-session::before {
	background: darkgreen;
}

/* Select2 CSS */
.mila-reports .select2-selection--single {
	height: auto !important;
}

.mila-reports .select2-selection__rendered {
	padding-top: 6px !important;
    padding-bottom: 6px !important;
}

.mila-reports .select2-selection__arrow {
	height: 40px !important;
}

#mila-marks-table input[type="number"] {
	min-width: 65px;
	margin-top: -4px;
    padding: 0 5px;
    background: transparent;
	border: 1px solid transparent;
}

#mila-marks-table input[type="number"]:hover,
#mila-marks-table input[type="number"]:focus {
	background-color: #fff;
	border: 1px solid var(--mr-text-color);
}

#mila-marks-table select {
    border: 1px solid transparent;
    outline: transparent;
    padding: 0 6px;
    width: auto;
    background: transparent;
	appearance: none;
    -webkit-appearance: none; /* Safari & Chrome */
    -moz-appearance: none; /* Firefox */
}

#mila-marks-table select:hover {
	border: 1px solid var(--mr-text-color);
	background-color: #fff;
}

#mila-marks-table .hide-col {
	display: none;
}

#mila-add-student-marks-form {
	display: none;
    flex-wrap: wrap;
	row-gap: 20px;
	position: fixed;
    inset: 50px 0;
	margin-left: auto;
    margin-right: auto;
    width: 800px;
    background: rgb(255, 255, 255);
    z-index: 99999;
    overflow-y: auto;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 30px;
    border-radius: 10px;
}

#mila-add-student-marks-form.active {
	display: flex;
}

#mila-add-student-marks-form.loading {
	overflow: hidden;
}

#mila-add-student-marks-form.loading::after {
	content: "";
    width: 100%;
    height: 100%;
    position: sticky;
    inset: 0;
    background: #fff;
    opacity: 0.5;
}

#mila-add-student-marks-form .close {
	position: sticky;
    top: 0;
    right: 0;
    padding: 3px;
    background: #fff;
    height: 30px;
    width: 100%;
	cursor: pointer;
}

#mila-add-student-marks-form .close svg {
	width: 30px;
    height: 30px;
}

#mila-add-student-marks-form .form-group {
	display: flex;
    flex-direction: column;
	padding: 0 10px;
}

#mila-add-student-marks-form .form-group label {
	flex: 1;
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 18px;
}

#mila-add-student-marks-form .form-group input[type="text"],
#mila-add-student-marks-form .form-group input[type="number"],
#mila-add-student-marks-form .form-group select {
	width: 100%;
	/* padding: 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 16px; */
}

#mila-add-student-marks-form input[type="submit"] {
    position: sticky;
    bottom: 0;
    width: calc(100%);
    font-size: 20px;
    font-weight: 500;
    background: #A10144;
	color: #fff;
}
