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

.mt-3 {
    margin-top: 3em;
}

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

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

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

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

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

.edit-message-template {
    .ui-dialog {
        .ui-dialog-titlebar {
            display: none;
        }

        .ui-dialog-content {
            padding: 0 !important;

            .message-template-form {
                padding-top: 0 !important;
                padding-bottom: 0 !important;
            }

            .main-tab-template {
                height: 50px;
            }
        }
    }

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

.message-engine {
    .ui-dialog {
        .ui-dialog-titlebar {
            display: none;
        }

        .ui-dialog-content {
            padding: 0 !important;
        }
    }

    .ui-dialog {
        &.ui-dialog-draggable {
            left: auto !important;
            right: 10px !important;
            height: 600px !important;
            bottom: 0 !important;
            top: auto !important;
            width: 690px !important;
        }
    }

    ::-webkit-scrollbar {
        width: 8px;
    }

    ::-webkit-scrollbar-track {
        -webkit-box-shadow: inset 0 0 200px rgba(183, 183, 183, 0.2);
        border-radius: 6px;
    }

    ::-webkit-scrollbar-thumb {
        border-radius: 6px;
        -webkit-box-shadow: inset 0 0 200px rgba(100, 100, 100, 0.42);
    }
}


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

.text-right {
    text-align: right !important;
}

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

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

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

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

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

.separator {
    width: 98%;
    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;
    }
}

.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: rgba(255, 255, 255, 0.5) !important;
}

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

.chat-icon {
    width: 70px;
    height: 70px;
    border-radius: 100px;
    position: fixed;
    bottom: 20px;
    right: 85px;
    background-image: url('../images/chat-icon.jpg');
    background-repeat: round;
    cursor: pointer;
}

app-message-engine-applicant-view {

    ::-webkit-scrollbar {
        width: 8px;
    }

    ::-webkit-scrollbar-track {
        -webkit-box-shadow: inset 0 0 200px rgba(183, 183, 183, 0.2);
        border-radius: 6px;
    }

    ::-webkit-scrollbar-thumb {
        border-radius: 6px;
        -webkit-box-shadow: inset 0 0 200px rgba(100, 100, 100, 0.42);
    }
}

.pad-5 {
    padding: 5px;
}

.h-45 {
    height: 45px !important;
}

.error-block {
    border: 1px solid red !important;
}
