﻿.table {
    height: fit-content !important;
    height: -moz-fit-content !important;
}

#SlideNewCtr {
    font-family: Open Sans,-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif !important;
    font-weight: 400;
    line-height: 1.6;
}

.format_center {
    display: flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.cv-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0,0,0,.0625);
    display: block;
    margin-bottom: 0;
    padding: 0;
    position: fixed;
    width: 100%;
    z-index: 800;
}

    .cv-header .cv-header-container {
        height: 56px;
        background: linear-gradient(90deg, rgba(10,185,207,1) 15%, rgba(117,53,231,1) 100%);
        color: #fff;
    }

        .cv-header .cv-header-container .cv-nav-left {
            float: left;
            margin-left: 0;
        }

        .cv-header .cv-header-container .cv-nav-right {
            float: right;
        }

        .cv-header .cv-header-container .cv-nav-left, .cv-header .cv-header-container .cv-nav-right {
            list-style: none;
            margin-bottom: 0;
            padding-left: 0;
            position: relative;
        }

.cv-header-container ul.cv-navbar > li > button {
    padding: 0 8px;
    height: 40px;
    width: 100%;
    border: none;
    border-radius: 3px;
    font-weight: 500;
    font-size: 15px;
}

    .cv-header-container ul.cv-navbar > li > button.btn-type-1 {
        background-color: hsla(0,0%,100%,.95);
        color: #0e1318;
    }

        .cv-header-container ul.cv-navbar > li > button.btn-type-1:hover {
            background-color: #fff !important;
            color: #0e1318 !important;
        }

            .cv-header-container ul.cv-navbar > li > button.btn-type-1:hover i {
                color: #0e1318 !important;
            }

        .cv-header-container ul.cv-navbar > li > button.btn-type-1:active {
            background-color: hsla(0,0%,100%,.85) !important;
            color: #0e1318 !important;
        }

    .cv-header-container ul.cv-navbar > li > button.btn-type-2:hover {
        background-color: hsla(0,0%,100%,.15) !important;
    }

    .cv-header-container ul.cv-navbar > li > button.btn-type-2:active {
        background-color: hsla(0,0%,100%,.2) !important;
    }

    .cv-header-container ul.cv-navbar > li > button.btn-type-2 {
        background-color: hsla(0,0%,100%,.1);
        color: #fff;
    }

.cv-header-container .cv-nav-right ul.cv-navbar > li {
    margin: 0 5px
}

.cv-header-container ul.cv-navbar > li > a {
    padding: 5px 15px !important;
    height: 100%;
    color: #fff !important;
    font-size: 15px;
    border-radius: 3px;
}

    .cv-header-container ul.cv-navbar > li > a:hover {
        background-color: hsla(0,0%,100%,.1);
    }

    .cv-header-container ul.cv-navbar > li > a > span {
        font-weight: 500;
    }

    .cv-header-container ul.cv-navbar > li > a > i {
        font-size: 22px;
        position: relative;
        top: 2px;
    }

.main-right {
    /*position: relative;*/
    /*flex-grow: 1;*/
    /*display: flex;*/
    /*flex-direction: column;*/
    overflow: hidden;
    /*left: 72px;*/
    max-height: calc(100vh - 56px);
    width: 100%;
}
/*.main-left {
        flex-shrink: 0;
        display: flex
    }*/
.main-left .cv-sidebar {
    padding-left: env(safe-area-inset-left,0);
    width: 78px;
    height: 100%;
    z-index: 101;
    background: #0078D4;
    overflow-y: auto;
    max-height: calc(100vh - 50px);
    min-height: calc(100vh - 50px);
}

.cv-ul-sidebar {
    padding: 0;
}

    .cv-ul-sidebar .cv-li-sidebar {
        cursor: pointer;
        padding: 15px 3px 10px 3px;
        list-style-type: none;
        color: #f5f5f5;
        font-weight: 500;
        /*opacity: .65;*/
        font-size: 12px;
        text-align: center;
        white-space: nowrap;
        box-sizing: border-box;
        text-overflow: ellipsis;
        position: relative;
    }

        .cv-ul-sidebar .cv-li-sidebar:hover {
            background-color: #005a9e;
            color: #FFFF67;
            opacity: 1;
        }

        .cv-ul-sidebar .cv-li-sidebar i {
            font-size: 25px;
            cursor: pointer;
        }

/*.cv-ul-sidebar .cv-color-active:after, .cv-ul-sidebar .cv-li-sidebar:hover:after {
            background: radial-gradient(circle closest-side,transparent 0,transparent 50%,#fff 0) 200% 200%/400% 400%;
            bottom: -8px;
            -webkit-transform: scaleY(-1);
            transform: scaleY(-1);
            content: "";
            position: absolute;
            width: 8px;
            height: 8px;
            right: 0;
            overflow: hidden;
        }

        .cv-ul-sidebar .cv-color-active:before, .cv-ul-sidebar .cv-li-sidebar:hover:before {
            background: radial-gradient(circle closest-side,transparent 0,transparent 50%,#fff 0) 200% 200%/400% 400%;
            top: -8px;
            -webkit-transform: scaleY(1);
            transform: scaleY(1);
            content: "";
            position: absolute;
            width: 8px;
            height: 8px;
            right: 0;
            overflow: hidden;
        }*/


.cv-expand-sb {
    /* flex-grow: 1; */
    width: 312px;
    margin-left: -312px;
    position: relative;
    transition: transform .25s ease-in-out,opacity .25s ease-in-out,-webkit-transform .25s ease-in-out;
    padding: 10px !important;
    /*padding-right: 24px;*/
    background-color: #fff;
    /* width: 100%; */
    /*left: 72px;*/
    padding-top: 1px;
    border-right: 1px solid rgba(57,76,96,.15);
}

.cv-search {
    position: relative;
}

.cv-search-input {
    border-radius: 4px;
    border: solid 1px rgba(0,0,0,0.0625);
    /*box-shadow: 0 8px 18px rgb(41 48 57 / 70%);*/
    /*border-color: transparent;*/
    height: calc(2em + .75rem + 2px);
    padding-left: 45px;
    /* padding-right: 45px;*/
}

.cv-search .cv-search-icon {
    position: absolute;
    left: 10px;
    top: 7px;
}

.cv-search .cv-setting-icon {
    position: absolute;
    right: 10px;
    top: 5px;
    cursor: pointer;
}

    .cv-search .cv-setting-icon:hover {
        background-color: rgba(64,87,109,.07) !important;
        color: unset !important;
    }

    .cv-search .cv-setting-icon:active {
        background-color: rgba(57,76,96,.15) !important;
    }

.cv-topic {
    margin-top: 24px;
}

    .cv-topic .cv-title {
        font-weight: 700;
        color: #fff;
        font-size: 15px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .cv-topic .cv-viewall {
        color: hsla(0,0%,100%,.65);
        transition: opacity .15s ease-in-out;
        cursor: pointer;
        font-size: 12px;
        white-space: nowrap;
        position: relative;
        top: 3px;
    }

    .cv-topic .img-topic img {
        width: 148px !important;
        height: 83px;
        object-fit: fill;
        overflow: hidden;
        -webkit-transform: scale(1);
        transform: scale(1);
        -webkit-transition: .3s ease-in-out;
        transition: .3s ease-in-out;
    }

.scroll-outer {
    visibility: hidden;
}

    .scroll-inner, .scroll-outer:hover, .scroll-outer:focus {
        visibility: visible;
    }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.custom-menu {
    display: inline-block;
    position: absolute;
    top: 50%;
    right: 3px;
    margin-right: -20px;
    transition: transform .25s ease-in-out,-webkit-transform .25s ease-in-out;
    z-index: 99;
}

    .custom-menu.close {
        left: -24px;
        right: unset;
    }

    .custom-menu .btn.btn-primary {
        background: 0 0;
        border-color: transparent;
    }

    .custom-menu .btn {
        width: 35px;
        height: 35px;
        border-radius: 50%;
        position: relative;
        border: none;
    }

        .custom-menu .btn:hover {
            background-color: unset !important;
        }

        .custom-menu .btn i {
            margin-right: -14px;
            font-size: 14px;
            color: #fff;
        }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/*.custom-menu .btn.btn-primary:after {
    z-index: -1;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    content: '';
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    background: #fff;
    border-radius: 20px;
}
*/
.cv-color-active {
    background-color: #005a9e !important;
    color: #FFFF67 !important;
    opacity: 1 !important;
}

.cv-color-active2 {
    background-color: #f5f5f5 !important;
    color: #005a9e !important;
}

.cv-right-header {
    height: 48px;
    background-color: #fff;
    border-bottom: 1px solid rgba(57,76,96,.15);
    padding: 8px;
}

.cv-right-body {
    height: calc(100vh - 50px);
    background-color: #edf0f2;
}

.cv-right-footer {
    border-top: 1px solid rgba(57,76,96,.15);
    height: 145px;
    background-color: #fff;
    position: relative;
}

    .cv-right-header button,
    .cv-right-footer button {
        padding: 0 8px;
        height: 35px;
        /*width: 100%;*/
        border: none;
        border-radius: 3px;
        font-weight: 500;
        font-size: 15px;
    }

        .cv-right-header button.btn-type-3,
        .cv-right-footer button.btn-type-3 {
            background-color: transparent;
            color: #0e1318;
        }

            .cv-right-header button.btn-type-3:hover,
            .cv-right-footer button.btn-type-3:hover {
                background-color: rgba(64,87,109,.07) !important;
                color: #0e1318 !important;
            }

            .cv-right-header button.btn-type-3 i,
            .cv-right-footer button.btn-type-3 i {
                font-size: 25px;
            }

            .cv-right-header button.btn-type-3:hover i,
            .cv-right-footer button.btn-type-3 i {
                color: #0e1318 !important;
            }

            .cv-right-header button.btn-type-3:active,
            .cv-right-footer button.btn-type-3:active {
                background-color: rgba(57,76,96,.15);
                color: #0e1318 !important;
            }

.slide-item {
    border: 2px solid #bfc4c8;
    height: 65px;
    width: 98px;
    border-radius: 4px;
    margin: 10px;
    cursor: pointer;
}

    .slide-item.active {
        background-color: #7d2ae8;
    }

    .slide-item img {
        object-fit: fill;
        width: 100%;
        height: 100%
    }

.slide-plus {
    height: 65px;
    width: 98px;
    border-radius: 4px;
    margin: 10px;
    background-color: rgba(64,87,109,.07);
    cursor: pointer;
}

    .slide-plus:hover {
        background-color: rgba(57,76,96,.15);
    }

.cv-upload {
    margin-top: 16px;
    position: relative;
    margin-right: 24px;
}

.cv-upload-btn {
    border-radius: 4px;
    box-shadow: 0 8px 18px rgb(41 48 57 / 70%);
    border-color: transparent;
    height: calc(2em + .75rem + 2px);
    position: relative;
    background-color: #7d2ae8;
    width: 100%;
}

    .cv-upload-btn:hover {
        background-color: #8d39fa !important;
    }

.cv-tab {
    padding-top: 8px;
}

    .cv-tab .nav-tabs {
        display: flex;
        justify-content: center;
        border-bottom: none;
    }

    .cv-tab .nav-item a {
        color: hsla(0,0%,100%,.65);
    }

        .cv-tab .nav-item a:hover,
        .cv-tab .nav-item a:focus,
        .cv-tab .nav-item a:focus-visible {
            border: 1px solid transparent !important;
            color: #fff !important
        }

    .cv-tab .nav-tabs .nav-item .active {
        background-color: transparent !important;
        border: none !important;
        border-bottom: 2px solid #fff !important;
    }

    .cv-tab .nav-tabs .nav-item .active {
        color: #fff !important;
    }

.cv-search-tag .search-tag-box {
    min-height: 40px;
    border-radius: 4px;
    font-weight: 400;
    color: hsla(0,0%,100%,.65);
    background-color: hsla(0,0%,100%,.07);
    -webkit-mask-image: -webkit-radial-gradient(#fff,#F5F5F5);
    transition: background-color .2s ease-in-out;
    padding: 8px;
}

    .cv-search-tag .search-tag-box:hover {
        background-color: hsla(0,0%,100%,.15);
    }

.image-item ul {
    display: flex;
    flex-wrap: wrap;
}

.image-item li {
    height: 15vh !important;
    flex-grow: 1;
    overflow: hidden;
}

li:last-child {
    // There's no science in using "10" here. In all my testing, this delivered the best results. flex-grow: 10;
}

@media (max-aspect-ratio: 1/1) {
    .image-item li {
        height: 30vh;
    }
}


@media (max-height: 480px) {
    .image-item li {
        height: 80vh;
    }
}

@media (max-aspect-ratio: 1/1) and (max-width: 480px) {
    .image-item ul {
        flex-direction: row;
    }

    .image-item li {
        height: auto;
        width: 100%;
    }
}

.online {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #4caf50;
    border-radius: 50%;
    bottom: 0;
    right: 0;
    margin-left: -15px;
}


/*Side bar right*/
.cv-ul-menubar {
    padding: 0;
}

.cv-li-menubar {
    /*cursor: pointer;
    min-height: 40px;
    border-radius: 4px;
    font-weight: 400;*/
    cursor: pointer;
    color: #373737;
    padding: 8px;
    /* background-color: hsla(0,0%,100%,.07);*/
    /*background-color:  #aeb6bf ;
    -webkit-mask-image: -webkit-radial-gradient(#fff,#F5F5F5);
    transition: background-color .2s ease-in-out;
    padding: 8px;
    margin-bottom: 5px;*/
}

    .cv-li-menubar[active="true"] {
        background-color: #f5f5f5 !important;
        color: #2196F3;
    }

    .cv-li-menubar:hover {
        background-color: #f5f5f5;
        color: #005a9e;
    }

.cv-icon-menubar {
    font-size: 25px;
    width: 15%;
}

.cv-title-menubar {
    width: 85%;
    justify-content: flex-start !important;
}

.cv-count-menubar {
    font-size: 16px;
    width: 15%;
}

/*Animation Sidebar*/
.wrapper {
    display: flex;
    /*width: 100%;*/
    align-items: stretch;
}

#sidebar {
    z-index: 99;
    min-width: 0;
    max-width: 312px;
    /* color: #fff;*/
    transition: all 0.3s;
}

    #sidebar.active {
        -webkit-box-shadow: 5px 0 25px -13px #222 !important;
        -moz-box-shadow: 5px 0 25px -13px #222 !important;
        box-shadow: 5px 0 25px -13px #222 !important;
        margin-left: -312px;
        z-index: 100;
    }

.menu-sidebar {
    min-height: calc(100vh - 50px);
    max-height: calc(100vh - 50px);
}

@media (min-width: 0px) {
    #sidebar {
        margin-left: -312px !important;
    }

        #sidebar.active {
            margin-left: 0 !important;
        }
}

.closed {
    animation: sb 0.6s forwards;
}

@-webkit-keyframes sb {
    to {
        opacity: 0;
        /*display: none;*/
    }
}

@keyframes sb {
    to {
        opacity: 0;
        /* display: none;*/
    }
}

#box-close {
    position: absolute;
    top: 50%;
    right: 325px;
    opacity: 0;
    z-index: 100;
    -webkit-transform: translate(100%,-50%);
    transform: translate(100%,-50%);
}

    #box-close.active {
        animation: bc 0.8s forwards;
    }

@-webkit-keyframes bc {
    to {
        opacity: 1;
        position: absolute;
        right: 3px;
    }
}

@keyframes bc {
    to {
        opacity: 1;
        position: absolute;
        right: 3px;
    }
}

.btn-close-sidebar {
    position: relative;
    border: none;
    background: none !important;
    width: 100%;
    height: 100%;
    text-transform: inherit;
    color: inherit;
    font: inherit;
    padding: 0;
}

.icon-close-sidebar {
    position: absolute;
    top: calc(50% - 12px);
    left: 2px;
    pointer-events: all;
}

.icon-Chat {
    position: absolute !important;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #0078D4;
    /*color: #FF6633 !important;*/
}

    .icon-Chat:hover {
        /* background-color: #fff;
        color: #005a9e !important;*/
        opacity: 1;
    }

/*    .icon-Chat:after {
        content: none !important;
    }*/

.adv-search > .menu-filter {
    position: absolute !important;
    left: 0px !important;
    top: 0px !important;
    margin-left: 0px !important;
    max-height: calc(100vh - 200px);
    overflow: hidden auto;
    will-change: transform !important;
    margin-top: 5px;
    transform: translate3d(0, 30px, 0px) !important;
}

.adv-search .search-input-2 {
    width: 420px;
    height: calc(1.5em + .75rem + 2px);
    border-radius: 4px;
    border: solid 1px rgba(0,0,0,0.0625);
    padding: 5px 30px 5px 45px;
    background-color: #fff;
    transition: width 0.4s linear;
    border: solid 1px rgba(0,0,0,0.1625) !important;
}

.adv-search .search-icon-left {
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translate(0, -50%) !important;
    font-size: 20px;
    padding: 0 10px !important;
}

.adv-search .search-icon-right {
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translate(0, -50%) !important;
    padding: 0 10px !important;
}

.show > .active-btn-2 {
    background-color: #c7e0f4 !important;
}

div[contentEditable="true"]:empty:not(:focus):before {
    content: attr(data-text);
    color: #aaa
}

.bgSidebar {
    background: #fff;
}
