<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
    <meta name="description" content="" />
    <meta name="author" content="" />
    <title>SINARAN | RSU ANANDA PURWOKERTO</title>
    <link href="https://cdn.datatables.net/1.11.5/css/jquery.dataTables.min.css" rel="stylesheet">
    <!-- DataTables CSS -->
    <link rel="stylesheet" href="https://cdn.datatables.net/1.13.4/css/jquery.dataTables.min.css">
    <link href="<?php echo base_url('assets_/css/styles.css'); ?>" rel="stylesheet" />
    <link rel="shortcut icon" type="image/png" href="<?= base_url('assets_/assets/img/logo-mini.png') ?>">
    <script src="https://use.fontawesome.com/releases/v6.3.0/js/all.js" crossorigin="anonymous"></script>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/sweetalert2@11/dist/sweetalert2.min.css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <noscript>
        <!-- Pengalihan ke halaman kosong setelah 0 detik -->
        <meta http-equiv="refresh" content="0; url=<?php echo base_url('welcome'); ?>">
    </noscript>
    <style>
        .table-responsive {
            overflow-x: auto;
            /* Memungkinkan scroll horizontal */
        }

        table {
            width: 100%;
            /* Pastikan tabel mengambil lebar penuh */
            min-width: 600px;
            /* Minimum lebar untuk tabel agar tidak terlalu kecil */
        }

        
        .btn-cb {
            padding: 10px;
        }

        /* Gaya CSS untuk memberikan jarak antar tombol */
        .button-margin {
            margin-right: 5px;
            /* Jarak antara tombol */
        }

        .no-js-warning {
            display: block;
            /* Tampilkan pesan jika JavaScript dinonaktifkan */
            background-color: #ffdddd;
            color: #d8000c;
            padding: 10px;
            margin: 10px 0;
            border: 1px solid #d8000c;
        }


        /* Media query untuk responsif */
        @media (max-width: 1000px) {
            .button-margin {
                margin-right: 10px;
                /* Jarak yang lebih besar di layar kecil */
                margin-bottom: 5px;
                /* Tambahkan margin bawah agar tombol tidak terlalu rapat */
                display: inline-block;
                /* Pastikan tombol tetap dalam satu baris */
            }

            .logout-button {
                font-size: 0.9rem;
                /* Ukuran font lebih kecil di layar kecil */
                padding: 0.4em 0.8em;
                /* Padding lebih kecil di layar kecil */
            }
        }

        /* Media query untuk responsif */
        @media (max-width: 768px) {
            .button-margin {
                margin-right: 10px;
                /* Jarak yang lebih besar di layar kecil */
                margin-bottom: 5px;
                /* Tambahkan margin bawah agar tombol tidak terlalu rapat */
                display: inline-block;
                /* Pastikan tombol tetap dalam satu baris */
            }

            .logout-button {
                font-size: 0.9rem;
                /* Ukuran font lebih kecil di layar kecil */
                padding: 0.4em 0.8em;
                /* Padding lebih kecil di layar kecil */
            }
        }

        @media (max-width: 480px) {

            .button-margin {
                margin-right: 10px;
                /* Jarak yang lebih besar di layar kecil */
                margin-bottom: 5px;
                /* Tambahkan margin bawah agar tombol tidak terlalu rapat */
                display: inline-block;
                /* Pastikan tombol tetap dalam satu baris */
            }

            .logout-button {
                font-size: 0.8rem;
                /* Ukuran font lebih kecil di layar sangat kecil */
                padding: 0.3em 0.6em;
                /* Padding lebih kecil di layar sangat kecil */
            }
        }

        /* Gaya dasar untuk tombol dropdown */
        .dropdown {
            position: relative;
            display: inline-block;
        }

        .dropdown-btn {
            background-color: #d8000c;
            /* Warna tombol */
            color: white;
            padding: 10px 20px;
            font-size: 16px;
            border: none;
            cursor: pointer;
            border-radius: 5px;
        }

        .dropdown-content {
            display: none;
            position: absolute;
            background-color: white;
            min-width: 160px;
            box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
            z-index: 1;
        }

        .dropdown-content a {
            color: black;
            padding: 12px 16px;
            text-decoration: none;
            display: block;
        }

        .dropdown-content a:hover {
            background-color: #006400;
            color: white;
        }

        .dropdown:hover .dropdown-content {
            display: block;
        }

        .dropdown:hover .dropdown-btn {
            background-color: #8B0000;
            /* Warna saat hover */
        }

        /* Memastikan modal SweetAlert berada di atas elemen lain */
        /* Z-index untuk SweetAlert */
        .swal2-container {
            z-index: 9999 !important;
            /* Pastikan SweetAlert di atas elemen lain */
        }

        /* Z-index untuk Select2 */
        .select2-container {
            z-index: 10000 !important;
            /* Pastikan Select2 juga di atas elemen lain */
        }

        /* Jika ada elemen dengan z-index tinggi, turunkan nilai z-index elemen tersebut */
        .some-high-zindex-element {
            z-index: 1 !important;
            /* Sesuaikan sesuai kebutuhan */
        }

        .parent-element {
            overflow: visible !important;
            /* Pastikan elemen induk tidak menutupi modal */
        }

        .user-profile {
            margin-top: 30px;
            margin-left: 10px;
            text-decoration: none;
            /* Menghilangkan garis bawah jika ada */
            color: inherit;
            /* Menggunakan warna teks yang ada */
            font-size: 18px;
        }

        .user-profile i {
            font-size: 24px;
            /* Ukuran ikon */
            margin-right: 5px;
            /* Jarak antara ikon dan nama */
        }

        /* Tambahkan gaya untuk konten utama */
        #layoutSidenav_content {
            transition: margin-left 0.3s;
            /* Transisi halus saat sidebar di-toggle */
        }

        #layoutSidenav_nav.toggled {
            display: none;
            /* Menyembunyikan sidebar */
        }

        #layoutSidenav_content.full-width {
            margin-left: 0;
            /* Mengatur margin ke 0 saat sidebar disembunyikan */
            width: 100%;
            /* Mengatur lebar konten utama menjadi 100% */
        }
    </style>
    <!-- <script>
        // Mencegah klik kanan
        document.addEventListener('contextmenu', function(e) {
            e.preventDefault(); // Mencegah menu konteks
        });

        // Mencegah kombinasi tombol Ctrl+U, F12, dan Ctrl+Shift+I
        document.addEventListener('keydown', function(e) {
            // Cek jika tombol yang ditekan adalah Ctrl+U
            if (e.ctrlKey && e.key === 'u') {
                e.preventDefault(); // Mencegah tindakan default
            }
            // Cek jika tombol yang ditekan adalah F12
            if (e.key === 'F12') {
                e.preventDefault(); // Mencegah tindakan default
            }
            // Cek jika tombol yang ditekan adalah Ctrl+Shift+I
            if (e.ctrlKey && e.shiftKey && e.key === 'I') {
                e.preventDefault(); // Mencegah tindakan default
            }
        });
    </script> -->
    <style>
        #loadingSpinner {
            display: none;
            /* Hidden by default */
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 1000;
            /* Ensure it appears above other content */
        }

        .logout-button {
            padding: 0.5em 1em;
            /* Menggunakan em untuk padding */
            background-color: #f44336;
            /* Warna latar belakang merah */
            color: white;
            /* Warna teks putih */
            border: none;
            /* Menghilangkan border */
            border-radius: 5px;
            /* Sudut membulat */
            text-decoration: none;
            /* Menghilangkan garis bawah */
            font-size: 1rem;
            /* Menggunakan rem untuk ukuran font */
            transition: background-color 0.3s;
            /* Efek transisi */
            display: inline-flex;
            /* Menggunakan flex untuk penataan */
            align-items: center;
            /* Menyelaraskan ikon dan teks secara vertikal */
        }

        .logout-button i {
            margin-right: 0.5em;
            /* Jarak antara ikon dan teks */
        }

        .logout-button:hover {
            background-color: #d32f2f;
            /* Warna latar belakang saat hover */
        }

        .logout-button i {
            margin-right: 5px;
            /* Jarak antara ikon dan teks */
        }

        #laporanHeading {
            display: flex;
            align-items: center;
            /* Pusatkan ikon dan teks secara vertikal */
            justify-content: space-between;
            /* Beri jarak antara teks dan ikon */
        }

        #laporanDropdownIcon {
            margin-left: 10px;
            /* Jarak antara teks "Laporan" dan ikon dropdown */
            transition: transform 0.3s ease;
            /* Animasi rotasi ikon */
        }

        #laporanDropdownIconrj {
            margin-left: 10px;
            /* Jarak antara teks "Laporan" dan ikon dropdown */
            transition: transform 0.3s ease;
            /* Animasi rotasi ikon */
        }

        /* Rotasi ikon saat dropdown terbuka */
        #laporanDropdown:visible~#laporanHeading #laporanDropdownIcon {
            transform: rotate(180deg);
        }

        /* Rotasi ikon saat dropdown terbuka */
        #laporanDropdownrj:visible~#laporanHeading #laporanDropdownIconrj {
            transform: rotate(180deg);
        }

        #laporanDropdown .nav-link {
            padding-top: 5px;
            /* Jarak atas lebih sempit */
            padding-bottom: 5px;
            /* Jarak bawah lebih sempit */
            margin: 0;
            /* Menghapus margin default */
        }

        #laporanDropdown .nav-link:hover {
            background-color: rgb(17, 90, 23);
            /* Warna latar belakang saat hover */
            color: rgb(255, 255, 255);
            /* Warna teks saat hover */
        }

        #laporanDropdownrj .nav-link {
            padding-top: 5px;
            /* Jarak atas lebih sempit */
            padding-bottom: 5px;
            /* Jarak bawah lebih sempit */
            margin: 0;
            /* Menghapus margin default */
        }

        #laporanDropdownrj .nav-link:hover {
            background-color: rgb(17, 90, 23);
            /* Warna latar belakang saat hover */
            color: rgb(255, 255, 255);
            /* Warna teks saat hover */
        }

        #laporanHeading {
            cursor: pointer;
            /* Mengubah kursor menjadi pointer saat diarahkan ke teks "LAPORAN" */
        }

        #rekamMedisHeading {
            display: flex;
            align-items: center;
            /* Pusatkan ikon dan teks secara vertikal */
            justify-content: space-between;
            /* Beri jarak antara teks dan ikon */

        }

        #rekamMedisDropdownIcon {
            margin-left: 10px;
            /* Jarak antara teks "Rekam Medis" dan ikon dropdown */
            transition: transform 0.3s ease;
            /* Animasi rotasi ikon */
        }

        /* Rotasi ikon saat dropdown terbuka */
        #rekamMedisDropdown:visible~#rekamMedisHeading #rekamMedisDropdownIcon {
            transform: rotate(180deg);
            padding-top: 5px;

        }

        #rekamMedisDropdown .nav-link {
            padding-top: 5px;
            /* Jarak atas lebih besar */
            padding-bottom: 5px;
            /* Jarak bawah lebih besar */
            margin: 0;
            /* Menghapus margin default */
        }

        #rekamMedisDropdown .nav-link:hover {
            background-color: rgb(17, 90, 23);
            /* Warna latar belakang saat hover */
            color: rgb(255, 255, 255);
            /* Warna teks saat hover */
        }

        #rekamMedisHeading-2 {
            display: flex;
            align-items: center;
            /* Pusatkan ikon dan teks secara vertikal */
            justify-content: space-between;
            /* Beri jarak antara teks dan ikon */

        }

        #rekamMedisDropdownIcon-2 {
            margin-left: 10px;
            /* Jarak antara teks "Rekam Medis" dan ikon dropdown */
            transition: transform 0.3s ease;
            /* Animasi rotasi ikon */
        }

        /* Rotasi ikon saat dropdown terbuka */
        #rekamMedisDropdown-2:visible~#rekamMedisHeading-2 #rekamMedisDropdownIcon-2 {
            transform: rotate(180deg);
            padding-top: 5px;

        }

        #rekamMedisDropdown-2 .nav-link {
            padding-top: 5px;
            /* Jarak atas lebih besar */
            padding-bottom: 5px;
            /* Jarak bawah lebih besar */
            margin: 0;
            /* Menghapus margin default */
        }

        #rekamMedisDropdown-2 .nav-link:hover {
            background-color: rgb(17, 90, 23);
            /* Warna latar belakang saat hover */
            color: rgb(255, 255, 255);
            /* Warna teks saat hover */
        }

        #rekamMedisHeading-3 {
            display: flex;
            align-items: center;
            /* Pusatkan ikon dan teks secara vertikal */
            justify-content: space-between;
            /* Beri jarak antara teks dan ikon */

        }

        #rekamMedisDropdownIcon-3 {
            margin-left: 10px;
            /* Jarak antara teks "Rekam Medis" dan ikon dropdown */
            transition: transform 0.3s ease;
            /* Animasi rotasi ikon */
        }

        /* Rotasi ikon saat dropdown terbuka */
        #rekamMedisDropdown-3:visible~#rekamMedisHeading-3 #rekamMedisDropdownIcon-3 {
            transform: rotate(180deg);
            padding-top: 5px;

        }

        #rekamMedisDropdown-3 .nav-link {
            padding-top: 5px;
            /* Jarak atas lebih besar */
            padding-bottom: 5px;
            /* Jarak bawah lebih besar */
            margin: 0;
            /* Menghapus margin default */
        }

        #rekamMedisDropdown-3 .nav-link:hover {
            background-color: rgb(17, 90, 23);
            /* Warna latar belakang saat hover */
            color: rgb(255, 255, 255);
            /* Warna teks saat hover */
        }


        #rekamMedisHeading-4 {
            display: flex;
            align-items: center;
            /* Pusatkan ikon dan teks secara vertikal */
            justify-content: space-between;
            /* Beri jarak antara teks dan ikon */

        }

        #rekamMedisDropdownIcon-4 {
            margin-left: 10px;
            /* Jarak antara teks "Rekam Medis" dan ikon dropdown */
            transition: transform 0.3s ease;
            /* Animasi rotasi ikon */
        }

        /* Rotasi ikon saat dropdown terbuka */
        #rekamMedisDropdown-4:visible~#rekamMedisHeading-4 #rekamMedisDropdownIcon-4 {
            transform: rotate(180deg);
            padding-top: 5px;

        }

        #rekamMedisDropdown-4 .nav-link {
            padding-top: 5px;
            /* Jarak atas lebih besar */
            padding-bottom: 5px;
            /* Jarak bawah lebih besar */
            margin: 0;
            /* Menghapus margin default */
        }

        #rekamMedisDropdown-4 .nav-link:hover {
            background-color: rgb(17, 90, 23);
            /* Warna latar belakang saat hover */
            color: rgb(255, 255, 255);
            /* Warna teks saat hover */
        }


        #rekamMedisHeading-5 {
            display: flex;
            align-items: center;
            /* Pusatkan ikon dan teks secara vertikal */
            justify-content: space-between;
            /* Beri jarak antara teks dan ikon */

        }

        #rekamMedisDropdownIcon-5 {
            margin-left: 10px;
            /* Jarak antara teks "Rekam Medis" dan ikon dropdown */
            transition: transform 0.3s ease;
            /* Animasi rotasi ikon */
        }

        /* Rotasi ikon saat dropdown terbuka */
        #rekamMedisDropdown-5:visible~#rekamMedisHeading-5 #rekamMedisDropdownIcon-5 {
            transform: rotate(180deg);
            padding-top: 5px;

        }

        #rekamMedisDropdown-5 .nav-link {
            padding-top: 5px;
            /* Jarak atas lebih besar */
            padding-bottom: 5px;
            /* Jarak bawah lebih besar */
            margin: 0;
            /* Menghapus margin default */
        }

        #rekamMedisDropdown-5 .nav-link:hover {
            background-color: rgb(17, 90, 23);
            /* Warna latar belakang saat hover */
            color: rgb(255, 255, 255);
            /* Warna teks saat hover */
        }

        #rekamMedisHeading-6 {
            display: flex;
            align-items: center;
            /* Pusatkan ikon dan teks secara vertikal */
            justify-content: space-between;
            /* Beri jarak antara teks dan ikon */

        }

        #rekamMedisDropdownIcon-6 {
            margin-left: 10px;
            /* Jarak antara teks "Rekam Medis" dan ikon dropdown */
            transition: transform 0.3s ease;
            /* Animasi rotasi ikon */
        }

        /* Rotasi ikon saat dropdown terbuka */
        #rekamMedisDropdown-6:visible~#rekamMedisHeading-6 #rekamMedisDropdownIcon-6 {
            transform: rotate(180deg);
            padding-top: 5px;

        }

        #rekamMedisDropdown-6 .nav-link {
            padding-top: 5px;
            /* Jarak atas lebih besar */
            padding-bottom: 5px;
            /* Jarak bawah lebih besar */
            margin: 0;
            /* Menghapus margin default */
        }

        #rekamMedisDropdown-6 .nav-link:hover {
            background-color: rgb(17, 90, 23);
            /* Warna latar belakang saat hover */
            color: rgb(255, 255, 255);
            /* Warna teks saat hover */
        }

        #rekamMedisHeading-7 {
            display: flex;
            align-items: center;
            /* Pusatkan ikon dan teks secara vertikal */
            justify-content: space-between;
            /* Beri jarak antara teks dan ikon */

        }

        #rekamMedisDropdownIcon-7 {
            margin-left: 10px;
            /* Jarak antara teks "Rekam Medis" dan ikon dropdown */
            transition: transform 0.3s ease;
            /* Animasi rotasi ikon */
        }

        /* Rotasi ikon saat dropdown terbuka */
        #rekamMedisDropdown-7:visible~#rekamMedisHeading-7 #rekamMedisDropdownIcon-7 {
            transform: rotate(180deg);
            padding-top: 5px;

        }

        #rekamMedisDropdown-7 .nav-link {
            padding-top: 5px;
            /* Jarak atas lebih besar */
            padding-bottom: 5px;
            /* Jarak bawah lebih besar */
            margin: 0;
            /* Menghapus margin default */
        }

        #rekamMedisDropdown-7 .nav-link:hover {
            background-color: rgb(17, 90, 23);
            /* Warna latar belakang saat hover */
            color: rgb(255, 255, 255);
            /* Warna teks saat hover */
        }

        #rekamMedisHeading-8 {
            display: flex;
            align-items: center;
            /* Pusatkan ikon dan teks secara vertikal */
            justify-content: space-between;
            /* Beri jarak antara teks dan ikon */

        }

        #rekamMedisDropdownIcon-8 {
            margin-left: 10px;
            /* Jarak antara teks "Rekam Medis" dan ikon dropdown */
            transition: transform 0.3s ease;
            /* Animasi rotasi ikon */
        }

        /* Rotasi ikon saat dropdown terbuka */
        #rekamMedisDropdown-8:visible~#rekamMedisHeading-8 #rekamMedisDropdownIcon-8 {
            transform: rotate(180deg);
            padding-top: 5px;

        }

        #rekamMedisDropdown-8 .nav-link {
            padding-top: 5px;
            /* Jarak atas lebih besar */
            padding-bottom: 5px;
            /* Jarak bawah lebih besar */
            margin: 0;
            /* Menghapus margin default */
        }

        #rekamMedisDropdown-8 .nav-link:hover {
            background-color: rgb(17, 90, 23);
            /* Warna latar belakang saat hover */
            color: rgb(255, 255, 255);
            /* Warna teks saat hover */
        }

        #rekamMedisHeading-9 {
            display: flex;
            align-items: center;
            /* Pusatkan ikon dan teks secara vertikal */
            justify-content: space-between;
            /* Beri jarak antara teks dan ikon */

        }

        #rekamMedisDropdownIcon-9 {
            margin-left: 10px;
            /* Jarak antara teks "Rekam Medis" dan ikon dropdown */
            transition: transform 0.3s ease;
            /* Animasi rotasi ikon */
        }

        /* Rotasi ikon saat dropdown terbuka */
        #rekamMedisDropdown-9:visible~#rekamMedisHeading-9 #rekamMedisDropdownIcon-9 {
            transform: rotate(180deg);
            padding-top: 5px;

        }

        #rekamMedisDropdown-9 .nav-link {
            padding-top: 5px;
            /* Jarak atas lebih besar */
            padding-bottom: 5px;
            /* Jarak bawah lebih besar */
            margin: 0;
            /* Menghapus margin default */
        }

        #rekamMedisDropdown-9 .nav-link:hover {
            background-color: rgb(17, 90, 23);
            /* Warna latar belakang saat hover */
            color: rgb(255, 255, 255);
            /* Warna teks saat hover */
        }


        #rekamMedisHeading-10 {
            display: flex;
            align-items: center;
            /* Pusatkan ikon dan teks secara vertikal */
            justify-content: space-between;
            /* Beri jarak antara teks dan ikon */

        }

        #rekamMedisDropdownIcon-10 {
            margin-left: 10px;
            /* Jarak antara teks "Rekam Medis" dan ikon dropdown */
            transition: transform 0.3s ease;
            /* Animasi rotasi ikon */
        }

        /* Rotasi ikon saat dropdown terbuka */
        #rekamMedisDropdown-10:visible~#rekamMedisHeading-10 #rekamMedisDropdownIcon-10 {
            transform: rotate(180deg);
            padding-top: 5px;

        }

        #rekamMedisDropdown-10 .nav-link {
            padding-top: 5px;
            /* Jarak atas lebih besar */
            padding-bottom: 5px;
            /* Jarak bawah lebih besar */
            margin: 0;
            /* Menghapus margin default */
        }

        #rekamMedisDropdown-10 .nav-link:hover {
            background-color: rgb(17, 90, 23);
            /* Warna latar belakang saat hover */
            color: rgb(255, 255, 255);
            /* Warna teks saat hover */
        }


        #rekamMedisHeading-11 {
            display: flex;
            align-items: center;
            /* Pusatkan ikon dan teks secara vertikal */
            justify-content: space-between;
            /* Beri jarak antara teks dan ikon */

        }

        #rekamMedisDropdownIcon-11 {
            margin-left: 10px;
            /* Jarak antara teks "Rekam Medis" dan ikon dropdown */
            transition: transform 0.3s ease;
            /* Animasi rotasi ikon */
        }

        /* Rotasi ikon saat dropdown terbuka */
        #rekamMedisDropdown-11:visible~#rekamMedisHeading-11 #rekamMedisDropdownIcon-11 {
            transform: rotate(180deg);
            padding-top: 5px;

        }

        #rekamMedisDropdown-11 .nav-link {
            padding-top: 5px;
            /* Jarak atas lebih besar */
            padding-bottom: 5px;
            /* Jarak bawah lebih besar */
            margin: 0;
            /* Menghapus margin default */
        }

        #rekamMedisDropdown-11 .nav-link:hover {
            background-color: rgb(17, 90, 23);
            /* Warna latar belakang saat hover */
            color: rgb(255, 255, 255);
            /* Warna teks saat hover */
        }


        #rekamMedisHeading-12 {
            display: flex;
            align-items: center;
            /* Pusatkan ikon dan teks secara vertikal */
            justify-content: space-between;
            /* Beri jarak antara teks dan ikon */

        }

        #rekamMedisDropdownIcon-12 {
            margin-left: 10px;
            /* Jarak antara teks "Rekam Medis" dan ikon dropdown */
            transition: transform 0.3s ease;
            /* Animasi rotasi ikon */
        }

        /* Rotasi ikon saat dropdown terbuka */
        #rekamMedisDropdown-12:visible~#rekamMedisHeading-12 #rekamMedisDropdownIcon-12 {
            transform: rotate(180deg);
            padding-top: 5px;

        }

        #rekamMedisDropdown-12 .nav-link {
            padding-top: 5px;
            /* Jarak atas lebih besar */
            padding-bottom: 5px;
            /* Jarak bawah lebih besar */
            margin: 0;
            /* Menghapus margin default */
        }

        #rekamMedisDropdown-12 .nav-link:hover {
            background-color: rgb(17, 90, 23);
            /* Warna latar belakang saat hover */
            color: rgb(255, 255, 255);
            /* Warna teks saat hover */
        }



        #rekamMedisHeading-13 {
            display: flex;
            align-items: center;
            /* Pusatkan ikon dan teks secara vertikal */
            justify-content: space-between;
            /* Beri jarak antara teks dan ikon */

        }

        #rekamMedisDropdownIcon-13 {
            margin-left: 10px;
            /* Jarak antara teks "Rekam Medis" dan ikon dropdown */
            transition: transform 0.3s ease;
            /* Animasi rotasi ikon */
        }

        /* Rotasi ikon saat dropdown terbuka */
        #rekamMedisDropdown-13:visible~#rekamMedisHeading-13 #rekamMedisDropdownIcon-13 {
            transform: rotate(180deg);
            padding-top: 5px;

        }

        #rekamMedisDropdown-13 .nav-link {
            padding-top: 5px;
            /* Jarak atas lebih besar */
            padding-bottom: 5px;
            /* Jarak bawah lebih besar */
            margin: 0;
            /* Menghapus margin default */
        }

        #rekamMedisDropdown-13 .nav-link:hover {
            background-color: rgb(17, 90, 23);
            /* Warna latar belakang saat hover */
            color: rgb(255, 255, 255);
            /* Warna teks saat hover */
        }


        #rekamMedisHeading-14 {
            display: flex;
            align-items: center;
            /* Pusatkan ikon dan teks secara vertikal */
            justify-content: space-between;
            /* Beri jarak antara teks dan ikon */

        }

        #rekamMedisDropdownIcon-14 {
            margin-left: 10px;
            /* Jarak antara teks "Rekam Medis" dan ikon dropdown */
            transition: transform 0.3s ease;
            /* Animasi rotasi ikon */
        }

        /* Rotasi ikon saat dropdown terbuka */
        #rekamMedisDropdown-14:visible~#rekamMedisHeading-14 #rekamMedisDropdownIcon-14 {
            transform: rotate(180deg);
            padding-top: 5px;

        }

        #rekamMedisDropdown-14 .nav-link {
            padding-top: 5px;
            /* Jarak atas lebih besar */
            padding-bottom: 5px;
            /* Jarak bawah lebih besar */
            margin: 0;
            /* Menghapus margin default */
        }

        #rekamMedisDropdown-14 .nav-link:hover {
            background-color: rgb(17, 90, 23);
            /* Warna latar belakang saat hover */
            color: rgb(255, 255, 255);
            /* Warna teks saat hover */
        }


        #rekamMedisHeading-14 {
            display: flex;
            align-items: center;
            /* Pusatkan ikon dan teks secara vertikal */
            justify-content: space-between;
            /* Beri jarak antara teks dan ikon */

        }

        #rekamMedisDropdownIcon-14 {
            margin-left: 10px;
            /* Jarak antara teks "Rekam Medis" dan ikon dropdown */
            transition: transform 0.3s ease;
            /* Animasi rotasi ikon */
        }

        /* Rotasi ikon saat dropdown terbuka */
        #rekamMedisDropdown-14:visible~#rekamMedisHeading-14 #rekamMedisDropdownIcon-14 {
            transform: rotate(180deg);
            padding-top: 5px;

        }

        #rekamMedisDropdown-14 .nav-link {
            padding-top: 5px;
            /* Jarak atas lebih besar */
            padding-bottom: 5px;
            /* Jarak bawah lebih besar */
            margin: 0;
            /* Menghapus margin default */
        }

        #rekamMedisDropdown-14 .nav-link:hover {
            background-color: rgb(17, 90, 23);
            /* Warna latar belakang saat hover */
            color: rgb(255, 255, 255);
            /* Warna teks saat hover */
        }




        #rekamMedisHeading-15 {
            display: flex;
            align-items: center;
            /* Pusatkan ikon dan teks secara vertikal */
            justify-content: space-between;
            /* Beri jarak antara teks dan ikon */

        }

        #rekamMedisDropdownIcon-15 {
            margin-left: 10px;
            /* Jarak antara teks "Rekam Medis" dan ikon dropdown */
            transition: transform 0.3s ease;
            /* Animasi rotasi ikon */
        }

        /* Rotasi ikon saat dropdown terbuka */
        #rekamMedisDropdown-15:visible~#rekamMedisHeading-15 #rekamMedisDropdownIcon-15 {
            transform: rotate(180deg);
            padding-top: 5px;

        }

        #rekamMedisDropdown-15 .nav-link {
            padding-top: 5px;
            /* Jarak atas lebih besar */
            padding-bottom: 5px;
            /* Jarak bawah lebih besar */
            margin: 0;
            /* Menghapus margin default */
        }

        #rekamMedisDropdown-15 .nav-link:hover {
            background-color: rgb(17, 90, 23);
            /* Warna latar belakang saat hover */
            color: rgb(255, 255, 255);
            /* Warna teks saat hover */
        }


        #rekamMedisHeading-16 {
            display: flex;
            align-items: center;
            /* Pusatkan ikon dan teks secara vertikal */
            justify-content: space-between;
            /* Beri jarak antara teks dan ikon */

        }

        #rekamMedisDropdownIcon-16 {
            margin-left: 10px;
            /* Jarak antara teks "Rekam Medis" dan ikon dropdown */
            transition: transform 0.3s ease;
            /* Animasi rotasi ikon */
        }

        /* Rotasi ikon saat dropdown terbuka */
        #rekamMedisDropdown-16:visible~#rekamMedisHeading-16 #rekamMedisDropdownIcon-16 {
            transform: rotate(180deg);
            padding-top: 5px;

        }

        #rekamMedisDropdown-16 .nav-link {
            padding-top: 5px;
            /* Jarak atas lebih besar */
            padding-bottom: 5px;
            /* Jarak bawah lebih besar */
            margin: 0;
            /* Menghapus margin default */
        }

        #rekamMedisDropdown-16 .nav-link:hover {
            background-color: rgb(17, 90, 23);
            /* Warna latar belakang saat hover */
            color: rgb(255, 255, 255);
            /* Warna teks saat hover */
        }




        #rekamMedisHeading-17 {
            display: flex;
            align-items: center;
            /* Pusatkan ikon dan teks secara vertikal */
            justify-content: space-between;
            /* Beri jarak antara teks dan ikon */

        }

        #rekamMedisDropdownIcon-17 {
            margin-left: 10px;
            /* Jarak antara teks "Rekam Medis" dan ikon dropdown */
            transition: transform 0.3s ease;
            /* Animasi rotasi ikon */
        }

        /* Rotasi ikon saat dropdown terbuka */
        #rekamMedisDropdown-17:visible~#rekamMedisHeading-17 #rekamMedisDropdownIcon-17 {
            transform: rotate(180deg);
            padding-top: 5px;

        }

        #rekamMedisDropdown-17 .nav-link {
            padding-top: 5px;
            /* Jarak atas lebih besar */
            padding-bottom: 5px;
            /* Jarak bawah lebih besar */
            margin: 0;
            /* Menghapus margin default */
        }

        #rekamMedisDropdown-17 .nav-link:hover {
            background-color: rgb(17, 90, 23);
            /* Warna latar belakang saat hover */
            color: rgb(255, 255, 255);
            /* Warna teks saat hover */
        }



        #rekamMedisHeading-18 {
            display: flex;
            align-items: center;
            /* Pusatkan ikon dan teks secara vertikal */
            justify-content: space-between;
            /* Beri jarak antara teks dan ikon */

        }

        #rekamMedisDropdownIcon-18 {
            margin-left: 10px;
            /* Jarak antara teks "Rekam Medis" dan ikon dropdown */
            transition: transform 0.3s ease;
            /* Animasi rotasi ikon */
        }

        /* Rotasi ikon saat dropdown terbuka */
        #rekamMedisDropdown-18:visible~#rekamMedisHeading-18 #rekamMedisDropdownIcon-18 {
            transform: rotate(180deg);
            padding-top: 5px;

        }

        #rekamMedisDropdown-18 .nav-link {
            padding-top: 5px;
            /* Jarak atas lebih besar */
            padding-bottom: 5px;
            /* Jarak bawah lebih besar */
            margin: 0;
            /* Menghapus margin default */
        }

        #rekamMedisDropdown-18 .nav-link:hover {
            background-color: rgb(17, 90, 23);
            /* Warna latar belakang saat hover */
            color: rgb(255, 255, 255);
            /* Warna teks saat hover */
        }



        #rekamMedisHeading-19 {
            display: flex;
            align-items: center;
            /* Pusatkan ikon dan teks secara vertikal */
            justify-content: space-between;
            /* Beri jarak antara teks dan ikon */

        }

        #rekamMedisDropdownIcon-19 {
            margin-left: 10px;
            /* Jarak antara teks "Rekam Medis" dan ikon dropdown */
            transition: transform 0.3s ease;
            /* Animasi rotasi ikon */
        }

        /* Rotasi ikon saat dropdown terbuka */
        #rekamMedisDropdown-19:visible~#rekamMedisHeading-19 #rekamMedisDropdownIcon-19 {
            transform: rotate(180deg);
            padding-top: 5px;

        }

        #rekamMedisDropdown-19 .nav-link {
            padding-top: 5px;
            /* Jarak atas lebih besar */
            padding-bottom: 5px;
            /* Jarak bawah lebih besar */
            margin: 0;
            /* Menghapus margin default */
        }

        #rekamMedisDropdown-19 .nav-link:hover {
            background-color: rgb(17, 90, 23);
            /* Warna latar belakang saat hover */
            color: rgb(255, 255, 255);
            /* Warna teks saat hover */
        }


        #rekamMedisHeading-20 {
            display: flex;
            align-items: center;
            /* Pusatkan ikon dan teks secara vertikal */
            justify-content: space-between;
            /* Beri jarak antara teks dan ikon */

        }

        #rekamMedisDropdownIcon-20 {
            margin-left: 10px;
            /* Jarak antara teks "Rekam Medis" dan ikon dropdown */
            transition: transform 0.3s ease;
            /* Animasi rotasi ikon */
        }

        /* Rotasi ikon saat dropdown terbuka */
        #rekamMedisDropdown-20:visible~#rekamMedisHeading-20 #rekamMedisDropdownIcon-20 {
            transform: rotate(180deg);
            padding-top: 5px;

        }

        #rekamMedisDropdown-20 .nav-link {
            padding-top: 5px;
            /* Jarak atas lebih besar */
            padding-bottom: 5px;
            /* Jarak bawah lebih besar */
            margin: 0;
            /* Menghapus margin default */
        }

        #rekamMedisDropdown-20 .nav-link:hover {
            background-color: rgb(17, 90, 23);
            /* Warna latar belakang saat hover */
            color: rgb(255, 255, 255);
            /* Warna teks saat hover */
        }



        #rekamMedisHeading-21 {
            display: flex;
            align-items: center;
            /* Pusatkan ikon dan teks secara vertikal */
            justify-content: space-between;
            /* Beri jarak antara teks dan ikon */

        }

        #rekamMedisDropdownIcon-21 {
            margin-left: 10px;
            /* Jarak antara teks "Rekam Medis" dan ikon dropdown */
            transition: transform 0.3s ease;
            /* Animasi rotasi ikon */
        }

        /* Rotasi ikon saat dropdown terbuka */
        #rekamMedisDropdown-21:visible~#rekamMedisHeading-21 #rekamMedisDropdownIcon-21 {
            transform: rotate(180deg);
            padding-top: 5px;

        }

        #rekamMedisDropdown-21 .nav-link {
            padding-top: 5px;
            /* Jarak atas lebih besar */
            padding-bottom: 5px;
            /* Jarak bawah lebih besar */
            margin: 0;
            /* Menghapus margin default */
        }

        #rekamMedisDropdown-21 .nav-link:hover {
            background-color: rgb(17, 90, 23);
            /* Warna latar belakang saat hover */
            color: rgb(255, 255, 255);
            /* Warna teks saat hover */
        }


        #rekamMedisHeading-22 {
            display: flex;
            align-items: center;
            /* Pusatkan ikon dan teks secara vertikal */
            justify-content: space-between;
            /* Beri jarak antara teks dan ikon */

        }

        #rekamMedisDropdownIcon-22 {
            margin-left: 10px;
            /* Jarak antara teks "Rekam Medis" dan ikon dropdown */
            transition: transform 0.3s ease;
            /* Animasi rotasi ikon */
        }

        /* Rotasi ikon saat dropdown terbuka */
        #rekamMedisDropdown-22:visible~#rekamMedisHeading-22 #rekamMedisDropdownIcon-22 {
            transform: rotate(180deg);
            padding-top: 5px;

        }

        #rekamMedisDropdown-22 .nav-link {
            padding-top: 5px;
            /* Jarak atas lebih besar */
            padding-bottom: 5px;
            /* Jarak bawah lebih besar */
            margin: 0;
            /* Menghapus margin default */
        }

        #rekamMedisDropdown-22 .nav-link:hover {
            background-color: rgb(17, 90, 23);
            /* Warna latar belakang saat hover */
            color: rgb(255, 255, 255);
            /* Warna teks saat hover */
        }


        #rekamMedisHeading-23 {
            display: flex;
            align-items: center;
            /* Pusatkan ikon dan teks secara vertikal */
            justify-content: space-between;
            /* Beri jarak antara teks dan ikon */

        }

        #rekamMedisDropdownIcon-23 {
            margin-left: 10px;
            /* Jarak antara teks "Rekam Medis" dan ikon dropdown */
            transition: transform 0.3s ease;
            /* Animasi rotasi ikon */
        }

        /* Rotasi ikon saat dropdown terbuka */
        #rekamMedisDropdown-23:visible~#rekamMedisHeading-23 #rekamMedisDropdownIcon-23 {
            transform: rotate(180deg);
            padding-top: 5px;

        }

        #rekamMedisDropdown-23 .nav-link {
            padding-top: 5px;
            /* Jarak atas lebih besar */
            padding-bottom: 5px;
            /* Jarak bawah lebih besar */
            margin: 0;
            /* Menghapus margin default */
        }

        #rekamMedisDropdown-23 .nav-link:hover {
            background-color: rgb(17, 90, 23);
            /* Warna latar belakang saat hover */
            color: rgb(255, 255, 255);
            /* Warna teks saat hover */
        }


         #rekamMedisHeading-24 {
            display: flex;
            align-items: center;
            /* Pusatkan ikon dan teks secara vertikal */
            justify-content: space-between;
            /* Beri jarak antara teks dan ikon */

        }

        #rekamMedisDropdownIcon-24 {
            margin-left: 10px;
            /* Jarak antara teks "Rekam Medis" dan ikon dropdown */
            transition: transform 0.3s ease;
            /* Animasi rotasi ikon */
        }

        /* Rotasi ikon saat dropdown terbuka */
        #rekamMedisDropdown-24:visible~#rekamMedisHeading-24 #rekamMedisDropdownIcon-24 {
            transform: rotate(180deg);
            padding-top: 5px;

        }

        #rekamMedisDropdown-24 .nav-link {
            padding-top: 5px;
            /* Jarak atas lebih besar */
            padding-bottom: 5px;
            /* Jarak bawah lebih besar */
            margin: 0;
            /* Menghapus margin default */
        }

        #rekamMedisDropdown-24 .nav-link:hover {
            background-color: rgb(17, 90, 23);
            /* Warna latar belakang saat hover */
            color: rgb(255, 255, 255);
            /* Warna teks saat hover */
        }



        .sb-sidenav::-webkit-scrollbar {
            width: 10px;
            background-color: #f5f5f5;
        }

        .sb-sidenav::-webkit-scrollbar-thumb {
            background-color: #ccc;
            border-radius: 10px;
        }

        .sb-sidenav::-webkit-scrollbar-thumb:hover {
            background-color: #aaa;
        }

        #menu-ikbs-heading {
            display: flex;
            align-items: center;
            /* Pusatkan ikon dan teks secara vertikal */
            justify-content: space-between;
            /* Beri jarak antara teks dan ikon */
        }

        #menu-ikbs-icon {
            margin-left: 10px;
            /* Jarak antara teks "Menu IKBS" dan ikon dropdown */
            transition: transform 0.3s ease;
            /* Animasi rotasi ikon */
        }

        /* Rotasi ikon saat dropdown terbuka */
        #menu-ikbs-dropdown:visible~#menu-ikbs-heading #menu-ikbs-icon {
            transform: rotate(180deg);
        }

        #menu-ikbs-dropdown .nav-link {
            padding-top: 5px;
            /* Jarak atas lebih sempit */
            padding-bottom: 5px;
            /* Jarak bawah lebih sempit */
            margin: 0;
            /* Menghapus margin default */
        }

        #menu-ikbs-dropdown .nav-link:hover {
            background-color: rgb(17, 90, 23);
            /* Warna latar belakang saat hover */
            color: rgb(255, 255, 255);
            /* Warna teks saat hover */
        }

        #menu-rawat-jalan-heading {
            display: flex;
            align-items: center;
            /* Pusatkan ikon dan teks secara vertikal */
            justify-content: space-between;
            /* Beri jarak antara teks dan ikon */
        }

        #menu-rawat-jalan-icon {
            margin-left: 10px;
            /* Jarak antara teks "Menu Rawat Jalan" dan ikon dropdown */
            transition: transform 0.3s ease;
            /* Animasi rotasi ikon */
        }

        /* Rotasi ikon saat dropdown terbuka */
        #menu-rawat-jalan-dropdown:visible~#menu-rawat-jalan-heading #menu-rawat-jalan-icon {
            transform: rotate(180deg);
        }

        #menu-rawat-jalan-dropdown .nav-link {
            padding-top: 5px;
            /* Jarak atas lebih sempit */
            padding-bottom: 5px;
            /* Jarak bawah lebih sempit */
            margin: 0;
            /* Menghapus margin default */
        }

        #menu-rawat-jalan-dropdown .nav-link:hover {
            background-color: rgb(17, 90, 23);
            /* Warna latar belakang saat hover */
            color: rgb(255, 255, 255);
            /* Warna teks saat hover *
        }


        #menu-rawat-jalan-heading-2 {
            display: flex;
            align-items: center;
            /* Pusatkan ikon dan teks secara vertikal */
            justify-content: space-between;
            /* Beri jarak antara teks dan ikon */
        }

        #menu-rawat-jalan-icon-2 {
            margin-left: 10px;
            /* Jarak antara teks "Menu Rawat Jalan" dan ikon dropdown */
            transition: transform 0.3s ease;
            /* Animasi rotasi ikon */
        }

        /* Rotasi ikon saat dropdown terbuka */
        #menu-rawat-jalan-dropdown-2:visible~#menu-rawat-jalan-heading-2 #menu-rawat-jalan-icon-2 {
            transform: rotate(180deg);
        }

        #menu-rawat-jalan-dropdown-2 .nav-link {
            padding-top: 5px;
            /* Jarak atas lebih sempit */
            padding-bottom: 5px;
            /* Jarak bawah lebih sempit */
            margin: 0;
            /* Menghapus margin default */
        }

        #menu-rawat-jalan-dropdown-2 .nav-link:hover {
            background-color: rgb(17, 90, 23);
            /* Warna latar belakang saat hover */
            color: rgb(255, 255, 255);
            /* Warna teks saat hover *
      
        }


        #menu-rawat-inap-heading {
            display: flex;
            align-items: center;
            /* Pusatkan ikon dan teks secara vertikal */
            justify-content: space-between;
            /* Beri jarak antara teks dan ikon */
        }

        #menu-rawat-inap-icon {
            margin-left: 10px;
            /* Jarak antara teks "Menu Rawat Inap" dan ikon dropdown */
            transition: transform 0.3s ease;
            /* Animasi rotasi ikon */
        }

        /* Rotasi ikon saat dropdown terbuka */
        #menu-rawat-inap-dropdown:visible~#menu-rawat-inap-heading #menu-rawat-inap-icon {
            transform: rotate(180deg);
        }

        #menu-rawat-inap-dropdown .nav-link {
            padding-top: 5px;
            /* Jarak atas lebih sempit */
            padding-bottom: 5px;
            /* Jarak bawah lebih sempit */
            margin: 0;
            /* Menghapus margin default */
        }

        #menu-rawat-inap-dropdown .nav-link:hover {
            background-color: rgb(17, 90, 23);
            /* Warna latar belakang saat hover */
            color: rgb(255, 255, 255);
            /* Warna teks saat hover *
        }

        #menu-rawat-inap-heading-2 {
            display: flex;
            align-items: center;
            /* Pusatkan ikon dan teks secara vertikal */
            justify-content: space-between;
            /* Beri jarak antara teks dan ikon */
        }

        #menu-rawat-inap-icon-2 {
            margin-left: 10px;
            /* Jarak antara teks "Menu Rawat Inap" dan ikon dropdown */
            transition: transform 0.3s ease;
            /* Animasi rotasi ikon */
        }

        /* Rotasi ikon saat dropdown terbuka */
        #menu-rawat-inap-dropdown-2:visible~#menu-rawat-inap-heading-2 #menu-rawat-inap-icon-2 {
            transform: rotate(180deg);
        }

        #menu-rawat-inap-dropdown-2 .nav-link {
            padding-top: 5px;
            /* Jarak atas lebih sempit */
            padding-bottom: 5px;
            /* Jarak bawah lebih sempit */
            margin: 0;
            /* Menghapus margin default */
        }

        #menu-rawat-inap-dropdown-2 .nav-link:hover {
            background-color: rgb(17, 90, 23);
            /* Warna latar belakang saat hover */
            color: rgb(255, 255, 255);
            /* Warna teks saat hover */
        }

        #menu-igd-heading {
            display: flex;
            align-items: center;
            /* Pusatkan ikon dan teks secara vertikal */
            justify-content: space-between;
            /* Beri jarak antara teks dan ikon */
        }

        #menu-igd-icon {
            margin-left: 10px;
            /* Jarak antara teks "Menu IGD" dan ikon dropdown */
            transition: transform 0.3s ease;
            /* Animasi rotasi ikon */
        }

        /* Rotasi ikon saat dropdown terbuka */
        #menu-igd-dropdown:visible~#menu-igd-heading #menu-igd-icon {
            transform: rotate(180deg);
        }

        #menu-igd-dropdown .nav-link {
            padding-top: 5px;
            /* Jarak atas lebih sempit */
            padding-bottom: 5px;
            /* Jarak bawah lebih sempit */
            margin: 0;
            /* Menghapus margin default */
        }

        #menu-igd-dropdown .nav-link:hover {
            background-color: rgb(17, 90, 23);
            /* Warna latar belakang saat hover */
            color: rgb(255, 255, 255);
            /* Warna teks saat hover */
        }
    </style>
</head>

<body class="sb-nav-fixed">

    <nav class="sb-topnav navbar navbar-expand navbar-dark bg-success">
        <a class="navbar-brand ps-3" href="">SINARAN</a>
        <button class="btn btn-link btn-sm order-1 order-lg-0 me-4 me-lg-0" id="sidebarToggle" href="#!"><i class="fas fa-bars"></i></button>
        <ul class="navbar-nav ms-auto ms-md-0 me-3 me-lg-4">
            <li class="nav-item">
                <a class="nav-link logout-button" href="<?php echo base_url() ?>login/keluar">
                    <i class="fas fa-sign-out-alt"></i> Logout
                </a>
            </li>
        </ul>
    </nav>
    <div id="layoutSidenav">
        <div id="layoutSidenav_nav">
            <nav class="sb-sidenav accordion sb-sidenav-green" id="sidenavAccordion">
                <a id="navbarProfile" href="" class="user-profile i">
                    <i class="fas fa-user fa-fw"></i> <?= $this->session->userdata('nm_user') ?>
                </a>
                <div class="sb-sidenav-menu">
                    <div class="nav">

                        <!-- KEUANGAN LEVEL DIREKTUR KD AKSES 1001 : AKT -->

                        <?php if ($akses == '1006' && $app == 'AKT' || $akses == '1007' && $app == 'AKT') { ?>
                            <a class="nav-link" href="<?php echo base_url('dashboard/keuanganlayanan') ?>">
                                <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                Dashboard Layanan
                            </a>
                            <div id="rekamMedisHeading-12" class="menu-heading" style="cursor: pointer; margin: 10px 0 2px 15px">
                                <p style="font-size: medium; color:white">
                                    <i style="margin-right: 10px;" class="fas fa-th-list"></i>
                                    Menu Billing
                                    <i style="margin-left: 10px;" class="fas fa-chevron-down" id="rekamMedisDropdownIcon-12"></i>
                                </p>
                            </div>
                            <div id="rekamMedisDropdown-12" style="display: none;">
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/dokumen') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Dokumen
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/billing') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Billing Harian
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/billingpenjamin') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Billing Harian & Penjamin
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/billingicu') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Billing Harian ICU/HCU
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/billingkeuanganall') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Billing Keuangan SIRUS<br>(BPJS)<br>
                                </a>
                                <!-- <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/billingkeuangannonbpjs') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Billing Keuangan SIRUS <br>(NON BPJS)<br>
                                </a> -->
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/billingkeuangannonbpjs_umum') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-check-square"></i></div>
                                    Billing Keuangan SIRUS <br>(NON-BPJS - UMUM )<br>
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/billingkeuangannonbpjs_asuransi') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-check-square"></i></div>
                                    Billing Keuangan SIRUS <br>(NON-BPJS - ASURANSI )<br>
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/rekapkeuanganbpjs') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-check-square"></i></div>
                                    Rekap Keuangan <br>(SIRUS BPJS)<br>
                                </a>
                                <!-- <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/rekapkeuangannonbpjs') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Rekap Keuangan <br>(SIRUS NON BPJS)<br>
                                </a> -->
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/rekapkeuangannonbpjs_umum') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-check-square"></i></div>
                                    Rekap Keuangan <br>(SIRUS NON BPJS-UMUM)<br>
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/rekapkeuangannonbpjs_asuransi') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-check-square"></i></div>
                                    Rekap Keuangan <br>(SIRUS NON BPJS-ASURANSI)<br>
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/rekapkeutahunan') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-check-square"></i></div>
                                    Rekap Asuransi Tahunan
                                </a>
                                 <!-- <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/billingkasirall') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Data Kasir All
                                </a>
                                </a>
                                 <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/kasirperbankan') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Data Kasir Perbank
                                </a> -->
                                 <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/kasirbelumtagih') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Data Kasir <br>Belum Tertagih<br>
                                </a>

                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/rekapdatasirus') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Billing Rekap Keuangan <br>(SIRUS Penjamin)<br>
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/radiologi') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Penjualan Radiologi
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/laboratorium') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Penjualan Laboratorium
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/farmasi') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Penjualan Farmasi
                                </a>
                            </div>

                            <!--MENU KASIR -->
                            <!-- <div id="rekamMedisHeading-20" class="menu-heading" style="cursor: pointer; margin: 10px 0 2px 15px">
                                <p style="font-size: medium; color:white">
                                    <i style="margin-right: 10px;" class="fas fa-th-list"></i>
                                    Kasir
                                    <i style="margin-left: 10px;" class="fas fa-chevron-down" id="rekamMedisDropdownIcon-20"></i>
                                </p>
                            </div>
                                <div id="rekamMedisDropdown-20" style="display: none;">
                                  <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/billingkasirall') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Data Kasir All
                                  </a>
                                  <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/kasirperbankan') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Data Kasir Perbank
                                  </a>
                            </div> -->
                            <!--MENU KASIR -->


                            <!-- MENU IKBS -->
                            <div id="rekamMedisHeading-13" class="menu-heading" style="cursor: pointer; margin: 5px 0 2px 15px">
                                <p style="font-size: medium; color:white">
                                    <i style="margin-right: 10px;" class="fas fa-th-list"></i>
                                    Menu IKBS
                                    <i style="margin-left: 10px;" class="fas fa-chevron-down" id="rekamMedisDropdownIcon-13"></i>
                                </p>
                            </div>
                            <div id="rekamMedisDropdown-13" style="display: none;">
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/menuikbs') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Data Pasien IKBS
                                </a>
                            </div>
                            <!-- MENU IKBS -->

                            <!-- MENU RAWATJALAN -->
                            <div id="rekamMedisHeading-14" class="menu-heading" style="cursor: pointer; margin: 5px 0 2px 15px">
                                <p style="font-size: medium; color:white">
                                    <i style="margin-right: 10px;" class="fas fa-th-list"></i>
                                    Menu Rawat Jalan
                                    <i style="margin-left: 10px;" class="fas fa-chevron-down" id="rekamMedisDropdownIcon-14"></i>
                                </p>
                            </div>
                            <div id="rekamMedisDropdown-14" style="display: none;">
                                <a class="nav-link dropdown-item" href="<?php echo base_url('menurawatjalan/pasienpoliall') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Pasien Poli Seluruh
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('menurawatjalan/polibatalkeuangan') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Pasien Poli BATAL
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('menurawatjalan/polidilayanikeuangan') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Pasien Poli DILAYANI
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('menurawatjalan/polihomecarekeuangan') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Pasien HOME CARE
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/rajalperpoli') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Rawat jalan Per Poli
                                </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/rajalperdokter') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Rawat jalan Per Dokter
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/penjaminpolikeuangan') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Data Penjamin Poli
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/rawatjalanpoli') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Data SMF & Poli
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/rawatjalantransfer') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Data Pasien Transfer RJ-RI
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/polikonsul') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Data Poli Konsul <br>DPJP<br>
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/antreanpoli') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Antrean Poliklinik
                                </a>

                            </div>
                            <!-- MENU RAWATJALAN -->

                            <!-- MENU RAWATINAP -->
                            <div id="rekamMedisHeading-15" class="menu-heading" style="cursor: pointer; margin: 5px 0 2px 15px">
                                <p style="font-size: medium; color:white">
                                    <i style="margin-right: 10px;" class="fas fa-th-list"></i>
                                    Menu Rawat Inap
                                    <i style="margin-left: 10px;" class="fas fa-chevron-down" id="rekamMedisDropdownIcon-15"></i>
                                </p>
                            </div>
                            <div id="rekamMedisDropdown-15" style="display: none;">
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/pasieninaptotal') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Pasien Inap Total
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/penjamindpjp') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Pasien Inap DPJP
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/penjamininap') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Data Penjamin Inap
                                </a>
                            </div>
                            <!-- MENU RAWATINAP -->


                            <!-- MENU IGD -->
                            <div id="rekamMedisHeading-16" class="menu-heading" style="cursor: pointer; margin: 5px 0 2px 15px">
                                <p style="font-size: medium; color:white">
                                    <i style="margin-right: 10px;" class="fas fa-th-list"></i>
                                    Menu IGD
                                    <i style="margin-left: 10px;" class="fas fa-chevron-down" id="rekamMedisDropdownIcon-16"></i>
                                </p>
                            </div>
                            <div id="rekamMedisDropdown-16" style="display: none;">
                                <a class="nav-link dropdown-item" href="<?php echo base_url('menuigdkeuangan/tampiligdrekap') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Data IGD Rekap
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('menuigdkeuangan/pasienigddilayani') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Data IGD Dilayani
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('menuigdkeuangan/pasienigdbatal') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Data IGD Batal
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('menuigdkeuangan/pasienigdtotal') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Data IGD Total
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/penjaminigdkeuangan') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Data Penjamin IGD
                                </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/respontimeigd') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data Respon Time IGD
                                    </a>
                            </div>
                            <!-- MENU IGD -->

                            <!-- MENU REKAM MEDIS -->
                            <div id="rekamMedisHeading-18" class="menu-heading" style="cursor: pointer; margin:5px 0 2px 15px">
                                <p style="font-size: medium; color:white">
                                    <i style="margin-right: 10px;" class="fas fa-th-list"></i>
                                    Menu Rekam Medis
                                    <i style="margin-left: 10px;" class="fas fa-chevron-down" id="rekamMedisDropdownIcon-18"></i>
                                </p>
                            </div>
                            <div id="rekamMedisDropdown-18" style="display: none;">
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/icdrajal') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Coding ICD <br>Rawat Jalan<br>
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/hunianinap') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Data Hunian <br>Rawat Inap<br>
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/rujuk') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Data Rujukan
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/penjaminpoli') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Data Penjamin Poli
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/penjaminigd') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Data Penjamin IGD
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/penjamininap') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Data Penjamin Inap
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/IPRSborlostoi') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Indikator Pelayanan <br> Rumah Sakit<br>
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/rekamedis') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Waktu Tunggu Poli
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/demografiasalkeinap') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Data Pasien POLI ke Inap
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/pasienigdkeinap') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Data Pasien IGD ke Inap
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/pasienmeniggal') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Data Pasien Meninggal
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/demografiusia') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Data Demografi
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/datademousiaperpoli') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Data Demografi Per Poli
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/demorekapall') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Data Rekap Demografi 
                                </a>
                            </div>

                            <!-- END OF REKAM MEDIS

                             MENU FARMASI  -->

                            <div id="rekamMedisHeading-17" class="menu-heading" style="cursor: pointer; margin: 5px 0 2px 15px">
                                <p style="font-size: medium; color:white">
                                    <i style="margin-right: 10px;" class="fas fa-th-list"></i> <!-- Icon di sebelah kiri -->
                                    Menu Farmasi
                                    <i style="margin-left: 10px;" class="fas fa-chevron-down" id="rekamMedisDropdownIcon-17"></i> <!-- Icon dropdown di sebelah kanan -->
                                </p>
                            </div>
                            <div id="rekamMedisDropdown-17" style="display: none;">
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/rujuk') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Data Rujukan
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/farmasiwaktuserah') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Waktu Serah
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/farmasi') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Farmasi Penjualan
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/farmasipembelian') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Farmasi Pembelian
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/POfarmasi') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Data PO Farmasi
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/datastockfarmasi') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Data Stok Farmasi
                                </a>
                                <!-- <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/dataobatnarkotika') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Data Obat Narkotik
                                </a> -->
                                
                            </div>

                            <!-- Surveilan  -->
                            <div id="rekamMedisHeading-24" style="cursor: pointer; margin:10px 0 2px 15px">
                                <p style="font-size: medium; color:white">
                                    <i style="margin-right: 10px;" class="fas fa-th-list"></i>
                                    Surveilan
                                    <i style="margin-left: 10px;" class="fas fa-chevron-down" id="rekamMedisDropdownIcon-24"></i>
                                </p>
                            </div>
                            <div id="rekamMedisDropdown-24" style="display: none;">
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/surveilan') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-check-circle"></i></div>
                                    Data PPI Infus
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/kasirwatktutunggu') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-check-circle"></i></div>
                                    Rerata Waktu Layani <br>Pulang - Kasir<br> 
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/IGDwaktulayani') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-check-circle"></i></div>
                                    Rerata Waktu Layani <br>IGD<br>
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/waktutunggupoli') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-check-circle"></i></div>
                                    Rerata Waktu Tunggu <br>Poli<br>
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/waktudilayanidokter') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-check-circle"></i></div>
                                    Rerata Waktu Tunggu <br>Dilayani Dokter<br>
                                </a>
                            </div>
                            <!-- Surveilan -->

                            <!-- END OF MENU FARMASI  -->

                            
                            <!-- MCU  -->
                            <div id="rekamMedisHeading-5" style="cursor: pointer; margin: 5px 0 2px 15px">
                                <p style="font-size: medium; color:white">
                                    <i style="margin-right: 10px;" class="fas fa-list-alt"></i>
                                    MCU
                                    <i style="margin-left: 10px;" class="fas fa-chevron-down" id="rekamMedisDropdownIcon-5"></i>
                                </p>
                            </div>
                            <div id="rekamMedisDropdown-5" style="display: none;">
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/mcu') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-check-circle"></i></div>
                                    Data Hasil MCU
                                </a>
                            </div>
                            <!-- MCU -->

                            <!-- VAKSIN  -->
                                <div id="rekamMedisHeading-20" style="cursor: pointer; margin: 5px 0 2px 15px">
                                    <p style="font-size: medium; color:white">
                                        <i style="margin-right: 10px;" class="fas fa-list-alt"></i>
                                        Klinik Vaksin
                                        <i style="margin-left: 10px;" class="fas fa-chevron-down" id="rekamMedisDropdownIcon-20"></i>
                                    </p>
                                </div>
                                <div id="rekamMedisDropdown-20" style="display: none;">
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/pesertasehat') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-circle"></i></div>
                                        Data Peserta Vaksin
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/pesertasehattindakan') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-circle"></i></div>
                                        Data Peserta Tindakan
                                    </a>
                                </div>
                            <!-- VAKSIN -->



                            <!-- END OFF KEUANGAN -->


                            <!-- REKAM MEDIS/ KD AKSES 112 : DAFTAR -->
                        <?php } else if ($akses == '112' && $app == 'DAFTAR') { ?>
                            <div id="rekamMedisHeading" style="cursor: pointer; margin: 20px 0 2px 15px">
                                <p style="font-size: medium; color:white">
                                    <i style="margin-right: 10px;" class="fas fa-folder-open"></i> <!-- Icon di sebelah kiri -->
                                    Rekam Medis
                                    <i style="margin-left: 10px;" class="fas fa-chevron-down" id="rekamMedisDropdownIcon"></i> <!-- Icon dropdown di sebelah kanan -->
                                </p>
                            </div>
                            <div id="rekamMedisDropdown" style="display: none;">
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/dashboard') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    DASHBOARD LAYANAN
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/dokumen') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Pustaka Dokumen
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/icdrajal') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Coding ICD <br>Rawat Jalan<br>
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/hunianinap') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Data Hunian <br>Rawat Inap<br>
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/rujuk') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Data Rujukan
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/penjaminpoli') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Data Penjamin Poli
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/penjaminigd') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Data Penjamin IGD
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/penjamininap') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Data Penjamin Inap
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/IPRSborlostoi') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Indikator Pelayanan <br> Rumah Sakit<br>
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/rekamedis') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Waktu Tunggu Poli
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/demografiasalkeinap') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Data Pasien POLI ke Inap
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/pasienigdkeinap') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Data Pasien IGD ke Inap
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/pasienmeniggal') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Data Pasien Meninggal
                                </a>
                            </div>

                            <!-- DEMOGRAFI  -->
                            <div id="rekamMedisHeading-2" style="cursor: pointer; margin:10px 0 2px 15px">
                                <p style="font-size: medium; color:white">
                                    <i style="margin-right: 10px;" class="fas fa-th-list"></i>
                                    Demografi
                                    <i style="margin-left: 10px;" class="fas fa-chevron-down" id="rekamMedisDropdownIcon-2"></i>
                                </p>
                            </div>
                            <div id="rekamMedisDropdown-2" style="display: none;">
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/demografiusia') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Data Demografi
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/datademousiaperpoli') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Data Demografi Per Poli
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/demorekapall') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Data Rekap Demografi 
                                </a>
    
                                <!-- <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/demografiasalkeinap') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Asal ke Inap
                                </a> -->
                            </div>

                            <div id="rekamMedisHeading-3" style="cursor: pointer; margin:10px 0 2px 15px">
                                <p style="font-size: medium; color:white">
                                    <i style="margin-right: 10px;" class="fas fa-th-list"></i>
                                    Menu Lainya
                                    <i style="margin-left: 10px;" class="fas fa-chevron-down" id="rekamMedisDropdownIcon-3"></i>
                                </p>
                            </div>
                            <div id="rekamMedisDropdown-3" style="display: none;">
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/batalSEP') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Batal SEP
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/updateSEP') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Update SEP
                                </a>

                                <!-- DEMOGRAFI --->

                                <!-- FARMASI/ KD AKSES 9999 : FARMASI -->
                            <?php } else if ($akses == '9999' || $akses == '999' && $app == 'FARMASI' || $akses == '112' && $app == 'DAFTAR') { ?>
                                <div class="sb-sidenav-menu-heading" id="rekamMedisHeading" style="cursor: pointer;">
                                    <p style="font-size: medium; color:white">
                                        <i style="margin-right: 10px;" class="fas fa-folder-open"></i> <!-- Icon di sebelah kiri -->
                                        Menu Farmasi
                                        <i style="margin-left: 10px;" class="fas fa-chevron-down" id="rekamMedisDropdownIcon"></i> <!-- Icon dropdown di sebelah kanan -->
                                    </p>
                                </div>
                                <div id="rekamMedisDropdown" style="display: none;">
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/dashboard') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        DASHBOARD LAYANAN
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/rujuk') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data Rujukan
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/dokumen') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Pustaka Dokumen
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/farmasiwaktuserah') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Waktu Serah
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/farmasi') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Farmasi Penjualan
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/farmasipembelian') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Farmasi Pembelian
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/POfarmasi') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data PO Farmasi
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/datastockfarmasi') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data Stok Farmasi
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/pasienprb') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Pasien PRB
                                    </a>
                                    <!-- <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/dataobatnarkotika') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data Obat Narkotik
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/dataobatpsiko') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data Obat Psikotropik
                                    </a> -->
                                </div>


                                <!-- RAWAT JALAN /KD AKSES : DIR RMJ-->
                            <?php } else if ($akses == 'DIR') { ?>
                                <div id="menu-rawat-jalan-heading-2" style="cursor: pointer; margin:10px 0 2px 15px">
                                    <p style="font-size: medium; color:white">
                                        <i style="margin-right: 10px;" class="fas fa-th-list"></i>
                                        Rawat Jalan
                                        <i style="margin-left: 10px;" class="fas fa-chevron-down" id="menu-rawat-jalan-icon-2"></i>
                                    </p>
                                </div>
                                <div id="menu-rawat-jalan-dropdown-2" style="display: none;">
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/dashboard') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Dashboard Layanan
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/dokumen') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Pustaka Dokumen
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/rawatjalanpoli') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data SMF & Poli
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/homecarebilling') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data Home Care
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/rajalperpoli') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Rawat jalan Per Poli
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/rajalperdokter') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Rawat jalan Per Dokter
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/rawatjalantotal') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data Rawat Jalan Total
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/rawatjalanbatal') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data Rawat Jalan Batal
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/rawatjalandilayani') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data Rawat Jalan Dilayani
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/rawatjalantransfer') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data Pasien Transfer RJ-RI
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/polikonsul') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data Poli Konsul <br>DPJP<br>
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/penjaminpoli') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Penjamin Poliklinik
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/antreanpoli') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Antrean Poliklinik
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/jadwalpoli') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Jadwal Poliklinik
                                    </a>
                                </div>

                                <!-- RAWAT INAP  /KD AKSES : DIR RMI-->
                            <?php } else if ($akses == 'RMI' || $akses == 'RAD') { ?>
                                <div id="menu-rawat-inap-heading-2" style="cursor: pointer; margin:10px 0 2px 15px">
                                    <p style="font-size: medium; color:white">
                                        <i style="margin-right: 10px;" class="fas fa-th-list"></i>
                                        Rawat Inap
                                        <i style="margin-left: 10px;" class="fas fa-chevron-down" id="menu-rawat-inap-icon-2"></i>
                                    </p>
                                </div>
                                <div id="menu-rawat-inap-dropdown-2" style="display: none;">
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/dashboard') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Dashboard Layanan
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/dokumen') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Pustaka Dokumen
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/rawatinap') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data Pasien Rawat Inap
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/penjamininap') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data Penjamin Inap
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/pasieninaptotal') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data Total Pasien Inap
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/dataranapperdokter') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data Total Pasien Inap <br>Per Dokter <br>
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/penjamindpjp') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data Pasien Inap DPJP
                                    </a>
                                </div>

                               <!-- Surveilan  -->
                                <div id="rekamMedisHeading-24" style="cursor: pointer; margin:10px 0 2px 15px">
                                    <p style="font-size: medium; color:white">
                                        <i style="margin-right: 10px;" class="fas fa-th-list"></i>
                                        Surveilan
                                        <i style="margin-left: 10px;" class="fas fa-chevron-down" id="rekamMedisDropdownIcon-24"></i>
                                    </p>
                                </div>
                                <div id="rekamMedisDropdown-24" style="display: none;">
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/surveilan') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-circle"></i></div>
                                        Data PPI Infus
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/kasirwatktutunggu') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-circle"></i></div>
                                        Rerata Waktu Layani <br>Pulang - Kasir<br> 
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/IGDwaktulayani') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-circle"></i></div>
                                        Rerata Waktu Layani <br>IGD<br>
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/waktutunggupoli') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-circle"></i></div>
                                        Rerata Waktu Tunggu <br>Poli<br>
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/waktudilayanidokter') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-circle"></i></div>
                                        Rerata Waktu Tunggu <br>Dilayani Dokter<br>
                                    </a>
                                </div>
                                <!-- Surveilan -->


                                <!-- IGD  /KD AKSES : IGD-->
                            <?php } else if ($akses == 'IGD' && $app == 'IGD') { ?>
                                <div id="rekamMedisHeading-6" style="cursor: pointer; margin:10px 0 2px 15px">
                                    <p style="font-size: medium; color:white">
                                        <i style="margin-right: 10px;" class="fas fa-th-list"></i>
                                        Instalasi Gawat Darurat (IGD)
                                        <i style="margin-left: 10px;" class="fas fa-chevron-down" id="rekamMedisDropdownIcon-6"></i>
                                    </p>
                                </div>
                                <div id="rekamMedisDropdown-6" style="display: none;">
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/dashboard') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Dashboard Layanan
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/dokumen') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Pustaka Dokumen
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/igd') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Dashboard Pasien IGD
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/pasienigd') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data Pasien IGD Total
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/pasienigdbatal') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data Pasien IGD Batal
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/pasienigddilayani') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data Pasien IGD Dilayani
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/pasienigdkeinap') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data Pasien IGD ke Inap
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/respontimeigd') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data Respon Time IGD
                                    </a>

                                </div>
                                <!-- Surveilan  -->
                                <div id="rekamMedisHeading-24" style="cursor: pointer; margin:10px 0 2px 15px">
                                    <p style="font-size: medium; color:white">
                                        <i style="margin-right: 10px;" class="fas fa-th-list"></i>
                                        Surveilan
                                        <i style="margin-left: 10px;" class="fas fa-chevron-down" id="rekamMedisDropdownIcon-24"></i>
                                    </p>
                                </div>
                                <div id="rekamMedisDropdown-24" style="display: none;">
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/surveilan') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-circle"></i></div>
                                        Data PPI Infus
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/kasirwatktutunggu') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-circle"></i></div>
                                        Rerata Waktu Layani <br>Pulang - Kasir<br> 
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/IGDwaktulayani') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-circle"></i></div>
                                        Rerata Waktu Layani <br>IGD<br>
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/waktutunggupoli') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-circle"></i></div>
                                        Rerata Waktu Tunggu <br>Poli<br>
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/waktudilayanidokter') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-circle"></i></div>
                                        Rerata Waktu Tunggu <br>Dilayani Dokter<br>
                                    </a>

                                </div>
                                <!-- Surveilan -->

                                <!-- IBS -->
                            <?php } else if ($akses == 'RMI' && $app == 'RMI') { ?>
                                <div id="rekamMedisDropdown-7" style="cursor: pointer; margin:10px 0 2px 15px">
                                    <p style="font-size: medium; color:white">
                                        <i style="margin-right: 10px;" class="fas fa-th-list"></i>
                                        Instalasi Bedah Sentral (IBS)
                                        <i style="margin-left: 10px;" class="fas fa-chevron-down" id="rekamMedisDropdownIcon-7"></i>
                                    </p>
                                </div>
                                <div id="rekamMedisDropdown-7" style="display: none;">
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/dashboard') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Dashboard Layanan
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/dokumen') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Pustaka Dokumen
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dataikbs/ikbsjadwaloperasi') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data Jadwal Operasi
                                    </a>
                                </div>
                                <!-- IBS -->


                                <!-- LABORATORIUM -->
                            <?php } else if ($akses == '101' && $app == 'LAB') { ?>
                                <div id="rekamMedisHeading-4" style="cursor: pointer; margin:10px 0 2px 15px">
                                    <p style="font-size: medium; color:white">
                                        <i style="margin-right: 10px;" class="fas fa-th-list"></i>
                                        Laboratorium
                                        <i style="margin-left: 10px;" class="fas fa-chevron-down" id="rekamMedisDropdownIcon-4"></i>
                                    </p>
                                </div>
                                <div id="rekamMedisDropdown-4" style="display: none;">
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/dashboard') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Dashboard Layanan
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/dokumen') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Pustaka Dokumen
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/laboratorium2') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Penjualan Laboratorium
                                    </a>
                                </div>
                                <!-- LABORATORIUM -->


                                <!-- RADIOLOGI -->

                            <?php } else if ($akses == '101' && $app == 'RAD') { ?>
                                <div id="rekamMedisHeading-5" style="cursor: pointer; margin:10px 0 2px 15px">
                                    <p style="font-size: medium; color:white">
                                        <i style="margin-right: 10px;" class="fas fa-th-list"></i>
                                        Radiologi
                                        <i style="margin-left: 10px;" class="fas fa-chevron-down" id="rekamMedisDropdownIcon-5"></i>
                                    </p>
                                </div>
                                <div id="rekamMedisDropdown-5" style="display: none;">
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/dashboard') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Dashboard Layanan
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url( 'dashboard/dokumen') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Pustaka Dokumen
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/radiologi') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Penjualan Radiologi
                                    </a>
                                </div>
                                <!-- RADIOLOGI -->




                                <!-- ============================================================================================================ -->

                                <!-- MENU PT  -->

                            <?php } else if ($akses == '1010' && $app == 'AKT') { ?>
                                <a class="nav-link" href="<?php echo base_url('dashboard/keuanganlayanan') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-desktop"></i></div>
                                    Dashboard SINARAN
                                </a>
                                <a class="nav-link" href="http://103.255.241.149:33/sinaran/display" target="_blank ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-pie-chart"></i></div>
                                    Display Kuota Poli
                                </a>
                                <a class="nav-link" href="http://103.255.241.149:33/sinaran/datapasienall" target="_blank ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-wheelchair"></i></div>
                                    Dashboard Layanan Pasien
                                </a>
                                <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/dokumen') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Pustaka Dokumen
                                </a>

                                <!-- MENU KEUANGAN -->
                                <div id="laporanHeading" style="cursor: pointer; margin: 10px 0 2px 15px">
                                    <p style="font-size: medium; color:white">
                                        <i style="margin-right: 10px;" class="fas fa-th-list"></i>
                                        Keuangan
                                        <i style="margin-left: 10px;" class="fas fa-chevron-down" id="laporanDropdownIcon"></i>
                                    </p>
                                </div>
                                <div id="laporanDropdown" style="display: none;">
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/billing') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-square"></i></div>
                                        Billing Harian
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/billingpenjamin') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-square"></i></div>
                                        Billing Harian & Penjamin
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/billingicu') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-square"></i></div>
                                        Billing Harian ICU/HCU
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/billingkeuanganall') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-square"></i></div>
                                        Billing Keuangan SIRUS<br>(BPJS)<br>
                                    </a>
                                    <!-- <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/billingkeuangannonbpjs') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-square"></i></div>
                                        Billing Keuangan SIRUS <br>(NON BPJS )<br>
                                    </a> -->
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/billingkeuangannonbpjs_umum') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-square"></i></div>
                                        Billing Keuangan SIRUS <br>(NON-BPJS - UMUM )<br>
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/billingkeuangannonbpjs_asuransi') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-square"></i></div>
                                        Billing Keuangan SIRUS <br>(NON-BPJS - ASURANSI )<br>
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/rekapkeuanganbpjs') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-square"></i></div>
                                        Rekap Keuangan <br>(SIRUS BPJS)<br>
                                    </a>
                                    <!-- <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/rekapkeuangannonbpjs') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-square"></i></div>
                                        Rekap Keuangan <br>(SIRUS NON BPJS)<br>
                                    </a> -->
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/rekapkeuangannonbpjs_umum') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-square"></i></div>
                                        Rekap Keuangan SIRUS <br>(NONBPJS-UMUM)<br>
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/rekapkeuangannonbpjs_asuransi') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-square"></i></div>
                                        Rekap Keuangan SIRUS <br>(NONBPJS-ASURANSI)<br>
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/rekapkeutahunan') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-square"></i></div>
                                        Rekap Asuransi Tahunan
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/rekapdatasirus') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-square"></i></div>
                                        Billing Rekap Keuangan <br>(SIRUS Penjamin)<br>
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/kasirbelumtagih') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data Kasir <br>Belum Tertagih<br>
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/radiologi') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Penjualan Radiologi
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/laboratorium') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Penjualan Laboratorium
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/farmasi') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Penjualan Farmasi
                                    </a>
                                </div>

                                <!-- END OF MENU KEUANGAN -->

                                <!--MENU KASIR -->
                                <div id="rekamMedisHeading-22" style="cursor: pointer; margin: 10px 0 2px 15px">
                                    <p style="font-size: medium; color:white">
                                        <i style="margin-right: 10px;" class="fas fa-th-list"></i>
                                        Kasir
                                        <i style="margin-left: 10px;" class="fas fa-chevron-down" id="rekamMedisDropdownIcon-22"></i>
                                    </p>
                                </div>
                                 <div id="rekamMedisDropdown-22" style="display: none;">
                                  <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/billingkasirall') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Data Kasir All
                                  </a>
                                  <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/kasirperbankan') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Data Kasir Perbank
                                  </a>
                                </div>
                                <!--MENU KASIR -->

                                <!-- MENU FARMASI  -->

                                <div id="rekamMedisHeading-9" style="cursor: pointer; margin: 5px 0 2px 15px">
                                    <p style="font-size: medium; color:white">
                                        <i style="margin-right: 10px;" class="fas fa-th-list"></i> <!-- Icon di sebelah kiri -->
                                        Farmasi
                                        <i style="margin-left: 10px;" class="fas fa-chevron-down" id="rekamMedisDropdownIcon-9"></i> <!-- Icon dropdown di sebelah kanan -->
                                    </p>
                                </div>
                                <div id="rekamMedisDropdown-9" style="display: none;">
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/rujuk') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data Rujukan
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/farmasiwaktuserah') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Waktu Serah
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/farmasi') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Farmasi Penjualan
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/farmasipembelian') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Farmasi Pembelian
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/datastockfarmasi') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data Stok Farmasi
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/pasienprb') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data Pasien PRB
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/POfarmasi') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data PO Farmasi
                                    </a>
                                    <!-- <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/dataobatnarkotika') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data Obat Narkotik
                                    </a> -->
                                    <!-- <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/dataobatpsiko') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data Obat Psikotropik
                                    </a> -->
                                </div>

                                <!-- MENU FARMASI OBAT NARKOTIK -->
                                <div id="rekamMedisDropdown-23" style="display: none;">
                                </div>
                                <!-- MENU FARMASI  OBAT -->

                                <!-- END OF MENU FARMASI  -->


                                <!-- LABORATORIUM -->

                                <div id="rekamMedisHeading-10" style="cursor: pointer; margin:10px 0 2px 15px">
                                    <p style="font-size: medium; color:white">
                                        <i style="margin-right: 10px;" class="fas fa-th-list"></i>
                                        Laboratorium
                                        <i style="margin-left:5px;" class="fas fa-chevron-down" id="rekamMedisDropdownIcon-10"></i>
                                    </p>
                                </div>
                                <div id="rekamMedisDropdown-10" style="display: none;">

                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/laboratorium2') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Penjualan Laboratorium
                                    </a>
                                </div>
                                <!-- LABORATORIUM -->

                                <!-- MENU RADIOLOGI -->

                                <div id="rekamMedisHeading-11" style="cursor: pointer; margin:10px 0 2px 15px">
                                    <p style="font-size: medium; color:white">
                                        <i style="margin-right: 10px;" class="fas fa-th-list"></i>
                                        Radiologi
                                        <i style="margin-left: 10px;" class="fas fa-chevron-down" id="rekamMedisDropdownIcon-11"></i>
                                    </p>
                                </div>
                                <div id="rekamMedisDropdown-11" style="display: none;">
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/radiologi') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Penjualan Radiologi
                                    </a>
                                </div>
                                <!-- RADIOLOGI -->


                                <!-- MENU RAWATINAP -->
                                <div id="menu-rawat-inap-heading" style="cursor: pointer; margin: 5px 0 2px 15px">
                                    <p style="font-size: medium; color:white">
                                        <i style="margin-right: 10px;" class="fas fa-th-list"></i>
                                        Rawat Inap
                                        <i style="margin-left: 10px;" class="fas fa-chevron-down" id="menu-rawat-inap-icon"></i>
                                    </p>
                                </div>
                                <div id="menu-rawat-inap-dropdown" style="display: none;">
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/pasieninaptotal') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Pasien Inap Total
                                    </a>
                                        <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/dataranapperdokter') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data Total Pasien Inap <br>Per Dokter <br>
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/penjamindpjp') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Pasien Inap DPJP
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/penjamininap') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data Penjamin Inap
                                    </a>
                                </div>
                                <!-- MENU RAWATINAP -->


                                <!-- MENU RAWATJALAN -->
                                <div id="menu-rawat-jalan-heading" style="cursor: pointer; margin: 5px 0 2px 15px">
                                    <p style="font-size: medium; color:white">
                                        <i style="margin-right: 10px;" class="fas fa-th-list"></i>
                                        Rawat Jalan
                                        <i style="margin-left: 10px;" class="fas fa-chevron-down" id="menu-rawat-jalan-icon"></i>
                                    </p>
                                </div>
                                <div id="menu-rawat-jalan-dropdown" style="display: none;">
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('menurawatjalan/pasienpoliall') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Pasien Poli Seluruh
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('menurawatjalan/polibatalkeuangan') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Pasien Poli BATAL
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('menurawatjalan/polidilayanikeuangan') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Pasien Poli DILAYANI
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/rajalperpoli') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Rawat jalan Per Poli
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/rajalperdokter') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Rawat jalan Per Dokter
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('menurawatjalan/polihomecarekeuangan') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Pasien HOME CARE
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/penjaminpolikeuangan') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data Penjamin Poli
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/rawatjalanpoli') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data SMF & Poli
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/rawatjalantransfer') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data Pasien Transfer <br>RJ-RI<br>
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/polikonsul') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data Poli Konsul <br>DPJP<br>
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/antreanpolirajal') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Antrean Poliklinik
                                    </a>

                                </div>
                                <!-- MENU RAWATJALAN -->

                                <!-- VAKSIN  -->
                                <div id="rekamMedisHeading-19" style="cursor: pointer; margin: 5px 0 2px 15px">
                                    <p style="font-size: medium; color:white">
                                        <i style="margin-right: 10px;" class="fas fa-list-alt"></i>
                                        Klinik Vaksin
                                        <i style="margin-left: 10px;" class="fas fa-chevron-down" id="rekamMedisDropdownIcon-19"></i>
                                    </p>
                                </div>
                                <div id="rekamMedisDropdown-19" style="display: none;">
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/pesertasehat') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-circle"></i></div>
                                        Data Peserta Vaksin
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/pesertasehattindakan') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-circle"></i></div>
                                        Data Peserta Tindakan
                                    </a>
                                </div>
                                <!-- VAKSIN -->

                                <!-- MENU RAWATJALAN -->

                                <!-- MCU  -->
                                <div id="rekamMedisHeading-21" style="cursor: pointer; margin: 5px 0 2px 15px">
                                    <p style="font-size: medium; color:white">
                                        <i style="margin-right: 10px;" class="fas fa-list-alt"></i>
                                        MCU
                                        <i style="margin-left: 10px;" class="fas fa-chevron-down" id="rekamMedisDropdownIcon-21"></i>
                                    </p>
                                </div>
                                <div id="rekamMedisDropdown-21" style="display: none;">
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/mcu') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-circle"></i></div>
                                        Data Hasil MCU
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/mcucoba') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-circle"></i></div>
                                        Data Hasil MCU <br>All Institusi<br>
                                    </a>
                                </div>
                                <!-- MCU -->


                                <!-- MENU IKBS -->
                                <div id="menu-ikbs-heading" style="cursor: pointer; margin: 5px 0 2px 15px">
                                    <p style="font-size: medium; color:white">
                                        <i style="margin-right: 10px;" class="fas fa-th-list"></i>
                                        IKBS
                                        <i style="margin-left: 10px;" class="fas fa-chevron-down" id="menu-ikbs-icon"></i>
                                    </p>
                                </div>
                                <div id="menu-ikbs-dropdown" style="display: none;">
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/menuikbs') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data Pasien IKBS
                                    </a>
                                    <a class="nav-link dropdown-item" href="https://sinaran.rsuananda.id/ikbs" target="_blank ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Display Jadwal Operasi
                                    </a>
                                </div>
                                <!-- MENU IKBS -->

                                <!-- MENU REKAM MEDIS -->
                                <div id="rekamMedisHeading-8" style="cursor: pointer; margin:5px 0 2px 15px">
                                    <p style="font-size: medium; color:white">
                                        <i style="margin-right: 10px;" class="fas fa-th-list"></i>
                                        Rekam Medis
                                        <i style="margin-left: 5px;" class="fas fa-chevron-down" id="rekamMedisDropdownIcon-8"></i>
                                    </p>
                                </div>
                                <div id="rekamMedisDropdown-8" style="display: none;">
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/icdrajal') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Coding ICD <br>Rawat Jalan<br>
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/hunianinap') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data Hunian <br>Rawat Inap<br>
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/rujuk') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data Rujukan
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/penjaminpoli') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data Penjamin Poli
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/penjaminigd') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data Penjamin IGD
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/penjamininap') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data Penjamin Inap
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/IPRSborlostoi') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                       Indikator Pelayanan <br> Rumah Sakit<br>
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/rekamedis') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Waktu Tunggu Poli
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/demografiasalkeinap') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data Pasien POLI ke Inap
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/pasienigdkeinap') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data Pasien IGD ke Inap
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/pasienmeniggal') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data Pasien Meninggal
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/demografiusia') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data Demografi
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/datademousiaperpoli') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data Demografi Per Poli
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/demorekapall') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data Rekap Demografi 
                                    </a>
                                </div>

                                <!-- END OF REKAM MEDIS --->


                                <!-- GIZI  -->
                                <div id="rekamMedisHeading-20" style="cursor: pointer; margin:10px 0 2px 15px">
                                    <p style="font-size: medium; color:white">
                                        <i style="margin-right: 10px;" class="fas fa-th-list"></i>
                                        Gizi
                                        <i style="margin-left: 10px;" class="fas fa-chevron-down" id="rekamMedisDropdownIcon-20"></i>
                                    </p>
                                </div>
                                <div id="rekamMedisDropdown-20" style="display: none;">
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/gizi') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Riwayat Asuhan Gizi
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/gizimalnutrisi') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Data Mal Nutrisi Gizi
                                    </a>
                                </div>
                                <!-- GIZI -->

                                <!-- MENU IGD -->
                                <div id="menu-igd-heading" style="cursor: pointer; margin: 5px 0 2px 15px">
                                    <p style="font-size: medium; color:white">
                                        <i style="margin-right: 10px;" class="fas fa-th-list"></i>
                                        IGD
                                        <i style="margin-left: 10px;" class="fas fa-chevron-down" id="menu-igd-icon"></i>
                                    </p>
                                </div>
                                <div id="menu-igd-dropdown" style="display: none;">
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('menuigdkeuangan/tampiligdrekap') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-circle"></i></div>
                                        Data IGD Rekap
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('menuigdkeuangan/pasienigddilayani') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-circle"></i></div>
                                        Data IGD Dilayani
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('menuigdkeuangan/pasienigdbatal') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-circle"></i></div>
                                        Data IGD Batal
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('menuigdkeuangan/pasienigdtotal') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-circle"></i></div>
                                        Data IGD Total
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/penjaminigdkeuangan') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-circle"></i></div>
                                        Data Penjamin IGD
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/pasienigdkeinap') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-circle"></i></div>
                                        Data Pasien IGD ke Inap
                                    </a>
                                        <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/respontimeigd') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-circle"></i></div>
                                        Data Respon Time IGD
                                    </a>
                                </div>

                                <!-- MENU IGD -->

                                <!-- Surveilan  -->
                                <div id="rekamMedisHeading-24" style="cursor: pointer; margin:10px 0 2px 15px">
                                    <p style="font-size: medium; color:white">
                                        <i style="margin-right: 10px;" class="fas fa-th-list"></i>
                                        Surveilan
                                        <i style="margin-left: 10px;" class="fas fa-chevron-down" id="rekamMedisDropdownIcon-24"></i>
                                    </p>
                                </div>
                                <div id="rekamMedisDropdown-24" style="display: none;">
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/surveilan') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-circle"></i></div>
                                        Data PPI Infus
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/kasirwatktutunggu') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-circle"></i></div>
                                        Rerata Waktu Layani <br>Pulang - Kasir<br> 
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/IGDwaktulayani') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-circle"></i></div>
                                        Rerata Waktu Layani <br>IGD<br>
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/waktutunggupoli') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-circle"></i></div>
                                        Rerata Waktu Tunggu <br>Poli<br>
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/waktudilayanidokter') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-circle"></i></div>
                                        Rerata Waktu Tunggu <br>Dilayani Dokter<br>
                                    </a>
                                </div>
                                <!-- Surveilan -->

                            <?php } else if ($akses == 'GZI' && $app == 'LAB') { ?>
                                <div id="rekamMedisHeading-20" style="cursor: pointer; margin:10px 0 2px 15px">
                                    <p style="font-size: medium; color:white">
                                        <i style="margin-right: 10px;" class="fas fa-th-list"></i>
                                        Menu Gizi
                                        <i style="margin-left: 10px;" class="fas fa-chevron-down" id="rekamMedisDropdownIcon-20"></i>
                                    </p>
                                </div>
                                <div id="rekamMedisDropdown-20" style="display: none;">
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/dashboard') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-circle"></i></div>
                                        Dashboard Layanan
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/dokumen') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-circle"></i></div>
                                        Pustaka Dokumen
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/gizi') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-circle"></i></div>
                                        Riwayat Asuhan Gizi
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/gizimalnutrisi') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-circle"></i></div>
                                        Data Mal Nutrisi Gizi
                                    </a>
                                </div>
                                <!-- MENU GIZI -->


                                <!-- MENU MCU -->
                            <?php } else if ($akses == '168' && $app == 'DAFTAR') { ?>
                                <div id="rekamMedisHeading-20" style="cursor: pointer; margin:10px 0 2px 15px">
                                    <p style="font-size: medium; color:white">
                                        <i style="margin-right: 10px;" class="fas fa-th-list"></i>
                                        Menu MCU
                                        <i style="margin-left: 10px;" class="fas fa-chevron-down" id="rekamMedisDropdownIcon-20"></i>
                                    </p>
                                </div>
                                <div id="rekamMedisDropdown-20" style="display: none;">
                                    <!-- <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/dashboard') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Dashboard Layanan
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/dokumen') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                        Dokumen
                                    </a> -->
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/mcu') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-circle"></i></div>
                                        Data Hasil MCU
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/mcucoba') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-circle"></i></div>
                                        Data Hasil MCU <br>All Institusi<br>
                                    </a>
                                </div>
                                <!-- MENU MCU -->


                            <!-- MENU MUTU -->
                            <?php } 
                            
                             else if ($akses == 'MUTU' && $app == 'RMJ') { ?>
                                <div id="rekamMedisHeading-24" style="cursor: pointer; margin:10px 0 2px 15px">
                                    <p style="font-size: medium; color:white">
                                        <i style="margin-right: 10px;" class="fas fa-th-list"></i>
                                        Surveilan
                                        <i style="margin-left: 10px;" class="fas fa-chevron-down" id="rekamMedisDropdownIcon-24"></i>
                                    </p>
                                </div>
                                <div id="rekamMedisDropdown-24" style="display: none;">
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/surveilan') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-circle"></i></div>
                                        Data PPI Infus
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/kasirwatktutunggu') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-circle"></i></div>
                                        Rerata Waktu Layani <br>Pulang - Kasir<br> 
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/IGDwaktulayani') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-circle"></i></div>
                                        Rerata Waktu Layani <br>IGD<br>
                                    </a>
                                        <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/waktutunggupoli') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-circle"></i></div>
                                        Rerata Waktu Tunggu <br>Poli<br>
                                    </a>
                                    <a class="nav-link dropdown-item" href="<?php echo base_url('dashboard/waktudilayanidokter') ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-check-circle"></i></div>
                                        Rerata Waktu Tunggu <br>Dilayani Dokter<br>
                                    </a>
                                </div>
                            <!-- MENU MUTU -->


                                <!-- MENU MCU -->
                            <?php } else { ?>
                                <div class="sb-sidenav-menu-heading">LAPORAN</div>
                                <a class="nav-link" href="<?php echo base_url('dashboard/dokumen') ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
                                    Pustaka Dokumen
                                </a>
                            <?php } ?>
                            </div>
                    </div>
            </nav>
        </div>

        <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
        <script>
            $(document).ready(function() {
                // Cek state dropdown dari localStorage saat halaman dimuat
                const rekamMedisDropdownState = localStorage.getItem('rekamMedisDropdownState');
                if (rekamMedisDropdownState === 'open') {
                    $('#rekamMedisDropdown').show(); // Tampilkan dropdown jika state-nya "open"
                    $('#rekamMedisDropdownIcon').removeClass('fa-chevron-down').addClass('fa-chevron-up'); // Ubah ikon ke atas
                }

                // Toggle dropdown saat "Rekam Medis" diklik
                $('#rekamMedisHeading').click(function() {
                    $('#rekamMedisDropdown').slideToggle(function() {
                        // Ubah ikon berdasarkan state dropdown
                        if ($('#rekamMedisDropdown').is(':visible')) {
                            $('#rekamMedisDropdownIcon').removeClass('fa-chevron-down').addClass('fa-chevron-up'); // Ikon ke atas
                            localStorage.setItem('rekamMedisDropdownState', 'open');
                        } else {
                            $('#rekamMedisDropdownIcon').removeClass('fa-chevron-up').addClass('fa-chevron-down'); // Ikon ke bawah
                            localStorage.setItem('rekamMedisDropdownState', 'closed');
                        }
                    });
                });

                // Mencegah dropdown menutup saat mengklik menu di dalamnya
                $('#rekamMedisDropdown').on('click', '.dropdown-item', function(e) {
                    e.stopPropagation(); // Menghentikan event bubbling agar dropdown tidak menutup
                });
            });
        </script>

        <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>


        <script>
            $(document).ready(function() {
                // Cek state dropdown dari localStorage saat halaman dimuat
                const rekamMedisDropdownState2 = localStorage.getItem('rekamMedisDropdownState2');
                if (rekamMedisDropdownState2 === 'open') {
                    $('#rekamMedisDropdown-2').show(); // Tampilkan dropdown jika state-nya "open"
                    $('#rekamMedisDropdownIcon-2').removeClass('fa-chevron-down').addClass('fa-chevron-up'); // Ubah ikon ke atas
                }

                // Toggle dropdown saat "Rekam Medis" diklik
                $('#rekamMedisHeading-2').click(function() {
                    $('#rekamMedisDropdown-2').slideToggle(function() {
                        // Ubah ikon berdasarkan state dropdown
                        if ($('#rekamMedisDropdown-2').is(':visible')) {
                            $('#rekamMedisDropdownIcon-2').removeClass('fa-chevron-down').addClass('fa-chevron-up'); // Ikon ke atas
                            localStorage.setItem('rekamMedisDropdownState2', 'open');
                        } else {
                            $('#rekamMedisDropdownIcon-2').removeClass('fa-chevron-up').addClass('fa-chevron-down'); // Ikon ke bawah
                            localStorage.setItem('rekamMedisDropdownState2', 'closed');
                        }
                    });
                });

                // Mencegah dropdown menutup saat mengklik menu di dalamnya
                $('#rekamMedisDropdown-2').on('click', '.dropdown-item', function(e) {
                    e.stopPropagation(); // Menghentikan event bubbling agar dropdown tidak menutup
                    e.preventDefault(); // Mencegah link mengarah ke halaman lain
                    // Simpan state dropdown sebelum mengarah ke halaman lain
                    localStorage.setItem('rekamMedisDropdownState2', 'open');
                    // Izinkan link mengarah ke halaman lain
                    window.location.href = $(this).attr('href');
                });
            });
        </script>

        <script>
            $(document).ready(function() {
                // Cek state dropdown dari localStorage saat halaman dimuat
                const rekamMedisDropdownState3 = localStorage.getItem('rekamMedisDropdownState3');
                if (rekamMedisDropdownState3 === 'open') {
                    $('#rekamMedisDropdown-3').show(); // Tampilkan dropdown jika state-nya "open"
                    $('#rekamMedisDropdownIcon-3').removeClass('fa-chevron-down').addClass('fa-chevron-up'); // Ubah ikon ke atas
                }

                // Toggle dropdown saat "Rekam Medis" diklik
                $('#rekamMedisHeading-3').click(function() {
                    $('#rekamMedisDropdown-3').slideToggle(function() {
                        // Ubah ikon berdasarkan state dropdown
                        if ($('#rekamMedisDropdown-3').is(':visible')) {
                            $('#rekamMedisDropdownIcon-3').removeClass('fa-chevron-down').addClass('fa-chevron-up'); // Ikon ke atas
                            localStorage.setItem('rekamMedisDropdownState3', 'open');
                        } else {
                            $('#rekamMedisDropdownIcon-2').removeClass('fa-chevron-up').addClass('fa-chevron-down'); // Ikon ke bawah
                            localStorage.setItem('rekamMedisDropdownState3', 'closed');
                        }
                    });
                });

                // Mencegah dropdown menutup saat mengklik menu di dalamnya
                $('#rekamMedisDropdown-3').on('click', '.dropdown-item', function(e) {
                    e.stopPropagation(); // Menghentikan event bubbling agar dropdown tidak menutup
                    e.preventDefault(); // Mencegah link mengarah ke halaman lain
                    // Simpan state dropdown sebelum mengarah ke halaman lain
                    localStorage.setItem('rekamMedisDropdownState3', 'open');
                    // Izinkan link mengarah ke halaman lain
                    window.location.href = $(this).attr('href');
                });
            });
        </script>


        <script>
            $(document).ready(function() {
                // Cek state dropdown dari localStorage saat halaman dimuat
                const rekamMedisDropdownState4 = localStorage.getItem('rekamMedisDropdownState4');
                if (rekamMedisDropdownState4 === 'open') {
                    $('#rekamMedisDropdown-4').show(); // Tampilkan dropdown jika state-nya "open"
                    $('#rekamMedisDropdownIcon-4').removeClass('fa-chevron-down').addClass('fa-chevron-up'); // Ubah ikon ke atas
                }

                // Toggle dropdown saat "Rekam Medis" diklik
                $('#rekamMedisHeading-4').click(function() {
                    $('#rekamMedisDropdown-4').slideToggle(function() {
                        // Ubah ikon berdasarkan state dropdown
                        if ($('#rekamMedisDropdown-4').is(':visible')) {
                            $('#rekamMedisDropdownIcon-4').removeClass('fa-chevron-down').addClass('fa-chevron-up'); // Ikon ke atas
                            localStorage.setItem('rekamMedisDropdownState4', 'open');
                        } else {
                            $('#rekamMedisDropdownIcon-2').removeClass('fa-chevron-up').addClass('fa-chevron-down'); // Ikon ke bawah
                            localStorage.setItem('rekamMedisDropdownState4', 'closed');
                        }
                    });
                });

                // Mencegah dropdown menutup saat mengklik menu di dalamnya
                $('#rekamMedisDropdown-4').on('click', '.dropdown-item', function(e) {
                    e.stopPropagation(); // Menghentikan event bubbling agar dropdown tidak menutup
                    e.preventDefault(); // Mencegah link mengarah ke halaman lain
                    // Simpan state dropdown sebelum mengarah ke halaman lain
                    localStorage.setItem('rekamMedisDropdownState4', 'open');
                    // Izinkan link mengarah ke halaman lain
                    window.location.href = $(this).attr('href');
                });
            });
        </script>

        <script>
            $(document).ready(function() {
                // Cek state dropdown dari localStorage saat halaman dimuat
                const rekamMedisDropdownState5 = localStorage.getItem('rekamMedisDropdownState5');
                if (rekamMedisDropdownState5 === 'open') {
                    $('#rekamMedisDropdown-5').show(); // Tampilkan dropdown jika state-nya "open"
                    $('#rekamMedisDropdownIcon-5').removeClass('fa-chevron-down').addClass('fa-chevron-up'); // Ubah ikon ke atas
                }

                // Toggle dropdown saat "Rekam Medis" diklik
                $('#rekamMedisHeading-5').click(function() {
                    $('#rekamMedisDropdown-5').slideToggle(function() {
                        // Ubah ikon berdasarkan state dropdown
                        if ($('#rekamMedisDropdown-5').is(':visible')) {
                            $('#rekamMedisDropdownIcon-5').removeClass('fa-chevron-down').addClass('fa-chevron-up'); // Ikon ke atas
                            localStorage.setItem('rekamMedisDropdownState5', 'open');
                        } else {
                            $('#rekamMedisDropdownIcon-5').removeClass('fa-chevron-up').addClass('fa-chevron-down'); // Ikon ke bawah
                            localStorage.setItem('rekamMedisDropdownState5', 'closed');
                        }
                    });
                });

                // Mencegah dropdown menutup saat mengklik menu di dalamnya
                $('#rekamMedisDropdown-5').on('click', '.dropdown-item', function(e) {
                    e.stopPropagation(); // Menghentikan event bubbling agar dropdown tidak menutup
                    e.preventDefault(); // Mencegah link mengarah ke halaman lain
                    // Simpan state dropdown sebelum mengarah ke halaman lain
                    localStorage.setItem('rekamMedisDropdownState5', 'open');
                    // Izinkan link mengarah ke halaman lain
                    window.location.href = $(this).attr('href');
                });
            });
        </script>

        <script>
            $(document).ready(function() {
                // Cek state dropdown dari localStorage saat halaman dimuat
                const rekamMedisDropdownState6 = localStorage.getItem('rekamMedisDropdownState6');
                if (rekamMedisDropdownState6 === 'open') {
                    $('#rekamMedisDropdown-6').show(); // Tampilkan dropdown jika state-nya "open"
                    $('#rekamMedisDropdownIcon-6').removeClass('fa-chevron-down').addClass('fa-chevron-up'); // Ubah ikon ke atas
                }

                // Toggle dropdown saat "Rekam Medis" diklik
                $('#rekamMedisHeading-6').click(function() {
                    $('#rekamMedisDropdown-6').slideToggle(function() {
                        // Ubah ikon berdasarkan state dropdown
                        if ($('#rekamMedisDropdown-6').is(':visible')) {
                            $('#rekamMedisDropdownIcon-6').removeClass('fa-chevron-down').addClass('fa-chevron-up'); // Ikon ke atas
                            localStorage.setItem('rekamMedisDropdownState6', 'open');
                        } else {
                            $('#rekamMedisDropdownIcon-6').removeClass('fa-chevron-up').addClass('fa-chevron-down'); // Ikon ke bawah
                            localStorage.setItem('rekamMedisDropdownState6', 'closed');
                        }
                    });
                });

                // Mencegah dropdown menutup saat mengklik menu di dalamnya
                $('#rekamMedisDropdown-6').on('click', '.dropdown-item', function(e) {
                    e.stopPropagation(); // Menghentikan event bubbling agar dropdown tidak menutup
                    e.preventDefault(); // Mencegah link mengarah ke halaman lain
                    // Simpan state dropdown sebelum mengarah ke halaman lain
                    localStorage.setItem('rekamMedisDropdownState6', 'open');
                    // Izinkan link mengarah ke halaman lain
                    window.location.href = $(this).attr('href');
                });
            });
        </script>

        <script>
            $(document).ready(function() {
                // Cek state dropdown dari localStorage saat halaman dimuat
                const rekamMedisDropdownState7 = localStorage.getItem('rekamMedisDropdownState6');
                if (rekamMedisDropdownState7 === 'open') {
                    $('#rekamMedisDropdown-7').show(); // Tampilkan dropdown jika state-nya "open"
                    $('#rekamMedisDropdownIcon-7').removeClass('fa-chevron-down').addClass('fa-chevron-up'); // Ubah ikon ke atas
                }

                // Toggle dropdown saat "Rekam Medis" diklik
                $('#rekamMedisHeading-7').click(function() {
                    $('#rekamMedisDropdown-7').slideToggle(function() {
                        // Ubah ikon berdasarkan state dropdown
                        if ($('#rekamMedisDropdown-7').is(':visible')) {
                            $('#rekamMedisDropdownIcon-7').removeClass('fa-chevron-down').addClass('fa-chevron-up'); // Ikon ke atas
                            localStorage.setItem('rekamMedisDropdownState7', 'open');
                        } else {
                            $('#rekamMedisDropdownIcon-7').removeClass('fa-chevron-up').addClass('fa-chevron-down'); // Ikon ke bawah
                            localStorage.setItem('rekamMedisDropdownState7', 'closed');
                        }
                    });
                });

                // Mencegah dropdown menutup saat mengklik menu di dalamnya
                $('#rekamMedisDropdown-7').on('click', '.dropdown-item', function(e) {
                    e.stopPropagation(); // Menghentikan event bubbling agar dropdown tidak menutup
                    e.preventDefault(); // Mencegah link mengarah ke halaman lain
                    // Simpan state dropdown sebelum mengarah ke halaman lain
                    localStorage.setItem('rekamMedisDropdownState7', 'open');
                    // Izinkan link mengarah ke halaman lain
                    window.location.href = $(this).attr('href');
                });
            });
        </script>

        <script>
            $(document).ready(function() {
                // Cek state dropdown dari localStorage saat halaman dimuat
                const rekamMedisDropdownState20 = localStorage.getItem('rekamMedisDropdownState20');
                if (rekamMedisDropdownState20 === 'open') {
                    $('#rekamMedisDropdown-20').show(); // Tampilkan dropdown jika state-nya "open"
                    $('#rekamMedisDropdownIcon-20').removeClass('fa-chevron-down').addClass('fa-chevron-up'); // Ubah ikon ke atas
                }

                // Toggle dropdown saat "Rekam Medis" diklik
                $('#rekamMedisHeading-20').click(function() {
                    $('#rekamMedisDropdown-20').slideToggle(function() {
                        // Ubah ikon berdasarkan state dropdown
                        if ($('#rekamMedisDropdown-20').is(':visible')) {
                            $('#rekamMedisDropdownIcon-20').removeClass('fa-chevron-down').addClass('fa-chevron-up'); // Ikon ke atas
                            localStorage.setItem('rekamMedisDropdownState20', 'open');
                        } else {
                            $('#rekamMedisDropdownIcon-20').removeClass('fa-chevron-up').addClass('fa-chevron-down'); // Ikon ke bawah
                            localStorage.setItem('rekamMedisDropdownState20', 'closed');
                        }
                    });
                });

                // Mencegah dropdown menutup saat mengklik menu di dalamnya
                $('#rekamMedisDropdown-20').on('click', '.dropdown-item', function(e) {
                    e.stopPropagation(); // Menghentikan event bubbling agar dropdown tidak menutup
                    e.preventDefault(); // Mencegah link mengarah ke halaman lain
                    // Simpan state dropdown sebelum mengarah ke halaman lain
                    localStorage.setItem('rekamMedisDropdownState20', 'open');
                    // Izinkan link mengarah ke halaman lain
                    window.location.href = $(this).attr('href');
                });
            });
        </script>



        <script>
            $(document).ready(function() {
                // Cek state dropdown dari localStorage saat halaman dimuat
                const rekamMedisDropdownState24 = localStorage.getItem('rekamMedisDropdownState24');
                if (rekamMedisDropdownState24 === 'open') {
                    $('#rekamMedisDropdown-24').show(); // Tampilkan dropdown jika state-nya "open"
                    $('#rekamMedisDropdownIcon-24').removeClass('fa-chevron-down').addClass('fa-chevron-up'); // Ubah ikon ke atas
                }

                // Toggle dropdown saat "Rekam Medis" diklik
                $('#rekamMedisHeading-24').click(function() {
                    $('#rekamMedisDropdown-24').slideToggle(function() {
                        // Ubah ikon berdasarkan state dropdown
                        if ($('#rekamMedisDropdown-24').is(':visible')) {
                            $('#rekamMedisDropdownIcon-24').removeClass('fa-chevron-down').addClass('fa-chevron-up'); // Ikon ke atas
                            localStorage.setItem('rekamMedisDropdownState24', 'open');
                        } else {
                            $('#rekamMedisDropdownIcon-24').removeClass('fa-chevron-up').addClass('fa-chevron-down'); // Ikon ke bawah
                            localStorage.setItem('rekamMedisDropdownState24', 'closed');
                        }
                    });
                });

                // Mencegah dropdown menutup saat mengklik menu di dalamnya
                $('#rekamMedisDropdown-24').on('click', '.dropdown-item', function(e) {
                    e.stopPropagation(); // Menghentikan event bubbling agar dropdown tidak menutup
                    e.preventDefault(); // Mencegah link mengarah ke halaman lain
                    // Simpan state dropdown sebelum mengarah ke halaman lain
                    localStorage.setItem('rekamMedisDropdownState24', 'open');
                    // Izinkan link mengarah ke halaman lain
                    window.location.href = $(this).attr('href');
                });
            });
        </script>


        <script>
            //Fungsi untuk menutup semua menu
            function tutupSemuaMenu() {
                document.getElementById("laporanDropdown").style.display = "none";
                document.getElementById("menu-ikbs-dropdown").style.display = "none";
                document.getElementById("menu-rawat-jalan-dropdown").style.display = "none";
                document.getElementById("menu-rawat-inap-dropdown").style.display = "none";
                document.getElementById("menu-igd-dropdown").style.display = "none";
                document.getElementById("rekamMedisDropdown-8").style.display = "none";
                document.getElementById("rekamMedisDropdown-9").style.display = "none";
                document.getElementById("rekamMedisDropdown-10").style.display = "none";
                document.getElementById("rekamMedisDropdown-11").style.display = "none";
                document.getElementById("rekamMedisDropdown-19").style.display = "none";
                document.getElementById("rekamMedisDropdown-21").style.display = "none";
                document.getElementById("rekamMedisDropdown-22").style.display = "none";
                document.getElementById("rekamMedisDropdown-23").style.display = "none";
                //document.getElementById("rekamMedisDropdown-24").style.display = "none";

            }

            // Fungsi untuk membuka menu Billing
            function bukaMenuBilling() {
                tutupSemuaMenu();
                document.getElementById("laporanDropdown").style.display = "block";
                document.getElementById("laporanDropdownIcon").classList.remove("fa-chevron-down");
                document.getElementById("laporanDropdownIcon").classList.add("fa-chevron-up");
                localStorage.setItem("menuBillingState", "open"); // Simpan state menu Billing
            }

            // Fungsi untuk menutup menu Billing
            function tutupMenuBilling() {
                document.getElementById("laporanDropdown").style.display = "none";
                document.getElementById("laporanDropdownIcon").classList.remove("fa-chevron-up");
                document.getElementById("laporanDropdownIcon").classList.add("fa-chevron-down");
                localStorage.setItem("menuBillingState", "closed"); // Simpan state menu Billing
            }


            // Fungsi untuk membuka menu KASIR
            function bukaMenuKasir() {
                tutupSemuaMenu();
                document.getElementById("rekamMedisDropdown-22").style.display = "block";
                document.getElementById("rekamMedisDropdownIcon-22").classList.remove("fa-chevron-down");
                document.getElementById("rekamMedisDropdownIcon-22").classList.add("fa-chevron-up");
                localStorage.setItem("menuKasirState", "open"); // Simpan state menu Kasir
            }


            // Fungsi untuk menutup menu KASIR
            function tutupMenuKasir() {
                document.getElementById("rekamMedisDropdown-22").style.display = "none";
                document.getElementById("rekamMedisDropdownIcon-22").classList.remove("fa-chevron-up");
                document.getElementById("rekamMedisDropdownIcon-22").classList.add("fa-chevron-down");
                localStorage.setItem("menuKasirState", "closed"); // Simpan state menu Kasir
            }

            // Fungsi untuk membuka menu Rawat Jalan
            function bukaMenuRawatJalan() {
                tutupSemuaMenu();
                document.getElementById("menu-rawat-jalan-dropdown").style.display = "block";
                document.getElementById("menu-rawat-jalan-icon").classList.remove("fa-chevron-down");
                document.getElementById("menu-rawat-jalan-icon").classList.add("fa-chevron-up");
                localStorage.setItem("menuRawatJalanState", "open"); // Simpan state menu Rawat Jalan
            }

            // Fungsi untuk menutup menu Rawat Jalan
            function tutupMenuRawatJalan() {
                document.getElementById("menu-rawat-jalan-dropdown").style.display = "none";
                document.getElementById("menu-rawat-jalan-icon").classList.remove("fa-chevron-up");
                document.getElementById("menu-rawat-jalan-icon").classList.add("fa-chevron-down");
                localStorage.setItem("menuRawatJalanState", "closed"); // Simpan state menu Rawat Jalan
            }

            // Fungsi untuk membuka menu IKBS
            function bukaMenuIKBS() {
                tutupSemuaMenu();
                document.getElementById("menu-ikbs-dropdown").style.display = "block";
                document.getElementById("menu-ikbs-icon").classList.remove("fa-chevron-down");
                document.getElementById("menu-ikbs-icon").classList.add("fa-chevron-up");
                localStorage.setItem("menuIKBSState", "open"); // Simpan state menu IKBS
            }

            // Fungsi untuk menutup menu IKBS
            function tutupMenuIKBS() {
                document.getElementById("menu-ikbs-dropdown").style.display = "none";
                document.getElementById("menu-ikbs-icon").classList.remove("fa-chevron-up");
                document.getElementById("menu-ikbs-icon").classList.add("fa-chevron-down");
                localStorage.setItem("menuIKBSState", "closed"); // Simpan state menu IKBS
            }

            // Fungsi untuk membuka menu Rawat Inap
            function bukaMenuRawatInap() {
                tutupSemuaMenu();
                document.getElementById("menu-rawat-inap-dropdown").style.display = "block";
                document.getElementById("menu-rawat-inap-icon").classList.remove("fa-chevron-down");
                document.getElementById("menu-rawat-inap-icon").classList.add("fa-chevron-up");
                localStorage.setItem("menuRawatInapState", "open"); // Simpan state menu Rawat Inap
            }

            // Fungsi untuk menutup menu Rawat Inap
            function tutupMenuRawatInap() {
                document.getElementById("menu-rawat-inap-dropdown").style.display = "none";
                document.getElementById("menu-rawat-inap-icon").classList.remove("fa-chevron-up");
                document.getElementById("menu-rawat-inap-icon").classList.add("fa-chevron-down");
                localStorage.setItem("menuRawatInapState", "closed"); // Simpan state menu Rawat Inap
            }

            // Fungsi untuk membuka menu IGD
            function bukaMenuIGD() {
                tutupSemuaMenu();
                document.getElementById("menu-igd-dropdown").style.display = "block";
                document.getElementById("menu-igd-icon").classList.remove("fa-chevron-down");
                document.getElementById("menu-igd-icon").classList.add("fa-chevron-up");
                localStorage.setItem("menuIGDState", "open"); // Simpan state menu IGD
            }

            // Fungsi untuk menutup menu IGD
            function tutupMenuIGD() {
                document.getElementById("menu-igd-dropdown").style.display = "none";
                document.getElementById("menu-igd-icon").classList.remove("fa-chevron-up");
                document.getElementById("menu-igd-icon").classList.add("fa-chevron-down");
                localStorage.setItem("menuIGDState", "closed"); // Simpan state menu IGD
            }

            // Fungsi untuk menutup menu PT
            function tutupMenuPT() {
                document.getElementById("rekamMedisDropdown-8").style.display = "none";
                document.getElementById("rekamMedisDropdownIcon-8").classList.remove("fa-chevron-up");
                document.getElementById("rekamMedisDropdownIcon-8").classList.add("fa-chevron-down");
                localStorage.setItem("menuPTState", "closed"); // Simpan state menu IGD
            }

            // Fungsi untuk membuka menu PT
            function bukaMenuPT() {
                tutupSemuaMenu();
                document.getElementById("rekamMedisDropdown-8").style.display = "block";
                document.getElementById("rekamMedisDropdownIcon-8").classList.remove("fa-chevron-down");
                document.getElementById("rekamMedisDropdownIcon-8").classList.add("fa-chevron-up");
                localStorage.setItem("menuPTState", "open"); // Simpan state menu IGD
            }


            // Fungsi untuk menutup menu FARMASI
            function tutupMenuFarmasi() {
                document.getElementById("rekamMedisDropdown-9").style.display = "none";
                document.getElementById("rekamMedisDropdownIcon-9").classList.remove("fa-chevron-up");
                document.getElementById("rekamMedisDropdownIcon-9").classList.add("fa-chevron-down");
                localStorage.setItem("menuFarmasiState", "closed"); // Simpan state menu IGD
            }

            // Fungsi untuk membuka menu FARMASI
            function bukaMenuFarmasi() {
                tutupSemuaMenu();
                document.getElementById("rekamMedisDropdown-9").style.display = "block";
                document.getElementById("rekamMedisDropdownIcon-9").classList.remove("fa-chevron-down");
                document.getElementById("rekamMedisDropdownIcon-9").classList.add("fa-chevron-up");
                localStorage.setItem("menuFarmasiState", "open"); // Simpan state menu IGD
            }

             // Fungsi untuk membuka menu OBAT NARKO -PSIKO
            function bukaMenuNarkops() {
                tutupSemuaMenu();
                document.getElementById("rekamMedisDropdown-23").style.display = "block";
                document.getElementById("rekamMedisDropdownIcon-23").classList.remove("fa-chevron-down");
                document.getElementById("rekamMedisDropdownIcon-23").classList.add("fa-chevron-up");
                localStorage.setItem("menuNarkopsState", "open"); // Simpan state menu Kasir
            }


            // Fungsi untuk menutup menu OBAT NARKO -PSIKO
            function tutupMenuNarkops() {
                document.getElementById("rekamMedisDropdown-23").style.display = "none";
                document.getElementById("rekamMedisDropdownIcon-23").classList.remove("fa-chevron-up");
                document.getElementById("rekamMedisDropdownIcon-23").classList.add("fa-chevron-down");
                localStorage.setItem("menuNarkopsState", "closed"); // Simpan state menu Kasir
            }

            // Fungsi untuk menutup menu LABORATORIUM
            function tutupMenuLab() {
                document.getElementById("rekamMedisDropdown-10").style.display = "none";
                document.getElementById("rekamMedisDropdownIcon-10").classList.remove("fa-chevron-up");
                document.getElementById("rekamMedisDropdownIcon-10").classList.add("fa-chevron-down");
                localStorage.setItem("menuLabState", "closed"); // Simpan state menu IGD
            }

            // Fungsi untuk membuka menu LABORATORIUM
            function bukaMenuLab() {
                tutupSemuaMenu();
                document.getElementById("rekamMedisDropdown-10").style.display = "block";
                document.getElementById("rekamMedisDropdownIcon-10").classList.remove("fa-chevron-down");
                document.getElementById("rekamMedisDropdownIcon-10").classList.add("fa-chevron-up");
                localStorage.setItem("menuLabState", "open"); // Simpan state menu IGD
            }


            // Fungsi untuk menutup menu RADIOLOGI
            function tutupMenuRad() {
                document.getElementById("rekamMedisDropdown-11").style.display = "none";
                document.getElementById("rekamMedisDropdownIcon-11").classList.remove("fa-chevron-up");
                document.getElementById("rekamMedisDropdownIcon-11").classList.add("fa-chevron-down");
                localStorage.setItem("menuRadState", "closed"); // Simpan state menu IGD
            }

            // Fungsi untuk membuka menu RADIOLOGI
            function bukaMenuRad() {
                tutupSemuaMenu();
                document.getElementById("rekamMedisDropdown-11").style.display = "block";
                document.getElementById("rekamMedisDropdownIcon-11").classList.remove("fa-chevron-down");
                document.getElementById("rekamMedisDropdownIcon-11").classList.add("fa-chevron-up");
                localStorage.setItem("menuRadState", "open"); // Simpan state menu IGD
            }

            // Fungsi untuk menutup menu VAKSIN
            function tutupMenuVaksin() {
                document.getElementById("rekamMedisDropdown-19").style.display = "none";
                document.getElementById("rekamMedisDropdownIcon-19").classList.remove("fa-chevron-up");
                document.getElementById("rekamMedisDropdownIcon-19").classList.add("fa-chevron-down");
                localStorage.setItem("menuVaksinState", "closed"); // Simpan state menu IGD
            }

            // Fungsi untuk membuka menu VAKSIN
            function bukaMenuVaksin() {
                tutupSemuaMenu();
                document.getElementById("rekamMedisDropdown-19").style.display = "block";
                document.getElementById("rekamMedisDropdownIcon-19").classList.remove("fa-chevron-down");
                document.getElementById("rekamMedisDropdownIcon-19").classList.add("fa-chevron-up");
                localStorage.setItem("menuVaksinState", "open"); // Simpan state menu IGD
            }



            // Fungsi untuk menutup menu MCU
            function tutupMenuMCU() {
                document.getElementById("rekamMedisDropdown-21").style.display = "none";
                document.getElementById("rekamMedisDropdownIcon-21").classList.remove("fa-chevron-up");
                document.getElementById("rekamMedisDropdownIcon-21").classList.add("fa-chevron-down");
                localStorage.setItem("menuMCUState", "closed"); // Simpan state menu IGD
            }

            // Fungsi untuk membuka menu MCU
            function bukaMenuMCU() {
                tutupSemuaMenu();
                document.getElementById("rekamMedisDropdown-21").style.display = "block";
                document.getElementById("rekamMedisDropdownIcon-21").classList.remove("fa-chevron-down");
                document.getElementById("rekamMedisDropdownIcon-21").classList.add("fa-chevron-up");
                localStorage.setItem("menuMCUState", "open"); // Simpan state menu IGD
            }


             // Fungsi untuk menutup menu surveilan
            function tutupMenuSurveilan() {
                document.getElementById("rekamMedisDropdown-24").style.display = "none";
                document.getElementById("rekamMedisDropdownIcon-24").classList.remove("fa-chevron-up");
                document.getElementById("rekamMedisDropdownIcon-24").classList.add("fa-chevron-down");
                localStorage.setItem("menuSurveilanstate", "closed"); // Simpan state menu IGD
            }

            // Fungsi untuk membuka menu surveilan
            function bukaMenuSurveilan() {
                tutupSemuaMenu();
                document.getElementById("rekamMedisDropdown-24").style.display = "block";
                document.getElementById("rekamMedisDropdownIcon-24").classList.remove("fa-chevron-down");
                document.getElementById("rekamMedisDropdownIcon-24").classList.add("fa-chevron-up");
                localStorage.setItem("menuSurveilanstate", "open"); // Simpan state menu IGD
            }


            // Tambahkan event listener pada menu Billing
            document.getElementById("laporanHeading").addEventListener("click", function() {
                if (document.getElementById("laporanDropdown").style.display === "none") {
                    bukaMenuBilling();
                } else {
                    tutupMenuBilling();
                }
            });

            // Tambahkan event listener pada sub menu Billing (mencegah menu menutup saat klik sub menu)
            document.getElementById("laporanDropdown").addEventListener("click", function(event) {
                event.stopPropagation();
            });

            // Tambahkan event listener pada menu Rawat Jalan
            document.getElementById("menu-rawat-jalan-heading").addEventListener("click", function() {
                if (document.getElementById("menu-rawat-jalan-dropdown").style.display === "none") {
                    bukaMenuRawatJalan();
                } else {
                    tutupMenuRawatJalan();
                }
            });

            // Tambahkan event listener pada sub menu Rawat Jalan (mencegah menu menutup saat klik sub menu)
            document.getElementById("menu-rawat-jalan-dropdown").addEventListener("click", function(event) {
                event.stopPropagation();
            });

            // Tambahkan event listener pada menu IKBS
            document.getElementById("menu-ikbs-heading").addEventListener("click", function() {
                if (document.getElementById("menu-ikbs-dropdown").style.display === "none") {
                    bukaMenuIKBS();
                } else {
                    tutupMenuIKBS();
                }
            });

            // Tambahkan event listener pada sub menu IKBS (mencegah menu menutup saat klik sub menu)
            document.getElementById("menu-ikbs-dropdown").addEventListener("click", function(event) {
                event.stopPropagation();
            });

            // Tambahkan event listener pada menu Rawat Inap
            document.getElementById("menu-rawat-inap-heading").addEventListener("click", function() {
                if (document.getElementById("menu-rawat-inap-dropdown").style.display === "none") {
                    bukaMenuRawatInap();
                } else {
                    tutupMenuRawatInap();
                }
            });

            // Tambahkan event listener pada sub menu Rawat Inap (mencegah menu menutup saat klik sub menu)
            document.getElementById("menu-rawat-inap-dropdown").addEventListener("click", function(event) {
                event.stopPropagation();
            });

            // Tambahkan event listener pada menu IGD
            document.getElementById("menu-igd-heading").addEventListener("click", function() {
                if (document.getElementById("menu-igd-dropdown").style.display === "none") {
                    bukaMenuIGD();
                } else {
                    tutupMenuIGD();
                }
            });

            // Tambahkan event listener pada sub menu IGD (mencegah menu menutup saat klik sub menu)
            document.getElementById("menu-igd-dropdown").addEventListener("click", function(event) {
                event.stopPropagation();
            });

            // Tambahkan event listener pada menu PT
            document.getElementById("rekamMedisHeading-8").addEventListener("click", function() {
                if (document.getElementById("rekamMedisDropdown-8").style.display === "none") {
                    bukaMenuPT();
                } else {
                    tutupMenuPT();
                }
            });

            // Tambahkan event listener pada sub menu PT (mencegah menu menutup saat klik sub menu)
            document.getElementById("rekamMedisDropdown-8").addEventListener("click", function(event) {
                event.stopPropagation();
            });

            // Tambahkan event listener pada menu FARMASI
            document.getElementById("rekamMedisHeading-9").addEventListener("click", function() {
                if (document.getElementById("rekamMedisDropdown-9").style.display === "none") {
                    bukaMenuFarmasi();
                } else {
                    tutupMenuFarmasi();
                }
            });

            // Tambahkan event listener pada sub menu FARMASI (mencegah menu menutup saat klik sub menu)
            document.getElementById("rekamMedisDropdown-9").addEventListener("click", function(event) {
                event.stopPropagation();
            });


            // Tambahkan event listener pada menu LABORATORIUM
            document.getElementById("rekamMedisHeading-10").addEventListener("click", function() {
                if (document.getElementById("rekamMedisDropdown-10").style.display === "none") {
                    bukaMenuLab();
                } else {
                    tutupMenuLab();
                }
            });

            // Tambahkan event listener pada sub menu LABORATORIUM (mencegah menu menutup saat klik sub menu)
            document.getElementById("rekamMedisDropdown-10").addEventListener("click", function(event) {
                event.stopPropagation();
            });


            // Tambahkan event listener pada menu RADIOLOGI
            document.getElementById("rekamMedisHeading-11").addEventListener("click", function() {
                if (document.getElementById("rekamMedisDropdown-11").style.display === "none") {
                    bukaMenuRad();
                } else {
                    tutupMenuRad();
                }
            });

            // Tambahkan event listener pada sub menu RADIOLOGI (mencegah menu menutup saat klik sub menu)
            document.getElementById("rekamMedisDropdown-11").addEventListener("click", function(event) {
                event.stopPropagation();
            });


            // Tambahkan event listener pada menu VAKSIN
            document.getElementById("rekamMedisHeading-19").addEventListener("click", function() {
                if (document.getElementById("rekamMedisDropdown-19").style.display === "none") {
                    bukaMenuVaksin();
                } else {
                    tutupMenuVaksin();
                }
            });

            // Tambahkan event listener pada sub menu VAKSIN (mencegah menu menutup saat klik sub menu)
            document.getElementById("rekamMedisDropdown-19").addEventListener("click", function(event) {
                event.stopPropagation();
            });




            // Tambahkan event listener pada menu MCU
            document.getElementById("rekamMedisHeading-21").addEventListener("click", function() {
                if (document.getElementById("rekamMedisDropdown-21").style.display === "none") {
                    bukaMenuMCU();
                } else {
                    tutupMenuMCU();
                }
            });

            // Tambahkan event listener pada sub menu MCU (mencegah menu menutup saat klik sub menu)
            document.getElementById("rekamMedisDropdown-21").addEventListener("click", function(event) {
                event.stopPropagation();
            });



            // Tambahkan event listener pada menu KASIR
            document.getElementById("rekamMedisHeading-22").addEventListener("click", function() {
                if (document.getElementById("rekamMedisDropdown-22").style.display === "none") {
                    bukaMenuKasir();
                } else {
                    tutupMenuKasir();
                }
            });

            // Tambahkan event listener pada sub menu KASIR (mencegah menu menutup saat klik sub menu)
            document.getElementById("rekamMedisDropdown-22").addEventListener("click", function(event) {
                event.stopPropagation();
            });


             // Tambahkan event listener pada menu OBAT NARKOPS
            document.getElementById("rekamMedisHeading-23").addEventListener("click", function() {
                if (document.getElementById("rekamMedisDropdown-23").style.display === "none") {
                    bukaMenuNarkops();
                } else {
                    tutupMenuNarkops();
                }
            });

            // Tambahkan event listener pada sub menu OBAT NARKOPS (mencegah menu menutup saat klik sub menu)
            document.getElementById("rekamMedisDropdown-23").addEventListener("click", function(event) {
                event.stopPropagation();
            });

            


              // Tambahkan event listener pada menu SURVEILAN
            document.getElementById("rekamMedisHeading-24").addEventListener("click", function() {
                if (document.getElementById("rekamMedisDropdown-24").style.display === "none") {
                    bukaMenuSurveilan();
                } else {
                    tutupMenuSurveilan();
                }
            });

            // Tambahkan event listener pada sub menu SURVEILAN (mencegah menu menutup saat klik sub menu)
            document.getElementById("rekamMedisDropdown-24").addEventListener("click", function(event) {
                event.stopPropagation();
            });

            // Fungsi untuk memeriksa state menu saat halaman dimuat
            function periksaStateMenu() {
                const menuBillingState = localStorage.getItem("menuBillingState");
                const menuRawatJalanState = localStorage.getItem("menuRawatJalanState");
                const menuIKBSState = localStorage.getItem("menuIKBSState");
                const menuRawatInapState = localStorage.getItem("menuRawatInapState");
                const menuIGDState = localStorage.getItem("menuIGDState");
                const menuPTState = localStorage.getItem("menuPTState");
                const menuFarmasiState = localStorage.getItem("menuFarmasiState");
                const menuLabState = localStorage.getItem("menuLabState");
                const menuRadState = localStorage.getItem("menuRadState");
                const menuVasinState = localStorage.getItem("menuVaksinState");
                const menuMCUState = localStorage.getItem("menuMCUState");
                const menuKasirState = localStorage.getItem("menuKasirState");
                const menuNarkopsState = localStorage.getItem("menuNarkopsState");
                const menuSurveilanState = localStorage.getItem("menuSurveilanstate");

                if (menuBillingState === "open") {
                    bukaMenuBilling();
                }
                if (menuRawatJalanState === "open") {
                    bukaMenuRawatJalan();
                }
                if (menuIKBSState === "open") {
                    bukaMenuIKBS();
                }
                if (menuRawatInapState === "open") {
                    bukaMenuRawatInap();
                }
                if (menuIGDState === "open") {
                    bukaMenuIGD();
                }
                if (menuPTState === "open") {
                    bukaMenuPT();
                }
                if (menuFarmasiState === "open") {
                    bukaMenuFarmasi();
                }
                if (menuLabState === "open") {
                    bukaMenuLab();
                }
                if (menuRadState === "open") {
                    bukaMenuRad();
                }
                if (menuVasinState === "open") {
                    bukaMenuVaksin();
                }
                if (menuVasinState === "open") {
                    bukaMenuMCU();
                }
                 if (menuKasirtate === "open") {
                    bukaMenuKasir();
                }
                 if (menuNarkopstate === "open") {
                    bukaMenuNarkops();
                }
                 if (menuSurveilanState === "open") {
                    bukaMenuSurveilan();
                }
            }

            // Panggil fungsi untuk memeriksa state menu saat halaman dimuat
            document.addEventListener("DOMContentLoaded", periksaStateMenu);
        </script>




        <!-- RAWAT JALAN DROPDOWN FUNTION -->
        <script>
            //Fungsi untuk membuka menu Rawat Jalan
            function bukaMenuRawatJalan2() {
                document.getElementById("menu-rawat-jalan-dropdown-2").style.display = "block";
                document.getElementById("menu-rawat-jalan-icon-2").classList.remove("fa-chevron-down");
                document.getElementById("menu-rawat-jalan-icon-2").classList.add("fa-chevron-up");
                localStorage.setItem("menuRawatJalan2State", "open"); // Simpan state menu Rawat Jalan
            }

            // Fungsi untuk menutup menu Rawat Jalan
            function tutupMenuRawatJalan2() {
                document.getElementById("menu-rawat-jalan-dropdown-2").style.display = "none";
                document.getElementById("menu-rawat-jalan-icon-2").classList.remove("fa-chevron-up");
                document.getElementById("menu-rawat-jalan-icon-2").classList.add("fa-chevron-down");
                localStorage.setItem("menuRawatJalan2State", "closed"); // Simpan state menu Rawat Jalan
            }

            // Tambahkan event listener pada menu Rawat Jalan
            document.getElementById("menu-rawat-jalan-heading-2").addEventListener("click", function() {
                if (document.getElementById("menu-rawat-jalan-dropdown-2").style.display === "none") {
                    bukaMenuRawatJalan2();
                } else {
                    tutupMenuRawatJalan2();
                }
            });

            // Tambahkan event listener pada sub menu Rawat Jalan (mencegah menu menutup saat klik sub menu)
            document.getElementById("menu-rawat-jalan-dropdown-2").addEventListener("click", function(event) {
                event.stopPropagation();
            });

            // Fungsi untuk memeriksa state menu saat halaman dimuat
            function periksaStateMenuRawatJalan2() {
                const menuRawatJalan2State = localStorage.getItem("menuRawatJalan2State");

                if (menuRawatJalan2State === "open") {
                    bukaMenuRawatJalan2();
                }
            }

            // Panggil fungsi untuk memeriksa state menu saat halaman dimuat
            document.addEventListener("DOMContentLoaded", periksaStateMenuRawatJalan2);
        </script>

        <!-- RAWAT INAP DROPDOWN FUNTION -->
        <script>
            //Fungsi untuk membuka menu Rawat Jalan
            function bukaMenuRawatInap2() {
                document.getElementById("menu-rawat-inap-dropdown-2").style.display = "block";
                document.getElementById("menu-rawat-inap-icon-2").classList.remove("fa-chevron-down");
                document.getElementById("menu-rawat-inap-icon-2").classList.add("fa-chevron-up");
                localStorage.setItem("menuRawatInap2State", "open"); // Simpan state menu Rawat Jalan
            }

            // Fungsi untuk menutup menu Rawat Jalan
            function tutupMenuRawatInap2() {
                document.getElementById("menu-rawat-inap-dropdown-2").style.display = "none";
                document.getElementById("menu-rawat-inap-icon-2").classList.remove("fa-chevron-up");
                document.getElementById("menu-rawat-inap-icon-2").classList.add("fa-chevron-down");
                localStorage.setItem("menuRawatInap2State", "closed"); // Simpan state menu Rawat Jalan
            }

            // Tambahkan event listener pada menu Rawat Jalan
            document.getElementById("menu-rawat-inap-heading-2").addEventListener("click", function() {
                if (document.getElementById("menu-rawat-inap-dropdown-2").style.display === "none") {
                    bukaMenuRawatInap2();
                } else {
                    tutupMenuRawatInap2();
                }
            });

            // Tambahkan event listener pada sub menu Rawat Jalan (mencegah menu menutup saat klik sub menu)
            document.getElementById("menu-rawat-inap-dropdown-2").addEventListener("click", function(event) {
                event.stopPropagation();
            });

            // Fungsi untuk memeriksa state menu saat halaman dimuat
            function periksaStateMenuRawatInap2() {
                const menuRawatInap2State = localStorage.getItem("menuRawatInap2State");

                if (menuRawatInap2State === "open") {
                    bukaMenuRawatInap2();
                }
            }

            // Panggil fungsi untuk memeriksa state menu saat halaman dimuat
            document.addEventListener("DOMContentLoaded", periksaStateMenuRawatInap2);
        </script>



        <!-- BILLING DROPDOWN FUNTION -->
        <script>
            // Fungsi untuk menutup semua menu
            function tutupSemuaMenu1() {
                document.getElementById("rekamMedisDropdown-12").style.display = "none";
                document.getElementById("rekamMedisDropdown-13").style.display = "none";
                document.getElementById("rekamMedisDropdown-14").style.display = "none";
                document.getElementById("rekamMedisDropdown-15").style.display = "none";
                document.getElementById("rekamMedisDropdown-16").style.display = "none";
                document.getElementById("rekamMedisDropdown-17").style.display = "none";
                document.getElementById("rekamMedisDropdown-18").style.display = "none";


                // Reset semua ikon ke keadaan default (panah ke bawah)
                document.getElementById("rekamMedisDropdownIcon-12").classList.remove("fa-chevron-up");
                document.getElementById("rekamMedisDropdownIcon-12").classList.add("fa-chevron-down");
                document.getElementById("rekamMedisDropdownIcon-13").classList.remove("fa-chevron-up");
                document.getElementById("rekamMedisDropdownIcon-13").classList.add("fa-chevron-down");
                document.getElementById("rekamMedisDropdownIcon-14").classList.remove("fa-chevron-up");
                document.getElementById("rekamMedisDropdownIcon-14").classList.add("fa-chevron-down");
                document.getElementById("rekamMedisDropdownIcon-15").classList.remove("fa-chevron-up");
                document.getElementById("rekamMedisDropdownIcon-15").classList.add("fa-chevron-down");
                document.getElementById("rekamMedisDropdownIcon-16").classList.remove("fa-chevron-up");
                document.getElementById("rekamMedisDropdownIcon-16").classList.add("fa-chevron-down");
                document.getElementById("rekamMedisDropdownIcon-17").classList.remove("fa-chevron-up");
                document.getElementById("rekamMedisDropdownIcon-17").classList.add("fa-chevron-down");
                document.getElementById("rekamMedisDropdownIcon-18").classList.remove("fa-chevron-up");
                document.getElementById("rekamMedisDropdownIcon-18").classList.add("fa-chevron-down");
              
            }

            // Fungsi untuk membuka menu BILLING
            function bukaMenuBilling1() {
                tutupSemuaMenu1(); // Tutup semua menu sebelum membuka menu BILLING
                document.getElementById("rekamMedisDropdown-12").style.display = "block";
                document.getElementById("rekamMedisDropdownIcon-12").classList.remove("fa-chevron-down");
                document.getElementById("rekamMedisDropdownIcon-12").classList.add("fa-chevron-up");
                localStorage.setItem("menuBillingState", "open"); // Simpan state menu BILLING
            }

            // Fungsi untuk menutup menu BILLING
            function tutupMenuBilling1() {
                document.getElementById("rekamMedisDropdown-12").style.display = "none";
                document.getElementById("rekamMedisDropdownIcon-12").classList.remove("fa-chevron-up");
                document.getElementById("rekamMedisDropdownIcon-12").classList.add("fa-chevron-down");
                localStorage.setItem("menuBillingState", "closed"); // Simpan state menu BILLING
            }

            // Tambahkan event listener pada menu BILLING
            document.getElementById("rekamMedisHeading-12").addEventListener("click", function() {
                if (document.getElementById("rekamMedisDropdown-12").style.display === "none") {
                    bukaMenuBilling1();
                } else {
                    tutupMenuBilling1();
                }
            });

            // Tambahkan event listener pada sub menu BILLING (mencegah menu menutup saat klik sub menu)
            document.getElementById("rekamMedisDropdown-12").addEventListener("click", function(event) {
                event.stopPropagation();
            });

            // Fungsi untuk membuka menu IKBS
            function bukaMenuBilling2() {
                tutupSemuaMenu1(); // Tutup semua menu sebelum membuka menu IKBS
                document.getElementById("rekamMedisDropdown-13").style.display = "block";
                document.getElementById("rekamMedisDropdownIcon-13").classList.remove("fa-chevron-down");
                document.getElementById("rekamMedisDropdownIcon-13").classList.add("fa-chevron-up");
                localStorage.setItem("menuBillingikbsState", "open"); // Simpan state menu IKBS
            }

            // Fungsi untuk menutup menu IKBS
            function tutupMenuBilling2() {
                document.getElementById("rekamMedisDropdown-13").style.display = "none";
                document.getElementById("rekamMedisDropdownIcon-13").classList.remove("fa-chevron-up");
                document.getElementById("rekamMedisDropdownIcon-13").classList.add("fa-chevron-down");
                localStorage.setItem("menuBillingikbsState", "closed"); // Simpan state menu IKBS
            }

            // Tambahkan event listener pada menu IKBS
            document.getElementById("rekamMedisHeading-13").addEventListener("click", function() {
                if (document.getElementById("rekamMedisDropdown-13").style.display === "none") {
                    bukaMenuBilling2();
                } else {
                    tutupMenuBilling2();
                }
            });


            // Fungsi untuk membuka menu RAWAT JALAN
            function bukaMenuBilling3() {
                tutupSemuaMenu1(); // Tutup semua menu sebelum membuka menu RAWAT JALAN
                document.getElementById("rekamMedisDropdown-14").style.display = "block";
                document.getElementById("rekamMedisDropdownIcon-14").classList.remove("fa-chevron-down");
                document.getElementById("rekamMedisDropdownIcon-14").classList.add("fa-chevron-up");
                localStorage.setItem("menuBillingRajalState", "open"); // Simpan state menu RAWAT JALAN
            }

            // Fungsi untuk menutup menu RAWAT JALAN
            function tutupMenuBilling3() {
                document.getElementById("rekamMedisDropdown-14").style.display = "none";
                document.getElementById("rekamMedisDropdownIcon-14").classList.remove("fa-chevron-up");
                document.getElementById("rekamMedisDropdownIcon-14").classList.add("fa-chevron-down");
                localStorage.setItem("menuBillingRajalState", "closed"); // Simpan state menu RAWAT JALAN 
            }

            // Tambahkan event listener pada menu RAWAT JALAN
            document.getElementById("rekamMedisHeading-14").addEventListener("click", function() {
                if (document.getElementById("rekamMedisDropdown-14").style.display === "none") {
                    bukaMenuBilling3();
                } else {
                    tutupMenuBilling3();
                }
            });

            // Tambahkan event listener pada sub menu RAWAT JALAN (mencegah menu menutup saat klik sub menu)
            document.getElementById("rekamMedisDropdown-14").addEventListener("click", function(event) {
                event.stopPropagation();
            });


            // Fungsi untuk membuka menu RAWAT INAP
            function bukaMenuBilling4() {
                tutupSemuaMenu1(); // Tutup semua menu sebelum membuka menu RAWAT INAP
                document.getElementById("rekamMedisDropdown-15").style.display = "block";
                document.getElementById("rekamMedisDropdownIcon-15").classList.remove("fa-chevron-down");
                document.getElementById("rekamMedisDropdownIcon-15").classList.add("fa-chevron-up");
                localStorage.setItem("menuBillingRanapState", "open"); // Simpan state menu RAWAT INAP
            }

            // Fungsi untuk menutup menu RAWAT INAP
            function tutupMenuBilling4() {
                document.getElementById("rekamMedisDropdown-15").style.display = "none";
                document.getElementById("rekamMedisDropdownIcon-15").classList.remove("fa-chevron-up");
                document.getElementById("rekamMedisDropdownIcon-15").classList.add("fa-chevron-down");
                localStorage.setItem("menuBillingRanapState", "closed"); // Simpan state menu RAWAT INAP 
            }

            // Tambahkan event listener pada menu RAWAT INAP
            document.getElementById("rekamMedisHeading-15").addEventListener("click", function() {
                if (document.getElementById("rekamMedisDropdown-15").style.display === "none") {
                    bukaMenuBilling4();
                } else {
                    tutupMenuBilling4();
                }
            });

            // Tambahkan event listener pada sub menu RAWAT INAP (mencegah menu menutup saat klik sub menu)
            document.getElementById("rekamMedisDropdown-15").addEventListener("click", function(event) {
                event.stopPropagation();
            });


            // Fungsi untuk membuka menu IGD
            function bukaMenuBilling5() {
                tutupSemuaMenu1(); // Tutup semua menu sebelum membuka menu IGD
                document.getElementById("rekamMedisDropdown-16").style.display = "block";
                document.getElementById("rekamMedisDropdownIcon-16").classList.remove("fa-chevron-down");
                document.getElementById("rekamMedisDropdownIcon-16").classList.add("fa-chevron-up");
                localStorage.setItem("menuBillingIGDState", "open"); // Simpan state menu IGD
            }

            // Fungsi untuk menutup menu IGD
            function tutupMenuBilling5() {
                document.getElementById("rekamMedisDropdown-16").style.display = "none";
                document.getElementById("rekamMedisDropdownIcon-16").classList.remove("fa-chevron-up");
                document.getElementById("rekamMedisDropdownIcon-16").classList.add("fa-chevron-down");
                localStorage.setItem("menuBillingIGDState", "closed"); // Simpan state menu IGD
            }

            // Tambahkan event listener pada menu IGD
            document.getElementById("rekamMedisHeading-16").addEventListener("click", function() {
                if (document.getElementById("rekamMedisDropdown-16").style.display === "none") {
                    bukaMenuBilling5();
                } else {
                    tutupMenuBilling5();
                }
            });

            // Tambahkan event listener pada sub menu IGD (mencegah menu menutup saat klik sub menu)
            document.getElementById("rekamMedisDropdown-16").addEventListener("click", function(event) {
                event.stopPropagation();
            });



            // Fungsi untuk membuka menu FARMASI BILLING
            function bukaMenuBilling6() {
                tutupSemuaMenu1(); // Tutup semua menu sebelum membuka menu IGD
                document.getElementById("rekamMedisDropdown-17").style.display = "block";
                document.getElementById("rekamMedisDropdownIcon-17").classList.remove("fa-chevron-down");
                document.getElementById("rekamMedisDropdownIcon-17").classList.add("fa-chevron-up");
                localStorage.setItem("menuBillingFarmasiState1", "open"); // Simpan state menu FARMASI BILLING
            }

            // Fungsi untuk menutup menu FARMASI BILLING
            function tutupMenuBilling6() {
                document.getElementById("rekamMedisDropdown-17").style.display = "none";
                document.getElementById("rekamMedisDropdownIcon-17").classList.remove("fa-chevron-up");
                document.getElementById("rekamMedisDropdownIcon-17").classList.add("fa-chevron-down");
                localStorage.setItem("menuBillingFarmasiState1", "closed"); // Simpan state menu FARMASI BILLING
            }

            // Tambahkan event listener pada menu FARMASI BILLING
            document.getElementById("rekamMedisHeading-17").addEventListener("click", function() {
                if (document.getElementById("rekamMedisDropdown-17").style.display === "none") {
                    bukaMenuBilling6();
                } else {
                    tutupMenuBilling6();
                }
            });

            // Tambahkan event listener pada sub menu FARMASI BILLING (mencegah menu menutup saat klik sub menu)
            document.getElementById("rekamMedisDropdown-17").addEventListener("click", function(event) {
                event.stopPropagation();
            });


            // Fungsi untuk membuka menu REKAM MEDIS DIREKTUR
            function bukaMenuBilling7() {
                tutupSemuaMenu1(); // Tutup semua menu sebelum membuka menu IGD
                document.getElementById("rekamMedisDropdown-18").style.display = "block";
                document.getElementById("rekamMedisDropdownIcon-18").classList.remove("fa-chevron-down");
                document.getElementById("rekamMedisDropdownIcon-18").classList.add("fa-chevron-up");
                localStorage.setItem("menuBillingRekamMedisState", "open"); // Simpan state menu FARMASI BILLING
            }

            // Fungsi untuk menutup menu REKAM MEDIS DIREKTUR
            function tutupMenuBilling7() {
                document.getElementById("rekamMedisDropdown-18").style.display = "none";
                document.getElementById("rekamMedisDropdownIcon-18").classList.remove("fa-chevron-up");
                document.getElementById("rekamMedisDropdownIcon-18").classList.add("fa-chevron-down");
                localStorage.setItem("menuBillingRekamMedisState", "closed"); // Simpan state menu FARMASI BILLING
            }

            // Tambahkan event listener pada menu REKAM MEDIS DIREKTUR
            document.getElementById("rekamMedisHeading-18").addEventListener("click", function() {
                if (document.getElementById("rekamMedisDropdown-18").style.display === "none") {
                    bukaMenuBilling7();
                } else {
                    tutupMenuBilling7();
                }
            });

            // Tambahkan event listener pada sub menu REKAM MEDIS DIREKTUR (mencegah menu menutup saat klik sub menu)
            document.getElementById("rekamMedisDropdown-18").addEventListener("click", function(event) {
                event.stopPropagation();
            });


            // Fungsi untuk memeriksa state menu saat halaman dimuat
            function periksaStateMenu1() {
                const menuBillingState = localStorage.getItem("menuBillingState");
                const menuBillingikbsState = localStorage.getItem("menuBillingikbsState");
                const menuBillingRajalState = localStorage.getItem("menuBillingRajalState");
                const menuBillingRanapState = localStorage.getItem("menuBillingRanapState");
                const menuBillingIGDState = localStorage.getItem("menuBillingIGDState");
                const menuBillingFarmasiState1 = localStorage.getItem("menuBillingFarmasiState1");
                const menuBillingRekamMedisState = localStorage.getItem("menuBillingRekamMedisState");
       

                if (menuBillingState === "open") {
                    bukaMenuBilling1();
                }
                if (menuBillingikbsState === "open") {
                    bukaMenuBilling2();
                }
                if (menuBillingRajalState === "open") {
                    bukaMenuBilling3();
                }
                if (menuBillingRanapState === "open") {
                    bukaMenuBilling4();
                }
                if (menuBillingIGDState === "open") {
                    bukaMenuBilling5();
                }
                if (menuBillingFarmasiState1 === "open") {
                    bukaMenuBilling6();
                }
                if (menuBillingRekamMedisState === "open") {
                    bukaMenuBilling7();
                }
            }

            // Panggil fungsi untuk memeriksa state menu saat halaman dimuat
            document.addEventListener("DOMContentLoaded", periksaStateMenu1);
        </script>