#mainNav .navbar-brand {
    margin-right: -10px;
    width:16.666667% !important;
}

html {
    overflow: hidden;
}

body {
    font-family: 'Microsoft JhengHei';
}

.navbar-dark {
    background-color: #1a1a1a;
    border-radius:0px !important;
    max-height: 57px;
}

.heigh100 {
    height: 100%;
}

.width100 {
    width: 100%;
}

.content-wrapper {
    height: calc(100vh - 57px);
}

.ListChat {
    height: calc(100vh - 57px);
    overflow: hidden;
    flex-wrap: nowrap;
}

    .ListChat .Icon_chat {
        color: #FFF;
        font-size: 30px;
        line-height: 50px;
        width: 50px;
        height: 50px;
        border-radius: 30px;
        text-align: center;
        display: block;
        background-color: #65bea8;
    }

        .ListChat .Icon_chat.offline {
            background-color: var(--secondary);
            color: #dadee1;
        }

    .ListChat .chat-img {
        display: flex;
        flex-flow: column;
        justify-content: center;
        align-items: center;
        position: relative;
    }
    .ListChat .right .chat-img {
        margin-left: 10px;
    }

    .ListChat .clearfix.left {
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        width: 50%;
        float: left;
        margin-top: 5px;
    }
    .ListChat .clearfix.right {
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        flex-flow: row-reverse;
        width: 50%;
        float: right;
        margin-top: 5px;
    }

    .ListChat .chat-img img {
        width: 25px;
        height: 25px;
    }

    .ListChat .right .Icon_chat {
        background-color: #62ACCB;
    }

    .ListChat .aChat .text-time {
        width: 50%;
        display: inline-block;
        text-align: right;
        color: #a4a9ad;
    }

    .ListChat .text-name {
        font-weight: bold;
    }
    .ListChat .chat .text-name {
        position: absolute;
        top: 2px;
        transform: translateY(-100%);
    }
    .ListChat .aChat .text-name {
        display: inline-block;
        width: 50%;
        color: #fff;
    }

    .ListChat .text-content {
        font-size: 14px;
        float: left;
        color: #a4a9ad;
    }

    .ListChat .text-time {
        font-size: 10px;
        color: #808080;
    }

    .ListChat .page-height > .row {
        height: 75px;
        margin: 5px 0px;
    }

    .ListChat .page-height .aChat {
        min-height: 60px;
        padding: 15px 0px;
        align-items: center;
    }

        .ListChat .page-height .aChat:hover {
            box-shadow: inset 5px -1px 0px -1px #62accb;
            cursor: pointer;
        }

    .ListChat .text-chat-title {
        background-color: #edeff2;
        font-weight: bold;
        line-height: 60px;
        padding: 0px 15px;
        border-bottom: 1px solid #dadee1;
        margin: 0px -15px;
        width: calc(100% + 30px);
    }

    .ListChat .text-chat-title .fa-refresh {
        float: right;
        line-height: 60px;
        cursor: pointer;
    }

    .ListChat .text-chatwait-title {
        background-color: #343a40;
        line-height: 60px;
        text-align: center;
        font-weight: bold;
        font-size: 18px;
    }

    .ListChat .Chat-Content-Body {
        flex-wrap: wrap;
        height: calc(100vh - 57px);
        display: none;
        width: 100%;
        -webkit-box-shadow: 2px 0 15px -2px #dadee1;
        box-shadow: 2px 0 15px -2px #dadee1;
    }

    .ListChat .Chat-Content-Info {
        display: none;
        height: calc(100vh - 57px);
        flex-flow: column;
    }

    .ListChat .Content-Message {
        height: 200px;
        display: none;
        margin: 0px -15px;
        position: relative;
        z-index: 2;
        width: calc(100% + 30px);
    }

        .ListChat .Content-Message #message {
            height: 160px;
            width: 100%;
            border: 0px;
            padding: 5px;
            overflow:auto;
        }

            .ListChat .Content-Message #message img {
                height: 150px;
                width: auto;
            }

    .ListChat .Content-Tool {
        background-color: #edeff2;
        line-height: 40px;
        height: 40px;
        border-bottom: 1px solid #dadee1;
        border-top: 1px solid #dadee1;
        padding-right: 15px;
        font-size: 20px;
    }

        .ListChat .Content-Tool .fa {
            cursor: pointer;
            margin: 0px 5px;
            color: #9ba3b2;
        }

        .ListChat .Content-Tool .dropdown {
            display: inline-block;
        }
        .ListChat .Content-Tool .dropdown>a>i {
            color:#a0a8b6;
        }

        .ListChat .Content-Tool .emoji .dropdown-item {
            width: 50px;
            display: inline-block;
            text-align: center;
            margin: auto;
            padding: 5px;
        }

            .ListChat .Content-Tool .emoji .dropdown-item:before {
                content: "";
            }

    .ListChat .chat {
        padding: 5px 20px;
        list-style: none;
        font-size: 13px;
        overflow-y: scroll;
        height: calc(100% - 260px);
        width: calc(100% + 30px);
        margin: auto -15px;
    }
    .ListChat .chat ul {
            padding:0px;
            list-style:none;
        }
        .ListChat .chat li {
            margin-bottom: 1em;
        }

        .ListChat .chat .left .text-name {
            display:none;
        }
        .ListChat .chat .text-isRead {
            margin: 10px 5px;
            line-height: 22px;
        }

        .ListChat .chat .text-time {
            margin-top: 5px;
        }

    .ListChat .text-details {
        margin-bottom: 20px;
        overflow-y: auto;
        overflow-x: hidden;
        margin: 0 -15px;
        padding: 0 15px;
    }

    .ListChat .chat .left .chat-body {
        margin-left: 5px;
    }

    .ListChat .chat .chat-body p {
        border-radius: 30px;
        background-color: #dadee1;
        padding: 10px;
        line-height: 22px;
        position: relative;
        min-width: 30px;
        word-break: break-all;
        font-size: 17px;
        margin: 0l
    }

        .ListChat .chat .chat-body p.hasImg {
            background-color: transparent !important;
            cursor: pointer;
        }

            .ListChat .chat .chat-body p.hasImg:before {
                display: none;
            }

        .ListChat .chat .chat-body p img {
            width: 150px;
            height: auto;
            border-radius: 10px;
            border: 2px solid #dadee1;
        }

            .ListChat .chat .chat-body p img.weixin {
                width: auto;
                height: auto;
                border-radius: 0px;
                border: 0px;
            }

    .ListChat .chat .center .chat-body {
        width: 100%;
        display: block;
        margin: auto;
        max-width: 100%;
    }

    .ListChat .chat .center .chat-img, .ListChat .chat .center .text-isRead {
        display: none;
    }

    .ListChat .chat .center .chat-body p {
        margin: auto;
        text-align: center;
        border-radius: 20px;
        background-color: #dadee1;
        font-size: 11px;
        width: auto;
        padding: 0px 10px;
        color: #868e96;
    }
    .ListChat .chat .center.showdate .chat-body p{
        background-color:#ded6ce;
    }
    .ListChat .chat .center .text-time {
        display: none;
    }

    .ListChat .chat .right .chat-body p img {
        text-align: right;
        display: inline-block;
    }

    .ListChat .chat .left .chat-body p:before {
        content: ' ';
        position: absolute;
        width: 0;
        height: 0;
        left: -2px;
        right: auto;
        top: 1px;
        bottom: auto;
        border: 12px solid;
        border-color: #dadee1 transparent transparent transparent;
    }

    .ListChat .chat .right .chat-body p:before {
        content: ' ';
        position: absolute;
        width: 0;
        height: 0;
        right: -2px;
        top: 3px;
        bottom: auto;
        border: 12px solid;
        border-color: var(--success) transparent transparent transparent;
    }

    .ListChat .chat .right .chat-body p {
        background-color: var(--success);
    }

    .ListChat .Icon_chat.Icon_small {
        font-size: 20px;
        line-height: 35px;
        width: 35px;
        height: 35px;
    }

    .ListChat .Icon_chat.Icon_big {
        font-size: 50px;
        line-height: 80px;
        width: 80px;
        height: 80px;
        border-radius: 80px;
        margin: 10px auto;
    }

.full-width {
    width: calc(100% + 30px);
    margin: 0 -15px;
    padding: 0px;
}

.ListChat .chatFun {
    width: 100%;
    margin: 5px auto;
    padding: 0px;
    text-align: center;
}

    .ListChat .chatFun li {
        list-style: none;
        width: 100%;
        display: inline-block;
        line-height: 50px;
        margin-bottom: 2px;
        border-bottom: 1px solid #dadee1;
    }

        .ListChat .chatFun li a, .ListChat .chatFun li a:hover {
            color: #000;
            text-decoration: none;
        }

.ListChat .aChat .online {
    width: 5px;
    height: 5px;
    display: block;
    background-color: var(--success);
    border-radius: 10px;
    position: relative;
    top: -50px;
    left: -5px;
}

    .ListChat .aChat .online.offline {
        background-color: var(--secondary);
    }

.ListChat .aChat .notRead {
    background-color: #fff3cd;
    float: right;
    border-radius: 20px;
    padding: 0px 10px;
    color: #856404;
    font-size: 13px;
}

#alert {
    display: none;
    position: absolute;
    left: 80%;
    top: 56px;
    z-index: 1040;
    opacity: 0.9;
    width: 20%;
}

.alert a {
    color: #000;
    text-decoration: none;
}

.bk-white {
    background-color: #FFF !important;
}

.bk-danger {
    background-color: var(--danger);
}

.bk-warning {
    background-color: var(--warning);
}

.bk-info {
    background-color: var(--info);
}

.bk-primary {
    background-color: var(--primary);
}

.bk-success {
    background-color: var(--success);
}

.page-height {
    height: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
    background-color: #464646;
}

.displayNone {
    display: none;
}

ul.pagination {
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}

    ul.pagination .page-item .page-link {
        background-color: #343a40;
        border: 1px solid #464646;
        color: #FFF;
        border-radius: 0px;
        line-height: 30px;
        height: 30px;
        padding: 0px;
        margin: 0px 5px;
        text-align: center;
        width: 30px;
        border: 1px solid #000;
    }

        ul.pagination .page-item.active .page-link, ul.pagination .page-item .page-link:hover {
            background-color: var(--secondary);
            color: #000;
        }

.bk-blue {
    background-color: #f5f9fc;
}

.modal-body img {
    width: 100%;
    height: auto;
}

.dropdown-item {
    white-space: normal !important;
}

    .dropdown-item:before {
        content: "\f05d";
        font: normal normal normal 14px/1 FontAwesome;
        color: #0283ff;
        margin-right: 2px;
        position: relative;
        bottom: 2px;
    }

.onlineUser {
    list-style: none;
    margin: 0px;
    padding: 0px;
}

    .onlineUser li .Icon_chat {
        width: 40px;
        height: 40px;
        font-size: 18px;
        line-height: 40px;
        background-color: #65bea8;
        float: left;
    }

    .onlineUser li div.comment-box {
        width: 100%;
        position: relative;
        line-height: 20px;
        height: 40px;
        margin-bottom: 10px;
    }

        .onlineUser li div.comment-box .btn {
            background-color: #65bea8;
            float: left;
            margin: 0px;
            width: 60%;
            color: #FFF;
            border-radius:0px;
            height:100%;
        }

    .onlineUser li .comment-head {
        background-color: #FCFCFC;
        width: 100%;
        height:100%;
    }

    .onlineUser .comment-head .text-name {
        color: #95cebb;
        font-weight: bold;
    }

    .onlineUser .comment-head .text-time {
        width: 40%;
        color: #d2636d;
        float:left;
        font-size: 12px;
        padding: 0px 5px;
    }

.navbar-brand a, .navbar-brand a:hover {
    color: #FFF;
    text-decoration: none;
}

.paginateInput {
    height: 30px;
    border-radius: 0px;
    margin: 0px 5px;
}
input[type=number].paginateInput::-webkit-inner-spin-button, 
input[type=number].paginateInput::-webkit-outer-spin-button {
    height: 30px;
}

/*-------------------------------*/
/*           Wrappers            */
/*-------------------------------*/

#wrapper {
    padding-left: 0;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

    #wrapper.toggled {
        padding-left: 220px;
    }

#sidebar-wrapper {
    position: absolute;
    z-index: 1000;
    top: 56px;
    left: -32px;
    width: 0;
    height: 100%;
    margin-left: 0px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #1a1a1a;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

    #sidebar-wrapper::-webkit-scrollbar {
        display: none;
    }

#wrapper.toggled #sidebar-wrapper {
    width: 16.666667%;
    left: 0px;
}

#page-content-wrapper {
    width: 100%;
    padding-top: 70px;
}

#wrapper.toggled #page-content-wrapper {
    position: absolute;
    margin-right: -220px;
}
.ml-auto{
    float:right !important;
    font-size:17px;
}
/*-------------------------------*/
/*     Sidebar nav styles        */
/*-------------------------------*/

.sidebar-nav {
    position: absolute;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    left: 0px;
}

    .sidebar-nav li {
        position: relative;
        line-height: 20px;
        display: inline-block;
        width: 100%;
    }

        .sidebar-nav li:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            z-index: -1;
            height: 100%;
            width: 5px;
            background-color: #1c1c1c;
            -webkit-transition: width .2s ease-in;
            -moz-transition: width .2s ease-in;
            -ms-transition: width .2s ease-in;
            transition: width .2s ease-in;
        }

        .sidebar-nav li:before {
            background-color: #2d2366;
        }

        .sidebar-nav li:hover:before,
        .sidebar-nav li.open:hover:before {
            width: 100%;
            -webkit-transition: width .2s ease-in;
            -moz-transition: width .2s ease-in;
            -ms-transition: width .2s ease-in;
            transition: width .2s ease-in;
        }

        .sidebar-nav li a {
            display: block;
            color: #FFF;
            text-decoration: none;
            padding: 10px 15px 10px 30px;
            font-size: 18px;
            line-height: 40px;
            white-space: nowrap;
        }

            .sidebar-nav li a:hover,
            .sidebar-nav li a:active,
            .sidebar-nav li a:focus,
            .sidebar-nav li.open a:hover,
            .sidebar-nav li.open a:active,
            .sidebar-nav li.open a:focus {
                text-decoration: none;
                background-color: transparent;
            }


    .sidebar-nav .dropdown-menu {
        position: relative;
        width: 100%;
        padding: 0;
        margin: 0;
        border-radius: 0;
        border: none;
        background-color: #222;
        box-shadow: none;
    }

/*-------------------------------*/
/*       Hamburger-Cross         */
/*-------------------------------*/

.hamburger {
    position: relative;
    z-index: 999;
    display: block;
    width: 32px;
    height: 29px;
    background: transparent;
    border: none;
    cursor: pointer;
    left: -32px;
    margin-left: -5px;
    top: 6px;
}

    .hamburger:hover,
    .hamburger:focus,
    .hamburger:active {
        outline: none;
    }

    .hamburger.is-closed:before {
        content: '';
        display: block;
        width: 100px;
        font-size: 14px;
        color: #fff;
        line-height: 32px;
        text-align: center;
        opacity: 0;
        -webkit-transform: translate3d(0,0,0);
        -webkit-transition: all .35s ease-in-out;
    }

    .hamburger.is-closed:hover:before {
        opacity: 1;
        display: block;
        -webkit-transform: translate3d(-100px,0,0);
        -webkit-transition: all .35s ease-in-out;
    }

    .hamburger.is-closed .hamb-top,
    .hamburger.is-closed .hamb-middle,
    .hamburger.is-closed .hamb-bottom,
    .hamburger.is-open .hamb-top,
    .hamburger.is-open .hamb-middle,
    .hamburger.is-open .hamb-bottom {
        position: absolute;
        left: 0;
        height: 3px;
        width: 100%;
        border-radius: 15px;
    }

    .hamburger.is-closed .hamb-top,
    .hamburger.is-closed .hamb-middle,
    .hamburger.is-closed .hamb-bottom {
        background-color: #FFF;
    }

    .hamburger.is-closed .hamb-top {
        top: 7px;
        -webkit-transition: all .35s ease-in-out;
    }

    .hamburger.is-closed .hamb-middle {
        top: 50%;
        margin-top: -2px;
    }

    .hamburger.is-closed .hamb-bottom {
        bottom: 7px;
        -webkit-transition: all .35s ease-in-out;
    }



    .hamburger.is-open .hamb-top,
    .hamburger.is-open .hamb-middle,
    .hamburger.is-open .hamb-bottom {
        background-color: #FFF;
    }

    .hamburger.is-open .hamb-top,
    .hamburger.is-open .hamb-bottom {
        top: 50%;
        margin-top: -2px;
    }

    .hamburger.is-open .hamb-top {
        -webkit-transform: rotate(45deg);
        -webkit-transition: -webkit-transform .2s cubic-bezier(.73,1,.28,.08);
    }

    .hamburger.is-open .hamb-middle {
        display: none;
    }

    .hamburger.is-open .hamb-bottom {
        -webkit-transform: rotate(-45deg);
        -webkit-transition: -webkit-transform .2s cubic-bezier(.73,1,.28,.08);
    }

    .hamburger.is-open:before {
        content: '';
        display: block;
        width: 100px;
        font-size: 14px;
        color: #fff;
        line-height: 32px;
        text-align: center;
        opacity: 0;
        -webkit-transform: translate3d(0,0,0);
        -webkit-transition: all .35s ease-in-out;
    }

    .hamburger.is-open:hover:before {
        opacity: 1;
        display: block;
        -webkit-transform: translate3d(-100px,0,0);
        -webkit-transition: all .35s ease-in-out;
    }

/*-------------------------------*/
/*            Overlay            */
/*-------------------------------*/

.overlay {
    position: fixed;
    display: none;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 5;
    -webkit-animation: fadein 0.2s; /* Safari, Chrome and Opera > 12.1 */
    -moz-animation: fadein 0.2s; /* Firefox < 16 */
    -ms-animation: fadein 0.2s; /* Internet Explorer */
    -o-animation: fadein 0.2s; /* Opera < 12.1 */
    animation: fadein 0.2s;
}
/*-------------------------------*/
/*           keyframes           */
/*-------------------------------*/
@keyframes fadein {
    from {
        opacity: 0.3;
    }

    to {
        opacity: 0.8;
    }
}

/* Firefox < 16 */
@-moz-keyframes fadein {
    from {
        opacity: 0.3;
    }

    to {
        opacity: 0.8;
    }
}

/* Safari, Chrome and Opera > 12.1 */
@-webkit-keyframes fadein {
    from {
        opacity: 0.3;
    }

    to {
        opacity: 0.8;
    }
}

/* Internet Explorer */
@-ms-keyframes fadein {
    from {
        opacity: 0.3;
    }

    to {
        opacity: 0.8;
    }
}

/* Opera < 12.1 */
@-o-keyframes fadein {
    from {
        opacity: 0.3;
    }

    to {
        opacity: 0.8;
    }
}

.History .page-height {
    background-color: #edeff2;
}

.History.ListChat .Icon_chat.offline {
    background-color: #ded6ce;
    color: #4f4640;
}

.History.ListChat .text-name {
    color: #000;
}

.History.ListChat .text-content {
    color: #5b5652;
}

.History.ListChat .page-height .aChat:hover {
    box-shadow: inset 5px -1px 0px -1px #65bea8;
}

.History.ListChat .Chat-Content-Info {
    color: #FFF;
}

.History.ListChat .Chat-Content-Body {
    position: relative;
    z-index: 1;
}

.History.ListChat .chat {
    height: calc(100% - 60px);
}

.History.ListChat .input-group-search {
    width: 80%;
    height: 60px;
    font-family: Arial, FontAwesome;
    float: right;
    margin: auto;
}

.navbar-nav h5 {
    color: #FFF;
    line-height: 40px;
    font-size: 16px;
    margin: 0px;
    padding: 0px;
    margin-left: -25px;
}

.baseTemplate {
    margin-left: 220px;
    margin-top: 30px;
}

.btn-default {
    color: #333;
    background-color: #fff;
    border-color: #ccc;
}

.style-1::-webkit-scrollbar {
    width: 8px;
}

.style-1::-webkit-scrollbar-thumb {
    border-radius: 20px;
    background-color: rgba(45,45,45,0.6);
}

.style-2::-webkit-scrollbar {
    width: 8px;
}

.style-2::-webkit-scrollbar-thumb {
    border-radius: 20px;
    background-color: #dadee1;
}

.style-3::-webkit-scrollbar {
    width: 8px;
}

.style-3::-webkit-scrollbar-thumb {
    border-radius: 20px;
    background-color: rgba(145,145,145,0.6);
}

/* from Chat.js*/

#checkScroll {
    display: none;
    position: fixed;
    width: 40px;
    right: 290px;
    bottom: 210px;
    border-radius: 100%;
}

    #checkScroll:hover {
        background-color: #555;
    }

.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu .dropdown-menu {
        top: -350px;
        left: 100%;
        margin-top: -1px;
        width: 500px;
        overflow-y: scroll;
        height: 400px;
    }

.caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 2px;
    vertical-align: middle;
    border-top: 4px dashed;
    border-top: 4px solid\9;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

.dropup .dropdown-toggle::after {
    display: block;
    width: 0;
    height: 0;
    margin-left: 0;
    vertical-align: 0;
    content: "";
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
}

.emoji {
    width: 502px;
}

.menublock {
    display: block;
}

/* from MemberVerification.js */
#MemberAccount {
    display: initial;
}

.form-control {
    width: 50%;
}

/* from History.js */
.ListChat .text-details {
    max-height: inherit;
}

#BtnGetMoreMessage {
    width: 100%;
    padding: inherit;
    border-radius: 20px;
}
#NotMoreMessage {
    width: 100%;
    font-weight: 400;
    text-align: center;
    border-radius: 20px;
    background-color: #FFF;
}

/* from Range.js */
.select2 {
    margin: 0 -15px;
    min-width: calc(100% + 30px);
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border: 1px solid #ccc !important;
}

