/* Evitar desbordamiento horizontal */
body {
    overflow-x: hidden;
}

/* Asegurar que el contenedor de Select2 ocupe el 100% */
.select2-container {
    width: 100% !important;
}

/* Ajuste de altura y estilo para el dropdown */
.select2-container .select2-selection--single {
    height: 40px;
    padding: 6px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-shadow: none;
    display: flex;
    align-items: center;
}

/* Estilo del texto dentro del select */
.select2-container .select2-selection__rendered {
    font-size: 16px;
    color: #495057;
}

/* Flecha del dropdown */
.select2-container .select2-selection__arrow {
    height: 100%;
    padding: 0 8px;
}


#modalAjustarPrecio .modal-dialog {
    max-width: 300px;
}
#modalAjustarPrecio .modal-body {
    padding: 10px;
}
#modalAjustarPrecio .btn-group {
    margin-top: 10px;
}


#detalle-venta .oculto {
    display: none; /* Ocultar celdas con esta clase */
}


#montototalPagar {
    font-size: 2rem;
    font-weight: bold;
    color: #007bff; /* Cambia a un azul más vivo */
    font-family: 'Roboto', sans-serif;
}

.text-success {
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

#montoEfectivoError {
    margin-top: 0.5rem; /* Espaciado adicional entre el mensaje y el input/checkbox */
    display: block; /* Asegura que el mensaje de error use toda la fila */
}

#card_cajaestado {
    border-radius: 12px;
    overflow: hidden;
}

#header_card_cajaestado {
    font-size: 1.1rem;
}

button#btnAccionCaja {
    transition: all 0.3s ease-in-out;
}

button#btnAccionCaja:hover {
    transform: scale(1.05);
}

#btnAccionCaja {
    transition: all 0.3s ease-in-out;
}




.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.mensaje-bloqueo {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #d9534f;
}



.product-card {
    position: relative;
    overflow: hidden;
}

/* 🔹 Superposición diagonal cuando el producto está agotado */
.overlay-agotado {
    position: absolute;
    top: 50%;
    left: -10%;
    width: 120%;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    text-align: center;
    transform: rotate(-20deg);
    font-size: 18px;
    font-weight: bold;
    padding: 5px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.product-card.agotado {
    opacity: 0.7;
    filter: grayscale(60%);
}
