.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#footer {
    margin-top: auto;
    flex: 0 0 50px; /*or just height:50px;*/

}


@media screen and (max-width: 767px) {
    .dropdown-menu-card {
        left: -150px !important;
    }
}

/** TABLE SORTER **/
table th.order {
    cursor: pointer;
}

table th.active {
    border-bottom: 1px solid #307fdd;
}

table th.active.asc::before,
table th.active.desc::before {
    content: '<';
    transform: rotate(90deg);
    display: inline-block;
    margin: 0 8px;
}

table th.active.desc::before {
    transform: rotate(-90deg);
}

/** OLD dCM **/
.active-row {
    background-color: #fff1d8 !important;
}

#searchResultContainer {
    background-color: white;
    z-index: 999;
    position: absolute;
}

.searchResult {
    border: 1px solid #a2a2a2;
    padding: 2px;
    z-index: 999;
    background-color: white;
    max-height: 190px;
    overflow: scroll;
    width: 120%;
}

.searchItem {
    border-bottom: 1px dotted black;
    padding: 5px;
    font-size: 12px;
}

.searchItem:hover, .searchItem.active {
    background-color: #4a4d53;
    color: white;
}

.designerField {
    border: 1px dotted rgba(192, 192, 192, 0.8);
    padding: 3px;
    border-radius: 0px;
}

/** BLINKER **/
.blink {
    animation: blinker 3s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0.2;
    }
}

.toast-container {
    position: fixed;
    right: 10px;
    bottom: 10px;
    height: auto;
    z-index: 999999;
}

.toast.show {
    box-shadow: 5px 5px 25px #00000078;
}

.is-invalid .form-selectgroup-label {
    border: 1px solid red;
}

.is-invalid textarea {
    border: 1px solid red;
}

.is-invalid input {
    border: 1px solid red;
}

.toast-warning {
    border: 2px solid #ffa500b0;
}

.toast-warning .toast-header {
    background: #ffa50054;
}

.toast-danger {
    border: 2px solid red;
}

.toast-danger .toast-header {
    background: red;
    color: white;
}

.dev-version {
    position: fixed;
    right: 10px;
    bottom: 10px;
    background-color: white;
    border: 1px solid red;
    padding: 10px;
    font-weight: 700;
    font-size: 20px;
    max-width: 250px;
    opacity: 0.6;
    pointer-events: none;
}

.dev-version .text {
    font-size: 11px;
}

.dev-version-header {
    background: #ff000061;
    padding: 7px;
    color: black;
    border: 1px solid black;
    box-shadow: 5px 5px 5px #0000004f;
}

/** TABLE **/
input.filterItem {
    position: absolute;
    margin-right: 10px;
    margin-bottom: 10px;
    top: 30px;
    left: 0px;
    display: none;
}

th.filter {
    position: relative;
}

th.filter.filterActive {
    height: 60px;
    vertical-align: top;
}

th.filter.filterActive input.filterItem {
    display: block !important;
}

.page-actions form {
    display: inline-block;
}

.hover-text {
    transition: opacity 0.3s, transform 0.3s, position 0.3s;
    opacity: 0;
    transform: translateY(100%);
    position: absolute;
    top: 0;
    left: 0;
}

.no-hover-text {
    transition: opacity 0.3s, transform 0.3s, position 0.3s;
    opacity: 1;
    transform: translateY(0%);
}

.hover-switch:hover .no-hover-text {
    opacity: 0;
    transform: translateY(-100%);
    position: absolute;
    top: 0;
    left: 0;
}

.hover-switch:hover .hover-text {
    opacity: 1;
    transform: translateY(0%);
    position: relative;
}

.hover-switch {
    position: relative;
    display: inline;
}

button.hover-switch {
    border: 0px;
    height: 24px;
    width: 0px;
}

.nav-item span.status-dot, .status-badge {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 12px;
    height: 12px;
    font-size: 9px;
    padding-left: 3px;
    color: white !important;
}

.status-container {
    position: relative;
    min-width: 2rem;
    min-height: 2rem;
    justify-content: center;
    border-radius: 4px;
    display: inline;
    padding: 0.5rem 0.50rem;
}


.signatureField {
    position: relative;
    z-index: 1;
    height: auto;
}

.signatureDisplayField {
    padding: 2px;
    border: 1px solid black;
    width: 100%;
    background-color: white;
    margin-top: 5px;
    margin-bottom: 5px;
    min-height: 100px;
}

.signatureField input {
    width: 0px;
    height: 0px;
    border: 0px;
    float: left;
    z-index: -1;
    position: absolute;
}


.signatureField input.filed {
    width: 100%;
    height: 100%;
    border: 1px solid black;
}

.signatureField a {
    z-index: 10;
}

.wrapper.is-invalid .signature-pad {
    border: 1px solid #d63939 !important;
}

.wrapper.is-valid .signature-pad {
    border: 1px solid #2fb344 !important;
}

/** OWN DROPDOWN SEARCH FIELD **/
.result-container {
    position: absolute;
    background-color: white;
    border: 1px solid black;
    width: auto;
    display: none;
    max-height: 300px;
    overflow: scroll;
    max-width: 600px;
    box-shadow: 0px 0px 20px black;
    z-index: 1;
}

.result {
    border-bottom: 1px solid silver;
    cursor: pointer;
    padding: 3px;
}

.result:hover {
    background-color: #1e293b;
    color: white;
}

.form-control:focus:not(.form-floating) {
    position: relative;
    border: 1px solid black;
    border-radius: 0px;
    background: white;
    z-index: 99 !important;
}

/** GUEST STYLES **/
body.margin-corner {
    padding: 10px 15px 10px 15px;
}

.logo-print-container {
    right: 20px;
    position: absolute;
    top: 20px;
}


/** IMAGE PREVIEW **/
.preview-container {
    position: absolute;
    top: -7.5rem;
    left: -2rem;
    height: 7rem;
    width: 13rem;
    background-color: white;
    border: 1px solid black;
    z-index: 99999;
    margin: 0 auto;
    padding: 5px;
    overflow: hidden;
    display: none;
}

.preview-container img {
    width: auto;
    height: auto;
}

.previewImage {
    position: relative;
}

/** MAIL FORMATING **/
.quotedText {
    display: inline;
    padding-left: 15px;
    color: grey;
    border-left: 1px dotted grey;
}

/** Navbar Theming **/
.navbar-vertical .dropdown-item.active, .navbar-vertical .dropdown-item:active {
    color: #fff;
    font-weight: 600;
}

.nav-link.active, .nav-link:active {
    font-weight: 600;
}

/** AAI stuff **/
#notification-dropdown, #notificationPage-dropdown {
    min-width: 400px;
}
@media (max-width: 768px) {
    #notification-dropdown, #notificationPage-dropdown{
        min-width: 280px;
    }
}

.notification-actions-padding {
    padding-right: 30px;
}

/** Sentry Dialog **/
.sentry-error-embed .powered-by {
    display: none;
}

.money-blur {
    filter: blur(5px)
}

.money-blur:hover {
    filter: none !important;
}

/** SEARCH **/
.globalSearch {
    margin: 2px;
}

.globalSearch input {
    color: black;
    font-size: 18px;
}

.globalSearch input:focus {
    color: black;
}

.searchContainer {
    position: absolute;
    background: white;
    padding: 10px;
    z-index: 9999;
    width: 100%;
    border-radius: 0 0 5px 5px;
    margin-top: -5px;
    max-height: 450px;
}

.searchHeadline {
    font-size: 14px;
    font-weight: 600;
    color: black;
    text-transform: uppercase;
}

.searchContainer a {
    display: block;
}

.searchContainer a:hover {
    background: rgba(255, 237, 40, .4);
    border-radius: 1px;
}

.searchContainer a:focus {
    background: rgba(255, 237, 40, .4);
    border-radius: 1px;
}

.searchContainer i {
    color: grey;
}

.globalSearch .input-icon-addon {
    z-index: 10000;
}

.globalSearchCloseBtn {
    z-index: 10100;
}

.nav-item.active {
    font-weight: 600;
    -webkit-transition: all .5s;
    -moz-transition: all .5s;
    -o-transition: all .5s;
    transition: all .5s;
}


.nav-link.dropdown-toggle.show {
    font-weight: 600;
    -webkit-transition: all .5s;
    -moz-transition: all .5s;
    -o-transition: all .5s;
    transition: all .5s;
}

table .ck.ck-toolbar {
    background: white;
    border: unset;
    padding: 0;
}

table .ck .ck.ck-editor__main > .ck-editor__editable {
    border: unset;
}

.leftRightField {
    height: 50vh;
}

.ti::before {
    font-size: 20px;
}

.fa.ti {
    font-weight: 100 !important;
}

#navbar-modern {
    box-shadow: unset !important;
}

/** INCOMING APPROVER **/
.approverIncoming span::after {
    z-index: 10;
    display: block;
    position: absolute;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    border-radius: 100rem;
}
.approverIncoming.done span::after {
    content: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%20-10%2024%2034%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20class%3D%22icon%20icon-tabler%20icons-tabler-outline%20icon-tabler-check%22%3E%3Cpath%20stroke%3D%22none%22%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22%2F%3E%3Cpath%20d%3D%22M5%2012l5%205l10%20-10%22%2F%3E%3C%2Fsvg%3E");
    background: rgb(47 179 68 / 40%);
}
.approverIncoming.pending span::after {
    content: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%20-10%2024%2034%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20class%3D%22icon%20icon-tabler%20icons-tabler-outline%20icon-tabler-x%22%3E%3Cpath%20stroke%3D%22none%22%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22%2F%3E%3Cpath%20d%3D%22M18%206l-12%2012%22%20%2F%3E%3Cpath%20d%3D%22M6%206l12%2012%22%20%2F%3E%3C%2Fsvg%3E");
    background: rgb(247 103 7 / 70%);
}
.approverIncoming.notAssigned span {
    position: relative;
    left: 3px;
}
.approverIncoming.notAssigned span::after {
    content: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%20-10%2024%2034%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20class%3D%22icon%20icon-tabler%20icons-tabler-outline%20icon-tabler-question-mark%22%3E%3Cpath%20stroke%3D%22none%22%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22%2F%3E%3Cpath%20d%3D%22M8%208a3.5%203%200%200%201%203.5%20-3h1a3.5%203%200%200%201%203.5%203a3%203%200%200%201%20-2%203a3%204%200%200%200%20-2%204%22%2F%3E%3Cpath%20d%3D%22M12%2019l0%20.01%22%20%2F%3E%3C%2Fsvg%3E");
    background: rgb(6 111 209);
}
.approverIncoming.notAssigned.approved span::after {
    content: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%20-10%2024%2034%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20class%3D%22icon%20icon-tabler%20icons-tabler-outline%20icon-tabler-check%22%3E%3Cpath%20stroke%3D%22none%22%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22%2F%3E%3Cpath%20d%3D%22M5%2012l5%205l10%20-10%22%2F%3E%3C%2Fsvg%3E");
    background: rgb(47 179 68);
}