Make borders straight and revamp number input

Tested new input system on dados_de_unidade, making putting numbers in
easier and more responsive to format them.