/* Estilos para la tabla de pedidos */
.scfv-tabla-container {
    margin: 20px 0;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Personalización de DataTables */
.dataTables_wrapper .dataTables_length, 
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 15px;
}

.dataTables_wrapper .dataTables_info, 
.dataTables_wrapper .dataTables_paginate {
    margin-top: 15px;
}

/* Estilos para los badges de estado */
.scfv-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    color: #fff;
}

.scfv-badge i {
    margin-right: 5px;
}

.badge-preparacion {
    background-color: #3498db;
}

.badge-en-espera {
    background-color: #f39c12;
}

.badge-proforma {
    background-color: #9b59b6;
}

.badge-aprobado {
    background-color: #2ecc71;
}

.badge-cancelado {
    background-color: #e74c3c;
}

.badge-info {
    background-color: #17a2b8;
}

/* Estilos para los botones de acción */
.tabla-pedidos .acciones {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.tabla-pedidos .acciones a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

/* Nuevos estilos para los iconos sin fondo */
.ver-pedido, .descargar-pedido {
    background-color: transparent !important;
    font-size: 18px;
    margin: 0 5px;
}

.ver-pedido i {
    color: #0099de;
}

.descargar-pedido i {
    color: #e74c3c;
}

.ver-pedido:hover i,
.descargar-pedido:hover i {
    transform: scale(1.2);
}

.tabla-pedidos .ver-pedido:hover,
.tabla-pedidos .descargar-pedido:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

/* Estilos para el wrapper de la tabla de pedidos */
.scfv-pedidos-wrapper {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 0 10px rgba(0, 153, 222, 0.3);
    border: 1px solid #0099de;
    position: relative;
    overflow: hidden;
}

/* Efecto neón para el borde */
.scfv-pedidos-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(to right, #0099de, #00c3ff);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

/* Ajustes para la tabla dentro del wrapper */
.scfv-pedidos-wrapper table.dataTable {
    width: 100% !important;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}

/* Ocultar íconos de ordenamiento */
table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc,
table.dataTable thead .sorting_asc_disabled,
table.dataTable thead .sorting_desc_disabled {
    background-image: none !important;
    cursor: default !important;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .dataTables_wrapper .dataTables_length, 
    .dataTables_wrapper .dataTables_filter {
        text-align: left;
        float: none;
    }
    
    .dataTables_wrapper .dataTables_filter {
        margin-top: 10px;
    }
    
    .scfv-badge {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .tabla-pedidos .acciones a {
        width: 28px;
        height: 28px;
    }
}