﻿/*.footer-version-text {
    position: absolute;
    right: 12px;
    bottom: 4px;
    font-size: 11px;
    color: #fff;
    opacity: .9;
    pointer-events: none;
}
*/


/* Base: página a 100% de alto y espacio para el footer */
html, body {
    height: 100%;
    margin: 0;
}

    body > form,
    #page-wrapper,
    #main-content {
        min-height: 100%;
        position: relative;
        padding-bottom: 120px; /* = altura footer (desktop) */
        box-sizing: border-box;
    }

/* Footer */
.pgs-footer {
    background: #626366;
    color: #fff;
    text-align: center;
    border-top: 3px solid #8dc53e;
    height: 120px; /* desktop */
    padding: 1rem;
    margin-top: 0;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    box-sizing: border-box;
}

/* Badge versión */
.footer-version-text {
    position: absolute;
    right: 12px;
    bottom: 8px;
    font-size: 11px;
    color: #fff;
    opacity: .9;
    white-space: nowrap;
    pointer-events: none;
}

/* Imágenes dentro del footer responsive */
.pgs-footer img {
    max-width: 100%;
    height: auto;
}

/* ========== Breakpoints responsivos ========== */

/* Tablets (≤ 992px) */
@media (max-width: 992px) {
    .pgs-footer {
        height: 100px;
    }

    body > form, #page-wrapper, #main-content {
        padding-bottom: 100px;
    }
}

/* Móviles (≤ 768px) */
@media (max-width: 768px) {
    .pgs-footer {
        height: 84px;
        padding: 0.75rem;
    }

    body > form, #page-wrapper, #main-content {
        padding-bottom: 84px;
    }

    .footer-version-text {
        font-size: 10px;
        right: 10px;
        bottom: 6px;
    }
}

/* Móviles pequeños (≤ 480px) */
@media (max-width: 480px) {
    .pgs-footer {
        height: 72px;
        padding: 0.5rem;
    }

    body > form, #page-wrapper, #main-content {
        padding-bottom: 72px;
    }

    .footer-version-text {
        font-size: 9px;
        right: 8px;
        bottom: 5px;
    }
}








/* Corrección global anti-override: esquina inferior derecha */
body .footer-version-text {
    position: fixed;
    right: 12px !important;
    bottom: 8px !important;
    left: auto !important;
    transform: none !important;
    z-index: 99999;
    white-space: nowrap;
    pointer-events: none;
}

/* SOLO login (fondo claro): contraste adecuado */
body.page-login .footer-version-text,
#vb-login {
    background: #f5f5f5;
    color: #333;
    padding: 2px 6px;
    border-radius: 4px;
    box-shadow: 0 0 3px rgba(0,0,0,.12);
    font-size: 11px;
}

/* responsive fino */
@media (max-width: 768px) {
    body.page-login .footer-version-text, #vb-login {
        right: 8px !important;
        bottom: 6px !important;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    body.page-login .footer-version-text, #vb-login {
        right: 6px !important;
        bottom: 5px !important;
        font-size: 9px;
    }
}