.menu-icon {
    text-align: center;
    display: inline-block;
    width: 20px;
    color: #fff;
}

.sidebar-logo {
    width: 150px !important;
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .logo-wrapper, .page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .logo-icon-wrapper {
    padding: 22px 30px 0px 30px !important;
}

.sidebar-logo-icon {
    width: 30px !important;
}

.profile-image {
    width: 35px;
}

input {
    cursor: auto !important;
}

.login-card .logo {
    width: 150px !important;
}

/* Sembunyikan ikon filled saat normal */
.sidebar-link .fill-icon { display: none; }
/* Saat menu active/expanded, tampilkan filled, sembunyikan stroke */
.sidebar-link.active .fill-icon,
.sidebar-link[aria-expanded="true"] .fill-icon { display: inline-block; }
.sidebar-link.active .stroke-icon,
.sidebar-link[aria-expanded="true"] .stroke-icon { display: none; }

.btn-xs {
    padding: 0.05rem 0.4rem !important;
    font-size: 11px !important;
}

.btn-sm {
    font-size: 12px !important;
}

/* Header DataTables server-side */
#my-datatables-ajax thead th {
    background-color: #288b88;   /* warna mirip sidebar */
    color: #fff;                 /* teks putih */
    /* border-color: #0B5C59; */
    vertical-align: middle;
    text-align: center;
}

/* Kalau pakai sorting DataTables */
#my-datatables-ajax thead th.sorting,
#my-datatables-ajax thead th.sorting_asc,
#my-datatables-ajax thead th.sorting_desc {
    background-color: #288b88 !important;
    color: #fff !important;
}

table.dataTable.display tbody tr.odd .badge {
    line-height: 10px;
}

table.dataTable.display tbody tr.even .badge {
    line-height: 10px;
}

.select2-container--bootstrap4 .select2-selection--single {
    height: calc(1.5em + .75rem + 10px) !important;
}

.select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
    line-height: 1.5em !important;
}

.swal-text {
    max-height: 300px;   /* batas tinggi konten */
    overflow-y: auto;    /* biar ada scroll vertikal */
    text-align: left;    /* biar lebih enak dibaca */
}

/* Firefox */
.sidebar-wrapper {
    scrollbar-width: thin;                 /* tipis */
    scrollbar-color: #7c7b76 transparent;  /* kuning (thumb), transparan (track) */
}

/* Chrome, Edge, Safari */
.sidebar-wrapper::-webkit-scrollbar {
    width: 6px;   /* lebar scrollbar */
}

.sidebar-wrapper::-webkit-scrollbar-track {
    background: transparent; /* track transparan */
}

.sidebar-wrapper::-webkit-scrollbar-thumb {
    background-color: #fbc02d; /* kuning terang */
    border-radius: 4px;
}

.sidebar-wrapper::-webkit-scrollbar-thumb:hover {
    background-color: #f9a825; /* kuning agak gelap saat hover */
}

.swal-text {
    text-align: center !important;
}

.modal {
    --amn-modal-viewport-gap: 2rem;
}

.modal .modal-dialog:not(.modal-fullscreen) {
    max-height: calc(100vh - var(--amn-modal-viewport-gap));
    max-height: calc(100dvh - var(--amn-modal-viewport-gap));
}

.modal .modal-dialog:not(.modal-fullscreen) .modal-content {
    max-height: calc(100vh - var(--amn-modal-viewport-gap));
    max-height: calc(100dvh - var(--amn-modal-viewport-gap));
    overflow: hidden;
}

.modal .modal-content > form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: inherit;
    overflow: hidden;
}

.modal .modal-header,
.modal .modal-footer {
    flex-shrink: 0;
}

.modal .modal-body {
    min-height: 0;
    overflow-y: auto;
}

@media (max-width: 575.98px) {
    .modal {
        --amn-modal-viewport-gap: 1rem;
    }
}
