
/* Britixo: Dual-line header overlap fix */
#header {
    height: auto !important;
    min-height: 63px; /* Native header minimum */
}

/* Push the main dashboard wrapper down to clear the new double header */
/* 63px (native) + ~50px (new bar) = 113px. Adjust the 115px value if your bar is thicker or thinner */
#wrapper {
    margin-top: 115px !important; 
}

/* Ensure the setup menu aligns correctly with the new header height */
#setup-menu-wrapper {
    top: 115px !important;
}

/* Britixo: Dual-line header correction (Gap & Profile Badge Fix) */

/* 1. Force the native header components (like the profile badge) to the very front */
#header {
    z-index: 1050 !important; 
}

.navbar-right, .user-profile, .nav > li.dropdown {
    z-index: 1060 !important; 
    position: relative !important;
}

/* 2. Reduce the massive gap between the header and the app flow */
/* Changed from 115px down to 85px. If it's still slightly off, change 85px to exactly match your needs */
#wrapper {
    margin-top: 85px !important; 
}

#setup-menu-wrapper {
    top: 85px !important;
}

/* Britixo: Fully Responsive Dual-line header correction (Gap set to 10) */

/* 1. Z-Index fix for Profile Badge & Menus */
#header {
    z-index: 1050 !important; 
}

.navbar-right, .user-profile, .nav > li.dropdown {
    z-index: 1060 !important; 
    position: relative !important;
}

/* 2. Base configuration for Desktop & Large Screens */
@media screen and (min-width: 769px) {
    #wrapper {
        margin-top: 10px !important; 
    }
    #setup-menu-wrapper {
        top: 10px !important;
    }
}

/* 3. Responsive adaptation for Mobile & Tablets */
@media screen and (max-width: 768px) {
    /* Mobile headers often stack and change height dynamically */
    #wrapper {
        margin-top: 10px !important; 
    }
    #setup-menu-wrapper {
        top: 10px !important;
    }
    /* Forces the header to respect the mobile document flow instead of breaking out */
    #header {
        position: relative !important; 
        height: auto !important;
    }
}
