/* assets/css/style.css - Premium ERP Styling System */

/* =========================================================
   GLOBAL SAAS DESIGN SYSTEM CLASSES 
   ========================================================= */
/* SAAS Page Layout Elements */
.page-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-dark, #111827);
    margin-bottom: 4px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}
.page-subtitle {
    font-size: 15px;
    color: var(--text-muted, #6B7280);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Global SAAS Card */
.saas-card {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    margin-bottom: 24px;
}

/* Buttons */
.btn-saas {
    height: 40px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    gap: 8px;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
}
.btn-primary-saas {
    background-color: var(--primary, #2563eb);
    color: #ffffff;
}
.btn-primary-saas:hover {
    background-color: #1d4ed8;
    color: #ffffff;
}
.btn-secondary-saas {
    background-color: #ffffff;
    border: 1px solid #E5E7EB;
    color: #475569;
}
.btn-secondary-saas:hover {
    background-color: #f8fafc;
    color: #1e293b;
}
.btn-success-saas {
    background-color: var(--success, #16A34A);
    color: #ffffff;
}
.btn-success-saas:hover {
    background-color: #15803d;
    color: #ffffff;
}
.btn-danger-saas {
    background-color: var(--danger, #DC2626);
    color: #ffffff;
}
.btn-danger-saas:hover {
    background-color: #b91c1c;
    color: #ffffff;
}

/* Data Tables */
.table-saas {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.table-saas th {
    background-color: #f8fafc;
    color: #4B5563;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 10;
}
.table-saas td {
    padding: 12px 16px;
    vertical-align: middle;
    font-size: 15px;
    font-weight: 400;
    color: #111827;
    border-bottom: 1px solid #f1f5f9;
    height: 45px;
}
.table-saas tbody tr:nth-child(even) {
    background-color: #f8fafc;
}
.table-saas tbody tr:hover td {
    background-color: #f1f5f9;
}

/* Badges */
.badge-saas {
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.badge-new { background-color: #e0f2fe; color: #0284c7; }
.badge-outbound { background-color: #ffedd5; color: #ea580c; }
.badge-indelhi { background-color: #f3e8ff; color: #9333ea; }
.badge-inbound { background-color: #ccfbf1; color: #0d9488; }
.badge-pending { background-color: #fee2e2; color: #dc2626; }
.badge-delivered { background-color: #dcfce7; color: #16a34a; }
.badge-paid { background-color: #dcfce7; color: #16a34a; }
.badge-partially-paid { background-color: #fef3c7; color: #d97706; }
.badge-payment-pending { background-color: #fee2e2; color: #dc2626; }

/* Filter Container */
.filter-card {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 24px;
}
.filter-card .form-group {
    margin-bottom: 0;
    flex: 1;
    min-width: 200px;
}
.filter-card label {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: #6B7280;
    margin-bottom: 6px;
}

/* Lucide Icon Customization */
.lucide {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

/* 1. Design System & Custom Tokens */
:root {
    --primary: #2563eb;
    --primary-light: #eff6ff;
    --primary-dark: #1e40af;
    --secondary: #475569;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #f59e0b;
    --info: #06b6d4;
    --dark: #111827;
    --light: #f8fafc;
    --white: #ffffff;
      --card-border: #e2e8f0;
      --light-bg: #f8fafc;
      --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    
    /* Status Badge Colors */
    --status-new: #3b82f6;          /* Blue */
    --status-outbound: #f97316;     /* Orange */
    --status-indelhi: #a855f7;      /* Purple */
    --status-inbound: #06b6d4;      /* Cyan */
    --status-pending: #ef4444;      /* Red */
    --status-delivered: #15803d;    /* Dark Green */
    
    /* Layout Variables */
    --sidebar-width: 260px;
    --header-height: 70px;
    --border-radius: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.03);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. Global Resets & Typography */
body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    background-color: #f1f5f9;
    color: #111827;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 3. Layout Structure */
#wrapper {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar Styling */
#sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #94a3b8;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: var(--transition);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

#sidebar .logo-area {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#sidebar .logo-area h5 {
    color: var(--white);
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.5px;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

#sidebar .logo-area h5 i {
    color: #38bdf8;
}

.sidebar-menu {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px 12px;
}

.sidebar-heading {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: #64748b;
    padding: 10px 12px 6px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    margin-bottom: 4px;
    transition: var(--transition);
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--white);
}

.sidebar-link.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.sidebar-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    transition: var(--transition);
}

.sidebar-link.active i {
    color: var(--white);
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.1);
}

.user-profile-sm {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-profile-sm img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.user-profile-sm .name-role {
    display: flex;
    flex-direction: column;
}

.user-profile-sm .name {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
}

.user-profile-sm .role {
    font-size: 0.75rem;
    color: #64748b;
}

/* Main Content Area */
#main-content {
    flex-grow: 1;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header Bar */
#header-bar {
    height: var(--header-height);
    background: var(--white);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    flex-shrink: 0;
}

.toggle-sidebar-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}

.toggle-sidebar-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.notification-bell {
    position: relative;
    font-size: 1.25rem;
    color: var(--secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}

.notification-bell:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.notification-bell .badge {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 0.6rem;
    padding: 3px 5px;
    border-radius: 50%;
    border: 2px solid var(--white);
}

/* Content Frame */
.content-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 24px;
}

/* 4. Beautiful KPI Cards */
.kpi-card {
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary);
}

.kpi-card.new::before { background-color: var(--status-new); }
.kpi-card.outbound::before { background-color: var(--status-outbound); }
.kpi-card.indelhi::before { background-color: var(--status-indelhi); }
.kpi-card.inbound::before { background-color: var(--status-inbound); }
.kpi-card.pending::before { background-color: var(--status-pending); }
.kpi-card.delivered::before { background-color: var(--status-delivered); }
.kpi-card.revenue::before { background-color: #22c55e; }
.kpi-card.tasks::before { background-color: #6366f1; }

.kpi-card .kpi-icon {
    position: absolute;
    right: 16px;
    top: 16px;
    font-size: 2.25rem;
    opacity: 0.15;
    transition: var(--transition);
}

.kpi-card:hover .kpi-icon {
    opacity: 0.3;
    transform: scale(1.1);
}

.kpi-card .kpi-title {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 6px;
}

.kpi-card .kpi-value {
    font-size: 36px;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

/* 5. Custom Table Layouts */
.custom-card {
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    overflow: hidden;
}

.custom-card-header {
    background: var(--white);
    padding: 18px 24px;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-card-header h5 {
    margin: 0;
    font-weight: 600;
    color: var(--dark);
}

.table-responsive-custom {
    overflow-x: auto;
}

.table-custom {
    margin-bottom: 0;
    width: 100%;
}

.table-custom th {
    background-color: #f8fafc;
    color: var(--secondary);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 20px;
    border-bottom: 2px solid #e2e8f0;
}

.table-custom td {
    padding: 14px 20px;
    vertical-align: middle;
    font-size: 15px;
    font-weight: 400;
    color: #111827;
    border-bottom: 1px solid #f1f5f9;
    transition: var(--transition);
}

.table-custom tr:hover td {
    background-color: #f8fafc;
}

/* 6. Dynamic Color Badges for Stages */
.bg-status-new { background-color: var(--status-new) !important; }
.bg-status-outbound { background-color: var(--status-outbound) !important; }
.bg-status-indelhi { background-color: var(--status-indelhi) !important; }
.bg-status-inbound { background-color: var(--status-inbound) !important; }
.bg-status-pending { background-color: var(--status-pending) !important; }
.bg-status-delivered { background-color: var(--status-delivered) !important; }

/* Red Badge for Delivered & Payment Pending */
.badge-pay-pending-alert {
    background-color: var(--danger);
    color: var(--white);
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* 7. Tab Based Designs (Operations Module) */
.nav-tabs-custom {
    border-bottom: 1px solid #e2e8f0;
    gap: 6px;
    padding: 0 20px;
    background: #f8fafc;
}

.nav-tabs-custom .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--secondary);
    font-weight: 500;
    font-size: 14px;
    padding: 14px 18px;
    transition: var(--transition);
    border-radius: 0;
}

.nav-tabs-custom .nav-link:hover {
    color: var(--primary);
    background: none;
}

.nav-tabs-custom .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: none;
}

/* 8. Forms & Inputs */
.form-control-custom {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 400;
    transition: var(--transition);
}

.form-control-custom:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
    outline: none;
}

/* 9. Glassmorphic Widgets */
.glass-widget {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

/* 10. Dashboard specific styling */
.activity-feed {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-item {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 14px;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-light);
    color: var(--primary);
    flex-shrink: 0;
}

.activity-time {
    font-size: 13px;
    color: var(--text-muted);
    margin-left: auto;
}

/* Responsive sidebar */
@media(max-width: 1024px) {
    #sidebar {
        margin-left: calc(-1 * var(--sidebar-width));
    }
    #wrapper.sidebar-open #sidebar {
        margin-left: 0;
    }
}

/* 11. Collapsible Desktop Sidebar */
#wrapper {
    transition: var(--transition);
}

.logo-area h5 span,
.sidebar-link span,
.sidebar-heading,
.user-profile-sm .name-role {
    transition: opacity 0.2s ease, width 0.2s ease;
    opacity: 1;
    display: inline-block;
}

/* Collapsed state styles */
#wrapper.sidebar-collapsed #sidebar {
    width: 70px;
    min-width: 70px;
    max-width: 70px;
}

#wrapper.sidebar-collapsed #sidebar .logo-area h5 span,
#wrapper.sidebar-collapsed #sidebar .sidebar-link span,
#wrapper.sidebar-collapsed #sidebar .sidebar-heading,
#wrapper.sidebar-collapsed #sidebar .user-profile-sm .name-role {
    display: none !important;
    opacity: 0;
}

#wrapper.sidebar-collapsed #sidebar .logo-area {
    justify-content: center;
    padding: 0;
}

#wrapper.sidebar-collapsed #sidebar .logo-area h5 i {
    font-size: 1.5rem;
}

#wrapper.sidebar-collapsed #sidebar .sidebar-link {
    justify-content: center;
    padding: 12px;
}

#wrapper.sidebar-collapsed #sidebar .sidebar-link i {
    font-size: 1.3rem;
    margin: 0;
}

#wrapper.sidebar-collapsed #sidebar .sidebar-footer {
    padding: 12px;
}

#wrapper.sidebar-collapsed #sidebar .user-profile-sm {
    justify-content: center !important;
}

#wrapper.sidebar-collapsed #sidebar .user-profile-sm a.text-danger {
    display: none !important;
}

/* Tooltips for collapsed state */
#wrapper.sidebar-collapsed #sidebar .sidebar-link {
    position: relative;
}

#wrapper.sidebar-collapsed #sidebar .sidebar-link::after {
    content: attr(title);
    position: absolute;
    left: 80px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: #0f172a;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md);
    z-index: 1060;
}

#wrapper.sidebar-collapsed #sidebar .sidebar-link:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* 12. Mobile sliding menu drawer & overlay */
#sidebar-overlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#wrapper.sidebar-open #sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* 13. Mobile Top Header & layout shifts */
@media (max-width: 1024px) {
    #sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        z-index: 1050;
        transform: translateX(-100%);
        box-shadow: none;
    }
    
    #wrapper.sidebar-open #sidebar {
        transform: translateX(0);
        box-shadow: 10px 0 30px rgba(0,0,0,0.25);
        width: 280px;
        max-width: 80%;
    }
    
    #main-content {
        width: 100%;
    }
    
    #header-bar {
        padding: 0 16px;
    }
}

/* Touch targets optimization */
.form-control-custom,
.btn,
.form-select {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.form-control-custom {
    display: block;
}

/* 14. Responsive Tables and horizontal scrolling */
.table-responsive-custom {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Optional mobile card layout for specific tables */
@media (max-width: 767px) {
    .table-mobile-cards thead {
        display: none !important;
    }
    .table-mobile-cards tbody, 
    .table-mobile-cards tr, 
    .table-mobile-cards td {
        display: block !important;
        width: 100% !important;
    }
    .table-mobile-cards tr {
        background: #fff;
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 16px;
        box-shadow: var(--shadow-sm);
        border: 1px solid #e2e8f0;
    }
    .table-mobile-cards td {
        padding: 8px 0 !important;
        border: none !important;
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        text-align: right;
    }
    .table-mobile-cards td::before {
        content: attr(data-label);
        font-weight: 700;
        text-align: left;
        color: var(--secondary);
        font-size: 0.85rem;
    }
}

/* 15. Scrollable tabs in operations */
@media (max-width: 767px) {
    .nav-tabs-custom {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory;
        padding: 0 12px !important;
    }
    
    .nav-tabs-custom .nav-item {
        flex: 0 0 auto !important;
        scroll-snap-align: start;
    }
    
    .nav-tabs-custom .nav-link {
        padding: 10px 14px !important;
        font-size: 0.85rem !important;
    }
}

/* 16. Floating Action Button (FAB) */
.mobile-fab-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1030;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.fab-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    border: none;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab-btn:hover {
    background-color: var(--primary-dark);
}

.mobile-fab-container.active .fab-btn {
    transform: rotate(135deg);
    background-color: var(--danger);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

.fab-menu-list {
    display: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.mobile-fab-container.active .fab-menu-list {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.fab-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.fab-label {
    background: #0f172a;
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.fab-menu-item i {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    border: 1px solid #cbd5e1;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.fab-menu-item:hover i {
    background: var(--primary-light);
}

@media (min-width: 1025px) {
    .mobile-fab-container {
        display: none !important;
    }
}

/* 17. Mobile Bottom Navigation Bar Styles */
.mobile-bottom-nav-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid #cbd5e1;
    display: none;
    justify-content: space-around;
    align-items: center;
    z-index: 1020;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--secondary);
    font-size: 0.725rem;
    font-weight: 500;
    transition: var(--transition);
    padding: 6px 0;
    width: 20%;
    text-align: center;
}

.bottom-nav-item .nav-svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
    margin-bottom: 2px;
    color: var(--secondary);
    transition: var(--transition);
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-item.active .nav-svg {
    color: var(--primary);
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .mobile-bottom-nav-container {
        display: flex;
    }
    .content-body {
        padding-bottom: 90px !important; /* Avoid FAB & Bottom nav overlap */
    }
}

/* 18. Default Collapsed Sidebar on Tablet Viewport (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    #sidebar {
        width: 70px;
        min-width: 70px;
        max-width: 70px;
        margin-left: 0 !important;
    }
    #sidebar .logo-area h5 span,
    #sidebar .sidebar-link span,
    #sidebar .sidebar-heading,
    #sidebar .user-profile-sm .name-role {
        display: none !important;
        opacity: 0;
    }
    #sidebar .logo-area {
        justify-content: center;
        padding: 0;
    }
    #sidebar .logo-area h5 i {
        font-size: 1.5rem;
    }
    #sidebar .sidebar-link {
        justify-content: center;
        padding: 12px;
    }
    #sidebar .sidebar-link i {
        font-size: 1.3rem;
        margin: 0;
    }
    #sidebar .sidebar-footer {
        padding: 12px;
    }
    #sidebar .user-profile-sm {
        justify-content: center !important;
    }
    #sidebar .user-profile-sm a.text-danger {
        display: none !important;
    }
    #sidebar .sidebar-link {
        position: relative;
    }
    #sidebar .sidebar-link::after {
        content: attr(title);
        position: absolute;
        left: 80px;
        top: 50%;
        transform: translateY(-50%) translateX(10px);
        background: #0f172a;
        color: #fff;
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 0.8rem;
        font-weight: 500;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: all 0.2s ease;
        box-shadow: var(--shadow-md);
        z-index: 1060;
    }
    #sidebar .sidebar-link:hover::after {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
    
    /* Support expanding if sidebar-expanded class is explicitly active */
    #wrapper.sidebar-expanded #sidebar {
        width: 260px !important;
        min-width: 260px !important;
        max-width: 260px !important;
    }
    #wrapper.sidebar-expanded #sidebar .logo-area h5 span,
    #wrapper.sidebar-expanded #sidebar .sidebar-link span,
    #wrapper.sidebar-expanded #sidebar .sidebar-heading,
    #wrapper.sidebar-expanded #sidebar .user-profile-sm .name-role {
        display: inline-block !important;
        opacity: 1 !important;
    }
    #wrapper.sidebar-expanded #sidebar .logo-area {
        justify-content: flex-start !important;
        padding: 0 24px !important;
    }
    #wrapper.sidebar-expanded #sidebar .sidebar-link {
        justify-content: flex-start !important;
        padding: 10px 14px !important;
    }
    #wrapper.sidebar-expanded #sidebar .sidebar-link i {
        margin-right: 12px !important;
    }
    #wrapper.sidebar-expanded #sidebar .sidebar-link::after {
        display: none !important;
    }
}

/* 19. Mobile Header Styling Optimization (< 992px) */
@media (max-width: 991px) {
    #header-bar {
        height: 56px !important;
    }
    .header-left {
        display: flex;
        align-items: center;
        gap: 6px;
        max-width: 60%;
    }
    .header-title-text {
        font-size: 1rem !important;
        max-width: 140px;
    }
    .profile-img-header {
        width: 30px !important;
        height: 30px !important;
    }
}

/* 20. Form & Inputs Optimization for Mobile Viewport */
@media (max-width: 767px) {
    .form-control-custom,
    .form-select,
    .btn {
        min-height: 48px !important;
        font-size: 1rem !important; /* Prevents auto-zoom on iOS inputs */
    }
    
    /* Prevent side-by-side elements inside forms */
    form .row > * {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 8px;
    }
    
    /* Place labels strictly above input fields */
    form label {
        display: block;
        margin-bottom: 6px !important;
    }
}

/* 21. Responsive Spacings */
@media (max-width: 767px) {
    .content-body {
        padding: 16px !important;
    }
}
@media (min-width: 768px) and (max-width: 1024px) {
    .content-body {
        padding: 20px !important;
    }
}
@media (min-width: 1025px) {
    .content-body {
        padding: 24px !important;
    }
}

/* 22. Hide Desktop action buttons on mobile screens */
@media (max-width: 767px) {
    .desktop-only-action {
        display: none !important;
    }
}

/* 23. Card-based table row conversion styles for mobile viewports */
@media (max-width: 767px) {
    .table-mobile-cards thead {
        display: none !important;
    }
    .table-mobile-cards tbody, 
    .table-mobile-cards tr, 
    .table-mobile-cards td {
        display: block !important;
        width: 100% !important;
    }
    .table-mobile-cards tr {
        background: #ffffff;
        border-radius: 16px;
        padding: 18px;
        margin-bottom: 16px;
        box-shadow: var(--shadow-sm);
        border: 1px solid #cbd5e1;
    }
    .table-mobile-cards td {
        padding: 8px 0 !important;
        border: none !important;
        border-bottom: 1px dashed #e2e8f0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
    }
    .table-mobile-cards td:last-child {
        border-bottom: none !important;
        padding-top: 14px !important;
        flex-direction: row !important;
        justify-content: flex-end !important;
    }
    .table-mobile-cards td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--secondary);
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 4px;
        display: block;
    }
    .table-mobile-cards td:last-child::before {
        display: none !important;
    }
}

/* 24. Professional SVG Icon Buttons & Timeline in Work Details */
.btn-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid #cbd5e1;
    transition: all 0.2s ease;
    padding: 0;
    color: var(--secondary);
    text-decoration: none;
    cursor: pointer;
}

.btn-action-icon:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
    transform: scale(1.05);
}

.btn-action-icon svg {
    width: 15px;
    height: 15px;
}

/* Timeline component in work details */
.pipeline-timeline {
    position: relative;
    padding-left: 24px;
    margin-left: 8px;
    border-left: 2px solid #e2e8f0;
}

.timeline-step {
    position: relative;
    margin-bottom: 24px;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-badge {
    position: absolute;
    left: -35px;
    top: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #cbd5e1;
    border: 3px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.6rem;
    z-index: 2;
}

.timeline-badge.bg-status-new { background-color: var(--status-new) !important; }
.timeline-badge.bg-status-outbound { background-color: var(--status-outbound) !important; }
.timeline-badge.bg-status-indelhi { background-color: var(--status-indelhi) !important; }
.timeline-badge.bg-status-inbound { background-color: var(--status-inbound) !important; }
.timeline-badge.bg-status-pending { background-color: var(--status-pending) !important; }
.timeline-badge.bg-status-delivered { background-color: var(--status-delivered) !important; }

.timeline-content {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: var(--shadow-sm);
}

.timeline-time {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

.courier-badge-box {
    line-height: 1.4;
}

/* 25. Operations Work Details Page Layout Refinements */
.active-step .timeline-content {
    border-color: var(--primary) !important;
    background-color: var(--primary-light) !important;
}

.timeline-badge.bg-success {
    background-color: var(--success) !important;
    border-color: #f1f5f9 !important;
}

.timeline-badge.bg-primary {
    background-color: var(--primary) !important;
    border-color: #f1f5f9 !important;
}

.timeline-badge.bg-secondary {
    background-color: #cbd5e1 !important;
    border-color: #f1f5f9 !important;
}

/* Pulsing highlight for active timeline nodes and payment warning badges */
.animate-pulse {
    animation: status-pulse 2s infinite ease-in-out;
}

@keyframes status-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.03);
        opacity: 0.85;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile Sticky Action Bar for quick edit/update/print */
.mobile-sticky-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #cbd5e1;
    display: flex;
    justify-content: space-around;
    padding: 10px 16px;
    z-index: 1050;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
}

.mobile-sticky-action-bar .btn {
    flex: 1;
    margin: 0 6px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Adjust page padding on mobile to not clip behind the sticky action bar */
@media (max-width: 767px) {
    #print-area {
        padding-bottom: 70px !important;
    }
}

@media (min-width: 768px) {
    .mobile-sticky-action-bar {
        display: none !important;
    }
}


 
 t d . t e x t - e n d   >   b u t t o n ,   t d . t e x t - e n d   >   a ,   t d . t e x t - e n d   >   f o r m   >   b u t t o n   {   m a r g i n - l e f t :   4 p x ;   }  
 
/* Quick Action Buttons */
.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}
.quick-action-btn:hover {
    background: var(--light-bg);
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.qa-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.qa-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 0 2px 0;
    color: var(--dark);
}
.qa-desc {
    font-size: 0.8rem;
    color: var(--secondary);
    margin: 0;
}

/* custom nav pills overrides */
.custom-nav-pills {
    border: 1px solid #e2e8f0;
}
.custom-nav-pills .nav-link {
    color: #475569;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.custom-nav-pills .nav-link:hover {
    background-color: #f8fafc;
    color: #0f172a;
}
.custom-nav-pills .nav-link.active {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 2px 4px rgba(37,99,235,0.2);
}

/* Table Action Button Margin Fix */
td.text-end > button, td.text-end > a, td.text-end > form > button { margin-left: 4px; }

/* Finance Module Layout Updates */
.finance-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}
@media (max-width: 1199px) {
    .finance-dashboard-grid {
        grid-template-columns: 1fr 300px;
    }
}
@media (max-width: 991px) {
    .finance-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Typography Enhancements */
.page-title { font-size: 30px; font-weight: 700; }
.section-title { font-size: 18px; font-weight: 600; }
.card-value { font-size: 28px; font-weight: 700; }
.label-text { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }

/* Enhanced Quick Action Buttons */
.qa-card-button {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    gap: 16px;
    width: 100%;
}
.qa-card-button:hover {
    background: var(--light-bg);
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    color: inherit;
}
.qa-icon-box {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.qa-text-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.qa-card-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--dark);
    margin: 0;
}
.qa-card-desc {
    font-size: 13px;
    color: var(--secondary);
    margin: 4px 0 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Enforce Button Standardization */
.btn-primary-saas, .btn-secondary-saas {
    height: 42px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    white-space: nowrap;
    gap: 8px;
    font-weight: 500;
}
.btn-primary-saas i, .btn-secondary-saas i {
    font-size: 16px; /* standardizing icon sizes inside buttons */
}

/* =========================================================
   ENVELOPE BATCH CARDS (Operations)
   ========================================================= */
.envelope-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}

@media (max-width: 1200px) {
    .envelope-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .envelope-grid {
        grid-template-columns: 1fr;
    }
}

.env-card {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition);
}

.env-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

.env-card-header {
    padding: 16px;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.env-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.env-card-subtitle {
    font-size: 13px;
    color: var(--secondary);
    font-weight: 500;
}

.env-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.env-card-body > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.env-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    font-weight: 600;
}

.env-val {
    font-size: 14px;
    color: var(--dark);
    font-weight: 500;
}

.env-card-actions {
    padding: 16px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    gap: 12px;
}

.env-card-actions .btn-saas {
    flex: 1;
}

/* =========================================================
   COMPLETE RESPONSIVE OPTIMIZATION
   ========================================================= */

/* Typography & General Resets */
@media (max-width: 767px) {
    .page-title { font-size: 22px !important; }
    body { font-size: 15px !important; }
}

/* Button Touch-Friendly Sizing */
@media (max-width: 991px) {
    .btn-saas, .btn-primary-saas, .btn-secondary-saas, .btn-success-saas, .btn-danger-saas {
        min-height: 44px !important;
    }
}

/* ---------------------------------------------------------
   TABLES TO CARDS CONVERSION (Mobile)
   --------------------------------------------------------- */
@media (max-width: 991px) {
    .table-saas, .table-saas thead, .table-saas tbody, .table-saas th, .table-saas td, .table-saas tr {
        display: block;
        width: 100%;
    }
    
    .table-saas thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .table-saas tr {
        background: var(--white);
        border: 1px solid var(--card-border);
        border-radius: var(--border-radius);
        margin-bottom: 16px;
        box-shadow: var(--shadow-sm);
        padding: 16px;
    }
    
    .table-saas tbody tr:nth-child(even) {
        background-color: var(--white); 
    }
    
    .table-saas td {
        border: none;
        position: relative;
        padding: 8px 0 !important;
        text-align: right;
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: auto;
        min-height: unset;
        border-bottom: 1px dashed #e2e8f0;
    }
    
    .table-saas td:last-child {
        border-bottom: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding-top: 16px !important;
        margin-top: 8px;
    }
    
    .table-saas td::before {
        content: attr(data-label);
        font-weight: 500;
        font-size: 13px;
        text-transform: uppercase;
        color: var(--secondary);
        text-align: left;
        padding-right: 15px;
        flex-shrink: 0;
    }

    .table-saas td:nth-child(1),
    .table-saas td:nth-child(2),
    .table-saas td:nth-child(3) {
        text-align: left;
        justify-content: flex-start;
        border-bottom: none;
        padding: 4px 0 !important;
    }
    
    .table-saas td:nth-child(1)::before,
    .table-saas td:nth-child(2)::before,
    .table-saas td:nth-child(3)::before {
        display: none; 
    }
    
    .table-saas td:nth-child(1) {
        font-size: 16px;
        font-weight: 600;
        color: var(--primary);
        margin-bottom: 4px;
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
    }
    
    .table-saas td:nth-child(2) {
        font-size: 18px;
        font-weight: 600;
        color: var(--dark);
    }
    
    .table-saas td:nth-child(3) {
        font-size: 15px;
        font-weight: 400;
        color: var(--secondary);
        margin-bottom: 12px;
        border-bottom: 1px solid var(--card-border);
        padding-bottom: 12px !important;
    }

    .table-saas td .form-check-input {
        width: 20px;
        height: 20px;
        margin: 0;
    }

    .table-saas td:last-child form, 
    .table-saas td:last-child .btn-group,
    .table-saas td:last-child > div,
    .table-saas td:last-child > a,
    .table-saas td:last-child > button {
        width: 100%;
        display: flex;
        margin-bottom: 8px;
        flex-direction: column;
    }
    .table-saas td:last-child button,
    .table-saas td:last-child a.btn-saas {
        width: 100% !important;
        justify-content: center;
        min-height: 44px;
        margin-bottom: 8px;
    }
}

/* ---------------------------------------------------------
   FILTERS & FORMS (Mobile)
   --------------------------------------------------------- */
@media (max-width: 767px) {
    .filter-card {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-card .form-group {
        width: 100%;
    }
    .filter-card button {
        width: 100%;
        margin-top: 8px;
    }
}

/* ---------------------------------------------------------
   MODALS (Mobile)
   --------------------------------------------------------- */
@media (max-width: 767px) {
    .modal-dialog {
        margin: 0;
        width: 100%;
        max-width: none;
        height: 100%;
    }
    .modal-content {
        min-height: 100vh;
        border-radius: 0;
        border: none;
    }
    .modal-header {
        background: var(--light);
        position: sticky;
        top: 0;
        z-index: 10;
        border-bottom: 1px solid var(--card-border);
    }
    .modal-footer {
        position: sticky;
        bottom: 0;
        background: var(--white);
        z-index: 10;
        border-top: 1px solid var(--card-border);
        padding: 16px;
    }
    .modal-footer button {
        flex: 1;
        min-height: 48px;
    }
}

/* ---------------------------------------------------------
   SIDEBAR & NAVBAR RESPONSIVENESS
   --------------------------------------------------------- */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1050;
        position: fixed;
    }
    .sidebar-open .sidebar {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }
    .top-navbar {
        left: 0 !important;
        width: 100% !important;
        padding: 0 16px !important;
    }
    .hamburger-menu {
        display: block !important;
        background: transparent;
        border: none;
        font-size: 24px;
        color: var(--dark);
        margin-right: 16px;
        padding: 8px;
    }
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1040;
    }
    .sidebar-open #sidebar-overlay {
        display: block;
    }
}
@media (min-width: 992px) {
    .hamburger-menu, .sidebar-overlay { display: none !important; }
}

/* ==============================================================
   PROFILE MODULE CSS
   ============================================================== */
.profile-container {
    max-width: 1400px;
}

.profile-tabs-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.profile-tabs-wrapper::-webkit-scrollbar {
    height: 4px;
}
.profile-tabs-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.nav-tabs-custom.flex-nowrap {
    white-space: nowrap;
}

.nav-tabs-custom .nav-link {
    white-space: nowrap;
    padding: 16px 24px;
}

.profile-avatar-large {
    transition: var(--transition);
}

.profile-avatar-large:hover {
    box-shadow: var(--shadow-md) !important;
    transform: scale(1.02);
}

@media (max-width: 991px) {
    .profile-tabs-wrapper {
        margin: -24px -24px 24px -24px; /* Pull to edges on mobile */
        border-radius: var(--border-radius) var(--border-radius) 0 0;
    }
    .content-body {
        padding-bottom: 90px !important; /* Ensure content isn't hidden behind the fixed bottom nav */
    }
}

/* =========================================================
   CUSTOMER PROFILE RESPONSIVE CLASSES
   ========================================================= */

/* Horizontally scrollable tabs */
.scrollable-tabs-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}
.scrollable-tabs-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* Mobile Card Table Transformation */
@media (max-width: 768px) {
    .mobile-card-table, .mobile-card-table tbody, .mobile-card-table tr, .mobile-card-table td {
        display: block;
        width: 100%;
    }
    .mobile-card-table thead {
        display: none;
    }
    .mobile-card-table tr {
        background: #fff;
        border: 1px solid #E5E7EB;
        border-radius: 8px;
        margin-bottom: 16px;
        padding: 12px;
        box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    }
    .mobile-card-table td {
        border: none !important;
        padding: 8px 0 !important;
        position: relative;
        text-align: right;
    }
    .mobile-card-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        top: 8px;
        font-weight: 600;
        color: #6B7280;
        font-size: 12px;
        text-transform: uppercase;
    }
    
    /* Clean up Datatables wrapper on mobile if used */
    .dataTables_wrapper .row {
        margin: 0;
    }
    .dataTables_wrapper .col-sm-12 {
        padding: 0;
    }
}

