I accidentally deleted a file from the Document folder. What now?

Check the Recycle Bin in the left navigation bar of your subsite, your file should be there.  Choose the file and click restore at the top of the file manager window