/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

.menu .app-brand.demo {
  height: 64px;
}

.app-brand-logo.demo svg {
  width: 34px;
  height: 24px;
}

.app-brand-text.demo {
  font-size: 1.375rem;
}

/* Uniko sidebar polish */
.uniko-sidebar {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border-right: 1px solid #e8ebf0;
}

.uniko-sidebar .app-brand.demo {
  height: 72px;
  padding-inline: 1.25rem;
  border-bottom: 1px solid #edf0f4;
}

.uniko-sidebar .app-brand-text.demo {
  color: #39364a;
  letter-spacing: -.02em;
}

.uniko-sidebar .menu-inner {
  padding: .9rem .7rem 1.25rem !important;
}

.uniko-sidebar .menu-item {
  margin-block: .28rem;
}

.uniko-sidebar .menu-link {
  min-height: 2.85rem;
  margin-inline: .1rem;
  padding: .72rem .85rem;
  border-radius: .75rem;
  color: #514e60;
  font-weight: 500;
  gap: .75rem;
  transition: color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.uniko-sidebar .menu-link:hover {
  color: #008eac;
  background: rgba(8, 166, 193, .08);
  transform: translateX(2px);
}

.uniko-sidebar .menu-icon {
  width: 1.35rem;
  margin-inline-end: .1rem;
  color: #605d6e;
  font-size: 1.2rem;
  text-align: center;
}

.uniko-sidebar .menu-item.active > .menu-link {
  color: #fff;
  background: linear-gradient(135deg, #12afd0 0%, #34acd5 100%);
  box-shadow: 0 .35rem .8rem rgba(8, 166, 193, .22);
}

.uniko-sidebar .menu-item.active > .menu-link .menu-icon {
  color: #fff;
}

.uniko-sidebar .uniko-menu-section {
  margin: 1.15rem .85rem .45rem;
  color: #a19eaa;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .09em;
  line-height: 1;
  list-style: none;
  text-transform: uppercase;
}

.uniko-sidebar .uniko-pro-badge {
  margin-inline-start: auto;
  padding: .28rem .55rem;
  color: #d87528;
  background: #fff0e3;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.uniko-sidebar .menu-sub {
  margin-inline-start: 1rem !important;
  padding: .35rem .4rem .45rem 1rem !important;
  border-inline-start: 1px solid #edf0f4;
}

.uniko-sidebar .menu-sub .menu-item {
  margin-block: .12rem !important;
}

.uniko-sidebar .menu-sub .menu-link {
  min-height: 2.35rem;
  padding: .55rem .7rem !important;
  padding-inline-start: .7rem !important;
  border-radius: .55rem;
  font-size: .84rem;
}

.uniko-sidebar .menu-sub .menu-link::before {
  display: none !important;
}

.uniko-sidebar .menu-sub .menu-link > div {
  min-width: 0;
  overflow: visible;
  white-space: nowrap;
}

.uniko-sidebar .menu-sub .menu-link:hover {
  transform: none;
}

.uniko-sidebar .uniko-logout-item {
  margin-top: 1rem;
  padding-top: .7rem;
  border-top: 1px solid #edf0f4;
}

.uniko-sidebar .uniko-logout-item .menu-link {
  color: #9a5962;
  background: rgba(255, 76, 81, .04);
}

.uniko-sidebar .uniko-logout-item .menu-icon {
  color: #c46b73;
}

.uniko-sidebar .uniko-logout-item .menu-link:hover {
  color: #b43842;
  background: #fff0f1;
}

/* Keep the custom sidebar in sync with the theme switcher. */
[data-bs-theme="dark"] .uniko-sidebar {
  background: linear-gradient(180deg, #25293c 0%, #202335 100%);
  border-right-color: #44485e;
}

[data-bs-theme="dark"] .uniko-sidebar .app-brand.demo {
  border-bottom-color: #44485e;
}

[data-bs-theme="dark"] .uniko-sidebar .app-brand-text.demo {
  color: #f3f2f3;
}

[data-bs-theme="dark"] .uniko-sidebar .menu-link {
  color: #cfcde4;
}

[data-bs-theme="dark"] .uniko-sidebar .menu-icon {
  color: #acabc1;
}

[data-bs-theme="dark"] .uniko-sidebar .menu-link:hover {
  color: #66cde6;
  background: rgba(102, 205, 230, .12);
}

[data-bs-theme="dark"] .uniko-sidebar .menu-item.active > .menu-link {
  color: #fff;
  background: linear-gradient(135deg, #087f9e 0%, #1597b8 100%);
  box-shadow: 0 .35rem .8rem rgba(0, 0, 0, .22);
}

[data-bs-theme="dark"] .uniko-sidebar .menu-item.active > .menu-link .menu-icon {
  color: #fff;
}

[data-bs-theme="dark"] .uniko-sidebar .uniko-menu-section {
  color: #76778e;
}

[data-bs-theme="dark"] .uniko-sidebar .uniko-pro-badge {
  color: #ffc58e;
  background: #504448;
}

[data-bs-theme="dark"] .uniko-sidebar .menu-sub {
  border-inline-start-color: #44485e;
}

[data-bs-theme="dark"] .uniko-sidebar .uniko-logout-item {
  border-top-color: #44485e;
}

[data-bs-theme="dark"] .uniko-sidebar .uniko-logout-item .menu-link {
  color: #ff9497;
  background: rgba(255, 148, 151, .08);
}

[data-bs-theme="dark"] .uniko-sidebar .uniko-logout-item .menu-icon {
  color: #ff9497;
}

[data-bs-theme="dark"] .uniko-sidebar .uniko-logout-item .menu-link:hover {
  color: #fff;
  background: rgba(255, 148, 151, .16);
}

/* Keep Logout as a normal compact menu row instead of a stretched blank block. */
.uniko-sidebar .uniko-logout-item {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin-block: 1rem .28rem !important;
  padding: .7rem 0 0 !important;
  flex: 0 0 auto !important;
}
.uniko-sidebar .uniko-logout-item .menu-link {
  display: flex !important;
  width: 100% !important;
  height: 2.85rem !important;
  min-height: 2.85rem !important;
  max-height: 2.85rem !important;
  align-items: center !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}
.uniko-sidebar .uniko-logout-item .menu-link > div {
  display: block !important;
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
  white-space: nowrap !important;
}
.uniko-sidebar .uniko-logout-item .menu-icon {
  flex: 0 0 1.35rem !important;
}

/* Keep the sidebar menu within the viewport so expanded submenus can scroll. */
.uniko-sidebar {
  block-size: 100vh;
  min-block-size: 0;
  max-block-size: 100vh;
}

.uniko-sidebar .menu-inner {
  min-block-size: 0;
  block-size: auto !important;
  max-block-size: calc(100vh - 72px);
  overflow-x: hidden;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.uniko-sidebar .menu-inner::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.uniko-sidebar .menu-inner .ps__rail-y {
  display: none !important;
}

/* ! For .layout-navbar-fixed added fix padding top to .layout-page */
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 72px !important;
}
/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/* Fluid theme containers: keep a consistent 20px edge on every viewport. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.layout-wrapper,
.layout-container,
.layout-page,
.content-wrapper {
  min-width: 0;
  max-width: 100%;
}

.container-xxl {
  max-width: none !important;
  max-inline-size: none !important;
  padding-inline: 20px !important;
}

.layout-navbar.navbar-detached.container-xxl {
  max-width: none !important;
  max-inline-size: calc(100% - 40px) !important;
  width: calc(100% - 40px) !important;
  inline-size: calc(100% - 40px) !important;
  margin-inline: 20px !important;
  box-sizing: border-box;
}

/* Fixed navbars must also reserve the sidebar width. */
.layout-navbar-fixed .layout-navbar.navbar-detached.container-xxl {
  max-inline-size: calc(100% - var(--bs-menu-width, 16.25rem) - 40px) !important;
  width: calc(100% - var(--bs-menu-width, 16.25rem) - 40px) !important;
  inline-size: calc(100% - var(--bs-menu-width, 16.25rem) - 40px) !important;
}

.layout-navbar-fixed.layout-menu-collapsed .layout-navbar.navbar-detached.container-xxl {
  max-inline-size: calc(100% - var(--bs-menu-collapsed-width, 4.375rem) - 40px) !important;
  width: calc(100% - var(--bs-menu-collapsed-width, 4.375rem) - 40px) !important;
  inline-size: calc(100% - var(--bs-menu-collapsed-width, 4.375rem) - 40px) !important;
}

.layout-navbar .navbar-nav-right {
  flex: 1 1 auto !important;
  flex-basis: auto !important;
  min-width: 0;
  min-inline-size: 0;
  max-width: 100%;
}

.layout-navbar .navbar-nav-right > .navbar-nav {
  min-width: 0;
  flex-shrink: 1;
}

.content-wrapper > .container-xxl {
  width: 100% !important;
  inline-size: 100% !important;
}

/* Keep lender comparison tables readable without horizontal scrolling. */
.lender-panel {
  position: sticky;
  top: 5.5rem;
}

.lender-panel .table-responsive {
  overflow-x: hidden;
}

.lender-table {
  width: 100%;
  table-layout: fixed;
  font-size: .78rem;
}

.lender-table th,
.lender-table td {
  vertical-align: middle;
  white-space: normal;
  overflow-wrap: anywhere;
  padding-inline: .35rem;
}

.lender-table th:nth-child(1) { width: 16%; }
.lender-table th:nth-child(2) { width: 11%; }
.lender-table th:nth-child(3) { width: 11%; }
.lender-table th:nth-child(4) { width: 8%; }
.lender-table th:nth-child(5) { width: 10%; }
.lender-table th:nth-child(6) { width: 11%; }
.lender-table th:nth-child(7) { width: 12%; }
.lender-table th:nth-child(8) { width: 8%; }
.lender-table th:nth-child(9) { width: 13%; }

.lender-table .lender-name {
  white-space: normal;
}

.lender-table .column-help {
  display: inline-flex;
  align-items: center;
  margin-left: .25rem;
  color: var(--bs-secondary-color);
  cursor: help;
}

.lender-table .column-help i {
  font-size: .875rem;
}

.lender-table .lender-actions {
  white-space: nowrap;
  text-align: end;
}

.lender-table .lender-action {
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
}

.lender-table .lender-action.active {
  color: var(--bs-primary);
  background-color: rgba(var(--bs-primary-rgb), .12);
}

@media (max-width: 1199.98px) {
  .layout-navbar-fixed .layout-navbar.navbar-detached.container-xxl {
    max-inline-size: calc(100% - 40px) !important;
    width: calc(100% - 40px) !important;
    inline-size: calc(100% - 40px) !important;
  }

  .lender-panel {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .layout-navbar .navbar-search-wrapper > div {
    min-width: 0 !important;
  }
}

/*
* 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: 254px;
    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;
}
