
/*
* 
* ==========================================================
* TICKETS.SCSS
* ==========================================================
*
* Main style file of the Tickets App. Written in SCSS.
*
*/

@import "shared.scss";

@keyframes sb-collapse-btn-right {
    0% {
        opacity: 0;
    }

    30% {
        opacity: 0;
        right: -50px;
    }

    60% {
        opacity: 0;
        right: -50px;
    }

    100% {
        opacity: 1;
        right: 0;
    }
}

@keyframes sb-collapse-btn-left {
    0% {
        opacity: 0;
    }

    30% {
        opacity: 0;
        left: -50px;
    }

    60% {
        opacity: 0;
        left: -50px;
    }

    100% {
        opacity: 1;
        left: 0;
    }
}

/*

# GLOBAL
==========================================================

*/

.sb-main ::-webkit-input-placeholder {
    color: #a5aeb6;
}

.sb-main ::-moz-placeholder {
    color: #a5aeb6;
}

.sb-main :-ms-input-placeholder {
    color: #a5aeb6;
}

.sb-main :-moz-placeholder {
    color: #a5aeb6;
}

.sb-tickets {
    font-size: 15px;
    line-height: 27px;
    border-radius: 10px;
    color: $color-black;

    > .sb-tickets-area {
        display: flex;
        justify-content: space-between;
        height: 100%;
        position: relative;
    }

    &.sb-loading > .sb-tickets-area {
        visibility: hidden;
        opacity: 0;
    }

    ul {
        padding: 0;
        margin: 0;
        list-style: none;
    }

    > div > div > .sb-top {
        display: flex;
        align-items: center;
        border-bottom: 1px solid $border-color;
        padding: 15px 20px;
        height: 60px;
        min-height: 60px;
        box-sizing: border-box;
        justify-content: space-between;
    }

    .sb-no-conversation-message {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        justify-content: center;
        align-items: center;
        text-align: center;
        background: rgb(255, 255, 255);
        padding: 15px;
        display: none;
        z-index: 9;

        label {
            font-weight: 500;
            font-size: 20px;
            line-height: 30px;
        }

        p {
            margin: 15px 0;
            font-size: 15px;
            line-height: 25px;
            color: $color-gray;
        }
    }

    .sb-panel-left, .sb-panel-right, .sb-panel-main {
        position: relative;
        border: 1px solid rgb(212, 212, 212);
        border-radius: 10px;
        background: $white;
    }

    .sb-panel-left, .sb-panel-right {
        transition: width .5s, min-width .5s;
        overflow: hidden;

        .sb-scroll-bar {
            opacity: 0.2 !important;
        }

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

        &.sb-collapsed {
            margin: 0;
            min-width: 0;
            width: 0;
            border-width: 0 !important;
            transition: width .5s, min-width .5s, border-width .5s !important;

            > div, > ul {
                opacity: 0 !important;
                transition: .5s;
            }
        }
    }

    .sb-tickets-area .sb-top .sb-title {
        font-size: 17px;
        font-weight: 500;
        line-height: 30px;
    }
}

.sb-load div, .sb-load span, .sb-load input, .sb-load textarea {
    transition: none !important;
}

.sb-overflow-hidden, .sb-collapsing {
    overflow: hidden !important;
}

.sb-collapsing .sb-panel-right, .sb-collapsing .sb-panel-left {
    > div, > ul {
        min-width: 360px;
        opacity: 1 !important;
        transition: .5s;
    }
}

.sb-ticket-fields, .sb-popup-message {
    display: none !important;
}

.sb-tickets-area {
    .sb-input > span {
        font-weight: 500;
        font-size: 13.5px;
    }

    .sb-search-btn {
        i {
            z-index: 10;
        }

        > input {
            z-index: 9;
        }
    }

    .sb-form {
        .sb-input > span {
            padding-right: 15px;
        }

        .sb-input-select-input {
            position: relative;

            > div {
                opacity: 1;
                left: 169px;
            }

            input {
                padding-top: 0;
            }
        }
    }
}

[data-panel="registration"] .sb-input-select-input {
    position: relative;

    span + div {
        margin-left: 165px;
        opacity: 1;
    }
}

/*

# LEFT PANEL
==========================================================

*/

.sb-tickets {

    .sb-panel-left {
        width: 400px;
        min-width: 400px;
        margin-right: 7px;

        > ul {
            padding: 10px 0;

            > li {
                padding: 18px 20px 15px 20px;
                max-height: 85px;
                margin: 0 10px;
                border-radius: 6px;
                z-index: 3;
                border: none;
                background: none;

                .sb-message {
                    font-size: 13px;
                    display: -webkit-box;
                    -webkit-box-orient: vertical;
                    -webkit-line-clamp: 2;
                    line-height: 22px;
                    height: auto;
                    max-height: 45px;
                    white-space: normal;
                }

                > div {
                    padding-left: 40px;

                    > img {
                        width: 25px;
                        height: 25px;
                    }
                }


                .sb-name {
                    font-weight: 500;
                    font-size: 13px;
                }

                &:before {
                    content: "";
                    position: absolute;
                    left: 0;
                    bottom: 10px;
                    top: 10px;
                    width: 2px;
                    background-color: transparent;
                    border-radius: 3px;
                    transition: $transition;
                    z-index: 2;
                }

                &:after {
                    content: "";
                    position: absolute;
                    left: 20px;
                    right: 20px;
                    bottom: -1px;
                    height: 1px;
                    background-color: $border-color;
                    transition: $transition;
                    z-index: 2;
                }

                &:last-child:after {
                    display: none;
                }

                &.sb-active {
                    opacity: 1;
                    background-color: #f0f4f9 !important;

                    &:before {
                        background-color: $color-blue;
                    }

                    &:after {
                        opacity: 0;
                    }
                }

                &:hover {
                    background-color: $background-gray !important;

                    &:after {
                        opacity: 0;
                    }
                }

                &:first-child {
                    border-top: none;
                }
            }

            > p {
                margin: 0 20px;
                color: $color-gray;
            }

            &[data-profile-image="false"] > li > div {
                padding-left: 0;

                > img {
                    display: none;
                }
            }
        }

        li:not([data-conversation-status="1"]) {

            .sb-name, .sb-message {
                font-weight: 400;
                opacity: .8;
            }

            [data-count] {
                border-color: $background-gray;
            }
        }

        .sb-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding-left: 60px;
        }
    }

    .sb-user-conversations > li > [data-count] {
        left: 10px;
        top: 38px;
    }
}

/*

# RIGHT PANEL
==========================================================

*/

.sb-tickets {

    .sb-panel-right {
        min-width: 400px;
        width: 400px;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        margin-left: 7px;

        & > .sb-scroll-area {
            .sb-ticket-details, .sb-panel-conversation-details, .sb-conversation-attachments, .sb-department, .sb-dashboard-articles, .sb-profile-agent-panel {
                padding: 20px;

                > .sb-title {
                    margin: 0 0 13px 0;
                    padding: 0;
                }

                &:empty {
                    display: none;
                }
            }
        }

        .sb-profile {
            padding-left: 40px;
        }

        > .sb-top {
            padding-right: 60px;

            .sb-profile {
                height: 30px;
                padding-left: 40px;
            }

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

        .sb-title {
            letter-spacing: 0.5px;
            font-size: 13px;
            font-weight: 500;
            line-height: 21px;
        }


        .sb-agent-label {
            display: none;
            align-items: center;
            font-size: 13px;
            letter-spacing: 0.3px;
            line-height: 20px;
            margin-top: 10px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;

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

        .sb-agent-label img {
            border-radius: 50%;
            width: 20px;
            height: 20px;
            margin: 0 18px 0 5px;
        }

        .sb-department {
            font-size: 13px;

            > div {
                display: flex;
                align-items: center;
                margin: 0;
                border-radius: 15px;
                padding-right: 20px;

                > div > div {
                    width: 10px;
                    height: 10px;
                    display: inline-block;
                    border-radius: 50%;
                    margin-left: 10px;
                    opacity: 1;
                }
            }

            > span {
                padding-right: 15px;
            }

            > div span {
                display: none;
            }

            img {
                width: 30px;
                height: 30px;
                margin: 0 12px 0 0;
            }
        }

        .sb-articles {
            padding: 20px 0;
        }

        .sb-dashboard-articles {
            .sb-title {
                margin-bottom: 20px;
            }

            .sb-input-btn input {
                background-color: #fff;
            }
        }
    }

    .sb-agent-label, .sb-ticket-details, .sb-department, .sb-conversation-attachments, .sb-panel-right .sb-dashboard-articles {
        border-top: 1px solid rgb(212, 212, 212);
    }

    .sb-profile-empty {
        display: none !important;

        & + div:empty + div, & + div:empty + div:empty + div, & + div:empty + div:empty + div:empty + div, & + div:empty + div:empty + div:empty + div:empty + div {
            border-top: none;
            margin-top: 0;
            padding-top: 0;
        }
    }

    .sb-ticket-details {
        padding: 12px 0 0 7px;

        > div {
            padding-left: 36px;
            position: relative;
            font-size: 13px;
            line-height: 27px;
            letter-spacing: 0.3px;
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;

            > span {
                font-weight: 500;
                padding-right: 10px;
                font-size: 13px;
            }

            > div {
                display: inline;
            }

            .sb-icon {
                position: absolute;
                left: 0;
                top: 8px;
                font-size: 14px;
                width: 16px;
                height: 16px;
                color: $color-dark-blue;

                &:before {
                    width: 16px;
                    height: 16px;
                    opacity: 0.8;
                    position: absolute;
                }
            }
        }

        &:first-child {
            border-top: none;
            margin-top: 0;
            padding-top: 0;
        }

        &:empty {
            display: none;
        }
    }

    .sb-conversation-attachments {

        a {
            line-height: 20px;
            margin: 5px 0 0 0;
            display: block;
            letter-spacing: 0.3px;
            text-decoration: none;
            font-size: 13px;
            color: $color-black;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            transition: $transition;

            i {
                color: $color-dark-blue;
                font-size: 15px;
                transform: translateY(3px);
                display: inline-block;
                margin-right: 10px;
            }

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

        &:empty {
            display: none;
        }
    }

    .sb-profile-agent-panel:not(.sb-active) {
        display: none;

        & + .sb-ticket-details {
            border-top: 0;
        }
    }

    .sb-profile-agent {
        text-align: left;
        display: flex;

        > div > span {
            display: block;
        }

        img {
            width: 25px;
            height: 25px;
            left: 0;
        }

        .sb-name {
            letter-spacing: 0.5px;
            font-size: 13px;
            line-height: 21px;
        }

        .sb-status {
            position: relative;
            font-weight: 400;
            font-size: 13px;
            letter-spacing: 0.3px;
            line-height: 15px;
            padding-left: 15px;
            color: rgba(70, 79, 87, 0.75);

            &:empty {
                display: none;
            }

            &:before {
                content: "";
                width: 8px;
                height: 8px;
                position: absolute;
                border-radius: 50%;
                margin-top: -4px;
                top: 50%;
                left: 0;
                background: rgb(212, 212, 212);
            }

            &.sb-status-online:before {
                background: rgb(19, 202, 126);
            }
        }
    }
}

.sb-tickets .sb-profile-agent .sb-status-typing, .sb-list > [data-id="typing"] .sb-message {
    padding-left: 0;
    float: left;

    &:before {
        display: none;
    }

    &:after {
        content: "...";
        position: absolute;
        width: 15px;
        left: calc(100% + 5px);
        bottom: 0;
        font-weight: 500;
        letter-spacing: 1px;
        overflow: hidden;
        white-space: nowrap;
        animation: sb-typing 1s infinite;
    }
}

.sb-tickets .sb-list [data-id="typing"] {
    padding: 0;
    width: 40px;
    height: 30px;

    .sb-message {
        text-indent: -9999px;

        &:after {
            left: 10px !important;
            bottom: 8px !important;
            font-size: 18px;
            text-indent: 0;
        }
    }

    .sb-time {
        display: none;
    }
}

/*

# MAIN PANEL
==========================================================

*/

.sb-tickets {
    .sb-panel-main {
        width: 100%;
        min-width: 0;

        > .sb-top {
            .sb-title {
                font-weight: 500;
                position: relative;
                padding: 0 15px 0 0;
                margin: 0;
                padding: 0;
                cursor: default;
                text-decoration: none;
                line-height: 30px;
                color: $color-black;
                font-size: 17px;
                letter-spacing: .4px;
                white-space: nowrap;
            }

            .sb-btn-back, .sb-close {
                display: none;
            }

            .sb-close {
                position: absolute;
                right: 14px;
                top: 12px;
                z-index: 9;

                i {
                    line-height: 37px;

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

            .sb-label-date-top {
                top: 54px;
            }
        }
    }

    .sb-panel {
        padding: 20px;
        height: calc(100% - 60px);
        box-sizing: border-box;
        display: none;

        > .sb-top {
            display: none;
        }

        > .sb-loading {
            width: 30px;
            height: 30px;
        }

        .sb-info {
            margin: 0 20px 20px 150px;
            color: $color-red;
            font-size: 13px;
            line-height: 25px;
            letter-spacing: 0.3px;
            font-weight: 500;
            display: none;
            cursor: default;

            &.sb-active {
                display: block;
                animation: sb-fade-animation 0.4s;
            }
        }

        .sb-text, .sb-link-area, .sb-privacy a:not([class]) {
            font-size: 13.5px;
            line-height: 27px;
            color: $color-gray;
        }

        .sb-text a:not(:hover) {
            text-decoration: none;
        }

        .sb-article {
            > .sb-title {
                font-weight: 500;
                font-size: 18px;
                margin-bottom: 15px;

                > .sb-close {
                    display: none !important;
                }
            }

            > .sb-btn-text {
                margin-top: 20px;
            }
        }
    }

    &:not(.sb-panel-active) .sb-collapsed + .sb-panel-main > .sb-top {
        padding-left: 65px;
    }

    &.sb-no-arrows .sb-panel-left > .sb-top {
        padding-left: 15px;
    }

    &.sb-panel-active {

        .sb-panel {
            display: block;
        }

        .sb-panel-main {
            overflow: hidden;

            > .sb-top .sb-close {
                display: block;
            }

            .sb-conversation {
                display: none;
            }
        }
    }

    &.sb-no-conversations .sb-panel-main > .sb-top .sb-close, &[data-panel="registration"] .sb-panel-main > .sb-top .sb-close,
    &[data-panel="login"] .sb-panel-main > .sb-top .sb-close, &[data-panel="edit-profile"] .sb-login-area, &[data-panel="edit-profile"] .sb-panel .sb-text,
    &[data-panel="privacy"] .sb-panel-main > .sb-top .sb-close {
        display: none !important;
    }

    &[data-panel="registration"], &[data-panel="login"] {
        > .sb-tickets-area {
            height: auto !important;
            max-height: 100%;

            > .sb-collapsed {
                height: 0;
            }
        }
    }
}

.sb-panel-form {

    .sb-form {
        margin: 22px 0 30px 0;
        max-width: 500px;
    }

    [id="otp"]:not(.sb-active) {
        display: none;
    }

    .sb-form-extra {
        margin: -20px 0 30px 0;
    }

    .sb-form-extra:empty {
        display: none;
    }

    .sb-link-area {
        font-size: 13px !important;
    }

    .sb-link-area a {
        color: $color-gray;
    }

    .sb-buttons {
        margin: 30px 0 15px 0;
        display: flex;
        align-items: center;

        div + div {
            margin-left: 15px;
        }

        .sb-btn-text.sb-registration-area, .sb-btn-text.sb-login-area {
            font-size: 13px;
            letter-spacing: .3px;
        }
    }

    .sb-panel {
        height: calc(100% - 60px);

        .sb-info {
            margin: -20px 0 0 165px;
        }
    }


    .sb-top + .sb-form, &[data-panel="edit-profile"] .sb-form-main {
        margin-top: 10px;
    }
}

.sb-privacy .sb-buttons {
    margin-top: 30px;
}

.sb-tickets .sb-top-hide {
    height: 0 !important;
    border: none !important;
    min-height: 0 !important;
    padding: 0 !important;

    .sb-profile, .sb-title {
        display: none;
    }

    .sb-label-date-top {
        top: -6px !important;
    }

    & + .sb-conversation {
        height: 100%;
    }
}

/*

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

*/

.sb-tickets {

    .sb-conversation {
        height: calc(100% - 60px);
        position: relative;
        display: flex;
        flex-direction: column;

        .sb-list {
            height: 100%;
            padding: 0 0 5px 0;
            overflow-y: scroll;

            > div:last-child {
                animation: none;
            }
        }
    }

    .sb-editor {
        flex-shrink: 0;
        margin: 1px 20px 20px 20px;
        border: 1px solid rgba(0, 0, 0, 0.2);
        border-radius: 6px;
        box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.1);
        transition: box-shadow linear 40ms, border-color linear 0.2s;
        background-color: $white;

        .sb-textarea {
            border: none;
            padding: 0 !important;
        }

        .sb-bar {
            margin-top: 10px;
            position: relative;

            .sb-btn-attachment {
                display: block !important;
            }

            .sb-btn {
                background-color: $color-blue;
                color: $white;
                border-color: $color-blue;
                font-size: 12px;
                line-height: 27px;
                height: 25px;
                transition: $transition;

                &:hover {
                    background-color: $color-dark-blue;
                    border-color: $color-dark-blue;
                }
            }
        }

        .sb-attachments:not(:empty) {
            padding-top: 15px;
        }

        .sb-title {
            position: absolute;
            font-weight: 500;
            font-size: 15px;
            letter-spacing: 0.3px;
            cursor: default;
            top: 0;
            left: -150px;
            color: $color-gray;
        }

        .sb-btn-saved-replies {
            display: none;
        }

        &.sb-error {
            border: 1px solid $color-red;
            box-shadow: 0 0 5px rgba(202, 52, 52, 0.25);
        }

        &.sb-audio-message-active {
            .sb-textarea, .sb-bar-icons {
                display: none;
            }

            .sb-bar {
                margin-top: 0;
                justify-content: right;
            }
        }
    }

    .sb-editor-cnt {
        align-items: flex-start;
    }

    &.sb-no-conversations > div > .sb-collapsed {
        transition: none !important;
    }
}

[data-panel="new-ticket"] {
    .sb-panel {

        input, select {
            padding: 15px;
        }

        > div {
            max-width: 800px;
        }
    }

    .sb-input-select {
        justify-content: flex-start;

        > span {
            flex-grow: 0;
        }

        p {
            font-weight: 400;
            margin: 0;
        }
    }

    .sb-input > div {
        padding-right: 0;
    }

    .sb-editor {
        margin: 0;
        box-shadow: none;
        max-width: calc(100% - 150px);
        width: 100%;
        box-sizing: border-box;
        transition: border-color .4s, box-shadow .4s, background-color .4s;

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

        .sb-loader {
            bottom: -60px;
            right: auto;
            left: -60px;
        }

        &.sb-focus {
            border: 1px solid $color-blue;
            box-shadow: 0 0 5px rgba(39, 156, 255, 0.2);
            background: $white;
        }
    }

    .sb-create-ticket {
        margin: 15px auto 0 150px;
        width: auto;
    }

    .sb-label-date-top, .sb-btn-audio-clip {
        display: none;
    }

    .sb-text {
        margin-bottom: 30px;
    }
}

@media (min-width: 768px) {
    .sb-popup.sb-emoji {
        left: 85px !important;
        top: auto !important;
        bottom: 55px;
        position: absolute !important;
    }
}

.sb-popup:before {
    display: none;
}

/*

# COMPONENTS
==========================================================
     
*/

.sb-profile {
    position: relative;
    color: $color-black;
    padding-left: 55px;
    text-decoration: none;
    display: flex;
    align-items: center;

    img {
        position: absolute;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        left: 0;
    }

    > span {
        font-size: 16px;
        line-height: 19px;
        font-weight: 500;
        white-space: nowrap;
        letter-spacing: 0.3px;
    }
}

.sb-profile-menu {
    cursor: pointer;
    display: inline-block;

    .sb-menu {
        display: none;
        margin-left: -10px;
    }

    &:hover .sb-menu {
        display: block;
        animation: sb-fade-bottom-animation .5s;
    }
}

.sb-btn-collapse {
    position: absolute;
    top: 15px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    line-height: 35px;
    font-size: 15px;
    text-align: center;
    z-index: 5;

    &.sb-right {
        left: auto;
        right: 15px;
    }

    &.sb-left {
        right: auto;
        left: 15px;
    }

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

    &:before {
        line-height: 30px;
        font-size: 15px;
    }
}

.sb-btn-icon i:before {
    line-height: 35px;
}

.sb-overlay-panel.sb-active {
    z-index: 96;
}

.sb-tickets #sb-audio-clip {
    background: $white;

    .sb-icon:before {
        line-height: 50px;
    }
}

[data-panel="login-link"] .sb-panel.sb-active {
    .sb-buttons, .sb-form, .sb-info, > .sb-text {
        display: none;
    }
}

[data-panel="login-link"] .sb-panel:not(.sb-active) .sb-login-link-success {
    display: none;
}

.sb-forgot-password {
    font-weight: 400;
    text-align: right;
    display: block;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    margin: 5px 0 0 0;

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

[data-color="red"] > div > div {
    background-color: #e22424;
}

[data-color="yellow"] > div > div {
    background-color: #f5a212;
}

[data-color="green"] > div > div {
    background-color: #1fa839;
}

[data-color="pink"] > div > div {
    background-color: #5b31f1;
}

[data-color="gray"] > div > div {
    background-color: #282828;
}

[data-color="blue"] > div > div {
    background-color: #008db5;
}

/*

# RTL
==========================================================

*/

.sb-tickets.sb-rtl {
    .sb-panel-right {
        border-right: 1px solid rgb(212, 212, 212);
        border-left: none;

        > .sb-top {
            padding-right: 20px;
            padding-left: 60px;

            .sb-no-profile-image {
                padding-right: 0;
            }
        }

        .sb-profile-agent .sb-status {
            padding-right: 15px;
            padding-left: 0;
            text-align: right;

            &:before {
                left: auto;
                right: 0;
            }
        }
    }

    .sb-panel-left {
        border-right: none;
        border-left: 1px solid rgb(212, 212, 212);

        > .sb-top {
            padding-left: 20px;
            padding-right: 60px;
        }
    }

    .sb-editor .sb-bar {
        padding: 0;
    }

    .sb-btn-collapse.sb-left {
        right: 20px;
        left: auto;
    }

    .sb-btn-collapse.sb-right {
        left: 20px;
        right: auto;
    }

    .sb-btn-collapse.sb-left.sb-active {
        transform: none;
        text-align: right;
        animation: sb-collapse-btn-right 1s;
    }

    .sb-btn-collapse.sb-right.sb-active {
        transform: none;
        text-align: left;
        animation: sb-collapse-btn-left 1s;
    }

    .sb-btn-collapse:not(.sb-active) {
        transform: rotate(180deg);
    }

    &:not(.sb-panel-active) .sb-collapsed + .sb-panel-main > .sb-top {
        padding-left: 20px;
        padding-right: 65px;
    }

    .sb-panel-main .sb-top .sb-close {
        right: auto;
        left: 14px;
    }

    .sb-panel .sb-info {
        margin: 0 150px 20px 20px;
    }

    &.sb-800 .sb-panel-left {
        left: auto;
        right: 0;
    }

    &.sb-800 .sb-panel-right {
        left: 0;
        right: auto;
    }

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

        img {
            right: 0;
            left: auto;
        }
    }

    &[data-panel="new-ticket"] .sb-editor {
        padding-right: 20px;
        padding-left: 0;
    }
}

/*

# RESPONSIVE
==========================================================

*/

.sb-1300 {
    .sb-panel-left, .sb-panel-right {
        min-width: 310px;
        width: 310px;
    }

    &.sb-collapsing .sb-panel-right, &.sb-collapsing .sb-panel-left {
        > div, > ul {
            min-width: 270px;
        }
    }

    .sb-panel-left .sb-search-btn > input {
        min-width: 205px;
    }
}

.sb-1000 {
    .sb-panel-left, .sb-panel-right {
        min-width: 230px;
        width: 230px;
    }

    &.sb-collapsing .sb-panel-right, &.sb-collapsing .sb-panel-left {
        > div, > ul {
            min-width: 190px;
        }
    }

    .sb-panel-left .sb-search-btn > input {
        min-width: 60px;
        width: 125px;
    }
}

.sb-800 {
    .sb-panel-left, .sb-panel-right {
        min-width: 260px;
        width: 260px;
        position: absolute;
        left: 0;
        z-index: 9;
        height: 100%;
    }

    .sb-panel-right {
        left: auto;
        right: 0;
    }

    &.sb-collapsing .sb-panel-right, &.sb-collapsing .sb-panel-left {
        > div, > ul {
            min-width: 220px;
        }
    }

    .sb-panel-left .sb-search-btn > input {
        min-width: 60px;
        width: 125px;
    }

    .sb-btn-collapse {
        z-index: 95;
    }

    .sb-btn-collapse:not(.sb-active) + .sb-right, .sb-panel-right:not(.sb-collapsed) + .sb-left {
        display: none;
    }

    &.sb-panel-form .sb-input, &[data-panel="new-ticket"] .sb-input, &.sb-panel-form .sb-select, &[data-panel="new-ticket"] .sb-select {
        display: block;
    }

    &[data-panel="new-ticket"] {
        .sb-editor {
            max-width: 100%;
        }

        .sb-create-ticket {
            margin-left: 0;
        }
    }

    .sb-panel .sb-info {
        margin-left: 0;
    }

    .sb-article > .sb-rating {
        margin-left: 0 !important;
        padding-left: 0 !important;
        border-left: 0 !important;
        display: flex;
    }

    &.sb-panel-form .sb-input-select-input span + div {
        margin-left: 0;
        top: 40px;
    }

    .sb-tickets-area .sb-form .sb-input > span {
        padding-right: 0;
    }
}

@media (max-width: 464px) {

    .sb-btn-emoji {
        display: none;
    }
}

@import "rtl.scss";
