/* Overlay del popup */
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Activación del popup */
#overlay.active {
    display: flex;
    opacity: 1;
}

/* Contenedor del popup */
#popup-container {
    background: white;
    padding: 25px;
    border-radius: 10px;
    font-size: 16px;
    color: black;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    word-wrap: break-word;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    width: 90%;
    max-width: 550px;
    text-align: left;
    display: flex;
    flex-direction: column; /* Asegura que el contenido y los botones estén en columnas */
}

/* Contenedor del contenido del popup */
.popup-content {
    flex-grow: 1;
    overflow-y: auto;
    max-height: 60vh; /* Controla el tamaño del contenido antes del scroll */
}

/* Texto dentro del popup */
.popup-text {
    font-size: 14px;
    color: #333;
    margin-bottom: 15px;
    text-align: left;
}

/* Título del popup */
.popup-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    text-align: left;
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
}

/* Tabla dentro del popup */
.popup-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-top: 10px;
}

/* Encabezado de la tabla */
.popup-table th {
    background-color: #f4f4f4;
    border-bottom: 2px solid #ddd;
    padding: 12px;
    font-weight: bold;
    color: #333;
    text-align: left;
}

/* Celdas de la tabla */
.popup-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    color: #333;
    text-align: left;
    word-break: break-word;
}

/* Hacer los valores de los campos en negrita */
.popup-table td:first-child {
    font-weight: bold;
}

/* Botones */
.popup-buttons {
    display: flex;
    justify-content: center; /* Cambiado a center para centrar los botones */
    gap: 10px;
    margin-top: 15px;
}

/* Botones */
.popup-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    color: white;
}

/* Botón Aceptar */
.popup-btn-accept {
    background-color: #28a745;
}

.popup-btn-accept:hover {
    background-color: #218838;
}

/* Botón Cancelar */
.popup-btn-cancel {
    background-color: #dc3545;
}

.popup-btn-cancel:hover {
    background-color: #c82333;
}
