The asymmetric unit of the title compound contains two independent molecules with similar conformations, the cyclohexene rings adopting the same envelope conformation. In the crystal, adjacent molecules are connected via N—H⋯O hydrogen bonds and weak C—H⋯O interactions, forming supramolecular layers parallel to (01).