.template-name.heading {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.listing-dropdown {
    display: flex;
    width: 35%;
    box-sizing: border-box;
    padding: .5em;
    float: right;

    span {
        width: 25%;
        align-self: center;
    }

    app-select-2 {
        width: 75%;
    }
}

.select2-selection__rendered {
    width: 100% !important;
}

.select2-selection {
    width: 100% !important;
}

::ng-deep {
    .ui-inputswitch {
        height: 18px;
        width: 36px !important;
        overflow: visible;
        background-color: #9e9e9e;
        border-color: #9e9e9e;
        -moz-border-radius: 8px;
        -webkit-border-radius: 8px;
        border-radius: 8px;
    }

    .ui-inputswitch-slider {
        &:before {
            border-radius: 50%;
            position: absolute;
            content: "";
            height: 15px;
            width: 15px;
            left: 1px;
            bottom: 0;
            background-color: white;
            transition: .4s;
        }
    }
}

/* Panel Styling */

.messaging {
    .ui-panel {
        .ui-panel-content {
            padding-left: 0 !important;
            padding-right: 0 !important;
        }
    }

    .ui-chkbox {
        margin-bottom: 2px;

        .ui-chkbox-box {
            &.ui-state-active {
                border-color: rgba(3, 160, 231, 0.5) !important;
                background-color: rgba(3, 160, 231, 0.5) !important;
            }

            &.ui-state-focus {
                border-color: rgba(3, 160, 231, 0.5) !important;
            }
        }
    }

    .ui-dropdown {
        margin-top: 6px;
    }
}

.postStage {
    .ui-panel {
        margin-bottom: 5px;
    }
}

.ui-panel {
    margin-right: auto;
    margin-left: auto;

    .ui-panel-titlebar {
        height: 90px;
        border-radius: 5px 5px 0 0 !important;
        padding: 2em 1em !important;
        background-color: #4E5258;
        align-items: center;
        border-bottom: 0 !important;
        width: 100%;

        .ui-panel-title {
            color: #FFFFFF;
            font-size: 20px;
            padding-left: 40px;
        }
    }

    .ui-panel-content {
        background-color: white;
        padding: 3em 3em !important;
    }
}

/* End panel styling */

/* Overriding switch input styles */

.ui-inputswitch-slider:before {
    height: 16px !important;
    width: 18px !important;
    left: 4px !important;
    background: white;
    top: 2px;
}

.ui-inputswitch {
    height: 20px !important;
    width: 40px !important;
    border-color: #667281 !important;
    background-color: #667281 !important;
    border-radius: 34px !important;
    margin-bottom: 5px;
    margin-left: 8px;

    &.ui-inputswitch-checked {
        background-color: #67b413 !important;
        border-color: #67b413 !important;

        .ui-inputswitch-slider:before {
            transform: translateX(0.8em);
        }
    }
}

/* End styling switchInput */

/* styling selectButton */
.ui-selectbutton {
    margin-top: 12px;
    border: solid 1px #dbdbdf;
    border-radius: 50px !important;
    width: 100%;
    display: flex;
    flex: 1 1 auto;

    .ui-button {
        width: 100%;
        border-left: solid 1px #dbdbdf;
        background: #ffffff !important;

        &:first-child {
            border-top-left-radius: 50px;
            border-bottom-left-radius: 50px;
        }

        &:last-child {
            border-top-right-radius: 50px;
            border-bottom-right-radius: 50px;
        }

        &.ui-state-active {
            span {
                color: #ffffff;
            }
        }

        span {
            color: #d14b5d;
            font-size: 12px;
            margin-top: 4px;
        }
    }
}

/* End styling select button*/

.ui-multiselect {
    border-bottom: 0 !important;
}

.dropdown-text {
    width: 75% !important;
}

.select2-container--open {
    z-index: 100000;
}

.h-80 {
    height: 80px;
}

.openedFromWorkflow {
    margin-top: 0 !important;
    width: 100% !important;
}

.editor {
    min-height: 260px !important;
}

body .ui-selectbutton .ui-button.ui-state-active {
    background-color: #667281 !important;
}

body .ui-selectbutton .ui-button {
    background-color: #fff !important;
}

.ui-selectbutton .ui-button span {
    color: #000 !important;
}

.ui-selectbutton .ui-button.ui-state-active span {
    color: #fff !important;
}

body .ui-inputtext {
    font-size: 14px;
}

body .ui-button {
    background-color: #667281;
}

body .ui-widget-header {
    background-color: #667281;
    border: 1px solid #667281;
}

body .ui-dropdown-panel .ui-dropdown-filter-container {
    background-color: #667281;
}

.form {
    background-color: white;
    padding: 65px 10.5%;
}

.ui-inputtext {
    background-image: linear-gradient(to bottom, rgba(3, 160, 231, 0.5), rgba(3, 160, 231, 0.5)), linear-gradient(to bottom, #bdbdbd, #bdbdbd) !important;

    &.ui-dropdown-label {
        background-image: none !important;
    }
}

.panel-header-input {
    background: white !important;
    font-size: 20px !important;
    padding-left: 40px !important;
}

.ui-dropdown {
    background: transparent no-repeat;
    background-image: linear-gradient(to bottom, rgba(3, 160, 231, 0.5), rgba(3, 160, 231, 0.5)), linear-gradient(to bottom, #bdbdbd, #bdbdbd) !important;
}

.ui-multiselect-panel {
    .ui-multiselect-item {
        &.ui-state-highlight {
            background: none !important;
            color: #4e5258 !important;
        }

        label {
            margin-bottom: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
    }
}

.ui-button:focus, .ui-panel-titlebar-icon:hover, .ui-multiselect-close:hover {
    background-color: rgba(3, 160, 231, 0.5) !important;
}

.btn.btn-primary.largeBtn:focus {
    background: #0e87be !important;
}

.ui-button.ui-button-icon-only {
    margin: 1px;
}

.ui-fluid .ui-splitbutton .ui-button.ui-splitbutton-menubutton.ui-button.ui-button-icon-only {
    margin: inherit !important;
}

.chat-icon {
    width: 70px;
    height: 70px;
    border-radius: 100px;
    position: fixed;
    bottom: 20px;
    right: 85px;
    background-image: url('../images/chat-icon.jpg');
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-position: center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    cursor: pointer;
}

/**
 *** HELPER CLASSES ***
 */

.w-80 {
    width: 80% !important;
}

.pt-0 {
    padding-top: 0 !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 1% !important;
}

.pl-1 {
    padding-left: 1em;
}

.mr-0 {
    margin-right: 0 !important;
}

.ml-0 {
    margin-left: 0;
}

.no-border {
    border: 0 !important;
}
