body {
  letter-spacing: 0;
}

.sidebar {
  background: linear-gradient(180deg, #081522 0%, #0b1b2e 100%);
  border-right-color: rgba(94, 234, 212, 0.14);
}

.sidebar-header {
  min-height: 84px;
  padding: 1.25rem 1.35rem;
  border-bottom-color: rgba(94, 234, 212, 0.14);
}

.sidebar-header > span {
  color: #e5fffb;
  letter-spacing: 0.04em;
}

.sidebar-header i,
.sidebar-item.active i,
.top-sidebar-button.active i {
  color: var(--brand-teal-300);
}

.sidebar-item {
  margin: 3px 10px;
  border-radius: var(--ui-radius-md);
  color: #a8c0c0;
}

.sidebar-section-label {
  margin: 1rem 10px 0.35rem;
  color: #71869a;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-section-label:first-child { margin-top: 0.2rem; }
.sidebar.collapsed .sidebar-section-label { display: none; }

.sidebar-item:hover,
.sidebar-item.active {
  background: rgba(20, 184, 166, 0.13);
  color: #effffc;
}

.sidebar-item.active {
  box-shadow: inset 3px 0 0 var(--brand-teal-500);
}

.main-content {
  padding: 1.5rem clamp(1rem, 2.5vw, 2.5rem);
  background: transparent;
}

.top-sidebar-nav {
  min-height: 52px;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--border-color);
  border-radius: var(--ui-radius-lg);
  background: color-mix(in srgb, var(--bg-card-solid) 88%, transparent);
  box-shadow: var(--shadow-sm);
}

.top-sidebar-button,
.top-sidebar-theme-button,
.top-notification-button,
.top-user-button {
  min-height: 40px;
  border-radius: var(--ui-radius-sm);
}

.mobile-menu-button,
.mobile-menu-inline-button,
.sidebar-backdrop {
  display: none;
}

.top-sidebar-button:hover,
.top-sidebar-button.active {
  background: var(--hover-bg);
  color: var(--primary-hover);
}

#pageTitle {
  margin: 0 0 1.25rem !important;
  color: var(--text-main);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  letter-spacing: -0.02em;
}

.page-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1.4rem;
}

.page-heading-copy { min-width: 0; }
.page-heading-copy .app-breadcrumb { margin-top: 0; }
.page-header-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(190px, 1fr));
  width: min(58%, 720px);
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}
.page-header-stats .stat-card { min-height: 88px; padding: 0.72rem 1rem; }
.page-header-stats .stat-value { font-size: clamp(1.45rem, 2.2vw, 2.15rem); }
.page-header-stats .stat-title { font-size: 0.66rem; }
.page-header-stats .stat-comparison { min-height: 0.85rem; margin-top: 0.15rem; font-size: 0.64rem; }

.app-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.4rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.app-breadcrumb i { color: var(--brand-teal-500); font-size: 0.62rem; }
.app-breadcrumb-root { color: var(--text-subtle); }
.app-breadcrumb-root i { margin-right: 0.25rem; }

.top-banner {
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: var(--ui-radius-md);
  background: rgba(13, 148, 136, 0.08);
}

.top-nav-mst-lookup {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: min(300px, 27vw);
  margin-left: auto;
  margin-right: 0.2rem;
  padding: 0.18rem 0.25rem 0.18rem 0.55rem;
  border: 1px solid rgba(94, 234, 212, 0.24);
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 3px 12px rgba(1, 11, 24, 0.12);
}

.top-nav-mst-lookup .mst-lookup-head { display: none; }
.top-nav-mst-lookup .mst-lookup-form { display: flex; width: 100%; }
.top-nav-mst-lookup .mst-lookup-form .form-input { flex: 1; min-width: 0; min-height: 32px; padding: 0.35rem 0.55rem; border: 0; background: transparent; font-size: 0.7rem; box-shadow: none; }
.top-nav-mst-lookup .mst-lookup-form .form-input:focus { border: 0; box-shadow: none; }
.top-nav-mst-lookup .mst-lookup-btn { width: 30px; min-width: 30px; height: 30px; padding: 0; border-radius: 50%; }
.top-nav-mst-lookup { width: 38px !important; min-width: 38px !important; padding: .18rem .2rem !important; border: 0 !important; background: transparent !important; box-shadow: none !important; transition: width .24s ease, box-shadow .24s ease, background .24s ease, border-color .24s ease; }
.top-nav-mst-lookup .mst-lookup-form .form-input { width: 0; flex: 0 0 0; padding-left: 0; padding-right: 0; opacity: 0; transition: width .24s ease, flex .24s ease, opacity .18s ease, padding .24s ease; }
.top-nav-mst-lookup:hover, .top-nav-mst-lookup:focus-within { width: min(300px, 27vw) !important; border: 1px solid rgba(45, 212, 191, .48) !important; background: linear-gradient(135deg, rgba(8, 72, 88, .92), rgba(15, 118, 110, .72)) !important; box-shadow: 0 8px 24px rgba(20, 184, 166, .3), 0 0 0 3px rgba(45, 212, 191, .14), inset 0 1px 0 rgba(255,255,255,.16) !important; }
.top-nav-mst-lookup:hover .mst-lookup-form .form-input, .top-nav-mst-lookup:focus-within .mst-lookup-form .form-input { width: auto; flex: 1; padding-left: .55rem; padding-right: .55rem; opacity: 1; }
body.light-mode .top-nav-mst-lookup:hover, body.light-mode .top-nav-mst-lookup:focus-within { border-color: rgba(13, 148, 136, .28) !important; background: linear-gradient(135deg, #e1fbf7, #d8f1fb) !important; box-shadow: 0 8px 24px rgba(13, 148, 136, .2), 0 0 0 3px rgba(13, 148, 136, .1), inset 0 1px 0 rgba(255,255,255,.95) !important; }

@media (max-width: 700px) {
  .top-nav-mst-lookup { order: 10; width: 100%; margin-left: 0; }
}

@media (max-width: 700px) {
  body { overflow: auto; }
  .main-content { min-width: 0; padding: 1rem; }
  .page-heading-row { align-items: stretch; flex-direction: column; gap: 0.25rem; }
  .page-header-stats { width: 100%; margin-bottom: 0.75rem; }
  .top-sidebar-nav { overflow-x: auto; justify-content: flex-start; }
  .top-sidebar-button { white-space: nowrap; }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(286px, 88vw) !important;
    transform: translateX(-105%);
    transition: transform var(--ui-duration) ease;
    box-shadow: 18px 0 40px rgba(1, 11, 24, 0.32);
  }
  .sidebar.mobile-open { transform: translateX(0); }
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9;
    display: block;
    background: rgba(2, 12, 27, 0.58);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--ui-duration) ease;
  }
  .sidebar-backdrop.active { opacity: 1; pointer-events: auto; }
  .mobile-menu-inline-button { display: inline-flex; }
  .mobile-menu-button { display: none; }
  .sidebar.collapsed { width: min(286px, 88vw) !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

.ncc-debt-filter-slot { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-left: auto; }
.ncc-debt-filter-slot .form-select { min-width: 120px; }
.ncc-debt-filter-slot .form-input { width: 180px; }
.overview-period-bar.ncc-period-mode .overview-period-label,
.overview-period-bar.ncc-period-mode .overview-period-buttons { display: none; }
@media (max-width: 900px) {
  .ncc-debt-filter-slot { width: 100%; margin-left: 0; }
}
