.modal-dialog {
  display: flex !important;
  align-items: center;
  min-height: calc(100% - var(--bs-modal-margin) * 2);
}

@media (max-width: 767.98px) {

  .alert,
  .card {
    border-left: none !important;
    border-right: none !important;
    border-radius: 0 !important;
  }

  .sc-alert-cards .sc-alert-cards__alert:first-child {
    border-top: none !important;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }

  .no-top-border-md {
    border-top: none !important;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }

  .fs-14 {
    font-size: 14px !important;
  }

  .modal-dialog {
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100% !important;
    align-items: end;
  }

  .modal-content {
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
  }

  .btn-circle {
    border-radius: 50rem !important;
  }
}

.modal-header {
  background-color: var(--body-bg) !important;
  border-color: var(--bs-border-color-translucent) !important;
}

.modal-footer {
  border-color: var(--bs-border-color-translucent) !important;
}

.sticky {
  position: sticky;
  z-index: 1020;
}

.modal-body {
  font-size: 14px !important;
}

.no-top-border {
  border-top: none !important;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.no-bottom-border,
.sc-alert-cards.no-bottom-border .sc-alert-cards__alert:first-child {
  border-bottom: none !important;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

@media (min-width: 768px) {
  .rounded-md-end {
    border-top-right-radius: 0.25rem !important;
    border-bottom-right-radius: 0.25rem !important;
  }
}

.sc-alert-cards {
  background-color: var(--body-bg);
}

.sc-alert-cards .sc-alert-cards__alert.clickable {
  cursor: pointer !important;
}

.sc-alert-cards .sc-alert-cards__alert.clickable:not([role]),
.sc-alert-cards .sc-alert-cards__alert.clickable[role=""] {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  user-select: none !important;
}

.card {
  --bs-card-cap-bg: rgb(247 247 247);
}

.form-check-input:checked,
.form-check-input:indeterminate {
  background-color: var(--bs-secondary) !important;
  border-color: var(--bs-secondary) !important;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus,
.form-select:focus {
  box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb), .25);
}

.btn-close {
  transform: scale(.75);
}

.fw-semibold,
.badge {
  font-weight: 500 !important;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  --body-bg: rgb(255, 255, 255);
}

body.app {
  /* --body-bg: rgb(241, 241, 241); */
  margin-bottom: 60px;
}

body {
  background-color: var(--body-bg) !important;
}

body.scroll-locked {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

a {
  text-underline-offset: 3px;
}


.cursor-pointer {
  cursor: pointer;
}


ul.inside-list {
  list-style-position: inside;
  padding-left: 0;
}


#titleBar {
  background-color: var(--body-bg) !important;
  border-color: var(--bs-border-color-translucent) !important
}


.form-label {
  margin-bottom: 0;
}


.fullscreen {
  position: fixed;
  border: 0;
  inset: 0;
}


.sc-search * {
  --bs-border-color: var(--bs-card-border-color) !important;
}

.sc-search__q {
  padding-right: 37px;
}

.sc-search__btn-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.sc-search__spinner {
  position: absolute;
  right: 14px;
  top: calc(50% - 2px);
  transform: translateY(calc(-50% + 2px));
}


.has-value::after {
  position: absolute;
  border-radius: 50%;
  width: 6px;
  height: 6px;
  background-color: currentColor;
  content: '';
}

.sc-search:has(.sc-search__q:placeholder-shown) .sc-search__btn-search i:first-of-type::after {
  display: none;
}

.sc-search__entity-icon {
  font-size: 64px
}

.sc-search .card-header {
  background-color: var(--bs-white);
}

.sc-search .card-header .btn {
  --bs-btn-border-width: 0;
  --bs-btn-border-style: none;
}

.sc-search-header-columns {
  background-color: rgb(247 247 247);
}

@media (hover: hover) and (pointer: fine) {
  .sc-search .card-body.grid-hover>.row:hover:not(.highlighted.active) {
    background-color: var(--bs-card-cap-bg);
  }

  .clickable-area:hover {
    background-color: var(--bs-gray-100);
  }
}

.sc-search .card-body .highlighted {
  transition: background-color 0.3s ease;
}

.sc-search .card-body .highlighted.active {
  background-color: var(--bs-gray-100);
}


.sc-search .card-body>.row:not(:last-child) {
  border-bottom: 1px solid var(--bs-card-border-color);
}

@media (max-width: 767.98px) {
  .sc-search__q {
    padding-left: 0;
    padding-right: 29px;
    border: 0;
    border-radius: 0;
    outline: none;
    box-shadow: none;
  }

  .sc-search__q:focus {
    border: none;
    outline: none;
    box-shadow: none;
  }

  .sc-search__btn-clear {
    right: 0;
  }

  .sc-search__spinner {
    right: 2px;
  }
}


.connector {
  width: 307px;
  height: 300px;
  background-image: url('../connector.png');
  background-size: cover;
  background-position: center;
}

.petru {
  width: 32px;
  height: 32px;
  background-image: url('../petru.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%;
}

.connector-svg {
  width: 307px;
  height: 300px;
}

@media (max-width: 575.98px) {
  .connector {
    width: 64%;
  }

  .connector-svg {
    width: 64%;
    height: auto;
  }
}

@supports (aspect-ratio: 1) {
  .connector {
    height: auto;
    aspect-ratio: 307 / 300;
  }
}

.field-validation-error {
  color: var(--bs-danger);
  display: block;
}

.input-validation-error {
  border: 2px solid var(--bs-danger) !important;
  background-color: rgba(220, 53, 69, .1);
}

.field-validation-valid {
  display: none;
}


.sc-log__bullet {
  position: absolute;
  left: 13px;
  margin-top: -1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--bs-white);
  background-color: var(--bs-border-color);
  color: var(--bs-body-color);
}

.sc-log__bullet__multi-line-link {
  transition: botext-decoration .3s ease;
  text-decoration: underline dotted !important;
  -webkit-text-decoration: underline dotted !important;
  text-underline-offset: 3px;
  -webkit-text-underline-offset: 3px;
}

span[aria-expanded="true"].sc-log__bullet__multi-line-link {
  text-decoration: underline solid !important;
  -webkit-text-decoration: underline solid !important;
}


.text-decoration-underline-dotted {
  text-decoration: underline dotted !important;
  -webkit-text-decoration: underline dotted !important;
}

.text-decoration-underline-dotted:hover {
  text-decoration: underline solid !important;
  -webkit-text-decoration: underline solid !important;
}


.status-badge-secondary {
  color: var(--bs-dark);
  background-color: rgba(var(--bs-secondary-rgb), .32);
}

.status-badge-danger {
  color: var(--bs-dark);
  background-color: rgba(var(--bs-danger-rgb), .32);
}

.status-badge-warning {
  color: var(--bs-dark);
  background-color: rgba(var(--bs-warning-rgb), .48);
}

.status-badge-success {
  color: var(--bs-dark);
  background-color: rgba(var(--bs-success-rgb), .48);
}

.sc-form .multiselect {
  color: transparent;
  cursor: default;
  outline: 0;
  pointer-events: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  user-select: none !important;
}

.sc-form .pills {
  position: absolute;
  top: 27px;
  left: 13px;
}

.sc-form .pill-badge {
  box-sizing: border-box;
  padding-top: 0;
  padding-bottom: 0;
  height: 20px;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  user-select: none !important;
}

.sc-form .pill-badge:focus {
  border: 0;
  outline: 0;
  box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb), .25);
}


@media (max-width: 767.98px) {
  .sc-form-card.expandable {
    cursor: pointer;
  }
}


@keyframes shake {
  0% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-8px);
  }

  50% {
    transform: translateX(8px);
  }

  75% {
    transform: translateX(-8px);
  }

  100% {
    transform: translateX(0);
  }
}

.shake-animation {
  animation: shake .3s ease-in-out;
}

.hover-underline {
  text-decoration: none !important;
}

.hover-underline:hover {
  text-decoration: underline !important;
}

.lg-container {
  max-width: 992px;
}

.sm-container {
  max-width: 576px;
}

.highlight-tmp {
  transition: background-color 2s ease;
}

.clickable-area {
  cursor: pointer;
  transition: background-color .2s;
}

.no-caret::after {
  display: none !important;
}

.front-caret::before {
  display: inline-block;
  margin-right: .255em;
  vertical-align: .255em;
  content: "";
  border-top: .3em solid;
  border-right: .3em solid transparent;
  border-bottom: 0;
  border-left: .3em solid transparent;
}


#breakpoint-detector::after {
  content: "xs";
  color: var(--body-bg) !important;
}

@media (min-width: 576px) {
  #breakpoint-detector::after {
    content: "sm";
  }
}

@media (min-width: 768px) {
  #breakpoint-detector::after {
    content: "md";
  }
}

@media (min-width: 992px) {
  #breakpoint-detector::after {
    content: "lg";
  }
}

@media (min-width: 1200px) {
  #breakpoint-detector::after {
    content: "xl";
  }
}

@media (min-width: 1400px) {
  #breakpoint-detector::after {
    content: "xxl";
  }
}

.dropdown-item:active,
.dropdown-item.active {
  background-color: var(--bs-secondary);
  color: var(--bs-light);
  transition: background-color .2s, color .2s;
}


.overlay {
  position: absolute;
  background-color: rgba(255, 255, 255, .01);
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  pointer-events: all;
  cursor: default;
  opacity: 0;
  transition: opacity .15s ease-in-out;
}

.overlay.active {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
}

#kpis {
  border-top: 0;
  border-left: 1px solid var(--bs-card-border-color);
}

@media (max-width: 575.98px) {
  #kpis {
    border-top: 1px solid var(--bs-card-border-color);
    border-left: 0;
  }
}

#stats .btn-outline-secondary {
  --bs-btn-border-color: var(--bs-card-border-color);
  --bs-btn-color: var(--bs-body-color);
}

#stats .btn-outline-secondary:hover {
  --bs-btn-border-color: var(--bs-btn-hover-border-color);
}


#btnNew {
  width: 48px;
  height: 48px;
}


.incomming,
.outgoing {
  max-width: 86%;
}

.message {
  position: relative;
}

.message b {
  font-weight: 500 !important;
}

.incomming+.incomming,
.outgoing+.outgoing {
  margin-top: 1px;
}

.incomming+.outgoing,
.outgoing+.incomming {
  margin-top: 6px;
}

.incomming.message:not(:has(+ .incomming))::after,
.outgoing.message:not(:has(+ .outgoing))::after {
  content: "";
  position: absolute;
  bottom: 3px;
  width: 12px;
  height: 12px;
  background: inherit;
}

.outgoing.message:not(:has(+ .outgoing))::after {
  left: -6px;
  border-bottom-right-radius: 12px;
  clip-path: polygon(60% 0, 100% 100%, 0 100%);
}

.incomming.message:not(:has(+ .incomming))::after {
  right: -4px;
  border-bottom-left-radius: 12px;
  clip-path: polygon(60% 0, 100% 100%, 0 100%);
}