.question .part { position: relative; }
.question .lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* để drag không bị chặn */
  overflow: visible;
  z-index: 2;
}
.question .lines svg { display: block; }
.question .lines line {
  stroke: #2b7cff;
  stroke-width: 2;
  stroke-linecap: round;
}
.question .connected { opacity: 0.6; }
.question .lines line.traloidung {
    stroke: #2fb809!important;
}
.question .lines line.traloisai {
    stroke: #f3251b!important;
}
.modal-footer .float-left{width: calc(100% - 210px);}
.modal-footer .float-right{min-width: 180px;}
.modal-footer.exam-thithat .float-left, .modal-footer.bt-xuly-data .float-left{width: calc(100% - 130px);}
.modal-footer.exam-thithat .float-right, .modal-footer.bt-xuly-data .float-right{min-width: 100px;}
.modal-footer .float-right button.dong-popup-view{float: right;}
.modal-footer.bt-xuly-data .float-left{
    float: left !important;
}
.modal-footer.bt-xuly-data .float-right{
	float: right !important;
	min-width: 100px;
}
.modal-footer.bt-xuly-data {

}
.modal-footer .float-left .title-bottom{
	border: 2px dotted #f7901e;
    padding: 8px 16px;
    border-radius: 6px;
    max-width: 94%;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline;
	color: #f7901e;
}
#addModal2 .view-content-data-popup {
	
}
.swal2-content b{font-weight: bold !important;}
.cauhoiloai-7 .sortable-sapxep {
	display: flex;
	gap: 10px;
	padding: 8px 16px;
	background: #f8f9fa;
	border: 1px solid #ccc;
	min-height: 50px;
}
.cauhoiloai-7 .item-sapxep {
	background: #fff;
	padding: 8px 16px;
	border: 1px solid #007bff;
	cursor: grab;
}
.ui-state-highlight {
    background: #f0f0f0;
    border: 1px dashed #ccc;
    width: 50px;
    height: auto;
    visibility: visible;
}
.cauhoiloai-5 .questions, .cauhoiloai-5 .answers {
  display: inline-block;
  vertical-align: top;
  width: 40%;
}
.cauhoiloai-5 .questions ul, .cauhoiloai-5 .answers ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #ccc;
  min-height: 100px;
}
.cauhoiloai-5 .questions ul li, .cauhoiloai-5 .answers ul li {
  margin: 5px;
  padding: 10px;
  background: #f0f0f0;
  border: 1px solid #ddd;
  cursor: pointer;
  text-align: center;
}
.cauhoiloai-5 .questions ul li:hover, .cauhoiloai-5 .answers ul li:hover {
  background: #e0e0e0;
}
.cauhoiloai-5 .answers ul li.connected {
  background: #d4edda;
}
.cauhoiloai-5 .lines {
   width: 20%;
   min-height: 200px;
}
.cauhoiloai-5 .line {
  position: absolute;
  height: 2px;
  background: #007bff;
  transform-origin: 0 0;
  z-index: 2;
}
.cauhoiloai-5 .part {
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 600px;
  margin: 20px auto;
}
.cauhoiloai-6 .drop-zone-keotha {
	display: inline-block;
	width: 50px;
	height: 30px;
	border: 2px dashed #000;
	text-align: center;
	line-height: 26px;
}
.cauhoiloai-6 .answer-keotha {
	display: inline-block;
	min-width: 30px;
	width: auto;
	padding:2px 10px;
	height: 26px;
	background-color: lightblue;
	text-align: center;
	line-height: 24px;
	cursor: grab;
}
.cauhoiloai-6 .answer-container { 
	display: flex; gap: 10px; padding: 10px; border: 1px dotted #e1e1e1; 
}
.data-doanvan-cauhoi {
    margin-bottom: 15px;
    width: 100%;
    float: left;
	border-bottom: 1px dotted #e1e1e1;
	padding: 10px 20px;
}
.data-cauhoi-baitap{
	width: 98%;
    float: left;
    margin-bottom: 10px;
    border: 1px solid #dee2e6;
}
.data-cauhoi-baitap .question:last-child, .quiz-list .traloidungsai:last-child{
	border-bottom: none!important;
}
.play-audio-ghiam{
	margin: 20px 0px;
}
.play-audio-ghiam button {
    border: 1px solid #e77d08;
    border-radius: 5px;
    padding: 5px 10px;
    background: #f7901e;
    color: #fff;
}
#top-tab-menu{
	width: 100%;
    float: left;
}
#tab-menu {
    max-width:520px;
	margin:20px auto;
    margin-bottom: 20px;
	display: flex;
    flex-wrap: wrap;
}
.hoctuvung{display:none;}
.hoctuvung.active{display:block; width:100%; float: left;}
.tab-menu-baihoc {
    float: left;
    margin: 5px 0px;
	flex: 1 1 33.33%;
	text-align: center;
	background: #1b6ccb;
	padding: 10px 5px;
	color: #fff;
	cursor: pointer;
	border-left: 1px solid #fff;
}
.tab-menu-baihoc.active, .tab-menu-baihoc:hover{
	background: #f2901c;
}
.optionCauhinh{display:flex;}
.noidung_hoctuvung{
	display: flex;
    flex-wrap: wrap;
}
.noidung_hoctuvung .play-tuvung, .noidung_hoctuvung .speak-tuvung{
    padding: 10px 0px;
	flex: 1 1 50%;
}
.play-tuvung .sm2_button, .play-tuvung .sm2_button.sm2_paused:hover {
    background-color: #39c;
    background-image: none,url(../images/arrow-right-white-2x.png);
    background-size: 9px 10px;
    background-repeat: no-repeat;
    background-position: 5px 50%;
}
.play-tuvung .sm2_button, .play-tuvung .sm2_button.sm2_paused:hover {
    background-color: #39c;
    background-size: 9px 10px;
    background-position: 5px 50%;
}
.control-speak-tuvung{
	display:none;
	position: fixed;
    bottom: 15px;
	min-width:160px;
    left: calc(50vw - 80px);
    background: #f5f5f5;
    padding: 5px 10px;
    border: 1px solid #dee2e6;
	z-index:99999999;
}
#outputRecognition{padding-top:10px;}
.speak_button{cursor: pointer!important;}
.play-tuvung .sm2_button {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    text-indent: -9999px;
    overflow: hidden;
    vertical-align: middle;
    border-radius: 2px;
    margin-top: -5px;
    transition: all .2s ease-in-out;
}
.sm2_button, .box_dark.thi-tracnghiem .ds-cauhoi .td-ch.cauhoi.chophep {
    cursor: pointer!important;
}
.play-tuvung .sm2_button:hover, .play-tuvung .sm2_button.sm2_playing, .play-tuvung .sm2_button.sm2_playing:hover {
    background-color: #c33;
}
.play-tuvung .sm2_button.sm2_playing, .play-tuvung .sm2_button.sm2_playing:hover {
    transform: rotate(90deg);
}
.play-tuvung .sm2_button:hover, .play-tuvung .sm2_button.sm2_playing, .play-tuvung .sm2_button.sm2_playing:hover {
    background-color: #c33;
}
.cauhoiloai-tuluan .traloi_tuluan_thi.traloisai{border: 1px solid #f3251b!important;}
.cauhoiloai-tuluan .startRecording.traloisai{border: 1px solid #f3251b!important; color:#f3251b!important;}
.play-audio-question button{
	border: 1px solid #b8ece3;
    border-radius: 5px;
    padding: 5px 10px;
    background: #c4f4ec;
}
.play-audio-question{
	margin-top: 10px;
    margin-bottom: 20px;
}
audio{max-width: 100%; margin:20px 0px;}
.play-audio-question .playing{
  display: inline-block;
  animation-name: waveAudio;
  animation-duration: 1.5s; 
  animation-iteration-count: infinite; 
}
.question .cauhoitracnghiem input{height:36px; min-height:36px!important; margin-bottom: 10px;}
@keyframes waveAudio {
  0% {
    transform: scale(1); 
  }
  50% {
    transform: scale(0.9); 
  }
  100% {
    transform: scale(1);	
  }
}
.question.entry-tracnghiem {
    width: 100%;
    float: left;
	margin-bottom: 10px;
	border-bottom: 1px dotted #e1e1e1;
	padding: 10px 20px;
}
.load-danhsach-cauhoi .baoloi {
    cursor: pointer;
    color: #f26222;
    z-index: 99;
	position: absolute; 
	right: 55px;
}
.load-danhsach-cauhoi .cauhoitracnghiem {
    margin-top: 20px;
    font-size: 18px!important;
    line-height: 24px;
	padding: 15px 5px;
}
.load-danhsach-cauhoi .cauhoiloai-file .cauhoitracnghiem{
	margin-top: 0px;
}
.load-danhsach-cauhoi .top-cauhoi-content {
    display: inline-block;
    float: left;
    padding-right: 5px;
}
.cauhoitracnghiem .nhaptl input.traloidung{border: 2px solid #2fb809; color: #2fb809;}
.cauhoitracnghiem .nhaptl input.traloisai{border: 2px solid #f3251b; color: #f3251b;}
.quiz-list .qselect {
    padding-bottom: 10px;
    display: flex;
    width: 100%;
    float: left;
    align-content: center;
    align-items: center;
    z-index: 9;
    position: relative;
	padding: 7px 0;
    cursor: pointer;
}
.quiz-list .qselect2 {
    padding-bottom: 10px;
    display: flex;
    width: 100%;
    float: left;
    align-content: center;
    align-items: center;
    z-index: 9;
    position: relative;
	padding: 7px 0;
    cursor: auto;
}
.quiz-list .qselect.cot2{width: 50%;}
.quiz-list .qselect.cot3{width: 33.33%;}
.quiz-list .qselect.cot4{width: 25%;}
.qselect>.mark {
    padding: 0;
    background-color: #fff;
    float: left;
    margin-right: 10px;
    min-width: 28px;
    height: 28px;
    line-height: 26px;
	width: 28px;
    text-align: center;
    border-radius: 18px;
    display: inline-block;
    border: solid 1px #7d6a61;
    background: none;
    color: #7d6a61;
}
.qselect2>.mark2 {
    padding: 0;
    background-color: #fff;
    float: left;
    margin-right: 10px;
    min-width: 28px;
    height: 28px;
    line-height: 26px;
    width: 28px;
    text-align: center;
    border-radius: 18px;
    display: inline-block;
    border: solid 1px #7d6a61;
    background: none;
    color: #7d6a61;
	cursor: auto;
}
.traloidungsai .mark3 {
    padding: 0;
    background-color: #fff;
    float: left;
    margin-right: 10px;
    min-width: 60px;
    height: 28px;
    line-height: 26px;
    width: 60px;
    text-align: center;
    border-radius: 18px;
    display: inline-block;
    border: solid 1px #7d6a61;
    background: none;
    color: #7d6a61;
	cursor: pointer;
}
.quiz-list .traloidungsai{
	border-bottom: 1px dotted #e1e1e1;
    display: flex;
    width: 100%;
    float: left;
    margin-bottom: 5px;
    padding-bottom: 10px;
    text-align: center;
    align-content: center;
    align-items: center;
    justify-content: center;
}
.traloidungsai .mark3.active{
    border: solid 1px #0e8fb7;
    color: #fff;
    background: #14abd8;
}
.traloidungsai .mark3.traloidung{
    border: solid 1px #30632d!important;
    color: #fff;
    background: #2fb809!important;
}
.traloidungsai .mark3.traloisai{
    border: solid 1px #b11400!important;
    color: #fff;
    background: #de3019!important;
}
.qselect>.qsign {
    display: inline-block;
    float: left;
    font-size: 16px;
}
.load-danhsach-cauhoi #toolbox {
    max-height: 65vh;
    width: 16%;
    position: fixed;
    top: 100px;
    right: 2%;
    overflow: auto;
}
.load-danhsach-cauhoi #toolbox.dethi-file {
    max-height: calc(100vh - 400px);
    width: 24%;
    position: fixed;
    top: 290px;
    right: 5px;
    overflow: auto;
}
.data-content-cauhoi, .data-content-toolbar{float:left;}
.data-content-toolbar{
    position: fixed;
    right: 2%;
    top: 20px;
	text-align: center;
    z-index: 999;
}
.data-content-question-view{
	float:left;
    overflow: auto;
	overflow:hidden;
}
.data-content-question-view .data-cauhoi-baitap{padding-bottom: 40px;}
.data-content-toolbar.info-exam-time-count{width:120px; right: calc(83% - 60px); background: #fff !important;}
#pdf-js-viewer{min-height: calc(100vh - 150px); max-height:  calc(100vh - 100px);  float: right;}
.col-md-6.data-content-cauhoi{
	position: fixed;
    right: 0px;
    top: 15px;
}
.right-cauhoi-pdf{
	padding-top: 100px;
    width: 100%;
    display: block;
	max-width: 920px;
}
.load-danhsach-cauhoi .pagination {
    display: block;
    padding-left: 0;
    margin: 20px 0;
    border-radius: 4px;
}
#toolbox a.page.active, #toolbox a.page:hover {
	font-weight:bold;
}
#toolbox a.page {
    cursor: pointer;
    background: #fff;
    color: #a15300;
    padding: 4px 5px !important;
    display: inline-block;
    margin-bottom: 5px;
    margin-right: 5px;
    border: 1px solid #f5840c;
    width: 38px;
    text-align: center;
    font-size: 14px;
	float:left;
	opacity: 0.6;
}
#toolbox a.page.active, #toolbox a.page:hover {
    display: inline-block;
    margin-right: 5px;
	opacity: 1;
}
#toolbox a.page span {
    background: none!important;
}
#toolbox .dalam.page{
	background: #14abd8!important;
    border: solid 1px #0e8fb7;
    color: #fff!important;
    font-weight: bold;
}
#toolbox .dung.page{
	background: #2fb809 !important;
    border: solid 1px #27a703!important;
    color: #fff!important;
}
#toolbox .sai.page{
	background: #e02525 !important;
    border: solid 1px #c91717!important;
    color: #fff!important;
}
.modal-footer.tracnghiem {
    margin-top: 15px;
    position: fixed;
    width: 100%;
    bottom: 0px;
    right: 0px;
    background: #fff;
    z-index: 9999;
    padding-right: 15px;
}
.modal-footer .btn-lg.dong-popup-view, .modal-footer .close-popup-data{
    background-color: #7e7a7b!important;
    border: 1px solid #7e7a7b!important;
    margin-left: 15px;
}
.data-content-thoigian .demnguoc-thoigian{
	text-align: center;
    font-size: 16px;
    font-weight: bold;
	line-height: 28px;
}
.soluongcauhoi .tongcauhoi{font-size: 14px;}
.load-danhsach-cauhoi{
	width: 100%;
    float: left;
	margin-bottom: 80px;
}
.bg-batdau-lambai {
    height: 100vh;
    position: fixed;
    width: 100%;
    z-index: 99999999;
    background: #fff;
	top: 0px;
	left:0px;
}
.view-huongdan-giai {
    border: 1px dotted #ccc;
    color: #4f5152;
    padding: 10px 12px;
    border-radius: 5px;
    display: inline-block;
    margin: 20px 0px;
    position: relative;
    z-index: 999;
}
.view-huongdan-giai.xemchitiet{cursor: pointer;}
.quiz-list .qselect.qchecked {
    color: #0392bd;
}
.quiz-list .qselect.qchecked .mark, .quiz-list .qselect.qchecked .mark {
    border: solid 1px #0e8fb7;
    color: #fff;
    background: #14abd8;
}
.qselect.traloisai .mark {
    border: solid 1px #ca1a03!important;
    color: #d61d05!important;
    background: transparent!important;
    border-left: solid 3px #b11400!important;
}
.qselect2.traloisai .mark2 {
    border: solid 1px #ca1a03!important;
    color: #d61d05!important;
    background: transparent!important;
    border-left: solid 3px #b11400!important;
}
.qselect.traloidung .mark {
    border: solid 1px #22721e!important;
    border-left: solid 3px #30632d!important;
    color: #fff !important;
    background: #2fb809!important;
}
.qselect2.traloidung .mark2 {
    border: solid 1px #22721e!important;
    border-left: solid 3px #30632d!important;
    color: #fff !important;
    background: #2fb809!important;
}
.sortable-sapxep.traloisai{
	background: #fff5f4!important;
    border: 1px solid #d61d05!important;
}
.cauhoiloai-5 .questions li.traloisai{
	background: #fff5f4!important;
    border: 1px solid #d61d05!important;
}
.cauhoiloai-5 .line.traloisai{
	background: #d61d05 !important;
}
.cauhoiloai-6 .drop-zone-keotha.traloisai{
	border: 2px dashed #d61d05;
}
.cauhoiloai-6 .drop-zone-keotha.traloisai .answer-keotha{
	background-color: #fff5f4!important;
}
.control-traloi-tuluan .uploadButton.traloisai, .ck-editor__main.traloisai {
    background: #fff5f4 !important;
    border: 1px solid #d61d05 !important;
}
.sortable-sapxep.traloidung{
	background: #78d45d !important;
    border: 1px solid #22721e!important;
}
.cauhoiloai-5 .questions li.traloidung{
	background: #78d45d !important;
    border: 1px solid #22721e!important;
}
.cauhoiloai-5 .line.traloidung{
	background: #78d45d !important;
}
.cauhoiloai-6 .drop-zone-keotha.traloidung{
	border: 2px dashed #22721e!important;
}
.cauhoiloai-6 .drop-zone-keotha.traloidung .answer-keotha{
	background-color: #78d45d !important;
}
.quiz-list .qselect.traloidung, .quiz-list .qselect2.traloidung{
    font-weight: bold;
    color: #2fb809;
}
.quiz-list .qselect.traloisai, .quiz-list .qselect2.traloisai{
    color: #f3251b !important;
}
.quiz-list .qselect.traloisai.traloidung, .quiz-list .qselect2.traloisai.traloidung{
    font-weight: bold!important;
    color: #2fb809!important;
}
.qchecked.traloidung .mark:before {
    content: "";
    background: #33db05;
    height: 10px;
    width: 10px;
    margin-top: -5px;
    position: absolute;
    border-radius: 50%;
    margin-left: 8px;
}
.qchecked.traloisai .mark:before {
    content: "";
    background: #f3251b;
    height: 10px;
    width: 10px;
    margin-top: -5px;
    position: absolute;
    border-radius: 50%;
    margin-left: 8px;
}
.qchecked.traloidung.traloisai .mark:before {
    content: "";
    background: #33db05;
    height: 10px;
    width: 10px;
    margin-top: -5px;
    position: absolute;
    border-radius: 50%;
    margin-left: 8px;
}
#toolbox a.page .chochamdiem:before {
    content: "";
    background: #e006d5;
    height: 10px;
    width: 10px;
    margin-top: -7px;
    position: absolute;
    border-radius: 50%;
}
#toolbox a.page.dalam .sai:before {
    content: "";
    background: #ff4138;
    height: 10px;
    width: 10px;
    margin-top: -7px;
    position: absolute;
    border-radius: 50%;
}
#toolbox a.page .dung:before {
    content: "";
    background: #45eb17;
    height: 10px;
    width: 10px;
    margin-top: -7px;
    position: absolute;
    border-radius: 50%;
}
.dong-popup-view.close-batdaulambai{padding:10px 10px;}
.bg-view-data-tailieu {
    height: 52px;
    position: absolute;
    width: 200px;
    margin-top: 3px;
    z-index: 99999999;
    background: #323639;
    right: 25px;
}
.load-danhsach-cauhoi .cauhoituluan {
    margin: 5px 0px;
    padding: 15px 5px;
	font-size: 16px;
}
.kq-traloi-tuluan{
	font-weight: bold;
    color: #0690ab;
	padding: 15px 0px;
}
.gui-traloi-tuluan{
	font-weight: bold;
    color: #b06666;
	padding: 15px 0px;
}
.ck.ck-balloon-panel{z-index: 99999999!important;}
.cauhoiloai-file.question{display:none; margin-top: 35px; height: 130px; overflow-y: auto;}
.cauhoiloai-file.question.active{display:block!important;}
.float-right .bt-next-pre{display:none;}
.col-md-4.data-content-toolbar .data-cauhoi-baitap{padding-bottom: 200px;}
@media only screen and (max-width: 1028px) {
	.load-danhsach-cauhoi.loai-de-2 .data-content-toolbar{
		right: calc(83% - 60px)!important;
	}
	#pdf-js-viewer{max-width: 100%!important;}
	.col-md-6 #pdf-js-viewer{max-width: 480px!important;}
	.right-cauhoi-pdf{
		max-width: 480px!important;
	}
	#load-view-data-tracnghiem .data-content-cauhoi{
	   -ms-flex: 0 0 100%!important;
	   flex: 0 0 100%!important;
	   max-width: 100%!important;
	}
	.float-right .bt-next-pre{
		display:block!important;
		position: fixed;
		left: 20px;
		z-index: 99999999;
	}
        .cauhoiloai-file.question{
            margin-top: 10px!important;
            height: 110px!important;
            width: 100%!important;
        }
}
@media only screen and (max-width: 940px) {
	.col-md-6 #pdf-js-viewer, .right-cauhoi-pdf{max-width: 400px!important;}
}
@media only screen and (max-width: 820px) {
	.col-md-6 #pdf-js-viewer, .right-cauhoi-pdf{max-width: 360px!important;}
}
@media only screen and (max-width: 768px) {
	.col-md-6 #pdf-js-viewer, .right-cauhoi-pdf{max-width: 340px!important;}
}
@media only screen and (max-width: 540px) {
     .col-md-6 #pdf-js-viewer, .right-cauhoi-pdf{max-width: 100%!important;}
	.right-cauhoi-pdf{padding-top: 10px!important;}
	.optionCauhinh {
		display: block!important;
	}
	.optionCauhinh select{margin-bottom:10px;}
	.optionCauhinh .col-md-3.col-sm-12{padding-right: 0px; padding-left: 0px;}
	.noidung_hoctuvung .play-tuvung, .noidung_hoctuvung .speak-tuvung{ width:100%!important; flex: 1 1 100%!important;}
	.control-traloi-tuluan button{margin-bottom: 10px;}
	.quiz-list .qselect{width: 100%!important;}
	.cauhoiloai-file .quiz-list .qselect.cot4{width: 25%!important;}
	.col-md-6.data-content-cauhoi{margin-bottom:20px; position: relative!important;}
	.load-danhsach-cauhoi.loai-de-2 .data-content-toolbar{
		right: calc(50% - 60px)!important;
	}
	.load-danhsach-cauhoi.loai-de-2 .col-md-4.data-content-toolbar{
		top: 80vh!important;
		bottom: auto!important;
		
	}
	.modal-header.header-tracnghiem{padding: 10px 15px;}
	.load-danhsach-cauhoi.loai-de-2 .cauhoiloai-file .cauhoitracnghiem{
		padding-top: 5px; padding-bottom: 5px;
	}
	.load-danhsach-cauhoi.loai-de-2 .cauhoiloai-file.question{ height: 95px!important; }
}
@media only screen and (max-width: 320px) {
    .modal-footer .dong-popup-view{display:none!important;}
}