body {
    display: flex;
}

/* Sidebar Normal */


.custom-datatable-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
}

.custom-datatable-header .left,
.custom-datatable-header .right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dataTables_length,
.dataTables_filter {
    margin: 0;
}


.dataTables_paginate {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.dataTables_paginate .paginate_button {
    padding:0 !important;
    margin: 0px;
    border: 1px solid #ddd;
    background-color: #f8f9fa;
    color: #333;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.dataTables_paginate .paginate_button:hover {
    background-color: #007bff;
    color: white !important;
    
}

.dataTables_paginate .paginate_button.current {
    background-color: #007bff;
    color: white !important;
    font-weight: bold;
}

.dataTables_paginate .paginate_button.disabled {
    background-color: #eee;
    color: #aaa;
    cursor: not-allowed;
}

.td-opsi {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.rating .fa-star {
    color: #ccc;
}
.rating .checked {
    color: gold;
}
.varian-container {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 10px;
}
.varian-container img {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    cursor: pointer;
    object-fit: cover;
}
.rating-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

.sidebar {
    width: 250px;
    height: 100vh;
    background: #343a40;
    color: white;
    z-index: 1050;
    position: fixed;
    top: 0;
    left: 0;
    padding: 15px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-container {
    flex-grow: 1;
    /* Membuat bagian ini memenuhi sisa tinggi sidebar */
    overflow-y: auto;
    /* Scroll jika menu terlalu panjang */
    max-height: 70vh;
    /* Agar tidak melebihi tinggi sidebar */
}

.menu-container::-webkit-scrollbar {
    width: 6px;
}

.menu-container::-webkit-scrollbar-thumb {
    background: #f8f9fa;
    border-radius: 10px;
}

.menu-container::-webkit-scrollbar-track {
    border-radius: 10px;
    background: #aaa;
}

.change::-webkit-scrollbar {
    display: none;
}

/* Sidebar Icon Mode */
.sidebar.small {
    width: 60px;
    padding: 10px;
}

.sidebar.small h4,
.sidebar.small .nav-item span {
    display: none;
}

.sidebar .nav {
    flex-grow: 1;
}

.sidebar .nav-item {
    padding: 5px 0;
}

.sidebar .nav-link {
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s ease;
    padding: 8px;
    border-radius: 5px;
}

.icon-center {
    display: flex;
    justify-content: center;
}

.sidebar .nav-link i {
    font-size: 18px;
}

.sidebar .nav-link:hover {
    background: #495057;
}

.content {
    margin-left: 250px;
    padding: 20px;   
    flex-grow: 1;
    transition: margin-left 0.3s ease;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

.toggle-btn {
    background: transparent;
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    text-align: center;
    display: none;
}



@media (max-width: 600px) {
    .sidebar {
        width: 50px;
    }

    .content {
        margin-left: 50px;
    }

    .sidebar.active {
        width: 250px;
    }

    .sidebar.active h4,
    .sidebar.active .nav-item span {
        display: inline;
    }

    .toggle-btn {
        display: block;
    }

}

