:root {
    --font-color: #434A54;
    --font-color-inverted: #FFFFFF;
    --font-color-inactive: #808080;
    --font-color-title: #004B96;
    --font-size-100: 1rem;
    --font-size-150: 1.5rem;
    --font-size-200: 2rem;
    --font-size-250: 2.5rem;
    --bg-body: #E6E6E6;
    --bg-content: #FFFFFF;
    --color-primary: #004B96;
    --color-secondary: #0489AD;
    --color-primary-hover: #00345E;
    --color-primary-disabled: #C1D2E4;
    --color-primary-active: #00345E;
    --color-positive: #028474;
    --color-positive-hover: #005B4C;
    --color-positive-active: #005B4C;
    --color-positive-disabled: #cce6e3;
    --color-negative: #CCCCCC;
    --color-negative-hover: #999999;
    --color-negative-active: #999999;
    --color-negative-disabled: #f5f5f5;
    --color-alert: #C40000;
    --color-warning: #F99106;
    --btn-transparent-color: #004B96;
    --btn-transparent-hover-bg: #C1D2E4;
    --btn-transparent-active-bg: #C1D2E4;
    --btn-transparent-disabled: #434A54;
    --btn-border-radius: 0.5rem;
    --header-btn-hover-bg: #15599d;
    --transition-default: 0.25s linear;
    --content-border-default: 0.25rem solid var(--color-primary);
    --border-radius-default: 1rem;
    --shadow-default: 0px 0px 8px 1px rgba(110, 110, 110, 0.30);
    --shadow-content: 0px 0px 5px 1px rgba(110, 110, 110, 0.30);
    --shadow-input: 0px 0px 1px 1px rgba(110, 110, 110, 0.30);
    --shadow-nav: 5px 0px 5px 0px rgba(110, 110, 110, 0.30);
    --shadow-focus: 0px 0px 5px 0px rgba(0, 75, 150, 0.50);
    --nav-inactive: #808080;
    --toggle-background: #004B96;
    --toggle-inner: #ffffff;
    --search-background: #F2F2F2;
    --color-disabled: #F2F2F2;
    --range-color: #808080;
    --picker-hover-bg: #C1D2E4;
    --min-input-width: 25rem;
    --mask-background: rgba(0, 0, 0, 0.6);
    --mask-filter: blur(5px);
    --grey: #888;
    --nav-width: 64px;
    --nav-expanded-width: 300px;
}


/*----- TEMP STUFF -----*/
#btn_chat {
    position: relative;
}

#chat_total_count {
    bottom: 1rem;
    right: 0;
    width: 17px;
    height: 17px;
    display: none;
    position: absolute;
    font-size: 10px;
    background: var(--color-warning);
    text-align: center;
    font-family: Roboto, arial, sans-serif;
    line-height: 17px;
    border-radius: 50%;
}

/*----------------------*/

#chat {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    display: none;
    padding: 0;
    position: absolute;
    background: var(--mask-background);
    backdrop-filter: var(--mask-filter);
}

#chat .avatar {
    overflow: hidden;
    flex-grow: 0;
    background: #EEE;
    flex-shrink: 0;
    border-radius: 50%;
}

#chat .avatar i {
    color: var(--color-primary);
}

#chat .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


#chat .profile .avatar {
    cursor: pointer;
    height: 40px;
    margin: 5px 10px;
    flex-basis: 40px;
    user-select: none;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
}

#chat .profile .avatar i {
    font-size: 20px;
}


#chat .message .avatar {
    height: 30px;
    flex-basis: 30px;
    user-select: none;
    margin-bottom: 13px;
}

#chat .message .avatar i {
    font-size: 15px;
}


#chat .messages .newMessages {
    display: flex;
    position: relative;
    border-top: thin solid #990F02;
    margin-bottom: 15px;
    justify-content: end;
}

#chat .messages .newMessages span {
    top: -7px;
    color: white;
    height: 13px;
    display: flex;
    padding: 0 4px 0 2px;
    position: absolute;
    font-size: 10px;
    background: #990F02;
    font-weight: 500;
    justify-self: initial;
    border-radius: 0 5px 5px 0;
    text-transform: uppercase;
}

#chat .messages .newMessages span svg {
    top: 0;
    fill: #990F02;
    width: auto;
    height: 13px;
    display: block;
    position: absolute;
}

#chat .messages .newMessages span svg:nth-child(1) {
    left: -9px;
}


#chat .chatWindow {
    height: 100%;
    margin: 0 auto;
    display: flex;
    max-width: 1024px;
    background: var(--bg-content);
    box-shadow: var(--shadow-content);
    flex-direction: column;
}


#chat .employeeList .avatar {
    height: 40px;
    flex-basis: 40px;
    margin-right: 10px;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
}

#chat .employeeList .avatar i {
    font-size: 23px;
}

#chat .goToLastPost {
    right: 5px;
    bottom: 10px;
    opacity: 0;
    z-index: 1;
    position: absolute;
    transition: opacity 1s;
}

#chat .goToLastPost .button {
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    background: rgba(200, 200, 200, 0.5);
    align-items: center;
    border-radius: 50%;
    justify-content: center;
}

#chat .goToLastPost .button i {
    font-size: 15px;
    padding-top: 6px;
}

#chat .goToLastPost .newPosts {
    top: -5px;
    color: white;
    right: -2px;
    width: 17px;
    height: 17px;
    position: absolute;
    font-size: 10px;
    background: var(--color-warning);
    text-align: center;
    line-height: 17px;
    border-radius: 50%;
}


#chat .profileDetails .avatar {
    width: 150px;
    flex-basis: 150px;
    margin-top: 20px;
    user-select: none;
    margin-bottom: 10px;
}

#chat .profileDetails .avatar i {
    font-size: 80px;
}


.chatWindow .scrollWrapper {
    height: 100%;
    position: relative;
}

.chatWindow .chatHeader {
    flex: 0 0 48px;
    display: flex;
    padding: 0;
    align-items: center;
    border-bottom: 1px solid lightgray;
    flex-direction: row;
}

.chatWindow .chatHeader .title {
    flex: 1 1 100%;
    display: flex;
    font-size: 20px;
    font-weight: 500;
}

.chatWindow .chatHeader .close {
    color: var(--color-primary);
    width: 30px;
    border: transparent;
    cursor: pointer;
    height: 30px;
    display: flex;
    font-size: 19px;
    box-shadow: none;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.chatWindow .chatHeader #btn_notificationPrompt {
    color: var(--color-primary);
    width: 30px;
    border: transparent;
    cursor: pointer;
    height: 30px;
    display: flex;
    font-size: 19px;
    box-shadow: none;
    align-items: center;
    justify-content: center;
    background: transparent;
    margin-right: 10px;
}

.chatWindow .chatWrapper {
    flex: 0 1 100%;
    display: block;
    flex-direction: row;
}

.chatWindow .chatWrapper .employeeList {
    flex: 0 0 200px;
    display: none;
    flex-direction: column;
}

.chatWindow .chatWrapper .employeeList .filter {
    flex: 0 0 60px;
    display: flex;
    padding: 0 10px;
    align-items: center;
}

.chatWindow .chatWrapper .employeeList .filter input {
    flex: 1 1 auto;
    color: var(--color-primary);
    width: 100%;
    border: transparent;
    height: 30px;
    padding: 0 10px 0 20px;
    background: #EEE;
    box-shadow: none;
    border-radius: 15px 0 0 15px;
    margin: .5rem 0;
}

.chatWindow .chatWrapper .employeeList .filter .button {
    flex: 0 0 auto;
    color: var(--color-primary);
    width: 30px;
    border: transparent;
    height: 30px;
    display: flex;
    font-size: 19px;
    background: #EEE;
    box-shadow: none;
    align-items: center;
    border-radius: 0 15px 15px 0;
    padding-right: 5px;
}

.chatWindow .chatWrapper .employeeList .employees {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    position: absolute;
    overflow-y: scroll;
}

.chatWindow .chatWrapper .employeeList .employees .employee {
    cursor: pointer;
    display: flex;
    padding: 0 10px;
    position: relative;
    min-height: 54px;
    align-items: center;
    user-select: none;
}

.chatWindow .chatWrapper .employeeList .employees .employee:hover,
.chatWindow .chatWrapper .employeeList .employees .employee.selected {
    color: var(--color-primary);
    background: lightsteelblue;
}

.chatWindow .chatWrapper .employeeList .employees .employee .posts {
    top: 5px;
    left: 5px;
    color: white;
    width: 17px;
    height: 17px;
    position: absolute;
    font-size: 10px;
    background: var(--color-warning);
    text-align: center;
    line-height: 17px;
    border-radius: 50%;
}

.chatWindow .chatWrapper .employeeList .employees .employee .name {
    flex: 1 1 auto;
    font-weight: bold;
}

.chatWindow .chatWrapper .employeeList .bottom {
    /*flex: 0 0 58px;*/
    display: none;
    /*border-top: 1px solid lightgray;*/
}

.chatWindow .chatWrapper .chatCanvas {
    flex: 0 1 100%;
    border-left: 1px solid lightgray;
    border-right: 1px solid lightgray;
    flex-direction: column;
    display: none;
}

.chatWindow .chatWrapper .chatCanvas .profile {
    display: none;
    align-items: center;
    border-bottom: 1px solid lightgray;
    flex-direction: row;
}

.chatWindow .chatWrapper .chatCanvas .profile.show {
    display: flex;
}

.chatWindow .chatWrapper .chatCanvas .profile .info {
    flex: 1 1 100%;
}

.chatWindow .chatWrapper .chatCanvas .profile .info .name {
    font-weight: bold;
}

.chatWindow .chatWrapper .chatCanvas .profile .info .lastSeen {
    font-size: .9rem;
}

.chatWindow .chatWrapper .chatCanvas .messages {
    top: 0;
    flex: 0 0 100%;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    padding: 0 20px;
    position: absolute;
    overflow-y: scroll;
    flex-direction: column;
}

.chatWindow .chatWrapper .chatCanvas .messages .message {
    width: 80%;
    display: flex;
    padding: 0;
    align-self: start;
    align-items: center;
    margin-bottom: 15px;
    flex-direction: row;
}

.chatWindow .chatWrapper .chatCanvas .messages .message.unread {
}

.chatWindow .chatWrapper .chatCanvas .messages .message.error {
    color: red;
    width: 90%;
    padding: 10px;
    align-self: center;
    background: pink;
    font-weight: bold;
    border-radius: 10px;
    justify-content: center;
}

.chatWindow .chatWrapper .chatCanvas .messages .message.sender {
    align-self: end;
    flex-direction: row-reverse;
}

.chatWindow .chatWrapper .chatCanvas .messages .message .textWrapper {
    margin-left: 10px;
    margin-right: 0;
    overflow: hidden;
}

.chatWindow .chatWrapper .chatCanvas .messages .message .textWrapper .text {
    flex: 0 1 100%;
    color: var(--color-primary);
    padding: 10px;
    background: #EEE;
    border-radius: 10px;
    word-wrap: break-word;
}

.chatWindow .chatWrapper .chatCanvas .messages .message.sender .textWrapper {
    margin-left: 0;
    margin-right: 10px;
}

.chatWindow .chatWrapper .chatCanvas .messages .message.sender .textWrapper .text {
    color: #EEE;
    background: var(--color-primary);
}

.chatWindow .chatWrapper .chatCanvas .chatBox {
    flex: 1 0 58px;
    display: flex;
    padding: 5px 10px;
    position: relative;
    border-top: 1px solid lightgray;
    align-items: center;
}

.chatWindow .chatWrapper .chatCanvas .chatBox.overflow {
    background: pink;
}

.chatWindow .chatWrapper .chatCanvas .chatBox.overflow textarea {
    color: red;
}

.chatWindow .chatWrapper .chatCanvas .chatBox.overflow button {
    display: none;
}

.chatWindow .chatWrapper .chatCanvas .chatBox.disabled button,
.chatWindow .chatWrapper .chatCanvas .chatBox.disabled textarea {
    display: none;
}

.chatWindow .chatWrapper .chatCanvas .chatBox.disabled .disabled {
    display: flex;
}

.chatWindow .chatWrapper .chatCanvas .chatBox .disabled {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    position: absolute;
    background: #EEE;
    align-items: center;
    justify-content: center;
}

/*#chatEditor {*/
/*  flex:       1 1 100%;*/
/*  display:    none;*/
/*  max-height: 80px;*/
/*  overflow-y: scroll;*/
/*}*/

/*#chatEditor:focus {*/
/*  outline: 0 solid transparent;*/
/*}*/

.chatWindow .chatWrapper .chatCanvas .chatBox textarea {
    flex: 1 1 100%;
    resize: none;
    border: none;
    outline: none;
    overflow: hidden;
    font-size: 1rem;
    background: transparent;
    font-family: Roboto, Arial, sans-serif;
    margin-right: 20px;
    /*display: none;*/
}

.chatWindow .chatWrapper .chatCanvas .chatBox button {
    color: var(--color-primary);
    width: 30px;
    border: transparent;
    cursor: pointer;
    height: 30px;
    display: flex;
    font-size: 19px;
    box-shadow: none;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.chatWindow .chatWrapper .profileDetails {
    flex: 0 0 240px;
    display: none;
    position: relative;
}

.chatWindow .chatWrapper .profileDetails .close {
    top: 5px;
    left: 5px;
    color: var(--color-primary);
    cursor: pointer;
    position: absolute;
}

.chatWindow .chatWrapper .profileDetails .profile {
    display: flex;
    align-items: center;
    border-bottom: 1px solid lightgray;
    flex-direction: column;
    padding-bottom: 10px;
}

.chatWindow .chatWrapper .profileDetails .profile .name {
    font-size: 12px;
    text-align: center;
    font-weight: bold;
}

.chatWindow .chatWrapper .profileDetails.show {
    display: block;
}


/* -> removed as it is not used

<div class="loaderWrapper">
  <div class="chatLoader"></div>
</div>

#chat .loaderWrapper {
  width:           100%;
  height:          100%;
  display:         flex;
  align-items:     center;
  justify-content: center;
}

#chat .chatLoader {
  width:              50px;
  border:             4px solid #0000;
  display:            grid;
  animation:          l15 1s infinite linear;
  aspect-ratio:       1;
  border-radius:      50%;
  border-right-color: #25B09B;
}

#chat .chatLoader::before,
#chat .chatLoader::after {
  border:        inherit;
  margin:        2px;
  content:       '';
  animation:     l15 2s infinite;
  grid-area:     1/1;
  border-radius: 50%;
}

#chat .chatLoader::after {
  margin:             8px;
  animation-duration: 3s;
}

@keyframes l15 {
  100% {
    transform: rotate(1turn)
  }
}
*/

#btn_chatBack {
    font-weight: 700;
    color: var(--RS_blue_dark);
    padding: 14px;
    margin-right: 1rem;
}

#btn_chatBack i:before {
    font-weight: 900;
}

.chatWindow .chatWrapper .profileDetails.chat_active,
.chatWindow .chatWrapper .employeeList.chat_active {
    display: block;
    height: 100%;
}

.chatWindow .chatWrapper .chatCanvas.chat_active {
    display: block;
    height: 100%;
}

.chatWindow .scrollWrapper {
    height: calc(100% - 51px - 165px);
}

.chatWindow .employeeList .scrollWrapper {
    height: calc(100% - 51px);
}
