.table td, .table th {
    padding: 5px;
    vertical-align: middle;
}

.k-grid {
    border: 0;
}

    .k-grid .k-button.k-button-icontext.k-grid-delete {
        color: #fff;
        background-color: #f46a6a;
        border-color: #f46a6a;
    }

        .k-grid .k-button.k-button-icontext.k-grid-delete:hover {
            color: #fff;
            background-color: #f14646;
            border-color: #f03b3b;
        }

    .k-grid .k-button.k-button-icontext.k-grid-edit {
        background-color: #f1b44c;
        border-color: #f1b44c;
        color: #fff;
    }

        .k-grid .k-button.k-button-icontext.k-grid-edit:hover {
            color: #fff;
            background-color: #eea529;
            border-color: #eda01d;
        }

.k-state-selected {
    background-color: #cee6fb;
    border-color: #a4d0f8;
    color: #333;
}

.k-grid td.k-state-selected:hover,
.k-grid tr.k-state-selected:hover td,
.k-grid tr:hover {
    background-color: #c1ddf7;
}

.k-grid tr td {
    padding: 0 .3rem;
    border-color: #e6e6e6;
    border: none;
}

.k-grid .k-header,
.k-grid .k-pager-wrap,
.k-grid-header,
.k-grid-header-wrap {
    border-color: #e6e6e6;
}

.k-grid tbody td:first-child {
    text-align: center
}

.k-grid-header th.k-header {
    padding-left: 0.3rem;
    font-weight: bold
}

/*.k-grid .k-checkbox-label.k-no-text,
.k-grid-header th.k-header:first-child {
    padding-left: 16.2px;
    vertical-align: inherit;
}

.k-checkbox-label.k-no-text {
    margin-bottom: 0;
}*/

.k-grid-pager {
    border-width: 0;
}

.k-grid tbody .k-button {
    min-width: 50px; 
}

div.custom-modal {
    overflow-y: auto;
    max-height: 450px;
}

.modal-dialog.modal-dialog-scrollable {
    margin-top: 0;
    margin-bottom: 0;
}

    .modal-dialog.modal-dialog-scrollable .modal-footer {
        padding-top: 0;
    }

/* Lead create/edit ? c? ??nh header + footer, ch? cu?n ph?n n?i dung */
.modal.lead-create-modal .modal-dialog {
    display: flex;
    max-height: calc(100vh - 1rem);
    margin: 0.5rem auto;
}

.modal.lead-create-modal .modal-content,
.modal.lead-create-modal .modal-content > form {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 1rem);
    overflow: hidden;
    width: 100%;
}

.modal.lead-create-modal .modal-header,
.modal.lead-create-modal .modal-footer {
    flex-shrink: 0;
}

.modal.lead-create-modal .modal-body {
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.modal.lead-create-modal .modal-footer {
    border-top: 1px solid #dee2e6;
    background-color: #fff;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
}


.resource-with-module {
    float: left;
    padding: 4px 0px;
    width: 100%;
}

.mcs-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

    .mcs-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.mcs-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

    .mcs-slider:before {
        position: absolute;
        content: "";
        height: 26px;
        width: 26px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
    }

input:checked + .mcs-slider {
    background-color: #2196F3;
}

input:focus + .mcs-slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .mcs-slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.mcs-slider.round {
    border-radius: 34px;
}

    .mcs-slider.round:before {
        border-radius: 50%;
    }

.mcs-collapse {
}

.mcs-collapse-panel {
    min-height: 50px;
}

.mcs-collapse-heading {
    font-weight: bold;
    border-top: 1px solid #ecedf2;
}

.mcs-collapse-title {
}

    .mcs-collapse-title a, .mcs-collapse-title a:hover, .mcs-collapse-title a:focus, .mcs-collapse-title a:active {
        color: #74788d;
        float: left;
        padding: 10px 0px;
        width: 100%;
    }

.border-right {
    border-right: 1px solid #dee2e6 !important;
}

.mcs-tab-panel {
}

    .mcs-tab-panel .k-tabstrip:focus {
        box-shadow: none !important;
    }

    .mcs-tab-panel .k-loading.k-complete, .mcs-tab-panel .k-item.k-state-default {
        border: none;
    }

    .mcs-tab-panel .k-item {
    }

        .mcs-tab-panel .k-item.k-state-hover {
            background: none !important;
        }

        .mcs-tab-panel .k-item.k-state-active .k-link {
            border-bottom: 2px solid red;
        }

    .mcs-tab-panel .k-link:hover {
        color: red;
    }

#tabstrip-parent,
#tabstrip {
    height: 100%;
    margin: 0;
    padding: 0;
    border-width: 0;
}

.mcs-hyperlink {
    cursor: pointer;
    color: #4183C4;
}

.ddl-custom {
    width: 100%;
}

    .ddl-custom,
    .ddl-custom span {
        background: #fff !important;
        border: inherit;
        box-shadow: none !important;
    }

        .ddl-custom .k-dropdown-wrap {
            border: 1px solid #ced4da;
        }

            .ddl-custom .k-dropdown-wrap .k-input {
                height: calc(1.5em + .94rem);
                line-height: calc(1.5em + .94rem);
            }

            .ddl-custom .k-dropdown-wrap .k-select {
                height: calc(1.5em + .94rem);
                line-height: calc(1.5em + .94rem);
            }

/*.k-state-border-down,
        .ddl-custom span {
            box-shadow: none !important;
        }*/

.app-search .position-relative > input {
    border: 1px solid #b7b7b7;
}

    .app-search .position-relative > input:active, .app-search .position-relative > input:focus {
        border: 1px solid #a4d0f8;
    }

.mcs-attrached {
}

    .mcs-attrached .mcs-attrached-image {
        max-width: 50%;
    }

.page-content {
    position: relative;
    padding: 80px 12px 60px 12px;
}

.page-title-box {
    padding-bottom: 12px;
}

.footer {
    padding: 10px calc(24px / 2);
    height: 40px;
}

.main-content .todo-new-task-sidebar {
    height: calc(var(--vh,1vh) * 100 - 75px);
    width: 400px;
    border-radius: 0 .25rem .25rem 0;
    background-color: #FFF;
    position: fixed;
    -webkit-transform: translateX(120%);
    -ms-transform: translateX(120%);
    transform: translateX(120%);
    -webkit-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
    z-index: 8;
    right: 33px;
    bottom: 0;
}

    .main-content .todo-new-task-sidebar.show {
        -webkit-transform: translateX(8.75%);
        -ms-transform: translateX(8.75%);
        transform: translateX(8.75%);
    }

.noti-icon .badge {
    right: 4px;
}
/* MCS Tree structure */
.mcs-container-tree {
    overflow: auto;
    position: relative;
}

    .mcs-container-tree ul {
        padding: 0;
    }

ul.mcs-tree {
    display: block;
    font: 12px Arial, Helvetica, sans-serif;
    color: #000;
    margin-bottom: 250px;
}

    ul.mcs-tree li {
        display: inline-block;
        text-align: center;
        margin: 20px;
        vertical-align: top;
    }

        ul.mcs-tree li.tnone {
            display: none;
        }

    ul.mcs-tree ul.tshow {
        display: block !important;
    }

    ul.mcs-tree li > div {
        display: inline-block;
        padding: 7px 10px;
        text-decoration: none;
        position: relative;
        min-height: 70px;
        min-width: 120px;
        z-index: 2;
        background: #27a9e3;
        color: #fff;
        font-weight: bold;
    }

        ul.mcs-tree li > div span {
            display: inline-block;
            margin: 0 2px;
        }

        ul.mcs-tree li > div.zindex {
            z-index: inherit;
        }

    ul.mcs-tree li form {
        display: block;
        text-align: left;
        padding: 10px;
        margin-top: 15px;
        position: absolute;
        z-index: 4;
        background: #da9628;
        color: #fff;
    }

        ul.mcs-tree li form input[type=checkbox] {
        }

        ul.mcs-tree li form img.close {
            float: right;
            cursor: pointer;
            background-color: #e02222;
            padding: 2px;
            border-radius: 10px;
            -moz-border-radius: 10px;
            -webkit-border-radius: 10px;
        }

    ul.mcs-tree li input[type=text] {
        width: 150px;
        background: #ffc;
        padding: 4px;
        font: 12px Arial, Helvetica, sans-serif;
        color: #000;
        border: none;
        margin: 5px 0;
        display: block;
    }

    ul.mcs-tree li input[type=password] {
        width: 150px;
        background: #ffc;
        padding: 4px;
        font: 12px Arial, Helvetica, sans-serif;
        color: #000;
        border: none;
        margin: 5px 0;
        display: block;
    }

    ul.mcs-tree li select {
        width: 150px;
        background: #ffc;
        padding: 4px;
        font: 12px Arial, Helvetica, sans-serif;
        color: #000;
        border: none;
        margin: 5px 0;
        display: block;
    }

    ul.mcs-tree li textarea {
        height: 35px;
        width: 150px;
        background: #ffc;
        padding: 4px;
        font: 12px Arial, Helvetica, sans-serif;
        color: #000;
        border: none;
        margin: 5px 0;
        display: block;
    }

        ul.mcs-tree li textarea.error {
            background: #d84a38;
        }

        ul.mcs-tree li textarea:focus {
            background: #ffc;
        }

    ul.mcs-tree li .submit, ul.mcs-tree li .edit {
        border: none;
        text-align: center;
        display: block;
        font: 11px Arial, Helvetica, sans-serif;
        font-weight: bold;
        color: #fff;
        padding: 5px 15px;
        cursor: pointer;
        margin-top: 3px;
        background: #4d90fe;
    }

        ul.mcs-tree li .submit:hover, ul.mcs-tree li .edit:hover {
            background: #8a9ef5;
        }

    ul.mcs-tree li div.current {
        background: #28b779;
    }

    ul.mcs-tree li div.children {
        background: #ffb848;
    }

    ul.mcs-tree li div.parent {
        background: #852b99;
    }

    ul.mcs-tree li span.vertical, ul.mcs-tree li span.horizontal {
        display: inline-block;
        position: absolute;
        z-index: 1;
        background: #bbb;
    }

    ul.mcs-tree li span.vertical {
        width: 1px;
    }

    ul.mcs-tree li span.horizontal {
        height: 1px;
    }

    ul.mcs-tree li b.thide {
        position: absolute;
        width: 11px;
        height: 12px;
        bottom: 0;
        left: -17px;
        background: url(images/hide.png) no-repeat;
        cursor: pointer;
    }

        ul.mcs-tree li b.thide.tshow {
            background: url(images/show.png) no-repeat;
        }

        ul.mcs-tree li b.thide.tnone {
            display: none;
        }

    ul.mcs-tree li span.add_action, ul.mcs-tree li span.edit_action, ul.mcs-tree li span.highlight, ul.mcs-tree li span.delete_action {
        position: absolute;
        width: 10px;
        height: 10px;
        cursor: pointer;
        display: none;
        padding: 2px;
        background-color: #e02222;
        background-position: center;
        background-repeat: no-repeat;
        border-radius: 10px;
        -moz-border-radius: 10px;
        -webkit-border-radius: 10px;
    }

    ul.mcs-tree li span.add_action {
        top: -5px;
        left: -5px;
        background-image: url(images/add.png);
    }

    ul.mcs-tree li span.edit_action {
        bottom: -5px;
        left: -5px;
        background-image: url(images/edit.png);
    }

    ul.mcs-tree li span.highlight {
        bottom: -5px;
        right: -5px;
        background-image: url(images/highlight.png);
    }

    ul.mcs-tree li span.delete_action {
        top: -5px;
        right: -5px;
        background-image: url(images/close.png);
    }

img.back_btn {
    position: fixed;
    left: 15px;
    top: 15px;
    cursor: pointer;
    z-index: 3;
}

img.load {
    position: absolute;
}

div.drag_error, div.delete_msg, div.edit_msg, div.add_msg, div.drop_msg {
    position: absolute;
    color: #fff;
    position: absolute;
    right: 10px;
    top: 10px;
    padding: 4px 10px;
    font: 14px Arial, Helvetica, sans-serif;
    z-index: 999;
}

div.drag_error {
    background: #b41616;
}

div.delete_msg {
    background: #b41616;
}

div.edit_msg {
    background: #17A769;
}

div.add_msg {
    background: #27A9E3;
}

div.drop_msg {
    background: #852b99;
}

/*-----Other-----*/
.accordion-left {
    float: left;
    width: 49%;
    margin-left: 0.96%;
    margin-bottom: 20px;
}

.accordion-right {
    float: right;
    width: 49%;
    margin-right: 0.97%;
    margin-bottom: 20px;
}

.accordion-header {
    padding: 5px 10px;
    background-color: #17a769;
    background-image: url(images/plus.png);
    background-repeat: no-repeat;
    background-position: 95% center;
    font-family: 'Cabin', sans-serif;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    outline: none;
    border-bottom: solid 1px #eee;
}

    .accordion-header.active {
        background-image: url(images/minus.png);
    }

.accordion-content {
    padding: 5px 10px;
    background-color: #2295c9;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #fff;
    font-weight: 400;
    max-height: 300px;
    overflow: auto;
    display: none;
    border-bottom: solid 1px #eee;
}

    .accordion-content p {
        margin: 10px 0;
    }

        .accordion-content p a {
            color: #ffff00;
            text-decoration: none;
            font-weight: bold;
        }

            .accordion-content p a:hover {
                color: #d8d8d8;
            }

    .accordion-content ul {
        list-style: disc;
        margin-left: 25px;
        line-height: 18px;
    }

    .accordion-content textarea {
        width: 90%;
        height: 150px;
        font-size: 11px;
        font-family: Arial, Helvetica, sans-serif;
        padding: 5px;
        color: #000;
        outline: none;
        border: none;
        background: #fff;
    }

.other_ul {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: bold;
    list-style: none;
    margin-left: 0.96%;
    margin-bottom: 1px;
    display: block;
    overflow: auto;
}

    .other_ul li {
        display: inline-block;
        color: #fff;
        float: left;
        margin-right: 1px;
    }

        .other_ul li b {
            border: solid 1px #852b99;
            background: #fff;
            padding: 0 5px;
            display: block;
            float: left;
            height: 22px;
        }

        .other_ul li strong {
            background: #852b99;
            border: solid 1px #852b99;
            padding: 0 5px;
            display: block;
            float: left;
            height: 22px;
            line-height: 22px;
        }

    .other_ul span.add_action, .other_ul span.edit_action, .other_ul span.highlight, .other_ul span.delete_action {
        width: 10px;
        height: 10px;
        padding: 2px;
        background-color: #e02222;
        background-position: center;
        background-repeat: no-repeat;
        display: block;
        border-radius: 10px;
        -moz-border-radius: 10px;
        -webkit-border-radius: 10px;
        margin-top: 4px;
    }

    .other_ul span.add_action {
        background-image: url(images/add.png);
    }

    .other_ul span.edit_action {
        background-image: url(images/edit.png);
    }

    .other_ul span.highlight {
        background-image: url(images/highlight.png);
    }

    .other_ul span.delete_action {
        background-image: url(images/close.png);
    }

hr {
    background: #58b7e1;
    border: none;
    margin: 15px 0;
}
/* end MCS Tree strucuture*/

.float-start {
    float: left !important
}

.float-end {
    float: right !important
}

.float-none {
    float: none !important
}
/* Kendo Tree*/
.k-treeview .k-bot, .k-treeview .k-mid, .k-treeview .k-top {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-line-pack: center;
    align-content: center;
}
/*.k-treeview .k-i-collapse, .k-treeview .k-i-expand {
    margin-left: -16px;
    cursor: pointer;
}*/
/*.k-icon {*/
/* width: 1em; */
/*height: 1em;
    outline: 0;
    font-size: 16px;
    font-family: WebComponentsIcons;
    font-style: normal;
    font-variant: normal;
    font-weight: 400;
    line-height: 1;
    speak: none;
    text-transform: none;
    text-decoration: none;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -ms-flex-flow: row nowrap;
    flex-flow: row nowrap;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    vertical-align: middle;
    position: relative;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
}*/
.k-treeview .k-checkbox-wrapper {
    margin-right: 4px;
}

.k-treeview {
    padding: 0 0;
    border-width: 0;
    background: 0 0;
    box-sizing: border-box;
    outline: 0;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4285714286;
    display: block;
    cursor: default;
    overflow: auto;
    white-space: nowrap;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}
    /*.k-checkbox {
    border-radius: 2px;
    margin: 0;
    padding: 0;
    width: 16px;
    height: 16px;
    line-height: initial;
    border-width: 1px;
    border-style: solid;
    outline: 0;
    box-sizing: border-box;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    -webkit-appearance: none;
    border-color: rgba(0,0,0,.08);
    color: transparent;
    background-color: #fff;
}*/
    /*.k-checkbox-label {
    margin: 0;
    padding: 0;
    line-height: 17px;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -ms-flex-align: start;
    align-items: flex-start;
    vertical-align: middle;
    position: relative;
    cursor: pointer;
}
.k-checkbox + .k-checkbox-label, .k-checkbox-label + .k-checkbox {
    margin-left: 4px;
}
.k-checkbox-label:empty {
    display: none;
}*/
    .k-treeview .k-in {
        margin: 0;
        padding: 4px 8px;
        border: 0 solid transparent;
        text-decoration: none;
        display: -ms-inline-flexbox;
        display: inline-flex;
        -ms-flex-align: center;
        align-items: center;
        -ms-flex-line-pack: center;
        align-content: center;
        vertical-align: middle;
        position: relative;
    }
    /*.k-checkbox:checked {
    border-color: #ff6358;
    color: #fff;
    background-color: #ff6358;
}*/
    .k-treeview .k-item > .k-group, .k-treeview > .k-group {
        margin: 0;
        padding: 0;
        background: 0 0;
        list-style: none;
        position: relative;
    }

    .k-treeview .k-item {
        outline-style: none;
        margin: 0;
        padding: 0 0 0 16px;
        border-width: 0;
        display: block;
    }
/*End Kendo tree*/

#profile-info {
    width: 350px;
    position: absolute;
    right: -360px;
    z-index: 3;
    background-color: #fff;
    height: calc(100vh - 140px);
    overflow-y: auto;
    transition: all .3s;
    box-shadow: -5px 0px 9px -3px #556ee6;
}

    #profile-info.to-hide {
        right: -360px;
    }

.right-0 {
    right: 0 !important;
}

.right-350 {
    right: 350px !important;
}

#btn-prev-tab, #btn-next-tab {
    display: none;
}

.k-tabstrip > .k-content {
    padding: 0;
}

#mcsLeadTab div.k-content div.card {
    margin-bottom: 0;
}

#show-profile-info {
    position: absolute;
    right: 0;
    z-index: 4;
    border: 0;
    background-color: transparent;
    top: 120px;
    transition: all .3s;
}

#hide-profile-info {
    position: absolute;
    right: 0;
    border: 0;
    background-color: transparent;
    top: 3px;
}

    #hide-profile-info i {
        color: #fff;
        font-size: 18px;
    }

#mcsLeadTab-1 #CalendarSchedule .k-scheduler-toolbar .k-scheduler-navigation button.k-button.k-nav-today span.k-button-text,
#mcsLeadTab-5 #AttendanceSchedule .k-scheduler-toolbar .k-scheduler-navigation button.k-button.k-nav-today span.k-button-text {
    line-height: 19px;
}

.cursor-pointer {
    cursor: pointer;
}

body[data-sidebar="dark"].vertical-collpsed .vertical-menu #sidebar-menu ul li.mm-active .active {
    color: #fff !important;
}

    body[data-sidebar="dark"].vertical-collpsed .vertical-menu #sidebar-menu ul li.mm-active .active i {
        color: #fff !important;
    }

body[data-sidebar="dark"] .mm-active {
    color: #fff !important;
}

    body[data-sidebar="dark"] .mm-active > a {
        color: #fff !important;
    }

        body[data-sidebar="dark"] .mm-active > a i {
            color: #fff !important;
        }

    body[data-sidebar="dark"] .mm-active > i {
        color: #fff !important;
    }

    body[data-sidebar="dark"] .mm-active .active {
        color: #fff !important;
    }

        body[data-sidebar="dark"] .mm-active .active i {
            color: #fff !important;
        }

.mcs-step-bs-wizard-nav {
    list-style-type: none;
    padding: 0;
}

    .mcs-step-bs-wizard-nav li {
        display: inline-block;
        margin: 2px;
    }

        .mcs-step-bs-wizard-nav li a, .mcs-step-bs-wizard-nav li p {
            background: #34c38f;
            padding: 8px 20px;
            display: block;
            color: #fff;
            position: relative;
            text-indent: 12px;
        }

            .mcs-step-bs-wizard-nav li a:hover, .mcs-step-bs-wizard-nav li p:hover {
                text-decoration: none;
            }

            .mcs-step-bs-wizard-nav li a:before, .mcs-step-bs-wizard-nav li p:before {
                border-bottom: 18px solid transparent;
                border-left: 12px solid #fff;
                border-top: 18px solid transparent;
                content: "";
                height: 0;
                position: absolute;
                left: 0;
                top: 50%;
                width: 0;
                margin-top: -18px;
            }

            .mcs-step-bs-wizard-nav li a:after, .mcs-step-bs-wizard-nav li p:after {
                border-bottom: 18px solid transparent;
                border-left: 12px solid #34c38f;
                border-top: 18px solid transparent;
                content: "";
                height: 0;
                position: absolute;
                /*right: -12px;*/
                left: 100%;
                top: 50%;
                width: 0;
                margin-top: -18px;
                z-index: 1;
            }

        .mcs-step-bs-wizard-nav li.active a, .mcs-step-bs-wizard-nav li.active p {
            background: #0077bf;
            color: #fff;
        }

            .mcs-step-bs-wizard-nav li.active a:after, .mcs-step-bs-wizard-nav li.active p:after {
                border-left: 12px solid #0077bf;
            }

        .mcs-step-bs-wizard-nav li.undone a, .mcs-step-bs-wizard-nav li.undone p {
            background: #eee;
            color: #333;
        }

            .mcs-step-bs-wizard-nav li.undone a:after, .mcs-step-bs-wizard-nav li.undone p:after {
                border-left: 12px solid #eee;
            }

        .mcs-step-bs-wizard-nav li.undone p {
            color: #aaa;
        }


.widget-subheading {
    color: #858a8e;
    font-size: 10px
}

.card-header.card-header-tab .card-header-title {
    display: flex;
    align-items: center;
    white-space: nowrap
}

.card-header .header-icon {
    font-size: 1.65rem;
    margin-right: 0.625rem
}

.card-header.card-header-tab .card-header-title {
    display: flex;
    align-items: center;
    white-space: nowrap
}

.btn-actions-pane-right {
    margin-left: auto;
    white-space: nowrap
}

.text-capitalize {
    text-transform: capitalize !important
}

.scroll-area-sm {
    height: 288px;
    overflow-x: hidden
}

.list-group-item {
    position: relative;
    display: block;
    padding: 0.75rem 1.25rem;
    margin-bottom: -1px;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.125)
}

.list-group {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0
}

.todo-indicator {
    position: absolute;
    width: 4px;
    height: 60%;
    border-radius: 0.3rem;
    left: 0.625rem;
    top: 20%;
    opacity: .6;
    transition: opacity .2s
}

.bg-warning {
    background-color: #f7b924 !important
}

.widget-content {
    padding: 1rem;
    flex-direction: row;
    align-items: center
}

    .widget-content .widget-content-wrapper {
        display: flex;
        flex: 1;
        position: relative;
        align-items: center
    }

    .widget-content .widget-content-right.widget-content-actions {
        visibility: hidden;
        opacity: 0;
        transition: opacity .2s
    }

    .widget-content .widget-content-right {
        margin-left: auto
    }

.k-animation-container, .k-animation-container *, .k-animation-container :after, .k-block .k-header, .k-list-container, .k-widget, .k-widget *, .k-widget :before {
    box-sizing: border-box !important;
}

.mcs-profile-user {
    width: 100%;
}

.task-kanban .nav-link {
    padding: 4px 3px;
}

.task-kanban.twitter-bs-wizard .twitter-bs-wizard-nav .step-number {
    width: 31px;
    height: 31px;
    line-height: 30px;
}

.task-kanban.twitter-bs-wizard .twitter-bs-wizard-nav .nav-link .step-number {
    font-size: 10px;
}

.interactive-analysis-grid {
    display: flex;
}

.interactive-analysis-grid-column, .interactive-analysis-grid-card {
    display: flex;
    flex: 1;
    width: 100%;
}

.interactive-analysis-post {
    max-height: 410px;
    overflow-x: hidden;
    overflow-y: scroll;
}

.socialnetwork-activity-bg {
    background-color: #ebebeb;
}

.flex-container {
    display: flex;
}

.flex-box {
    height: 100%
}

.chat-conversation .simplebar-content-wrapper {
    height: 100% !important;
}
.twitter-bs-wizard .twitter-bs-wizard-nav li a {
    padding: 0.5rem 0rem;
    background-color: #c9c9c9;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    line-height: 35px;
}
.dropdown-icon-item i {
    font-size:22px;
}

/* MCS Timeline Scroll Container */
.mcs-timeline-scroll {
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Fix: Create positioning context for dropdowns / action buttons */
.mcs-timeline-scroll .timeline-item .card-body {
    position: relative;
}

/* BS4 kh?ng c? min-w-0 ? b?t bu?c thu h?p flex item ?? text d?i kh?ng ??y/che n?t */
.mcs-timeline-scroll .timeline-item .timeline-item-row {
    min-width: 0;
}

.mcs-timeline-scroll .timeline-item .timeline-item-main {
    min-width: 0;
    flex: 1 1 0%;
    overflow: hidden;
    padding-right: 0.5rem;
}

.mcs-timeline-scroll .timeline-item .timeline-item-status {
    flex-shrink: 0;
    white-space: nowrap;
}

.mcs-timeline-scroll .timeline-item .timeline-item-actions {
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
    white-space: nowrap;
}

.mcs-timeline-scroll .timeline-item .timeline-item-title,
.mcs-timeline-scroll .timeline-item .timeline-item-meta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.mcs-timeline-scroll .timeline-item .timeline-item-todo {
    font-weight: 600;
    white-space: normal;
    overflow: visible;
    word-break: break-word;
    max-width: 100%;
}

.mcs-timeline-scroll .timeline-item .timeline-item-title.timeline-item-title-multiline {
    white-space: normal;
    text-overflow: unset;
    overflow: visible;
}

.mcs-timeline-scroll .timeline-item .timeline-item-body {
    white-space: pre-line;
    line-height: 1.45;
    max-width: 100%;
}

/* Fix: Ensure dropdown menus display above all other elements in timeline */
.mcs-timeline-scroll .dropdown-menu {
    z-index: 99999 !important;
    position: absolute !important; /* Ensure absolute positioning relative to parent */
}

/* Cursor Pointer Utility */
.cursor-pointer {
    cursor: pointer;
}

/* Menu screen search ? compact */
.menu-search-wrapper {
    padding: 0.5rem 0.75rem 0.375rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-search-input {
    height: 30px;
    padding: 0.15rem 1.5rem 0.15rem 1.65rem;
    font-size: 0.8125rem;
    line-height: 1.3;
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    color: #a6b0cf;
}

.menu-search-input::placeholder {
    color: #79829c;
    font-size: 0.8125rem;
}

.menu-search-input:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.menu-search-icon {
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #79829c;
    pointer-events: none;
    font-size: 0.875rem;
    line-height: 1;
}

.menu-search-clear {
    position: absolute;
    right: 0.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #79829c;
    line-height: 1;
    padding: 0;
    min-height: auto;
    font-size: 0.875rem;
}

.menu-search-results {
    margin-top: 0.25rem;
    max-height: 240px;
    overflow-y: auto;
    border-radius: 0.2rem;
    background: #2a3042;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-search-results li a {
    display: block;
    padding: 0.3rem 0.5rem;
    color: #a6b0cf;
    text-decoration: none;
}

.menu-search-results li a:hover,
.menu-search-results li a:focus {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.menu-search-item-title {
    font-size: 0.8125rem;
    line-height: 1.25;
}

.menu-search-item-path {
    font-size: 0.6875rem;
    line-height: 1.2;
    margin-top: 0;
}

.menu-search-empty {
    margin-top: 0.25rem;
    padding: 0.2rem 0;
    font-size: 0.75rem;
    color: #79829c;
}

/* Header search */
.navbar-header .app-search {
    padding: 0.375rem 0;
    overflow: visible;
}

.app-search .menu-search-header {
    min-width: 260px;
}

.app-search .menu-search-header .form-control {
    height: 32px;
    padding: 0.2rem 0.75rem 0.2rem 2rem;
    font-size: 0.8125rem;
    line-height: 1.3;
}

.app-search .app-search-icon {
    position: absolute;
    z-index: 2;
    font-size: 0.875rem;
    line-height: 32px;
    left: 10px;
    top: 0;
    color: #74788d;
    pointer-events: none;
}

.app-search .menu-search-results-header {
    position: absolute;
    top: calc(100% + 3px);
    left: 0;
    right: 0;
    z-index: 1100;
    max-height: 280px;
    overflow-y: auto;
    margin-top: 0;
    padding: 0.125rem 0;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.2rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

.app-search .menu-search-results-header li a {
    display: block;
    padding: 0.3rem 0.625rem;
    color: #495057;
    text-decoration: none;
}

.app-search .menu-search-results-header li a:hover,
.app-search .menu-search-results-header li a:focus {
    background: #f8f9fa;
    color: #212529;
}

.app-search .menu-search-results-header .menu-search-item-title {
    display: block;
    position: static;
    font-size: 0.8125rem;
    line-height: 1.25;
    color: #343a40;
}

.app-search .menu-search-results-header .menu-search-item-path {
    display: block;
    position: static;
    font-size: 0.6875rem;
    line-height: 1.2;
    margin-top: 0;
}

#page-topbar {
    overflow: visible;
}

.menu-search-mobile-form {
    padding: 0.5rem 0.75rem;
}

.menu-search-results-mobile {
    max-height: 220px;
    overflow-y: auto;
    margin-top: 0.375rem;
    border: 1px solid #e9ecef;
    border-radius: 0.2rem;
    background: #fff;
}

.menu-search-results-mobile li a {
    display: block;
    padding: 0.3rem 0.5rem;
    color: #495057;
    text-decoration: none;
}

.menu-search-results-mobile li a:hover {
    background: #f8f9fa;
}

.menu-search-results-mobile .menu-search-item-title {
    display: block;
    font-size: 0.8125rem;
    line-height: 1.25;
}

.menu-search-results-mobile .menu-search-item-path {
    font-size: 0.6875rem;
    line-height: 1.2;
    margin-top: 0;
}

/* ===== Brand logos (login + sidebar) ===== */
.navbar-brand-box {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    overflow: hidden;
}

.navbar-brand-box .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: normal;
    padding: 4px 8px;
}

.navbar-brand-box .logo .logo-sm,
.navbar-brand-box .logo .logo-lg {
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 0;
}

/* Expanded: only horizontal logo */
.navbar-brand-box .logo .logo-sm {
    display: none !important;
}

.navbar-brand-box .logo .logo-lg {
    display: flex !important;
}

/* Collapsed: only square logo */
.vertical-collpsed .navbar-brand-box {
    padding: 0 !important;
}

.vertical-collpsed .navbar-brand-box .logo {
    padding: 6px;
}

.vertical-collpsed .navbar-brand-box .logo .logo-lg {
    display: none !important;
}

.vertical-collpsed .navbar-brand-box .logo .logo-sm {
    display: flex !important;
}

.app-logo-sm {
    width: 58px;
    height: 58px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    vertical-align: middle;
}

.app-logo-lg {
    width: 100%;
    height: 62px;
    max-width: 234px;
    object-fit: contain;
    vertical-align: middle;
}

.vertical-collpsed .navbar-brand-box .app-logo-sm {
    width: 58px;
    height: 58px;
}

@media (max-width: 992px) {
    .navbar-brand-box .logo .logo-lg {
        display: none !important;
    }

    .navbar-brand-box .logo .logo-sm {
        display: flex !important;
    }
}

.auth-login-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

/* Lead Detail - Conversation tab */
.lead-conversation-tab {
    font-size: 12px;
    line-height: 1.45;
    color: #212529;
}

.lead-conversation-tab .lead-conversation-layout {
    display: flex;
    flex-wrap: wrap;
    min-height: 520px;
}

.lead-conversation-tab .lead-conv-col-left {
    flex: 0 0 20%;
    width: 20%;
    max-width: 20%;
    max-height: 70vh;
}

.lead-conversation-tab .lead-conv-col-center {
    flex: 0 0 55%;
    width: 55%;
    max-width: 55%;
    min-width: 0;
    max-height: 70vh;
}

.lead-conversation-tab .lead-conv-col-right {
    flex: 0 0 25%;
    width: 25%;
    max-width: 25%;
    max-height: 70vh;
}

/* Khi ch?a ch?n h?i tho?i: c?t gi?a chi?m ph?n c?n l?i (80%) */
.lead-conversation-tab .lead-conv-col-center:only-of-type,
.lead-conversation-tab .lead-conv-col-left + .lead-conv-col-center:last-child {
    flex: 0 0 80%;
    width: 80%;
    max-width: 80%;
}

@media (max-width: 991.98px) {
    .lead-conversation-tab .lead-conv-col-left,
    .lead-conversation-tab .lead-conv-col-center,
    .lead-conversation-tab .lead-conv-col-right {
        flex: 0 0 100%;
        width: 100%;
        max-width: none;
        min-width: 0;
        max-height: none;
    }
}

.lead-conversation-tab .lead-conv-item:hover {
    background-color: #f8f9fa;
}

.lead-conversation-tab .lead-conv-item-title {
    font-size: 12px;
    font-weight: 600;
    color: #212529;
}

.lead-conversation-tab .lead-conv-item-preview,
.lead-conversation-tab .lead-conv-item-time,
.lead-conversation-tab .lead-conv-meta {
    font-size: 11px;
}

.lead-conversation-tab .lead-conv-panel-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #344054;
}

.lead-conversation-tab .lead-conv-bubble {
    max-width: 85%;
    border-radius: 12px;
    font-size: 12px;
}

.lead-conversation-tab .lead-conv-bubble-label {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 4px;
}

.lead-conversation-tab .lead-conv-bubble-time {
    font-size: 11px;
    color: #6c757d;
    margin-top: 4px;
}

.lead-conversation-tab .lead-conv-bubble-in {
    background: #fff;
    border: 1px solid #E9EAEB;
    text-align: left;
}

.lead-conversation-tab .lead-conv-bubble-bot {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
}

.lead-conversation-tab .lead-conv-bubble-staff {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
}

.lead-conversation-tab .lead-conv-bubble-note {
    background: #FFFBEB;
    border: 1px dashed #F59E0B;
    max-width: 92%;
    text-align: left;
}

.lead-conversation-tab .nav-pills .nav-link {
    font-size: 12px;
    color: #6b7280;
}

.lead-conversation-tab .nav-pills .nav-link.active {
    background-color: #0E9A62;
    color: #fff;
}

.lead-conversation-tab .form-control,
.lead-conversation-tab .form-control-sm {
    font-size: 12px;
}

.lead-conversation-tab .lead-conv-compose-input {
    min-height: 4.5rem;
    line-height: 1.5;
    resize: vertical;
}

.lead-conversation-tab .badge {
    font-size: 11px;
    font-weight: 600;
}

.lead-conversation-tab .lead-conv-history-banner {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    background: #FFFAEB;
    border: 1px solid #FEDF89;
    border-radius: 6px;
    font-size: 12px;
    color: #B54708;
}

.lead-conversation-tab .lead-conv-history-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 240px;
    overflow-y: auto;
}

.lead-conversation-tab .lead-conv-history-item {
    display: block;
    width: 100%;
    text-align: left;
    border: 1px solid #E9EAEB;
    border-radius: 6px;
    background: #fff;
    padding: 8px;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.lead-conversation-tab .lead-conv-history-item:hover {
    border-color: #B2DDFF;
    background: #F8FAFC;
}

.lead-conversation-tab .lead-conv-history-item.is-active {
    border-color: #175CD3;
    background: #EFF8FF;
    box-shadow: inset 3px 0 0 #175CD3;
}

.lead-conversation-tab .lead-conv-history-preview {
    font-size: 11px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lead-conversation-tab .lead-conv-summary-body {
    font-size: 12px;
    line-height: 1.45;
}

.lead-conversation-tab .lead-conv-compose-toolbar .btn {
    font-size: 12px;
}

.lead-conversation-tab .lead-conv-compose-toolbar .dropdown-menu,
.lead-conversation-tab .lead-conv-rewrite-menu {
    font-size: 12px;
    min-width: 190px;
}

.lead-conversation-tab .lead-conv-rewrite-menu .dropdown-item {
    padding: 0.4rem 0.75rem;
    display: flex;
    align-items: center;
}

.lead-conversation-tab .lead-conv-rewrite-menu .dropdown-item i {
    width: 16px;
    text-align: center;
}

.mcs-msg-template-form .lead-conv-rewrite-menu {
    font-size: 12px;
    min-width: 190px;
}

.mcs-msg-template-form .lead-conv-rewrite-menu .dropdown-item {
    padding: 0.4rem 0.75rem;
    display: flex;
    align-items: center;
}

.mcs-msg-template-form .lead-conv-rewrite-menu .dropdown-item i {
    width: 16px;
    text-align: center;
}

#messageTemplateRewriteCustomModal {
    z-index: 100020 !important;
}

/* Popup AI vi?t l?i ? kh?ng k? th?a k?ch th??c drawer offcanvas-right */
.lead-conv-rewrite-popup {
    z-index: 1065 !important;
}

.lead-conv-rewrite-popup .modal-dialog {
    position: relative;
    margin: 1.75rem auto;
    width: 100%;
    max-width: 360px;
    height: auto;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    transform: none !important;
}

.lead-conv-rewrite-popup .modal-content {
    height: auto;
    border-radius: 0.3rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.lead-conv-rewrite-popup.show .modal-dialog {
    transform: none !important;
}

.modal.offcanvas-right .lead-conv-rewrite-popup .modal-dialog {
    position: relative;
    margin: 1.75rem auto;
    width: 100%;
    max-width: 360px;
    height: auto;
    top: auto;
    right: auto;
    bottom: auto;
    transform: none !important;
}

.modal.offcanvas-right .lead-conv-rewrite-popup .modal-content {
    height: auto;
    border-radius: 0.3rem;
}

.insight-icon-picker {
    max-height: 160px;
    overflow-y: auto;
}
.insight-icon-btn {
    min-width: 40px;
}

/* Chat Inbox ? c?t ph?i (AI + CRM) */
.chat-inbox-right {
    width: 360px;
    min-width: 360px;
    max-width: 360px;
    border-color: #E9EAEB !important;
}

.chat-inbox-ai-panels.lead-conversation-tab {
    font-size: 12px;
    line-height: 1.45;
}

.chat-inbox-ai-panels .lead-conv-panel-title {
    font-size: 12px;
}

.chat-inbox-ai-panels .lead-conv-summary-body {
    font-size: 12px;
    line-height: 1.5;
}

/* Chuông + màn Notification: bỏ padding mặc định theme (.75rem 1rem) trên .d-flex */
.notification-item .d-flex {
    padding: 0;
}

.notification-item .d-flex:hover {
    background-color: transparent;
}

#page-header-notifications-dropdown .notification-item:hover,
#page-header-notifications-dropdown .notification-item:focus {
    background-color: #f6f6f6;
}

