/* MEJORAS MÍNIMAS PARA MODALES - SOLO BOTÓN CERRAR */

/* Mejorar botón de cerrar */
.cerrar_modal {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #dee2e6;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cerrar_modal:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    color: #495057;
    transform: scale(1.1);
}

.cerrar_modal:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Mejorar ancho del modal de productos */
#modalProducto .modal-lg {
    max-width: 90%;
}

#modalProducto .modal-body {
    max-height: 80vh;
    overflow-y: auto;
}

/* Mejorar el scroll de las tablas */
.js-pscroll {
    max-height: 400px;
    overflow-y: auto;
}

/* Mejorar botones */
.boton.naranja {
    background: linear-gradient(45deg, #ff7b00, #ff9500);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.boton.naranja:hover {
    background: linear-gradient(45deg, #e6690b, #e67e00);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 123, 0, 0.3);
}

/* Asegurar que las tablas tengan scroll */
.table100-body {
    max-height: 400px !important;
    overflow-y: auto !important;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-lg {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .cerrar_modal {
        right: 10px;
        top: 10px;
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}
