/* styling opsi */
.form-signin {
	max-width: 500px;
	margin: 20px auto;
	background-color: #fff; -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
	background-color:rgba(255,255,255,.8);
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.05);
	-moz-box-shadow: 0 1px 2px rgba(0,0,0,.05);
	border-radius:8px;
	box-shadow:4px 4px 10px 0 rgba(20,20,20,.6);
}

#background-carousel{
	position:fixed;
	width:100%;
	height:100%;
	z-index:-1;
}
.item {
	width:100%;
	height:100%;
	background-position:center center;
	background-size:cover;
	z-index:0;
}

#content-wrapper {
	position:absolute;
	z-index:1 !important;
	min-width:100%;
	min-height:100%;
}
.well {
	opacity:0.85
}

.login-container {
	-ms-flex-align:center;
	align-items:center;
	background:#00000000;
	display:-ms-flexbox;
	display:flex;
	-ms-flex-direction:column;
	flex-direction:column;
	height:100vh;
	-ms-flex-pack:center;
	justify-content:center
}
/*
WHAT IS NEW IN 3.3: "Added transforms to improve carousel performance in modern browsers."
now override the 3.3 new styles for modern browsers & apply opacity
*/
@media all and (transform-3d), (-webkit-transform-3d) {
	.carousel-fade .carousel-inner > .item.next,
	.carousel-fade .carousel-inner > .item.active.right {
		opacity: 0;
		-webkit-transform: translate3d(0, 0, 0);
		transform: translate3d(0, 0, 0);
	}
	.carousel-fade .carousel-inner > .item.prev,
	.carousel-fade .carousel-inner > .item.active.left {
		opacity: 0;
		-webkit-transform: translate3d(0, 0, 0);
		transform: translate3d(0, 0, 0);
	}
	.carousel-fade .carousel-inner > .item.next.left,
	.carousel-fade .carousel-inner > .item.prev.right,
	.carousel-fade .carousel-inner > .item.active {
		opacity: 1;
		-webkit-transform: translate3d(0, 0, 0);
		transform: translate3d(0, 0, 0);
	}
}

.sticky {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	padding: 50px;
	background-image: url("../img/bgx.jpg");
	background-size:52px;
	background-repeat: repeat;
	height: 300px;
}

.overlap {
	margin-top: -260px
}

.funkyradio div {
	clear: both;
	overflow: hidden;
}

.funkyradio label {
	width: 100%;
	border-radius: 3px;
	border: 1px solid #D1D3D4;
	font-weight: normal;
	padding: 5px 0 5px 50px;
}

.funkyradio input[type="radio"]:empty,
.funkyradio input[type="checkbox"]:empty {
	display: none;
}

.funkyradio input[type="radio"]:empty ~ label,
.funkyradio input[type="checkbox"]:empty ~ label {
	position: relative;
	line-height: 2em;
	/*text-indent: 3.25em;*/
	margin-top: 5px;
	cursor: pointer;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.funkyradio input[type="radio"]:empty ~ label:before,
.funkyradio input[type="checkbox"]:empty ~ label:before {
	position: absolute;
	display: block;
	top: 0;
	bottom: 0;
	left: 0;
	content: '';
	width: 2.5em;
	background: #D1D3D4;
	border-radius: 3px 0 0 3px;
}

.funkyradio input[type="radio"]:hover:not(:checked) ~ label,
.funkyradio input[type="checkbox"]:hover:not(:checked) ~ label {
	color: #888;
}

.funkyradio input[type="radio"]:hover:not(:checked) ~ label:before,
.funkyradio input[type="checkbox"]:hover:not(:checked) ~ label:before {
	/*content: '\2714';*/
	text-indent: .9em;
	color: #000;
	font-weight: bold;
	padding: 5px 0 0 0;
}

.funkyradio input[type="radio"]:checked ~ label,
.funkyradio input[type="checkbox"]:checked ~ label {
	color: #fff;
	background: #86C186;
	font-weight: bold;
}

.funkyradio input[type="radio"]:checked ~ label:before,
.funkyradio input[type="checkbox"]:checked ~ label:before {
	/*content: '\2714';*/
	text-indent: .9em;
	color: #333;
	background-color: #ccc;
	padding: 5px 0 0 0;
}

.funkyradio input[type="radio"]:focus ~ label:before,
.funkyradio input[type="checkbox"]:focus ~ label:before {
	box-shadow: 0 0 0 3px #999;
}

.funkyradio-default input[type="radio"]:checked ~ label:before,
.funkyradio-default input[type="checkbox"]:checked ~ label:before {
	color: #333;
	background-color: #ccc;
}

.funkyradio-primary input[type="radio"]:checked ~ label:before,
.funkyradio-primary input[type="checkbox"]:checked ~ label:before {
	color: #fff;
	background-color: #337ab7;
}

.funkyradio-success input[type="radio"]:checked ~ label:before,
.funkyradio-success input[type="checkbox"]:checked ~ label:before {
	color: #fff;
	background-color: #5cb85c;
}

.funkyradio-danger input[type="radio"]:checked ~ label:before,
.funkyradio-danger input[type="checkbox"]:checked ~ label:before {
	color: #fff;
	background-color: #d9534f;
}

.funkyradio-warning input[type="radio"]:checked ~ label:before,
.funkyradio-warning input[type="checkbox"]:checked ~ label:before {
	color: #fff;
	background-color: #f0ad4e;
}

.funkyradio-info input[type="radio"]:checked ~ label:before,
.funkyradio-info input[type="checkbox"]:checked ~ label:before {
	color: #fff;
	background-color: #5bc0de;
}

.huruf_opsi {
	margin-left: -36px;
	margin-top: 9px;
	position: absolute;
}

.btn.no-hover:hover {
	cursor:default !important;
}

/* shadow */
.shadow-sm {
	box-shadow: 0 .125rem .25rem 0 rgba(58, 59, 69, .2) !important
}

.my-shadow {
	box-shadow: 0 .15rem 1.75rem 0 rgba(58, 59, 69, .15) !important
}

.shadow-lg {
	box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important
}

.shadow-none {
	box-shadow: none !important
}

.input-group>.w-40 {
	flex: 0 0 40%;
}
/*
.input-group>.input-group-prepend {
	flex: 0 0 15%;
}
 */
.input-group .input-group-text {
	width: 100%;
}

.note-editor.note-frame, .note-editor.note-airframe {
	border: 1px solid #ffffff;
}

.bg-circle {
	width: 49px;
	height: 49px;
	text-align: center;
	padding: 5px 0 5px 10px;
	line-height: 2.00;
	border-radius: 30px;
	white-space: nowrap;
}

.btn-circle {
	width: 49px;
	height: 49px;
	text-align: center;
	padding: 5px 0;
	font-size: 20px;
	line-height: 2.00;
	border-radius: 30px;
}

.btn-oval {
	height: 49px;
	text-align: center;
	padding: 5px 0;
	font-size: 20px;
	line-height: 2.00;
	border-radius: 30px;
}

.btn-circle-micro {
	/*height: 19px;*/
	display: inline-block;
	padding: .25em .4em;
	font-size: 75%;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	white-space: nowrap;
	vertical-align: baseline;
	border-radius: .80rem;
}

.btn-circle-sm {
	width: 35px;
	height: 35px;
	text-align: center;
	padding: 4px 0;
	font-size: 12pt;
	line-height: 1.65;
	border-radius: 30px;
}

.btn-oval-sm {
	height: 35px;
	text-align: center;
	font-size: 12pt;
	line-height: 1.65;
	border-radius: 30px;
	padding: .25em 1em;
}

.btn-circle-lg {
	width: 79px;
	height: 79px;
	text-align: center;
	padding: 13px 0;
	font-size: 30px;
	line-height: 2.00;
	border-radius: 70px;
}

.no-search .select2-search {
	display:none
}

.container-jawaban {
	display: block;
	position: relative;
	padding-left: 50px;
	margin-bottom: 30px;
	cursor: pointer;
	font-size: 18px;
	text-align: justify;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.container-jawaban input {
	position: absolute;
	opacity: 0;
	cursor: pointer;
}

.checkmark {
	position: absolute;
	top: -5px;
	left: 0;
	height: 40px;
	width: 40px;
	background-color: #eee;
	border-radius: 50%;
	border: 1px solid #ccc;
	font-size: 24px;
	line-height: 1.6;
	text-align: center;
}

.boxmark {
	position: absolute;
	top: -5px;
	left: 0;
	height: 40px;
	width: 40px;
	background-color: #eee;
	border-radius: 8px;
	border: 1px solid #ccc;
	font-size: 24px;
	line-height: 1.6;
	text-align: center;
}

.container-jawaban:hover input ~ .checkmark {
	background-color: #ccc;
}

.container-jawaban input:checked ~ .checkmark {
	background-color: #2196F3;
	color: #fff;
}

.container-jawaban:hover input ~ .boxmark {
	background-color: #ccc;
}

.container-jawaban input:checked ~ .boxmark {
	font-weight: bold;
	background-color: #2196F3;
	color: #fff;
}

.container-jawaban input:checked ~ .boxmark:before {
	content: "\2713";
}

.checkbox-lg .custom-control-label::before,
.checkbox-lg .custom-control-label::after {
	top: .8rem;
	width: 1.55rem;
	height: 1.55rem;
}

.checkbox-lg .custom-control-label {
	padding-top: 13px;
	padding-left: 6px;
	cursor: pointer;
}

.checkbox-xl .custom-control-label::before,
.checkbox-xl .custom-control-label::after {
	top: 1.2rem;
	width: 1.85rem;
	height: 1.85rem;
}

.checkbox-xl .custom-control-label {
	padding-top: 23px;
	padding-left: 20px;
	cursor: pointer;
}

.my-checkbox {
	width: 16px;
	height: 16px;
	cursor: pointer;
}

.form-check-input[type=checkbox]:indeterminate {
	background-color: #3DA576;
	border-color: #3DA576;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10h8'/%3e%3c/svg%3e");
}

ul.media-list li img {
	width: 100px;
	height: 100px
}

ul.media-list li {
	height: 102px
}

ul.media-list li video {
	width: 100px;
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	transform: translateY(-50%)
}

div#hint_brand .modal-dialog {
	top: 110px;
	width: 567px;
	max-width: 100%
}

li.myupload span {
	position: relative;
	width: 100px;
	height: 100px;
	display: block;
	background: #fff
}

li.myupload span input {
	opacity: 0;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0
}

li.myupload span i {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #ccc;
	font-size: 54px
}

ul.media-list li {
	float: left;
	border: 1px solid #ccc;
	position: relative;
	margin: 0 5px 5px 0;
	width: 102px
}

ul.media-list li:last-child {
	margin-right: 0
}

.post-thumb {
	position: absolute;
	background: rgba(0, 0, 0, 0.3);
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	display: none
}

li .title-thumb {
	position: absolute;
	height: 28px;
	width: 100px;
	padding: 4px;
	background: rgba(0, 0, 0, 0.6);
	bottom: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: white;
}

ul.media-list li:hover .post-thumb {
	display: block
}

a.remove-pic {
	position: absolute;
	top: 5px;
	right: 5px;
	font-size: 12px;
	color: #fff;
	border: 1px solid #fff;
	border-radius: 50%;
	display: block;
	height: 25px;
	width: 25px;
	text-align: center;
	padding: 3px 0
}

.inner-post-thumb {
	position: relative
}

.user-post-text-wrap {
	position: relative
}

.user-pic-post {
	position: absolute;
	width: 50px;
	height: 50px;
	top: 0;
	left: 0
}

.user-pic-post img {
	width: 100%
}

.user-txt-post {
	padding: 0 0 0 65px
}

textarea.form-control.upostTextarea {
	border: 0;
	box-shadow: none;
	height: 85px;
	resize: none
}

.user-post-text-wrap {
	border-bottom: 1px solid #ccc;
	margin: 0 0 15px
}

.user-post-btn-wrap {
	margin: 25px 0 0
}

ul.btn-nav {
	list-style: none;
	padding: 0;
	margin: 0
}

ul.btn-nav li {
	position: relative;
	float: left;
	margin: 0 10px 0 0
}

ul.btn-nav li span input {
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 100%;
	z-index: 9;
	opacity: 0;
	filter: alpha(opacity=100)
}

ul.media-list {
	list-style: none;
	padding: 0;
	margin: 0
}

input.picupload {
	width: 100px;
	height: 100px
}


.select2-container {
	width: auto;
}

.bstreeview {
	position: relative;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-direction: column;
	flex-direction: column;
	min-width: 0;
	word-wrap: break-word;
	background-color: #fff;
	background-clip: border-box;
	border: 1px solid rgba(0,0,0,.125);
	border-radius: .25rem;

	padding: 0;
	overflow: hidden;
}

.bstreeview .list-group {
	margin-bottom: 0;
}

.bstreeview .list-group-item {
	border-radius: 0;
	border-width: 1px 0 0 0;
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
	cursor: pointer;
}

.bstreeview .list-group-item:hover {
	background-color:#dee2e6;
}

.bstreeview > .list-group-item:first-child {
	border-top-width: 0;
}

.bstreeview .state-icon {
	margin-right: 8px;
	width: 12px;
	text-align: center;
}
.bstreeview .item-icon {
	margin-right: 5px;
}

.tbl-vertical {
	white-space: nowrap;
	transform: rotate(-90deg);
	text-align: left;
	bottom: 4px;
	padding: 1px 1px 1px 10px;
	width: 30px;
}

/*from bs 3*/
@media (max-width:767px){
	.hidden-xs{display:none!important}
}
@media (min-width:768px) and (max-width:991px){
	.hidden-sm{display:none!important}
}
@media (min-width:992px) and (max-width:1199px){
	.hidden-md{display:none!important}
}
@media (min-width:1200px){
	.hidden-lg{display:none!important}
}

.img-zoom {
	transition: transform .2s;
	margin: 0 auto;
}

.img-zoom:hover {
	-ms-transform: scale(2); /* IE 9 */
	-webkit-transform: scale(2); /* Safari 3-8 */
	transform: scale(2);
}

div.list-jadwal-ujian div:nth-child(even) {
	background: white;
	padding-left: .25rem!important;
	padding-right: .25rem!important;
	color: black;
}

div.list-jadwal-ujian div:nth-child(odd) {
	background: #dee2e6;
	padding-left: .25rem!important;
	padding-right: .25rem!important;
	color: black;
}

#guru.dataTable.no-footer{
	border-bottom: unset;
}
#guru tbody td {
	display: block;
	border: unset;
}
#guru>tbody>tr>td{
	border-top: unset;
}

.hrspan {
	position: relative;
	margin-bottom: 20px;
	width: 100%;
	text-align: center;
}

.hrspan span {
	position: absolute;
	top: -11px;
	background: #fff;
	padding: 0 20px;
	font-weight: bold;
	font-size: 16px;
}

div.hr-or {
	margin-top: 20px;
	margin-bottom: 20px;
	border: 0;
	border-top: 1px solid #eee;
	text-align: center;
	height: 0px;
	line-height: 0px;
}

div.hr-or:before {
	content: 'OR';
	background-color: #fff;
}

div.hr {
	margin-top: 20px;
	margin-bottom: 12px;
	margin-right: 20px;
	border: 0;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	height: 0px;
	line-height: 0px;
}

.hr-title {
	background-color: #fff;
	font-weight: bold;
	padding: 0 4px 0 0;
}

.hr-text {
	line-height: 1em;
	position: relative;
	outline: 0;
	border: 0;
	color: black;
	text-align: center;
	height: 1.5em;
	opacity: .5;
}
.hr-text:before {
	content: '';
	background: linear-gradient(to right, transparent, #818078, transparent);
	 position: absolute;
	 left: 0;
	 top: 50%;
	 width: 100%;
	 height: 1px;
}
.hr-text:after {
	 content: attr(data-content);
	 position: relative;
	 display: inline-block;
	 padding: 0 .5em;
	 line-height: 1.5em;
	color: #818078;
	 background-color: #fcfcfa;
}

.btn-disabled,
.btn-disabled[disabled] {
	opacity: .65;
	cursor: not-allowed;
}

.crop-text-1 {
	-webkit-line-clamp: 1;
	overflow : hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-box-orient: vertical;
}
.crop-text-2 {
	-webkit-line-clamp: 2;
	overflow : hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-box-orient: vertical;
}

.crop-text-table {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	max-width: 300px;
}

.rTable {
	display: table;
	width: 100%;
}
.rTableRow {
	display: table-row;
}
.rTableHeading {
	display: table-header-group;
	background-color: #ddd;
}
.rTableCell, .rTableHead {
	display: table-cell;
	border-top: 10px solid #EBEBEB;
}
.rTableHeading {
	display: table-header-group;
	background-color: #ddd;
	font-weight: bold;
}
.rTableFoot {
	display: table-footer-group;
	font-weight: bold;
	background-color: #ddd;
}
.rTableBody {
	display: table-row-group;
}

.sTable {
	display: table;
	width: 100%;
}
.sTableRow {
	display: table-row;
}
.sTableHeading {
	display: table-header-group;
	background-color: #ddd;
}
.sTableCell, .sTableHead {
	display: table-cell;
	padding: 3px 10px;
	border: 1px solid #999999;
}
.sTableHeading {
	display: table-header-group;
	background-color: #ddd;
	font-weight: bold;
}
.sTableFoot {
	display: table-footer-group;
	font-weight: bold;
	background-color: #ddd;
}
.sTableBody {
	display: table-row-group;
}

connection {
	border: 2px solid #b51c29;
	border-radius: 31px;
}

.jodohkan ul {
	list-style: none;
	margin-left: 0px;
	padding-left: 0px;
	font-weight: normal;
}

.jodohkan li {
	border: solid 1px grey;
	padding: 5px 2px 5px 8px;
	margin-top: 10px;
	margin-bottom: 10px;
	user-select: none;
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
	cursor: pointer;
	background-color: #fff;
	color: black;
	border-radius: 4px;
	text-overflow: ellipsis;
	overflow: hidden;
}

button.btn.btn-icon {
	display: flex;
}
button.btn.btn-icon > i:first-child:not(:only-child) {
	margin-right: 0.75rem;
}
button.btn.btn-icon > span + i {
	margin-left: 0.75rem;
}
button.btn.shaded.btn-icon {
	display: flex;
	position: relative;
}
button.btn.shaded.btn-icon.shaded > i {
	display: flex;
	align-items: center;
	position: absolute;
	z-index: 100;
	top: 0;
	border-radius: 0;
	padding: 0 0.4rem;
	height: 100%;
}
button.btn.shaded.btn-icon.shaded > i::before {
	background-color: rgba(6, 7, 8, 0.3);
	content: '';
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	z-index: -10;
}
button.btn.shaded.btn-icon.left.shaded {
	padding-left: 2.7rem;
}
button.btn.shaded.btn-icon.left.shaded > i {
	left: 0;
	border-top-left-radius: inherit;
	border-bottom-left-radius: inherit;
	margin-right: 0.75rem;
}
button.btn.shaded.btn-icon.right.shaded {
	padding-right: 2.7rem;
}
button.btn.shaded.btn-icon.right.shaded > i {
	right: 0;
	border-top-right-radius: inherit;
	border-bottom-right-radius: inherit;
	margin-left: 0.75rem;
}
button.btn.shaded.btn-icon.primary > i::before {
	background-color: rgba(0, 86, 179, 0.5);
}
button.btn.shaded.btn-icon.danger > i::before {
	background-color: rgba(167, 29, 42, 0.5);
}
button.btn.shaded.btn-icon.info > i::before {
	background-color: rgba(15, 102, 116, 0.5);
}
button.btn.shaded.btn-icon.outline.primary > i::before {
	background-color: rgba(77, 163, 255, 0.3);
}
button.btn.shaded.btn-icon.outline.danger > i::before {
	background-color: rgba(231, 118, 129, 0.3);
}
button.btn.shaded.btn-icon.outline.info > i::before {
	background-color: rgba(54, 206, 230, 0.3);
}

/*
.btn-label {position: relative;left: -12px;display: inline-block;padding: 6px 12px;background: rgba(0,0,0,0.15);border-radius: 3px 0 0 3px;}
.btn-labeled {padding-top: 0;padding-bottom: 0;}
.btn { margin-bottom:10px; }
 */

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
	-webkit-appearance:none;
}

/*
 * NEW ELEARNING
 * timetable
 */

table.my-timetable {
	height: 1px;
	tr:nth-child(odd) {
		border-bottom: 1px solid #f5f5f5;
	}
	/*
	tr {
		border-top: 1px solid #f5f5f5;
		border-bottom: 1px solid #f5f5f5;
	}
	width: 100%;
	tr:nth-child(even) th {
		color: #ccc;
		font-weight: normal;
	}

	td {
		padding: 0.5rem 0.8rem;
		font-weight: bold;
		line-height: 1.4;
		border-radius: 0.6rem;
		transition: opacity 0.3s ease;
		border: 2px solid #fff;
		border-left: 0;
		cursor: pointer;
	}
	 */
	th {
		border-left: 0;
		border-right: 0.2rem solid #fff;
		border-top-left-radius: 1rem;
		border-top-right-radius: 1rem;
	}

	td.times {
		height: 12px;
	}

	td .small {
		font-size: 0.8em;
		font-weight: normal;
		display: block;
		width: 100%;
	}

	td > div {
		cursor: pointer;
	}

	.frozen-header {
		width: 60px;
		min-width: 60px;
		max-width: 60px;
		background-color: #007bff !important;
		position: sticky;
		left: 0;
		z-index: 3;
	}

	.frozen-column {
		width: 60px;
		min-width: 60px;
		max-width: 60px;
		background-color: white !important;
		position: sticky;
		left: 0;
		z-index: 3;
	}

	.frozen-column-2 {
		width: 20px;
		min-width: 20px;
		max-width: 20px;
		left: 60px;
		background-color: white !important;
		position: sticky;
		border-right: 1px solid #dee2e6;
		border-bottom: 1px solid #f5f5f5;
		z-index: 2;
	}

	.frozen-column-3 {
		width: 20px;
		min-width: 20px;
		max-width: 20px;
		left: 60px;
		background-color: white !important;
		position: sticky;
		border-right: 1px solid #dee2e6;
		z-index: 2;
	}

	.frozen-header {
		position: sticky;
		top: 0;
		background: white;
		z-index: 4;
	}

	.frozen-column-header {
		position: sticky;
		top: 0;
		left: 0;
		background: white;
		z-index: 5;
	}
}

.stage-earth {background-color: #FFA726}
.stage-mercury {background-color: #9CCC65}
.stage-venus {background-color: #FF8A65}
.stage-mars {background-color: #B3E5FC}
.stage-jupiter {background-color: #81D4FA}
.stage-saturn {background-color: #26C6DA}

.draggable-table {
	.draggable-table__drag {
		position: absolute;
		z-index: 10;
		cursor:all-scroll;
		-webkit-box-shadow: 2px 2px 3px 0px rgba(0, 0, 0, 0.05);
		box-shadow: 2px 2px 3px 0px rgba(0, 0, 0, 0.05);
		opacity: 1;
	}

	thead {
		th {
			user-select: none;
		}
	}

	tbody {

		tr {
			cursor:all-scroll;
			td {
				user-select: none;
			}
		}

		tr:nth-child(even) {
			background-color: #fafafa;
		}

		tr:nth-child(odd) {
			background-color: #ffffff;
		}

		tr.is-dragging {
			background: #f1c40f;

			td {
				color: #ffe683;
			}
		}
	}
}

.border-top-bold {
	border-top-color: #d0d4d5 !important;
	border-top-width: 2px !important;
}

.border-rigt-bold {
	border-right-color: #d0d4d5 !important;
	border-right-width: 2px !important;
}

.border-left-bold {
	border-left-color: #d0d4d5 !important;
	border-left-width: 2px !important;
}

.border-bottom-bold {
	border-bottom-color: #d0d4d5 !important;
	border-bottom-width: 2px !important;
}
/*
.select2-results__option[role=group] {
}
.select2-results__option {
	display: flex !important;
	flex-direction: row !important;
	justify-content: space-between !important;
}
 */
.select2-results__option[aria-disabled="true"] {
	background-color: #f8f9fa !important; /* Example light gray color */
	color: #999 !important; /* Optional: change text color as well */
}

/* ================= Sidebar navigation refinement ================= */
.main-sidebar .brand-link {
	border-bottom: 1px solid #eef1f5;
}

.main-sidebar .user-panel .info a {
	color: #2b3444;
	font-weight: 600;
	font-size: .85rem;
}

.main-sidebar .user-panel .info small {
	font-size: .75rem;
}

.nav-sidebar .nav-header {
	color: #9aa5b5;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .06em;
	padding: 1rem .9rem .4rem;
}

.nav-sidebar > .nav-item {
	margin-bottom: 2px;
}

.nav-sidebar .nav-link {
	border-radius: 8px;
	margin: 0 .5rem;
	padding: .55rem .75rem;
	transition: background-color .15s ease, color .15s ease;
}

.nav-sidebar .nav-icon {
	font-size: 1.05rem;
	opacity: .8;
	transition: opacity .15s ease;
}

.sidebar-light-teal .nav-sidebar > .nav-item > .nav-link.active,
.sidebar-light-teal .nav-sidebar > .nav-item > .nav-link.active:hover,
.sidebar-light-teal .nav-sidebar > .nav-item > .nav-link.active:focus {
	background-color: rgba(33, 150, 243, .12);
	color: #0d47a1;
	box-shadow: inset 3px 0 0 #2196F3;
}

.sidebar-light-teal .nav-sidebar > .nav-item > .nav-link.active .nav-icon,
.sidebar-light-teal .nav-sidebar > .nav-item > .nav-link.active .right {
	color: #2196F3;
	opacity: 1;
}

.sidebar-light-teal .nav-sidebar > .nav-item > .nav-link:not(.active):hover {
	background-color: #f2f6fb;
}

.nav-sidebar .nav-treeview {
	margin: 2px 0 4px;
}

.nav-sidebar .nav-treeview > .nav-item > .nav-link {
	border-radius: 8px;
	margin: 1px .5rem 1px 0;
	padding: .45rem .75rem;
	font-size: .87rem;
	color: #5b6472;
	transition: background-color .15s ease, color .15s ease;
}

.nav-sidebar .nav-treeview > .nav-item > .nav-link:hover {
	background-color: #f2f6fb;
	color: #1a2b4c;
}

.nav-sidebar .nav-treeview > .nav-item > .nav-link.active,
.nav-sidebar .nav-treeview > .nav-item > .nav-link.active:hover {
	background-color: rgba(33, 150, 243, .1) !important;
	color: #0d47a1 !important;
	font-weight: 600;
}

/* ================= Global content refinement (cards, buttons, tables) ================= */

/* -- Page header -- */
.content-header h1 {
	font-size: 1.4rem;
	font-weight: 700;
	color: #1a2b4c;
}

/* -- Cards -- */
.card {
	border-radius: .6rem;
	border: 1px solid #eef1f5;
}

.card > .card-header:first-child {
	border-top-left-radius: .6rem;
	border-top-right-radius: .6rem;
}

.card > .card-body:last-child,
.card > .card-footer:last-child {
	border-bottom-left-radius: .6rem;
	border-bottom-right-radius: .6rem;
}

.card.my-shadow {
	box-shadow: 0 .1rem 1rem 0 rgba(58, 59, 69, .08) !important;
}

.card-header {
	background-color: #fbfcfd;
	border-bottom: 1px solid #eef1f5;
	padding: .85rem 1.1rem;
}

.card-title {
	font-size: 1rem;
	font-weight: 600;
	color: #1a2b4c;
}

.card-header .card-tools .btn + .btn {
	margin-left: .35rem;
}

.card-primary:not(.card-outline) > .card-header,
.card-primary:not(.card-outline) > .card-header a {
	background-color: rgba(33, 150, 243, .1);
	color: #0d47a1;
}

.card-danger:not(.card-outline) > .card-header,
.card-danger:not(.card-outline) > .card-header a {
	background-color: rgba(239, 68, 68, .1);
	color: #b91c1c;
}

.card-success:not(.card-outline) > .card-header,
.card-success:not(.card-outline) > .card-header a {
	background-color: rgba(34, 197, 94, .1);
	color: #15803d;
}

.card-warning:not(.card-outline) > .card-header,
.card-warning:not(.card-outline) > .card-header a {
	background-color: rgba(245, 158, 11, .14);
	color: #92400e;
}

.card-info:not(.card-outline) > .card-header,
.card-info:not(.card-outline) > .card-header a {
	background-color: rgba(6, 182, 212, .1);
	color: #0e7490;
}

.card-secondary:not(.card-outline) > .card-header,
.card-secondary:not(.card-outline) > .card-header a {
	background-color: #f1f3f6;
	color: #39445c;
}

.card-indigo:not(.card-outline) > .card-header,
.card-indigo:not(.card-outline) > .card-header a {
	background-color: rgba(99, 102, 241, .12);
	color: #3730a3;
}

.card-purple:not(.card-outline) > .card-header,
.card-purple:not(.card-outline) > .card-header a {
	background-color: rgba(168, 85, 247, .12);
	color: #6b21a8;
}

.card-primary:not(.card-outline) .btn-tool,
.card-danger:not(.card-outline) .btn-tool,
.card-success:not(.card-outline) .btn-tool,
.card-warning:not(.card-outline) .btn-tool,
.card-info:not(.card-outline) .btn-tool,
.card-secondary:not(.card-outline) .btn-tool,
.card-blue:not(.card-outline) .btn-tool,
.card-red:not(.card-outline) .btn-tool,
.card-indigo:not(.card-outline) .btn-tool,
.card-purple:not(.card-outline) .btn-tool {
	color: inherit;
	opacity: .7;
}

/* Older view markup hardcodes text-white on card titles/tools assuming a solid
   dark header fill. Now that these headers are light tints, force that text
   back to a readable color instead of hunting down every view file. */
.card-primary:not(.card-outline) > .card-header .text-white {
	color: #0d47a1 !important;
}

.card-danger:not(.card-outline) > .card-header .text-white {
	color: #b91c1c !important;
}

.card-success:not(.card-outline) > .card-header .text-white {
	color: #15803d !important;
}

.card-warning:not(.card-outline) > .card-header .text-white {
	color: #92400e !important;
}

.card-info:not(.card-outline) > .card-header .text-white {
	color: #0e7490 !important;
}

.card-secondary:not(.card-outline) > .card-header .text-white {
	color: #39445c !important;
}

.card-blue:not(.card-outline) > .card-header .text-white {
	color: #0d47a1 !important;
}

.card-red:not(.card-outline) > .card-header .text-white {
	color: #b91c1c !important;
}

.card-indigo:not(.card-outline) > .card-header .text-white {
	color: #3730a3 !important;
}

.card-purple:not(.card-outline) > .card-header .text-white {
	color: #6b21a8 !important;
}

/* -- Buttons -- */
.btn {
	border-radius: .5rem;
}

.btn-sm {
	border-radius: .45rem;
}

.btn-xs {
	border-radius: 1rem;
	padding: .2rem .65rem;
	font-weight: 500;
}

.btn-group .btn,
.btn-group-sm > .btn {
	border-radius: .45rem !important;
	margin: 0 2px !important;
}

.btn-group .btn:first-child {
	margin-left: 0 !important;
}

.btn-group .btn:last-child {
	margin-right: 0 !important;
}

.btn-primary.btn-xs.btn-aktif {
	background-color: rgba(33, 150, 243, .12);
	border-color: transparent;
	color: #0d47a1;
	font-weight: 600;
}

.btn-primary.btn-xs.btn-aktif:hover {
	background-color: #2196F3;
	color: #fff;
}

/* -- Tables -- */
.table-bordered,
.table-bordered th,
.table-bordered td {
	border-color: #eef1f5 !important;
}

.table thead th {
	background-color: #f8f9fb;
	color: #39445c;
	font-weight: 600;
	border-bottom-width: 1px !important;
	vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
	background-color: #fafbfc;
}

.table-hover tbody tr:hover {
	background-color: rgba(33, 150, 243, .06);
}

/* -- Modals -- */
.modal-content {
	border-radius: .6rem;
	border: none;
}

.modal-header {
	border-bottom: 1px solid #eef1f5;
}

.modal-footer {
	border-top: 1px solid #eef1f5;
}

/* -- Form controls -- */
.form-control,
.custom-select {
	border-radius: .45rem;
	border-color: #dfe4ec;
}

.form-control:focus,
.custom-select:focus {
	border-color: #2196F3;
	box-shadow: 0 0 0 3px rgba(33, 150, 243, .12);
}

.card-blue:not(.card-outline) > .card-header,
.card-blue:not(.card-outline) > .card-header a {
	background-color: rgba(33, 150, 243, .1);
	color: #0d47a1;
}

.card-red:not(.card-outline) > .card-header,
.card-red:not(.card-outline) > .card-header a {
	background-color: rgba(239, 68, 68, .1);
	color: #b91c1c;
}

/* ================= Siswa module theme (blue, no green) ================= */
.navbar-green {
	background: #0d47a1 !important;
}

.sticky {
	background-color: #0d47a1;
	background-image:
		radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .16) 1px, transparent 0),
		linear-gradient(135deg, #0d47a1 0%, #1565c0 55%, #2196F3 100%);
	background-size: 22px 22px, 100% 100%;
	background-repeat: repeat, no-repeat;
}

/* bar teks berjalan di halaman siswa: ramping, tidak menutupi konten */
#running-text-container {
	position: -webkit-sticky;
	position: sticky;
	bottom: 0;
	z-index: 5;
	padding: .2rem 0;
	background-color: #0d47a1 !important;
	color: #fff;
	font-size: .85rem;
	line-height: 1.35;
}

#running-text-container .marquee {
	overflow: hidden;
	white-space: nowrap;
}

#running-text-container .marquee span {
	font-size: inherit;
}

@media (max-width: 575.98px) {
	#running-text-container { font-size: .78rem; padding: .15rem 0; }
}

/* -- Siswa top bar: balanced, professional back / logout actions -- */
.nav-action-btn {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .4rem .9rem;
	font-size: .85rem;
	font-weight: 600;
	line-height: 1;
	border-radius: .5rem;
	border: 1px solid rgba(255, 255, 255, .4);
	background-color: rgba(255, 255, 255, .12);
	color: #fff !important;
	text-decoration: none !important;
	transition: background-color .15s ease, border-color .15s ease;
}

.nav-action-btn:hover,
.nav-action-btn:focus {
	background-color: rgba(255, 255, 255, .22);
	color: #fff !important;
}

.nav-action-btn-danger:hover,
.nav-action-btn-danger:focus {
	background-color: rgba(239, 68, 68, .45);
	border-color: rgba(239, 68, 68, .7);
}

.menu-utama-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .5rem;
	text-decoration: none;
	padding: .5rem .25rem;
	border-radius: .6rem;
	transition: background-color .15s ease, transform .15s ease;
}

.menu-utama-item:hover {
	background-color: #f2f6fb;
	text-decoration: none;
	transform: translateY(-2px);
}

.menu-utama-icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba(33, 150, 243, .12);
	color: #0d47a1;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.4rem;
}

.menu-utama-label {
	font-size: .875rem;
	font-weight: 600;
	color: #39445c;
	text-align: center;
	line-height: 1.25;
}

/* ================= SweetAlert2 — compact, professional, responsive =================
   sweetalert2.min.js injects its own default stylesheet at runtime (after this file
   loads), so !important is used here to guarantee these overrides always win. */
.swal2-popup {
	width: 24em !important;
	max-width: 92vw !important;
	padding: 1.4rem 1.5rem 1.5rem !important;
	border-radius: .75rem !important;
	font-size: .95rem !important;
}

.swal2-title {
	margin: 0 0 .35em !important;
	padding: 0 !important;
	font-size: 1.2rem !important;
	font-weight: 700 !important;
	color: #1a2b4c !important;
}

.swal2-content,
.swal2-html-container {
	margin: 0 !important;
	font-size: .9rem !important;
	color: #5b6472 !important;
}

/* SweetAlert2 sizes the whole icon (ring, checkmark/x-mark lines, glyph) in em
   units relative to .swal2-icon's own font-size. Overriding width/height
   directly (as a previous version of this rule did) desyncs those internal,
   absolutely-positioned lines from the box and renders a broken checkmark —
   so shrink it by font-size instead, which scales every part together. */
.swal2-icon {
	font-size: .68rem !important;
	margin: .3rem auto .6rem !important;
}

.swal2-actions {
	margin: 1.1em auto 0 !important;
}

.swal2-styled {
	margin: .25em !important;
	padding: .5rem 1.15rem !important;
	border-radius: .5rem !important;
	font-size: .88rem !important;
	font-weight: 600 !important;
	box-shadow: none !important;
	transition: filter .15s ease, transform .1s ease;
}

.swal2-styled:hover {
	filter: brightness(1.05);
}

.swal2-styled:active {
	transform: translateY(1px);
}

.swal2-styled:focus {
	box-shadow: 0 0 0 3px rgba(33, 150, 243, .25) !important;
}

.swal2-footer {
	margin: 1em 0 0 !important;
	padding-top: .8em !important;
	font-size: .82rem !important;
}

.swal2-close {
	font-size: 1.3rem !important;
}

@media (max-width: 420px) {
	.swal2-popup {
		width: 92vw !important;
		padding: 1.1rem 1rem 1.25rem !important;
	}

	.swal2-title {
		font-size: 1.05rem !important;
	}

	.swal2-icon {
		font-size: .56rem !important;
		margin: .25rem auto .5rem !important;
	}
}
/* ================= Compact typography ================= */
/* Source Sans 3 (SIL OFL): font UI ringkas & mudah dibaca, dimuat lokal dari assets/fonts (tanpa CDN).
   Lebih sempit dari Poppins/Inter, sehingga ukuran dasar sedikit dinaikkan agar tetap nyaman dibaca. */
@font-face {
	font-family: 'Source Sans 3';
	font-style: normal;
	font-weight: 200 900;
	font-display: swap;
	src: url('../../fonts/source-sans-3/SourceSans3-latin-wght.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Source Sans 3';
	font-style: normal;
	font-weight: 200 900;
	font-display: swap;
	src: url('../../fonts/source-sans-3/SourceSans3-latin-ext-wght.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

body {
	font-family: 'Source Sans 3', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	font-size: .9375rem;
	-webkit-font-smoothing: antialiased;
}

/* AdminLTE memaksa body admin (.text-sm) ke .875rem dengan !important */
body.text-sm { font-size: .9375rem !important; }

.content-wrapper h1 { font-size: 1.4rem; }
.content-wrapper h2 { font-size: 1.25rem; }
.content-wrapper h3 { font-size: 1.12rem; }
.content-wrapper h4 { font-size: 1.03rem; }
.content-wrapper h5 { font-size: .97rem; }
.content-wrapper h6 { font-size: .9375rem; }

.text-lg { font-size: 1.05rem !important; }
.text-xl { font-size: 1.35rem !important; }
.text-md { font-size: .95rem !important; }

.table { font-size: .875rem; }
.btn { font-size: .875rem; }
.btn-sm { font-size: .82rem; }
.form-control, .custom-select { font-size: .9rem; }
.form-control-sm { font-size: .82rem; }
label { font-size: .875rem; }
.modal-title { font-size: 1.05rem; }
.small-box h3 { font-size: 1.45rem; }
.info-box-text { font-size: .82rem; }
.info-box-number { font-size: 1rem; }
.dataTables_wrapper { font-size: .875rem; overflow-x: auto; }

/* ================= Responsive tables & action buttons ================= */
/* Sel berisi tombol aksi tidak dipecah ke baris baru; tabel yang terlalu lebar bisa digeser. */
.table td .btn {
	white-space: nowrap;
}

/* dipisah agar browser tanpa dukungan :has() tetap memakai aturan di atas */
.table td:has(.btn) {
	white-space: nowrap;
}

.table td .btn + .btn,
.table td span[data-toggle="tooltip"] + span,
.table td span[data-toggle="tooltip"] + .btn {
	margin-left: .2rem;
}

@media (max-width: 991.98px) {
	.table {
		display: block;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.table-responsive .table,
	.dataTables_wrapper .table,
	.modal .table {
		display: table;
	}
}

@media (max-width: 575.98px) {
	.content-wrapper h1 { font-size: 1.15rem; }
	.table { font-size: .82rem; }
}

/* ================= Tombol: ikon & toolbar responsif ================= */
.btn-icon {
	min-width: 2rem;
	padding-left: .55rem;
	padding-right: .55rem;
	text-align: center;
}

/* Judul + tombol pada header kartu: membungkus rapi, tidak saling menumpuk */
.card-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .4rem .75rem;
}

.card-header::after {
	display: none;
}

.card-header .card-title {
	float: none;
	margin: 0;
}

.card-header .card-tools {
	float: none;
	margin: 0 0 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .35rem;
}

.card-header .card-tools .btn + .btn {
	margin-left: 0;
}

.btn-group {
	flex-wrap: wrap;
	gap: .25rem;
}

.modal-footer {
	flex-wrap: wrap;
	gap: .35rem;
}

@media (max-width: 575.98px) {
	.card-header .card-tools {
		margin-left: 0;
		width: 100%;
	}

	.card-header .card-tools .btn {
		flex: 0 1 auto;
	}

	.modal-footer .btn {
		flex: 1 1 auto;
	}
}

.btn-xs { font-size: .76rem; }
/* AdminLTE: ".text-sm .btn" memaksa semua tombol ke 14px; hormati ukuran xs/sm */
.text-sm .btn-xs { font-size: .76rem !important; }
.text-sm .btn-sm { font-size: .82rem !important; }

/* ================= Ujian: kamera webcam & token ================= */
#cam-frame {
	position: fixed;
	z-index: 1040;
	width: 240px;
	border-radius: .6rem;
	overflow: hidden;
	background: #0d47a1;
	box-shadow: 0 .4rem 1.2rem rgba(13, 71, 161, .35);
	border: 2px solid rgba(255, 255, 255, .9);
	touch-action: none;
	cursor: grab;
	user-select: none;
	transition: border-color .2s ease, box-shadow .2s ease;
}

/* panduan posisi wajah: oval putus-putus di tengah gambar */
#cam-frame::after {
	content: '';
	position: absolute;
	left: 27%;
	right: 27%;
	top: 34px;
	bottom: 10px;
	border: 2px dashed rgba(255, 255, 255, .5);
	border-radius: 50%;
	pointer-events: none;
}

#cam-frame.cam-alert::after {
	border-color: rgba(239, 68, 68, .75);
}

@media (min-width: 576px) and (max-width: 991.98px) {
	#cam-frame { width: 200px; }
}

#cam-frame.dragging {
	cursor: grabbing;
	box-shadow: 0 .6rem 1.6rem rgba(13, 71, 161, .5);
}

#cam-frame.cam-alert {
	border-color: #ef4444;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, .35), 0 .4rem 1.2rem rgba(0, 0, 0, .3);
}

#cam-frame .cam-bar {
	display: flex;
	align-items: center;
	gap: .4rem;
	padding: .25rem .55rem;
	font-size: .72rem;
	font-weight: 600;
	color: #fff;
}

#cam-frame.cam-alert .cam-bar {
	background: #ef4444;
}

#cam-frame .cam-video {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transform: scaleX(-1);
	pointer-events: none;
}

.cam-check .cam-preview {
	width: 260px;
	max-width: 85%;
	margin: 0 auto .75rem;
	border-radius: .6rem;
	overflow: hidden;
	background: #0d47a1;
	aspect-ratio: 4 / 3;
}

.cam-check .cam-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scaleX(-1);
}

.cam-steps {
	list-style: none;
	margin: 0 0 .5rem;
	padding: 0;
	text-align: left;
	font-size: .85rem;
}

.cam-steps li { padding: .15rem 0; }
.cam-ok { color: #16a34a; }
.cam-bad { color: #dc2626; }
.cam-wait { color: #6b7280; }
.cam-err { font-size: .82rem; color: #b91c1c; margin-bottom: .5rem; }

.token-box {
	margin: 1rem 0;
	text-align: center;
}

.token-box label {
	display: block;
	font-weight: 700;
	color: #dc2626;
	margin-bottom: .4rem;
}

.token-box .token-input {
	width: 100%;
	max-width: 340px;
	height: 3.25rem;
	padding: 0 1rem;
	text-align: center;
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: .3em;
	text-transform: uppercase;
	color: #0d47a1;
	background: #f9fafc;
	border: 2px solid #dfe4ec;
	border-radius: .6rem;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.token-box .token-input::placeholder {
	letter-spacing: .15em;
	font-weight: 500;
	font-size: 1.1rem;
	color: #b6bfcc;
}

.token-box .token-input:focus {
	outline: none;
	border-color: #2196F3;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(33, 150, 243, .18);
}

.token-box small {
	display: block;
	margin-top: .4rem;
	color: #6b7280;
}

@media (max-width: 575.98px) {
	#cam-frame { width: 150px; }
	.token-box .token-input { font-size: 1.25rem; letter-spacing: .2em; }
}

.cam-warn { color: #b45309; }

#cam-frame .cam-label {
	flex: 1;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ================= Dashboard: kartu statistik, aktivitas, retensi ================= */
.stat-card {
	--c: #2563eb;
	--t: rgba(37, 99, 235, .1);
	display: flex;
	align-items: center;
	gap: .85rem;
	height: 100%;
	padding: .85rem 1rem;
	background: #fff;
	border: 1px solid #eef1f5;
	border-radius: .75rem;
	box-shadow: 0 .1rem .6rem rgba(58, 59, 69, .06);
	color: inherit;
	text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

a.stat-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 .4rem 1.1rem rgba(58, 59, 69, .12);
	border-color: var(--c);
	color: inherit;
	text-decoration: none;
}

.stat-icon {
	flex: 0 0 46px;
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: .75rem;
	font-size: 1.15rem;
	background: var(--t);
	color: var(--c);
}

.stat-body {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.15;
}

.stat-num {
	font-size: 1.6rem;
	font-weight: 700;
	color: #1a2b4c;
}

.stat-title {
	font-size: .875rem;
	color: #6b7280;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.stat-go {
	margin-left: auto;
	font-size: .8rem;
	color: #b6bfcc;
	transition: transform .15s ease, color .15s ease;
}

a.stat-card:hover .stat-go {
	color: var(--c);
	transform: translateX(2px);
}

.stat-blue { --c: #2563eb; --t: rgba(37, 99, 235, .1); }
.stat-cyan { --c: #0891b2; --t: rgba(8, 145, 178, .1); }
.stat-teal { --c: #0d9488; --t: rgba(13, 148, 136, .1); }
.stat-fuchsia { --c: #7c3aed; --t: rgba(124, 58, 237, .1); }
.stat-success { --c: #16a34a; --t: rgba(22, 163, 74, .1); }
.stat-yellow { --c: #d97706; --t: rgba(217, 119, 6, .12); }

/* kartu "Penilaian": teks seragam, tanpa merah */
.stat-mini .info-box-text,
.info-box-content.stat-mini .info-box-text { color: #6b7280 !important; }
.info-box-content.stat-mini .info-box-number { color: #0d47a1 !important; }

/* Aktivitas: tinggi terbatas dengan scroll */
.log-scroll {
	max-height: 340px;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: #cbd5e1 transparent;
}

.log-scroll::-webkit-scrollbar { width: 6px; }
.log-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.log-scroll .products-list .item { padding: .5rem 0; }
.log-scroll .products-list .media { align-items: center; }

/* Pengaturan retensi di halaman Log Aktivitas */
.retensi-box {
	padding: .7rem .9rem;
	background: #f8fafc;
	border: 1px solid #eef1f5;
	border-radius: .6rem;
}

.retensi-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .4rem .6rem;
	margin-bottom: .25rem;
}

.retensi-judul { font-weight: 700; color: #1a2b4c; }
.retensi-input { width: 84px; }

@media (max-width: 575.98px) {
	.stat-card { padding: .7rem .8rem; gap: .65rem; }
	.stat-icon { flex-basis: 40px; width: 40px; height: 40px; font-size: 1rem; }
	.stat-num { font-size: 1.35rem; }
	.log-scroll { max-height: 300px; }
}

/* enam kartu statistik sebaris hanya jika cukup lebar; di bawahnya 3 per baris agar judul tidak terpotong */
@media (min-width: 1700px) {
	.stat-col { flex: 0 0 16.666667%; max-width: 16.666667%; }
}

/* Penilaian: grid ringkas responsif */
.mini-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem; }
.mini-stat { display: flex; flex-direction: column; gap: .15rem; min-width: 0; padding: .55rem .75rem; background: #f8fafc; border: 1px solid #e8edf3; border-radius: .6rem; text-decoration: none !important; transition: border-color .15s, box-shadow .15s; }
a.mini-stat:hover { border-color: #93b4f0; box-shadow: 0 2px 8px rgba(37, 99, 235, .1); }
.mini-label { display: flex; justify-content: space-between; gap: .4rem; font-size: .75rem; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-label small { font-size: .7rem; font-variant-numeric: tabular-nums; }
.mini-num { font-size: 1.05rem; font-weight: 700; line-height: 1.2; color: #0d47a1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 991.98px) { .mini-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Tabel: tombol aksi sejajar (tidak bertumpuk) */
td .btn + br, td a.btn + br, td .btn-group + br { display: none; }
td .btn.mb-1, td .btn.mb-2 { margin-bottom: 0 !important; }
td .btn { margin-top: .1rem; margin-bottom: .1rem; }

/* Modal form: ringkas, tidak melebihi layar */
.modal-dialog:not(.modal-dialog-scrollable) .modal-body { max-height: calc(100vh - 9rem); overflow-y: auto; }
.modal-body { padding: .85rem 1rem; }
.modal-body .row.mb-3, .modal-body .form-group { margin-bottom: .55rem !important; }
.modal-body label { margin-bottom: .2rem; font-size: .85rem; }
.modal-body .form-control, .modal-body .custom-select, .modal-body .input-group-text { min-height: 34px; padding-top: .25rem; padding-bottom: .25rem; font-size: .875rem; }
.modal-body select.form-control:not([multiple]) { height: 34px; }
.modal-header, .modal-footer { padding: .6rem 1rem; }

/* Modal dengan banyak baris label+input: 2 kolom di layar >= 768px */
@media (min-width: 768px) {
	.modal-dialog:has(> .modal-content > .modal-body > .row.mb-3:nth-child(6)) { max-width: 780px; }
	.modal-body:has(> .row.mb-3:nth-child(6)) { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.25rem; align-content: start; }
	.modal-body:has(> .row.mb-3:nth-child(6)) > .row.mb-3 { margin-left: 0; margin-right: 0; }
	.modal-body:has(> .row.mb-3:nth-child(6)) > .row.mb-3 > [class*="col-md-4"] { flex: 0 0 34%; max-width: 34%; }
	.modal-body:has(> .row.mb-3:nth-child(6)) > .row.mb-3 > [class*="col-md-8"] { flex: 0 0 66%; max-width: 66%; }
}
@media (min-width: 768px) {
	.modal-body:has(> .row.mb-3:nth-child(6)) > .row.mb-3:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.modal-body:has(> .row.mb-3:nth-child(6)) > .row.mb-3:last-child:nth-child(odd) > [class*="col-md-4"] { flex: 0 0 17%; max-width: 17%; }
	.modal-body:has(> .row.mb-3:nth-child(6)) > .row.mb-3:last-child:nth-child(odd) > [class*="col-md-8"] { flex: 0 0 83%; max-width: 83%; }
}

/* ---- Halaman siswa: menu utama bergaya ikon aplikasi ---- */
.menu-utama-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .4rem .5rem; margin: 0; }
.menu-utama-grid > [class*="col-"] { flex: none; max-width: none; width: auto; padding: 0; margin: 0 !important; }
.menu-utama-item { height: 100%; gap: .5rem; padding: .7rem .25rem .6rem; }
.menu-utama-icon {
	--a: #2563eb; --b: #1e40af;
	width: 54px; height: 54px; border-radius: 15px;
	background: linear-gradient(145deg, var(--a), var(--b));
	color: #fff; font-size: 1.35rem;
	box-shadow: 0 4px 10px -2px color-mix(in srgb, var(--b) 45%, transparent), inset 0 1px 0 rgba(255, 255, 255, .22);
	transition: transform .15s ease, box-shadow .15s ease;
}
.menu-utama-item:hover .menu-utama-icon { transform: translateY(-2px); }
.menu-utama-grid > :nth-child(9n+1) .menu-utama-icon { --a: #3b82f6; --b: #1d4ed8; }
.menu-utama-grid > :nth-child(9n+2) .menu-utama-icon { --a: #14b8a6; --b: #0f766e; }
.menu-utama-grid > :nth-child(9n+3) .menu-utama-icon { --a: #f59e0b; --b: #b45309; }
.menu-utama-grid > :nth-child(9n+4) .menu-utama-icon { --a: #8b5cf6; --b: #5b21b6; }
.menu-utama-grid > :nth-child(9n+5) .menu-utama-icon { --a: #f97316; --b: #c2410c; }
.menu-utama-grid > :nth-child(9n+6) .menu-utama-icon { --a: #22c55e; --b: #15803d; }
.menu-utama-grid > :nth-child(9n+7) .menu-utama-icon { --a: #ec4899; --b: #9d174d; }
.menu-utama-grid > :nth-child(9n+8) .menu-utama-icon { --a: #6366f1; --b: #3730a3; }
.menu-utama-grid > :nth-child(9n+9) .menu-utama-icon { --a: #06b6d4; --b: #0e7490; }
@media (max-width: 575.98px) {
	.menu-utama-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.menu-utama-icon { width: 50px; height: 50px; font-size: 1.25rem; }
	.menu-utama-label { font-size: .8rem; }
}

/* ---- Halaman siswa: ruang napas kartu ---- */
.content.overlap .card { margin-bottom: 1.1rem; }
.content.overlap .card-header { padding: .85rem 1.25rem; }
.content.overlap .card-body { padding: 1.1rem 1.25rem; }
.content.overlap .card-body > .row.table-responsive,
.content.overlap .card-body > .row#jadwal-content { margin-left: 0; margin-right: 0; }
.content.overlap .card-body .table td, .content.overlap .card-body .table th { padding: .6rem .75rem; }
.content.overlap .card-body .card .card-header { padding: .75rem 1rem; }
.content.overlap .card-body .card .card-body { padding: .25rem 1rem .9rem; }
@media (max-width: 575.98px) {
	.content.overlap { padding: 1rem .5rem !important; }
	.content.overlap .card-header, .content.overlap .card-body { padding-left: .9rem; padding-right: .9rem; }
}

/* Halaman siswa: foto default + judul kartu di tengah */
.content.overlap .info-box > img.avatar { width: 84px; height: 84px; border: 3px solid rgba(255, 255, 255, .85); background: #dbeafe; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.content.overlap .row > [class*="col"] > .card > .card-header { justify-content: center; text-align: center; }
.content.overlap .row > [class*="col"] > .card > .card-header > :is(h4, h5, h6, .card-title, .text-center) { float: none; width: 100%; margin: 0; text-align: center; justify-content: center; }
.content.overlap .row > [class*="col"] > .card > .card-header:has(.card-tools) { justify-content: space-between; }
.content.overlap .row > [class*="col"] > .card > .card-header:has(.card-tools) > .card-title { width: auto; flex: 1; text-align: left; justify-content: flex-start; }

/* ---- Ujian siswa: navigasi nomor soal ---- */
.modal-nomor { max-width: 520px; }
.modal-nomor .modal-body { padding: 1rem 1.1rem; }
.nomor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: .6rem .5rem; justify-items: center; }
.nomor-item { position: relative; width: 44px; height: 44px; }
.nomor-btn {
	width: 100%; height: 100%; padding: 0; border: 1.5px solid #cfd8e6; border-radius: 10px;
	background: #fff; color: #39445c; font-weight: 600; font-size: .95rem; line-height: 1;
	transition: background-color .12s, border-color .12s, transform .1s;
}
.nomor-btn:hover { border-color: #1565c0; color: #1565c0; }
.nomor-btn:focus { outline: none; box-shadow: 0 0 0 3px rgba(21, 101, 192, .2); }
.nomor-item.is-answered .nomor-btn { background: #1565c0; border-color: #1565c0; color: #fff; }
.nomor-item.is-answered .nomor-btn:hover { background: #0d47a1; color: #fff; }
.nomor-item.is-active .nomor-btn { border-color: #0d47a1; box-shadow: 0 0 0 3px rgba(21, 101, 192, .28); }
.nomor-badge {
	position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px;
	border-radius: 9px; background: #16a34a; color: #fff; border: 2px solid #fff;
	font-size: .65rem; font-weight: 700; line-height: 14px; text-align: center; pointer-events: none;
}
.nomor-legend { display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: .78rem; color: #6b7788; }
.nomor-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.lg-box { width: 12px; height: 12px; border-radius: 3px; border: 1.5px solid #cfd8e6; display: inline-block; }
.lg-answered { background: #1565c0; border-color: #1565c0; }
.lg-active { border-color: #0d47a1; box-shadow: 0 0 0 2px rgba(21, 101, 192, .28); }
@media (max-width: 575.98px) {
	.modal-nomor { margin: .5rem; max-width: none; }
	.nomor-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ---- Ujian siswa: kolom jawaban teks ---- */
.jawaban-teks { resize: vertical; font-size: 1rem; line-height: 1.5; }
textarea#jawaban-isian { resize: none; }

/* ---- Halaman pra-ujian: tata tertib ---- */
.tata-tertib { border: 1px solid #e3e8f0; border-left: 4px solid #1565c0; border-radius: .6rem; background: #fff; overflow: hidden; height: 100%; }
.tata-tertib .tt-head { padding: .65rem 1rem; font-weight: 700; font-size: .95rem; color: #1a2b4c; background: #f6f8fc; border-bottom: 1px solid #e3e8f0; }
.tata-tertib .tt-head i { color: #1565c0; margin-right: .4rem; }
.tata-tertib .tt-body { padding: .85rem 1rem .25rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
.tata-tertib .tt-title { font-weight: 700; font-size: .85rem; color: #1a2b4c; margin-bottom: .35rem; }
.tata-tertib .tt-title span { font-weight: 400; color: #6b7788; font-size: .78rem; margin-left: .25rem; }
.tata-tertib ul { list-style: none; margin: 0 0 .75rem; padding: 0; }
.tata-tertib li { position: relative; padding-left: 1rem; margin-bottom: .3rem; font-size: .85rem; line-height: 1.45; color: #39445c; }
.tata-tertib li::before { content: ''; position: absolute; left: .1rem; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: #1565c0; }
.tata-tertib .tt-foot { padding: .6rem 1rem; font-size: .8rem; color: #7a5b00; background: #fff8e6; border-top: 1px solid #f3e3b3; line-height: 1.45; }
.tata-tertib .tt-foot i { margin-right: .35rem; }
@media (max-width: 991.98px) { .tata-tertib { margin-top: 1rem; height: auto; } }
@media (max-width: 767.98px) { .tata-tertib .tt-body { grid-template-columns: 1fr; } }

/* ---- Halaman pra-ujian: lebar & warna kartu ---- */
@media (min-width: 1400px) { .content.overlap > .container { max-width: 1320px; } }
.card-header.hdr-blue { background: #eaf2fd; }
.card-header.hdr-teal { background: #e6f5f2; }
.card-header.hdr-slate { background: #f1f4f9; }
.card-header.hdr-blue, .card-header.hdr-teal, .card-header.hdr-slate { color: #1a2b4c; font-weight: 600; letter-spacing: .01em; }
.tata-tertib { border-color: #d6e4f7; border-left-color: #1565c0; background: #fbfdff; }
.tata-tertib .tt-head { background: #eaf2fd; border-bottom-color: #d6e4f7; }
.tata-tertib .tt-body { padding: 1rem 1.25rem .35rem; gap: 0 2rem; }
.tata-tertib .tt-title i { color: #1565c0; margin-right: .35rem; font-size: .8rem; }
.tata-tertib .tt-foot { padding: .65rem 1.25rem; }
@media (max-width: 575.98px) {
	.tata-tertib .tt-body { padding: .85rem 1rem .25rem; }
	.tata-tertib li, .tata-tertib .tt-foot { font-size: .82rem; }
}

/* Tabel: kelompok tombol aksi sejajar & rapat */
.aksi-inline { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .3rem; }
.aksi-inline .btn { margin: 0; }
/* Status + tombol pengaktifan (jadwal, materi): satu baris, bukan bertumpuk */
td > .d-flex.flex-column:has(> .badge + .btn) { flex-direction: row !important; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem; }
td > .d-flex.flex-column:has(> .badge + .btn) > .badge { margin: 0 !important; }
/* Sel dengan banyak badge kelas/mapel: rapat dan boleh turun baris */
td .badge + .badge { margin-left: .15rem; }

/* ---- Halaman pra-ujian: kartu datar & seragam (tanpa garis aksen) ---- */
.content.overlap .card { border: 1px solid #e6ebf2; border-radius: .75rem; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
.content.overlap .card .card-header { border-bottom: 1px solid #e6ebf2; }
#info-siswa.card { border: 1px solid #e6ebf2 !important; box-shadow: none !important; background: #fff; }
#info-siswa .card-header { background: transparent; padding: .8rem 1rem .4rem; }
#info-siswa .card-title { font-size: 1rem; font-weight: 700; color: #1a2b4c; float: none; }
#info-siswa .list-group-item { border-color: #eef1f6; font-size: .875rem; }

.tata-tertib { border: 1px solid #e6ebf2; border-left: 1px solid #e6ebf2; border-radius: .75rem; background: #fff; box-shadow: none; }
.tata-tertib .tt-head { display: flex; align-items: center; gap: .6rem; background: #fff; border-bottom: 1px solid #eef1f6; padding: .75rem 1rem; font-size: .95rem; }
.tata-tertib .tt-head .tt-icon { width: 28px; height: 28px; border-radius: 8px; background: #e8f1fc; color: #1565c0; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; }
.tata-tertib .tt-head i { margin: 0; color: inherit; }
.tata-tertib .tt-body { padding: .9rem 1rem; gap: .75rem; }
.tata-tertib .tt-group { background: #f7f9fc; border: 1px solid #eef1f6; border-radius: .6rem; padding: .7rem .85rem .2rem; }
.tata-tertib .tt-title { display: flex; align-items: center; gap: .4rem; }
.tata-tertib .tt-title i { margin: 0; width: 22px; height: 22px; border-radius: 6px; background: #e8f1fc; display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; }
.tata-tertib li::before { background: #94a3b8; }
.tata-tertib .tt-foot { background: #fffbeb; border-top: 1px solid #f3e8c4; padding: .6rem 1rem; }
@media (max-width: 767.98px) { .tata-tertib .tt-body { grid-template-columns: 1fr; } }

/* Dashboard: batasi tinggi widget "JADWAL PENILAIAN HARI INI" & "ELEARNING HARI INI"
   agar tidak memanjangkan halaman; konten discroll di dalam kartu, bukan di body. */
.dash-scroll-y { max-height: 340px; overflow-y: auto; }
.dash-scroll-y::-webkit-scrollbar { width: 6px; }
.dash-scroll-y::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
@media (max-width: 575.98px) { .dash-scroll-y { max-height: 260px; } }

/* Halaman Backup dan Restore: tombol aksi (Unduh/Restore/Hapus) sejajar & seimbang,
   tidak menumpuk aneh saat kolom sempit di layar kecil. */
.aksi-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .3rem; }
.aksi-actions .btn { white-space: nowrap; }

/* Jadwal penilaian sebelumnya (siswa): satu baris per jadwal, kolom sejajar */
#table-container { width: 100%; }
#table-container th, #table-container td { vertical-align: middle; padding: .6rem .75rem; }
#table-container th { font-size: .82rem; font-weight: 700; color: #39445c; border-top: 0; }
#table-container td { font-size: .9rem; }
#table-container tr td .status-table { white-space: nowrap; }
@media (max-width: 575.98px) { #table-container th, #table-container td { padding: .5rem .4rem; font-size: .82rem; } }

/* Konfirmasi ujian: tombol Mulai */
.btn-mulai {
	display: flex; align-items: center; justify-content: center; gap: .55rem;
	width: 100%; height: 46px; margin-top: 1rem; padding: 0 1rem;
	border: 0; border-radius: .6rem; background: #1565c0; color: #fff;
	font-size: .95rem; font-weight: 600; letter-spacing: .02em;
	box-shadow: 0 2px 6px rgba(21, 101, 192, .28);
	transition: background-color .15s, box-shadow .15s, transform .1s;
}
.btn-mulai i { font-size: .8rem; }
.btn-mulai:hover { background: #0d47a1; box-shadow: 0 4px 10px rgba(13, 71, 161, .3); }
.btn-mulai:active { transform: translateY(1px); }
.btn-mulai:focus-visible { outline: 3px solid rgba(21, 101, 192, .3); outline-offset: 2px; }
.btn-mulai:disabled { opacity: .65; cursor: not-allowed; box-shadow: none; }

/* Header halaman ujian: judul & subjudul aplikasi */
.info-box-content { min-width: 0; }
.ujian-title { display: block; font-size: 1.3rem; line-height: 1.25; max-width: 100%; }
.ujian-sub { display: block; font-size: .8rem; letter-spacing: .04em; opacity: .85; max-width: 100%; }
@media (max-width: 575.98px) {
	.ujian-title { font-size: 1rem; }
	.ujian-sub { font-size: .7rem; letter-spacing: .02em; }
}

/* Ujian siswa: tombol "Selesai dalam ..." — menggantikan tombol Selesai selama durasi minimal
   ujian belum tercapai. Diberi warna amber (menunggu), bukan merah (error/dilarang), supaya
   siswa paham ini cuma hitung mundur, bukan tanda ada yang gagal. */
.btn-selesai-timer.btn-danger {
	background: #fff4e0 !important;
	border-color: #f0c579 !important;
	color: #8a5a00 !important;
	white-space: nowrap;
}
.btn-selesai-timer i { color: #b3790a; }
#timer-selesai-text { font-variant-numeric: tabular-nums; font-weight: 700; }
@media (max-width: 400px) {
	.btn-selesai-timer { font-size: .8rem; padding: .25em .65em; }
}

/* Gambar soal/jawaban ujian bisa diklik untuk diperbesar (lihat ujian.php + .fullscreen-overlay) */
.konten-soal-jawab img.img-zoomable { cursor: zoom-in; }
