/* .page-wrapper.horizontal-wrapper .page-body-wrapper .sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content > li .sidebar-submenu {
    position:  relative !important;
} */

/* a.sidebar-link[title]:hover::after {
    content: attr(title);
    position: absolute;
    z-index: 99;
    bottom:15px;
    background-color: #2f2e2e;
    color: #FFF;
    font-size:0.6rem;
    padding: 4px;

} */

/* body{
    font-family: "Nunito", sans-serif;
    font-weight: 400;
} */

.page-wrapper.compact-wrapper .page-body-wrapper .page-body {
    min-height: calc(100vh - 100px);
    margin-top: 75px;
}

.page-header{
    background: linear-gradient(145deg, rgb(255, 255, 255) 0%, rgb(255, 255, 255) 15%, rgb(45, 181, 245) 100%);
}

.page-wrapper .page-body-wrapper .page-title {
    margin: 0 -27px 20px;
}


.dataTables_wrapper button{
    font-size: 12px !important;
    padding: 0.25rem 0.65rem !important;
}

.dt-buttons, .dt-paging{
    float: right !important;
}
/* .dt-buttons button{
    border-radius: 2px;
    color: white;
    background-color: #222426 !important;
    border:none;
    font-size: 0.85rem !important;
}

.dt-buttons button:hover{
    color: white;
    background-color: #1D1E20 !important;
} */

.select2-container{
    height: 38px !important;
}

/* span.dt-column-title>input{
    display: block !important;
} */

.form-control2 {
    width: 100%;
    height: 20px !important;
    padding: 15px 6px;
}

.form-control3 {
    width: 100%;
    height: 25px !important;
    padding: 6px;
}


.form-control2:focus, .form-control3:focus {
    border-color:#CCC !important;
}

table.display tbody tr td{
    white-space: nowrap !important;
}

fieldset {
    border: 1px solid #e1e1e1;
    /* padding: 1em; */
    padding: 0 1em 1em 1em;
    /* font: 80%/1 sans-serif; */
}

legend {
    padding: 0.2em 0.5em;
    font-size: 0.9rem;
    float: none !important;
    width: auto;
}

#qrcode-2 img{
    width: 100% !important;
}

a.disabled {
    pointer-events: none;
    cursor: default;
    color: grey; /* or any color indicating the disabled state */
    text-decoration: none;
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links li a i {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    float: none;
    transition: all 0.3s ease;
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links li a svg {
    vertical-align: -4px !important;
}

.dataTables_wrapper table.dataTable {
    border: 1px solid #efefef;
}

/* .page-wrapper .sidebar-main-title h6{
    font-weight: 700;
} */

.table-primary tr th{
    background-color: #bfeaff;
}

.select2-container--default .select2-selection--single{
    border: 1px solid #dee2e6;
}
.select2-container .select2-selection--single{
    height:40px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered{
    line-height: 20px !important;
}

/*datatable*/
/* table.dataTable thead {
    position: sticky;
    top: 0;
    z-index: 1;
    background-color: #f9f9f9;
}

table.dataTable thead th {
    border-bottom: 1px solid #ccc;
} */

thead.text-center tr th{
    text-align: center !important;
}

table {
    width: 100%; /* Pastikan tabel menggunakan lebar penuh */
    max-width: 100%; /* Batasi lebar maksimum agar scrollbar muncul */
    white-space: nowrap; /* Hindari konten tabel membungkus */
}
th, td {
    min-width: 60px; /* Sesuaikan dengan lebar minimum kolom */
}

table.dataTable {
    width: 100%;
    table-layout: auto;
}

.table-responsive {
    overflow-x: auto;
}

/* Scroll area untuk tabel */
.dt-scroll-body {
    overflow-x: auto !important;
    overflow-y: auto !important;
    height: 450px !important;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling di perangkat sentuh */
}

/* Tambahkan padding untuk scrollbar */
.dt-scroll {
    padding-bottom: 10px;
}

/* Tampilan scrollbar untuk browser modern */
.dt-scroll-body::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.dt-scroll-body::-webkit-scrollbar-thumb {
    background-color: #888; /* Warna scrollbar */
    border-radius: 5px;
}

.dt-scroll-body::-webkit-scrollbar-track {
    background-color: #f1f1f1; /* Warna latar belakang scrollbar */
}

.bg-login {
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background-position: center;
}

.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg); /* opsional, untuk orientasi lebih natural */
}

/*STICKY TABLE*/
div.sticky-table {
    max-height: 600px;
    overflow: scroll;
    padding-right: 10px; /* Space buat vertical scrollbar */
    padding-bottom: 10px; /* Space buat horizontal scrollbar */
    min-height: 400px;
}

/* Scrollbar tetap terlihat di semua browser (optional tambahan untuk Firefox) */
div.sticky-table{
    scrollbar-width: auto;       /* Firefox */
    scrollbar-color: #888 #f1f1f1;
}

/* Scrollbar untuk Webkit browser (Chrome, Safari) */
div.sticky-table::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

div.sticky-table::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 5px;
}

div.sticky-table::-webkit-scrollbar-track {
    background-color: #f1f1f1;
}

/* table.sticky-table {
    min-width: max-content;
} */

.sticky-table thead th {
    position: sticky;
    top: 0;
    background: #343a40; /* warna table-dark */
    color: white;
    z-index: 2;
}

.sticky-table thead th:first-child {
    left: 0;
    background: #343a40;
    color: white;
    z-index: 3; /* lebih tinggi dari td biasa */
}

.sticky-table thead th:nth-child(2) {
    left: 50px; /* sesuaikan dengan width kolom pertama */
    background: #343a40;
    color: white;
    z-index: 3;
}

.sticky-table td:first-child {
    position: sticky;
    left: 0;
    background: white;
    z-index: 1;
}

.sticky-table td:nth-child(2) {
    position: sticky;
    left: 50px;
    background: white;
    z-index: 1;
}

.btn-action{
    padding: 0.375rem 1rem !important;
}

/* Skeleton/Shimmer */
.skel-text, .skel-block { position:relative; overflow:hidden; background:#e9ecef; border-radius:6px; }
.skel-text { display:inline-block; height:1.25rem; min-width:4rem; vertical-align:middle; }
.skel-block { width:100%; height:260px; }
.skel::after, .skel-text::after, .skel-block::after {
  content:""; position:absolute; inset:0; transform:translateX(-100%);
  background:linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.6), rgba(255,255,255,0));
  animation:shimmer 1.2s infinite;
}
@keyframes shimmer { 100% { transform:translateX(100%); } }
.chart-wrap { position:relative; min-height:260px; }
.shimmer-overlay { position:absolute; inset:12px; z-index:1; border-radius:10px; overflow:hidden; }