body {
            font-family: 'Arial', sans-serif;
            background-color: #f8f9fa;
            margin: 0;
        }
        .sidebar {
            height: 100vh !important;
            background-color: #343a40 !important;
            color: #ffffff !important;
            padding-top: 20px !important;
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            width: 80px !important; /* Default collapsed width */
            transition: all 0.3s ease !important;
            overflow-x: hidden !important;
            z-index: 1000 !important;
        }
        
        .sidebar.sidebar-expanded {
            width: 260px !important; /* Slightly smaller expanded width for better spacing */
        }
        .sidebar.hidden {
            width: 80px;
        }
        .sidebar .logo {
            text-align: center;
            margin-bottom: 20px;
            transition: all 0.3s ease;
        }
        .sidebar .logo img {
            max-width: 50px !important; /* Default collapsed size */
            transition: all 0.3s ease !important;
        }
        .sidebar.sidebar-expanded .logo img {
            max-width: 100px !important; /* Larger when expanded */
        }
        .sidebar.hidden .logo img {
            max-width: 50px;
        }
        .sidebar .logo h4 {
            font-size: 18px !important;
            margin-top: 10px !important;
            opacity: 0 !important; /* Default hidden */
            transition: opacity 0.3s ease !important;
        }
        .sidebar.sidebar-expanded .logo h4 {
            opacity: 1 !important; /* Show when expanded */
        }
        .sidebar.hidden .logo h4 {
            opacity: 0;
        }
        .sidebar a {
            color: #ffffff;
            text-decoration: none;
            display: flex;
            align-items: center;
            padding: 10px 20px;
            transition: all 0.3s ease;
            justify-content: center; /* Default centered */
            overflow: hidden; /* Hide overflow by default */
        }
        .sidebar.sidebar-expanded a {
            justify-content: flex-start; /* Left align when expanded */
            overflow: visible; /* Show full content when expanded */
        }
        .sidebar.hidden a {
            justify-content: center;
        }
        .sidebar a i {
            margin-right: 15px;
            font-size: 18px;
            flex-shrink: 0; /* Don't shrink icons */
        }
        .sidebar a span,
        .sidebar a p {
            display: none !important; /* Default hidden */
        }
        .sidebar.sidebar-expanded a span,
        .sidebar.sidebar-expanded a p {
            display: inline !important; /* Show when expanded */
            white-space: nowrap !important; /* Prevent text wrapping */
            overflow: visible !important; /* Show full text */
            flex: 1 !important; /* Take remaining space */
        }
        .sidebar.hidden a span {
            display: none;
        }
        .sidebar a:hover {
            background-color: #495057;
        }
        .content {
            margin-left: 80px; /* Default for collapsed sidebar */
            padding: 20px;
            transition: all 0.3s ease;
        }
        .content.expanded {
            margin-left: 250px; /* Expanded margin for full sidebar */
        }
        .toggle-btn {
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 10px auto;
            background-color: #495057;
            color: #ffffff;
            border: none;
            border-radius: 5px;
            padding: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 80%;
        }
        .toggle-btn i {
            font-size: 20px;
        }
        .table-responsive {
            overflow-x: auto;
        }
        .table th, .table td {
            white-space: nowrap;
        }
        #timer-container {
        padding: 10px;
        font-size: 14px;
        background: #495057;
        border-radius: 5px;
        margin: 10px auto; /* Default collapsed - centered */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .sidebar.sidebar-expanded #timer-container {
        margin: 10px 20px 0 20px; /* Full margin when expanded */
    }

    #timer {
        font-weight: bold;
        font-size: 16px;
        color: #ffffff;
    }

    .sidebar #timer-container span {
        font-size: 20px; /* Default larger font for collapsed */
    }

    .sidebar.sidebar-expanded #timer-container span {
        font-size: 16px; /* Smaller font when expanded */
    }

    /* Legacy - Saat sidebar di-hide */
    .sidebar.hidden #timer-container {
        text-align: center; /* Tetap di tengah */
        margin: 10px auto; /* Posisikan di tengah */
    }

    .sidebar.hidden #timer-container span {
        font-size: 20px; /* Perbesar angka */
    }
    .nav {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .nav-item {
            margin: 4px 0;
        }

        .nav-link {
            display: flex;
            align-items: center;
            padding: 10px 15px;
            color: #ffffff;
            text-decoration: none;
            transition: all 0.3s ease, padding 0.3s ease, justify-content 0.3s ease;
            border-radius: 5px;
            margin: 0 8px;
            overflow: hidden; /* Hide overflow by default */
        }

        .nav-link:hover {
            background-color: rgba(255, 255, 255, 0.1);
            color: #ffffff;
        }

        .nav-link.active {
            background-color: #2196F3;
            color: #ffffff;
        }

        .nav-link i {
            margin-right: 10px;
            width: 20px;
            text-align: center;
        }

        .nav-link p {
            margin: 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            font-size: 14px;
            opacity: 1;
            transition: opacity 0.3s ease;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .nav-treeview {
            padding-left: 15px;
            margin-top: 5px;
            display: none;
            transition: all 0.3s ease;
        }

        .menu-close .nav-treeview {
            display: none;
        }

        .menu-open .nav-treeview {
            display: block;
        }

        .nav-treeview .nav-item {
            margin: 2px 0;
        }

        .nav-treeview .nav-link {
            padding: 8px 15px 8px 35px;
            font-size: 13px;
            position: relative;
        }

        .nav-treeview .nav-link::before {
            display: none; /* Hide the white dots */
        }

        /* Removed hover and active states for ::before pseudo-element since it's now hidden */

        .fa-angle-left {
            transition: transform 0.3s ease, opacity 0.3s ease;
        }

        .menu-open .fa-angle-left {
            transform: rotate(-90deg);
        }

        /* Default sidebar collapsed state */
        .sidebar .nav-link p {
            display: none !important; /* Default hidden */
            flex: 1 !important; /* Take remaining space */
        }

        .sidebar.sidebar-expanded .nav-link p {
            display: flex !important; /* Show when expanded */
            overflow: visible !important; /* Show full text when expanded */
            text-overflow: none !important;
            flex: 1 !important; /* Take remaining space */
        }

        /* Nav-treeview handling - use class-based approach for better JavaScript control */
        .sidebar .nav-treeview {
            display: none; /* Default hidden when sidebar collapsed */
        }

        .sidebar.sidebar-expanded .nav-treeview {
            display: none; /* Hidden by default even when sidebar expanded */
        }

        .sidebar.sidebar-expanded .nav-item.menu-open .nav-treeview {
            display: block !important; /* Show only when menu is explicitly opened */
        }

        .sidebar .nav-link {
            padding: 10px !important;
            justify-content: center !important; /* Default centered */
        }

        .sidebar.sidebar-expanded .nav-link {
            justify-content: flex-start !important; /* Left align when expanded */
            padding: 10px 20px !important;
            white-space: nowrap !important; /* Prevent text wrapping */
        }

        .sidebar .right.fas.fa-angle-left,
        .sidebar .fas.fa-angle-left {
            display: none !important; /* Hide dropdown arrows by default */
        }

        .sidebar.sidebar-expanded .right.fas.fa-angle-left,
        .sidebar.sidebar-expanded .fas.fa-angle-left {
            display: inline !important; /* Show dropdown arrows when expanded */
        }

        /* Legacy sidebar hidden state for compatibility */
        .sidebar.hidden .nav-link p {
            display: none;
        }

        .sidebar.hidden .nav-treeview {
            padding-left: 0;
        }

        .sidebar.hidden .nav-link {
            padding: 10px;
            justify-content: center;
        }

        .sidebar.hidden .nav-treeview .nav-link {
            padding: 10px;
        }

        /* Pseudo-element ::before is already hidden globally, no need for specific hidden state */

/* Purple theme styles for PSB requests */
.text-purple {
    color: #6f42c1 !important;
}

.btn-outline-purple {
    color: #6f42c1;
    border-color: #6f42c1;
    background-color: transparent;
}

.btn-outline-purple:hover {
    color: #fff;
    background-color: #6f42c1;
    border-color: #6f42c1;
}

.btn-outline-purple:focus, .btn-outline-purple.focus {
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.5);
}

.btn-outline-purple.disabled, .btn-outline-purple:disabled {
    color: #6f42c1;
    background-color: transparent;
}

.btn-outline-purple:not(:disabled):not(.disabled):active, .btn-outline-purple:not(:disabled):not(.disabled).active {
    color: #fff;
    background-color: #6f42c1;
    border-color: #6f42c1;
}

        /* Active state highlighting */
        .nav-treeview .nav-link.active {
            background-color: rgba(255, 255, 255, 0.1);
            color: #2196F3;
            font-weight: 500;
        }

        /* Hover effects */
        .nav-link:hover {
            transform: translateX(3px);
        }

        .nav-treeview .nav-link:hover {
            transform: translateX(3px);
            background-color: rgba(255, 255, 255, 0.05);
        }
        
        /* Tambahkan CSS berikut ke bagian style Anda */
@media (max-width: 768px) {
    .card {
        border: 1px solid rgba(0,0,0,.125);
        box-shadow: 0 2px 4px rgba(0,0,0,.05);
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .row {
        margin: 0;
    }
    
    .badge {
        display: inline-block;
        padding: 0.35em 0.65em;
        font-size: 0.75em;
        font-weight: 700;
        white-space: nowrap;
    }
    
    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .btn i {
        font-size: 0.875rem;
    }
}

.collapse {
        transition: height 0.3s ease; /* Animasi smooth untuk collapse */
    }
    
    .search-container {
        max-width: 500px;
    }
    
    .filter-container select {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .highlight {
        background-color: yellow;
        padding: 2px;
        border-radius: 2px;
    }
    
    .no-results {
        text-align: center;
        padding: 20px;
        background: #f8f9fa;
        border-radius: 5px;
        margin: 10px 0;
    }
    
    .modal-lg {
    max-width: 800px;
}

#customerDetails dl {
    margin-bottom: 0;
}

#customerDetails dt {
    font-weight: 600;
    color: #666;
}

#customerDetails dd {
    margin-bottom: 0.5rem;
}

#customerDetails .border {
    border-color: #dee2e6!important;
}

#customerDetails h6 {
    color: #495057;
    font-weight: 600;
}

.modal {
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-dialog {
    margin: 1.75rem auto;
}

@media (max-width: 768px) {
    .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
}

/* Prevent focus issues */
.modal[inert] {
    pointer-events: none;
    cursor: default;
}

.modal[inert] * {
    pointer-events: none !important;
}

/* Di style.css */
.dataTables_wrapper .dataTables_length select {
    padding: 0.375rem 1.75rem 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
}

.dataTables_wrapper .dataTables_filter input {
    margin-left: 0.5em;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.375rem 0.75rem;
    margin-left: 2px;
    border-radius: 0.25rem;
}

.dataTables_info {
    padding-top: 0.5em;
}

/* ============================================ */
/* MOBILE SIDEBAR OPTIMIZATION - AdminLTE Style */
/* ============================================ */

/* Mobile Toggle Button - Fixed position like AdminLTE */
@media screen and (max-width: 991px) {
    .mobile-sidebar-toggle {
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1050;
        background-color: #007bff;
        color: white;
        border: none;
        border-radius: 4px;
        padding: 8px 12px;
        font-size: 18px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        transition: all 0.3s ease;
        cursor: pointer;
    }
    
    .mobile-sidebar-toggle:hover {
        background-color: #0056b3;
        transform: scale(1.05);
    }
    
    .mobile-sidebar-toggle:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(0,123,255,0.25);
    }
    
    /* Hide original toggle button on mobile */
    .sidebar .toggle-btn {
        display: none;
    }
    
    /* Mobile Sidebar Behavior */
    .sidebar {
        width: 0 !important;
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: none;
    }
    
    .sidebar.mobile-sidebar-open {
        width: 280px !important;
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
    }
    
    /* Mobile Overlay */
    .mobile-sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-sidebar-overlay.show {
        opacity: 1;
        visibility: visible;
    }
    
    /* Content adjustment on mobile */
    .content,
    .col-md-9.ms-sm-auto.col-lg-10,
    .container-fluid main {
        margin-left: 0 !important;
        padding-top: 60px; /* Space for mobile toggle button */
        transition: all 0.3s ease;
    }
    
    /* Mobile sidebar content styling */
    .sidebar.mobile-sidebar-open .logo h4 {
        opacity: 1 !important;
        font-size: 16px !important;
    }
    
    .sidebar.mobile-sidebar-open .nav-link p,
    .sidebar.mobile-sidebar-open .nav-link span {
        display: inline !important;
    }
    
    .sidebar.mobile-sidebar-open .nav-link {
        justify-content: flex-start !important;
        padding: 12px 20px;
    }
    
    /* Mobile navigation improvements */
    .sidebar.mobile-sidebar-open .nav-treeview {
        padding-left: 20px;
    }
    
    .sidebar.mobile-sidebar-open .nav-item.menu-close > .nav-link {
        font-weight: 600;
    }
    
    /* Timer container on mobile */
    .sidebar.mobile-sidebar-open #timer-container {
        margin: 15px 20px;
        text-align: left;
    }
}

/* Extra small mobile devices */
@media screen and (max-width: 575px) {
    .mobile-sidebar-toggle {
        top: 10px;
        left: 10px;
        padding: 6px 10px;
        font-size: 16px;
    }
    
    .sidebar.mobile-sidebar-open {
        width: 100% !important;
    }
    
    .content,
    .col-md-9.ms-sm-auto.col-lg-10,
    .container-fluid main {
        padding-top: 50px;
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Tablet and larger - preserve existing behavior */
@media screen and (min-width: 992px) {
    .mobile-sidebar-toggle {
        display: none;
    }
    
    .mobile-sidebar-overlay {
        display: none;
    }
    
    /* Restore desktop behavior */
    .sidebar {
        width: 80px !important;
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        transition: all 0.3s ease;
    }
    
    .sidebar.sidebar-expanded {
        width: 260px !important;
    }
    
    .content,
    .col-md-9.ms-sm-auto.col-lg-10,
    .container-fluid main {
        margin-left: 80px !important;
        padding-top: 20px;
        transition: margin-left 0.3s ease;
    }
    
    .sidebar.sidebar-expanded ~ .container-fluid .col-md-9.ms-sm-auto.col-lg-10,
    .sidebar.sidebar-expanded ~ .container-fluid main,
    body:has(.sidebar.sidebar-expanded) .col-md-9.ms-sm-auto.col-lg-10,
    body:has(.sidebar.sidebar-expanded) .container-fluid main {
        margin-left: 280px !important;
    }
}

/* Mobile responsive styling - DataTables */
@media screen and (max-width: 767px) {
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        text-align: left;
        float: none;
        margin-bottom: 0.5em;
    }
}

/* DataTables styling */
.dataTables_length {
    margin-bottom: 1rem;
}

.dataTables_length label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Pagination styling */
.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 0.25rem;
    margin-bottom: 0;
}

.page-link {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: #007bff;
    background-color: #fff;
    border: 1px solid #dee2e6;
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    cursor: auto;
    background-color: #fff;
    border-color: #dee2e6;
}

/* Nav-Treeview Enhanced Functionality */
.nav-item.menu-close .nav-treeview {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.nav-item.menu-open .nav-treeview {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Treeview items styling */
.nav-treeview .nav-item .nav-link {
    padding-left: 3rem;
    font-size: 0.9rem;
    color: #6c757d;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.nav-treeview .nav-item .nav-link:hover {
    background-color: #f8f9fa;
    color: #007bff;
    border-left-color: #007bff;
    transform: translateX(5px);
}

.nav-treeview .nav-item .nav-link.active {
    background-color: #e3f2fd;
    color: #007bff;
    border-left-color: #007bff;
    font-weight: 600;
}

/* Entries selector styling */
.dataTables_length select {
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    margin: 0 0.5rem;
}

.icon-rotate {
    transition: transform 0.3s ease;
    display: inline-block;
}

.rotate-180 {
    transform: rotate(180deg);
}

.history-item {
    border-left: 3px solid #007bff;
    padding-left: 10px;
    margin-bottom: 10px;
}

.history-item:last-child {
    margin-bottom: 0;
}

.history-toggle {
    transition: all 0.2s ease;
}

.history-toggle:hover {
    background-color: #0056b3;
    color: white;
}

.history-item .badge {
    font-size: 0.8em;
}

/* Status colors */
.badge.bg-continue {
    background-color: #ffc107;
}

.badge.bg-done {
    background-color: #28a745;
}

/* style.css */
.custom-history-toggle {
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-history-toggle .icon-rotate {
    transition: transform 0.3s ease;
}

.custom-history-toggle .icon-rotate.rotate-180 {
    transform: rotate(180deg);
}

.form-control:disabled {
    cursor: not-allowed;
}

/* Additional classes for proper toggling */
        /* Bootstrap main content areas */
        .col-md-9.ms-sm-auto.col-lg-10,
        .container-fluid main {
            margin-left: 80px !important; /* Default for collapsed sidebar */
            transition: margin-left 0.3s ease !important; /* Ensure transition works with inline styles */
        }

        /* Expanded sidebar margin adjustment with extra spacing */
        .sidebar.sidebar-expanded ~ .container-fluid .col-md-9.ms-sm-auto.col-lg-10,
        .sidebar.sidebar-expanded ~ .container-fluid main,
        .sidebar.sidebar-expanded ~ * .col-md-9.ms-sm-auto.col-lg-10,
        .sidebar.sidebar-expanded ~ * main,
        body:has(.sidebar.sidebar-expanded) .col-md-9.ms-sm-auto.col-lg-10,
        body:has(.sidebar.sidebar-expanded) .container-fluid main,
        body:has(.sidebar.sidebar-expanded) main.col-md-9,
        body:has(.sidebar.sidebar-expanded) .content-wrapper {
            margin-left: 280px !important; /* 260px sidebar + 20px spacing for comfortable viewing */
        }

        /* Duplicate CSS rules removed - handled by the comprehensive selectors above */

        .sidebar-collapse .sidebar {
            width: 80px;
        }

        .sidebar-collapse .content-wrapper {
            margin-left: 80px;
        }

.sidebar-open .sidebar {
    width: 250px;
}

.sidebar-open .content-wrapper {
    margin-left: 250px;
}

/* Content adjustments */
.content-wrapper {
    margin-left: 250px;
    padding: 20px;
    transition: all 0.3s ease;
}

.content-wrapper.expanded {
    margin-left: 80px;
}

/* Toggle button styling */
.toggle-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px auto;
    background-color: #495057;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 80%;
}

/* ============================================ */
/* ADMINLTE CUSTOMIZATIONS & MOBILE OPTIMIZATIONS */
/* ============================================ */

/* AdminLTE User Image Styling */
.user-image {
    width: 25px;
    height: 25px;
}

/* Mobile Responsive Improvements for AdminLTE */
@media (max-width: 767px) {
    .app-content {
        padding: 0.5rem;
    }
    
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* AdminLTE Sidebar Mobile Optimizations */
    .app-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }
    
    .sidebar-open .app-sidebar {
        transform: translateX(0);
    }
}

/* Fix AdminLTE button styles */
.btn-mobile-secondary {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
    margin: 0.125rem;
}

/* AdminLTE Treeview Enhancements */
.nav-treeview {
    padding-left: 1rem;
}