/* Estilos para la tabla */
.encabezadoTabla, .pieTabla{
    background-color:#007BFF;
}


.tablaEstilos{
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

table.dataTable.table.table-striped > tbody > tr:nth-of-type(2n+1) > * {
    box-shadow: inset 0 0 0 9999px rgba(59, 130, 246, 0.05);
}

.encabezadoTabla th{
     color: #ffffff !important;
            font-weight: 600 !important;
            text-transform: uppercase;
            font-size: 12px;
            letter-spacing: 0.5px;
            padding: 18px 15px !important;
            border: none !important;
            vertical-align: middle;
            text-align: center !important;
}

.encabezadoTabla th:first-child {
            border-radius: 12px 0 0 12px;
        }

        .encabezadoTabla th:last-child {
            border-radius: 0 12px 12px 0;
        }

.table-responsive input{
    border: 0.5px solid #007BFF;
}

.tablaEstilos td{
    text-align: center !important;
    padding: 0.3rem;
}

.contenedorTabla{
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 30px;
}

.contenedorAcciones{
    display: flex;
    justify-content: space-between;
    align-items: space-between;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    border: 1px solid #ddd;
}

.tablaEstilos thead tr {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border-radius: 8px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
}

.tablaEstilos tbody tr {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
}

.tablaEstilos tbody tr:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    background: linear-gradient(to right, #ffffff 0%, #f8f9ff 100%);
}

.tablaEstilos tbody td {
    padding: 16px 15px !important;
    vertical-align: middle !important;
    border: none !important;
    font-size: 14px;
    color: #374151;
}

.tablaEstilos tbody td:first-child {
    border-radius: 12px 0 0 12px;
    font-weight: 600;
    color: #667eea;
    font-size: 15px;
}

.tablaEstilos tbody td:last-child {
    border-radius: 0 12px 12px 0;
}

.badge-estado {
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.3px;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        .badge-estado::before {
            content: '';
            width: 6px;
            height: 6px;
            border-radius: 50%;
            display: inline-block;
        }

        .badge-estado.activo {
            background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
            color: #065f46;
        }

        .badge-estado.activo::before {
            background: #10b981;
            box-shadow: 0 0 6px #10b981;
        }

        .badge-estado.inactivo {
            background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
            color: #991b1b;
        }

        .badge-estado.inactivo::before {
            background: #ef4444;
            box-shadow: 0 0 6px #ef4444;
        }



.logoInput span{
    color: #007BFF;
    font-weight: bold;
}

.modalDiseno h5{
    color: black;
    font-size: 1.7rem;
    font-weight: bold;
    text-align: center;
    flex: 1;
}

.modal-header{
    border: 0;
    background-color: #007BFF;
}
.modal-title{
    color: white !important;
}

.close span{
    color: white;
}
.modal-footer{
    border-top:0;
}
.modal-footer button{
    width: 100%;
}
.formulario{
    padding: 1.5rem;
}

.formulario .form-group{
    margin-bottom: 2rem;
}

.formulario input{
    border: 3px solid #007BFF;
    border-radius: 0.25rem;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.formulario input:focus{
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    background-color: #f8f9ff;
}

.formulario input::placeholder{
    color: #6c757d;
    font-style: italic;
}

.formulario .input-group-text{
    border: 3px solid #007BFF;
    border-right: none;
}

.formulario .input-group input{
    border-left: none;
}

.formulario label{
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.formulario select.form-control{
    border: 2px solid #007BFF !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 0.25rem !important;
    transition: all 0.3s ease !important;
    background-color: white !important;
}

.formulario select.form-control:focus{
    outline: none !important;
    border-color: #0056b3 !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
    background-color: #f8f9ff !important;
}

/* Para las opciones del select */
.formulario select.form-control option{
    background-color: white !important;
    color: #333 !important;
    padding: 0.5rem !important;
}

.formulario select.form-control option:checked,
.formulario select.form-control option:hover{
    background-color: #007BFF !important;
    color: white !important;
}

.image-dropzone {
    border: 2px dashed #007bff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    background: #f8f9fa;
    transition: all 0.3s;
    min-height: 200px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
}

.image-dropzone:hover {
    border-color: #0056b3;
    background: #e9ecef;
}

.image-dropzone .dz-message {
    margin: 20px 0;
}

.image-dropzone .dz-message i {
    display: block;
    margin-bottom: 10px;
}

.image-dropzone .dz-preview {
    display: inline-block;
    margin: 10px;
    vertical-align: top;
    width: 120px;
}

.image-dropzone .dz-image {
    border-radius: 8px;
    overflow: hidden;
    width: 120px;
    height: 120px;
    border: 2px solid #ddd;
    margin-bottom: 5px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
}

.image-dropzone .dz-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-dropzone .dz-details {
    text-align: center;
    padding: 5px 0;
}

.image-dropzone .dz-filename {
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.image-dropzone .dz-size {
    font-size: 10px;
    color: #666;
    margin: 3px 0 5px 0;
}

/* Solo mostrar UN botón eliminar */
.image-dropzone .dz-remove {
    background: #dc3545;
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 11px;
    display: inline-block;
}

.image-dropzone .dz-remove:hover {
    background: #c82333;
    text-decoration: none;
}

/* Ocultar el botón duplicado que genera Dropzone por defecto */
.image-dropzone a.dz-remove:last-of-type {
    display: none;
}

.product-info-row {
            border-bottom: 1px solid #eee;
            padding: 8px 0;
        }
        .product-info-row:last-child {
            border-bottom: none;
        }
        .modal-header.bg-info {
            background-color: #0056b3 !important;
        }
        .form-group label {
            font-weight: 600;
        }
        .required {
            color: #dc3545;
        }
        .product-image-preview {
            max-width: 200px;
            max-height: 200px;
            object-fit: cover;
        }

@media(max-width:1200px){
    .contenedorBotonesCrudExternos{
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }
}


@media(max-width:767px){
    .contenedorAcciones{
        display: flex;
        flex-direction: column  !important;
    }
    .tdAcciones{
        display: flex;
        flex-direction: column !important;
        gap: 0.5rem !important;
        align-items: center !important;
    }
}

@media (max-width:575px){
    .modalExtraInfo{
        width: 100% !important;
        max-width: 100% !important;
        padding: 5% !important;
    }
}

