The last barline in the score

Cubase attempts to move the last barline and space the bars on the last line in a sensible way. But you can change this manually by dragging the last barline if you like. To change the type of the last barline, double-click it and select the desired type.