      :root {
            /* Audiotek Brand Colors */
            --at-red: #E31B23;
            --at-red-dark: #B9141A;
            --at-red-light: #FF2B33;
            
            /* Light Theme Colors */
            --at-bg: #f8f9fa;
            --at-bg-gradient: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #e9ecef 100%);
            --at-card-bg: #ffffff;
            --at-text-primary: #1a1a1a;
            --at-text-secondary: #6c757d;
            --at-text-muted: #adb5bd;
            --at-border: #e9ecef;
            --at-border-hover: #dee2e6;
            --at-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
            --at-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
            --at-glass: rgba(255, 255, 255, 0.85);
        }
        
        * {
            font-family: 'Inter', sans-serif;
        }
        
        body {
            min-height: 100vh;
            background: var(--at-bg-gradient);
            position: relative;
            overflow-x: hidden;
            color: var(--at-text-primary);
        }

        /* DataTable header */
        table.dataTable thead th {
            background-color: #f3f8fc;   /* dark */
            color: #514d5a;
            border-bottom: 2px solid #454d55;
            text-transform: uppercase;
            font-size: 0.70rem;
        }
        /* Global font */
        body, .content-wrapper, .main-footer, .main-sidebar {
            font-family: 'Inter', 'Segoe UI', sans-serif;
            font-size: 14px; /* adjust as needed */
        }

        /* Headings */
        h1 { font-size: 28px; font-weight: 600; }
        h2 { font-size: 24px; font-weight: 600; }
        h3 { font-size: 20px; font-weight: 500; }
        h4, h5, h6 { font-weight: 500; }

        /* Sidebar menu */
        .nav-sidebar .nav-link {
            font-size: 13px;
        }

        /* Navbar */
        .navbar {
            font-size: 14px;
        }

        /* Cards */
        .card-title {
            font-size: 16px;
            font-weight: 600;
        }

        input.form-control {
            border-color:#bac0c5!important;
        }

        /* Slight left indent for submenu items */
        .nav-sidebar .nav-treeview {
            padding-left: 12px;   /* try 8–20px */
        }

        #pdfModal .modal-dialog {
            height: 95vh;
        }

        #pdfModal .modal-content {
            height: 100%;
        }

        #pdfModal .modal-body {
            height: 100%;
        }

        /* Excel-like compact look */
        .tabulator {
            font-size: 13px;
            border: 1px solid #e5e7eb;
        }

        .tabulator .tabulator-header {
            background: #f8f9fa;
            border-bottom: 1px solid #e5e7eb;
            font-weight: 500;
        }

        .tabulator .tabulator-col {
            border-right: 1px solid #e5e7eb;
        }

        .tabulator .tabulator-row {
            min-height: 32px;
        }

        .tabulator .tabulator-cell {
            padding: 4px 6px;
            border-right: 1px solid #f1f3f5;
        }

        /* Active cell like Excel */
        .tabulator-cell.tabulator-editing {
            background: #fff;
            outline: 2px solid #0d6efd;
            outline-offset: -2px;
        }

        /* Hover row */
        .tabulator-row:hover {
            background-color: #f9fafb;
        }

        /* Remove heavy footer */
        .tabulator-footer {
            display: none;
        }
        #subtotal, #tax {
        color: #6c757d;
        }

        #grandTotal {
            color: #0d6efd;
        }

        .chart-wrapper {
            min-height: 150px;
            min-width: 0; 
            position: relative;
        }

        /* Make notification dropdown wider */
        .navbar .dropdown-menu {
            width: 400px !important;   /* adjust width as needed */
            max-width: 90vw;           /* prevent overflow on small screens */
            right: 10px;               /* keep it aligned */
        }

        /* Keep scrollable */
        .navbar .dropdown-menu > div {
            max-height: 350px;        /* adjust scroll height */
            overflow-y: auto;
        }

        /* Optional: modern hover effect */
        .notif-item:hover {
            background-color: #f4f6f9;
        }

    /* ===== MINIMAL UI IMPROVEMENTS - SAFE & NON-BREAKING ===== */
    
    /* Better typography */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    h1, h2, h3, h4, h5, h6 {
        font-weight: 600;
        letter-spacing: -0.02em;
    }
    
    /* Subtle card improvements */
    .card {
        border-radius: 12px !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
        border: 1px solid rgba(0, 0, 0, 0.06) !important;
        transition: box-shadow 0.2s ease;
    }
    .card:hover {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    }
    .card-header {
        border-radius: 12px 12px 0 0 !important;
        background: #f8f9fa !important;
        font-weight: 600;
    }
    
    /* Better buttons */
    .btn {
        border-radius: 8px !important;
        font-weight: 500;
        padding: 0.5rem 1rem;
        transition: all 0.2s ease;
    }
    .btn-primary {
        box-shadow: 0 2px 6px rgba(13, 110, 253, 0.2);
    }
    .btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
    }
    .btn-outline-primary {
        border-width: 2px;
    }
    
    /* Improved forms */
    .form-control, .form-select {
        border-radius: 8px !important;
        border: 1px solid #ced4da !important;
        padding: 0.6rem 0.8rem;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }
    .form-control:focus, .form-select:focus {
        border-color: #0d6efd !important;
        box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15) !important;
    }
    .input-group-text {
        border-radius: 8px !important;
        background: #f8f9fa;
    }
    
    /* Better tables */
    .table {
        border-radius: 8px;
        overflow: hidden;
    }
    .table thead th {
        background: #f8f9fa !important;
        font-weight: 600;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        border-bottom: 2px solid #e9ecef !important;
    }
    .table td, .table th {
        padding: 0.85rem 1rem !important;
        vertical-align: middle;
    }
    .table-hover tbody tr:hover {
        background: rgba(13, 110, 253, 0.03) !important;
    }
    
    /* Better badges */
    .badge {
        font-weight: 500;
        padding: 0.45em 0.7em;
        border-radius: 6px;
    }
    
    /* Improved alerts */
    .alert {
        border-radius: 10px !important;
        border: none !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }
    
    /* Better modals */
    .modal-content {
        border-radius: 16px !important;
        border: none !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    }
    .modal-header {
        border-bottom: 1px solid #e9ecef !important;
        padding: 1.25rem 1.5rem !important;
    }
    .modal-footer {
        border-top: 1px solid #e9ecef !important;
        padding: 1rem 1.5rem !important;
    }
    
    /* Better navigation */
    .nav-pills .nav-link {
        border-radius: 8px !important;
        font-weight: 500;
    }
    .nav-tabs .nav-link {
        border: none !important;
        border-bottom: 2px solid transparent !important;
        font-weight: 500;
        padding: 0.75rem 1rem;
    }
    .nav-tabs .nav-link.active {
        border-bottom-color: #0d6efd !important;
        color: #0d6efd !important;
        background: transparent !important;
    }
    
    /* Better pagination */
    .pagination .page-link {
        border-radius: 6px !important;
        margin: 0 2px;
        font-weight: 500;
    }
    
    /* Better dropdowns */
    .dropdown-menu {
        border-radius: 10px !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
        padding: 0.5rem 0;
    }
    .dropdown-item {
        padding: 0.5rem 1rem;
        font-weight: 400;
    }
    .dropdown-item:hover {
        background: #f8f9fa;
    }
    
    /* Better tooltips */
    .tooltip-inner {
        border-radius: 6px;
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
    
    /* Better progress bars */
    .progress {
        border-radius: 6px !important;
        height: 8px !important;
        background: #e9ecef !important;
    }
    .progress-bar {
        border-radius: 6px !important;
    }
    
    /* Better spacing utilities */
    .mb-05 { margin-bottom: 0.25rem !important; }
    .mt-05 { margin-top: 0.25rem !important; }
    .py-05 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
    .px-05 { padding-left: 0.25rem !important; padding-right: 0.25rem !important; }
    
    /* Subtle hover effects for interactive elements */
    a:not(.btn):hover, 
    .nav-link:hover,
    .list-group-item-action:hover {
        transition: color 0.2s ease;
    }
    
    /* Better focus states for accessibility */
    a:focus, button:focus, .form-control:focus {
        outline: none !important;
    }
    
    /* Smooth scrolling for anchor links */
    html {
        scroll-behavior: smooth;
    }
    
    /* ===== RESPONSIVE TWEAKS ===== */
    @media (max-width: 768px) {
        .card-body {
            padding: 1.25rem !important;
        }
        .btn {
            padding: 0.45rem 0.9rem;
            font-size: 0.9rem;
        }
    }

    /* ===== SAFE UI ENHANCEMENTS (FIXED BUTTON SIZING) ===== */
    
    /* Typography */
    body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
    h1, h2, h3, h4, h5, h6 { font-weight: 600; letter-spacing: -0.02em; }
    
    /* Cards */
    .card {
        border-radius: 12px !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
        border: 1px solid rgba(0, 0, 0, 0.06) !important;
        transition: box-shadow 0.2s ease;
    }
    .card:hover { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important; }
    .card-header { border-radius: 12px 12px 0 0 !important; background: #f8f9fa !important; font-weight: 600; }
    
    /* Buttons - NO fixed padding to preserve Bootstrap sizing */
    .btn {
        border-radius: 8px !important;
        font-weight: 500;
        transition: all 0.2s ease;
    }
    /* Explicitly protect Bootstrap button sizes */
    .btn-sm { padding: 0.25rem 0.5rem !important; font-size: 0.875rem !important; }
    .btn-lg { padding: 0.5rem 1rem !important; font-size: 1.25rem !important; }
    
    .btn-primary { box-shadow: 0 2px 6px rgba(13, 110, 253, 0.2); }
    .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3); }
    .btn-outline-primary { border-width: 2px; }
    
    /* Forms */
    .form-control, .form-select {
        border-radius: 8px !important;
        border: 1px solid #ced4da !important;
        padding: 0.6rem 0.8rem;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }
    .form-control:focus, .form-select:focus {
        border-color: #0d6efd !important;
        box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15) !important;
    }
    .input-group-text { border-radius: 8px !important; background: #f8f9fa; }
    
    /* Tables */
    .table { border-radius: 8px; overflow: hidden; }
    .table thead th {
        background: #f8f9fa !important;
        font-weight: 600;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        border-bottom: 2px solid #e9ecef !important;
    }
    .table td, .table th { padding: 0.85rem 1rem !important; vertical-align: middle; }
    .table-hover tbody tr:hover { background: rgba(13, 110, 253, 0.03) !important; }
    
    /* Badges & Alerts */
    .badge { font-weight: 500; padding: 0.45em 0.7em; border-radius: 6px; }
    .alert { border-radius: 10px !important; border: none !important; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); }
    
    /* Modals */
    .modal-content { border-radius: 16px !important; border: none !important; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important; }
    .modal-header { border-bottom: 1px solid #e9ecef !important; padding: 1.25rem 1.5rem !important; }
    .modal-footer { border-top: 1px solid #e9ecef !important; padding: 1rem 1.5rem !important; }
    
    /* Navigation */
    .nav-pills .nav-link { border-radius: 8px !important; font-weight: 500; }
    .nav-tabs .nav-link { border: none !important; border-bottom: 2px solid transparent !important; font-weight: 500; padding: 0.75rem 1rem; }
    .nav-tabs .nav-link.active { border-bottom-color: #0d6efd !important; color: #0d6efd !important; background: transparent !important; }
    
    /* Dropdowns & Pagination */
    .dropdown-menu { border-radius: 10px !important; border: 1px solid rgba(0,0,0,0.1) !important; box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important; padding: 0.5rem 0; }
    .dropdown-item { padding: 0.5rem 1rem; font-weight: 400; }
    .dropdown-item:hover { background: #f8f9fa; }
    .pagination .page-link { border-radius: 6px !important; margin: 0 2px; font-weight: 500; }
    
    /* Utilities & Accessibility */
    html { scroll-behavior: smooth; }
    a:focus, button:focus, .form-control:focus { outline: none !important; }
    
    /* Responsive */
    @media (max-width: 768px) {
        .card-body { padding: 1.25rem !important; }
    }