:root {
  --nl-bg: #fafafa;
  --nl-surface: #ffffff;
  --nl-surface-2: #f3f6fb;
  --nl-border: rgba(15, 23, 42, 0.1);
  --nl-text: #0f172a;
  --nl-text-2: rgba(15, 23, 42, 0.7);
  --nl-text-3: rgba(15, 23, 42, 0.55);
  --nl-brand: #2563eb;
  --nl-brand-2: #1d4ed8;
  --nl-danger: #dc2626;
  --nl-success: #16a34a;
  --nl-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  --nl-shadow-sm: 0 10px 26px rgba(15, 23, 42, 0.06);
  --nl-radius: 16px;
  --nl-radius-sm: 12px;
  --nl-ring: 0 0 0 4px rgba(37, 99, 235, 0.12);
  --nl-font: Inter, Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

.nl-app,
.nl-app body {
  font-family: var(--nl-font);
}

.nl-app {
  background: var(--nl-bg);
  color: var(--nl-text);
  font-size: 13px;
  line-height: 1.45;
}

/* Satukan background wrapper modul dengan background utama aplikasi. */
.nl-app #main_content.nl-wrap {
  background: transparent !important;
}

.nl-app a:not(.btn) {
  color: var(--nl-brand);
  text-decoration: none;
}

.nl-app a:not(.btn):hover,
.nl-app a:not(.btn):focus {
  color: var(--nl-brand-2);
  text-decoration: none;
}

.nl-app #wrapper_all {
  min-height: 100%;
  background: var(--nl-bg);
}

.nl-app #top_header {
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--nl-border);
  height: auto;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1200;
  backdrop-filter: saturate(160%) blur(10px);
}

.nl-app #top_header .logo_main {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;

  height: 40px;
  line-height: normal;
  text-decoration: none;
}

.nl-app #top_header .logo_main__img {
  width: 40px;
  height: 40px;
  display: block;
  flex: 0 0 auto;
}

.nl-app #top_header .logo_main__text {
  margin: 0;
  line-height: 1.1;
  display: block;
}

@media (max-width: 767px) {
  .nl-app #top_header .logo_main {
    height: auto;
    padding: 6px 0;
    gap: 8px;
  }

  .nl-app #top_header .logo_main__img {
    width: 28px;
    height: 28px;
  }

  .nl-app #top_header .logo_main__text {
    font-size: 14px;
    line-height: 1.05;
  }

  .nl-app #top_header .logo_main__text medium {
    display: none;
  }
}

.nl-app #top_header .container {
  width: auto;
  max-width: 1320px;
  padding-left: 16px;
  padding-right: 16px;
}

.nl-app #top_header .notification_icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.nl-app #top_header .notification_icon i {
  line-height: 1;
}

.nl-app #top_header .notification_icon .label {
  position: absolute;
  top: 6px;
  right: 6px;
  transform: translate(50%, -50%);
  font-size: 11px;
  padding: 2px 6px;
  line-height: 1;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.82);
}

.nl-app #main_content_outer {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 16px 34px;
}

.nl-app #sidebar {
  width: 252px;
  float: left;
  margin: 0 0 0 -100%;
  position: relative;
}

.nl-app #main_content {
  margin: 0 0 0 272px;
  background: transparent;
}

@media (max-width: 992px) {
  .nl-app #sidebar {
    width: 240px;
  }
  .nl-app #main_content {
    margin-left: 258px;
  }
}

@media (max-width: 768px) {
  .nl-app #sidebar {
    width: 100%;
    float: none;
    margin: 0;
  }
  .nl-app #main_content {
    margin: 0;
  }
  .nl-app #main_content_outer {
    padding: 14px 12px 26px;
  }
}

.nl-app #sidebar .sepH_b {
  margin: 0 0 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.nl-app #sidebar .sepH_b .btn {
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 600;
}

.nl-app .side_text_nav {
  background: var(--nl-surface);
  border: 1px solid var(--nl-border);
  border-radius: var(--nl-radius);
  padding: 10px;
  box-shadow: var(--nl-shadow-sm);
}

.nl-app .side_text_nav > li {
  margin: 0;
}

.nl-app .side_text_nav > li > a,
.nl-app .side_text_nav li li > a {
  border-radius: 12px;
  padding: 10px 12px 10px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--nl-text-2);
  font-weight: 600;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.nl-app .side_text_nav > li > a span[class^="fa-"],
.nl-app .side_text_nav > li > a i,
.nl-app .side_text_nav li li > a i {
  opacity: 0.85;
  min-width: 18px;
}

.nl-app .side_text_nav > li > a:hover,
.nl-app .side_text_nav li li > a:hover {
  background: var(--nl-surface-2);
  color: var(--nl-text);
  transform: translateY(-1px);
}

.nl-app .side_text_nav > .parent_active > a,
.nl-app .side_text_nav > li.active > a {
  background: rgba(37, 99, 235, 0.1);
  color: var(--nl-text);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18);
}

.nl-app .side_text_nav li ul {
  margin: 6px 0 8px 0;
  padding: 6px 0 6px 12px;
  border-left: 2px solid rgba(15, 23, 42, 0.08);
}

.nl-app .side_text_nav li li > a {
  font-weight: 600;
  padding: 9px 10px;
}

.nl-app .page_heading {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0 0 14px 0;
}

.nl-app .page_heading h1 {
  font-family: var(--nl-font);
  font-weight: 800;
  font-size: 20px;
  margin: 0 0 6px 0;
  color: var(--nl-text);
}

.nl-app .page_heading .page_info {
  color: var(--nl-text-3);
}

.nl-app .panel {
  border: 1px solid var(--nl-border);
  border-radius: var(--nl-radius);
  box-shadow: var(--nl-shadow-sm);
  background: var(--nl-surface);
}

.nl-app .panel .panel-heading {
  height: auto;
  padding: 12px 14px;
  border-bottom: 1px solid var(--nl-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(243, 246, 251, 0.85));
}

.nl-app .panel .panel-heading .panel-title {
  font-family: var(--nl-font);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  color: var(--nl-text);
}

.nl-app .panel .panel-body {
  padding: 14px;
}

.nl-app .well {
  border: 1px solid var(--nl-border);
  border-radius: var(--nl-radius);
  background: var(--nl-surface);
  box-shadow: var(--nl-shadow-sm);
}

.nl-app .form-control {
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  box-shadow: none;
  height: 34px;
  padding: 9px 12px;
  font-size: 13px;
}

.nl-app textarea.form-control {
  height: auto;
  min-height: 96px;
}

.nl-app .form-control:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: var(--nl-ring);
}

/* .nl-app .input-group .form-control{
  border-top-left-radius:12px;
  border-bottom-left-radius:12px;
} */

.nl-app .input-group-addon,
.nl-app .input-group-btn .btn {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  width: 30px;
  border-color: rgba(15, 23, 42, 0.14);
}

.nl-app .btn {
  border-radius: 12px;
  font-weight: 700;
  /* padding: 9px 12px; */ /* Legacy: menimpa ukuran bawaan Bootstrap btn-sm dan btn-xs. */
  border: 1px solid rgba(15, 23, 42, 0.14);
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

/* Pertahankan ukuran tema lama untuk tombol tanpa kelas ukuran Bootstrap. */
.nl-app .btn:not(.btn-sm):not(.btn-xs) {
  padding: 9px 12px;
}

.nl-app .btn:active {
  transform: translateY(1px);
}

.nl-app .btn-primary {
  background: var(--nl-brand);
  border-color: rgba(37, 99, 235, 0.65);
}

.nl-app .btn-primary:hover,
.nl-app .btn-primary:focus {
  background: var(--nl-brand-2);
  border-color: rgba(29, 78, 216, 0.7);
}

.nl-app .btn-default {
  background: var(--nl-surface);
}

.nl-app .btn-default:hover,
.nl-app .btn-default:focus {
  background: var(--nl-surface-2);
}

.nl-app a.btn,
.nl-app a.btn:hover,
.nl-app a.btn:focus {
  color: inherit;
}

.nl-app .btn-primary,
.nl-app a.btn-primary {
  color: #fff;
}

.nl-app .btn-success,
.nl-app a.btn-success {
  background: var(--nl-success);
  border-color: rgba(22, 163, 74, 0.65);
  color: #fff;
}

.nl-app .btn-success:hover,
.nl-app .btn-success:focus,
.nl-app a.btn-success:hover,
.nl-app a.btn-success:focus {
  filter: brightness(0.95);
  color: #fff;
}

.nl-app .btn-info,
.nl-app a.btn-info {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.22);
  color: var(--nl-brand-2);
}

.nl-app .btn-info:hover,
.nl-app .btn-info:focus,
.nl-app a.btn-info:hover,
.nl-app a.btn-info:focus {
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(37, 99, 235, 0.28);
  color: var(--nl-brand-2);
}

.nl-app .btn-danger,
.nl-app a.btn-danger {
  background: var(--nl-danger);
  border-color: rgba(220, 38, 38, 0.7);
  color: #fff;
}

.nl-app .btn-danger:hover,
.nl-app .btn-danger:focus,
.nl-app a.btn-danger:hover,
.nl-app a.btn-danger:focus {
  filter: brightness(0.95);
  color: #fff;
}

.nl-app .btn-warning,
.nl-app a.btn-warning {
  background: #f59e0b;
  border-color: rgba(245, 158, 11, 0.7);
  color: #111827;
}

.nl-app .btn-warning:hover,
.nl-app .btn-warning:focus,
.nl-app a.btn-warning:hover,
.nl-app a.btn-warning:focus {
  filter: brightness(0.97);
  color: #111827;
}

.nl-app .label {
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 800;
}

.nl-app .table {
  background: var(--nl-surface);
  border: 1px solid var(--nl-border);
  border-radius: 0;
  overflow: visible;
}

.nl-app .table > thead > tr > th {
  background: transparent;
  color: var(--nl-text-2);
  font-weight: 800;
  border-bottom: 1px solid var(--nl-border);
}
.nl-app table thead th,
.nl-app table thead td {
  background: #1f2022 !important;
  color: #fff !important;
}

.nl-app .table > tbody > tr > td {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.nl-app table.dataTable {
  background: var(--nl-surface);
}
.nl-app table.dataTable thead th,
.nl-app table.dataTable thead td {
  background: var(--nl-surface-2) !important;
  color: var(--nl-text-2) !important;
  font-weight: 800;
  border-bottom: 1px solid var(--nl-border) !important;
}
.nl-app table.dataTable thead tr th,
.nl-app table.dataTable thead tr td {
  border-color: var(--nl-border) !important;
}
.nl-app .table-hover > tbody > tr:hover > td,
.nl-app .table-hover > tbody > tr:hover > th {
  background: rgba(37, 99, 235, 0.06);
}
.nl-app .dataTables_wrapper {
  background: var(--nl-surface);
  border: 1px solid var(--nl-border);
  border-radius: var(--nl-radius);
  box-shadow: var(--nl-shadow-sm);
}

.nl-app .dataTables_wrapper .dataTables_scroll {
  overflow: hidden;
  border-radius: var(--nl-radius);
}

.nl-app .dataTables_wrapper table.dataTable,
.nl-app .dataTables_wrapper table.dataTable.no-footer {
  border: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

.nl-app .dataTables_wrapper table.dataTable thead th,
.nl-app .dataTables_wrapper table.dataTable thead td {
  background: var(--nl-surface-2) !important;
  color: var(--nl-text-2) !important;
  border-color: var(--nl-border) !important;
  vertical-align: middle !important;
}

.nl-app .dataTables_wrapper table.dataTable thead tr:last-child th,
.nl-app .dataTables_wrapper table.dataTable thead tr:last-child td {
  border-bottom: 1px solid var(--nl-border) !important;
}

.nl-app .dataTables_wrapper .dataTables_scrollHead,
.nl-app .dataTables_wrapper .dataTables_scrollBody {
  border: 0 !important;
}

.nl-app .dataTables_wrapper .dataTables_scrollHead thead th,
.nl-app .dataTables_wrapper .dataTables_scrollHead thead td {
  box-shadow: none !important;
}

.nl-app .pagination > li > a,
.nl-app .pagination > li > span {
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  margin: 0 4px;
  color: var(--nl-text-2);
}

.nl-app .pagination > .active > a,
.nl-app .pagination > .active > span,
.nl-app .pagination > .active > a:hover,
.nl-app .pagination > .active > span:hover {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.28);
  color: var(--nl-text);
}

.nl-app .modal-content {
  border-radius: var(--nl-radius);
  border: 1px solid var(--nl-border);
  box-shadow: var(--nl-shadow);
}

.nl-app .dropdown-menu {
  border-radius: 14px;
  border: 1px solid var(--nl-border);
  box-shadow: var(--nl-shadow);
  padding: 8px;
}

.nl-app .dropdown-menu > li > a {
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  color: var(--nl-text-2);
}

.nl-app .dropdown-menu > li > a:hover {
  background: var(--nl-surface-2);
  color: var(--nl-text);
}

body > .dropdown-menu.nl-detached-menu {
  width: auto !important;
  min-width: 220px !important;
  max-width: 360px !important;
  max-height: calc(100vh - 140px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  z-index: 20050 !important;
}

body > .dropdown-menu.nl-detached-menu > li > a {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Item menu berbahaya.
   Tetap menyatu seperti item menu lain, tetapi terlihat danger saat normal dan hover.
   Selector detached diperlukan karena menu DataTables dipindahkan ke <body>. */
.nl-app .dropdown-menu > li > a.nl-menu-danger,
body > .dropdown-menu.nl-detached-menu > li > a.nl-menu-danger,
body > .dropdown-menu.nl-detached-menu > li > a.btn-hapus-siswa[data-force="1"] {
  color: var(--nl-danger, #dc2626) !important;
}

.nl-app .dropdown-menu > li > a.nl-menu-danger i,
body > .dropdown-menu.nl-detached-menu > li > a.nl-menu-danger i,
body > .dropdown-menu.nl-detached-menu > li > a.btn-hapus-siswa[data-force="1"] i {
  color: inherit !important;
}

.nl-app .dropdown-menu > li > a.nl-menu-danger:hover,
.nl-app .dropdown-menu > li > a.nl-menu-danger:focus,
body > .dropdown-menu.nl-detached-menu > li > a.nl-menu-danger:hover,
body > .dropdown-menu.nl-detached-menu > li > a.nl-menu-danger:focus,
body > .dropdown-menu.nl-detached-menu > li > a.btn-hapus-siswa[data-force="1"]:hover,
body > .dropdown-menu.nl-detached-menu > li > a.btn-hapus-siswa[data-force="1"]:focus {
  background: rgba(220, 38, 38, 0.12) !important;
  color: var(--nl-danger, #dc2626) !important;
}

.nl-app .dropdown-menu > li > a.nl-menu-danger:active,
body > .dropdown-menu.nl-detached-menu > li > a.nl-menu-danger:active,
body > .dropdown-menu.nl-detached-menu > li > a.btn-hapus-siswa[data-force="1"]:active {
  background: rgba(220, 38, 38, 0.18) !important;
  color: var(--nl-danger, #dc2626) !important;
}

.swal-overlay,
.swal-modal,
.swal2-container,
#toast-container,
.toast,
.toastr {
  z-index: 30000 !important;
}

.swal2-container {
  position: fixed !important;
}

.nl-app .alert {
  border-radius: var(--nl-radius);
  border: 1px solid var(--nl-border);
}

.nl-app .text-muted {
  color: var(--nl-text-3);
}

.nl-app .badge {
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 800;
}

.nl-app #jam-realtime {
  display: inline-block;
  padding: 8px 12px;
  color: var(--nl-text-2);
}

:root {
  --nl-top: 74px;
  --nl-sidebar-w: 320px;
  --nl-gap: 14px;
}

.nl-app #top_header {
  z-index: 1030;
}

.nl-app .modal {
  z-index: 2000;
}
.nl-app .modal-backdrop {
  z-index: 1990;
}

.nl-app #top_header .container {
  width: 100%;
  max-width: none;
  padding-left: 16px;
  padding-right: 16px;
}

.nl-app .main_section.container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 18px 16px 34px;
  display: flex;
  gap: var(--nl-gap);
  align-items: flex-start;
  overflow: visible !important;
}

.nl-app #sidebar {
  order: 0;
  width: var(--nl-sidebar-w);
  flex: 0 0 var(--nl-sidebar-w);
  float: none;
  margin: 0;
  position: sticky;
  top: var(--nl-top);
  align-self: flex-start;
  max-height: none;
  overflow: visible;
}

.nl-app #main_content_outer {
  order: 1;
  flex: 1;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
}

.nl-app #main_content {
  margin: 0 !important;
  background: transparent;
}

.nl-app .side_text_nav {
  padding: 10px 10px 14px;
}

.nl-app .side_text_nav > li {
  margin: 0 0 8px 0;
}

.nl-app .side_text_nav > li > a {
  min-height: 44px;
  line-height: 18px;
  padding: 11px 14px;
  border-radius: 14px;
  display: block;
  position: relative;
  padding-right: 44px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  background: var(--nl-surface-2) !important;
  border: 1px solid var(--nl-border) !important;
}

.nl-app .side_text_nav li li > a {
  min-height: 40px;
  line-height: 18px;
  padding: 10px 12px 10px 18px;
  border-radius: 14px;
  display: block;
  position: relative;
  padding-right: 38px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: transparent !important;
}

.nl-app .side_text_nav > li > a span[class^="fa-"],
.nl-app .side_text_nav > li > a i,
.nl-app .side_text_nav li li > a i {
  color: var(--nl-text-2);
  opacity: 1;
}

.nl-app .side_text_nav > li > a span[class^="fa-"] {
  min-width: 18px;
  margin-right: 10px;
  display: inline-block;
}

.nl-app .side_text_nav > li > a > i {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 0.18s ease, color 0.18s ease, opacity 0.18s ease;
  opacity: 0.65;
}

.nl-app .side_text_nav li.open > a > i,
.nl-app .side_text_nav li.active > a > i {
  transform: translateY(-50%) rotate(180deg);
  opacity: 0.85;
}

.nl-app .side_text_nav > li > a:hover,
.nl-app .side_text_nav li li > a:hover {
  background: var(--nl-surface-2);
  color: var(--nl-text);
}

.nl-app .side_text_nav > li > a:hover span[class^="fa-"],
.nl-app .side_text_nav > li > a:hover i {
  color: var(--nl-text);
}

.nl-app .side_text_nav > li.active > a,
.nl-app .side_text_nav > li.open > a {
  background: rgba(37, 99, 235, 0.1);
  color: var(--nl-brand-2);
  box-shadow: none;
}

.nl-app .side_text_nav > li.active > a span[class^="fa-"],
.nl-app .side_text_nav > li.open > a span[class^="fa-"],
.nl-app .side_text_nav > li.active > a i,
.nl-app .side_text_nav > li.open > a i {
  color: var(--nl-brand-2);
}

.nl-app .side_text_nav > li ul {
  margin: 6px 0 0 0;
  padding: 0 0 0 14px;
}

.nl-app .side_text_nav > li ul li {
  margin: 0 0 6px 0;
}

.nl-app #sidebar .sepH_b {
  position: static;
  background: transparent;
  padding: 0 0 12px;
  border: 0;
  z-index: auto;
}

.nl-app #sidebar .sepH_b .btn {
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

@media (max-width: 1200px) {
  :root {
    --nl-sidebar-w: 320px;
    --nl-gap: 12px;
  }
}

@media (max-width: 992px) {
  :root {
    --nl-sidebar-w: 320px;
    --nl-gap: 12px;
  }
}

@media (max-width: 768px) {
  .nl-app .main_section.container {
    display: block;
    padding: 14px 12px 26px;
  }
  .nl-app #sidebar {
    width: 100%;
    max-height: none;
    position: relative;
    top: auto;
    overflow: visible;
    margin: 0 0 14px 0;
  }
  .nl-app #main_content_outer {
    padding: 0;
  }
  .nl-app #top_header .container {
    padding-left: 12px;
    padding-right: 12px;
  }
}

.nl-app .nl-clockbar {
  text-align: center;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.2px;
  color: var(--nl-brand);
  margin: 0;
  padding: 8px 10px 0;
}

.nl-app .dataTables_wrapper {
  background: var(--nl-surface) !important;
  border: 1px solid var(--nl-border) !important;
  border-radius: var(--nl-radius) !important;
  box-shadow: var(--nl-shadow-sm) !important;
}

.nl-app .dataTables_wrapper .dataTables_scroll {
  border-radius: var(--nl-radius) !important;
  overflow: hidden !important;
}

.nl-app .dataTables_wrapper table.dataTable thead th,
.nl-app .dataTables_wrapper table.dataTable thead td {
  background: var(--nl-surface-2) !important;
  color: var(--nl-text-2) !important;
  border-color: var(--nl-border) !important;
}

.nl-app .side_text_nav > li.open > ul {
  margin-left: 8px;
  padding-left: 14px;
  border-left: 2px solid rgba(37, 99, 235, 0.14);
}

.nl-app .side_text_nav li li > a {
  padding-left: 18px;
}

.nl-app .side_text_nav li li.active > a,
.nl-app .side_text_nav li li > a.active,
.nl-app .side_text_nav li li > a.nl-active {
  background: rgba(37, 99, 235, 0.1) !important;
  border: 1px solid rgba(37, 99, 235, 0.18) !important;
  color: var(--nl-brand-2) !important;
  font-weight: 800;
  box-shadow: none;
}

.nl-app .side_text_nav li li.active > a:before,
.nl-app .side_text_nav li li > a.active:before,
.nl-app .side_text_nav li li > a.nl-active:before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 999px;
  background: var(--nl-brand);
}

.nl-app .side_text_nav > li.open > a,
.nl-app .side_text_nav > li.active > a,
.nl-app .side_text_nav > li.parent_active > a {
  font-weight: 800;
}

:root {
  --nl-top: 74px;
  --nl-sidebar-w: 320px;
  --nl-gap: 14px;
}

.nl-app #top_header {
  z-index: 1200;
}

.nl-app .modal {
  z-index: 2000;
}
.nl-app .modal-backdrop {
  z-index: 1990;
}

.nl-app .main_section.container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 18px 16px 34px;
  display: flex;
  gap: var(--nl-gap);
  align-items: flex-start;
  overflow: visible !important;
}

.nl-app #sidebar {
  order: 0;
  width: var(--nl-sidebar-w);
  flex: 0 0 var(--nl-sidebar-w);
  float: none;
  margin: 0;
  position: sticky;
  top: var(--nl-top);
  align-self: flex-start;
  max-height: none;
  overflow: visible;
}

.nl-app #main_content_outer {
  order: 1;
  flex: 1;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
}

.nl-app #main_content {
  margin: 0 !important;
  background: transparent;
}

.nl-app .side_text_nav {
  padding: 10px 10px 14px;
}

.nl-app .side_text_nav > li {
  margin: 0 0 8px 0;
}

.nl-app .side_text_nav > li > a {
  min-height: 44px;
  line-height: 18px;
  padding: 11px 14px;
  border-radius: 14px;
  display: block;
  position: relative;
  padding-right: 44px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  background: var(--nl-surface-2) !important;
  border: 1px solid var(--nl-border) !important;
}

.nl-app .side_text_nav li li > a {
  min-height: 40px;
  line-height: 18px;
  padding: 10px 12px 10px 18px;
  border-radius: 14px;
  display: block;
  position: relative;
  padding-right: 38px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: transparent !important;
}

.nl-app .side_text_nav > li > a span[class^="fa-"],
.nl-app .side_text_nav > li > a i,
.nl-app .side_text_nav li li > a i {
  color: var(--nl-text-2);
  opacity: 1;
}

.nl-app .side_text_nav > li > a span[class^="fa-"] {
  min-width: 18px;
  margin-right: 10px;
  display: inline-block;
}

.nl-app .side_text_nav > li > a > i {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 0.18s ease, color 0.18s ease, opacity 0.18s ease;
  opacity: 0.65;
}

.nl-app .side_text_nav li.open > a > i,
.nl-app .side_text_nav li.active > a > i {
  transform: translateY(-50%) rotate(180deg);
  opacity: 0.85;
}

.nl-app .side_text_nav > li > a:hover,
.nl-app .side_text_nav li li > a:hover {
  background: var(--nl-surface-2);
  color: var(--nl-text);
}

.nl-app .side_text_nav > li > a:hover span[class^="fa-"],
.nl-app .side_text_nav > li > a:hover i {
  color: var(--nl-text);
}

.nl-app .side_text_nav > li.active > a,
.nl-app .side_text_nav > li.open > a,
.nl-app .side_text_nav > li.parent_active > a {
  background: rgba(37, 99, 235, 0.1);
  color: var(--nl-brand-2);
  box-shadow: none;
  border-color: rgba(37, 99, 235, 0.18) !important;
}

.nl-app .side_text_nav > li.active > a span[class^="fa-"],
.nl-app .side_text_nav > li.open > a span[class^="fa-"],
.nl-app .side_text_nav > li.parent_active > a span[class^="fa-"],
.nl-app .side_text_nav > li.active > a i,
.nl-app .side_text_nav > li.open > a i,
.nl-app .side_text_nav > li.parent_active > a i {
  color: var(--nl-brand-2);
}

.nl-app .side_text_nav > li ul {
  margin: 6px 0 0 0;
  padding: 0 0 0 14px;
}

.nl-app .side_text_nav > li.open > ul,
.nl-app .side_text_nav > li.parent_active > ul {
  padding-left: 16px;
  margin-left: 6px;
  border-left: 2px solid rgba(37, 99, 235, 0.16);
}

.nl-app .side_text_nav > li ul li {
  margin: 0 0 6px 0;
}

.nl-app .side_text_nav li li.active > a,
.nl-app .side_text_nav li li > a.active,
.nl-app .side_text_nav li li > a.nl-active {
  background: rgba(37, 99, 235, 0.1) !important;
  border: 1px solid rgba(37, 99, 235, 0.18) !important;
  color: var(--nl-brand-2) !important;
  font-weight: 800;
}

.nl-app .side_text_nav li li.active > a:before,
.nl-app .side_text_nav li li > a.active:before,
.nl-app .side_text_nav li li > a.nl-active:before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 6px;
  background: var(--nl-brand);
}

.nl-app #sidebar .sepH_b {
  position: static;
  background: transparent;
  padding: 0 0 12px;
  border: 0;
  z-index: auto;
}

.nl-app #sidebar .sepH_b .btn {
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

@media (max-width: 1200px) {
  :root {
    --nl-sidebar-w: 320px;
    --nl-gap: 12px;
  }
}

@media (max-width: 992px) {
  :root {
    --nl-sidebar-w: 320px;
    --nl-gap: 12px;
  }
}

@media (max-width: 768px) {
  .nl-app .main_section.container {
    display: block;
    padding: 14px 12px 26px;
  }
  .nl-app #sidebar {
    width: 100%;
    max-height: none;
    position: relative;
    top: auto;
    overflow: visible;
    margin: 0 0 14px 0;
  }
  .nl-app #main_content_outer {
    padding: 0;
  }
  .nl-app #top_header .container {
    padding-left: 12px;
    padding-right: 12px;
  }
}

.nl-app .side_text_nav > li.open > ul,
.nl-app .side_text_nav > li.active > ul {
  border-left: 2px solid rgba(37, 99, 235, 0.2);
  padding-left: 12px;
}

.nl-app .side_text_nav li li.active > a {
  background: rgba(37, 99, 235, 0.1) !important;
  border: 1px solid rgba(37, 99, 235, 0.25) !important;
  color: var(--nl-brand-2) !important;
  font-weight: 800;
  box-shadow: none;
}

.nl-app .side_text_nav li li.active > a i,
.nl-app .side_text_nav li li.active > a span[class^="fa-"] {
  color: var(--nl-brand-2) !important;
  opacity: 1;
}

.nl-app .side_text_nav li li > a:hover {
  background: rgba(37, 99, 235, 0.06) !important;
  border: 1px solid rgba(37, 99, 235, 0.18) !important;
}

.nl-app .side_text_nav li li.active > a,
.nl-app .side_text_nav li li > a.active,
.nl-app .side_text_nav li li > a.nl-active {
  background: rgba(37, 99, 235, 0.16) !important;
  border: 1px solid rgba(37, 99, 235, 0.35) !important;
}

.nl-app .side_text_nav li li.active > a:before,
.nl-app .side_text_nav li li > a.active:before,
.nl-app .side_text_nav li li > a.nl-active:before {
  left: 4px;
  width: 4px;
  background: var(--nl-brand-2);
}

.nl-app .side_text_nav > li.open > ul,
.nl-app .side_text_nav > li.active > ul {
  border-left: 2px solid rgba(37, 99, 235, 0.28);
}

.nl-app .side_text_nav li li > a:hover {
  background: rgba(37, 99, 235, 0.1) !important;
  border: 1px solid rgba(37, 99, 235, 0.24) !important;
}

.nl-app .side_text_nav li li.active > a,
.nl-app .side_text_nav li li > a.active,
.nl-app .side_text_nav li li > a.nl-active {
  background: rgba(37, 99, 235, 0.16) !important;
  border: 1px solid rgba(37, 99, 235, 0.35) !important;
}

.nl-app .side_text_nav li li.active > a:before,
.nl-app .side_text_nav li li > a.active:before,
.nl-app .side_text_nav li li > a.nl-active:before {
  left: 4px;
  width: 4px;
  background: var(--nl-brand-2);
}

.nl-app .side_text_nav > li.open > ul,
.nl-app .side_text_nav > li.active > ul {
  border-left: 2px solid rgba(37, 99, 235, 0.26);
}

.nl-app .side_text_nav li li.active > a,
.nl-app .side_text_nav li li > a.active,
.nl-app .side_text_nav li li > a.nl-active {
  background: rgba(37, 99, 235, 0.16) !important;
  border: 1px solid rgba(37, 99, 235, 0.35) !important;
}

.nl-app .side_text_nav li li.active > a:before,
.nl-app .side_text_nav li li > a.active:before,
.nl-app .side_text_nav li li > a.nl-active:before {
  left: 4px;
  width: 4px;
  background: var(--nl-brand-2);
}

.nl-app .side_text_nav > li.open > ul,
.nl-app .side_text_nav > li.active > ul {
  border-left: 2px solid rgba(37, 99, 235, 0.28);
}

.nl-app .side_text_nav li li > a.current {
  background: rgba(37, 99, 235, 0.16) !important;
  border: 1px solid rgba(37, 99, 235, 0.35) !important;
  color: var(--nl-brand-2) !important;
  font-weight: 800;
}

.nl-app .side_text_nav li li > a.current:before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 4px;
  border-radius: 999px;
  background: var(--nl-brand-2);
}

.nl-detached-menu {
  z-index: 20050 !important;
}

.swal2-container {
  z-index: 20060 !important;
}

/* SweetAlert2 toast/notice pojok tidak memakai backdrop.
   Backdrop global tetap berlaku untuk dialog tengah seperti logout dan progress. */
.swal2-container.swal2-top-end.swal2-backdrop-show,
.swal2-container.swal2-top-right.swal2-backdrop-show,
.swal2-container.swal2-top-start.swal2-backdrop-show,
.swal2-container.swal2-top-left.swal2-backdrop-show {
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.swal2-container.swal2-top-end,
.swal2-container.swal2-top-right,
.swal2-container.swal2-top-start,
.swal2-container.swal2-top-left {
  bottom: auto !important;
  height: auto !important;
  left: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  padding: 12px !important;
  pointer-events: none;
  width: min(360px, calc(100vw - 24px)) !important;
}

.swal2-container.swal2-top-end .swal2-popup,
.swal2-container.swal2-top-right .swal2-popup,
.swal2-container.swal2-top-start .swal2-popup,
.swal2-container.swal2-top-left .swal2-popup {
  pointer-events: auto;
}

.swal2-container .swal2-popup.swal2-toast.portal-swal-popup {
  border-radius: 20px !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .14) !important;
  font-family: Roboto, Arial, sans-serif !important;
  max-width: 100% !important;
  overflow: hidden !important;
  padding: 14px 16px !important;
  width: 100% !important;
}

.swal2-container .swal2-popup.swal2-toast .portal-swal-icon.swal2-icon {
  border-radius: 14px !important;
  height: 42px !important;
  margin: 0 12px 0 0 !important;
  min-height: 42px !important;
  min-width: 42px !important;
  width: 42px !important;
}

.swal2-container .swal2-popup.swal2-toast .portal-swal-icon .swal2-icon-content {
  font-size: 18px !important;
}

.swal2-container .swal2-popup.swal2-toast .portal-swal-title.swal2-title {
  font-size: 16px !important;
  line-height: 1.25 !important;
}

.swal2-container .swal2-popup.swal2-toast .portal-swal-text.swal2-html-container {
  font-size: 12px !important;
  line-height: 1.45 !important;
  margin: 4px 0 0 !important;
}

.swal2-container .swal2-popup.swal2-toast .swal2-timer-progress-bar {
  background: rgba(37, 99, 235, .28) !important;
  height: 3px !important;
}

.sweet-overlay {
  z-index: 20055 !important;
}

.sweet-alert {
  z-index: 20060 !important;
}

.toast,
.toast-container,
.toastr,
#toast-container {
  z-index: 20060 !important;
}
#text_nav_v .nav-caret-up {
  display: none;
}

#text_nav_v li.parent_active > a .nav-caret-down {
  display: none;
}

#text_nav_v li.parent_active > a .nav-caret-up {
  display: inline-block;
}
/* === Sidebar: vertical scroll === */
.nl-app #sidebar {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - var(--nl-top) - 12px);
  overflow: hidden;
}

.nl-app #sidebar .side_text_nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}
.nl-cselect {
  position: relative;
  width: 100%;
}

.nl-cselect-native {
  position: absolute !important;
  left: -99999px !important;
  top: -99999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.nl-cselect-btn {
  width: 100%;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #fff;
  padding: 0 38px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-weight: 900;
  color: #111827;
  transition: box-shadow 0.12s ease, border-color 0.12s ease;
}

.nl-cselect-btn:focus {
  outline: none;
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.nl-cselect-btn .txt {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nl-cselect-btn .car {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid #111827;
  opacity: 0.85;
}

.nl-cselect.open .nl-cselect-btn {
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.nl-cselect-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 99999;
  border: 1px solid var(--nl-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.nl-cselect.open .nl-cselect-menu {
  display: block;
}

.nl-cselect-list {
  max-height: 260px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.nl-cselect-item {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 900;
  cursor: pointer;
}

.nl-cselect-item:hover {
  background: #fff7ed;
  border-color: #fed7aa;
}

.nl-cselect-item.selected {
  background: rgba(191, 227, 180, 0.45);
}

.nl-cselect-item.disabled {
  cursor: not-allowed;
  color: #9ca3af;
  background: #fff;
}

.nl-cselect-item.disabled:hover {
  background: #fff;
}

.nl-cselect-item .t {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nl-cselect-item .r {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nl-app .dataTables_wrapper .row:last-child {
  margin: 0;
  clear: both;
  overflow: auto;
}

.nl-app .dataTables_wrapper .dataTables_info {
  float: left !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 34px;
}

.nl-app .dataTables_wrapper .dataTables_paginate {
  float: right !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: right !important;
}

.nl-app .dataTables_wrapper .dataTables_paginate .pagination {
  margin: 0 !important;
}

.nl-app .dataTables_wrapper .pagination > li > a,
.nl-app .dataTables_wrapper .pagination > li > span {
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  line-height: 34px;
}

@media (max-width: 767px) {
  .nl-app .dataTables_wrapper .row:last-child {
    padding: 10px 10px;
    text-align: center;
  }

  .nl-app .dataTables_wrapper .dataTables_info,
  .nl-app .dataTables_wrapper .dataTables_paginate {
    float: none !important;
    text-align: center !important;
    line-height: normal;
  }

  .nl-app .dataTables_wrapper .dataTables_paginate {
    margin-top: 6px !important;
  }
}

/* === NL shell: stable header + mobile drawer navigation === */
.nl-app #top_header .nl-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 0;
  margin-right: 0;
}

.nl-app #top_header .nl-header-row > [class*="col-"] {
  float: none;
  left: auto;
  right: auto;
  width: auto;
  padding-left: 0;
  padding-right: 0;
}

.nl-app #top_header .nl-header-brand {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nl-app #top_header .nl-header-actions {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.nl-app #top_header .nl-header-user {
  flex: 0 0 auto;
  margin-left: auto;
}

.nl-app #top_header .nl-header-fill {
  display: none;
}

.nl-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--nl-border);
  border-radius: 12px;
  background: var(--nl-surface);
  color: var(--nl-text);
  align-items: center;
  justify-content: center;
  box-shadow: var(--nl-shadow-sm);
}

.nl-menu-toggle:focus {
  outline: none;
  box-shadow: var(--nl-ring);
}

.nl-sidebar-overlay {
  display: none;
}

.nl-app #mobile_navigation {
  display: none !important;
}

@media (max-width: 768px) {
  body.nl-sidebar-open {
    overflow: hidden;
  }

  .nl-app #top_header {
    padding: 8px 0;
  }

  .nl-app #top_header .nl-header-row {
    gap: 8px;
  }

  .nl-menu-toggle {
    display: inline-flex;
    flex: 0 0 40px;
  }

  .nl-app #top_header .nl-header-brand {
    min-width: 0;
  }

  .nl-app #top_header .logo_main {
    min-width: 0;
    max-width: 100%;
  }

  .nl-app #top_header .logo_main__text {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nl-app #top_header .nl-header-user {
    margin-left: 0;
  }

  .nl-app #top_header .user_info img {
    width: 34px;
    height: 34px;
  }

  .nl-app .main_section.container {
    display: block;
    padding: 12px 10px 24px;
  }

  .nl-app #main_content_outer {
    width: 100%;
    padding: 0;
  }

.nl-app #sidebar {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  bottom: auto;

  width: min(86vw, 340px) !important;
  height: var(--nl-drawer-h, 100dvh) !important;
  max-height: var(--nl-drawer-h, 100dvh) !important;
  min-height: 0;

  margin: 0 !important;
  padding: calc(12px + env(safe-area-inset-top)) 12px
    calc(12px + env(safe-area-inset-bottom));

  background: var(--nl-bg);
  box-shadow: 18px 0 48px rgba(15, 23, 42, 0.18);
  z-index: 1800;

  display: flex;
  flex-direction: column;
  box-sizing: border-box;

  transform: translateX(-104%);
  transition: transform 0.22s ease;
  overflow: hidden;
}

  body.nl-app.nl-sidebar-open #sidebar {
    transform: translateX(0);
  }

  .nl-app #sidebar .sepH_b {
    flex: 0 0 auto;
    padding-bottom: 6px;
    margin-bottom: 6px;
  }

.nl-app #sidebar .side_text_nav {
  position: static !important;
  top: auto !important;
  left: auto !important;
  width: auto !important;

  flex: 1 1 auto;
  min-height: 0;
  max-height: none;

  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;

  padding-bottom: calc(18px + env(safe-area-inset-bottom));
}

  .nl-sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    z-index: 1790;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
  }

  body.nl-sidebar-open .nl-sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .nl-app .nl-clockbar {
    padding: 6px 10px 0;
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .nl-app #top_header .logo_main__text {
    font-size: 13px;
  }

  .nl-app #top_header .user_info .caret {
    display: none;
  }
}

/* === NL sidebar final polish === */
.nl-app #sidebar {
  gap: 10px;
}

.nl-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  padding: 12px 12px;
  border: 1px solid var(--nl-border);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, rgba(243, 246, 251, 0.92));
  box-shadow: var(--nl-shadow-sm);
}

.nl-sidebar-head > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
}

.nl-sidebar-title {
  font-size: 13px;
  font-weight: 950;
  color: var(--nl-text);
  line-height: 1.15;
}

.nl-sidebar-subtitle {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 800;
  color: var(--nl-text-3);
  line-height: 1.15;
}

.nl-sidebar-close {
  display: none;
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 1px solid var(--nl-border);
  border-radius: 12px;
  background: #fff;
  color: var(--nl-text-2);
  align-items: center;
  justify-content: center;
}

.nl-sidebar-close:focus {
  outline: none;
  box-shadow: var(--nl-ring);
}

.nl-app #sidebar .sepH_b {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.nl-app #sidebar .sepH_b .btn {
  min-width: 0;
  padding: 7px 8px;
  border-radius: 12px;
  font-size: 11px;
  line-height: 1.2;
  color: var(--nl-text-2);
  background: #fff;
  box-shadow: none;
}

.nl-app #sidebar .side_text_nav {
  border-radius: 18px;
  padding: 8px 7px;
  background: #fff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: var(--nl-shadow-sm);
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 116, 139, 0.48) transparent;
  overscroll-behavior: contain;
}

.nl-app #sidebar .side_text_nav::-webkit-scrollbar {
  width: 7px;
}

.nl-app #sidebar .side_text_nav::-webkit-scrollbar-track {
  background: transparent;
}

.nl-app #sidebar .side_text_nav::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.34);
  border-radius: 999px;
  border: 2px solid #fff;
}

.nl-app #sidebar .side_text_nav > li {
  margin: 0 0 3px;
}

.nl-app #sidebar .side_text_nav > li:last-child {
  margin-bottom: 0;
}

.nl-app #sidebar .side_text_nav > li > a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 36px 8px 12px;
  border-radius: 13px;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: rgba(15, 23, 42, 0.76);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  box-shadow: none;
}

.nl-app #sidebar .side_text_nav > li > a span[class^="fa-"],
.nl-app #sidebar .side_text_nav > li > a > .fa-layers,
.nl-app #sidebar .side_text_nav > li > a > i:not(.nav-caret-down):not(.nav-caret-up) {
  width: 22px;
  min-width: 22px;
  margin-right: 8px;
  color: rgba(71, 85, 105, 0.9);
  text-align: center;
}

.nl-app #sidebar .side_text_nav > li > a > i.nav-caret-down,
.nl-app #sidebar .side_text_nav > li > a > i.nav-caret-up {
  right: 13px;
  color: rgba(100, 116, 139, 0.72);
}

.nl-app #sidebar .side_text_nav > li > a:hover {
  background: rgba(37, 99, 235, 0.06) !important;
  border-color: rgba(37, 99, 235, 0.12) !important;
  color: var(--nl-text);
  transform: none;
}

.nl-app #sidebar .side_text_nav > li.active > a,
.nl-app #sidebar .side_text_nav > li.open > a,
.nl-app #sidebar .side_text_nav > li.parent_active > a,
.nl-app #sidebar .side_text_nav > li.nl-current-parent > a,
.nl-app #sidebar .side_text_nav > li > a.current {
  background: rgba(37, 99, 235, 0.1) !important;
  border-color: rgba(37, 99, 235, 0.18) !important;
  color: var(--nl-brand-2);
  font-weight: 950;
}

.nl-app #sidebar .side_text_nav > li > ul {
  margin: 3px 0 7px 12px !important;
  padding: 4px 0 2px 10px !important;
  border-left: 1px solid rgba(37, 99, 235, 0.18) !important;
}

.nl-app #sidebar .side_text_nav li li {
  margin: 0 0 3px !important;
}

.nl-app #sidebar .side_text_nav li li > a {
  min-height: 32px;
  padding: 7px 30px 7px 10px;
  border-radius: 11px;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: rgba(15, 23, 42, 0.68);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.nl-app #sidebar .side_text_nav li li > a:hover {
  background: rgba(15, 23, 42, 0.04) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  color: var(--nl-text);
}

.nl-app #sidebar .side_text_nav li li.active > a,
.nl-app #sidebar .side_text_nav li li > a.active,
.nl-app #sidebar .side_text_nav li li > a.nl-active,
.nl-app #sidebar .side_text_nav li li > a.current {
  background: rgba(37, 99, 235, 0.08) !important;
  border-color: rgba(37, 99, 235, 0.16) !important;
  color: var(--nl-brand-2) !important;
  font-weight: 900;
}

.nl-app #sidebar .side_text_nav li li.active > a:before,
.nl-app #sidebar .side_text_nav li li > a.active:before,
.nl-app #sidebar .side_text_nav li li > a.nl-active:before,
.nl-app #sidebar .side_text_nav li li > a.current:before {
  left: 4px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  background: var(--nl-brand-2);
}

@media (max-width: 768px) {
  .nl-sidebar-head,
  .nl-app #sidebar .sepH_b {
    flex: 0 0 auto;
  }

  .nl-sidebar-head {
    padding: 10px 11px;
    border-radius: 15px;
  }

  .nl-app #sidebar .sepH_b .btn {
    padding: 6px 8px;
    font-size: 10.5px;
  }

  .nl-sidebar-close {
    display: inline-flex;
  }
}

/* Searchable custom select: state dan elemen reusable untuk seluruh modul. */
.nl-cselect--searchable .nl-cselect-search {
  position: relative;
  padding: 10px;
  border-bottom: 1px solid var(--nl-border);
  background: #f8fafc;
}

.nl-cselect--searchable .nl-cselect-search-input {
  width: 100%;
  height: 34px;
  border: 1px solid #d1d5db;
  border-radius: 9px;
  background: #fff;
  color: #111827;
  padding: 0 12px 0 34px;
  font-size: 12px;
  font-weight: 700;
}

.nl-cselect--searchable .nl-cselect-search-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.nl-cselect--searchable .nl-cselect-search-icon {
  position: absolute;
  top: 50%;
  left: 21px;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}

.nl-cselect--searchable .nl-cselect-empty {
  padding: 14px 12px;
  color: #64748b;
  font-size: 12px;
  text-align: center;
}

.nl-cselect--searchable .nl-cselect-item.is-filtered-out {
  display: none;
}

.nl-cselect-btn-extra {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nl-cselect-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  white-space: nowrap;
}
