html, body {
    height: 100%;
    overflow-y: auto;
}

.vcenter {
    display: inline-block;
    vertical-align: middle;
    float: none;
}

.align-middle {
    display: flex;
    align-items: center;
}

.forgot-password-container {
    margin-top: 25px;
    text-align: right;
}

.avatar-thumbnail {
    object-fit: cover; /* Do not scale the image */
    object-position: center; /* Center the image within the element */
    width: 55px;
    height: 55px;
    border-radius: 28px;
    padding: 2px;
    border: 1px solid #DDD;
}

#app-wrapper, #site-wrapper {
    margin-bottom: 75px;
    position: relative;
}

.error-message {
    margin-bottom: 10px;
}

.autocomplete-match:hover {
    cursor: pointer;
    background-color: #333;
    color: #EEE;
}

.center-block {
    float: none;
}

.btn-primary {
    background-color: #333;
    transition: 0.3s all;
}

.btn-primary:hover, .btn-primary:active, .btn-primary:focus {
    background-color: #555;
}

.required {
    color: darkred;
    font-weight: bolder;
}

#header {
    border-bottom: 4px solid black;
    padding: 10px;
    box-shadow: 0 7px 8px 0 #ccc;
    z-index: 199;
    margin-bottom: 15px;
}

#header h1 {
    margin-top: 0;
}

#header .sub-text {
    vertical-align: middle;
}

#header .logo {
    display: inline-block;
    max-width: 100%;
    vertical-align: middle;
    margin-right: 25px;
}

#user-menu {
    text-align: right;
}

.loading-indicator-wrapper {
    padding: 15px 0;
}

#sub-menu {
    margin-top: 10px;
    margin-bottom: 10px;
}

#footer {
    background-color: #333;
    color: #EEE;
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 10px 0;
    z-index: 3;
}

.loading-indicator {
    position: fixed;
    padding: 15px 50px;
    background-color: rgba(0,0,0, 0.7);
    box-shadow: 0 0 25px -5px black;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 999;
    transition: 0.3s all;
    -webkit-transition: 0.3s all;
    -moz-transition: 0.3s all;
}

.loading-indicator .progress {
    margin: 0;
}

tr.ignored {
    text-decoration: line-through;
    background-color: #DDD !important;
    color: #AAA;
}

.border-sides {
    border-left: 2px solid grey;
    border-right: 2px solid grey;
}

.border-left {
    border-left: 2px solid grey;
}

.floating-btn-list-container {
    position: relative;
}

.floating-btn-list {
    position: absolute;
    top: 0;
    right: 0;
}

.list-group-title {
    font-weight: bold;
    color: #999999;
    background-color: #eeeeee;
    padding-left: 5px;
    padding-right: 5px;
}

.tab-content {
    padding-top: 10px;
}

.light-hr-padding {
    margin-top: 5px;
    margin-bottom: 5px;
}

.tab-panel {
    position: relative;
}

#team-dropdown {
    left: auto;
    right: 0;
}

table.dataTable thead .sorting:after, table.dataTable thead .sorting_asc:after, table.dataTable thead .sorting_desc:after, table.dataTable thead .sorting_asc_disabled:after, table.dataTable thead .sorting_desc_disabled:after {
    position: absolute;
    bottom: 0;
    right: 0;
    display: block;
    font-family: 'Glyphicons Halflings';
    opacity: 1;
}

table.dataTable thead .sorting_asc:after {
    content: "";
}
table.dataTable thead .sorting_desc:after {
    content: "";
}
table.dataTable thead .sorting:after {
    opacity: 0.2;
    content: "";
}

table.dataTable thead>tr>th.sorting_asc, table.dataTable thead>tr>th.sorting_desc, table.dataTable thead>tr>th.sorting, table.dataTable thead>tr>td.sorting_asc, table.dataTable thead>tr>td.sorting_desc, table.dataTable thead>tr>td.sorting {
    padding-left: 30px;
    padding-right: 0;
}

table.dataTable thead .sorting:before, table.dataTable thead .sorting_asc:before, table.dataTable thead .sorting_desc:before, table.dataTable thead .sorting_asc_disabled:before, table.dataTable thead .sorting_desc_disabled:before {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: block;
    font-family: 'Glyphicons Halflings';
    opacity: 0.5;
}

table.dataTable thead .sorting_asc:before {
    content: "\e155";
}
table.dataTable thead .sorting_desc:before {
    content: "\e156";
}

table.dataTable thead .sorting_asc, table.dataTable thead .sorting_desc {
    text-decoration: #9d9d9d underline dashed;
    background-color: rgba(0,0,0,0.1)
}

table.dataTable thead .sorting:before {
    opacity: 0.2;
    content: "\e150";
}

.overflow-auto {
    overflow: auto;
}

table td .form-group {
    margin-bottom: 0;
}

.signature-pad {
    display: block;
    border: 1px solid #636363;
    border-radius: 3px;
    padding: 3px;
    overflow-y: hidden;
}

.signature-pad-buttons {
    margin-top: 5px;
}

.compensation-tiers .collection-list > .list-group-item {
    padding-top: 0;
    padding-bottom: 5px;
}

.compensation-tiers .collection-list > .list-group-item .form-group {
    margin-bottom: 0;
}

.form-submit {
    min-width: 200px;
}
.w-100 {
    width: 100%;
}
.d-flex {
    display: flex!important;
}
.flex-row {
    flex-direction: row;
}
.flex-column {
    flex-direction: column;
}
.align-items-start {
    align-items: flex-start;
}
.align-items-center {
    align-items: center;
}
.align-items-end {
    align-items: flex-end;
}

.justify-content-start {
    justify-content: flex-start;
}
.justify-content-center {
    justify-content: center;
}
.justify-content-between {
    justify-content: space-between;
}
.justify-content-around {
    justify-content: space-around;
}
.justify-content-end {
    justify-content: flex-end;
}

.flex-grow-1 {
    flex-grow: 1;
}

.position-absolute {
    position: absolute;
}

.top-0 {
    top: 0;
}

.bottom-0 {
    bottom: 0;
}

.right-0 {
    right: 0;
}

.left-0 {
    left: 0;
}

.p-0 {
    padding: 0!important;
}
.p-1 {
    padding: 1rem!important;
}
.p-2 {
    padding: 2rem!important;
}
.px-0 {
    padding-left: 0!important;
    padding-right: 0!important;
}
.px-1 {
    padding-left: 1rem!important;
    padding-right: 1rem!important;
}
.px-2 {
    padding-left: 2rem!important;
    padding-right: 2rem!important;
}
.px-3 {
    padding-left: 3rem!important;
    padding-right: 3rem!important;
}

.mb-0 {
    margin-bottom: 0!important;
}

.mb-1 {
    margin-bottom: 1rem!important;
}

.z-index-low {
    z-index: 1;
}

.z-index-middle {
    z-index: 5;
}

.z-index-high {
    z-index: 10;
}

.menu-container {
    width: 200px;
}

.text-nowrap {
    white-space: nowrap;
}

.default-table-wrapper {
    max-width: calc(100vw - 32px);
    overflow-x: auto;
}

.table-wrapper {
    max-width: calc(100vw - 220px);
    overflow-x: auto;
    margin-right: -15px;
    margin-left: -15px;
}

.table-wrapper .row {
    margin-right: 0;
    margin-left: 0;
}

.contract-initial {
    padding: 5px;
    background-color: white;
    border-radius: 3px;
    height: 100px;
    width: 100px;
}

.contract-signature {
    padding: 5px;
    background-color: white;
    border-radius: 3px;
    height: 100px;
    width: 300px;
}

@media (max-width: 767px) {
    #header-user-menu {
        display: none!important;
    }
    #header-row {
        justify-content: center;
    }
    .toggle-icon {
        position: absolute;
        right: -50px;
        top: 70px;
        padding: 20px;
        border-top-right-radius: 20px;
        border-bottom-right-radius: 20px;
        height: 20px;
        width: 100px;
        box-shadow: 0 .125rem 2.25rem rgba(0,0,0,.175)!important;
        background-color: white;
        z-index: 200;
        display: flex!important;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        transition: all 500ms;
    }
    .menu-container {
        width: 200px;
        position: fixed;
        top: 0;
        left: -200px;
        z-index: 100;
        background-color: white;
        padding: 20px;
        height: 100vh;
        box-shadow: 0 .125rem 2.25rem rgba(0,0,0,.175)!important;
        transition: all 0.5s;
        justify-content: space-between;
    }
    .menu-container.open {
        left: 0;
    }
    .menu-container .toggle-icon i {
        transform: translate(25px);
        transition: all 500ms;
    }
    .menu-container.open .toggle-icon {
        right: -45px;
        width: 50px;
        height: 75px;
        background-color: #3b3b3b;
        color: white;
        border-top-right-radius: 20px;
        border-bottom-right-radius: 20px;
        border-top-left-radius: 3px;
        border-bottom-left-radius: 3px;
    }
    .menu-container.open .toggle-icon i {
        transform: rotate(180deg) translate(2px);
    }
    .table-wrapper {
        max-width: calc(100vw - 20px);
        overflow-x: auto;
    }
    #header h1 {
        text-align: center;
        margin-bottom: 0;
    }
    #header .logo {
        width: 150px;
        margin-right: 0;
    }
    #header .sub-text {
        font-size: 18px;
    }
    #user-menu {
        text-align: center;
        margin-top: 10px;
    }
    #user-menu .btn-group .btn {
        font-size: 10px;
    }
    #sub-menu .col-xs-6:first-child {
        padding-right:2px;
    }
    #sub-menu .col-xs-6:last-child {
        padding-left:2px;
    }
}