.form-container, .table-container {
    background-image: linear-gradient(45deg, #282b2d5d, #282b2d96);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    color: #f2e6d8cd;
}

.form-container .row, .table-container .row {
    margin: 0;
    padding-left: 15px;
    padding-right: 15px;
    text-align: center;
}

.form-label{
    text-align: center;
}

.form-control-date {
    text-align: center;
    max-height: 40px;
}

.accionColumn{
    max-width: 150px;
    background-color: wheat;
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: #282b2d14;
    text-align: center;
}

.card-section {
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #dee2e6;
    text-align: center;
    background: #282b2d14;
}

.section-header {
    background-image: linear-gradient(145deg, #282b2de0, #282b2d80);
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    color: #f2e6d8cd;
}

.search-select-container {
    position: relative;
    margin-bottom: 5px;
}

.search-input {
    width: 100%;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem 1rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.622);
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
    max-height: 40px;
}

.select-dropdown {
    position: absolute;
    top: 100%;
    color: #000;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.622);
    border: 1px solid #ced4da;
    border-top: none;
    border-radius: 0 0 5px 5px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.select-option, .select-option-proveedor, .select-option-producto {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #0d1116;
    background-image: linear-gradient(45deg, #282b2d7e, #282b2db5);
}

.select-option:hover,
.select-option.selected {
    background-color: #06182c;
    color: #F7F0E2;
}

.select-option-producto:hover,
.select-option-producto.selected {
    background-color: #06182c;
    color: #F7F0E2;
}

.select-option-proveedor:hover,
.select-option-proveedor.selected {
    background-color: #06182c;
    color: #F7F0E2;
}

.btn-add {
    background-image: linear-gradient(90deg, #a60825a4, #A60825);
    color: rgb(0, 0, 0);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.2s;
    width: 100%;
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
}


.quantity-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    text-align: center;
}

.form__field {
    max-height: 45px;
    margin-bottom: 5px;
}


/*Boton Eliminar Producto de la grilla*/
.modal-body #createProductoForm{
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.text-danger {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    color: #dc3545;
    display: block;
}






/* Contenedor para la vista previa de imagen */
.imagen-preview-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 15px;
    margin-bottom: 10px;
}

#imagen-preview, #imagen-preview-update {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    max-width: 300px;
    max-height: 300px;
    border-radius: 8px;
    overflow: hidden;
}

#file {
    display: none;
}

/* Mejorar el diseño responsivo para dispositivos móviles */
@media (max-width: 768px) {
    .form-check {
        gap: 5px;
    }
    
    .form-check .percent {
        width: 14px;
        height: 14px;
    }
    
    .form-check-label {
        font-size: 0.9rem;
    }
    
    /* Ajustar el padding del modal para móviles */
    .modal-body {
        padding: 1rem;
    }
    
    /* Dar más espacio a los campos en móvil */
    .form__group {
        margin-bottom: 0.8rem;
    }
}

/* Mejora para pantallas muy pequeñas */
@media (max-width: 576px) {
    .ganancia-options {
        margin-right: 2px;
    }
    
    .form-check-label {
        font-size: 0.8rem;
    }
}



/* Upload de imagen */
.custum-file-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    border: 2px dashed #007bff;
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    width: 100%;
    transition: all 0.3s ease;
}


.custum-file-upload:hover {
    border-color: #0056b3;
    background-color: #e9f2fb;
}


#modalCrearProducto .modal-content {
    margin: 1.75rem auto;
    background: #51515180;
}

#btn-eliminar .btn-eliminar {
    color: rgb(0, 0, 0);
    border: none;
    padding: 2px;
    font-weight: bold;
    max-width: 50px;
    transition: transform 0.2s;
}

#tablaProductos td, #tablaProductos th  {
    vertical-align: middle;
    padding: 2px;
    background-image: linear-gradient(45deg, #282b2d, #282b2d);
    padding-bottom: 0;
    color: #F7F0E2;
}

#tablaProductosUpdate td,
#tablaProductosUpdate th {
    vertical-align: middle;
    padding: 2px;
    background-image: linear-gradient(45deg, #282b2d8e, #282b2ddf);
    padding-bottom: 0;
    color: #F7F0E2;
}

.table-secondary td {
    background-image: linear-gradient(45deg, #282b2d8e, #282b2ddf);
    color: #F7F0E2;
    font-size: 16px;
}

/* creear producto*/
#modalCrearProducto .modal-content{
    background-image: linear-gradient(45deg, #282b2d8e, #282b2ddf);
    color: #F7F0E2;
}

.imagen-field{
    display: inline-flex;
    width: 100%;
    gap: 10px;
    height: 300px;
}

/* Contenedor para la vista previa de imagen */
.imagen-preview-container {
    display: flex;
    justify-content: center;
     width: 50%;
}

#imagen-preview, #imagen-preview-update {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    max-width: 400px;
    min-width: 100px;
    max-height: 300px;
    border-radius: 8px;
    overflow: hidden;
    border: 3px dashed #282b2d6d;
}

.custum-file-upload {
    border: 3px dashed #282b2d6d;
    background-color: #f8f9fa;
    color: #000;
    border-radius: 10px;
    margin: auto;
    padding: 2rem;
    transition: all 0.3s ease;
    text-align: center;
    height: 300px;
    width: 40%;
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.custum-file-upload:hover {
    border-color: #0056b3;
    background-color: #e9f2fb;
    cursor: alias;
}


.form-check{
    display: flex;
    /* min-height: 1.5rem; */
    /* padding-left: 1.5em; */
    /* margin-bottom: .125rem; */
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.622);
    margin-top: 5px;
    gap: 20px;
    border-radius: 30px;
}


.percent:hover {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.form-check-label {
    color: #000;
    width: 20px;
    height: 20px;
}
