/* ----------------------------------------------------------------
   GWMApp Footer - lightweight SaaS footer
   Purpose: consistent light footer across public, library, grid, and welding form layouts.
   Required markup: <footer id="footer" class="gwm-footer d-print-none"> ...
-----------------------------------------------------------------*/

footer#footer.gwm-footer,
#footer.gwm-footer {
    min-height: 0 !important;
    width: 100% !important;
    margin: 56px 0 0 0 !important;
    padding: 0 !important;
    background: #f8fafc !important;
    color: #334155 !important;
    border-top: 1px solid #e5e7eb !important;
    box-sizing: border-box !important;
    font-family: "Poppins", "Helvetica", "Arial", sans-serif !important;
}

footer#footer.gwm-footer *,
#footer.gwm-footer * {
    box-sizing: border-box !important;
}

#footer.gwm-footer .gwm-footer__container {
    width: 100% !important;
    max-width: 1140px !important;
    margin: 0 auto !important;
    padding: 24px 24px 22px 24px !important;
}

#footer.gwm-footer .gwm-footer__top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px !important;
}

#footer.gwm-footer .gwm-footer__brand {
    display: flex !important;
    align-items: baseline !important;
    gap: 14px !important;
    min-width: 0 !important;
}

#footer.gwm-footer .gwm-footer__logo {
    display: inline-block !important;
    color: #111827 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.01em !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

#footer.gwm-footer .gwm-footer__tagline {
    color: #64748b !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
    white-space: normal !important;
}

#footer.gwm-footer .gwm-footer__nav {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: wrap !important;
    gap: 8px 18px !important;
    margin: 0 !important;
    padding: 0 !important;
}

#footer.gwm-footer .gwm-footer__nav a {
    display: inline-block !important;
    color: #475569 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    transition: color 0.15s ease-in-out !important;
}

#footer.gwm-footer .gwm-footer__nav a:hover,
#footer.gwm-footer .gwm-footer__nav a:focus,
#footer.gwm-footer .gwm-footer__logo:hover,
#footer.gwm-footer .gwm-footer__logo:focus {
    color: #0f172a !important;
    text-decoration: none !important;
}

#footer.gwm-footer .gwm-footer__logo:focus,
#footer.gwm-footer .gwm-footer__nav a:focus {
    outline: 2px solid rgba(37, 99, 235, 0.35) !important;
    outline-offset: 4px !important;
    border-radius: 4px !important;
}

#footer.gwm-footer .gwm-footer__bottom {
    margin-top: 18px !important;
    padding-top: 16px !important;
    border-top: 1px solid #e5e7eb !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
}

#footer.gwm-footer .gwm-footer__status {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    color: #475569 !important;
    white-space: nowrap !important;
}

#footer.gwm-footer .gwm-footer__status-dot {
    display: inline-block !important;
    width: 7px !important;
    height: 7px !important;
    border-radius: 999px !important;
    background-color: #16a34a !important;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.12) !important;
}

@media (max-width: 767px) {
    footer#footer.gwm-footer,
    #footer.gwm-footer {
        margin-top: 40px !important;
    }

    #footer.gwm-footer .gwm-footer__container {
        padding: 22px 20px !important;
    }

    #footer.gwm-footer .gwm-footer__top,
    #footer.gwm-footer .gwm-footer__bottom,
    #footer.gwm-footer .gwm-footer__brand {
        align-items: flex-start !important;
        flex-direction: column !important;
    }

    #footer.gwm-footer .gwm-footer__top {
        gap: 18px !important;
    }

    #footer.gwm-footer .gwm-footer__brand {
        gap: 6px !important;
    }

    #footer.gwm-footer .gwm-footer__nav {
        justify-content: flex-start !important;
        gap: 10px 16px !important;
    }
}

@media print {
    footer#footer.gwm-footer,
    #footer.gwm-footer {
        display: none !important;
    }
}


/* Testing Management layout guardrails */
.body-inner > #footer.gwm-footer,
.body-inner > footer#footer.gwm-footer {
    clear: both !important;
    flex-shrink: 0 !important;
}

#footer.gwm-footer a.gwm-footer__brand {
    text-decoration: none !important;
}
