html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #21166f;
}

body {
    margin-bottom: 60px;
}

select {
    height: auto !important;
}

.highlightcolor {
    background-color: skyblue;
}

@media (max-width: 767px) {
    .table-responsive .dropdown-menu {
        position: static !important;
    }
}

@media (min-width: 768px) {
    .table-responsive {
        overflow: visible;
    }
}

.required::before {
    content: "* ";
    color: red;
}

/* ==================================================
   GENERALES
   ================================================== */

.banner-img {
    height: 380px;
    object-fit: cover;
    border-radius: 10px;
}

/* ==================================================
   LOGOUT PAGE NUEVO DISEÑO
   ================================================== */

body.logout-page {
    min-height: 100vh;
    margin-bottom: 0;
    background: #ffffff !important;
    color: #21166f;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

    body.logout-page::before {
        display: none !important;
    }

    /* HEADER SUPERIOR */
    body.logout-page .header-bg,
    body.logout-page header,
    body.logout-page .navbar {
        background: #ffffff !important;
        border: none !important;
        box-shadow: none !important;
    }

    body.logout-page .header-bg-inner {
        padding-top: 20px;
        padding-bottom: 10px;
    }

    /* LOGO HORIZONTAL */
    body.logout-page .navbar-brand {
        display: flex !important;
        align-items: center !important;
        gap: 10px;
        padding: 0 !important;
        margin: 0 !important;
    }

        body.logout-page .navbar-brand::before {
            content: "Intranet";
            font-size: 1.15rem;
            font-weight: 600;
            color: #21166f;
        }

        body.logout-page .navbar-brand img.brandimage {
            height: 58px !important;
            width: auto !important;
            max-height: 58px !important;
        }

    /* BOTÓN SUPERIOR CERRAR SESIÓN (SOLO TEXTO) */
    body.logout-page header a,
    body.logout-page .nav-link,
    body.logout-page .btn-link {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        color: #21166f !important;
        font-weight: 700;
        padding: 0 !important;
    }

        body.logout-page header a:hover,
        body.logout-page .nav-link:hover,
        body.logout-page .btn-link:hover {
            color: #d4ad45 !important;
        }

    /* CONTENEDOR CENTRAL */
    body.logout-page .layout-content {
        background: #ffffff !important;
    }

        body.logout-page .layout-content > .container {
            max-width: 1280px;
        }

    /* TARJETA CENTRAL AZUL CLARO */
    body.logout-page .card,
    body.logout-page .card.o-hidden,
    body.logout-page .shadow-lg,
    body.logout-page .border-0 {
        background: linear-gradient(135deg, #eef3ff, #dce7ff) !important;
        border: 1px solid rgba(33,22,111,.10) !important;
        border-radius: 22px !important;
        box-shadow: 0 15px 35px rgba(33,22,111,.08) !important;
    }

    /* IMAGEN IZQUIERDA */
    body.logout-page .bg-login-image,
    body.logout-page img {
        max-width: 420px;
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    /* TITULOS */
    body.logout-page h1,
    body.logout-page h2,
    body.logout-page h3,
    body.logout-page h4 {
        color: #21166f !important;
        font-weight: 800;
    }

    /* TEXTO */
    body.logout-page p,
    body.logout-page label,
    body.logout-page span,
    body.logout-page .text-muted {
        color: #21166f !important;
    }

    /* LÍNEA */
    body.logout-page hr {
        border-top: 2px solid rgba(33,22,111,.18) !important;
        opacity: 1;
    }

    /* BOTÓN CENTRAL CERRAR SESIÓN */
    body.logout-page button[type="submit"],
    body.logout-page .btn-primary {
        background: #21166f !important;
        border: none !important;
        color: #ffffff !important;
        border-radius: 12px !important;
        min-height: 58px;
        font-size: 1.15rem;
        font-weight: 700;
        box-shadow: none !important;
    }

        body.logout-page button[type="submit"]:hover,
        body.logout-page .btn-primary:hover {
            background: #3124a5 !important;
        }

    /* LINKS */
    body.logout-page a {
        color: #21166f !important;
    }

        body.logout-page a:hover {
            color: #d4ad45 !important;
        }

/* ==================================================
   MANUALES / POLITICAS
   ================================================== */

body.module-main-theme.manuales-politicas-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

    body.module-main-theme.manuales-politicas-page .layout-content {
        flex: 1 0 auto;
        display: flex;
        flex-direction: column;
    }

        body.module-main-theme.manuales-politicas-page .layout-content > .container {
            flex: 1 0 auto;
            display: flex;
            flex-direction: column;
        }

    body.module-main-theme.manuales-politicas-page .main-home-content {
        flex: 1 0 auto;
        display: flex;
        flex-direction: column;
    }

.manuales-politicas-page .mp-front-wrapper {
    flex: 1 0 auto;
}

.manuales-politicas-page .footer {
    margin-top: auto;
}

/* ==================================================
   RESPONSIVE
   ================================================== */

@media (max-width: 576px) {

    body.logout-page .navbar-brand img.brandimage {
        height: 48px !important;
    }

    body.logout-page .navbar-brand::before {
        font-size: 1rem;
    }

    body.logout-page .card,
    body.logout-page .card.o-hidden {
        padding: 20px !important;
    }
}

/* ==================================================
   FIX FINAL LOGOUT
   ================================================== */

/* Botón/link superior: SIN fondo azul, solo texto */
body.logout-page .header-right-tools form button,
body.logout-page .header-right-tools .btn,
body.logout-page header form button,
body.logout-page header .btn,
body.logout-page header .btn-primary,
body.logout-page header .nav-link,
body.logout-page header a {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #21166f !important;
    padding: 0 !important;
    min-height: auto !important;
    border-radius: 0 !important;
    font-weight: 700 !important;
}

    body.logout-page .header-right-tools form button:hover,
    body.logout-page .header-right-tools .btn:hover,
    body.logout-page header form button:hover,
    body.logout-page header .btn:hover,
    body.logout-page header .btn-primary:hover,
    body.logout-page header .nav-link:hover,
    body.logout-page header a:hover {
        background: transparent !important;
        background-color: transparent !important;
        color: #d4ad45 !important;
    }

/* Recuadro central: azul claro en lugar de crema */
body.logout-page .card,
body.logout-page .card-body,
body.logout-page .card.o-hidden,
body.logout-page .o-hidden,
body.logout-page .shadow-lg {
    background: #eef4ff !important;
    background-color: #eef4ff !important;
    border-radius: 22px !important;
}

    /* Si quieres un azul un poquito más intenso usa este en vez del anterior:
body.logout-page .card,
body.logout-page .card-body,
body.logout-page .card.o-hidden,
body.logout-page .o-hidden,
body.logout-page .shadow-lg {
    background: #e4edff !important;
    background-color: #e4edff !important;
}
*/

    /* Evita que columnas internas vuelvan a poner fondo crema */
    body.logout-page .card .row,
    body.logout-page .card [class*="col-"],
    body.logout-page .card .p-5 {
        background: transparent !important;
    }

/* Botón central del formulario sí queda azul */
body.logout-page main button[type="submit"],
body.logout-page main .btn-primary {
    background: #21166f !important;
    background-color: #21166f !important;
    border-color: #21166f !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    min-height: 58px !important;
    font-weight: 700 !important;
}

/* ============================================================
   DETALLE - PESTAÑAS
   ============================================================ */

.adq-detail-tabs {
    margin-bottom: 20px;
}

    .adq-detail-tabs .nav-link {
        font-size: 13px;
        font-weight: 600;
    }

        .adq-detail-tabs .nav-link.active {
            color: #21166f;
        }


/* ============================================================
   CHAT DE SEGUIMIENTO
   ============================================================ */

.adq-followup-wrapper,
.adq-history-wrapper {
    padding-top: 4px;
}

.adq-followup-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}


    .adq-followup-header > div:first-child {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }


.adq-chat-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 260px;
    max-height: 420px;
    padding: 18px;
    overflow-y: auto;
    background: #f8f9fc;
    border: 1px solid #e4e7ee;
    border-radius: 12px;
}


.adq-chat-empty {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    color: #777e8c;
}


    .adq-chat-empty i {
        font-size: 32px;
        color: #a3a8b4;
    }


.adq-chat-message {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 75%;
}


.adq-chat-message-own {
    align-self: flex-end;
    align-items: flex-end;
}


.adq-chat-message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 11px;
    color: #747b88;
}


    .adq-chat-message-header strong {
        color: #313743;
    }


.adq-chat-bubble {
    padding: 11px 14px;
    background: #ffffff;
    border: 1px solid #e0e3e9;
    border-radius: 12px;
    font-size: 13px;
    white-space: pre-wrap;
    word-break: break-word;
}


.adq-chat-message-own .adq-chat-bubble {
    background: #efedff;
    border-color: #d6d1ff;
}


.adq-chat-compose {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e4e7ee;
}


/* ============================================================
   HISTORIAL
   ============================================================ */

.adq-history-list {
    margin-top: 12px;
}


.adq-history-item {
    position: relative;
    display: flex;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid #edf0f4;
}


.adq-history-marker {
    padding-top: 3px;
    font-size: 8px;
    color: #21166f;
}


.adq-history-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}


    .adq-history-content strong {
        font-size: 13px;
        font-weight: 600;
        color: #303642;
    }


    .adq-history-content span {
        font-size: 11px;
        color: #7a808c;
    }