.mdi {
  text-align: center;
  width: 1.25em;
  font-size: 16px;
}

.notification-body {
  max-height: 20rem;
}

.clamp-1 {
  display: -webkit-box;
  line-clamp: 1;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-comment-card {
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-group-top-vr {
  height: 1rem;
}

.notification-group-top-vr>.vr {
  min-height: 0.75rem;
  margin-bottom: 0.25rem;
}

.offcanvas-full {
  width: calc(100% - 255px) !important;
}

.btn-group:has(> a.expand-multilevel-dropdown) {
  width: 100% !important;
}

@media (max-width: 992px) {
  .offcanvas-full {
    width: 100% !important;
  }
}

body[data-sidebar-size=sm] .offcanvas-full {
  width: calc(100% - 70px) !important;
}

body[data-layout=horizontal] .offcanvas-full {
  width: 100% !important;
}

body[data-sidebar-size=md] .offcanvas-full {
  width: calc(100% - 160px) !important;
}

body[data-sidebar-size=md][data-sidebar-size=sm] .offcanvas-full {
  width: calc(100% - 70) !important;
}

.offcanvas-responsive {
  min-width: 300px !important;
  width: 33% !important;
}

@media(max-width: 1200px) {
  .offcanvas-responsive {
    width: 50% !important;
  }
}

@media(max-width: 768px) {
  .offcanvas-responsive {
    width: 100% !important;
  }
}

.dropdown:has(button.filter-chip) .dropdown-menu {
  min-width: 15rem !important;
}

.filter-chip-display:empty {
  display: none;
}

.avatar-initial {
  width: 80px;
  height: 80px;
  font-size: 28px;
}

/* Dashonic overrides */
.auth-img {
  background-image: url("/static/images/auth-image.jpeg") !important;
}
.header-name {
  font-size: 1.5rem;
  color: #15468f;
}

.navbar-brand-box {
  padding: 0 1rem;
  background-color: #0D1E33;
}

.navbar-header {
  background-color: #0D1E33;
}

.notification-item .d-flex {
  padding: 0;
}

.hori-timeline .stop-icon:has(~ .event-list.stop) {
  position: absolute;
  top: 0%;
  right: 50%;
  transform: translate(50%, -7px);
}

.hori-timeline .event-list.done::before {
  background-color: var(--bs-primary);
}

.hori-timeline .event-list.error::before {
  background-color: var(--bs-danger);
}

.hori-timeline .event-list.stop::before {
  width: calc(50% - 10px);
  background-color: var(--bs-danger);
}

.hori-timeline .event-list.done:after {
  background-color: var(--bs-primary);
  border: 5px solid var(--bs-primary);
}

.hori-timeline .event-list.done.blinking:after {
  animation: 1s blink ease infinite;
}

.hori-timeline .event-list.error:after {
  background-color: var(--bs-danger);
  border: 5px solid var(--bs-danger);
}

.hori-timeline .event-list.error.blinking:after {
  animation: 1s blink ease infinite;
}

.hori-timeline .event-list.stop:after {
  display: none;
}

.hori-timeline .event-list.stop.blinking:after {
  animation: 1s blink ease infinite;
}

.chat-conversation {
  height: calc(100vh - 250px);
}

@media (min-width: 992px) {
  .chat-conversation {
    height: calc(100vh - 250px);
  }
}

.chat-conversation .chat-avatar div {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

/* Bootstrap overrides (custom Dashonic) */
.main-content {
  min-height: 100vh;
}

.animated-progress {
  position: relative;
}

.animated-progress .progress-bar {
  position: relative;
  border-radius: 30px;
  -webkit-animation: animate-positive 2s;
  animation: animate-positive 2s;
}

.progress-overlap-wrapper {
  position: relative;
  height: var(--bs-progress-height);
}

.progress-overlap {
  height: var(--bs-progress-height);
  width: 100%;
  background: transparent;
  position: absolute;
  top: 0;
  left: 0;
}

.offcanvas-body {
  background-color: var(--bs-body-bg);
}

/* DataTables (custom Dashonic) */
.dt-scroll-body::-webkit-scrollbar {
  -webkit-appearance: none;
}

.dt-scroll-body::-webkit-scrollbar:vertical {
  width: 12px;
}

.dt-scroll-body::-webkit-scrollbar:horizontal {
  height: 12px;
}

.dt-scroll-body::-webkit-scrollbar-thumb {
  background-color: rgba(52, 58, 64, 0.075);
  border-radius: 10px;
  border: 2px solid var(--bs-white);
}

.dt-scroll-body::-webkit-scrollbar-track {
  border-radius: 10px;
  background-color: var(--bs-white);
}

.dt-buttons {
  margin-bottom: 0 !important;
}

.dt-buttons:empty {
  display: none;
}

.dt-paging-button {
  user-select: none;
  margin-top: 1px;
  margin-bottom: 1px;
  margin-left: 2px;
  margin-right: 2px;
}

.dt-paging-button.disabled {
  cursor: not-allowed;
}

.dt-paging-button button.page-link {
  border: none !important;
  border-radius: 30px !important;
  min-width: 32px;
  height: 32px;
  padding: 0;
  text-align: center;
  line-height: 32px;
  background-color: transparent;
  color: var(--bs-pagination-color);
}

.dt-paging-button button.page-link:hover {
  background-color: var(--bs-pagination-hover-bg);
  color: var(--bs-pagination-hover-color);
}

.dt-paging-button button.page-link:focus {
  -webkit-box-shadow: none;
  box-shadow: none;
}

.dt-paging-button:first-child button.page-link,
.dt-paging-button:last-child button.page-link {
  margin-left: 10px;
  margin-right: 10px;
}

.dt-paging-button:first-child:hover button.page-link,
.dt-paging-button:first-child:focus button.page-link,
.dt-paging-button:last-child:hover button.page-link,
.dt-paging-button:last-child:focus button.page-link {
  background-color: transparent;
}

.dt-paging-button.disabled button.page-link {
  color: var(--bs-pagination-disabled-color);
  background-color: transparent;
}

.dt-paging-button.active button.page-link,
.dt-paging-button.active button.page-link:hover,
.dt-paging-button.active button.page-link:focus {
  background-color: var(--bs-pagination-active-bg);
  color: var(--bs-pagination-active-color);
  border-color: var(--bs-pagination-active-bg);
}

/* Material Toast overrides */
.mdtoast {
  background-color: var(--bs-primary-bg-subtle);
  color: var(--bs-primary-text-emphasis);
}

.mdtoast.mdt--success {
  background-color: var(--bs-success-bg-subtle);
  color: var(--bs-success-text-emphasis);
}

.mdtoast.mdt--danger,
.mdtoast.mdt--error {
  background-color: var(--bs-danger-bg-subtle);
  color: var(--bs-danger-text-emphasis);
}

.mdtoast.mdt--warning {
  background-color: var(--bs-warning-bg-subtle);
  color: var(--bs-warning-text-emphasis);
}

.mdtoast.mdt--info {
  background-color: var(--bs-info-bg-subtle);
  color: var(--bs-info-text-emphasis);
}

.mdtoast .mdt-action {
  color: var(--bs-dark);
}

/* Tom Select overrides */
/* Floating select https://github.com/orchidjs/tom-select/issues/579 */
.form-floating {

  .ts-wrapper.form-control,
  .ts-wrapper.form-select {
    height: 0 !important;
  }

  .ts-wrapper.form-control .ts-control,
  .ts-wrapper.form-select .ts-control {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
  }

  .ts-wrapper.form-control~label,
  .ts-wrapper.form-select~label {
    transform: scale(1) translateY(0) translateX(0);
    color: rgba(var(--bs-body-color-rgb), 1);
  }

  .ts-wrapper.form-control.focus~label,
  .ts-wrapper.form-control.full~label,
  .ts-wrapper.form-select.focus~label,
  .ts-wrapper.form-select.full~label,
  .ts-wrapper.form-select.has-items~label {
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    color: rgba(var(--bs-body-color-rgb), 0.65);
  }

  .ts-wrapper.form-select:not(.focus) .ts-control ::placeholder {
    opacity: 0;
  }
}

/* Wizard-JS overrides */
.wizard .wizard-nav.dots .wizard-step:before,
.wizard .wizard-nav.dots .wizard-step .dot,
.wizard .wizard-nav.dots .wizard-step.active .dot {
  background-color: var(--bs-primary);
}

@keyframes blink {

  0%,
  100% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }
}
