.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;
}

.editable {
    transition: all 0.3s ease;
    cursor: pointer;

    &:hover {
        color: #03a0e7;
    }
}

::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;
        }
    }
}

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

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

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

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

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

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

.h-60 {
    height: 60px;
}

/* 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);
                background-color: rgba(3, 160, 231, 0.5);
            }

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

    .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;
}

.normalDropDown {


    .select2-container {

        .select2-selection .select2-selection__rendered {
            background: none;
            padding-left: 10px;
        }
    }
}

.h-80 {
    height: 80px;
}

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

.ui-dialog {
    &.ui-dialog-draggable {
        left: 20px !important;
        right: 20px !important;
        overflow-y: scroll;
        height: 80% !important;
    }
}

.editor {
    min-height: 150px !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-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;
}

.mb-10 {
    margin-bottom: 10px;
}

.pb-0 {
    padding-bottom: 0 !important;
}

.message-template-form {
    label {
        font-family: 'Usual-Regular' !important;
    }

    textarea {
        width: 100%;
        max-width: 100%;
        padding: 10px;
        border: solid 1px #dbdbdf;
    }
}

.separator {
    width: 80%;
    background: #4E5258;
    display: flex;
    height: 5px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 20px;
}

.bg-white {
    background-color: white;
}

.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;
    }
}

.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;
        }
    }
}
