A doc fee is charged by the dealer to process paperwork, but the amount can vary widely.
Doc fees cover administrative costs related to the sale.
They vary by dealer and state.
Often indirectly, by negotiating the vehicle price.
https://outthedoor.autos/learn/what-is-a-doc-fee-when-buying-a-car