Quick answer
До свида́ния · Пока́
do svidániya / poká — polite and casual — the same split as with hello
The options
Leaving a shop or an office
A simple До свида́ния as you walk out is expected and polite. Всего́ до́брого (“all the best”) is a step warmer and never wrong.
What you hear back
Typical mistakes
Пока́ to your professor
До свида́ния
пока́ belongs with ты.
До свида́ние
До свида́ния
до takes the genitive: свида́ние → свида́ния.
Check yourself
You leave a pharmacy. What do you say?