/* cyrillic-ext */
@font-face {
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto Slab Regular'), local('RobotoSlab-Regular'), url(./fonts/roboto1.woff2) format('woff2');
  unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F;
}
/* cyrillic */
@font-face {
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto Slab Regular'), local('RobotoSlab-Regular'), url(../fonts/roboto2.woff2) format('woff2');
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto Slab Regular'), local('RobotoSlab-Regular'), url(../fonts/roboto3.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto Slab Regular'), local('RobotoSlab-Regular'), url(../fonts/roboto4.woff2) format('woff2');
  unicode-range: U+0370-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto Slab Regular'), local('RobotoSlab-Regular'), url(../fonts/roboto5.woff2) format('woff2');
  unicode-range: U+0102-0103, U+1EA0-1EF1, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto Slab Regular'), local('RobotoSlab-Regular'), url(../fonts/roboto6.woff2) format('woff2');
  unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto Slab Regular'), local('RobotoSlab-Regular'), url(../fonts/roboto7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}

body {
	background: url(../img/bg1.png) repeat;
  font-family: 'Roboto Slab', serif;
  overflow-x: hidden;

}
a {text-decoration: none}

.table-form>thead>tr, .table-form>tbody>tr, .table-form>tbody>tr>td {
	padding: 4px;
	vertical-align: middle;
	border: none;
}
.table-form-bordered>thead>tr, .table-form-bordered>tbody>tr, .table-form-bordered>tbody>tr>td {
	padding: 4px;
	vertical-align: middle;
	border: solid #DDDDDD 1px;
}
.table-form .lbl {
	text-align: right;
	padding-right: 15px;
	font-weight: bold;
}

.table-bordered > thead > tr > th, .table-bordered > thead > tr > td { text-align: center; background: #eee}

.ctr {text-align: center}
.rgt {text-align: right}

.panel-heading > a, .panel-heading > small, .panel-heading > .small, .panel-heading > small > a, .panel-heading > .small > a {
	text-decoration: none;
}

.panel-heading > .tombol-kanan {margin-top: -5px; float: right;}
.panel-heading > .tbl-kanan-soal {float: right;}

.panel-heading > .tombol-kanan > .btn-xs {	margin-top: 4px;}

.import-preview-summary {
  margin-bottom: 15px;
  padding: 14px 16px;
  background: #f4fbf6;
  border: 1px solid #cfe7d6;
  border-radius: 8px;
}

.import-preview-summary strong {
  color: #0B6623;
}

.import-preview-table {
  margin-bottom: 15px;
}

.import-preview-actions .btn {
  margin-right: 6px;
  margin-bottom: 6px;
}

.status-badge {
  display: inline-block;
  min-width: 74px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
}

.status-badge.status-baru {
  background: #dff0d8;
  color: #2f6b2f;
}

.status-badge.status-duplikat {
  background: #fbe3e4;
  color: #a94442;
}

.top15 {margin-top: 15px;}
.top25 {margin-top: 25px;}
.top150 {margin-top: 150px;}


/* NAVBAR */
nav.navbar-findcond { background: #fff; border-color: #ccc; box-shadow: 0 0 2px 0 #ccc; }
nav.navbar-findcond a { color: #fff; }
nav.navbar-findcond ul.navbar-nav a { color: #fff; border-style: solid; border-width: 0 0 2px 0; border-color: #fff; }
nav.navbar-findcond ul.navbar-nav a:hover,
nav.navbar-findcond ul.navbar-nav a:visited,
nav.navbar-findcond ul.navbar-nav a:focus,
nav.navbar-findcond ul.navbar-nav a:active { background: #008000; }
nav.navbar-findcond ul.navbar-nav a:hover { border-color: #0B6623; }
nav.navbar-findcond li.divider { background: #ccc; }
nav.navbar-findcond button.navbar-toggle { background: rgb(74, 201, 69); border-radius: 2px; }
nav.navbar-findcond button.navbar-toggle:hover { background: #999; }
nav.navbar-findcond button.navbar-toggle > span.icon-bar { background: #fff; }
nav.navbar-findcond ul.dropdown-menu { border: 0; background: #fff; border-radius: 4px; margin: 4px 0; box-shadow: 0 0 4px 0 #ccc; }
nav.navbar-findcond ul.dropdown-menu > li > a { color: rgb(0, 0, 0); }
nav.navbar-findcond ul.dropdown-menu > li > a:hover { background: #008000; color: #fff; }
nav.navbar-findcond span.badge { background: #f14444; font-weight: normal; font-size: 11px; margin: 0 4px; }
nav.navbar-findcond span.badge.new { background: rgba(255, 0, 0, 0.8); color: #fff; }

/* button flat */
.btn-sq-lg {width: 150px !important; height: 150px !important;}
.btn-sq {width: 100px !important; height: 100px !important;font-size: 10px; margin-right: 10px;}
.btn-sq-sm {width: 50px !important;height: 50px !important;font-size: 10px; margin-right: 8px;}
.btn-sq-xs {width: 25px !important;height: 25px !important;padding:2px; margin-right: 6px;}

/* glyphicon */
.g2x{ font-size: 30px; } 
.g3x{ font-size: 60px; } 


/*==================================
 Hanging Chatbox
==================================== */
.popup-box {
   background-color: #ffffff;
    border: 1px solid #b0b0b0;
    bottom: 0;
    display: none;
    height: 415px;
    position: fixed;
    right: 70px;
    width: 300px;
}
.popup-box-on {
    display: block !important;
    z-index: 9999;
}
.popup-box .popup-head {
    background-color: #fff;
    clear: both;
    color: #7b7b7b;
    display: inline-table;
    font-size: 21px;
    padding: 7px 10px;
    width: 100%;
}
.popup-box .popup-head .popup-head-right {
    margin: 5px 7px 0;
}
.popup-messages-footer {
    background: #fff none repeat scroll 0 0;
    bottom: 0;
    position: absolute;
    width: 100%;
}
.popup-messages-footer .btn-footer {
    overflow: hidden;
    padding: 2px 5px 10px 6px;
    width: 100%;
}

/* TAMBAHAN ME */
.fgsoal {
  margin-top: 14px;
  margin-bottom: 14px;
}

.mceEditor > table {
  width: 1050px !important;
}


input.upload {
  padding: 3px;
  width: 100%;
}

blink {
  -webkit-animation: blink 1s step-end infinite;
  -moz-animation: blink 1s step-end infinite;
-o-animation: blink 1s step-end infinite;
animation: blink 1s step-end infinite;
font-weight: bold;
}

@-webkit-keyframes blink { 67% { opacity: 0 }}
@-moz-keyframes blink {  67% { opacity: 0 }}
@-o-keyframes blink {  67% { opacity: 0 }}
@keyframes blink {  67% { opacity: 0 }}

.btn_soal {
  margin: 0 6px 5px 5px;
  width: 55px;
}
#tampil_jawaban {
  overflow: auto;
}

/* styling opsi */
.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: #333;
  background: transparent;
  font-weight: bold;
  border-color: #5cb85c;
}

.funkyradio input[type="radio"]:checked ~ label:before,
.funkyradio input[type="checkbox"]:checked ~ label:before {
  /*content: '\2714';*/
  text-indent: .9em;
  color: #333;
  background-color: #5cb85c;
  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-success.ragu input[type="radio"]:checked ~ label:before,
.funkyradio-success.ragu input[type="checkbox"]:checked ~ label:before {
  background-color: #f0ad4e;
}

.funkyradio-success.ragu input[type="radio"]:checked ~ label,
.funkyradio-success.ragu input[type="checkbox"]:checked ~ label {
  border-color: #f0ad4e;
}

.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;
}

/* footer */
.footer {
background: #fff;
border-color: #ccc;
box-shadow: 0 0 2px 0 #ccc;
bottom: 0;
border-width: 0 0 1px;
position: fixed;
right: 0;
left: 0;
z-index: 1030;
padding: 10px;
text-align: center;
}

.huruf_opsi {
  margin-left: -36px;
    margin-top: 9px;
    position: absolute;
}

.btn-close-nav,
.nav-handle {
  display: none;
}

.ini_bodi {
 margin-bottom: 60px;
}

.app-shell {
  padding-left: 10px;
  padding-right: 10px;
}

.app-menu-wrap {
  padding: 14px;
}

.app-menu-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.app-menu-card {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.25;
  font-weight: 700;
  margin-right: 0 !important;
  margin-bottom: 0 !important;
  border-radius: 10px;
  padding: 12px 8px !important;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.app-menu-label {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2px;
}

.panel-heading {
  font-weight: 700;
}

.alert {
  font-weight: 600;
}

.zoom {
  display:inline-block;
  position: relative;
}

/* magnifying glass icon */
.zoom:after {
  content:'';
  display:block; 
  width:33px; 
  height:33px; 
  position:absolute; 
  top:0;
  right:0;
  background:url(icon.png);
}

.zoom img {
  display: block;
}

.zoom img::selection { background-color: transparent; }

#tbl_show_jawaban {
    display: none;
}

.dataTables_wrapper {
  width: 100%;
}

.dataTables_wrapper .row {
  margin-left: 0;
  margin-right: 0;
}

.dataTables_wrapper [class*="col-"] {
  padding-left: 0;
  padding-right: 0;
}

/* =============================================
   MOBILE RESPONSIVE — max-width: 767px
   ============================================= */
@media (max-width: 767px) {

  /* === NAVBAR === */
  .navbar-brand {
    width: calc(100% - 56px);
    font-size: 13px;
    white-space: normal;
    line-height: 1.3;
    padding-top: 10px;
    padding-bottom: 10px;
    height: auto;
  }
  .navbar-fixed-top .container,
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .navbar-collapse {
    background: #0B6623;
    border-top: 1px solid rgba(255,255,255,.15);
  }
  .navbar-nav {
    margin-top: 0;
    margin-bottom: 0;
  }
  .navbar-nav > li > a {
    padding: 12px 16px;
    font-size: 14px;
  }
  .navbar-nav .open .dropdown-menu {
    background: #fff;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
  }
  nav.navbar-findcond button.navbar-toggle {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 8px 10px;
  }

  /* === LAYOUT UTAMA === */
  .dmobile {
    margin-top: 56px;
    padding: 0;
  }
  .ini_bodi {
    margin-bottom: 10px;
    padding-left: 0;
    padding-right: 0;
  }
  .col-md-12.ini_bodi {
    padding-left: 8px;
    padding-right: 8px;
  }

  /* === PANEL === */
  .panel {
    margin-bottom: 10px;
    border-radius: 6px;
  }
  .panel-heading {
    font-size: 14px;
    line-height: 1.4;
    padding: 10px 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
  }
  .panel-body {
    padding: 10px 12px;
  }
  .panel-footer {
    padding: 10px 12px;
  }

  /* === TABEL INFO (NIS, Kelas, dsb) — bukan dataTable === */
  .table-form > thead > tr > td,
  .table-form > tbody > tr > td {
    display: block;
    width: 100% !important;
    font-size: 13px;
    padding: 6px 8px;
  }
  .table-form .lbl {
    text-align: left;
    font-weight: 700;
    padding-top: 8px;
    padding-bottom: 2px;
    color: #555;
    border-bottom: none;
  }

  /* === TABEL DATA BIASA === */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 0;
    border: none;
  }
  /* Tabel daftar ujian siswa: tidak dipaksa min-width */
  .table-responsive > .table {
    min-width: 480px;
  }
  .table > thead > tr > th,
  .table > tbody > tr > th,
  .table > tfoot > tr > th,
  .table > thead > tr > td,
  .table > tbody > tr > td,
  .table > tfoot > tr > td {
    white-space: normal;
    vertical-align: middle;
    font-size: 12px;
    padding: 7px 6px;
    word-break: break-word;
  }
  .panel-hasil-ujian .panel-heading {
    padding: 14px 12px;
    font-size: 16px;
    font-weight: 700;
  }
  .panel-hasil-ujian .panel-heading .tombol-kanan {
    float: none;
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .panel-hasil-ujian .panel-heading .tombol-kanan .btn {
    flex: 1 1 140px;
    min-height: 42px;
    border-radius: 8px;
  }
  .hasil-ujian-filter {
    margin-bottom: 14px !important;
  }
  .hasil-ujian-filter .form-control {
    width: 100% !important;
    display: block !important;
    height: 44px;
    border-radius: 8px;
    font-size: 14px;
  }
  .table-hasil-ujian-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e5edf4;
    border-radius: 12px;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
  }
  .table-hasil-ujian {
    min-width: 640px !important;
    margin-bottom: 0;
  }
  .table-hasil-ujian .btn {
    white-space: nowrap;
    border-radius: 8px;
  }
  .table-hasil-ujian.mobile-card-table {
    min-width: 100% !important;
    border: none;
    background: transparent;
  }
  .table-hasil-ujian.mobile-card-table thead {
    display: none;
  }
  .table-hasil-ujian.mobile-card-table tbody tr {
    display: block;
    margin: 0 0 12px 0;
    border: 1px solid #dbe5ef;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
    box-shadow: 0 6px 16px rgba(9, 30, 66, 0.08);
    overflow: hidden;
  }
  .table-hasil-ujian.mobile-card-table tbody td {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    border: none !important;
    border-bottom: 1px solid #edf2f7 !important;
    padding: 10px 12px !important;
    text-align: left !important;
    white-space: normal !important;
    word-break: break-word;
  }
  .table-hasil-ujian.mobile-card-table tbody td:last-child {
    border-bottom: none !important;
  }
  .table-hasil-ujian.mobile-card-table tbody td:before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #4e6b88;
    margin-bottom: 6px;
  }
  .table-hasil-ujian.mobile-card-table tbody td:first-child {
    background: #eef5fb;
    font-weight: 700;
  }
  .table-hasil-ujian.mobile-card-table tbody td:nth-child(7) .label,
  .table-hasil-ujian.mobile-card-table tbody td:nth-child(8) .label {
    display: inline-block;
    margin-bottom: 6px;
  }
  .table-hasil-ujian.mobile-card-table tbody td:last-child .btn {
    display: block;
    width: 100%;
    margin-bottom: 8px;
  }
  .table-hasil-ujian.mobile-card-table tbody td:last-child .btn:last-child {
    margin-bottom: 0;
  }
  .panel-data-soal .panel-heading {
    padding: 14px 12px;
  }
  .panel-data-soal .panel-heading .tombol-kanan {
    float: none;
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .panel-data-soal .panel-heading .tombol-kanan .btn,
  .soal-action-wrap .btn {
    min-height: 40px;
    border-radius: 8px;
  }
  .soal-filter-wrap .form-control {
    height: 44px;
    border-radius: 8px;
  }
  .soal-action-wrap {
    margin-top: 10px;
    text-align: left !important;
  }
  .soal-action-wrap .btn {
    display: block;
    width: 100%;
    margin-bottom: 8px;
  }
  .table-soal-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e5edf4;
    border-radius: 12px;
    background: #fff;
  }
  .soal-empty-state {
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 14px;
  }
  .table-data-soal {
    min-width: 560px !important;
    margin-bottom: 0;
  }
  .table-data-soal td:nth-child(3),
  .table-data-soal th:nth-child(3) {
    min-width: 240px;
  }
  .table-data-soal td:last-child,
  .table-data-soal th:last-child {
    min-width: 100px;
    text-align: center;
  }
  .table-data-soal .btn-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .table-data-soal .btn-group .btn {
    width: 100%;
    white-space: nowrap;
  }
  .table-data-soal.mobile-card-table {
    min-width: 100% !important;
    border: none;
    background: transparent;
  }
  .table-data-soal.mobile-card-table thead {
    display: none;
  }
  .table-data-soal.mobile-card-table tbody tr {
    display: block;
    margin: 0 0 12px 0;
    border: 1px solid #dbe5ef;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
    box-shadow: 0 6px 16px rgba(9, 30, 66, 0.08);
    overflow: hidden;
  }
  .table-data-soal.mobile-card-table tbody td {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    border: none !important;
    border-bottom: 1px solid #edf2f7 !important;
    padding: 10px 12px 10px 12px !important;
    text-align: left !important;
  }
  .table-data-soal.mobile-card-table tbody td:last-child {
    border-bottom: none !important;
  }
  .table-data-soal.mobile-card-table tbody td:before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #4e6b88;
    margin-bottom: 6px;
  }
  .table-data-soal.mobile-card-table .btn-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .table-data-soal.mobile-card-table .btn-group .btn {
    width: 100%;
  }
  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter,
  .dataTables_wrapper .dataTables_info,
  .dataTables_wrapper .dataTables_paginate {
    float: none !important;
    text-align: left !important;
    width: 100%;
  }
  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter {
    margin-bottom: 12px;
  }
  .dataTables_wrapper .dataTables_filter input {
    width: 100%;
    margin-left: 0 !important;
    margin-top: 8px;
    height: 42px;
    border: 1px solid #ccd8e6;
    border-radius: 8px;
    padding: 8px 10px;
  }
  .dataTables_wrapper .dataTables_length select {
    height: 42px;
    border: 1px solid #ccd8e6;
    border-radius: 8px;
    padding: 6px 10px;
    margin: 0 6px;
  }
  .dataTables_wrapper .dataTables_paginate .paginate_button {
    min-width: 44px;
    margin-top: 8px;
  }
  .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    border-radius: 8px !important;
  }
  /* === DATATABLE === */
  table.dataTable {
    min-width: 500px;
  }
  .dataTables_wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter,
  .dataTables_wrapper .dataTables_info,
  .dataTables_wrapper .dataTables_paginate {
    float: none !important;
    text-align: left !important;
    width: 100%;
    margin-bottom: 8px;
  }
  .dataTables_wrapper .dataTables_filter input,
  .dataTables_wrapper .dataTables_length select {
    width: 100% !important;
    max-width: 100%;
    margin-left: 0 !important;
    margin-top: 4px;
    height: 36px;
    display: block;
  }
  .dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 5px 10px !important;
    font-size: 12px;
  }
  .dataTables_wrapper .dataTables_info {
    font-size: 12px;
  }

  /* === FORM & BUTTONS === */
  .btn,
  .form-control,
  select.form-control {
    font-size: 14px;
  }
  .form-control,
  select.form-control {
    height: 40px;
  }
  .btn-xs {
    font-size: 12px;
    padding: 5px 10px;
  }
  .btn-sm {
    font-size: 13px;
    padding: 6px 12px;
  }
  .btn-info,
  .btn-primary,
  .btn-success,
  .btn-warning,
  .btn-danger,
  .btn-default {
    white-space: normal;
  }
  .panel-heading .btn,
  .panel-heading .tombol-kanan {
    float: none !important;
    display: inline-flex;
    margin-top: 6px;
  }
  .panel-footer .btn {
    margin-bottom: 8px;
    padding: 8px 16px;
    font-size: 14px;
    min-height: 40px;
  }

  /* === ALERT === */
  .alert {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 8px;
    padding: 10px 12px;
  }

  /* === FOOTER === */
  .footer {
    position: static !important;
    margin-top: 16px;
    font-size: 11px;
    line-height: 1.6;
    padding: 12px 10px;
  }

  /* === MENU GRID (app-menu) === */
  .btn-sq {
    width: calc(50% - 6px) !important;
    min-width: calc(50% - 6px);
    height: 90px !important;
    padding: 10px 6px !important;
  }
  .g3x { font-size: 28px; }
  .app-menu-wrap { padding: 8px; }
  .app-menu-grid { gap: 8px; }
  .app-menu-label { margin-top: 6px; font-size: 11px; }

  /* === LOGIN PAGE MOBILE === */
  .login-topbar .container {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
  .year-badge {
    padding: 4px 10px;
    font-size: 13px;
  }
  .login-topbar .brand {
    font-size: 14px;
  }
  .login-wrap {
    padding: 16px 12px;
    min-height: calc(100vh - 120px);
  }
  .login-card {
    max-width: 100%;
  }
  .login-header {
    padding: 16px 14px;
    gap: 10px;
  }
  .logo-wrap {
    height: 72px;
    width: 72px;
  }
  .logo-wrap img {
    height: 72px;
    width: 72px;
  }
  .login-title { font-size: 16px; }
  .login-body { padding: 16px 14px; }
  .login-btn { height: 44px; font-size: 15px; }

  /* === UJIAN — Halaman soal ujian === */
  /* floating "Lihat Jawaban" button — di BAWAH layar agar mudah dijangkau */
  .floating {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    z-index: 1040;
    width: 100%;
    text-align: center;
    padding: 8px 12px;
    background: linear-gradient(135deg, #0B6623, #0d7a2b);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.25);
  }
  .floating .btn {
    font-size: 15px;
    padding: 10px 24px;
    border-radius: 24px;
    font-weight: bold;
    display: inline-block;
    width: 80%;
    max-width: 320px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    animation: pulse-nav 2s ease-in-out infinite;
  }
  @keyframes pulse-nav {
    0%, 100% { box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
    50% { box-shadow: 0 2px 16px rgba(52,152,219,0.5); }
  }
  #tbl_show_jawaban {
    display: block;
  }
  /* Panel navigasi jawaban di mobile: panel bawah/overlay */
  #v_jawaban {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    z-index: 1050;
    width: 100%;
    max-height: 60vh;
    overflow-y: auto;
    background: #fff;
    border-top: 3px solid #0B6623;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 24px rgba(0,0,0,.3);
    padding: 0 10px 10px 10px;
  }
  #v_jawaban .panel {
    margin-bottom: 0;
    border: none;
    box-shadow: none;
  }
  #v_jawaban .panel-heading {
    background: #0B6623;
    color: #fff;
    border-radius: 8px 8px 0 0;
    font-size: 14px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  #v_jawaban .panel-body {
    height: auto !important;
    max-height: 45vh;
    overflow-y: auto;
    padding: 12px 8px;
  }
  /* Handle bar di atas panel navigasi */
  .nav-handle {
    display: block;
    width: 40px;
    height: 5px;
    background: #ccc;
    border-radius: 3px;
    margin: 8px auto;
  }
  /* Tombol tutup dalam panel navigasi */
  .btn-close-nav {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 13px;
    cursor: pointer;
  }

  /* soal container — margin cukup untuk melewati navbar fixed (~50px) */
  .dmobile {
    margin-top: 115px !important;
    padding-bottom: 80px;
  }

  /* Panel heading soal: nomor soal kiri, timer kanan */
  .dmobile .col-md-9 .panel-heading {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
  }
  .dmobile .col-md-9 .panel-heading .tbl-kanan-soal {
    float: none !important;
  }
  .dmobile .col-md-9 .panel-heading #clock {
    font-size: 12px !important;
    padding: 4px 8px !important;
  }
  .dmobile .col-md-9 .panel-heading #soalke {
    font-size: 13px;
    padding: 3px 10px;
  }
  .dmobile .col-md-3,
  .dmobile .col-md-9 {
    width: 100%;
    padding-left: 8px;
    padding-right: 8px;
  }

  /* Tombol soal di navigasi */
  .btn_soal {
    width: 52px;
    margin: 0 4px 6px 4px;
    font-size: 11px;
    padding: 6px 2px;
    border-radius: 6px;
    transition: all 0.2s ease;
  }
  .btn_soal.btn-active {
    border: 3px solid #0B6623 !important;
    box-shadow: 0 0 10px rgba(11, 102, 35, 0.4);
    transform: scale(1.08);
    font-weight: bold;
    z-index: 5;
  }

  /* Panel soal */
  .panel-heading #soalke {
    font-size: 14px;
    padding: 4px 10px;
  }
  #clock {
    font-size: 13px !important;
    padding: 4px 8px !important;
  }

  /* Panel body soal: readable font */
  .panel-body .step {
    font-size: 14px;
    line-height: 1.7;
  }

  /* Opsi jawaban funkyradio */
  .funkyradio label {
    font-size: 14px;
    padding: 8px 0 8px 48px;
    line-height: 1.5;
    min-height: 44px;
  }
  .funkyradio input[type="radio"]:empty ~ label {
    line-height: 1.5;
    margin-top: 6px;
  }

  /* Footer navigasi soal — tombol lebih besar dan mudah diketuk */
  .panel-footer.text-center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 10px 8px;
  }
  .panel-footer .action,
  .panel-footer .ragu_ragu,
  .panel-footer .selesai {
    flex: 1 1 auto;
    min-width: 80px;
    max-width: 48%;
    font-size: 14px;
    padding: 10px 6px;
    min-height: 44px;
    text-align: center;
    border-radius: 8px;
  }

  /* SweetAlert — responsive */
  .swal2-popup {
    width: 90vw !important;
    max-width: 380px !important;
    font-size: 14px !important;
  }
  .swal2-title {
    font-size: 18px !important;
  }
  .swal2-content, .swal2-html-container {
    font-size: 13px !important;
  }
  .swal2-actions {
    gap: 8px !important;
  }
  .swal2-confirm, .swal2-cancel {
    font-size: 14px !important;
    padding: 10px 18px !important;
  }
  .swal-ujian-popup,
  .swal-app-popup {
    font-size: 14px;
    width: 90vw !important;
    max-width: 380px !important;
  }
  .swal-ujian-title,
  .swal-app-title {
    font-size: 18px;
  }
  .swal-ujian-actions .swal2-confirm,
  .swal-ujian-actions .swal2-cancel,
  .swal-app-actions .swal2-confirm,
  .swal-app-actions .swal2-cancel {
    font-size: 14px;
    padding: 9px 16px;
  }
}


@media (min-width: 768px) {
  .dmobile {
    margin-top: 70px;
    padding-bottom: 0;
  }
  .floating {
    display: none !important; /* Di desktop, panel navigasi kiri sudah tampil */
  }
  .app-menu-grid {
    justify-content: flex-start;
  }
  .soal-action-wrap {
    margin-top: 0;
    text-align: right !important;
  }
  .soal-action-wrap .btn {
    display: inline-block;
    width: auto;
    margin-bottom: 0;
    margin-left: 6px;
  }
  .table-data-soal .btn-group {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .table-data-soal .btn-group .btn {
    width: auto;
  }
  /* Tabel normal pada desktop: tidak perlu min-width paksa */
  .table-responsive > .table {
    min-width: auto;
  }
}

/* SweetAlert ujian sizing & font */
.swal-ujian-popup {
  font-family: 'Roboto Slab', serif;
  font-size: 18px;
}
.swal-ujian-title {
  font-size: 22px;
}
.swal-ujian-actions .swal2-confirm,
.swal-ujian-actions .swal2-cancel {
  font-size: 16px;
  padding: 10px 16px;
}

/* SweetAlert umum: info/sukses/error */
.swal-app-popup {
  font-family: 'Roboto Slab', serif;
  font-size: 18px;
}
.swal-app-title {
  font-size: 22px;
}
.swal-app-actions .swal2-confirm,
.swal-app-actions .swal2-cancel {
  font-size: 16px;
  padding: 10px 16px;
}

/* Image behavior in question */
.gambar { width: 100%; }
.gambar img {
  max-width: 100%;
  height: auto !important;
  float: none !important;
  display: block !important;
  margin: 10px auto;
  -webkit-user-drag: none;
  user-select: none;
}
