:root {
  --uq: #51247a;
  --scFont: sans-serif, system-ui, "Roboto", "Helvetica Neue", "Noto Sans",
    "Liberation Sans", Arial, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", "Noto Color Emoji";
}

body {
  font-family: var(--scFont);
}

/* Layout */
.page-wrap {
  display: flex;
}

.force-size {
  height: 500px;
}

.navigation-bar {
  display: flex;
  min-height: 100vh;
}

.content-wrapper {
  width: 100% !important;
}

.warning-flash {
  animation: flasher 2s linear infinite;
  color: white !important;
  background-color: var(--bs-danger);
}

@keyframes flasher {
  50% {
    opacity: 0;
  }
}

/* Navigation */
@media (max-width: 767px) {
  /* Nav top */
  .navbar-container {
    width: 100%;
    border-bottom: var(--bs-border-width) var(--bs-border-style)
      var(--bs-border-color) !important;
    margin-bottom: 0.25rem;
    display: flex;
    flex-direction: row;
    border-bottom: var(--bs-border-width) var(--bs-border-style)
      var(--bs-border-color) !important;
  }

  .navbar-nav {
    display: flex;
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  /* Nav side */
  .navbar-container {
    display: flex;
    flex-direction: column;
    border-right: var(--bs-border-width) var(--bs-border-style)
      var(--bs-border-color) !important;
    position: fixed;
    height: 100vh;
  }

  .navbar-nav {
    display: flex;
    flex-direction: column;
  }

  .content-wrapper {
    margin-left: 65px;
  }
}

.navbar-item-icon {
  padding: 0.5rem;
}

.sidebar-wrapper {
  height: 100vh;
}

.nav-link {
  margin-top: 0.25rem !important;
  margin-bottom: 0.25rem !important;
  margin-right: 0.5rem !important;
  margin-left: 0.5rem !important;
  text-align: center;
  border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
  width: 3rem;
  height: 3rem;
}

.nav-link :hover {
  color: rgb(192, 192, 192);
}

.nav-link .fas {
  width: 100%;
}

/* Content */
.content-wrapper {
  width: 100%;
}

/* Metric cards */
.card {
  padding: 0px !important;
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15) !important;
  max-width: 25%;
}

.metric-card-group .card {
  width: auto;
}

.card-header {
  font-weight: bold;
}

.CardTable {
  padding: 0px !important;
}

.card .card-header[data-bs-toggle="collapse"]::after {
  content: "\F14B";
  font-family: "bootstrap-icons";
  color: #d1d3e2;
}

.card .card-header[data-bs-toggle="collapse"].collapsed::after {
  content: "\F14C";
}

.metric-cards-group {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  font-size: smaller;
  width: 100%;
}

.metric-card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.metric-card-title {
  text-transform: uppercase;
  font-size: small;
  font-weight: bold;
}

.metric-pill {
  font-size: medium;
}

.metric-value {
  display: flex;
  align-items: flex-end;
  font-size: large;
}

/* General */
.border-left-primary {
  border-left: 0.25rem solid var(--bs-primary) !important;
}

.border-left-success {
  border-left: 0.25rem solid var(--bs-success) !important;
}

.border-left-info {
  border-left: 0.25rem solid var(--bs-info) !important;
}

.border-left-warning {
  border-left: 0.25rem solid var(--bs-warning) !important;
}

.border-left-danger {
  border-left: 0.25rem solid var(--bs-danger) !important;
}

.card-full {
  width: 100% !important;
  max-width: 100% !important;
}

.btn-floating-group {
  position: fixed;
  right: 40px;
  bottom: 49px;
  width: fit-content;
  min-width: 180px;
  height: 60px;
  display: flex;
  flex-direction: column-reverse;
}

.btn-floating-group button {
  width: 100% !important;
  height: 50px !important;
  margin: 0.25rem !important;
}

.settings-group {
  padding-bottom: 1.25rem !important;
}

/* Call Modal */
.callConnectionBar {
  margin: -15px;
  padding-bottom: 20px;
}

.dtmf-button-group {
  width: 100%;
}

.popover-close {
  margin-left: 90% !important;
  margin-bottom: 5% !important;
}

.wrapup-group {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 5px;
}

.wrapup-button {
  width: 30%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: pre-line;
}

.customer-profile {
  width: 100%;
  margin-bottom: 0.5rem !important;
}

.customer-profile .form-label {
  margin-bottom: 0px !important;
}

.force-break {
  display: inline;
}

.force-break::after {
  content: "\A";
  white-space: pre;
}

/* Chat Modal */
.chat-container {
  position: fixed;
  bottom: 0;
  right: 0;
  width: calc(100% - 70px);
  height: 30px;
  z-index: 2;
  display: flex;
  flex-direction: row-reverse;
  text-align: center;
}

@media (max-width: 768px) {
  .chat-container {
    flex-direction: row-reverse;
    height: fit-content;
    display: flex;
    width: 100% !important;
  }

  .chat-contact {
    height: 2rem;
  }

  .chat-interface {
    width: 95%;
    position: absolute !important;
    left: 0px;
    margin-left: 1rem;
    margin-right: 1rem;
    bottom: 2.5rem !important;
    max-height: 85vh;
  }
  .chat-button {
    overflow: hidden;
  }
}

.chat-contact {
  display: flex;
  border: var(--bs-border-color) 1px solid;
  border-radius: 10px 10px 0px 0px;
  margin-left: 5px;
  flex-direction: column-reverse;
  text-align: center;
}

.chat-contact.active {
  background: var(--bs-secondary-bg);
}

.chat-contact.unread {
  -moz-transition: all 0.5s ease-in-out;
  -webkit-transition: all 0.5s ease-in-out;
  -o-transition: all 0.5s ease-in-out;
  -ms-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
  -moz-animation: blink normal 1.5s infinite ease-in-out;
  /* Firefox */
  -webkit-animation: blink normal 1.5s infinite ease-in-out;
  /* Webkit */
  -ms-animation: blink normal 1.5s infinite ease-in-out;
  /* IE */
  animation: blink normal 1.5s infinite ease-in-out;
}

@keyframes blink {
  0% {
    background-color: var(--bs-border-color);
  }
  50% {
    background-color: var(--bs-orange);
  }
  100% {
    background-color: var(--bs-border-color);
  }
}
@-webkit-keyframes blink {
  0% {
    background-color: var(--bs-border-color);
  }
  50% {
    background-color: var(--bs-orange);
    color: black;
  }
  100% {
    background-color: var(--bs-border-color);
  }
}

.chat-interface {
  position: relative;
  bottom: 1rem;
  height: 700px;
  min-height: 700px;
  background-color: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  background: var(--bs-body-bg);
}

.chat-title {
  background-color: rgba(var(--bs-body-color-rgb), 0.03);
  padding: 5px;
  border-bottom: 1px solid #d3d3d3;
}

.chat-button {
  cursor: pointer;
  user-select: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-messages {
  overflow-y: scroll;
  border: black 1px solid;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-message-info {
  font-size: x-small;
}

.chat-message-info.agent {
  text-align: right;
}

.chat-message-info.customer {
  text-align: left;
}

.chat-message {
  width: 100%;
  display: block;
}

.chat-message-text {
  padding: 5px;
  margin: 5px;
  border-radius: 5px;
  padding: 0.5rem;
}

.chat-message-text p {
  margin: 0;
  overflow-wrap: break-word;
}

.chat-message-text.agent {
  float: right;
  background: #abcdef;
  color: black;
  text-align: right;
}

.chat-message-text.customer {
  float: left;
  background: #ededed;
  color: black;
  text-align: left;
}

.chat-message-input-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  height: 20%;
  overflow: hidden;
}

.chat-message-text-input {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.chat-message-text-editor {
  height: 70%;
  overflow: hidden;
}

.chat-toolbar {
  height: 2.5rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  background: none;
}

/* Video call Modal */
.video-call-column {
}

.chime-video {
  width: 100%;
  max-height: 100%;
  padding: 0.1rem;
}

/* Chime Message */
.chime-message-notification {
  position-anchor: --chime-chat;
  position: absolute;
  margin-top: -15px;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.ChimeMessageContainer {
  max-height: 90%;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  overflow-y: scroll;
  align-content: flex-start;
}

.chat-bubble {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
}

.chat-bubble.customer {
  align-items: flex-start;
}

.chat-bubble.agent {
  align-items: flex-end;
}

.chat-bubble-message {
  width: fit-content;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  border-radius: 0.25rem;
}

.chat-bubble-message.customer {
  background-color: var(--uq);
  color: white;
}

[data-bs-theme="dark"] .chat-bubble-message.agent {
  background-color: dimgray;
}

[data-bs-theme="light"] .chat-bubble-message.agent {
  background-color: gainsboro;
}

/* Agent Table */
.agent-table {
  text-align: left;
  margin-bottom: 0px;
}

.agent-table th {
  font-weight: 500;
}

.agent-table td {
  font-weight: 200;
  font-size: smaller;
}

/* Transfer modal */
.transferSearchContainer {
  height: 90%;
  min-height: 250px;
}

.contact-favorite {
  color: rgb(229, 82, 82);
}

.contact-regular {
  color: rgb(191, 191, 191);
}

.transfer-contact-button {
  width: 90%;
}

[data-bs-theme="dark"] .sc-button-outline {
  color: white;
  border-color: white;
}

[data-bs-theme="light"] .sc-button-outline {
  color: black;
  border-color: black;
}

/* Application Communications */
.CommunicationMessage {
  overflow-x: auto;
}

.CommunicationMessage img {
  width: -webkit-fill-available;
}

/* Outage controls */
.outage-content {
  height: 30rem;
  margin-top: 1.5rem;
}

.outageDateText {
  font-size: small;
}

/* SMS */
.carousel-item p {
  margin-left: 4rem;
  margin-right: 4rem;
}

.carousel-item.sms-preview {
  transition: transform 0s ease-in-out !important;
}

div#smsPreviewContainer {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.sendSMSButton {
  width: 50%;
}

[data-bs-theme="light"] .carousel-control-previous-icon {
  filter: invert(100%);
}

[data-bs-theme="light"] .carousel-control-next-icon {
  filter: invert(100%);
}
