.communications {
    position: relative;
    display: block;
    width: 100%;
    padding: 0.3rem;
}

.communications__top {
    margin: 0.3rem;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}
.communications__top.textmessagebutton .communications-top-item.first
{
    width: 70%;
    display: flex;
    justify-content: flex-start;
    
}

.communications__top.textmessagebutton .communications-top-item.last
{
    width: 30%;
    display: flex;
    justify-content: flex-end;
}

.communications__section {
    width: calc(50% - 0.6rem);
    margin: 0.3rem;
    display: inline-block;
}

/*Overwrites default wysiwyg settings*/
.ql-container {
    font-size: 20px !important;
    border: none !important;
}

.communications_wysiwyg.quill {
    height: 100%;
}

.ql-container.ql-snow {
    height: 100%;
}

.communications__inbox {
    height: 346px;
    overflow-y: auto;
}

.email {
    z-index: 9;
}

.communications__inbox .email:first-child {
    margin-top: 0px;
}

.communications__modalFrom {
    font-size: 1.2rem;
    font-weight: 800;
}

.communications__modalSubject {
    font-size: 1.2rem;
    font-weight: 600;
    display: block;
    margin-bottom: 1rem;
}

.communications__modalBody {
    font-size: 1.2rem;
    font-weight: 500;
    display: block;
    margin-bottom: 1rem;
}

.communications__modalBody img {
    max-width: 100%;
}

.communications__buttonsWrapper {
    width: 100%;
    height: 6.2rem;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.editorWrapper {
    margin: 0 1rem;
    width: calc(100% - 2rem);
    box-shadow: inset 0 0 2px 1px #dddddd;
    border: 2px solid #b3b3b3;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.editorText {
    height: 240px;
}

.modal-backdrop.fade {
    opacity: .7;
}

.fade {
    opacity: 1;
}

/* .modal-dialog { */
    /*top: 25%;*/
    /*width: 75%;*/
    /*margin: 0 auto;*/
    /*max-height: 80vh;*/
    /*overflow-y: scroll;*/
    /*top: 25%;*/
/* } */


.modal-dialog p {
    word-wrap: break-word;
}

.emailloadingbar {
    height: 20px;
    width: 200px;
    background-color: rgba(0, 0, 0, .1);
    -webkit-border-radius: 25px;
    -moz-border-radius: 25px;
    -ms-border-radius: 25px;
    border-radius: 20px;
    -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, .03), inset 0 1px 0 rgba(0, 0, 0, .1);
    -moz-box-shadow: 0 1px 0 rgba(255, 255, 255, .03), inset 0 1px 0 rgba(0, 0, 0, .1);
    -ms-box-shadow: 0 1px 0 rgba(255, 255, 255, .03), inset 0 1px 0 rgba(0, 0, 0, .1);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .03), inset 0 1px 0 rgba(0, 0, 0, .1);
    width: 100%;

}

/*
This is the actual bar with stripes
*/
.emailloadingbar span {
    display: inline-block;
    height: 100%;
    width: 100%;
    border: 1px solid #2c80b8;
    border-bottom-color: #2c80b8;
    background-color: #d3d3d3;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    border-radius: 20px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
    background-image: -webkit-linear-gradient(
            -45deg,
            #2c80b8,
            transparent 25%,
            transparent 50%,
            #2c80b8 50%,
            #2c80b8 75%,
            transparent 75%,
            transparent
    );
    background-image: -moz-linear-gradient(
            -45deg,
            #2c80b8 25%,
            transparent 25%,
            transparent 50%,
            #2c80b8 50%,
            #2c80b8 75%,
            transparent 75%,
            transparent
    );
    background-image: -ms-linear-gradient(
            -45deg,
            #2c80b8 25%,
            transparent 25%,
            transparent 50%,
            #2c80b8 50%,
            #2c80b8 75%,
            transparent 75%,
            transparent
    );
    background-image: linear-gradient(
            -45deg,
            #2c80b8 25%,
            transparent 25%,
            transparent 50%,
            #2c80b8 50%,
            #2c80b8 75%,
            transparent 75%,
            transparent
    );
    -webkit-background-size: 50px 50px;
    -moz-background-size: 50px 50px;
    -ms-background-size: 50px 50px;
    background-size: 50px 50px;
    -webkit-animation: move 2s linear infinite;
    -moz-animation: move 2s linear infinite;
    -ms-animation: move 2s linear infinite;
    animation: move 2s linear infinite;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    border-radius: 20px;
    overflow: hidden;
    -webkit-box-shadow: inset 0 10px 0 rgba(255, 255, 255, .2);
    -moz-box-shadow: inset 0 10px 0 rgba(255, 255, 255, .2);
    -ms-box-shadow: inset 0 10px 0 rgba(255, 255, 255, .2);
    box-shadow: inset 0 10px 0 rgba(255, 255, 255, .2);
}

/*
Animate the stripes
*/
@-webkit-keyframes move {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

@-moz-keyframes move {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

@-ms-keyframes move {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

@keyframes move {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}


@media screen and (max-width: 991px) {
    .communications__section {
        width: calc(100% - 0.6rem);
    }
    .communications__top {
        margin: 0.3rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }
    .communications__top.textmessagebutton .communications-top-item.first,
    .communications__top.textmessagebutton .communications-top-item.last
    {
        width: 100%;
        justify-content: center;
    }
}

.input__wrapper,
.inputLG__wrapper {
    height: var(--input-inputLG-wrapper-height, 6.6rem);    
    margin: 1rem 0;
    padding: 0 1rem;
    width: 100%;
    position: relative;
    display: inline-block;
    vertical-align: top;
}

.inputLG__wrapper {
    height: auto;
}

.input,
.inputLG,
.input__file {
    background-color: white;
    width: 100%;
    border: 2px solid #b3b3b3;
    border-radius: 4px;
    height: var(--input-inputLG-file-height, 3.73rem);
    margin-top: 1.73rem;
    outline: 0;
    transition: all 200ms ease-out;
    position: relative;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 2px 1rem;
    box-shadow: inset 0 0 2px 1px #dddddd;
}

.input:focus {
    border: 3px solid #2c80b8;
}

.input:focus + .input__placeholder {
    top: -0.5rem;
    color: #2c80b8;
}

.inputLG {
    height: 7.46rem;
    resize: vertical;
}

.inputLG:focus {
    border: 3px solid #2c80b8;
}

.inputLG:focus + .input__placeholder {
    top: -0.5rem;
    color: #2c80b8;
}

.input__file {
    border: none;
    padding: 1rem;
    box-shadow: none;
}

.input__file:hover {
    border: none;
}

.input__placeholder {
    position: absolute;
    transition: all 200ms linear;
    font-weight: 700;
    font-size: 1rem;
    pointer-events: none;
    left: 1.8rem;
    top: var(--input-placeholder-top, 2.75rem);
    color: #707070;
}

.input__placeholder--datain {
    top: -0.5rem;
}

/*.floating-button-container {*/
/*    float: right;*/
/*}*/

.floating-button-container a {
    margin: 10px 10px 10px 0;
}

.input__notEditable {
    background-color: #CCC
}

.input__selectChevron {
    position: absolute;
    right: 2rem;
    top: 3rem;
    z-index: 9;
    color: #707070;
}

.communications-control-container {
    display: flex;
    justify-content: space-between;
}

.delete-draft-wrapper {
    height: 90px;
    left: 5px;
    position: absolute;
    bottom: -90px;
    width: 100%;
    z-index: 99999999999;
}

.delete-draft-button {
    background: red;
    color: white !important;
}


@media screen and (max-width: 991px) {
    .floating-button-container {
        float: none;
        display: flex;
        justify-content: center;
    }

    .floating-button-container a {
        width: 20rem;
    }

    .communications-control-container {
        flex-direction: column;
    }

    .input__wrapper, .inputLG__wrapper {
        height: 8.7rem;
    }

    .input, .inputLG {
        height: 6.2rem;
        font-size: 2rem;
        padding-left: 1rem;
        margin-top: 2.35rem;
    }

    .input__placeholder {
        font-size: 2rem;
        top: 4rem;
    }

    .input__placeholder--datain {
        top: -0.5rem;
    }

    .input__selectChevron {
        top: 4rem;
    }
}
.attachmentsForm__itemsList {
    width: 90%;
}
.communications__attachmentWrapper {
    position: relative;
    cursor: pointer;
    width: 100%;
    padding: .5rem;
    display: flex;
    flex-direction: column;
    border: 1px solid;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    transition: max-height 0.5s;
  }
.attachmentItem_delete {
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 2rem;
    background-color: red;
    width: 1.5rem;
    height: 1.5rem;
    position: absolute;
    padding: .5rem;
    font-size: .75rem;
    top: -6px;
    right: -8px;
  }
