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

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

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

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

.div-main-container {
    margin-bottom: 60px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #dbdbdb;
}

.sidebar-margin .main-container-wrap {
    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(/web/images/loading.svg);
    background-repeat: no-repeat;
    background-position: top center !important;
    user-select: none;
    pointer-events: none;
}

.kv-loader {
    position: absolute;
    background: #fff url('/web/images/loading.svg') center center no-repeat !important;
    width: 70px;
    height: 70px;
    top: calc(50% - 35px);
    left: calc(50% - 35px);
}

.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-header {
    border-bottom: 1px solid #ffffff;
}

.modal.show.loading .modal-footer {
    border-top: 1px solid #ffffff;
}

.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(1px) grayscale(1);
    pointer-events: none;
}

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

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

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

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

.pjax-loader.loading>* {
    opacity: 0.3;
    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: 290px;
    height: 100vh;
    position: fixed;
    left: 70px;
}

.breadcrumb {
    background: #fff;
    border-radius: 0 0 1rem 1rem;
    border-top: 1px solid #f7f7f8;
    margin-bottom: 0;
    display: flex;
    flex-wrap: nowrap;
}

.breadcrumb li.active {
    color: #2b97bf;
    font-weight: 600;
}

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

.detail_v_3col_width_h {
    width: 16.67%;
    text-align: right;
}

.detail_v_3col_width {
    width: 16.67%;
    text-align: left;
}

.detail_v_2col_width_h {
    width: 25%;
    text-align: right;
}

.detail_v_2col_width {
    width: 25%;
    text-align: left;
}

.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;
}

.left-sidebar .scrollbar-outer {
    height: 100%;
    padding-right: 3px !important;
    border-right: 1px solid #dbdbdb;
}

.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: 346px;
    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: 344px;
    top: 12px;
    font-size: 21px;
    padding: 2px 11px;
    opacity: 1;
}

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

.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 {
    display: none;
}

.nowrap {
    white-space: nowrap;
}

.underblock .help-block {
    margin: auto;
    margin-top: 0.5rem;
}

.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;
}

@media screen and (max-width: 768px) {
    .left-menu {
        display: none;
    }
    .main-container-wrap {
        width: 100vw;
        margin-left: 0;
    }
    .sidebar-margin .main-container-wrap {
        width: 100vw;
        margin-left: 0;
    }
    .sidebar-margin .left-sidebar {
        display: none;
    }
    .company-info {
        display: none;
    }
}

@media screen and (max-width: 1400px) {
    .left-sidebar {
        width: 250px;
    }
    .left-sidebar-toggle-btn {
        left: 306px;
    }
    .left-sidebar-toggle-btn:hover {
        left: 304px;
    }
}

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

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

input.switch[type="checkbox"]+label::after {
    content: '';
    background: #f0f3f7;
    width: 35px;
    height: 18px;
    position: absolute;
    left: 0;
    border-radius: 50px;
    transition: .2s ease-in-out all;
    cursor: pointer;
}

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

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

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

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

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

.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;
}

.type_order_temp_btn {
    width: auto;
    display: inline-block;
    text-align: center;
    margin-top: 11px;
}

.panel {
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
}