:root {
  --lh-ink: #10283f;
  --lh-navy: #0a233a;
  --lh-navy-soft: #123652;
  --lh-teal: #19a79b;
  --lh-canvas: #f4f7fa;
  --lh-border: #dce5ec;
}

html {
  position: relative;
  min-height: 100%;
  font-size: 14px;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--lh-ink);
  background-color: var(--lh-canvas);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 .1rem #fff, 0 0 0 .25rem rgba(25, 167, 155, .35);
}

.app-shell {
  min-height: 100vh;
}

.app-sidebar {
  --bs-offcanvas-bg: var(--lh-navy);
  width: 17rem;
  color: #dce8f1;
  background-color: var(--lh-navy) !important;
  border: 0;
}

.app-workspace {
  min-width: 0;
  min-height: 100vh;
}

.app-content {
  flex: 1 0 auto;
  padding: 1.5rem;
}

.app-header {
  min-height: 4.25rem;
  background-color: #fff;
  border-bottom: 1px solid var(--lh-border);
}

.public-content {
  min-height: 100vh;
}

.brand-logo {
  display: block;
  width: 10.5rem;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.auth-brand-panel .brand-logo {
  width: 13rem;
}

.sidebar-link {
  display: flex;
  gap: .8rem;
  align-items: center;
  width: 100%;
  padding: .7rem .9rem;
  color: #bfd0dc;
  text-decoration: none;
  background-color: transparent;
  border: 0;
  border-radius: .65rem;
  transition: background-color .15s ease, color .15s ease;
}

.sidebar-link:hover,
.sidebar-link:focus,
.sidebar-link.active {
  color: #fff;
  background-color: rgba(255, 255, 255, .09);
}

.sidebar-link.active {
  box-shadow: inset .2rem 0 var(--lh-teal);
}

.sidebar-link .menu-icon {
  width: 1.1rem;
  text-align: center;
}

.sidebar-submenu {
  margin: .25rem 0 .4rem 1.75rem;
  padding-left: .65rem;
  border-left: 1px solid rgba(255, 255, 255, .13);
}

.sidebar-submenu .sidebar-link {
  padding-top: .5rem;
  padding-bottom: .5rem;
  font-size: .9rem;
}

.sidebar-customer-search .input-group-text,
.sidebar-customer-search .form-control,
.sidebar-customer-search .btn {
  color: #e7f0f6;
  background-color: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .16);
}

.sidebar-customer-search .form-control::placeholder {
  color: #a9bfce;
}

.sidebar-customer-search .form-control:focus {
  color: #fff;
  background-color: rgba(255, 255, 255, .12);
  border-color: var(--lh-teal);
  box-shadow: none;
}

.sidebar-customer-search .btn:hover,
.sidebar-customer-search .btn:focus {
  color: #fff;
  background-color: var(--lh-teal);
  border-color: var(--lh-teal);
}

.sidebar-customer-search .form-text {
  margin-left: .25rem;
  color: #91aaba;
  font-size: .7rem;
}

.avatar-circle {
  position: relative;
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  overflow: hidden;
  place-items: center;
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  background-color: var(--lh-navy-soft);
  border-radius: 50%;
}

.avatar-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.profile-photo-frame {
  display: grid;
  width: 9rem;
  height: 9rem;
  overflow: hidden;
  place-items: center;
  color: #fff;
  font-size: 2.25rem;
  font-weight: 700;
  background: linear-gradient(145deg, var(--lh-navy-soft), var(--lh-navy));
  border: .3rem solid #fff;
  border-radius: 50%;
  box-shadow: 0 .5rem 1.5rem rgba(16, 40, 63, .2);
}

.profile-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.table-avatar {
  display: inline-grid;
  width: 2.5rem;
  height: 2.5rem;
  overflow: hidden;
  flex: 0 0 2.5rem;
  place-items: center;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  background-color: var(--lh-navy-soft);
  border-radius: 50%;
}

.table-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-field-label {
  margin-bottom: .25rem;
  color: var(--bs-secondary-color);
  font-size: .875rem;
}

.customer-photo-frame {
  width: 6.5rem;
  height: 6.5rem;
  font-size: 1.75rem;
}

.customer-details-photo {
  width: 7.5rem;
  height: 7.5rem;
  font-size: 2rem;
}

.text-teal {
  color: var(--lh-teal) !important;
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1.25rem;
  background:
    radial-gradient(circle at 12% 12%, rgba(25, 167, 155, .16), transparent 30rem),
    linear-gradient(145deg, #eef4f7 0%, #f9fbfc 52%, #e8f0f4 100%);
}

.auth-frame {
  width: min(100%, 68rem);
  overflow: hidden;
  background-color: #fff;
  border: 1px solid rgba(16, 40, 63, .08);
  border-radius: 1.35rem;
  box-shadow: 0 1.5rem 4rem rgba(16, 40, 63, .14);
}

.auth-brand-panel {
  position: relative;
  isolation: isolate;
  min-height: 35rem;
  padding: clamp(2rem, 5vw, 4rem);
  color: #fff;
  background-color: var(--lh-navy);
}

.auth-brand-panel::before,
.auth-brand-panel::after {
  position: absolute;
  z-index: -1;
  content: "";
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
}

.auth-brand-panel::before {
  right: -7rem;
  bottom: -8rem;
  width: 24rem;
  height: 24rem;
}

.auth-brand-panel::after {
  right: 2rem;
  bottom: 3rem;
  width: 9rem;
  height: 9rem;
}

.auth-form-panel {
  padding: clamp(2rem, 5vw, 4.5rem);
}

.auth-kicker {
  color: var(--lh-teal);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.auth-form-panel .form-control,
.auth-form-panel .input-group-text {
  min-height: 3rem;
  border-color: #cfdae2;
}

.auth-form-panel .form-control:focus {
  border-color: var(--lh-teal);
  box-shadow: 0 0 0 .22rem rgba(25, 167, 155, .14);
}

.auth-form-panel .input-group .form-control:focus {
  z-index: 3;
}

.validation-summary-valid {
  display: none;
}

.btn-loanhub {
  color: #fff;
  background-color: var(--lh-navy);
  border-color: var(--lh-navy);
}

.btn-loanhub:hover,
.btn-loanhub:focus {
  color: #fff;
  background-color: var(--lh-navy-soft);
  border-color: var(--lh-navy-soft);
}

.dashboard-kpi {
  border-top: .2rem solid rgba(25, 167, 155, .75) !important;
}

.kpi-icon {
  display: inline-grid;
  width: 2.8rem;
  height: 2.8rem;
  flex: 0 0 2.8rem;
  place-items: center;
  border-radius: .8rem;
}

.collection-chart-wrap {
  position: relative;
  min-height: 19rem;
}

.quick-actions {
  background:
    radial-gradient(circle at 90% 10%, rgba(25, 167, 155, .35), transparent 12rem),
    var(--lh-navy);
}

.quick-action-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1rem;
  color: #fff;
  text-decoration: none;
  background-color: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: .75rem;
  transition: background-color .15s ease, transform .15s ease;
}

.quick-action-link:hover,
.quick-action-link:focus {
  color: #fff;
  background-color: rgba(255, 255, 255, .14);
  transform: translateX(.15rem);
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

@media (min-width: 992px) {
  .app-sidebar {
    position: sticky;
    top: 0;
    flex: 0 0 17rem;
    height: 100vh;
    visibility: visible !important;
    transform: none !important;
  }
}

@media (max-width: 991.98px) {
  .app-content {
    padding: 1rem;
  }

  .auth-brand-panel {
    min-height: auto;
  }
}

@media (max-width: 575.98px) {
  .dashboard-kpi .h3 {
    font-size: 1.35rem;
  }

  .collection-chart-wrap {
    min-height: 15rem;
  }
}

@media print {
  body {
    color: #000;
    background: #fff;
  }

  .app-sidebar,
  .app-header,
  .app-workspace > footer,
  .app-content > nav,
  .no-print {
    display: none !important;
  }

  .app-content {
    padding: 0;
  }

  .user-profile-print {
    box-shadow: none !important;
  }

  body.customer-record-print .app-content > :not(.customer-search-modal),
  body.customer-record-print .customer-search-modal .modal-footer,
  body.customer-record-print .customer-search-modal .btn-close,
  body.customer-record-print .modal-backdrop {
    display: none !important;
  }

  body.customer-record-print .customer-search-modal {
    position: static !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
  }

  body.customer-record-print .customer-search-modal .modal-dialog {
    display: block;
    height: auto !important;
    min-height: 0;
    margin: 0;
    max-width: none;
    transform: none !important;
  }

  body.customer-record-print .customer-search-modal .modal-content {
    max-height: none !important;
    overflow: visible !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body.customer-record-print .customer-search-modal .modal-body {
    overflow: visible !important;
  }
}
