/* Sembunyikan Scrollbar di Seluruh Halaman */

body {

    background-color: var(--bs-white);
    overflow-y: auto; /* Enable vertical scrolling */

}



/* Sembunyikan Scrollbar di Elemen dengan Overflow */

::-webkit-scrollbar {

    display: none; /* Untuk Chrome, Safari */

}



html {

    overflow-y: scroll; /* Always show vertical scrollbar to prevent layout shift */
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: #c1c1c1 #f1f1f1; /* For Firefox */
}

/* Custom Scrollbar Styling (WebKit browsers) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  
  ::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
  }
  
  ::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
    border: 2px solid #f1f1f1;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
  }
  
  /* Enable Scrollbar for Sidebar Menu */
  .nav_menu {
    overflow-y: auto; /* Enable scrolling */
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: rgba(255,255,255,0.3) transparent; /* For Firefox */
  }

  .nav_menu::-webkit-scrollbar {
    width: 5px;
  }
  
  .nav_menu::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
  }



 



 /* Modern Header */

header {

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    height: var(--header-h);

    background: rgba(255, 255, 255, 0.9); /* Transparan untuk efek modern */

    /*box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);*/

    z-index: 10;

    /*backdrop-filter: blur(10px);*/

    transition: none;

}



/* Sidebar Navigation */

header ._left {

    background: linear-gradient(135deg, #007bff, #002e71);

    width: var(--navmenu-w);

    height: 100vh;

    /*box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);*/

    position: fixed;

    left: 0;

    top: 0;

    z-index: 10;

    display: flex;

    flex-direction: column;

    align-items: center;

    padding-top: 20px;

    /*transition: all 0.3s ease-in-out;*/

}



/* Sidebar Links */

header ._left a {

    color: var(--bs-white);

    text-decoration: none;

    /*font-size: 1rem;*/

    font-weight: 500;

    padding: 12px 20px;

    display: block;

    /*transition: all 0.3s ease-in-out;*/

    border-radius: 8px;

}



header ._left a:hover {

    background: rgba(255, 255, 255, 0.2);

    /*transform: translateX(5px);*/

}



/* Responsive Design */

@media (max-width: 768px) {

    header ._left {

        width: 250px;

        overflow: hidden;

    }



    header ._left a {

        /*text-align: center;*/

        font-size: 0.85rem;

        padding: 10px;

    }

}





.btn-coll-menu {

    position: absolute;

    top: 0;

    margin-left: calc(var(--navmenu-w));

    height: var(--header-h);

    display: flex;

    align-items: center;

    padding: 0 20px;

    z-index: 3;

}

.btn-coll-menu button {

    color: #007bff;

    font-size: 1.1rem;

    background-color: transparent;

}

.btn-coll-menu button::before {

    content: "\f0c9";

    font-family: "Font Awesome 6 Free";

    font-weight: 600;

}

.btn-coll-menu button:active {

    transform: none;

}

.btn-coll-menu a {

    text-decoration: none;

    color: #007bff

    font-weight: bold;

    font-size: 1rem;

    margin-left: 10px;

}

.web_title {

    height: var(--header-h);

    width: 100%;

    display: flex;

    justify-content: center;

    align-items: center;

    font-size: 1.6rem;

    font-weight: bold;

    position: relative;

    overflow: hidden;

    white-space: nowrap;

    margin: 0;

}

.web_title img {

    height: 40px;

    object-fit: cover;

}



.nav_menu {

    position: relative;

    margin-top: 10px;

    max-height: calc(100vh - var(--header-h) - 10px);

    overflow-y: auto;

    padding-bottom: 50px;

}

.nav_menu h2 {

    font-size: .8rem;

    color: var(--bs-white);

    padding: 0 20px;

    letter-spacing: .8px;

    margin-bottom: 12px;

}

.nav_menu ul {

    list-style: none;

    padding: 0;

    margin: 0;

}

.nav_menu > ul {

    margin-bottom: 30px;

}

.nav_menu ul ul {

    margin-top: 7px;

    padding-left: 60px;

    padding-top: 20px;

    padding-bottom: 12px;

    font-size: 0.87rem;

    background-color: rgba(0,0,0,0.1);

    display: none;

}

.nav_menu ul ul li {

    margin-bottom: 10px;

    position: relative;

    letter-spacing: .8px;

}

.nav_menu ul ul li.active a {

    font-weight: bold;

}

 

.nav_menu ul ul {

    margin-top: 7px;

    padding-left: 20px; /* Geser teks ke kanan */

    padding-top: 20px;

    padding-bottom: 12px;

    font-size: 0.87rem;

    background-color: rgba(0, 0, 0, 0.1); /* Default background */

    display: none;

}



/* Full background kiri dan kanan saat hover dan aktif */

.nav_menu ul ul li {

    position: relative;

}



.nav_menu ul ul li:hover::before,

.nav_menu ul ul li.active::before {

    content: "";

    position: absolute;

    left: 0;

    right: 0;

    top: 0;

    bottom: 0;

    background-color: rgba(0, 0, 0, 0.3); /* Warna background saat hover/aktif */

    border-radius: 0; /* Pastikan background berbentuk persegi penuh */

    z-index: -1; /* Memastikan background di belakang teks */

}



/* Telunjuk panah di samping kiri menu saat aktif */

.nav_menu ul ul li.active::after {

    content: "➤"; /* Karakter Unicode untuk panah telunjuk */

    font-size: 14px;

    position: absolute;

    left: -18px;

    top: 50%;

    transform: translateY(-50%);

    color: var(--bs-white);

}



/* Geser teks agar tidak terlalu ke kiri */

.nav_menu ul ul li a {

    position: relative;

    padding-left: 20px;

    z-index: 1; /* Pastikan teks di atas background */

}



/* Warna teks saat menu aktif */

.nav_menu ul ul li.active a {

    color: var(--bs-white);

}





.nav_menu ul ul li:not(.active) {

    opacity: .9;

}

.nav_menu > ul > li {

    margin-bottom: 10px;

}

.nav_menu > ul > li > a {

   position: relative;

   display: block;

   border-radius: 2rem;

   height: 45px;

   display: flex;

   justify-content: space-between;

   align-items: center;

}

.nav_menu > ul > li:has(ul) > a::after {

    content: "\f054";

    font-family: "Font Awesome 6 Free";

    font-weight: 600;

    position: absolute;

    right: 20px;

    top: 16px;

    font-size: .75rem;

    color: rgba(255, 255, 255, 0.5);

}

.nav_menu > ul > li:has(ul) > a.show_submenu::after {

    content: "\f078";

}

.nav_menu > ul > li.active > a > span {

    font-weight: bold;

}

.nav_menu > ul > li.active > a::before  {

    content: "";

    width: 5px;

    height: 60%;

    position: absolute;

    left: 0;

    background-color: #fff;

    border-radius: 0 5px 5px 0;

}

.nav_menu > ul > li > a > i {

    display: block;

    width: 55px;

    padding-left: 10px;

    line-height: 45px;

    text-align: center;

    /* background-color: #000; */

    border-radius: 2rem;

}

.nav_menu > ul > li > a > span {

   width: calc(100% - 55px);

}

.hide_menu header ._left, .collp-menu header ._left {

    display: none;

}

.collp-menu.hide_menu header ._left {

    display: block;

}

.collp-menu main, .collp-menu .btn-coll-menu, .hide_menu .btn-coll-menu, .hide_menu main {

    margin-left: 0;

}

.collp-menu.hide_menu .btn-coll-menu, .collp-menu.hide_menu main {

    margin-left: var(--navmenu-w);

}

.collp-menu.hide_menu .btn-coll-menu button::before {

    content: "\f060";

}

.hide_menu .btn-coll-menu button::before {

    content: "\f061";

}

.fadeout_menu .btn-coll-menu button::before {

    content: "\f060";

}

.fadeout_menu .btn-coll-menu, .fadeout_menu main {

    /*animation: slideLeftIconMenu 300ms forwards;*/

}

.fadeIn_menu .btn-coll-menu, .fadeIn_menu main {

    /*animation: slideRightIconMenu 300ms forwards;*/

}

.fadein_menu header ._left, .collp-menu.fadeIn_menu header ._left {

    /*animation: fadeInMenu 400ms forwards;*/

}

.fadeout_menu header ._left, .collp-menu.fadeout_menu header ._left {

    /*animation: fadeOutMenu 400ms forwards;*/

}



header ._right {

    position: absolute;

    right: 0;

    top: 0;

    height: var(--header-h);

    display: flex;

    align-items: center;

    padding: 0 30px;

}

header ._right > ul {
    padding: 0;
    margin: 0;
    list-style: none;
    gap: 20px;
}

@media (max-width: 768px) {
    header ._right > ul {
        gap: 5px !important;
    }
}

header ._right > ul > li:last-child {

    border-left: 1px solid rgba(0,0,0,0.1);

    padding-left: 20px;

}

header ._right > ul .menu button {

    position: relative;

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    background-color: transparent;

}

header ._right > ul .menu button i {

    color: #007bff;

    font-size: 1rem;

    position: relative;

    top: 1px;

}

header ._right > ul .menu button span {

    background-color: var(--danger);

    position: absolute;

    right: 3px;

    top: 1px;

    border: 2px solid var(--bs-light);

    border-radius: 100%;

    width: 10px;

    height: 10px;

}

header ._right > ul .menu .icon {

    width: 45px;

    height: 45px;

    background-color: var(--bs-light);

    border-radius: 100%;

    display: flex;

    justify-content: center;

    align-items: center;

} 

header ._right > ul .menu .text {

    width: calc(100% - 60px);

}  

header ._right > ul > li > ._img {

    width: 30px;

    height: 30px;

    border-radius: 100%;

    position: relative;

    cursor: pointer;

}

header ._right img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}

header ._right > ul > li > ._img span {

    width: 10px;

    height: 10px;

    border-radius: 100%;

    background-color: var(--success);

    border: 2px solid var(--bs-light);

    position: absolute;

    right: -3px;

    bottom: 2px;

    z-index: 1;

}

.dropdown-menu {

    border: 0;

    /*box-shadow: 0 5px 7px 0 rgba(0,0,0,0.05);*/

    border-top: 4px solid #007bff;

    margin-top: -90px !important;
   

}

header ._right .dropdown-menu {

    width: 280px;

}

header ._right .dropdown-menu li:not(:last-child) {

    border-bottom: 1px dashed #eee;

}

header ._right .dropdown-menu .img {

    width: 70px;

    height: 70px;

    position: relative;

    overflow: hidden;

    border-radius: 100%;

    margin: 0 auto 15px;

}

header ._right .dropdown-menu img {

    width: 100%;

    height: 100%;

    object-fit: cover;



}

header ._right ul > li:last-child .dropdown-menu .dropdown-item:is(:active) {

    background-color: var(--primary);

}

header ._right ul > li:last-child .dropdown-menu li:last-child .dropdown-item:is(:active) {

    background-color: var(--danger);

    color: #fff !important;

    /*border-radius: 0 0 0.375rem 0.375rem;*/

}



main {

    position: relative;

    overflow-x: hidden;

    margin-top: var(--header-h);

    margin-left: var(--navmenu-w);

    padding: 30px;

    background-color: rgba(0,0,0,0.01);

    /*border-radius: 2rem 2rem 0 0;*/

    min-height: calc(100vh - var(--header-h));

}

.page_title {

    position: relative;

    margin-bottom: 30px;

}

.page_title h2 {

    font-size: 1.6rem;

    font-weight: 600;

    margin-bottom: 5px;

    color: #007bff;

}

.page_title p {

    margin-bottom: 0; 

    /*color: rgba(0,0,0,0.5);*/

    letter-spacing: .8px; 

    font-size: .8rem;  

}



.chart-date-info h5 {

    letter-spacing: 1px;

    font-weight: bold;

}



.custom-list .list-group-item {

    border-style: dashed;

}

.custom-list .icon {

    width: 50px;

    height: 50px;

    border-radius: 100%;

    background-color: var(--bs-light);

    display: grid;

    place-items: center;

}

.custom-list .text {

    width: calc(100% - 65px);

}

.custom-list h6 {

    font-weight: bold;

}

.custom-list small {

    font-size: .7rem;

}



.cart_list {

    width: calc(100% - 280px - 8px);

    min-height: 31.5vh;

}

.form_pembayaran {

    width: 280px;

}

.shorcut_nominal button {

    font-size: 11px;

    border-radius: 5px;

    padding: 2px 10px;

    border: 1px solid #ccc !important;

    background-color: var(--bs-light);

}

.shorcut_nominal button:active {

    /*transform: scale(1.03);*/

}



/* Efek hover pada menu utama */

.nav_menu > ul > li > a:hover {

    background-color: rgba(255, 255, 255, 0.2);

    /*transition: background-color 0.3s ease;*/

}



/* Efek hover pada submenu */

.nav_menu ul ul li a:hover {

    background-color: rgba(255, 255, 255, 0.1);

    /*transition: background-color 0.3s ease;*/

}





#modal_barcode .img {

    min-height: 90px;

    background-color: var(--bs-light);

    border-radius: 10px;

}



a.badge {

    text-decoration: none;

}

#table-detail-opname th {

    vertical-align: middle;

}

.text-init {

    width: 100%;

    height: 100%;

    background-color: var(--bs-light);

    display: block;

    border-radius: 100%;

    display: flex;

    justify-content: center;

    align-items: center;

}

.text-init.text-lg {

    font-size: 1.3rem;

}

.text-init.text-sm {

    font-size: 0.7rem;

}

.mart_logo .img {

    width: 60px;

    height: 50px;

    background-color: #fff;

    border-radius: 5px;

    position: relative;

    overflow: hidden;

} 

.mart_logo img {

    width: 100%;

    height: 100%;

    object-fit: scale-down;

}

.mart_logo .text {

    width: calc(100% - 60px - 10px);

}

#inp_scanner {

    position: absolute;

    opacity: 0;

    z-index: -1;

    top: 0;

    left: 0;

}

#qr-reader, #qr-reader__dashboard_section_csr button, #html5-qrcode-button-file-selection {

    border: 1px solid #ddd !important;

    border-radius: 5px;

}

#qr-reader__dashboard_section_csr button, #html5-qrcode-button-file-selection {

    background-color: #fff;

    padding: 5px 20px;

}

#html5-qrcode-button-file-selection {

    margin-bottom: 10px;

}

#html5-qrcode-anchor-scan-type-change {

    margin-top: 10px;

    display: inline-block;

    text-decoration: none !important;

    color: rgba(0,0,0,0.7);

}

#import_file_inp {

    width: 100%;

    height: 100%;

    position: absolute;

    top: 0;

    left: 0;

    opacity: 0;

}



/* keyframe Animation */

/*@keyframes fadeInMenu {

    from {

        opacity: 0;

        margin-left: -50px;

    }

    to {

        opacity: 1;

        margin-left: 0;

    }

}

@keyframes fadeOutMenu {

    from {

        opacity: 1;

        margin-left: 0;

    }

    to {

        opacity: 0;

        margin-left: -50px;

    }

}

@keyframes slideLeftIconMenu {

    from {

        margin-left: var(--navmenu-w);

    }

    to {

        margin-left: 0px;

    }

}

@keyframes slideRightIconMenu {

    from {

        margin-left: 0px;

    }

    to {

        margin-left: var(--navmenu-w);

    }

}*/



/* media query */

@media screen and (max-width: 768px) {

    header ._left, .hide_menu header ._right {

        display: none;

    }

    .btn-coll-menu, main {

        margin-left: 0;

    }

    .hide_menu header ._left {

        display: block;

    }

    .hide_menu .btn-coll-menu {

        margin-left: var(--navmenu-w);

    }

    .hide_menu .btn-coll-menu button::before {

        content: "\f060";

    }

    .hide_menu main, .fadeout_menu main, .fadein_menu main, .collp-menu.hide_menu main, .collp-menu.collp-menu.fadeout_menu main, .collp-menu.fadein_menu main {

        margin-left: 0;

    }

    .fadeout_menu .btn-coll-menu button::before {

        content: "\f061";

    }

    .fadeout_menu .btn-coll-menu {

        /*animation: slideRightIconMenu 300ms forwards;*/

    }

    .fadeIn_menu .btn-coll-menu {

        /*animation: slideLeftIconMenu 300ms forwards;*/

    }

    .fadein_menu header ._left {

        /*animation: fadeOutMenu 400ms forwards;*/

    }

    .fadeout_menu header ._left {

        /*animation: fadeInMenu 400ms forwards;*/

    }

    

    .cart_list, .form_pembayaran {

        width: 100%;

    }

}

