/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

.menu .app-brand.demo {
  position: relative;
  overflow: hidden;
  height: 108px;
  margin: 0;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e7ebe8;
  border-bottom: 1px solid #cdd6d1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(67, 89, 113, 0.08);
}

.menu .app-brand.demo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0) 34%),
    linear-gradient(90deg, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 0.18) 52%, rgba(255, 255, 255, 0) 66%);
  pointer-events: none;
}

#layout-menu .menu-inner {
  padding-top: 1rem !important;
}

#layout-menu .menu-inner::before {
  content: "";
  display: block;
  flex: 0 0 auto;
  width: calc(100% - 2rem);
  height: 1px;
  margin: 0 auto 0.85rem;
  background: rgba(255, 255, 255, 0.14);
}

.app-brand-logo.demo svg {
  width: 22px;
  height: 38px;
}

.app-brand-text.demo {
  font-size: 1.75rem;
  letter-spacing: -0.5px;
}

/* SHA Logo Customization */
.app-brand-link {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.sha-logo-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.sha-logo {
  display: block;
  width: 205px;
  height: auto;
  max-width: 100%;
  max-height: 92px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* Notification dropdown */
.dropdown-notifications .notification-trigger {
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.dropdown-notifications .notification-trigger:hover,
.dropdown-notifications .notification-trigger[aria-expanded="true"] {
  background: var(--bs-gray-100);
  color: var(--bs-primary);
}

.layout-navbar .layout-menu-toggle {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
}

.layout-navbar .layout-menu-toggle .nav-link {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--bs-body-color);
  touch-action: manipulation;
}

.layout-navbar .layout-menu-toggle .nav-link:hover,
.layout-navbar .layout-menu-toggle .nav-link:focus-visible {
  background: var(--bs-gray-100);
  color: var(--bs-primary);
}

.layout-navbar .layout-menu-toggle .iconify {
  width: 1.45rem;
  height: 1.45rem;
  font-size: 1.45rem;
}

.template-customizer-open-btn {
  display: none !important;
}

.dropdown-notifications .badge-notifications {
  position: absolute;
  top: 0.2rem;
  inset-inline-end: 0.12rem;
  min-width: 1.12rem;
  height: 1.12rem;
  padding: 0 0.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bs-paper-bg, #fff);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
}

.dropdown-notifications .notifications-menu {
  width: min(24rem, calc(100vw - 1.5rem));
  overflow: hidden;
  border-radius: var(--bs-border-radius);
}

.sha-cookie-consent {
  position: fixed;
  inset-inline: 1.5rem;
  bottom: 1.5rem;
  z-index: 1095;
  width: min(58rem, calc(100vw - 3rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  color: var(--bs-body-color);
  background: var(--bs-paper-bg, #fff);
  border: 1px solid rgba(47, 43, 61, 0.12);
  border-radius: 0.5rem;
  box-shadow: 0 0.75rem 2rem rgba(47, 43, 61, 0.18);
  animation: sha-cookie-consent-in 0.22s ease-out;
}

.sha-cookie-consent.is-hiding {
  opacity: 0;
  transform: translateY(0.75rem);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.sha-cookie-consent-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-primary);
  background: rgba(var(--bs-primary-rgb), 0.12);
  border-radius: 50%;
  font-size: 1.35rem;
}

.sha-cookie-consent-body {
  min-width: 0;
}

.sha-cookie-consent-eyebrow {
  margin: 0 0 0.15rem;
  color: var(--bs-primary);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.sha-cookie-consent-title {
  margin: 0;
  color: var(--bs-heading-color);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.sha-cookie-consent-message {
  margin: 0.25rem 0 0;
  color: var(--bs-secondary-color);
  font-size: 0.86rem;
  line-height: 1.45;
}

.sha-cookie-consent-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  white-space: nowrap;
}

.sha-cookie-consent-actions .btn {
  min-height: 2.5rem;
}

.sha-cookie-consent-rtl .sha-cookie-consent-eyebrow {
  text-transform: none;
}

@keyframes sha-cookie-consent-in {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767.98px) {
  .sha-cookie-consent {
    inset-inline: 0.75rem;
    bottom: 0.75rem;
    width: calc(100vw - 1.5rem);
    grid-template-columns: auto minmax(0, 1fr);
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem;
  }

  .sha-cookie-consent-icon {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1.15rem;
  }

  .sha-cookie-consent-actions {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: stretch;
    white-space: normal;
  }

  .sha-cookie-consent-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 0.75rem;
  }
}

.notifications-menu-header {
  border-bottom: 1px solid rgba(67, 89, 113, 0.12);
}

.notifications-menu-header .dropdown-header {
  padding: 0.875rem 1rem;
}

.notifications-title {
  color: var(--bs-heading-color);
  font-weight: 600;
  letter-spacing: 0;
}

.notifications-subtitle {
  display: block;
  margin-top: 0.15rem;
  color: var(--bs-secondary-color);
  font-size: 0.76rem;
}

.notification-action {
  width: 1.9rem;
  height: 1.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--bs-body-color);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.notification-action:hover {
  color: var(--bs-primary);
  background: rgba(105, 108, 255, 0.12);
}

.dropdown-notifications-list {
  max-height: min(28rem, calc(100vh - 10rem));
  overflow-y: auto !important;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.notifications-menu-footer {
  padding: 0.75rem;
  border-top: 1px solid rgba(67, 89, 113, 0.12);
  background: var(--bs-paper-bg, #fff);
}

.notification-item {
  position: relative;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.8rem 1rem;
  border: 0;
  border-bottom: 1px solid rgba(67, 89, 113, 0.1);
  transition: background-color 0.16s ease;
}

.notification-item.is-unread {
  background: rgba(105, 108, 255, 0.04);
}

.notification-item:hover {
  background: rgba(67, 89, 113, 0.06);
}

.notification-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1rem;
}

.notification-content {
  min-width: 0;
}

.notification-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.18rem;
  color: var(--bs-secondary-color);
  font-size: 0.72rem;
  line-height: 1.3;
}

.notification-type {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: none;
}

.notification-meta-row time {
  flex-shrink: 0;
  white-space: nowrap;
}

.notification-heading,
.notification-message {
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.notification-heading {
  -webkit-line-clamp: 1;
  color: var(--bs-heading-color);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
}

.notification-message {
  -webkit-line-clamp: 2;
  margin-top: 0.16rem;
  color: var(--bs-secondary-color);
  font-size: 0.78rem;
  line-height: 1.45;
}

.notification-unread-dot {
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--bs-primary);
}

.notification-empty-state {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  padding: 1.25rem 1rem;
  border: 0;
  color: var(--bs-secondary-color);
}

.notification-empty-state p {
  color: var(--bs-heading-color);
  font-weight: 600;
}

.notification-empty-state small {
  display: block;
  line-height: 1.45;
}

.notification-empty-icon {
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--bs-primary);
  background: rgba(105, 108, 255, 0.1);
  font-size: 1.15rem;
}

@media (max-width: 575.98px) {
  .dropdown-notifications .notifications-menu {
    width: calc(100vw - 1rem);
  }

  .notification-item {
    grid-template-columns: 2.2rem minmax(0, 1fr) auto;
    gap: 0.7rem;
    padding-inline: 0.85rem;
  }
}

/* ! For .layout-navbar-fixed added fix padding top to .layout-page */
/* Detached navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 74px !important;
}
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}
.docs-page .layout-navbar-fixed.layout-wrapper:not(.layout-without-menu) .layout-page,
.docs-page .layout-menu-fixed.layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 62px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
  #dropdown-variation-demo .btn-group .text-truncate {
    width: 231px;
    position: relative;
  }
  #dropdown-variation-demo .btn-group .text-truncate::after {
    position: absolute;
    top: 45%;
    right: 0.65rem;
  }
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}

/*
* Shared mobile polish
******************************************************************************/

@media (max-width: 1199.98px) {
  html[dir="rtl"] .layout-page,
  [dir="rtl"] .layout-page,
  html[dir="rtl"].layout-menu-collapsed .layout-page,
  [dir="rtl"].layout-menu-collapsed .layout-page {
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-inline-start: 0 !important;
  }

  html[dir="rtl"] .layout-menu,
  [dir="rtl"] .layout-menu {
    right: 0 !important;
    left: auto !important;
  }
}

@media (max-width: 767.98px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  img,
  svg,
  canvas,
  video {
    max-width: 100%;
    height: auto;
  }

  .layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page,
  .layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
    padding-top: 4.5rem !important;
  }

  .layout-navbar.navbar-detached {
    box-sizing: border-box;
    width: calc(100% - 2rem) !important;
    inline-size: calc(100% - 2rem) !important;
    max-width: none !important;
    min-height: 3.75rem;
    inset-block-start: 0.5rem !important;
    inset-inline: 0 !important;
    margin-block: 0 !important;
    margin-inline: auto !important;
    padding: 0 0.75rem !important;
    border-radius: 0.5rem;
  }

  .layout-navbar .navbar-nav-right,
  .layout-navbar .navbar-nav,
  .layout-navbar .navbar-nav .nav-item,
  .layout-navbar .dropdown,
  .layout-navbar .dropdown > a {
    min-width: 0;
  }

  .layout-navbar .navbar-nav-right {
    width: 100%;
    gap: 0.35rem;
  }

  .layout-navbar .navbar-nav.flex-row {
    align-items: center;
    gap: 0.2rem;
  }

  .layout-navbar .nav-link,
  .layout-navbar .layout-menu-toggle .nav-link,
  .layout-navbar .btn {
    min-width: 2.5rem;
    min-height: 2.5rem;
  }

  .content-wrapper .container-xxl,
  .content-wrapper .container-xl,
  .content-wrapper .container-lg,
  .content-wrapper .container-md,
  .content-wrapper .container-sm,
  .content-wrapper .container-fluid {
    width: 100%;
    padding-right: 0.875rem !important;
    padding-left: 0.875rem !important;
  }

  .container-p-y {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  .content-wrapper h1,
  .content-wrapper h2,
  .content-wrapper h3,
  .content-wrapper h4,
  .content-wrapper h5,
  .content-wrapper h6,
  .card-title,
  .modal-title {
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .content-wrapper h1,
  .content-wrapper h2,
  .content-wrapper h3 {
    font-size: clamp(1.35rem, 1.15rem + 1vw, 1.75rem);
  }

  .content-wrapper h4 {
    font-size: 1.2rem;
  }

  .content-wrapper p,
  .card-text,
  .text-muted {
    overflow-wrap: anywhere;
  }

  .content-wrapper .container-xxl > .d-flex.justify-content-between,
  .content-wrapper .container-xxl > .d-flex.align-items-center.justify-content-between,
  .content-wrapper .container-fluid > .d-flex.justify-content-between,
  .content-wrapper .container-fluid > .d-flex.align-items-center.justify-content-between {
    align-items: stretch !important;
    flex-direction: column;
    gap: 0.85rem;
  }

  .content-wrapper .container-xxl > .d-flex.justify-content-between > .btn,
  .content-wrapper .container-xxl > .d-flex.justify-content-between > a.btn,
  .content-wrapper .container-xxl > .d-flex.align-items-center.justify-content-between > .btn,
  .content-wrapper .container-xxl > .d-flex.align-items-center.justify-content-between > a.btn,
  .content-wrapper .container-fluid > .d-flex.justify-content-between > .btn,
  .content-wrapper .container-fluid > .d-flex.justify-content-between > a.btn,
  .content-wrapper .container-fluid > .d-flex.align-items-center.justify-content-between > .btn,
  .content-wrapper .container-fluid > .d-flex.align-items-center.justify-content-between > a.btn {
    width: 100%;
    justify-content: center;
  }

  .row {
    --bs-gutter-x: 1rem;
  }

  .row.g-4 {
    --bs-gutter-y: 1rem;
  }

  .row.g-3 {
    --bs-gutter-y: 0.85rem;
  }

  .card {
    border-radius: 0.5rem;
  }

  .card-header,
  .card-body,
  .card-footer {
    padding: 1rem !important;
  }

  .card-header.d-flex,
  .card-footer.d-flex {
    align-items: stretch !important;
    flex-direction: column;
    gap: 0.75rem;
  }

  .card-header .d-flex,
  .card-footer .d-flex,
  .modal-footer,
  .dt-layout-row,
  .dt-layout-start,
  .dt-layout-end {
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .card-header .btn,
  .card-footer .btn,
  .modal-footer .btn,
  .dt-buttons .btn {
    min-height: 2.5rem;
  }

  .card-header input.form-control,
  .card-header select.form-select,
  .card-header .form-control,
  .card-header .form-select,
  .dt-search,
  .dt-search input,
  .dt-length,
  .dt-length select {
    width: 100% !important;
    min-width: 0 !important;
  }

  .btn-group[role="group"] {
    width: 100%;
  }

  .btn-group[role="group"] .btn {
    flex: 1 1 0;
  }

  .table-responsive,
  .card-datatable,
  .dt-layout-full {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-responsive > .table,
  .card-datatable > .table,
  .dt-layout-full > .table {
    margin-bottom: 0;
  }

  .table-responsive .table th,
  .table-responsive .table td,
  .card-datatable .table th,
  .card-datatable .table td,
  .dt-layout-full .table th,
  .dt-layout-full .table td {
    white-space: nowrap;
  }

  .dropdown-menu,
  .flatpickr-calendar,
  .select2-container,
  .select2-dropdown {
    max-width: calc(100vw - 1rem);
  }

  .modal-dialog {
    margin: 0.5rem;
  }

  .modal-dialog.modal-xl,
  .modal-dialog.modal-lg {
    max-width: calc(100% - 1rem);
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 1rem !important;
  }

  .modal-footer {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .modal-footer > * {
    width: 100%;
    margin: 0 !important;
  }

  .offcanvas {
    max-width: calc(100vw - 1rem);
  }

  .nav.nav-pills,
  .nav.nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
  }

  .nav.nav-pills .nav-link,
  .nav.nav-tabs .nav-link {
    white-space: nowrap;
  }

  .apexcharts-canvas,
  .chartjs,
  .chartjs-size-monitor,
  .leaflet-container {
    max-width: 100%;
  }

  .hover-shadow:hover,
  .card:hover,
  .erp-card:hover,
  .stat-card:hover {
    transform: none !important;
  }
}

@media (max-width: 575.98px) {
  .content-wrapper .d-flex.gap-2.align-items-center.flex-wrap,
  .card-header .d-flex.gap-2.flex-wrap,
  .card-footer.justify-content-end {
    width: 100%;
  }

  .content-wrapper .d-flex.gap-2.align-items-center.flex-wrap > *,
  .card-header .d-flex.gap-2.flex-wrap > *,
  .card-footer.justify-content-end .btn {
    flex: 1 1 100%;
    width: 100%;
  }

  .dropdown-notifications .notifications-menu,
  .dropdown-menu {
    width: calc(100vw - 1rem);
  }
}
