* {
  padding: 0;
  margin: 0;
  border: 0;
  font-family: "roboto", sans-serif;
  box-sizing: border-box;
}

body {
  background-color: #212d3d;
  overflow: hidden;
}

a {
  text-decoration: none;
}

button {
  border-radius: 5px;
  cursor: pointer;
}
button:focus {
  outline: 0;
}

input:focus, textarea:focus, button:focus {
  outline: 0;
}

input:focus {
  box-shadow: 0 0px 0px 1px #495867 !important;
}

.flg-added-text {
  color: #5d9f6b;
}

/* Nav */
#flag-page nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 10px;
  background-color: #344555;
  color: white;
  font-size: 14px;
  cursor: default;
  position: relative;
  z-index: 999;
}

.flg-nav-section-name {
  font-size: 16px;
  font-weight: 500;
}

.flg-nav-badge {
  height: 22px;
  padding: 2px 8px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  background-color: #273747;
}
.flg-nav-badge img {
  width: 12px;
  height: 12px;
  margin-right: 5px;
  vertical-align: middle;
}
.flg-nav-badge span {
  font-weight: 500;
  vertical-align: middle;
}

#flag-page main {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  box-sizing: border-box;
}

.flg-chat-container {
  border: 3px solid #223140;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.flg-chat {
  background-color: #273747;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.flg-chat-body {
  background-color: #273747;
  padding: 5px;
  display: flex;
  align-items: stretch;
  height: 100%;
}

.flg-chat-messages-container {
  overflow-y: auto;
  padding: 0 5px 0 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.flg-chat-messages-load-previous {
  text-align: center;
}
.flg-chat-messages-load-previous button {
  background-color: #212d3d;
  color: #8f9498;
  font-size: 12px;
  padding: 6px 12px;
  margin-bottom: 6px;
}

.flg-chat-messages {
  height: 0;
}

.flg-chat-message {
  display: flex;
  margin-bottom: 10px;
  align-items: center;
}
.flg-chat-message:last-child {
  margin-bottom: 0;
}

.flg-chat-message-highlight {
  background-color: rgba(93, 159, 107, 0.13);
  border-radius: 5px;
  padding: 4px;
}

.flg-chat-messages-date {
  text-align: center;
  color: #949494;
  font-size: 14px;
  margin-bottom: 8px;
  padding: 4px;
  border-radius: 3px;
}

.flg-chat-message-avatar {
  display: inline-block;
  vertical-align: middle;
  position: relative;
}
.flg-chat-message-avatar img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  position: relative;
  top: 2px;
}

.flg-chat-message-bubble {
  display: inline-block;
  font-size: 12px;
  vertical-align: middle;
  border-radius: 5px;
}

.flg-chat-message-text {
  max-width: 500px;
  word-break: break-word;
  padding: 8px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  margin: 0;
  overflow-wrap: anywhere;
}

.flg-chat-message-image {
  padding: 8px;
  width: 125px;
  height: 125px;
}

.flg-chat-message-bubble-bottom {
  padding: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.flg-chat-message-time, .flg-chat-message-staff-id {
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 11px;
  text-align: center;
  display: inline-block;
  margin-left: 5px;
}

.flg-flag-message {
  display: flex;
  justify-self: flex-end;
  align-items: center;
  border-radius: 2px;
  cursor: pointer;
  float: right;
}
.flg-flag-message svg {
  width: 12px;
  height: 12px;
  vertical-align: middle;
}

.flg-flag-message-flagged, .flg-chat-message-flagged-by {
  -webkit-user-select: none;
          user-select: none;
  background-color: #ec5555;
  border-radius: 3px;
  padding: 2px 4px;
  color: white;
  margin-left: 5px;
}
.flg-flag-message-flagged svg, .flg-chat-message-flagged-by svg {
  width: 10px;
  height: 10px;
  margin-right: 2px;
  position: relative;
  bottom: 1px;
}
.flg-flag-message-flagged svg path, .flg-chat-message-flagged-by svg path {
  fill: white !important;
}

.flg-chat-message-flagged-by {
  margin-right: 5px;
}

.flg-flagged-message-text,
.flg-chat-message-staff-id,
.flg-chat-message-flagged-by {
  font-size: 11px;
  display: inline-block;
}

.flg-chat-message-profile .flg-chat-message-bubble {
  background-color: #3d4d5d;
  color: #aeb2b7;
}
.flg-chat-message-profile .flg-chat-message-bubble-bottom {
  background-color: #354758;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}
.flg-chat-message-profile .flg-flag-message path {
  fill: #a2a2a2;
}
.flg-chat-message-profile .flg-chat-message-avatar {
  margin-right: 2px;
}
.flg-chat-message-profile .flg-chat-message-time, .flg-chat-message-profile .flg-chat-message-staff-id {
  background-color: #3d4d5d;
}

.flg-chat-message-user {
  justify-content: flex-end;
}
.flg-chat-message-user .flg-chat-message-bubble {
  background-color: #223140;
  color: #aeb2b7;
}
.flg-chat-message-user .flg-chat-message-bubble-bottom {
  background-color: #1e2c3a;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}
.flg-chat-message-user .flg-flag-message path {
  fill: white;
}
.flg-chat-message-user .flg-chat-message-avatar {
  margin-left: 2px;
}
.flg-chat-message-user .flg-chat-message-time, .flg-chat-message-user .flg-chat-message-staff-id {
  background-color: #223140;
}

/*
  Start: Trigger message styles
*/

.flg-chat-message-profile.flg-chat-message-trigger .flg-chat-message-bubble {
  background-color: #273747 !important;
  border: 1px solid #5d9f6b !important;
}
.flg-chat-message-profile.flg-chat-message-trigger .flg-chat-message-bubble-bottom {
  background-color: #273747 !important;
}
.flg-chat-message-profile .flg-chat-message-trigger-tag {
  margin-left: 4px;
  color: white;
}

.flg-chat-footer {
  background-color: #344555;
  padding: 5px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.flg-final-decision-head-text {
  color: #a9a9a9;
  font-size: 14px;
  font-weight: 500;
  margin: 0 auto;
}

.flg-final-decision-staff-id {
  font-weight: 600;
  cursor: pointer;
  color: white;
}

.flg-final-decision-head {
  display: flex;
  align-items: center;
  padding: 10px 15px 15px;
  flex-direction: column;
}

.flg-final-decision-comment {
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  border-left: 2px solid #516374;
  padding: 5px;
  color: #8f8f8f;
  font-size: 13px;
  background-color: #273747;
  margin-top: 10px;
}

.flg-final-decision-body {
  text-align: center;
  padding: 15px;
  background-color: #3F5060;
  border-radius: 5px;
}

.flg-final-decision-body-text {
  color: white;
  font-size: 14px;
  font-weight: 500;
}

.flg-final-decision-body-controls {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.flg-final-decision-btn {
  width: 90px;
  height: 30px;
  color: white !important;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flg-final-decision-btn img, .flg-final-decision-btn svg {
  width: 12px;
  height: 12px;
  margin-right: 4px;
}

.flg-final-decision-btn-yes {
  background-color: #5d9f6b;
  margin-right: 5px;
}

.flg-final-decision-btn-no {
  background-color: #ec5555;
}
.flg-final-decision-btn-no svg {
  width: 11px;
  height: 11px;
}

.flg-final-decision-stopped-conversation {
  display: none;
}

::-webkit-scrollbar {
  width: 4px;
  cursor: grab;
}

::-webkit-scrollbar-thumb {
  cursor: grab !important;
  background-color: #5d9f6b;
  outline: 1px solid slategrey;
  border-radius: 5px;
}

::-webkit-scrollbar-track {
  background-color: #344555;
  border-radius: 5px;
  cursor: grab;
}

.flg-nav-badge-status-high {
	background-color: #E22117;
}

.flg-nav-badge-status-mid {
	background-color: #F2680A;
}

.flg-nav-badge-status-low {
	background-color: #25D843;
}

/**

Start: Notification modal styles

**/

.flg-modal-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  z-index: 99999;
}

.flg-modal {
  background-color: #ffffff;
  width: 500px;
  margin: 60px auto 0;
  border-radius: 8px;
}

.flg-modal-head {
  background-color: #212d3d;
  color: #ffffff;
  padding: 15px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  display: flex;
  align-items: center;
}

.flg-modal-title {
  text-transform: capitalize;
  font-weight: 500;
  font-size: 14px;
  display: inline-block;
}

.flg-modal-body {
  background-color: #3b4b5c;
  padding: 15px;
  text-align: center;
}

.flg-modal-body-text {
  color: #a2a2a2;
  margin: 10px;
  font-size: 14px;
}

.flg-modal-body-decision-confirmation {
  display: none;
}

.flg-modal-body-decision-confirmation > div {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #495869;
  color: white;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 4px;
  margin: 10px 0;
}

.flg-modal-body-decision-confirmation img {
  width: 18px;
  height: 18px;
  margin-right: 8px;
}

/**

End: Notification modal styles

**/

@media screen and (max-width: 1250px) {
  .flg-chat-message-image {
    width: 115px;
    height: 115px;
  }
}
@media screen and (max-width: 1100px) {
  .flg-chat-section-body {
    padding: 10px 5px 0 5px;
  }
}
@media screen and (max-width: 1000px) {
  .flg-chat-message-image {
    width: 105px;
    height: 105px;
  }

  .flg-chat-message-bubble {
    max-width: 100%;
  }

  .flg-chat-message-avatar img {
    width: 25px;
    height: 25px;
  }
}
@media screen and (max-width: 850px) {
  .flg-chat-message-image {
    width: 90px;
    height: 90px;
  }

  .flg-chat-message-avatar img {
    width: 20px;
    height: 20px;
  }
}