:root {
  --ui-bg: #f3f7fb;
  --ui-bg-alt: #eef4fb;
  --ui-paper: #ffffff;
  --ui-paper-soft: #f8fbff;
  --ui-line: #d3dfec;
  --ui-text: #172235;
  --ui-muted: #56657f;
  --ui-green: #1f7a4f;
  --ui-green-soft: #e6f5ed;
  --ui-blue: #1f5f97;
  --ui-blue-soft: #e9f3ff;
  --ui-warning-line: #f1d6aa;
  --ui-warning-bg: #fff6e7;
  --ui-warning-text: #7f5a20;
  --ui-shadow: 0 1.05rem 2.5rem rgba(17, 40, 74, 0.11);
  --ui-shadow-soft: 0 0.55rem 1.3rem rgba(17, 40, 74, 0.08);
  --ui-shadow-lift: 0 1.4rem 2.7rem rgba(20, 49, 91, 0.13);
  --ui-shell-gap: 0.75rem;
  --ui-sidenav-width: 272px;
  --ui-app-max-width: 1280px;
}

body.ui-theme {
  margin: 0;
  color: var(--ui-text);
  font-family: "Manrope", sans-serif;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% -10%, #d9f3e5 0%, transparent 32%),
    radial-gradient(circle at 98% 0%, #dbeeff 0%, transparent 36%),
    linear-gradient(180deg, #f8fbff 0%, var(--ui-bg) 56%, var(--ui-bg-alt) 100%);
}

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

.ui-sidenav {
  border: 1px solid #d1ddec;
  background:
    radial-gradient(circle at 0% 0%, rgba(31, 122, 79, 0.07) 0%, rgba(31, 122, 79, 0) 35%),
    radial-gradient(circle at 100% 0%, rgba(31, 95, 151, 0.08) 0%, rgba(31, 95, 151, 0) 42%),
    linear-gradient(172deg, #ffffff 0%, #f8fbff 100%);
  color: var(--ui-text);
  box-shadow: var(--ui-shadow-lift);
}

.ui-sidenav .offcanvas-header {
  padding: 0.72rem 0.9rem 0.58rem;
  border-bottom: 1px solid #dbe6f3;
}

.ui-sidenav .offcanvas-body {
  padding: 0.6rem;
}

.ui-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.58rem;
  width: 100%;
  text-decoration: none;
  padding: 0.34rem 0.12rem 0.42rem;
}

.ui-brand-mark {
  width: 2.95rem;
  height: 2.95rem;
  border-radius: 0.92rem;
  padding: 0.12rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #eff6ff 0%, #ffffff 65%);
  border: 1px solid #d3e1f2;
  box-shadow: 0 0.45rem 0.9rem rgba(31, 95, 151, 0.16);
}

.ui-brand-mark img {
  border-radius: 0.78rem;
}

.ui-brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ui-brand-subtitle {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7189a5;
}

.ui-brand-text {
  font-family: "Fraunces", serif;
  color: #173a60;
  font-size: 1.04rem;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.ui-shell-divider {
  border-color: #dbe6f3;
  opacity: 1;
  margin: 0.1rem 0.6rem 0.25rem;
}

.ui-customer-chip {
  margin: 0.16rem 0.4rem 0.35rem;
  border: 1px solid #cbdbec;
  border-radius: 999px;
  background: linear-gradient(145deg, #f6fbff 0%, #eef6ff 100%);
  color: #365170;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  padding: 0.4rem 0.58rem;
}

.ui-nav-section-title {
  margin: 0.56rem 0.55rem 0.18rem;
  font-size: 0.64rem;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6a7c95;
}

.ui-nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.08rem 0.26rem;
  padding: 0.42rem 0.54rem;
  border-radius: 0.82rem;
  border: 1px solid transparent;
  background: transparent;
  color: #314964;
  font-size: 0.9rem;
  line-height: 1.18;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.ui-nav-link:hover {
  border-color: #c6d9eb;
  background: linear-gradient(180deg, #fbfdff 0%, #f0f7ff 100%);
  box-shadow: 0 0.3rem 0.72rem rgba(49, 88, 135, 0.1);
  transform: translateX(1px);
  color: #223850;
}

.ui-nav-link.active {
  border-color: #bad3e8;
  background: linear-gradient(165deg, #eaf4ff 0%, #f7fbff 58%, #eef8f3 100%);
  color: #1b3c64;
  box-shadow: 0 0.35rem 0.88rem rgba(47, 93, 155, 0.16);
}

.ui-nav-icon {
  width: 1.42rem;
  height: 1.42rem;
  border-radius: 0.46rem;
  border: 1px solid #d4e2f1;
  background: linear-gradient(165deg, #ffffff, #f6faff);
  box-shadow: 0 0.18rem 0.52rem rgba(44, 86, 135, 0.09);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.ui-nav-link.active .ui-nav-icon {
  background: linear-gradient(165deg, #f7fbff, #eaf3ff);
  border-color: #bcd2ea;
}

.ui-nav-glyph {
  font-size: 0.72rem;
  color: #35597d;
}

.ui-nav-text {
  font-size: 0.89rem;
  font-weight: 580;
  letter-spacing: 0.002em;
  line-height: 1.2;
}

.ui-help-card {
  border: 1px dashed #c8dbef;
  border-radius: 1rem;
  background: linear-gradient(180deg, #fbfdff 0%, #f3f8ff 100%);
  box-shadow: 0 0.48rem 1rem rgba(28, 62, 109, 0.08);
}

.ui-help-title {
  color: #1f3c60;
}

.ui-help-text {
  font-size: 0.76rem;
  font-weight: 700;
  color: #5f748e;
}

.ui-support-btn {
  border-radius: 0.78rem;
  border: 1px solid #2f5d9b;
  background: #2f5d9b;
  color: #fff;
  box-shadow: 0 0.5rem 1rem rgba(31, 95, 151, 0.2);
}

.ui-support-btn:hover {
  border-color: #244c81;
  background: #244c81;
  color: #fff;
}

.ui-main-content {
  min-height: 100vh;
  position: relative;
}

.ui-topbar {
  margin: 0.45rem 1.5rem 0.65rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  position: relative;
  overflow: visible;
}

.ui-topbar-inner {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.ui-topbar-brand {
  font-family: "Fraunces", serif;
  color: #1f3d62;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

.ui-topbar-brand-mark {
  width: 1.92rem;
  height: 1.92rem;
  border-radius: 0.58rem;
  border: 1px solid #bfd4e8;
  color: #2a5f93;
  background: linear-gradient(145deg, #f2f8ff 0%, #eaf4ff 100%);
  box-shadow: 0 0.34rem 0.78rem rgba(41, 87, 140, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
}

.ui-context-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  border-radius: 0.78rem;
  padding: 0.46rem 0.74rem;
  border: 1px solid #e4c489;
  background: linear-gradient(145deg, #ffe7be, #fff2d8);
  color: #724f20;
  font-size: 0.9rem;
  line-height: 1.2;
  font-weight: 600;
  box-shadow: none;
  white-space: nowrap;
}

.ui-context-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ui-action-btn {
  border-radius: 0.78rem;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.2;
  padding: 0.46rem 0.74rem;
  --bs-btn-color: #2f425f;
  --bs-btn-border-color: #9fb1c8;
  --bs-btn-hover-color: #21314a;
  --bs-btn-hover-bg: #edf3fa;
  --bs-btn-hover-border-color: #8ca0bb;
  --bs-btn-active-color: #1b2940;
  --bs-btn-active-bg: #e3ecf7;
  --bs-btn-active-border-color: #8095b3;
}

.ui-action-btn i {
  width: 1rem;
  text-align: center;
}

.ui-mobile-menu-btn {
  white-space: nowrap;
  flex: 0 0 auto;
}

.ui-page-content {
  padding: 0 1.5rem 1.5rem;
}

.ui-app-container {
  width: 100%;
  max-width: var(--ui-app-max-width);
  margin-inline: auto;
}

.ui-page-content .card {
  border: 1px solid var(--ui-line);
  border-radius: 1.1rem;
  box-shadow: var(--ui-shadow-soft);
}

.cp-breadcrumb-wrap {
  display: block;
}

.cp-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid #d6dae1;
  border-radius: 0.9rem;
  box-shadow: var(--ui-shadow-soft);
  padding: 0.54rem 0.84rem;
  font-size: 0.85rem;
  line-height: 1.24;
  min-height: 2.28rem;
}

.cp-breadcrumb .breadcrumb-item {
  letter-spacing: 0.002em;
}

.cp-breadcrumb .breadcrumb-item + .breadcrumb-item {
  padding-left: 0.5rem;
}

.cp-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  padding-right: 0.5rem;
  color: #5e6a7a;
}

.cp-breadcrumb .breadcrumb-item a {
  color: #2a3550;
  font-weight: 560;
  text-decoration: none;
}

.cp-breadcrumb .breadcrumb-item a:hover {
  color: #0a58ca;
  text-decoration: underline;
}

.cp-breadcrumb .breadcrumb-item.active {
  color: #111c44;
  font-weight: 650;
}

.ui-flash-wrap {
  display: grid;
  gap: 0.7rem;
}

.ui-flash-alert {
  border-radius: 0.85rem;
  border-width: 1px;
  box-shadow: var(--ui-shadow-soft);
}

.ui-flash-wrap .ui-flash-alert {
  margin-bottom: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: flex-start;
  gap: 0.72rem;
  padding: 0.78rem 0.92rem;
  border-radius: 0.95rem;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 251, 255, 0.98) 100%);
  animation: ui-flash-enter 220ms ease-out;
}

.ui-flash-wrap .ui-flash-alert.alert-dismissible {
  padding-right: 0.92rem;
}

.ui-flash-wrap .ui-flash-alert-icon {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 0.58rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.94rem;
  flex-shrink: 0;
}

.ui-flash-wrap .ui-flash-alert-body {
  min-width: 0;
}

.ui-flash-wrap .ui-flash-alert-title {
  font-size: 0.67rem;
  line-height: 1.2;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 780;
  opacity: 0.84;
}

.ui-flash-wrap .ui-flash-alert-text {
  font-size: 0.9rem;
  line-height: 1.36;
}

.ui-flash-wrap .ui-flash-alert .btn-close {
  align-self: center;
  margin: 0;
  padding: 0.42rem;
  opacity: 0.56;
  box-shadow: none;
}

.ui-flash-wrap .ui-flash-alert .btn-close:hover {
  opacity: 0.95;
}

.ui-flash-wrap .ui-flash-alert.alert-danger {
  border-color: #efc5ca;
  background: linear-gradient(155deg, #fff4f6 0%, #fff9fa 100%);
  color: #7c2734;
}

.ui-flash-wrap .ui-flash-alert.alert-danger .ui-flash-alert-icon {
  background: #f9e1e5;
  color: #ad3144;
}

.ui-flash-wrap .ui-flash-alert.alert-warning {
  border-color: #ead5ad;
  background: linear-gradient(155deg, #fff8ea 0%, #fffdf5 100%);
  color: #7a5720;
}

.ui-flash-wrap .ui-flash-alert.alert-warning .ui-flash-alert-icon {
  background: #faefd9;
  color: #a5782f;
}

.ui-flash-wrap .ui-flash-alert.alert-success {
  border-color: #b9dfca;
  background: linear-gradient(155deg, #eefaf3 0%, #f8fffb 100%);
  color: #1e6240;
}

.ui-flash-wrap .ui-flash-alert.alert-success .ui-flash-alert-icon {
  background: #d9f0e2;
  color: #2d8a5c;
}

.ui-flash-wrap .ui-flash-alert.alert-info {
  border-color: #c4daef;
  background: linear-gradient(155deg, #f1f8ff 0%, #f9fcff 100%);
  color: #23557f;
}

.ui-flash-wrap .ui-flash-alert.alert-info .ui-flash-alert-icon {
  background: #dfecf8;
  color: #2f73ae;
}

@keyframes ui-flash-enter {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ui-footer {
  margin: 1.2rem 1.5rem 0.95rem;
  padding-top: 0.5rem;
  background: transparent;
  border: 0;
  position: relative;
}

.ui-footer::before {
  content: "";
  display: block;
  width: 100%;
  max-width: var(--ui-app-max-width);
  height: 1px;
  margin: 0 auto 0.62rem;
  background: linear-gradient(90deg, rgba(133, 154, 180, 0), rgba(133, 154, 180, 0.62) 48%, rgba(133, 154, 180, 0));
}

.ui-footer-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.ui-footer-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #5f7591;
  font-size: 0.79rem;
  letter-spacing: 0.02em;
  font-weight: 560;
}

.ui-footer-copy::before {
  content: "";
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 999px;
  background: linear-gradient(145deg, #7aa4cb, #4f7599);
  box-shadow: 0 0 0 0.2rem rgba(122, 164, 203, 0.16);
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  font-size: 0.875rem;
  padding: 0.45rem 0.8rem;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
  font-size: 0.875rem;
}

.dataTables_wrapper .dataTables_paginate .pagination {
  margin: 0;
  gap: 0.36rem;
  align-items: center;
  flex-wrap: wrap;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.page-item,
.dataTables_wrapper .dataTables_paginate .dt-paging-button.page-item {
  margin: 0;
}

.dataTables_wrapper .dataTables_paginate .page-item .page-link,
.dataTables_wrapper .dataTables_paginate .paginate_button:not(.page-item),
.dataTables_wrapper .dataTables_paginate .dt-paging-button:not(.page-item) {
  min-height: 2.05rem;
  min-width: 2.05rem;
  padding: 0.42rem 0.68rem;
  border-radius: 999px;
  border: 1px solid #c9d9eb;
  background: linear-gradient(170deg, #ffffff 0%, #f2f7ff 100%);
  color: #24456a;
  font-size: 0.82rem;
  font-weight: 720;
  line-height: 1;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0.25rem 0.68rem rgba(29, 62, 105, 0.1);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, background 150ms ease, color 150ms ease;
  text-decoration: none;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.page-item.previous .page-link,
.dataTables_wrapper .dataTables_paginate .paginate_button.page-item.next .page-link,
.dataTables_wrapper .dataTables_paginate .dt-paging-button.page-item.previous .page-link,
.dataTables_wrapper .dataTables_paginate .dt-paging-button.page-item.next .page-link,
.dataTables_wrapper .dataTables_paginate .paginate_button.previous:not(.page-item),
.dataTables_wrapper .dataTables_paginate .paginate_button.next:not(.page-item),
.dataTables_wrapper .dataTables_paginate .dt-paging-button.previous:not(.page-item),
.dataTables_wrapper .dataTables_paginate .dt-paging-button.next:not(.page-item) {
  min-width: 2.5rem;
  padding-inline: 0.8rem;
}

.dataTables_wrapper .dataTables_paginate .page-item:not(.active):not(.disabled) .page-link:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button:not(.current):not(.disabled):not(.page-item):hover,
.dataTables_wrapper .dataTables_paginate .dt-paging-button:not(.current):not(.disabled):not(.page-item):hover {
  border-color: #a8c2de;
  background: linear-gradient(170deg, #ffffff 0%, #eaf3ff 100%);
  color: #1f3c60;
  box-shadow: 0 0.38rem 0.85rem rgba(31, 86, 146, 0.16);
  transform: translateY(-1px);
}

.dataTables_wrapper .dataTables_paginate .page-item .page-link:focus-visible,
.dataTables_wrapper .dataTables_paginate .paginate_button:not(.page-item):focus-visible,
.dataTables_wrapper .dataTables_paginate .dt-paging-button:not(.page-item):focus-visible {
  border-color: #7aa9d6;
  box-shadow: 0 0 0 0.22rem rgba(39, 104, 166, 0.2), 0 0.28rem 0.75rem rgba(31, 86, 146, 0.16);
  outline: none;
}

.dataTables_wrapper .dataTables_paginate .page-item.active .page-link,
.dataTables_wrapper .dataTables_paginate .page-item.current .page-link,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:not(.page-item),
.dataTables_wrapper .dataTables_paginate .dt-paging-button.current:not(.page-item) {
  border-color: #1f5f97;
  background: linear-gradient(165deg, #2f6faa 0%, #1f5f97 100%);
  color: #ffffff;
  box-shadow: 0 0.42rem 1rem rgba(31, 95, 151, 0.28);
  transform: translateY(-1px);
}

.dataTables_wrapper .dataTables_paginate .page-item.disabled .page-link,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:not(.page-item),
.dataTables_wrapper .dataTables_paginate .dt-paging-button.disabled:not(.page-item) {
  border-color: #d8e3ef;
  background: #f3f7fc;
  color: #7f92a8;
  box-shadow: none;
  opacity: 1;
}

@media (max-width: 767.98px) {
  .dataTables_wrapper .dataTables_paginate {
    padding-inline: 0.25rem;
  }

  .dataTables_wrapper .dataTables_paginate .pagination {
    justify-content: center;
    gap: 0.28rem;
  }

  .dataTables_wrapper .dataTables_paginate .page-item .page-link,
  .dataTables_wrapper .dataTables_paginate .paginate_button:not(.page-item),
  .dataTables_wrapper .dataTables_paginate .dt-paging-button:not(.page-item) {
    min-height: 1.9rem;
    min-width: 1.9rem;
    padding: 0.35rem 0.56rem;
    font-size: 0.78rem;
  }

  .dataTables_wrapper .dataTables_paginate .paginate_button.page-item.previous .page-link,
  .dataTables_wrapper .dataTables_paginate .paginate_button.page-item.next .page-link,
  .dataTables_wrapper .dataTables_paginate .dt-paging-button.page-item.previous .page-link,
  .dataTables_wrapper .dataTables_paginate .dt-paging-button.page-item.next .page-link,
  .dataTables_wrapper .dataTables_paginate .paginate_button.previous:not(.page-item),
  .dataTables_wrapper .dataTables_paginate .paginate_button.next:not(.page-item),
  .dataTables_wrapper .dataTables_paginate .dt-paging-button.previous:not(.page-item),
  .dataTables_wrapper .dataTables_paginate .dt-paging-button.next:not(.page-item) {
    min-width: 2.3rem;
    padding-inline: 0.68rem;
  }
}

.ui-hero-card {
  border: 1px solid var(--ui-line);
  border-radius: 1.45rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(248, 251, 255, 0.96));
  box-shadow: var(--ui-shadow);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.ui-hero-card::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 220px;
  height: 220px;
  border-radius: 2rem;
  transform: rotate(14deg);
  z-index: -1;
  background: linear-gradient(145deg, rgba(31, 122, 79, 0.18), rgba(31, 95, 151, 0.16));
}

.ui-hero-title {
  font-family: "Fraunces", serif;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  margin-bottom: 0.75rem;
  color: #131d2d;
}

.ui-text-muted-strong {
  color: var(--ui-muted);
}

.ui-soft-badge {
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

.ui-soft-badge-secondary {
  color: var(--ui-green);
  background: var(--ui-green-soft);
}

.ui-soft-badge-primary {
  color: var(--ui-blue);
  background: var(--ui-blue-soft);
}

.ui-service-card {
  border: 1px solid var(--ui-line);
  border-radius: 1.35rem;
  background: var(--ui-paper);
  box-shadow: var(--ui-shadow);
  transition: transform 220ms ease, box-shadow 220ms ease;
  height: 100%;
  overflow: hidden;
}

.ui-service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 1.2rem 2.6rem rgba(17, 40, 74, 0.15);
}

.ui-service-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: 1px solid transparent;
}

.ui-service-icon.is-secondary {
  color: var(--ui-green);
  background: var(--ui-green-soft);
  border-color: #c7e8d6;
}

.ui-service-icon.is-primary {
  color: var(--ui-blue);
  background: var(--ui-blue-soft);
  border-color: #c8def6;
}

.ui-alert-soft {
  border-radius: 0.8rem;
  border: 1px solid var(--ui-warning-line);
  background: var(--ui-warning-bg);
  color: var(--ui-warning-text);
  font-size: 0.84rem;
  padding: 0.65rem 0.75rem;
}

.ui-btn-stack .btn {
  border-radius: 0.78rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.2;
  padding: 0.5rem 0.72rem;
}

.ui-btn-stack .btn i {
  width: 1rem;
  text-align: center;
}

.btn-ui-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #1f5f97;
  --bs-btn-border-color: #1f5f97;
  --bs-btn-hover-bg: #1b5487;
  --bs-btn-hover-border-color: #1b5487;
  --bs-btn-active-bg: #194d7a;
  --bs-btn-active-border-color: #194d7a;
}

.ui-filter-shell {
  width: 100%;
}

.ui-filter-card {
  overflow: visible;
}

.ui-filter-card:hover {
  transform: none;
  box-shadow: var(--ui-shadow);
}

.ui-filter-form {
  margin: 0;
}

.ui-filter-main {
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
  flex-wrap: nowrap;
}

.ui-filter-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  border: 1px solid #c8def6;
  background: #e9f3ff;
  color: #1f5f97;
  padding: 0.36rem 0.66rem;
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
}

.ui-filter-title.is-secondary {
  border-color: #c7e8d6;
  background: #eef8f3;
  color: #1f7a4f;
}

.ui-filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.26rem;
  margin: 0;
  min-width: 188px;
  max-width: 260px;
  flex: 1 1 210px;
}

.ui-filter-field-tight {
  min-width: 150px;
  max-width: 190px;
  flex: 1 1 165px;
}

.ui-filter-field span {
  font-size: 0.64rem;
  font-weight: 760;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #57708e;
  line-height: 1;
}

.ui-filter-field .form-control {
  border: 1px solid #bfd2e6;
  border-radius: 0.72rem;
  background: #fbfdff;
  color: #1f3552;
  font-size: 0.86rem;
  font-weight: 620;
  min-height: 2.12rem;
  padding: 0.37rem 0.62rem;
  box-shadow: none;
}

.ui-filter-field .form-select {
  border: 1px solid #bfd2e6;
  border-radius: 0.72rem;
  background-color: #fbfdff;
  color: #1f3552;
  font-size: 0.86rem;
  font-weight: 620;
  min-height: 2.12rem;
  padding: 0.37rem 2rem 0.37rem 0.62rem;
  box-shadow: none;
}

.ui-filter-field .form-control:focus {
  border-color: #86acd4;
  box-shadow: 0 0 0 0.2rem rgba(39, 107, 167, 0.13);
}

.ui-filter-field .form-select:focus {
  border-color: #86acd4;
  box-shadow: 0 0 0 0.2rem rgba(39, 107, 167, 0.13);
}

.ui-filter-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.44rem;
  flex: 0 0 auto;
}

.ui-filter-actions .btn {
  min-height: 2.12rem;
  border-radius: 0.72rem;
  font-size: 0.82rem;
  font-weight: 680;
  padding: 0.36rem 0.75rem;
}

.ui-filter-period {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  border-radius: 999px;
  border: 1px solid #dfca98;
  background: #fff6e7;
  color: #7d5a22;
  font-size: 0.74rem;
  line-height: 1.2;
  font-weight: 620;
  padding: 0.34rem 0.58rem;
}

.ui-app-container .ui-btn-stack .btn-outline-success {
  --bs-btn-color: #1f7a4f;
  --bs-btn-border-color: #8dc4a9;
  --bs-btn-hover-color: #155538;
  --bs-btn-hover-bg: #eaf6f0;
  --bs-btn-hover-border-color: #7bb598;
  --bs-btn-active-color: #12472f;
  --bs-btn-active-bg: #deefe6;
  --bs-btn-active-border-color: #6ea98a;
}

.ui-app-container .ui-btn-stack .btn-outline-dark {
  --bs-btn-color: #2f425f;
  --bs-btn-border-color: #9fb1c8;
  --bs-btn-hover-color: #21314a;
  --bs-btn-hover-bg: #edf3fa;
  --bs-btn-hover-border-color: #8ca0bb;
  --bs-btn-active-color: #1b2940;
  --bs-btn-active-bg: #e3ecf7;
  --bs-btn-active-border-color: #8095b3;
}

@media (prefers-reduced-motion: no-preference) {
  .ui-app-container .ui-hero-card,
  .ui-app-container .ui-service-card {
    animation: ui-fade-up 620ms ease both;
  }

  .ui-app-container .ui-service-col:nth-child(2) .ui-service-card {
    animation-delay: 130ms;
  }
}

@keyframes ui-fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 992px) {
  .ui-sidenav.offcanvas-lg {
    position: fixed;
    left: var(--ui-shell-gap);
    top: var(--ui-shell-gap);
    bottom: var(--ui-shell-gap);
    width: var(--ui-sidenav-width);
    border-radius: 1rem;
    transform: none !important;
    visibility: visible !important;
  }

  .ui-sidenav.offcanvas-lg .offcanvas-header {
    display: flex !important;
  }

  .ui-sidenav.offcanvas-lg .offcanvas-body {
    display: flex !important;
    flex-direction: column;
    flex: 1 1 auto;
    overflow-y: auto;
  }

  .ui-main-content {
    margin-left: calc(var(--ui-shell-gap) + var(--ui-sidenav-width) + var(--ui-shell-gap));
  }
}

@media (max-width: 1199.98px) {
  .ui-topbar {
    margin: 0.15rem 1rem 0.6rem;
  }

  .ui-page-content {
    padding: 0 1rem 1.25rem;
  }

  .ui-footer {
    margin: 1rem 1rem 0.8rem;
  }
}

@media (max-width: 991.98px) {
  .ui-filter-main {
    flex-wrap: wrap;
  }

  .ui-filter-field {
    max-width: none;
  }

  .ui-topbar-inner {
    min-height: 52px;
  }

  .ui-mobile-menu-btn {
    margin-right: auto;
  }

  .ui-topbar-brand {
    font-size: 1rem;
  }

  .ui-topbar-actions {
    width: 100%;
    margin-top: 0.5rem;
    justify-content: flex-start !important;
  }
}

@media (max-width: 575.98px) {
  .ui-filter-title {
    width: 100%;
  }

  .ui-filter-field {
    min-width: 100%;
    width: 100%;
  }

  .ui-filter-actions {
    width: 100%;
  }

  .ui-filter-actions .btn {
    flex: 1 1 0;
  }

  .ui-filter-period {
    width: 100%;
    justify-content: center;
  }

  .ui-flash-wrap .ui-flash-alert {
    grid-template-columns: auto 1fr;
    padding: 0.72rem 0.78rem;
  }

  .ui-flash-wrap .ui-flash-alert.alert-dismissible {
    padding-right: 0.78rem;
  }

  .ui-flash-wrap .ui-flash-alert .btn-close {
    grid-column: 2;
    justify-self: end;
    margin-top: -0.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ui-flash-wrap .ui-flash-alert {
    animation: none;
  }
}

/* Legacy template harmonization: align older dashboard markup with the current customer design language. */
.ui-page-content .card-header {
  border-bottom: 1px solid #d9e4ef;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-top-left-radius: 1.1rem;
  border-top-right-radius: 1.1rem;
}

.ui-page-content > .card.mb-4:first-of-type,
.ui-page-content > .row:first-of-type > [class*="col-"] > .card:first-of-type {
  border-radius: 1.45rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.98));
  box-shadow: var(--ui-shadow);
  overflow: hidden;
  position: relative;
}

.ui-page-content > .card.mb-4:first-of-type::after,
.ui-page-content > .row:first-of-type > [class*="col-"] > .card:first-of-type::after {
  content: "";
  position: absolute;
  right: -74px;
  top: -74px;
  width: 220px;
  height: 220px;
  transform: rotate(14deg);
  border-radius: 2rem;
  background: linear-gradient(145deg, rgba(31, 122, 79, 0.16), rgba(31, 95, 151, 0.14));
  pointer-events: none;
}

.ui-page-content .card-header h4,
.ui-page-content .card-header h5,
.ui-page-content .card-header h6 {
  color: #1a2f4f;
  margin-bottom: 0.2rem;
}

.ui-page-content .card-body {
  color: #22364f;
}

.ui-page-content .table-responsive {
  border-radius: 0;
  border: 0;
  margin: 0;
  background: transparent;
}

.ui-page-content .table {
  margin-bottom: 0;
  width: 100%;
  --bs-table-bg: transparent;
  --bs-table-striped-bg: #f7fbff;
  --bs-table-hover-bg: #eff6ff;
}

.ui-page-content .table > thead {
  background: #f6faff;
}

.ui-page-content .table > :not(caption) > * > * {
  border-bottom-color: #e1eaf4;
  vertical-align: middle;
  padding: 0.82rem 0.95rem;
}

.ui-page-content .table > thead th {
  color: #49627f !important;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  font-weight: 800;
  text-transform: uppercase;
}

.ui-page-content .card .table > :not(caption) > * > *:first-child {
  padding-left: 1.2rem;
}

.ui-page-content .card .table > :not(caption) > * > *:last-child {
  padding-right: 1.2rem;
}

.ui-page-content .card .table tbody tr:last-child > * {
  border-bottom-color: transparent;
}

.ui-page-content .list-group-item {
  border-color: #dce6f1;
}

.ui-page-content .nav.nav-pills {
  border: 1px solid #d4e0ed;
  border-radius: 1rem;
  background: #f8fbff;
}

.ui-page-content .nav.nav-pills .nav-link {
  border-radius: 0.78rem;
  color: #2c4666;
  font-weight: 600;
}

.ui-page-content .nav.nav-pills .nav-link.active {
  border: 1px solid #1f7a4f;
  background: linear-gradient(160deg, #2b8d5f, #1f7a4f) !important;
  color: #fff !important;
}

.ui-page-content .badge {
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.4rem 0.62rem;
}

.ui-page-content .badge-sm {
  font-size: 0.68rem;
  padding: 0.3rem 0.52rem;
}

.ui-page-content .bg-gradient-primary,
.ui-login-shell .bg-gradient-primary {
  background: linear-gradient(160deg, #2f6ba7 0%, #1f5f97 100%) !important;
  color: #fff !important;
}

.ui-page-content .bg-gradient-success,
.ui-login-shell .bg-gradient-success {
  background: linear-gradient(160deg, #27895b 0%, #1f7a4f 100%) !important;
  color: #fff !important;
}

.ui-page-content .bg-gradient-secondary,
.ui-login-shell .bg-gradient-secondary {
  background: linear-gradient(160deg, #73879f 0%, #5a6d87 100%) !important;
  color: #fff !important;
}

.ui-page-content .bg-gradient-warning,
.ui-login-shell .bg-gradient-warning {
  background: linear-gradient(160deg, #d39a3f 0%, #bb8230 100%) !important;
  color: #fff !important;
}

.ui-page-content .bg-gradient-danger,
.ui-login-shell .bg-gradient-danger {
  background: linear-gradient(160deg, #c55252 0%, #a94444 100%) !important;
  color: #fff !important;
}

.ui-page-content .bg-gradient-info,
.ui-login-shell .bg-gradient-info {
  background: linear-gradient(160deg, #3382c3 0%, #2d6da6 100%) !important;
  color: #fff !important;
}

.ui-page-content .bg-gradient-dark,
.ui-login-shell .bg-gradient-dark {
  background: linear-gradient(160deg, #33475f 0%, #25354a 100%) !important;
  color: #fff !important;
}

.ui-page-content .bg-gradient-faded-warning-vertical {
  background: linear-gradient(160deg, #f2dfbc 0%, #e7c78c 100%) !important;
  color: #7c5420 !important;
}

.ui-page-content .btn.bg-gradient-primary,
.ui-login-shell .btn.bg-gradient-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #1f5f97;
  --bs-btn-border-color: #1f5f97;
  --bs-btn-hover-bg: #1b5487;
  --bs-btn-hover-border-color: #1b5487;
  --bs-btn-active-bg: #194d7a;
  --bs-btn-active-border-color: #194d7a;
}

.ui-page-content .btn.bg-gradient-success,
.ui-login-shell .btn.bg-gradient-success {
  --bs-btn-color: #fff;
  --bs-btn-bg: #1f7a4f;
  --bs-btn-border-color: #1f7a4f;
  --bs-btn-hover-bg: #1a6a44;
  --bs-btn-hover-border-color: #1a6a44;
  --bs-btn-active-bg: #165b3a;
  --bs-btn-active-border-color: #165b3a;
}

.ui-page-content .btn.bg-gradient-info,
.ui-login-shell .btn.bg-gradient-info {
  --bs-btn-color: #fff;
  --bs-btn-bg: #2f6ba7;
  --bs-btn-border-color: #2f6ba7;
  --bs-btn-hover-bg: #285b8f;
  --bs-btn-hover-border-color: #285b8f;
  --bs-btn-active-bg: #234f7b;
  --bs-btn-active-border-color: #234f7b;
}

.ui-page-content .btn.btn-outline-secondary,
.ui-login-shell .btn.btn-outline-secondary,
.ui-page-content .btn.btn-outline-warning,
.ui-login-shell .btn.btn-outline-warning {
  border-radius: 0.78rem;
  font-weight: 600;
}

.ui-page-content .btn,
.ui-login-shell .btn {
  border-radius: 0.78rem;
  font-weight: 600;
}

.ui-page-content .icon.icon-shape {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.8rem;
  border: 1px solid #cfe0f0;
  box-shadow: 0 0.5rem 1rem rgba(29, 67, 111, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ui-page-content .icon.icon-shape.icon-sm {
  width: 2rem;
  height: 2rem;
}

.ui-page-content .avatar {
  display: inline-block;
}

.ui-page-content .avatar-sm {
  width: 2rem;
  height: 2rem;
}

.ui-page-content .avatar-xl {
  width: 4rem;
  height: 4rem;
}

.ui-page-content .rounded-circle,
.ui-page-content .avatar img {
  border-radius: 999px !important;
}

.ui-page-content .border-radius-lg {
  border-radius: 0.9rem !important;
}

.ui-page-content .border-radius-md {
  border-radius: 0.72rem !important;
}

.ui-page-content .bg-gray-100 {
  background: #f3f8fe !important;
}

.ui-page-content .shadow-primary,
.ui-page-content .shadow-success,
.ui-page-content .shadow-info,
.ui-page-content .shadow-warning,
.ui-page-content .shadow-danger,
.ui-page-content .shadow-dark,
.ui-page-content .shadow-secondary {
  box-shadow: 0 0.55rem 1.1rem rgba(24, 58, 99, 0.16) !important;
}

.ui-page-content .opacity-10 {
  opacity: 0.1 !important;
}

.ui-page-content .opacity-7 {
  opacity: 0.7 !important;
}

.ui-page-content .w-5 {
  width: 5% !important;
}

.ui-page-content .mt-n4 {
  margin-top: -1.5rem !important;
}

@media (min-width: 992px) {
  .ui-page-content .mt-lg-n6 {
    margin-top: -3rem !important;
  }
}

.ui-page-content .text-xs {
  font-size: 0.76rem !important;
}

.ui-page-content .text-sm {
  font-size: 0.9rem !important;
}

.ui-page-content .text-xxs {
  font-size: 0.68rem !important;
}

.ui-page-content .font-weight-bold {
  font-weight: 700 !important;
}

.ui-page-content .font-weight-bolder {
  font-weight: 800 !important;
}

.ui-page-content .numbers h5,
.ui-page-content .numbers h6 {
  color: #16314f;
}

.ui-page-content .alert-secondary {
  color: #335173;
  border-color: #cfdeed;
  background: #f3f8ff;
}

.ui-page-content .carousel-caption {
  text-shadow: 0 0.15rem 0.6rem rgba(0, 0, 0, 0.3);
}

.ui-error-shell {
  max-width: 760px;
  margin-inline: auto;
}

.ui-error-code {
  font-family: "Fraunces", serif;
  font-size: clamp(3.2rem, 12vw, 6.2rem);
  line-height: 1;
  color: #1b3c62;
}

.ui-login-shell {
  min-height: 100vh;
  padding: 2rem 0;
}

.ui-login-panel {
  border: 1px solid var(--ui-line);
  border-radius: 1.35rem;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.96));
  box-shadow: var(--ui-shadow);
}

.ui-login-hero {
  border: 1px solid #cadeef;
  border-radius: 1.35rem;
  box-shadow: var(--ui-shadow);
  overflow: hidden;
  min-height: 520px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.ui-login-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(19, 34, 53, 0.82), rgba(31, 95, 151, 0.42));
}

.ui-login-hero-body {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 2.2rem;
}

.ui-login-title {
  font-family: "Fraunces", serif;
  color: #11243d;
}

.ui-login-shell label {
  font-weight: 700;
  font-size: 0.84rem;
  color: #304d70;
}

.ui-login-shell input[type="text"],
.ui-login-shell input[type="password"],
.ui-login-shell input[type="email"] {
  width: 100%;
  border: 1px solid #c3d5e9;
  border-radius: 0.8rem;
  background: #f9fcff;
  color: #1f3552;
  padding: 0.55rem 0.7rem;
}

.ui-login-shell input[type="text"]:focus,
.ui-login-shell input[type="password"]:focus,
.ui-login-shell input[type="email"]:focus {
  outline: none;
  border-color: #86acd4;
  box-shadow: 0 0 0 0.2rem rgba(39, 107, 167, 0.16);
}

.ui-tab-strip {
  border: 1px solid #d4e0ed;
  border-radius: 1rem;
  background: #f8fbff;
  padding: 0.3rem;
}

.ui-tab-strip .nav-link {
  border-radius: 0.74rem;
  color: #2c4666;
  font-weight: 600;
  border: 1px solid transparent;
}

.ui-tab-strip .nav-link:hover {
  color: #213753;
  border-color: #c4d7ea;
  background: #eef5fd;
}

.ui-tab-strip .nav-link.active {
  color: #fff;
  border-color: #1f7a4f;
  background: linear-gradient(160deg, #2b8d5f, #1f7a4f);
}

.ui-status-badge {
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.34rem 0.58rem;
}

.ui-status-badge-neutral {
  color: #4f6078;
  background: #eaf0f7;
}

.ui-status-badge-info {
  color: #225f91;
  background: #e2f1ff;
}

.ui-status-badge-warning {
  color: #7f5a20;
  background: #fff1db;
}

.ui-status-badge-danger {
  color: #8b3636;
  background: #f9e0e0;
}

.ui-home-carousel-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(160deg, rgba(20, 38, 60, 0.82), rgba(31, 95, 151, 0.5));
}

.ui-home-avatar {
  border-radius: 1rem;
  padding: 0.12rem;
  border: 1px solid #d7e4f2;
  background: linear-gradient(165deg, #f4f9ff, #ffffff);
  box-shadow: 0 0.6rem 1.2rem rgba(37, 76, 121, 0.12);
}

.ui-home-hero-panel {
  border: 1px solid #d6e3f0;
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.88), rgba(246, 250, 255, 0.95));
  box-shadow: 0 0.5rem 1rem rgba(23, 49, 84, 0.1);
}

.ui-home-hero-panel-label {
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #54708f;
}

.ui-home-hero-panel-title {
  font-family: "Fraunces", serif;
  color: #1f3e63;
  font-size: 1.05rem;
  line-height: 1.2;
}

.ui-home-customer-cover {
  max-height: 240px;
  object-fit: cover;
}

.ui-home-customer-logo {
  max-width: 88px;
  box-shadow: 0 0.6rem 1rem rgba(27, 52, 84, 0.16);
}

.ui-home-customer-body {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(249, 252, 255, 0.96));
}

.ui-home-customer-table th {
  color: #44607f !important;
  font-size: 0.73rem !important;
  font-weight: 760 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase;
  width: 38%;
}

.ui-home-customer-table td {
  color: #213a58;
}

.ui-home-customer-table th i {
  color: #5e7da0;
}

.ui-home-side-stack > .ui-service-card {
  flex: 1 1 0;
}

.ui-home-carousel-card {
  min-height: 285px;
}

.ui-home-carousel {
  min-height: 230px;
}

.ui-home-carousel .carousel-inner {
  min-height: 230px;
}

.ui-home-carousel-indicators {
  margin-bottom: 0.55rem;
  gap: 0.18rem;
}

.ui-home-carousel-indicators button {
  width: 0.42rem !important;
  height: 0.42rem !important;
  border-radius: 999px;
  border: 0;
  opacity: 0.72;
}

.ui-home-carousel-indicators button.active {
  opacity: 1;
}

.ui-home-carousel-caption {
  max-width: 28rem;
  z-index: 1;
  margin-bottom: 1rem;
}

.ui-home-carousel-caption h5 {
  font-size: 1.04rem;
}

.ui-home-carousel-caption p {
  font-size: 0.86rem;
}

.ui-home-carousel-control {
  width: 2.2rem;
  height: 2.2rem;
  top: auto;
  bottom: 1rem;
  border-radius: 999px;
  border: 1px solid rgba(235, 243, 252, 0.7);
  background: rgba(17, 34, 52, 0.42);
}

.ui-home-carousel-control.carousel-control-prev {
  left: 1rem;
}

.ui-home-carousel-control.carousel-control-next {
  right: 1rem;
}

.ui-home-carousel-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.72rem;
  border: 1px solid #d2dfed;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2f587f;
  box-shadow: 0 0.45rem 0.95rem rgba(20, 38, 60, 0.25);
}

@media (max-width: 991.98px) {
  .ui-home-side-stack > .ui-service-card {
    flex: initial;
  }

  .ui-home-carousel-card {
    min-height: 265px;
  }

  .ui-home-carousel,
  .ui-home-carousel .carousel-inner {
    min-height: 220px;
  }

  .ui-home-carousel-caption {
    max-width: 100%;
    margin-bottom: 0.7rem;
  }

  .ui-home-carousel-control {
    width: 2rem;
    height: 2rem;
    bottom: 0.8rem;
  }

  .ui-login-hero {
    min-height: 260px;
  }
}
