
    /* ========================================
       ESTILOS PRINCIPALES - SIN SCROLL VERTICAL
       ======================================== */
    
    /* Eliminar scroll en contenedores de productos */
    .productos-container {
        max-height: none !important;
        overflow-y: visible !important;
        overflow-x: visible !important;
    }
    
    .pedido-card-inner {
        max-height: none !important;
        overflow-y: visible !important;
        padding-right: 10px;
    }
    
    .pedido-card {
        overflow: visible !important;
        background: white;
        border-radius: 10px;
        box-shadow: 0 0 15px rgba(0,0,0,0.1);
        padding: 20px;
        margin-bottom: 20px;
    }
    
    /* Paginación */
    .paginacion-container {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin: 20px 0;
        flex-wrap: wrap;
    }
    
    .btn-pedido {
        background-color: #6c757d;
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 5px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-weight: bold;
    }
    
    .btn-pedido:hover {
        background-color: #5a6268;
        transform: translateY(-2px);
    }
    
    .btn-pedido.active {
        background-color: #007bff;
    }
    
    /* Header del pedido */
    .pedido-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 2px solid #e9ecef;
        background: white;
    }
    
    .header-buttons {
        display: flex;
        gap: 10px;
        align-items: center;
        flex-wrap: wrap;
    }
    
    .btn-guardar-cambios {
        background-color: #28a745;
        color: white;
        border: none;
        padding: 8px 20px;
        border-radius: 5px;
        font-size: 14px;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .btn-guardar-cambios:hover {
        background-color: #218838;
        transform: translateY(-2px);
    }
    
    .btn-guardar-cambios:disabled {
        background-color: #6c757d;
        cursor: not-allowed;
        transform: none;
    }
    
    .btn-cancelar-pedido {
        background-color: #dc3545;
        color: white;
        border: none;
        padding: 8px 20px;
        border-radius: 5px;
        font-size: 14px;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .btn-cancelar-pedido:hover {
        background-color: #c82333;
        transform: translateY(-2px);
    }
    
    /* Producto item */
    .producto-item {
        display: flex;
        gap: 15px;
        padding: 15px;
        border-bottom: 1px solid #e9ecef;
        margin-bottom: 10px;
        width: 100%;
    }
    
    .producto-item.modificado {
        border-left: 4px solid #ffc107;
        background-color: #fffbf0;
        position: relative;
    }
    
    .producto-imagen {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border-radius: 8px;
    }
    
    .producto-detalles {
        flex: 1;
    }
    
    .producto-nombre {
        font-weight: bold;
        margin-bottom: 5px;
    }
    
    .tipo-pedido-badge {
        font-size: 11px;
        padding: 2px 6px;
        border-radius: 4px;
        margin-left: 8px;
    }
    
    .tipo-caja {
        background-color: #17a2b8;
        color: white;
    }
    
    .tipo-unidad {
        background-color: #28a745;
        color: white;
    }
    
    .estado-pendiente {
        background-color: #ffc107;
        color: #856404;
        padding: 5px 10px;
        border-radius: 5px;
        font-size: 12px;
        font-weight: bold;
    }
    
    /* Distribución de colores */
    .distribucion-editor {
        padding: 0.75rem;
        background: #f8f9fa;
        border-radius: 4px;
        margin-top: 0.5rem;
        border-left: 3px solid #007bff;
    }
    
    .color-dist-input {
        width: 80px;
        height: 35px;
        text-align: center;
    }
    
    .producto-sin-colores {
        background-color: #e7f3ff;
        padding: 10px;
        border-radius: 5px;
        margin-top: 10px;
    }
    
    /* Opciones del producto */
    .producto-opciones {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
    }
    
    .cantidad-control {
        display: flex;
        align-items: center;
        gap: 5px;
    }
    
    .cantidad-btn {
        width: 30px;
        height: 30px;
        border: 1px solid #ddd;
        background: #f8f9fa;
        border-radius: 5px;
        cursor: pointer;
    }
    
    .cantidad-input {
        width: 60px;
        text-align: center;
        border: 1px solid #ddd;
        border-radius: 5px;
        padding: 5px;
    }
    
    .btn-eliminar {
        background: none;
        border: none;
        color: #dc3545;
        font-size: 18px;
        cursor: pointer;
    }
    
    /* Resumen del pedido */
    .resumen-pedido {
        background: #f8f9fa;
        padding: 15px;
        border-radius: 8px;
        margin-top: 15px;
    }
    
    .total-row {
        display: flex;
        justify-content: space-between;
        font-size: 18px;
        font-weight: bold;
        margin-bottom: 15px;
    }
    
    .qr-info {
        display: flex;
        gap: 20px;
        align-items: center;
        flex-wrap: wrap;
    }
    
    .qr-image {
        width: 100px;
        height: 100px;
        object-fit: contain;
    }
    
    .qr-details {
        flex: 1;
    }
    
    .qr-details .total {
        font-size: 1.5rem;
        font-weight: 700;
        color: #28a745;
    }
    
    .qr-details .adelanto {
        font-size: 1.2rem;
        color: #dc3545;
        font-weight: 600;
    }
    
    /* Loader */
    .loader {
        border: 3px solid #f3f3f3;
        border-top: 3px solid #007bff;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        animation: spin 1s linear infinite;
        margin: 20px auto;
    }
    
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
    
    /* Responsive */
    @media (max-width: 768px) {
        .producto-item {
            flex-direction: column;
        }
        
        .producto-opciones {
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
        }
        
        .pedido-header {
            flex-direction: column;
            align-items: stretch;
        }
        
        .header-buttons {
            justify-content: center;
        }
        
        .btn-pedido {
            padding: 8px 12px;
            font-size: 12px;
        }
        
        .qr-info {
            flex-direction: column;
            text-align: center;
        }
    }
