﻿html,
body, #navpage {
    height: 100%;
    width: 100%;
    background-color: #fff;
}

body, #navpage {
    display: flex;
}

.form-signin {
    width: 100%;
    max-width: 330px;
    padding: 15px;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 20%;
}

.vertical-center {
    min-height: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.navbar-caption {
    padding-top: .1rem;
    padding-bottom: .1rem;
    font-size: 1.75rem;
}

.navbar {
    padding: .1rem 1rem;
}

.navbar-brand svg {
    width: 32px;
    height: 32px
}

#mainWrapper{
    padding-top: 60px;
}

.wraper {
    padding: 60px 20px 0;
}

.wraper .nav-link:not(:hover) {
    color: #333;
}

.wraper .nav-link {
    font-weight: 500;
}

.wraper .nav-link .feather {
    margin-right: 8px;
    color: #999;
}

button.btn-sm2 {
    padding: .05rem .5rem;
}

button.print-button {
    margin-top: 10px;
    min-width: 120px;
}

th.cell {
    padding-left: 0.75rem;
}

th.digit {
    padding-right: 1rem;
    text-align: right;
}

td.cell {
    padding: 0 5px 0 0.75rem !important;
}

td.digit {
    padding: 0 1rem 0 5px !important;
    text-align: right;
}

.table thead th {
    min-width: 100px;
    /*padding: .25rem !important;*/
    background-color: #fff;
}

.table thead th.width-xl {
    min-width: 200px;
}

.table thead th.width-lg {
    min-width: 150px;
}

.table thead th.width-sm {
    min-width: 50px;
}

.trselectable {
    cursor: pointer;
}

tbody td {
    color: #17a2b8;
}

tr.grey {
    background: #eee;
}

tr.grey input {
    background: #eee;
}

th, td {
    border-top: 0.5px solid #dee2e6 !important;
    border-bottom: 0.5px solid #dee2e6 !important;
}

td input {
    padding: 0 0 0 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
}

td input:focus {
    /*border: 0.5px solid #80bdff !important;
    box-shadow: none !important;*/
    box-shadow: inset 0 0 0 1px #80bdff !important;
}

td input.digit {
    padding: 0 1rem 0 0 !important;
    text-align: right;
}

td select {
    border: none;
}

td {
    margin: 0 !important;
    padding: 0 !important;
}

td.nowrap {
    white-space: nowrap;
}

td.menu {
    cursor: pointer;
}

div.menu_div {
    position: relative;
}

td.menu div.menu {
    display: none;
    position: absolute;
    list-style: none;
    padding: 4px;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: .25rem;
    width: 100px;
}

td.menu div a {
    cursor: pointer;
}

td.menu:hover div.menu {
    display: block;
}

td.menu:hover div.preview {
    display: none;
}

.tableFixHead {
    overflow-y: auto;
}

a.expand {
    transform: translate(-20px);
    position: absolute;
    cursor: pointer;
}

div.lookup {
    position: absolute;
    display: none;
    height: auto;
    width: auto;
    overflow-y: scroll;
    z-index: 4000;
    padding: 8px 6px 8px 8px;
    background-color: #fff;
    //border: 1px solid #ccc;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: 8px;
    box-shadow: 0 5px 10px rgba(0,0,0,.2);
}
td.lookup-first {
    padding-right: 10px !important;
}

div.lookup::-webkit-scrollbar {
    width: 10px;
}
div.lookup::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px rgba(0,0,0,.2);
    border-radius: 8px;
}
div.lookup::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.2);
    border-radius: 8px;
}


div.flex-field-end {
    display: flex;
    flex-direction: column;
    justify-content: end;
}

div.signature {
    position: fixed;
    display: none;
    top: 40%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 318px;
    z-index: 4000;
    padding: 8px;
    background-color: #fff;
    /*border: 1px solid #ccc;*/
    border: 1px solid rgba(0,0,0,.2);
    border-radius: 8px;
    box-shadow: 0 5px 10px rgba(0,0,0,.2);
}

/*.signatureArea {
    width: 300px;
}*/

.signatureCanvas {
    border: solid;
    border-width: 1px;
    border-color: #777777;
    background-color: #fff;
    width: 100%;
    touch-action: none;
}

.up {
    text-transform:uppercase
}

#wait {
    display: none;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

.spinner:before {
    content: '';
    box-sizing: border-box;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin-top: -25px;
    margin-left: -25px;
    border-radius: 50%;
    border: 8px solid lightgray;
    border-top-color: #007bff;
    animation: spinner .6s linear infinite;
}

@media screen and (max-width: 520px) {
    body {
        font-size: smaller;
    }
    h5 {
        font-size: small;
    }
    .wraper {
        padding: 30px 20px 0 10px;
    }
    #mainWrapper {
        padding-top: 30px;
    }
    button {
        font-size: smaller!important;
        padding:0!important;
    }
    button.print-button {
        font-size: 1rem !important;
    }
    .form-control {
        font-size: smaller;
    }
    .navbar-brand {
        font-size: 1rem;
    }
    .navbar-brand svg {
        width: 24px;
        height: 24px
    }
    .dropdown-item {
        padding: 0.1rem 1.5rem;
        font-size: small;
    }
    .dropdown-divider {
        margin: 0.25rem 0;
    }
}