body{
    background: #fff;
}

body.pace-running{
    background: #fff;
}

body.pace-done{
    background: #fff;
}

@supports not (-moz-appearance: none) {
    body:not(.pace-done)> :not(.pace),
    body:not(.pace-done):before,
    body:not(.pace-done):after {
        opacity: 0;
    }
}

@-moz-document url-prefix() {
    body:not(.pace-done)> :not(.pace),
    body:not(.pace-done):before,
    body:not(.pace-done):after {
        opacity: 1;
    }
}

body:not(.pace-done)>.fancybox-container {
    opacity: 1;
}

body > .wrap{
    display: flex;
    min-height: 100vh;
}

.main-container-wrap{
    padding: 14px 20px;
    width: calc(100vw - 70px);
    margin-left: 70px;
    background: var(--color-light-gray);
}

.main-container{
    background: #fff;
    padding: 20px 10px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.sidebar-margin .main-container-wrap{
    width: calc(100vw - 320px);
    margin-left: 320px;
    background: var(--color-light-gray);
    min-height: 100vh;
}

.dot-loader{
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: none;
    opacity: 1 !important;
}

.dot-loader img{
    margin: auto;
    opacity: 1 !important;
    user-select: none;
    filter: blur(0px) !important;
    opacity: 1 !important;
    z-index: 999;
}

.loading .dot-loader{
    display: flex;
    opacity: 1 !important;
}

.pace-dot-loader{
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    opacity: 1 !important;
    display: flex;
}

.pace-dot-loader img{
    margin: auto;
}

.table-loading{
    background-image: url(/frontend/web/images/loader.gif);
    background-repeat: no-repeat;
    background-position: top center !important;
    user-select: none;
    pointer-events: none;
}

.table-loading > *{
    opacity: 0.1;
}

.pjax-loader.loading.table-loading{
    opacity: 1;
}

.badge-ellipsis{
    max-width: 270px;
    overflow: hidden;
    word-break: unset;
    text-overflow: ellipsis;
}

.badge-ellipsis i{
    display: inline;
}

.left-sidebar-menu-nav{
    list-style: none;
    margin: 0;
    padding: 0;
}

.left-sidebar-menu-nav li{
   display: flex;
}

.modal.show.loading .modal-body *:not(.dot-loader),
.modal.show.loading .modal-footer *{
    opacity: 0;
    pointer-events: none;
}

.modal.show.translucent.loading .modal-body *:not(.dot-loader),
.modal.show.translucent.loading .modal-footer *{
    opacity: .8;
    filter: blur(2px);
    pointer-events: none;
}

.modal.show.loading .modal-body .dot-loader{
    opacity: 1;
}

.tox-tinymce {
    font-family: "Open Sans";
    border-radius: 4px !important;
}

.pjax-loader{
    opacity: 1;
    transition: .12s all ease-in-out;
    background-position: top center;
}

.pjax-loader.loading{
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
}

.error-page .error-title{
    font-size: 64px;
    font-weight: 100;
}

.error-page .error-info{
    font-weight: 400;
}

.left-sidebar{
    background: #fff;
    border-left: 1px solid var(--color-light-gray);
    width: 250px;
    height: 100vh;
    position: fixed;
    left: 70px;
}

.left-sidebar .breadcrumb{
    font-size: 13px;
    background: #fff;
}

.left-sidebar .breadcrumb a{
    color: var(--color-dark-gray);
}

.left-sidebar .breadcrumb i{
    font-size: 12px;
}

.left-sidebar .list-group-item{
    margin-left: 3px;
    padding-left: 20px;
    padding-right: 0px;
    line-height: 1.6;
}

.left-sidebar .dropdown-toggle::after{
    position: relative;
    top: 2px;
    right: -4px;
}

.left-sidebar .scrollbar-outer{
    height: 100%;
    padding-right: 3px !important;
}

.left-sidebar-content{
    padding-top: 17px;
    padding-bottom: 20px;
    padding-right: 15px;
    margin-left: 10px;
}

.left-sidebar .scrollbar-outer .scroll-element.scroll-x {
    display: none !important;
}

.list-group-item-margin{
    padding-top: 12px;
}

.list-group-item-margin i{
    margin-top: -5px;
}

.left-sidebar-toggle-btn{
    background: white;
    width: 30px;
    height: 30px;
    display: block;
    position: fixed;
    top: 15px;
    left: 306px;
    border-radius: 50%;
    box-shadow: 0px 0px 4px #00000030;
    font-size: 17px;
    color: #9ba6b2;
    opacity: 1;
    padding: 2px 10px;
    opacity: 0.8;
    cursor: pointer;
}

.left-sidebar-toggle-btn:hover{
    width: 35px;
    height: 35px;
    left: 304px;
    top: 12px;
    font-size: 21px;
    padding: 2px 11px;
    opacity: 1;
}

.close-left-sidebar .left-sidebar{
    left: -220px;
}

.sidebar-margin.close-left-sidebar .main-container-wrap {
    margin-left: 70px;
    width: calc(100vw - 70px);
}

.close-left-sidebar .left-sidebar-toggle-btn{
    left: 57px;
    z-index: 999;
    transform: rotate(180deg);
}

.close-left-sidebar .left-sidebar-toggle-btn:hover{
    left: 55px;
    z-index: 999;
    transform: rotate(180deg);
}

.scroll-top-btn{
    background: white;
    width: 50px;
    height: 50px;
    display: block;
    position: fixed;
    bottom: 26px;
    right: 26px;
    border-radius: 50%;
    box-shadow: 0px 0px 4px #00000030;
    font-size: 25px;
    color: #9ba6b2;
    opacity: 0.6;
    padding: 6px 17px;
    cursor: pointer;
    transition: opacity .25s ease-in-out;
    transition-delay: 0.1s;
}

.scroll-top-btn:hover{
   opacity: 1;
}

.scroll-top-btn.hide{
    pointer-events: none;
    opacity: 0;
}

.company-info{
    color: #9ba6b2;
    width: 220px;
    right: 19px;
    bottom: 0px;
    z-index: 10;
    padding: 3px 8px 0;
    font-size: 11px;
    margin-top: -28px;
    position: relative;
    float: right;
    text-align: right;
}

.company-info a{
    color: #9ba6b2;
}

.company-info a:hover{
    color: var(--color-black);
}

.tox-fullscreen .modal-dialog{
    margin: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
}

.modal-layout-body .main-container-wrap{
    width: 100% !important;
    margin: 0 !important;
    padding: 0;
    background: #fff;
}

.modal-layout-body .main-container{
    padding: 0;
}

.modal-layout-body .left-menu,
.modal-layout-body .search-input,
.modal-layout-body .left-sidebar,
.modal-layout-body .account-menu,
.modal-layout-body .save-customer-section,
.modal-layout-body .save-good-section,
.modal-layout-body .good_editing
{
    display: none;
}

.nowrap{
    white-space: nowrap;
}

.table .has-error .help-block{
    background: #e35a67;
    width: fit-content;
    color: #fff;
    padding: 3px 8px;
    border-radius: 5px;
    margin-top: 9px;
    z-index: 110;
}

.table .has-error .help-block::before {
    content: "\f0de";
    font-family: "Font Awesome 5 Free";
    width: 12px;
    height: 12px;
    display: block;
    position: absolute;
    margin-top: -15px;
    z-index: 100;
    font-weight: 700;
    color: #e35a67;
    font-size: 20px;
}

.log-details-section{
    display: inline;
}

.log-details-section pre{
    display: block;
    line-height: 1;
    font-size: 10px;
    background: #00000014;
    padding: 14px;
    border-radius: 10px;
    max-height: 220px;
    margin-top: 5px;
}

.btn-open-log-details{
    color: var(--color-theme);
}

.log-details-section pre{
    display: none;
}

.left-menu .btn-menu-home{
    display: none !important;
}

.left-sidebar-close-elem {
    display: none;
    color: #76787a;
}

@media screen and (max-width: 768px){

    .left-sidebar-close-elem {
        display: block;
        position: absolute;
        top: 10px;
        right: 20px;
    }

    .left-menu .btn-menu-home{
        display: inline-block !important;
    }

    .main-container-wrap {
        width: 100vw;
        margin-left: 0;
        /*margin-bottom: 40px;*/
        padding: 10px 10px;
    }

    .sidebar-margin .main-container-wrap {
        width: 100vw;
        margin-left: 0;
    }

    .sidebar-margin .left-sidebar{
        z-index: 1005;
        left: -300px;
        width: min(250px, 100vw);
        box-shadow: 1px 1px 10px 0px rgb(0 0 0 / 10%);
        height: 100%;
        min-width: min(250px, 100vw);
        border-radius: 0 1rem 1rem 0;
        transition: left 0.5s;
    }

    .left-sidebar.menu-active {
        left: 0;
    }

    .company-info{
        display: none;
    }

    .scroll-top-btn{
        display: none !important;
    }

    .left-sidebar-toggle-btn{
        display: none !important;
    }

    .account-menu{
        display: none !important;
    }

    .dashboard-actions {
        justify-content: start;
    }
}

input.switch[type="checkbox"]{
    display: none;
}

input.switch[type="checkbox"] + label {
    margin-left: 24px;
    user-select: none;
    cursor: pointer;
}

input.switch[type="checkbox"] + label::after {
    content: '';
    background: #9ea9b5;
    width: 27px;
    height: 13px;
    position: absolute;
    left: 0;
    border-radius: 50px;
    transition: all 220ms cubic-bezier(0.2, 0, 0, 1);
    cursor: pointer;
    top: 3px;
}

input.switch[type="checkbox"]:checked + label::after {
    background: #2b97bf;
}

input.switch[type="checkbox"] + label::before {
    content: '';
    background: #ffffff;
    width: 17px;
    height: 17px;
    position: absolute;
    z-index: 1;
    border-radius: 50%;
    top: 1px;
    left: -1px;
    transition: all 180ms ease-in-out;
    cursor: pointer;
    border: 2px solid #9ea9b5;
}

input.switch[type="checkbox"]:checked + label::before {
    background: white;
    left: 11px;
    border: 2px solid #2b97bf;
}

input.switch[type="checkbox"] + label:hover::before {
    background: #f2f2f2;
}

input.switch[type="checkbox"]:checked + label:hover::before {
    background: #f2f2f2;
}

input[disabled].switch[type="checkbox"] + label::before {
    cursor: default;
    background: #fff;
    border: 2px solid #dfdfdf;
}

input[disabled].switch[type="checkbox"] + label::after {
    cursor: default;
    background: #dfdfdf;
}

.form-check-input:disabled~.form-check-label {
    color: #979ca0;
}

.list-group-item.loading{
    user-select: none;
}

.list-group-item.loading i::after {
    content: '';
    background-color: #f0f3f7;
    width: 28px;
    height: 28px;
    position: absolute;
    left: 1px;
    background-image: url(/frontend/web/images/list-group-item-loading.svg);
    background-size: 85px;
    background-position: center;
    top: 1px;
    border-radius: 50%;
}


.list-group-item.loading.active i,
li.active.loading .list-group-item i{
    background: var(--color-ultra-light-theme) !important;
}

.old-summ{
    color: #a7a7a7;
    text-decoration: line-through;
    font-style: italic;
}

.error-page-icon{
    font-size: 90px;
    color: var(--color-theme);
}

code {
    padding: 4px;
    font-size: 90%;
    color: #c7254e;
    background-color: #f9f2f4;
    border-radius: 4px;
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
}

.label-hint{
    color: #cacaca;
}

.menu-bg-button.menu-kdl-icon{
    background-image: url(/frontend/web/images/modules/kdl/kdl-logo.png?v=2);
    background-size: 100%;
}

.left-sidebar-menu-nav li.active .menu-bg-button.menu-kdl-icon{
    background-image: url(/frontend/web/images/modules/kdl/kdl-logo-invert.png?v=3);
    background-size: 100%;
}

.sp-container {
    border-radius: 4px;
    background-color: #ffffff;
    border: solid 1px #ced4da;
    padding: 0;
}

.sp-palette {
    max-width: 108px;
}

.sp-palette .sp-thumb-el {
    width: 32px;
    border: solid 1px #ffffff;
}

.sp-palette .sp-thumb-el:hover, .sp-palette .sp-thumb-el.sp-thumb-active {
    border-color: #9ba6b2;
}

.dropdown-menu .dropdown-item i{
    color: #5d5c5c;
}

.dropdown-item.disabled i,
.dropdown-item:disabled i{
    color: #cccdcf;
}

.link-user-card-avatar img{
    border-radius: 30px;
    width: 45px;
    height: 45px;
    object-fit: cover;
    object-position: center;
}

.link-user-card{
    display: flex;
    padding: 10px;
    text-align: left;
}

.link-user-card-info{
    padding-left: 10px;
}

.tooltip-user-card .tooltip-inner{
    background-color: #ffffff;
    opacity: 1;
    border: 1px solid #ebebeb;
    box-shadow: 1px 2px 5px #0000001c;
}

.tooltip-user-card .arrow{
    display: none;

}

.page-section{
    background: #fff;
    min-height: 135px;
    border-radius: 6px;
    padding: 15px;
}


.select2-notify-result{
    padding: 3px 7px;
    border-left: 4px solid #d5d13d;
    border-radius: 4px;
    background: #0000000f;
}

.modal-dialog.modal-screen-height .modal-body {
    max-height: calc(100vh - 173px);
    overflow-y: auto;
}

.modal-screen-height .modal-body::-webkit-scrollbar {
    margin: 0.3rem;
    margin-right: 5px;
    height: 1rem;
    width: 12px;
    background-color: rgb(235, 237, 240);
    border-radius: 1rem;
    border: 4px solid #fff;
}

.modal-screen-height .modal-body::-webkit-scrollbar-thumb {
    margin: 0.3rem;
    border-radius: 1rem;
    width: 4px;
    padding: 0.3rem;
    background: rgb(0 0 0 / 20%);
    border: 4px solid #fff;
}
.cursor-pointer {
    cursor: pointer;
}

.site-count-badge {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    right: 0;
    top: 0;
    background-color: #dc3545;
    box-shadow: 0 0 0 2px #fff;
    height: 1.3rem;
    min-width: 1.3rem;
    color: #fff;
    border-radius: 1rem;
    padding: 0.15rem 0.5rem;
    font-weight: 700;
    font-size: .8rem;
    user-select: none;
    animation: site-count-badge-pulse 2s;
    transition: .35s all;
}

.list-group-item .site-count-badge {
    right: -0.6rem;
    top: -0.4rem;
    font-size: .75rem;
    padding: 0.1rem 0.5rem;
}

.left-menu .menu-items ul li a span.site-count-badge {
    display: flex;
    right: -0.6rem;
    top: -0.4rem;
    font-size: .75rem;
    padding: 0.1rem 0.5rem;
}

.d-grid {
    display: grid;
}