

@media (max-width: 767.98px) {
    #homepage {
        display: none;
    } 

        #homepage .left-brand,
        #homepage .middle-brand,
        #homepage .right-login,
        #homepage img,
        #homepage a,
        #homepage .logout {
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
        }

    /* Override the darkgray background color for mobile navigation */
    nav#navigation,
    .left-brand,
    .right-login {
        background-color: whitesmoke !important;
    }

    nav#mobile-nav {
        background-color: white !important;
    }
}

table.ZBBlueSubTitleHeaderWthBorder {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

.ZBBlueTitleHeaderCenter {
    color: Black;
    font-size: 24px !important;
    font-family: Arial, Helvetica, sans-serif;
    font-style: normal;
    text-align: center;
    align-content: center;
}

.container-fluid.header-z {
    margin: 0 !important;
    padding: 0 !important;
    background-color: white !important;
}

/* Mobile logout button styling */
.mobile-user-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    border-radius: 5px;
    margin: 10px 0;
}

    .mobile-user-info .user-name {
        /*font-weight: bold;*/
        color: white;
    }

/* Hide mobile logout on desktop */
@media (min-width: 768px) {
    .d-md-none {
        display: none !important;
    }
}

/* Show mobile logout only on mobile */
@media (max-width: 767px) {
    .d-md-none {
        display: block !important;
    }
}

/* Mobile-First Responsive Login Styles */
.login-row {
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.logo-column, .form-column {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 15px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.responsive-logo {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 200px;
}

.login-wrapper {
    width: 100%;
    max-width: 350px;
    padding: 30px 20px;
    text-align: center;
}

.login-header-img {
    display: block;
    width: 200px;
    height: 100px;
    object-fit: contain;
    margin: 8px auto 12px;
    max-width: 100%;
}

/* Form Input Styles */
.form-input {
    width: 100% !important;
    max-width: 280px !important;
    height: 50px !important;
    margin: 10px auto !important;
    display: block !important;
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    text-align: center;
    font-size: 16px;
    box-sizing: border-box;
    border-radius: 6px;
    border: 1px solid #999B9D !important;
}

.login-btn {
    width: 100% !important;
    max-width: 280px !important;
    height: 50px !important;
    position: static !important;
    top: auto !important;
    margin: 20px auto 10px auto !important;
    display: block !important;
    border: 0;
    border-radius: 6px;
    background: #131232;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #BCBEC0 !important;
}

.divider-responsive {
    width: 2px;
    height: 400px;
    background: #bfc7d1;
    align-self: center;
}

/* Mobile Responsive Breakpoints */
@media screen and (max-width: 767px) {
    .login-row {
        min-height: auto;
        flex-direction: column;
    }

    .logo-column {
        padding: 20px 15px 10px;
        order: 1;
    }

    .form-column {
        padding: 10px 15px 30px;
        order: 2;
    }

    .responsive-logo {
        max-width: 280px;
        max-height: 150px;
    }

    .login-wrapper {
        padding: 20px 15px;
        max-width: 300px;
    }

    .login-header-img {
        width: 150px;
        height: 75px;
    }

    .form-input {
        max-width: 260px !important;
    }

    .login-btn {
        max-width: 260px !important;
    }
}

@media screen and (max-width: 480px) {
    .login-row {
        padding: 10px 5px;
    }

    .logo-column, .form-column {
        padding: 15px 10px;
    }

    .responsive-logo {
        max-width: 240px;
        max-height: 120px;
    }

    .login-wrapper {
        padding: 15px 10px;
        max-width: 280px;
    }

    .login-header-img {
        width: 130px;
        height: 65px;
    }

    .form-input {
        max-width: 240px !important;
        font-size: 14px;
    }

    .login-btn {
        max-width: 240px !important;
        font-size: 14px;
    }
}

/* Remove default Bootstrap container padding on mobile */
@media screen and (max-width: 575px) {
    .container-fluid {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
}


/* Footer with 50% Width Box */
.main-footer {
    width: 100%;
    padding: 20px 0;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-box {
    width: 50%;
    max-width: 800px;
    min-width: 300px;
    padding: 15px 20px;
    /*background-color: #f8f9fa;*/
    /*border: 1px solid #dee2e6;*/
    border-radius: 8px;
    /*box-shadow: 0 2px 4px rgba(0,0,0,0.1);*/
    box-sizing: border-box;
}

.footer-text {
    margin: 0;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.5;
    color: #333;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Mobile Responsive Footer Box */
@media screen and (max-width: 768px) {
    .footer-box {
        width: 50%;
        padding: 12px 15px;
        min-width: 280px;
    }

    .footer-text {
        font-size: 11px;
        line-height: 1.4;
    }
}

@media screen and (max-width: 480px) {
    .footer-box {
        width: 50%;
        padding: 10px 12px;
        min-width: 250px;
    }

    .footer-text {
        font-size: 10px;
        line-height: 1.3;
    }
}

@media screen and (max-width: 320px) {
    .footer-box {
        width: 50%;
        padding: 8px 10px;
    }

    .footer-text {
        font-size: 9px;
        line-height: 1.2;
    }
}




/* Mobile styles for login page - screens below 768px */
@media (max-width: 767px) {
    body {
        min-width: unset !important;
    }
    #login-page {
        padding: 0 !important;
        margin: 0 !important;
    }

        #login-page .container-fluid {
            padding-left: 10px !important;
            padding-right: 10px !important;
            margin: 0 !important;
            max-width: 100% !important;
        }

        #login-page .row {
            margin-left: 0 !important;
            margin-right: 0 !important;
            flex-direction: column !important;
            align-items: center !important;
        }

    .logo-box {
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 20px !important;
    }

        .logo-box img {
            max-width: 80% !important;
            max-height: 200px !important;
        }

    .divider-responsive {
        display: none !important;
    }

    .login-wrapper {
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto !important;
        padding: 20px 15px !important;
    }
}

/* Extra small devices - very tight spacing */
@media (max-width: 480px) {
    #login-page .container-fluid {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    .login-wrapper {
        max-width: 260px !important;
        padding: 15px 10px !important;
    }
}