Onycholysis refers to the detachment of the nail from the nail bed, often starting at the tip of the nail and progressing toward the cuticle. This condition can affect both fingernails and toenails and is typically painless, though it may lead to secondary infections if not managed properly.