/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

.menu .app-brand.demo {
  height: 64px;
  margin-top: 12px;
}

.app-brand-logo.demo svg {
  width: 22px;
  height: 38px;
}

.app-brand-text.demo {
  font-size: 1.75rem;
  letter-spacing: -0.5px;
  
}

/* ! For .layout-navbar-fixed added fix padding top tpo .layout-page */
/* Detached navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 76px !important;
}
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/* Employee portal header */
.layout-navbar.portal-navbar.navbar-detached {
  position: sticky;
  top: 0.75rem;
  z-index: 1075;
  width: auto !important;
  max-width: none;
  min-height: 4.5rem;
  height: auto;
  margin: 1rem 1.625rem 0;
  padding: 0.625rem 0.75rem;
  border: 1px solid rgba(67, 89, 113, 0.08);
  border-radius: 0.75rem;
  box-shadow: 0 0.25rem 1rem rgba(67, 89, 113, 0.08);
  gap: 0.75rem;
}

.portal-menu-button {
  display: inline-flex;
  flex: 0 0 2.75rem;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 0.625rem;
  color: #566a7f;
  background: #f5f5f9;
}

.portal-menu-button i {
  font-size: 1.5rem;
}

.portal-navbar-heading {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
}

.portal-navbar-eyebrow {
  margin-bottom: 0.2rem;
  color: #a1acb8;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-navbar-title {
  overflow: hidden;
  color: #566a7f;
  font-size: 1.05rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-navbar-actions,
.portal-user,
.portal-user-copy,
.portal-logout-button {
  display: flex;
  align-items: center;
}

.portal-navbar-actions {
  flex: 0 0 auto;
  gap: 0.75rem;
  margin-left: auto;
}

.portal-user {
  min-width: 0;
  gap: 0.625rem;
}

.portal-user-avatar {
  display: inline-flex;
  flex: 0 0 2.5rem;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: #696cff;
  background: #e7e7ff;
  font-size: 0.875rem;
  font-weight: 700;
}

.portal-user-copy {
  min-width: 0;
  flex-direction: column;
  line-height: 1.2;
}

.portal-user-name {
  max-width: 12rem;
  overflow: hidden;
  color: #566a7f;
  font-size: 0.875rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-user-role {
  margin-top: 0.15rem;
  color: #a1acb8;
  font-size: 0.75rem;
}

.portal-logout-button {
  min-height: 2.5rem;
  justify-content: center;
  gap: 0.375rem;
  border-radius: 0.625rem;
}

.portal-logout-button i {
  font-size: 1.125rem;
}

@media (max-width: 1199.98px) {
  .layout-navbar.portal-navbar.navbar-detached {
    margin-right: 1rem;
    margin-left: 1rem;
  }
}

@media (max-width: 575.98px) {
  .layout-navbar.portal-navbar.navbar-detached {
    top: 0.5rem;
    min-height: 4rem;
    margin: 0.75rem 0.75rem 0;
    padding: 0.5rem;
    gap: 0.5rem;
  }

  .portal-navbar-eyebrow {
    display: none;
  }

  .portal-navbar-title {
    max-width: 8rem;
    font-size: 0.9375rem;
  }

  .portal-navbar-actions {
    gap: 0.5rem;
  }

  .portal-user-avatar,
  .portal-menu-button {
    flex-basis: 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  .portal-logout-button {
    width: 2.5rem;
    padding-right: 0;
    padding-left: 0;
  }
}

/*
* 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;
}

.rtl-only {
  display: none !important;
  text-align: left !important;
  direction: ltr !important;
}

[dir='rtl'] .rtl-only {
  display: block !important;
}

/*
* 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;
}
.cardhgt {
  height: 170px;
    overflow-y: auto;
}
