/*
BOOTSTRAP OVERRIDE
*/

.table {
    border: 1px solid #eeeeee;
}
.table .thead-light th {
    background-color: #fafafa;
}
.table-hover tbody tr:hover {
    transition: background-color ease 0.2s;
    background-color: #f5f5f5 !important;
}
.table-striped tbody tr:nth-of-type(odd) {
    background-color: #fafafa;
}
.alert.cr-alert {
    border: none;
    height: 0;
    padding: 0 1.25rem;
    overflow: hidden;
    margin: 0;
    box-sizing: content-box;
    -webkit-box-sizing: border-box;
}
.alert.cr-alert.temp {
    height: unset;
    padding: .75rem 1.25rem;
    position: absolute;
    top: -1000px;
    left: -1000px;
}
.alert.cr-alert .close {
    font-size: 1.4rem !important;
    outline: none !important;
    position: absolute;
    top: 5px;
    right: 10px;
}
.modal-content.showing-alert-popup {
    background: transparent !important;
    border-color: transparent !important;
}
.toast {
    font-size: 1rem !important;
}
.toast.pop-alert-success {
    color: #155724;
    background-color: rgba(212, 237, 218, .85);
    min-width: 300px;
}
.toast.pop-alert-success .toast-header {
    color: #155724;
}
.toast.pop-alert-fail {
    color: #721c24;
    background-color: rgba(248, 215, 218, .85);
    min-width: 300px;
}
.toast.pop-alert-fail .toast-header {
    color: #721c24;
}

/*
IMAGE UPLOAD
*/

canvas.img-upload-canvas {
    background-color: #f8f9fa;
    margin-bottom: .5rem;
    width: 100%;
    height: 250px;
    border: none;
    outline: none;
    border-radius: .25rem;
    transition: box-shadow 0.2s ease;
}
canvas.img-upload-canvas:focus {
    box-shadow: 0 0 3px 1px #6db3ff;
}

/*
LOADING
*/

.has-cr-loading-overlay {
    position: relative !important;
}
.cr-loading-overlay {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: .3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
}
.cr-loading-overlay .cr-loading-overlay-content {
    display: inline-block;
    text-align: center;
}
.cr-loading-overlay .cr-loading-overlay-content .cr-loading-overlay-icon {
    font-size: 2.25rem;
    color: white;
    text-shadow: 0px 0px 8px black;
}
.cr-loading-overlay .cr-loading-overlay-content .cr-loading-overlay-message {
    font-size: 1.25rem;
    color: white;
    text-shadow: 0px 2px 4px black;
}

/*
CUSTOM
*/

table.table-basic th {
    padding-right: 2rem;
    font-weight: 400;
}
.table-container {
    width: 100%;
    overflow-x: auto;
}
.table-container::-webkit-scrollbar {
    height: 15px;
}
.table-container::-webkit-scrollbar-track {
    background: #fff;

}
.table-container::-webkit-scrollbar-thumb {
    background: #f8f9fa;
    border-radius: .1rem;
}
.table.table-flush {
    border: none;
}
.table.rounded thead th:first-of-type, .table.rounded.table-hover tbody tr:hover td:first-of-type, .table.rounded.table-striped tbody tr:nth-of-type(even) td:first-of-type {
    border-top-left-radius: .25rem;
    border-bottom-left-radius: .25rem;
}
.table.rounded thead th:last-of-type, .table.rounded.table-hover tbody tr:hover td:last-of-type, .table.rounded.table-striped tbody tr:nth-of-type(even) td:last-of-type {
    border-top-right-radius: .25rem;
    border-bottom-right-radius: .25rem;

}
.table-striped-alt tbody tr:nth-of-type(even) {
    background-color: #fafafa;

}
.table-striped-alt tbody tr:nth-of-type(odd) {
    background-color: unset;


}

/*
CUSTOM MENU
*/

.cp-custom-menu {
    position: relative;
}
.cp-custom-menu-toggle {
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    z-index: 1039;
}
.cp-custom-menu.align-left .cp-custom-menu-toggle {
    left: 0;
}
.cp-custom-menu.align-right .cp-custom-menu-toggle {
    right: 0;
}
.cp-custom-menu-bar {
    width: 25px;
    height: 4px;
    background: #555;
    margin-bottom: 4px;
    border-radius: 4px;
    opacity: 1;
    transition: all 0.3s ease;
}
.cp-custom-menu-bar:last-of-type {
    margin-bottom: 0;
}
.cp-custom-menu-toggle.open .cp-custom-menu-bar:nth-of-type(1) {
    transform: rotate(45deg) translate(2px, 3px);
    margin: 0;
}
.cp-custom-menu.align-left .cp-custom-menu-toggle.open .cp-custom-menu-bar:nth-of-type(2) {
    transform: translateX(25px);
    opacity: 0;
    margin: 0;
}
.cp-custom-menu.align-right .cp-custom-menu-toggle.open .cp-custom-menu-bar:nth-of-type(2) {
    transform: translateX(-25px);
    opacity: 0;
    margin: 0;
}
.cp-custom-menu-toggle.open .cp-custom-menu-bar:nth-of-type(3) {
    transform: rotate(-45deg) translate(2px, -3px);
}
.cp-custom-menu-overlay {
    position: absolute;
    width: 0;
    overflow: hidden;
    background: #f8f9fa;
    padding: 50px 0 0;
    z-index: 1038;
    transition: all 0.3s ease;
}
.cp-custom-menu.align-left .cp-custom-menu-overlay {
    left: 0;


}
.cp-custom-menu.align-right .cp-custom-menu-overlay {
    right: 0;

}
.cp-custom-menu-overlay.open {
    width: 100%;
    padding: 50px 20px 20px;

}
.cp-custom-menu-overlay ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}
.cp-custom-menu-overlay ul li {
    padding: 20px 0;
    font-size: 1.5rem;

}
.cp-custom-menu-overlay ul li * {
    text-decoration: none !important;

}

/*
CUSTOM BOOTSTRAP NAV
*/
.cr-navbar-collapse .close {
    display: none;
}
.navbar:not(.navbar-expand) .cr-navbar-collapse .close {
    display: block;   
}
.navbar:not(.navbar-expand) .cr-navbar-collapse {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    overflow: hidden;
    padding: 1rem 0;
    transition: all .35s ease-in-out;
}
.navbar:not(.navbar-expand) .cr-navbar-collapse.show {
    width: 75%;
    padding: 1rem;
}
@media (min-width: 576px) {
    .navbar.navbar-expand-sm .cr-navbar-collapse .close {
        display: none;
    }
    .navbar.navbar-expand-sm .cr-navbar-collapse {
        position: unset;
        top: unset;
        right: unset;
        overflow: unset;
        padding: unset;   
        width: 100%;
        transition: all 0s linear;
    }
    .navbar.navbar-expand-sm .cr-navbar-collapse.show {
        position: unset;
        top: unset;
        right: unset;
        overflow: unset;
        padding: unset;
        width: unset;
    }
}
@media (min-width: 768px) {
    .navbar.navbar-expand-md .cr-navbar-collapse .close {
        display: none;
    }
    .navbar.navbar-expand-md .cr-navbar-collapse {
        position: unset;
        top: unset;
        right: unset;
        overflow: unset;
        padding: unset; 
        width: 100%;
        transition: all 0s linear;
    }
    .navbar.navbar-expand-md .cr-navbar-collapse.show {
        position: unset;
        top: unset;
        right: unset;
        overflow: unset;
        padding: unset;
        width: unset;
    }
}
@media (min-width: 992px) {
    .navbar.navbar-expand-lg .cr-navbar-collapse .close {
        display: none;
    }
    .navbar.navbar-expand-lg .cr-navbar-collapse {
        position: unset;
        top: unset;
        right: unset;
        overflow: unset;
        padding: unset;
        width: 100%;
        transition: all 0s linear;
    }
    .navbar.navbar-expand-lg .cr-navbar-collapse.show {
        position: unset;
        top: unset;
        right: unset;
        overflow: unset;
        padding: unset;
        width: unset;
    }
}
@media (min-width: 1200px) {
    .navbar.navbar-expand-xl .cr-navbar-collapse .close {
        display: none;
    }
    .navbar.navbar-expand-xl .cr-navbar-collapse {
        position: unset;
        top: unset;
        right: unset;
        overflow: unset;
        padding: unset;  
        width: 100%;
        transition: all 0s linear;
    }
    .navbar.navbar-expand-xl .cr-navbar-collapse.show {
        position: unset;
        top: unset;
        right: unset;
        overflow: unset;
        padding: unset;
        width: unset;
    }
}

/*
SORTING LABEL AND ICONS
*/

.cr-sort-label, *:hover .cr-sort-label {
    color: #495057;
    text-decoration: none;
    cursor: pointer;
}
.cr-sort-icon-asc, .cr-sort-icon-desc {
    float: right;
    opacity: .4;
}
.cr-sort-icon-asc.cr-active-sort, .cr-sort-icon-desc.cr-active-sort {
    opacity: 1;
    color: #000;
}

/*
SEARCH BOX AND SPINNER
*/

.cr-search-wrapper {
    position: relative;
}
.cr-search-input {
    padding-right: 2.75rem;
}
.cr-search-spinner {
    position: absolute;
    top: calc(1.5em + .75rem + 2px - 2.17rem);
    right: .75rem;
    font-size: 1.25rem;
    animation-duration: 1s !important;
}

/*
CUSTOM HTML DATALIST
*/

.cr-datalist-wrapper {
    position: relative;
}
.cr-datalist {
    overflow-x: hidden;
    overflow-y: auto;
    height: 0;
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin-top: 0;
    margin-bottom: 0;
    /*border-radius: .25rem;*/
    position: absolute;
    width: 100%;
    z-index: 9000;
    box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
}
.cr-datalist.show {
    height: unset;
}
.cr-datalist-option {
    position: relative;
    display: block;
    padding: .75rem 1.25rem;
    background-color: #fff;
    /*border: 1px solid rgba(0,0,0,.125);*/
    cursor: pointer;
}
.cr-datalist-option:focus, .cr-datalist-option:hover {
    z-index: 1;
    color: #495057;
    text-decoration: none;
    background-color: #f8f9fa;
}
.cr-datalist-option.hide {
    display: none !important;   
}
.cr-datalist-option:first-child {
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}
.cr-datalist-option:last-child {
    border-bottom-right-radius: inherit;
    border-bottom-left-radius: inherit;
}
.cr-datalist-option + .cr-datalist-option {
    border-top-width: 0;
}

/* VALIDATION */

[data-validation-feedback] {
    display: none;    
}

[data-validation-feedback].show {
    display: block;
    color: #dc3545;
    font-size: 90%;
}