
/*
* 
* ==========================================================
* RESPONSIVE-ADMIN.SCSS
* ==========================================================
*
* Back-end responsive CSS. This file is imported only.
*
*/

$transition: all 0.4s;
$white: #fff;
$color-blue: #028be5;
$color-dark-blue: rgb(0, 76, 125);
$color-black: rgb(36, 39, 42);
$color-gray: rgb(86, 96, 105);
$color-red: rgb(202, 52, 52);
$color-green: rgb(26, 146, 96);
$border-color: rgb(212, 212, 212);

/*

# GENERAL
==========================================================

*/

@keyframes sb-lightbox-animation {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes sb-typing {
    0% {
        width: 0;
    }

    100% {
        width: 30px;
    }
}

@keyframes sb-open {
    0% {
        transform: scale(0);
        transform-origin: top right;
    }

    100% {
        transform: scale(1);
        transform-origin: top right;
    }
}

@keyframes sb-fade-left-animation {
    0% {
        transform: translateX(50px);
        opacity: 0;
    }

    100% {
        transform: translatex(0);
        opacity: 1;
    }
}

.sb-menu-mobile > i.sb-active + ul, .sb-menu-mobile > i.sb-active + div + .sb-mobile {
    animation: sb-open .3s;
}

body, html {
    background: $white;
}

body {
    overscroll-behavior-y: contain;
}

.sb-tooltip, .sb-btn-emoji, .sb-menu-buttons {
    display: none !important;
}

.sb-table .sb-no-results {
    margin: 0 15px;
}

.sb-label-date-top {
    top: 50px;
    right: 0;
}

.sb-admin-box {
    border: none;

    .sb-bottom {
        display: block;

        div {
            margin: 10px 0 0 0 !important;
        }
    }

    &.sb-rich-login, &.sb-cloud-box {
        .sb-input {
            display: block;

            input {
                margin-top: 10px !important;
            }
        }
    }

    .sb-top-bar img {
        max-width: 100%;
    }
}

.sb-info-card {
    padding: 10px;
}

.sb-admin {
    width: 100%;
    padding: 0;
    background: $white;
    -webkit-tap-highlight-color: rgba(150, 194, 227, 0.44);
    user-select: auto;

    > main {
        padding-top: 60px;

        .sb-top-bar > div h2 {
            display: none;
        }
    }

    .sb-btn {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        user-select: none;
    }

    .sb-profile-edit-box .sb-btn, .sb-profile-box .sb-btn {
        user-select: auto;
        -webkit-tap-highlight-color: rgba(150, 194, 227, 0.44);
    }

    .sb-top-bar .sb-btn.sb-icon {
        text-indent: -99999px;
        font-size: 23px;
        padding: 0;
        width: 45px;
        height: 45px;
        overflow: hidden;
        background: none;
        border-radius: 4px;
        margin-right: 4px;
        user-select: auto;
        -webkit-tap-highlight-color: rgba(150, 194, 227, 0.44);

        &:before {
            color: $color-blue !important;
        }

        i {
            text-indent: 0;
            left: 11px;
            line-height: 53px;
            color: $color-blue;
        }
    }

    .sb-updates-box .sb-input > div {
        width: auto;
    }

    .sb-area-settings, .sb-area-reports {

        > .sb-tab {
            display: block;
            height: 100%;
            max-height: 100%;

            > .sb-nav {
                padding: 0;
                position: absolute;
                top: 68px;
                left: 15px;
                overflow: visible;

                > ul {
                    padding-left: 0;
                }

                &:not(.sb-active) {
                    height: 0;
                }
            }

            > .sb-content > div {
                padding: 15px;
            }
        }

        .sb-top-bar > div:first-child {
            width: 100%;
            overflow-x: visible;
        }

        > .sb-scroll-area {
            padding: 20px 15px;
        }
    }
}

.sb-area-settings .sb-search-dropdown {
    display: none;
}

.sb-board > .sb-admin-list, .sb-area-users, .sb-area-settings {
    .sb-scroll-area {
        height: calc(100% - 110px);
        width: auto;
        margin: 0 !important;
        padding: 0 !important;

        > ul > p {
            margin: 15px;
        }
    }
}

.sb-board .sb-conversation .sb-list iframe:not([height]) {
    height: 180px;
}

.sb-mobile [data-value="switch"] + div {
    max-height: 78px;
    background: #edeef0;

    a {
        display: block;
        padding: 6px 0;
    }
}

.sb-lightbox .sb-top-bar .sb-btn, .sb-lightbox .sb-top-bar a.sb-btn {
    height: 35px;
    line-height: 35px;
}

.sb-lightbox .sb-top-bar, .sb-admin > main > div > .sb-top-bar {
    padding: 0;
    margin-bottom: 0;
    height: 50px;
    overflow: hidden;

    > div {
        font-size: 17px;

        &:first-child {
            margin: 0 15px !important;
        }
    }

    .sb-btn-icon, .sb-search-btn {
        width: 45px;
        height: 45px;
        overflow: hidden;
        border: none !important;
        background-color: transparent !important;

        i:before {
            font-size: 19px;
            line-height: 45px;
        }

        .sb-loading:before {
            line-height: 29px !important;
        }
    }

    .sb-search-btn {
        > input {
            line-height: 45px;
        }

        > i:before {
            font-size: 21px;
        }
    }

    .sb-close {
        margin-right: 2px;
    }

    .sb-profile {
        padding: 0 0 0 45px;

        img {
            width: 30px;
            height: 30px;
        }

        span {
            margin-left: 0;
            text-overflow: ellipsis;
            overflow: hidden;
        }
    }

    a + a {
        margin-left: 0;
    }
}


.sb-admin {
    > main > div > .sb-top-bar {
        border-bottom: 1px solid $border-color;
    }

    .sb-top-bar {
        .sb-search-btn {
            margin: 0 !important;
        }

        .sb-menu-mobile {
            height: 45px;
            right: 5px !important;

            > i {
                line-height: 52px;
                height: 45px;
                width: 45px;
            }
        }
    }
}

main > div .sb-top-bar .sb-menu-mobile > ul {
    top: 73px;
}

.sb-direct-message-box .sb-bottom {
    display: flex !important;

    .sb-btn-text {
        margin-left: 15px !important;
    }
}

.sb-automations-area {
    > .sb-select > p {
        padding-left: 0;
    }

    .sb-nav-only {
        margin-right: 0;
    }
}

.sb-area-settings > .sb-tab > .sb-content .sb-inner-tab > .sb-content {
    margin-top: 30px;
}

.sb-conditions > div {
    display: block;
    margin-bottom: 15px;
    border-bottom: 1px solid $border-color;

    &:last-child {
        margin-bottom: 0;
        border-bottom: none;
    }
}

.sb-tab > .sb-nav {
    min-width: 0;
    padding: 5px 15px 15px 15px;
    border: none;

    > ul {
        max-width: none;
    }
}

/*

# FONT SIZE
==========================================================

*/

div ul.sb-menu li, .sb-select ul li {
    font-size: 17px;
    line-height: 27px;
    padding: 6px 25px 6px 15px;
}

.sb-select p, .sb-board > .sb-admin-list .sb-scroll-area li p, .sb-board > .sb-admin-list .sb-scroll-area > ul > p {
    font-size: 17px !important;
}

.sb-tab h2 {
    font-size: 17px;
}

.sb-select p {
    padding: 0 20px 0 15px;
}

.sb-title {
    font-size: 20px;
    line-height: 30px;
}

.sb-board > .sb-admin-list .sb-scroll-area li[data-conversation-status="2"] .sb-name,
.sb-board > .sb-admin-list .sb-scroll-area li .sb-profile .sb-name, .sb-dialog-box p {
    font-size: 18px;
}

.sb-user-conversations > li > div, .sb-profile-list > ul > li .sb-icon, .sb-table td .sb-profile span,
.sb-input > input, .sb-input > select, .sb-input > textarea, .sb-setting h2, .sb-setting h2, .sb-setting label,
.sb-setting label, .sb-popup.sb-replies .sb-replies-list ul li div {
    font-size: 17px;
}

.sb-lightbox .sb-info, .sb-btn-text, .sb-updates-box .sb-input > div, .sb-requirements-box .sb-input > div, .daterangepicker .ranges li,
.daterangepicker th.month, .daterangepicker .calendar-table th, .daterangepicker .calendar-table th {
    font-size: 17px;
    line-height: 26px;
}

.daterangepicker .calendar-table td {
    font-size: 17px;
    line-height: 35px;
}

.sb-user-conversations > li > div .sb-message {
    font-size: 16px;
}

.sb-profile-list > ul > li > span, .sb-profile-list .sb-panel-details .sb-title {
    font-size: 14px;
}

.sb-list .sb-time, .sb-user-conversations li .sb-time {
    font-size: 13px;
}

.sb-list .sb-message, .sb-list .sb-message a, .sb-editor textarea, .sb-setting p, .sb-setting p, .sb-rich-message .sb-text {
    font-size: 16px;
    line-height: 25px;
}

.sb-list .sb-btn.sb-rich-btn, .sb-list a.sb-btn.sb-rich-btn {
    font-size: 16px;
    padding: 0 30px;
    height: 40px;
    line-height: 40px;
}

.sb-dialog-box p {
    font-size: 19px;
    line-height: 35px;
}

.sb-btn-icon {
    width: 40px;
    height: 40px;
    line-height: 40px;
}

.sb-btn, a.sb-btn {
    font-size: 16px;
    padding: 0 30px;
    height: 40px;
    line-height: 40px;

    &.sb-icon {
        padding-left: 50px;

        i {
            line-height: 40px;
        }

        &.sb-btn-white {
            padding-left: 55px;

            i {
                left: 30px;
                font-size: 16px;

                &:before {
                    line-height: 40px;
                }
            }
        }
    }
}

.sb-profile-list > ul > li, .sb-panel-details .sb-list-items > div, .sb-panel-details .sb-list-items > a {
    font-size: 16px;
    line-height: 35px;
}

.sb-tab-nav-title {
    font-size: 17px !important;
}

/*

# TOP HEADER
==========================================================

*/

.sb-admin {
    width: 100%;
    padding: 0 !important;
    background: $white;

    > .sb-header {
        width: 100%;
        height: 60px;
        right: 0;
        bottom: auto;
        display: flex;
        z-index: 96;
        box-shadow: 0 2px 3px rgba(0,0,0,0.1);

        > .sb-admin-nav {
            display: flex;

            > img {
                height: 30px;
                margin: 15px 15px;
            }

            > div {
                display: flex;

                > a {
                    width: 42px;
                    border-radius: 4px;
                    overflow: hidden;

                    &:before {
                        left: 10px;
                    }

                    span {
                        display: none;
                    }
                }
            }
        }

        > .sb-admin-nav-right {
            > .sb-icon-menu {
                height: 60px;
                line-height: 70px;
            }
        }

        &.sb-hide + main {
            padding-top: 0;
        }

        .sb-mobile {

            a {
                text-align: left;
            }

            [data-value="status"] {
                padding-left: 30px;

                &:before {
                    right: auto;
                    left: 15px;
                }

                &:after {
                    right: auto;
                    left: 12px;
                }
            }
        }
    }

    &.sb-header-hidden {
        .sb-header {
            top: -75px;
        }

        > main {
            padding-top: 0;
        }

        .sb-board > .sb-admin-list, .sb-area-users, .sb-area-settings, .sb-area-reports {
            height: 100%;

            .sb-scroll-area {
                height: calc(100% - 50px);
            }
        }

        .sb-mobile {
            display: none !important;
        }
    }
}

/*

# COMPONENTS
==========================================================

*/

.sb-admin {

    .sb-select-checkbox {
        top: 80px;
    }

    .sb-menu-wide > div:after, .sb-table-users th:first-child:after, .sb-nav > div:after {
        content: "\61";
        font-family: "Support Board Icons";
        position: absolute;
        top: 0;
        right: 0;
        font-size: 9px;
        font-style: normal;
        font-weight: normal;
        line-height: 35px;
    }

    .sb-menu-wide > ul, .sb-nav > ul, .sb-top .sb-select ul, .sb-area-users .sb-top-bar .sb-filter-btn ul {
        background: $white;
        left: 0;
        right: 0;
        margin: 0;
        top: 110px;
        position: fixed;
        overflow: hidden;
        overflow-y: scroll;
        max-height: calc(100% - 130px);
        z-index: 99995;
        box-shadow: 0 5px 5px #0000001f;
        border-top: 1px solid $border-color;
        border-bottom: 1px solid $border-color;
        border-radius: 0;
    }

    .sb-nav > .sb-btn:after {
        display: none;
    }

    .sb-menu-wide, .sb-nav {
        > div:not(.sb-btn) {
            display: block;
            position: relative;
            font-weight: 600;
            font-size: 17px;
            line-height: 35px;
            padding-right: 20px;
            cursor: pointer;
            transition: $transition;

            span {
                font-weight: 400;
                opacity: 0.7;
            }
        }

        &.sb-active > ul {
            display: block;
        }

        > ul {
            padding: 10px 0;
            display: none;

            li {
                padding: 10px 25px 10px 15px;
                margin: 0;
                font-size: 17px;
                line-height: 25px;
                border: none;

                span {
                    display: none;
                }
            }
        }
    }

    .sb-menu-mobile {
        position: absolute;
        bottom: auto !important;
        left: auto !important;
        right: 0 !important;
        padding: 0 !important;
        height: 55px;
        display: flex;
        justify-content: flex-end;
        z-index: 95;

        > i {
            display: block;
            line-height: 60px;
            height: 55px;
            width: 55px;
            cursor: pointer;
            text-align: center;
            font-size: 17px;
            margin: 0;
            padding: 0;
            overflow: hidden;
            color: $color-gray;

            &.sb-active {
                color: $color-blue;

                & + div + .sb-mobile, & + ul {
                    display: block;
                }
            }
        }

        > div, > ul {
            display: none;
            position: fixed;
            padding: 7px 0;
            top: 10px;
            right: 10px;

            a {
                white-space: nowrap;
                font-weight: 500;
                font-size: 17px !important;
                line-height: 25px !important;
                padding: 7px 15px;
                margin: 0 !important;
            }
        }

        .sb-desktop {
            display: none;
        }
    }

    .sb-inner-tab {
        display: block;

        > .sb-nav {
            > ul {
                display: block;

                i {
                    top: 8px;
                    right: 5px;
                }
            }

            > ul, > .sb-menu-wide > ul {
                position: static;
                box-shadow: none;
                width: auto;
                max-width: none;
                border: none;
                padding: 0;

                li {
                    padding: 10px 0 10px 0;
                }
            }

            > .sb-menu-wide > div:after {
                display: none;
            }
        }
    }

    &.sb-header-hidden {
        main > div > .sb-tab > .sb-nav {
            top: 8px;
        }

        .sb-menu-wide > ul, main > div > .sb-tab > .sb-nav > ul, .sb-top .sb-select ul {
            top: 50px;
            max-height: calc(100% - 71px);
        }
    }

    .sb-filter-star {
        width: 48px;
        height: 40px;
        line-height: 50px;
        text-align: center;
        font-size: 22px;
    }

    .sb-search-btn, .sb-filter-btn {

        > i {
            font-size: 21px;
            width: 45px;
            height: 100%;
            line-height: 48px;
            text-align: center;
            top: 0 !important;
            border-radius: 4px;
            overflow: hidden;
        }

        &.sb-active {
            position: absolute;
            width: 100% !important;
            left: 0;
            right: 0;
            z-index: 96;
            background: $white;

            i {
                right: 5px;
            }
        }
    }

    .sb-search-btn {

        > input {
            left: 0;
            right: 0;
            width: calc(100% - 73px);
            min-width: 0 !important;
            border: none;
            box-shadow: none;
        }
    }

    .sb-filter-btn {
        > div {
            padding: 3px 15px 0 15px;
            height: auto;
        }
    }

    .sb-input {
        display: block;

        > span {
            margin-bottom: 10px;
            font-size: 17px;
        }

        + .sb-input {
            margin-top: 15px;
        }

        &.sb-input-btn {
            display: flex;

            > span {
                margin-bottom: 0;
            }
        }
    }

    .sb-admin-box {
        margin: 0;
        padding: 0;
        border: none;
    }

    #departments .repeater-item > div:not(:first-child) {
        padding-top: 35px;
    }
}

/*

# LIGHTBOX AND POPUP
==========================================================

*/

.sb-lightbox:not(.sb-loading):not(.sb-loading-global) {
    width: auto;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: 0 !important;
    min-height: 100%;
    border: none;
    border-radius: 0;
}

.sb-lightbox {

    .sb-scroll-area, .sb-main {
        height: calc(100% - 54px);
        padding: 30px 15px;
        box-sizing: border-box;
    }

    .sb-info {
        height: auto;
        line-height: 25px;
        border-radius: 0;
    }

    .sb-btn.sb-icon.sb-btn-white, a.sb-btn.sb-icon.sb-btn-white {
        padding-left: 35px;

        i {
            left: 10px;
            font-size: 13px;
            line-height: 13px;

            &:before {
                line-height: 35px;
            }
        }
    }



    &.sb-dialog-box {
        bottom: 0;
        padding: 30px 15px;
        width: auto;
        height: auto;
        min-height: 0;
        flex-wrap: wrap;
        align-content: center;
        align-items: center;
        justify-content: center;

        &.sb-active {
            display: flex;
        }
    }

    .sb-main > .sb-bottom {
        display: block;

        .sb-btn, .sb-btn-text {
            margin: 0 0 15px 0;
            display: block;
            text-align: left;
        }
    }

    &.sb-lightbox.sb-lightbox-admin {
        transform: none;
        left: 15px;
        right: 15px;
        width: auto;
        top: 15px;
        bottom: 15px;
        min-height: 0;

        > div {
            max-height: 100%;
        }

        > i {
            right: 30px;
            top: 30px;
        }
    }
}

.sb-popup {

    .sb-header .sb-search-btn {
        width: auto;

        &:not(.sb-active) > i {
            right: -10px;
            top: -5px !important;
        }
    }

    &.sb-replies, &.sb-woocommerce-products {
        left: 0 !important;
        right: 0;
        bottom: 90px;
        margin: 0px;
        box-shadow: none;
        border: 1px solid rgba(0,0,0,0.2);
        border-right: none;
        border-left: none;
        border-radius: 0;
        width: auto;
        transform: none;
        height: calc(100% - 110px);

        .sb-replies-list ul li {
            height: 35px;
        }

        &:after {
            left: 56px;
            transform: none;
        }
    }

    &.sb-woocommerce-products:after {
        left: 95px;
    }
}

/*

# CONVERSATIONS AREA
==========================================================

*/

.sb-board {
    display: block;

    > .sb-admin-list:not(.sb-active), .sb-conversation:not(.sb-active), .sb-user-details:not(.sb-active) {
        display: none;
    }

    .sb-conversation .sb-editor {
        border: none;
        border-top: 1px solid rgba(0,0,0,0.2);
        margin: 0;
        border-radius: 0;
    }

    > .sb-admin-list {
        min-width: 100%;
        height: 100%;

        .sb-top {
            padding: 0;
            height: 51px;
            min-height: 50px;

            .sb-search-btn:not(.sb-active) {
                margin-right: 5px;
            }
        }

        .sb-scroll-area {

            li {
                padding: 13px 15px 14px 15px;
                margin: 0;
                border-radius: 0;

                > span {
                    right: 10px;
                }

                &:before {
                    left: 7px;
                }

                &:after {
                    left: 15px;
                    right: 15px;
                }
            }
        }
    }

    .sb-conversation {
        height: 100%;

        .sb-top {
            min-height: 46px;
            padding: 0;

            > a {
                line-height: 45px;
                font-size: 19px;
                padding: 10px;
                max-width: calc(100% - 120px);
                overflow: hidden;
                text-overflow: ellipsis;
            }

            .sb-menu-mobile {
                > i {
                    height: 50px;
                }

                a {
                    text-align: center;
                }

                [data-value="panel"] {
                    display: block;
                }
            }

            .sb-labels {
                padding-left: 0;

                .sb-status-online {
                    overflow: hidden;
                    text-indent: -99995px;
                    width: 10px;
                    height: 10px;
                    border-radius: 50%;
                    padding: 0;
                    background-color: rgb(0, 147, 65);
                }

                .sb-status-typing {
                    overflow: hidden;
                    text-indent: -99995px;
                    padding: 0;
                    width: 30px;
                    height: 10px;
                    background: none;

                    &:after {
                        left: 0;
                        font-size: 30px;
                        line-height: 24px;
                        width: 30px;
                        bottom: 0;
                    }
                }
            }

            .sb-btn-back {
                display: block !important;
                height: 40px;
                width: 40px;
                line-height: 45px;
                text-align: center;
                cursor: pointer;
                position: relative;
                overflow: hidden;

                &:hover {
                    color: $color-blue;
                }
            }
        }

        .sb-list > div {
            margin: 2px 10px 25px 15px;
            max-width: calc(100% - 55px);
            box-sizing: border-box;

            .sb-thumb {
                display: none !important;
            }

            .sb-menu {
                left: 10px !important;
                right: 10px !important;
                width: auto;
                position: fixed;
                top: 65px;
            }

            .sb-menu-btn {
                height: 30px;
                width: 30px;
                border-radius: 50%;
                text-align: center !important;
                line-height: 35px;
                top: 4px;
                overflow: hidden;
            }

            &.sb-right .sb-menu-btn {
                left: -30px !important;
            }

            &:not(.sb-right) .sb-menu-btn {
                right: -30px !important;
            }

            &:last-child {
                margin-bottom: 40px !important;
            }
        }
    }

    .sb-user-details {
        position: fixed;
        background: $white;
        right: 0;
        left: 0;
        bottom: 0;
        top: 0;
        height: calc(100% + 85px);
        border: none;
        min-width: 0;
        width: auto;
        z-index: 96;
        display: none;

        .sb-top {
            display: none;
        }

        .sb-profile {
            margin: 20px 15px 0 8px;
        }

        .sb-user-conversations {
            padding-bottom: 15px;
        }

        &.sb-active {
            display: block;
            animation: sb-fade-left-animation .5s;

            .sb-user-details-close {
                display: block;
                position: fixed;
                top: 9px;
                right: 15px;
            }
        }
    }
}

#note-ai-scraping {
    max-width: 100px;
}

.sb-area-conversations .sb-search-btn > input {
    top: 2px;
}

.sb-dialogflow-intent-box .sb-intent-add i {
    top: -5px;
}

.sb-no-conversation-message {
    display: none !important;
}

.sb-title-search .sb-search-btn > input {
    left: 0;
    right: 0;
}

#sb-intent-preview, #sb-qea-preview {
    font-size: 20px;
    line-height: 0;
    top: -1px;
    right: 0;
}

#intent-preview-box.sb-active, #qea-preview-box.sb-active {
    max-width: 100%;
    width: auto;
    min-height: 0;
    height: auto !important;
    display: block !important;
}

.sb-dialogflow-intent-box .sb-title.sb-title-search .sb-search-btn.sb-active {
    margin-left: -15px;
}

.sb-filter-btn {
    .sb-select {
        max-width: 40%;

        p {
            padding-left: 0;
        }
    }
}

.sb-area-conversations > .sb-btn-collapse {
    display: none;
}

.sb-tags-cnt > span:not(.sb-active) {
    background: none;
    color: #24272a;
    border-color: #566069;
}

.sb-editor {
    .sb-submit {
        font-size: 21px;
    }

    .sb-bar-icons {
        > div {
            width: 35px;

            &:before {
                font-size: 23px;
            }

            &.sb-btn-saved-replies:before, &.sb-btn-audio-clip:before {
                font-size: 26px;
            }
        }
    }
}

/*

# USERS AREA
==========================================================

*/

.sb-area-users {

    .sb-top-bar {
        border-bottom: 1px solid $border-color;

        > div:first-child {
            padding-right: 0 !important;
        }

        > div:last-child {
            padding-right: 45px;
        }

        .sb-filter-btn {
            margin-left: 15px;

            > div {
                left: 0;
                top: 51px;
                right: 0;
                position: fixed;
                border-radius: 0;
                box-shadow: none;
                padding: 10px 15px;
                border-bottom: 1px solid $border-color;
            }

            ul {
                top: 106px !important;
            }

            &.sb-active > i {
                right: 20px;
            }
        }
    }

    .sb-menu-users {
        > div {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
    }

    .sb-table-users {
        th:first-child input, th:not(:first-child), th:not(:first-child):after {
            display: none;
        }

        td:first-child {
            border: none;
            padding-right: 0;
        }

        th:first-child {
            max-width: 100%;
            position: relative;
            display: block;
            border: none;

            &:after {
                line-height: 49px;
            }
        }

        tr.sb-active th {
            display: block;
        }

        th {
            padding: 15px 0;
            font-size: 17px;
        }

        tbody tr {
            float: left;
            clear: both;
            border-bottom: 1px solid $border-color;

            &:hover {
                background-color: rgb(245, 247, 250);
            }
        }

        td:not(.sb-td-profile):not(:first-child) {
            display: none;
        }

        td.sb-td-profile {
            border: none;
            width: 100%;
            padding: 10px 15px;
        }

        thead {
            padding: 0 15px;

            th {
                color: $color-black;

                &.sb-active {
                    color: $color-blue;
                    border-color: $border-color;

                    &:after {
                        right: 0;
                    }
                }

                &:last-child {
                    border: none;
                }
            }
        }
    }

    .sb-table-users, .sb-table-users tbody, .sb-table-users thead, .sb-table-users tr, .sb-table-users th {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    tr:hover td {
        background: none;
    }
}

.sb-profile-edit-box, .sb-profile-box {

    .sb-main {
        display: block;

        > div {
            width: auto;
            height: auto;
            margin: 0 !important;

            & + div {
                margin-top: 30px !important;
            }
        }
    }
}

.sb-profile-box .sb-top-bar {
    [data-value] i:before {
        font-size: 23px;
    }

    > div > [data-value] + .sb-btn {
        margin-left: 0;
    }
}

.sb-profile-edit-box .sb-delete {
    margin: 35px 0 50px 0;
}

.sb-profile-list {

    > ul > li > img {
        width: 17px;
        height: 17px;
    }

    > ul > li .sb-icon:before, > ul > li > img:before {
        line-height: 23px;
    }

    > ul > li > img {
        top: 10px;
    }

    [data-id="country_code"] img {
        height: 12px;
    }
}

.sb-admin-nav-right [data-value="status"]:before, td.sb-online:before, td.sb-offline:before {
    right: 15px;
}

.sb-admin-nav-right [data-value="status"]:after, td.sb-online:after, td.sb-offline:after {
    right: 12px;
}

/*

# SETTINGS AREA
==========================================================

*/

.sb-setting input, .sb-setting select, .sb-setting textarea, .sb-setting input, .sb-setting select, .sb-setting textarea {
    min-width: 0;
    font-size: 17px;
    line-height: 26px;
    height: 40px
}

.sb-language-switcher-cnt {
    display: flex !important;

    > label {
        margin-bottom: 0 !important;
        min-width: 0;
    }

    :hover img {
        opacity: .5;
    }
}

.sb-languages-box .sb-main {
    grid-template-columns: 1fr 1fr;
    max-height: none;
    height: calc(100% - 50px);
}

.sb-setting, .sb-setting {
    display: block;

    p {
        margin: 5px 0 10px 0;
    }

    > .sb-setting-content {
        width: auto;
        min-width: 0;
        padding: 0;
    }

    .multi-input-checkbox {
        display: flex !important;

        label {
            display: block;
            margin-bottom: 0 !important;
            width: 100%;
        }
    }

    .repeater-item > div + div {
        margin-top: 15px;
    }

    &.sb-type-upload-image .image, [data-type="upload-image"] .image, &.sb-type-upload-image .image, [data-type="upload-image"] .image {
        min-width: 100%;
    }
}

.sb-admin {
    .sb-timetable {
        overflow-x: scroll;
    }

    .sb-apps {
        grid-template-columns: 1fr;
    }
}

.sb-timetable > div > div > div {
    margin: 5px 0;
    width: calc(100% - 80px);
}

.sb-translations {
    display: block;

    > .sb-nav {
        margin-bottom: 15px;

        > ul {
            padding: 10px 15px;
        }

        > div img {
            margin-right: 15px;
            border-radius: 2px;
            box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3);
            width: 25px;
            height: 15px;
            transform: translateY(1px);
        }

        li img {
            top: 16px;
        }
    }
}

/*

# REPORTS AREA
==========================================================

*/

.sb-area-reports {

    > .sb-tab {
        .sb-nav > ul li:not(.sb-tab-nav-title) {
            font-size: 17px;
            line-height: 25px;
        }

        > .sb-content {
            padding: 0;
            max-height: calc(100% - 110px);
            padding-bottom: 30px;

            > div {
                margin: 0;
            }
        }
    }

    #sb-date-picker {
        min-width: 176px;
        font-size: 14px;
        margin-right: 5px;
        border: none;
        background: $white;
        z-index: 2;
        position: relative;
    }

    .sb-no-results {
        padding: 15px;
    }
}

.sb-admin.sb-header-hidden .sb-area-reports .sb-scroll-area {
    max-height: calc(100% - 50px);
}

.daterangepicker {
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    border-radius: 0;
    border: none;
    margin: 0;
}

.daterangepicker .drp-calendar {
    border: none !important;
}

.daterangepicker .drp-calendar {
    max-width: none;
}

/*

# CHATBOT AREA
==========================================================

*/

.sb-area-chatbot {
    > .sb-tab {
        overflow: scroll;
        height: calc(100% - 110px) !important;
        padding-bottom: 30px;

        > .sb-content {
            padding: 15px 15px 30px 15px;
            width: auto;
            overflow: visible;
            height: auto;
        }
    }

    .sb-repeater {
        margin-right: 0;
    }

    .sb-setting .repeater-item {
        > i {
            right: 0;
            top: 28px;
        }

        &:first-child > i {
            top: 8px;
        }
    }
}

#sb-chatbot-qea {
    .sb-repeater-add {
        margin-right: 30px;
        padding-left: 50px;
    }
}

#sb-repeater-chatbot-website {
    .sb-repeater-add {
        display: inline-block;
    }
}

#sb-chatbot-delete-website {
    display: inline-block;
}

.sb-playground .sb-scroll-area {
    height: auto;
    overflow: visible;
}

.sb-playground-editor {
    position: static;

    > .sb-flex {
        display: block;

        .sb-flex:last-child {
            display: block;

            > div {
                display: block;
                margin: 10px 0;
                padding-left: 30px;
            }
        }
    }
}

[data-id="playground"] {
    height: calc(100% - 70px);
    overflow: scroll;

    > div {
        display: block;
        height: 100%;
        align-content: baseline;

        > div {
            height: auto;
            padding: 15px 15px 30px 15px;
            border: none;
        }
    }
}

#sb-table-chatbot-files, #sb-table-chatbot-website {
    td {

        &:first-child {
            max-width: 22px;
            width: 22px;
            padding-right: 0;
        }

        &:last-child {
            max-width: 40px;
            width: 40px;
            padding: 0;
        }

        &:nth-child(3) {
            display: none;
        }
    }
}

.sb-enlarger-function-calling.sb-active > div {
    display: block;
}

.sb-enlarger-function-calling.sb-active > div:not(:last-child) {
    margin-bottom: 15px;
}

.sb-area-chatbot [data-id="open-ai-faq-function-calling-properties"] .repeater-item, .sb-area-chatbot [data-id="open-ai-faq-set-data"] .repeater-item {
    & + .repeater-item {
        border-top: 1px solid $border-color;
        padding-top: 20px;
        margin-top: 20px;

        > i {
            top: 0px;
        }
    }

    &:first-child > i {
        top: -28px;
    }
}

[data-id="open-ai-faq-set-data"] {
    .repeater-item > div {
        display: block;
    }

    .sb-setting {
        width: auto;

        & + .sb-setting {
            margin-left: 0;
            margin-top: 5px;
        }
    }
}

[data-id="flows"] {
    .sb-nav.sb-scroll-area {
        overflow: visible;
        padding-bottom: 30px;
    }

    > .sb-content {
        border-top: 1px solid $border-color;
        overflow: hidden !important;
        overflow-x: scroll !important;
    }
}

.sb-flow-scroll {
    display: none;
}

.sb-flow-block-box .sb-title {
    font-size: 17px;
}

/*

# ARTICLES AREA
==========================================================

*/

.sb-area-articles {
    > .sb-tab {
        overflow: hidden;
        overflow-y: scroll;
        max-height: 100%;
        height: calc(100% - 110px) !important;

        > .sb-content {
            padding: 0 15px;
            width: auto;
            padding: 30px 15px 15px 15px;
            margin-top: 20px;
            border-top: 1px solid $border-color;
            overflow: auto;
        }

        > .sb-nav {
            overflow: auto;
            max-height: none;
        }

        .sb-article-content {
            padding-left: 0 !important;
        }
    }
}

.sb-menu-articles .sb-docs, .sb-menu-chatbot .sb-docs {
    padding: 15px;
}
