﻿/* Contenedor principal que oscurece el fondo */

.modalBackground {
    background-color: Black;
    filter: alpha(opacity=95);
    opacity: 0.8;
    background-image: src("/images/logo.jpg");
}

.modalPopup {
    background-color: #FFFFFF;
    border-width: 3px;
    border-style: solid;
    border-color: black;
    padding-top: 10px;
    padding-left: 30px;
    padding-right: 30px;
    width: 450px;
    height: 540px;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    overflow-y: auto;
    overflow-x: auto;
    flex: 1 !important;
}

.btncerrar {
    float: right;
    background-repeat: no-repeat;
    cursor: pointer;
    padding: 10px 10px 10px 10px;
    transform: scale(1.3);
}

.header {
    background-color: white;
    color: #2F328A;
    line-height: 20px;
    font-size: 16px;
    font-weight: 900;
    text-align: left;
    font-weight: bolder;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    padding-top: 15px;
    padding-left: 20px;
}

.footer {
    text-align: center;
    font-size: 17px;
    font-weight: bolder;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-right: 30px;
    border: none !important;
    max-height: 80px;
}

table {
    border: none;
}

    table td {
        border-bottom: none;
        border-bottom-width: 0px;
        font-size: 14px;
    }

    table.with-ellipsis td {
    }

.leyenda {
    font-weight: bold;
}

.msg-alert {
    text-align: center;
    color: red;
    font-style: italic;
    font-weight: bold;
}

.center {
    margin: auto;
    border: 3px none;
    padding: 10px;
    text-align: center;
}

/* Contenedor principal que oscurece el fondo */
.modal-contenedor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Caja de la ventana modal */
.modal-contenido {
    background: #fff;
    width: 90%; /* Ocupa el 90% en pantallas pequeñas */
    max-width: 500px; /* Tamaño máximo en pantallas grandes */
    max-height: 80vh; /* No supera el 80% de la altura de la pantalla */
    padding: 20px;
    border-radius: 8px;
    overflow-y: auto; /* Permite scroll si el contenido es muy largo */
    position: relative;
}

/* Ajuste específico para dispositivos móviles */
@media (max-width: 768px) {
    .modal-contenido {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0; /* Quita los bordes redondeados para aprovechar toda la pantalla */
        padding-top: 40px; /* Espacio para el botón de cerrar */
    }

}
