body {
    padding-top: 4.5rem;
    padding-bottom: 5rem;
    /*overflow: hidden;*/
    height: 100vh;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance:textfield;
    appearance: textfield;
}

input.form-control {
    text-transform: uppercase;
}

input.form-control::placeholder {
    color: #C7C7C7;
}

.navbar {
    padding: 10px;
}

.navbar-brand {
    margin-right: 1rem;
    margin-left: 1rem;
}

.navbar, .btn-lg, #canvas-foto {
    box-shadow: 0 2px 4px -1px rgb(0 0 0 / 20%), 
                0 4px 5px 0 rgb(0 0 0 / 14%), 
                0 1px 10px 0 rgb(0 0 0 / 12%);
}

.btn {
    border-radius: 100px;
}

.container, .embed {
    height: 100%;
    padding: 0 7px 0 7px;
}

.toast {
    /*top: 55px;*/
    opacity: 1;
}

#toast-container > div {
   opacity: 1;
}

.input-group-text {
    border-radius: 3px 0 0 3px;
}

.input_chave_assinatura {
    font-size: 32px !important; 
    letter-spacing: 0.5em; 
    text-align: center;
    border: 2px dotted #6c757d;
    width: 300px;
    margin: 16px auto 6px auto;
    text-transform: uppercase;
    color: #0d6efd !important;
}

#canvas-foto, #canvas-foto-documento {
    padding: 0;
    margin: 0;
    width: 45%;
    border:  3px solid #fff;
}

#nome-cpfcnpj-row, #canvas-foto-row, #canvas-foto-documento-row, #canvas-assinatura-row  {
    margin: auto;
}

#video-foto, #video-foto-documento {
    width: 100%;
}

.camera-swap {
    z-index: 999;
    position: absolute;
    top: 25px;
    left: 25px;
}

#canvas-assinatura {
    width: 300px; 
    height: 95px;
    border: 4px dashed #eee;
    border-radius: 6px;
}

.signature-pad {
    margin: 0 auto;
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    font-size: 10px;
    width: 100%;
    height: 160px !important;
    border: 0;
    background-color: #EDEDED;
    box-shadow: 0;
    padding: 0;
    border: 1px dashed #ACACAC;
    border-radius: 10px;
}

.signature-pad--body:after {
    content: '';
    position: absolute;
    left: 10px;
    top: 70%;
    width: 96%;
    height: 1px;
    color: #BFBFBF;
    background-color: #D8D8D8;
    z-index: 99999;
}

.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading:after {
    content: '';
    position: absolute;
    width: 1.5rem;
    height: 1.5rem;
    top: 50%;
    left: 50%;
    margin-top: -0.75rem;
    margin-left: -0.75rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

[data-submitted="true"] {
    pointer-events: none;
}

#loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

#loading-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
}
