/* Global Styles for P.E Corp Website */

/* Body padding for fixed header */
body {
    padding-top: 64px !important;
}

/* Ensure header is always on top */
header#siteHeader,
header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    width: 100% !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
}

.dark header#siteHeader,
.dark header {
    background-color: rgba(17, 24, 39, 0.95) !important;
}

/* Table styles */
table {
    width: 100%;
    table-layout: auto;
}

/* Allow horizontal scroll on mobile for tables */
@media (max-width: 768px) {
    .overflow-x-auto table {
        min-width: 600px;
    }
    
    /* Hide scrollbar but keep scrolling */
    .overflow-x-auto {
        scrollbar-width: thin;
        scrollbar-color: rgba(13, 47, 107, 0.3) transparent;
    }
    
    .overflow-x-auto::-webkit-scrollbar {
        height: 6px;
    }
    
    .overflow-x-auto::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .overflow-x-auto::-webkit-scrollbar-thumb {
        background: rgba(13, 47, 107, 0.3);
        border-radius: 3px;
    }
    
    .overflow-x-auto::-webkit-scrollbar-thumb:hover {
        background: rgba(13, 47, 107, 0.5);
    }
}

.overflow-hidden table {
    overflow: visible;
}

/* Smooth animations */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile menu fixes - Ensure proper stacking */
#siteMobileNav {
    will-change: transform;
    backface-visibility: hidden;
    /* Ensure menu panel is above everything */
    isolation: isolate;
}

#siteMobileBackdrop {
    will-change: opacity;
    /* Backdrop should be below menu panel */
    isolation: isolate;
}

/* CRITICAL: Ensure menu panel is always on top when open */
#siteMobileNav.mobile-menu-open {
    z-index: 10001 !important;
    position: fixed !important;
}

/* Ensure backdrop is below menu panel */
#siteMobileBackdrop.mobile-backdrop-open {
    z-index: 9999 !important;
    position: fixed !important;
}

