:root {
  --primary: #2ec9ed;
  --primary-hover: #1db4d4;
  --primary-dark: #0f172a;
  --secondary: #0f172a;
  --nav-headbg: #0f172a;
  --sidebar-bg: #0f172a;
  --bs-primary: #2ec9ed;
  --bs-primary-rgb: 46, 201, 237;
  --bs-secondary: #0f172a;
  --bs-secondary-rgb: 15, 23, 42;
  --bs-link-color: #0f172a;
  --bs-link-hover-color: #111827;
  --bs-info: #2ec9ed;
  --bs-info-rgb: 46, 201, 237;
  --rgba-primary-1: rgba(46, 201, 237, 0.1);
  --rgba-primary-2: rgba(46, 201, 237, 0.2);
  --rgba-primary-3: rgba(46, 201, 237, 0.3);
  --rgba-primary-4: rgba(46, 201, 237, 0.4);
  --rgba-primary-5: rgba(46, 201, 237, 0.5);
  --rgba-primary-6: rgba(46, 201, 237, 0.6);
  --rgba-primary-7: rgba(46, 201, 237, 0.7);
  --rgba-primary-8: rgba(46, 201, 237, 0.8);
  --rgba-primary-9: rgba(46, 201, 237, 0.9);
  --app-bg: #f4f7fb;
  --app-surface: rgba(255, 255, 255, 0.82);
  --app-surface-strong: #ffffff;
  --app-border: rgba(15, 23, 42, 0.08);
  --app-border-strong: rgba(15, 23, 42, 0.14);
  --app-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  --app-radius: 28px;
  --app-radius-md: 20px;
  --app-radius-sm: 16px;
  --app-text: #0f172a;
  --app-muted: #64748b;
  --app-success: #17b26a;
  --app-warning: #f59e0b;
  --app-danger: #ef4444;
}

body {
  overscroll-behavior-y: contain;
  -webkit-tap-highlight-color: transparent;
}

body.duofin-app {
  --dz-sidebar-width: 0rem;
  --dz-header-height: auto;
  background:
    radial-gradient(circle at top left, rgba(46, 201, 237, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(15, 23, 42, 0.08), transparent 28%),
    linear-gradient(180deg, #f9fbff 0%, #f3f6fb 40%, #edf2f9 100%);
  color: var(--app-text);
}

.duofin-app .nav-header,
.duofin-app .dlabnav {
  display: none !important;
}

.duofin-app .header {
  height: auto;
  position: sticky;
  top: 0;
  z-index: 30;
  padding-left: 0;
  background: rgba(244, 247, 251, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.duofin-app .header .header-content {
  height: auto;
  padding: 1rem 1.5rem 0.85rem;
}

.duofin-app .content-body {
  margin-left: 0;
  min-height: auto;
}

.duofin-app .content-body .container-fluid {
  padding-top: 1.25rem;
}

.app-shell-header {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.app-shell-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  text-decoration: none;
}

.app-brand__mark {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(31, 42, 68, 0.96) 100%);
  box-shadow: 0 18px 28px rgba(15, 23, 42, 0.16);
}

.app-brand__mark img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.app-brand__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-brand__copy strong {
  color: var(--app-text);
  font-size: 1.15rem;
  line-height: 1.1;
}

.app-brand__copy small {
  color: var(--app-muted);
  font-size: 0.82rem;
}

.app-shell-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  min-width: 0;
}

.app-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.35rem 0.45rem 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(15, 23, 42, 0.06);
  text-decoration: none;
  color: var(--app-text);
}

.app-user-pill__copy {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.app-user-pill__copy strong {
  font-size: 0.95rem;
}

.app-user-pill__copy small {
  color: var(--app-muted);
  font-size: 0.76rem;
}

.app-bank-nav-wrap {
  overflow: hidden;
}

.app-bank-nav {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.1rem;
  scrollbar-width: none;
}

.app-bank-nav::-webkit-scrollbar {
  display: none;
}

.app-bank-nav__item {
  min-width: 230px;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(15, 23, 42, 0.06);
  text-decoration: none;
  color: var(--app-text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.app-bank-nav__item:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 28px rgba(15, 23, 42, 0.08);
}

.app-bank-nav__item.is-active {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(31, 42, 68, 0.95) 100%);
  color: #fff;
  box-shadow: 0 22px 34px rgba(15, 23, 42, 0.16);
}

.app-bank-nav__icon {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(46, 201, 237, 0.14);
  color: #0b4f66;
  flex-shrink: 0;
}

.app-bank-nav__item.is-active .app-bank-nav__icon {
  background: rgba(46, 201, 237, 0.18);
  color: #8cecff;
}

.app-bank-nav__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-bank-nav__copy strong {
  font-size: 0.92rem;
}

.app-bank-nav__copy small {
  font-size: 0.76rem;
  line-height: 1.35;
  color: var(--app-muted);
}

.app-bank-nav__item.is-active .app-bank-nav__copy small {
  color: rgba(255, 255, 255, 0.7);
}

a {
  color: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #76def8 100%);
  border-color: transparent;
  color: #04263a;
  box-shadow: 0 10px 24px rgba(46, 201, 237, 0.25);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: linear-gradient(135deg, var(--primary-hover) 0%, #54d4f2 100%);
  border-color: transparent;
  color: #04263a;
}

.btn-outline-primary {
  color: #0a4f66;
  border-color: rgba(46, 201, 237, 0.45);
  background: rgba(255, 255, 255, 0.7);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  background: rgba(46, 201, 237, 0.14);
  border-color: rgba(46, 201, 237, 0.55);
  color: #083f52;
}

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

.bg-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #76def8 100%) !important;
  color: #04263a;
}

.badge-primary,
.badge.bg-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #54d4f2 100%) !important;
  color: #04263a;
}

.profile-initials {
  width: 40px;
  height: 40px;
  background-color: var(--profile-bg, var(--primary));
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.profile-initials-sm {
  width: 24px;
  height: 24px;
  font-size: 10px;
  border-width: 1px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.profile-avatar-sm {
  width: 24px;
  height: 24px;
  border-width: 1px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

#main-wrapper {
  min-height: 100vh;
}

.content-body {
  min-height: calc(100vh - 96px);
}

.content-body .container-fluid {
  padding: 1.5rem 1.5rem 5.75rem;
}

.card,
.modal-content,
.dropdown-menu,
.dataTables_wrapper .dataTables_paginate .paginate_button {
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-md);
  box-shadow: var(--app-shadow);
}

.card {
  background: var(--app-surface);
  backdrop-filter: blur(16px);
}

.card-header {
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  padding: 1.15rem 1.35rem 0.95rem;
}

.card-header .card-title,
.card-title {
  margin: 0;
  color: var(--app-text);
  font-size: 1.05rem;
  font-weight: 700;
}

.card-body {
  padding: 1.35rem;
}

.card-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  background: transparent;
}

.form-control,
.form-select,
.default-select.form-control,
.select2-container--default .select2-selection--single {
  min-height: 48px;
  border-radius: 14px;
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

textarea.form-control {
  min-height: 120px;
}

.form-control:focus,
.form-select:focus,
.default-select.form-control:focus {
  border-color: rgba(46, 201, 237, 0.65);
  box-shadow: 0 0 0 0.25rem rgba(46, 201, 237, 0.12);
}

.form-label {
  font-weight: 600;
  color: var(--app-text);
}

.table-responsive {
  border-radius: 18px;
}

.table {
  margin-bottom: 0;
}

.table > :not(caption) > * > * {
  padding: 0.95rem 1rem;
  border-bottom-color: rgba(15, 23, 42, 0.06);
  vertical-align: middle;
}

.table thead th {
  color: var(--app-muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.table tbody tr:hover {
  background: rgba(46, 201, 237, 0.05);
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  padding: 0.75rem 0 0;
}

.app-flash-wrap {
  position: relative;
  z-index: 2;
}

.app-flash {
  border: none;
  background: linear-gradient(135deg, rgba(46, 201, 237, 0.16) 0%, rgba(118, 222, 248, 0.3) 100%);
  color: #094a60;
  border-radius: 18px;
  box-shadow: var(--app-shadow);
}

.nav-header {
  width: 21rem;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(9, 15, 32, 0.92);
  backdrop-filter: blur(18px);
}

.nav-header .brand-logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-left: 1.5rem;
  padding-right: 1rem;
  height: 5.2rem;
}

.brand-mark {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(46, 201, 237, 0.28) 0%, rgba(255, 255, 255, 0.06) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.brand-mark img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  color: #fff;
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.brand-copy small {
  color: rgba(255, 255, 255, 0.56);
}

.header {
  background: transparent;
}

.header .header-content {
  height: auto;
  padding: 1.1rem 1.5rem 0;
}

.header-left.app-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.app-page-badge {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(46, 201, 237, 0.22) 0%, rgba(255, 255, 255, 0.9) 100%);
  color: #0b4f66;
  font-size: 1.25rem;
  box-shadow: 0 18px 24px rgba(46, 201, 237, 0.18);
}

.app-page-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.app-page-copy > span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--app-muted);
  font-weight: 700;
}

.app-page-copy .dashboard_bar {
  font-size: 1.4rem;
  line-height: 1.1;
  color: var(--app-text);
}

.app-page-copy small {
  color: var(--app-muted);
  font-size: 0.92rem;
  max-width: 42rem;
}

.app-header-right {
  gap: 0.7rem;
  align-items: center;
}

.app-top-actions {
  gap: 0.55rem;
  margin-right: 0.35rem;
}

.app-top-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: var(--app-text);
  font-size: 0.84rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.app-top-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.08);
}

.app-quick-trigger,
.app-icon-button,
.dlab-theme-mode {
  min-width: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
}

.app-quick-trigger {
  gap: 0.45rem;
  padding: 0 1rem;
}

.app-icon-button,
.dlab-theme-mode {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: var(--app-text);
  position: relative;
}

.app-icon-button .badge {
  position: absolute;
  top: -0.15rem;
  right: -0.15rem;
  font-size: 0.62rem;
  border-radius: 999px;
}

.app-dropdown-panel {
  min-width: 360px;
  padding: 0.45rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.app-dropdown-panel__head {
  padding: 0.9rem 1rem 0.6rem;
  display: flex;
  flex-direction: column;
}

.app-dropdown-panel__head strong {
  color: var(--app-text);
}

.app-dropdown-panel__head small {
  color: var(--app-muted);
}

.app-dropdown-panel .dropdown-item {
  border-radius: 14px;
}

.app-sidebar {
  width: 21rem;
  background:
    radial-gradient(circle at top left, rgba(46, 201, 237, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(6, 10, 23, 0.98) 0%, rgba(12, 18, 36, 0.98) 100%);
  border-right: none;
}

.app-sidebar .dlabnav-scroll {
  padding: 1.2rem 1rem 1.4rem;
}

.app-sidebar-card,
.app-sidebar-utility {
  border-radius: 24px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  margin-bottom: 1rem;
}

.app-sidebar-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.app-sidebar-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(46, 201, 237, 0.18);
  color: #6ce0f8;
  font-size: 1.15rem;
}

.app-sidebar-card__content {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.app-sidebar-card__eyebrow,
.app-sidebar-group__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.54);
  font-weight: 700;
}

.app-sidebar-card__content strong {
  font-size: 0.98rem;
  line-height: 1.2;
}

.app-sidebar-card__content p,
.app-sidebar-utility p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}

.app-sidebar-group {
  margin-bottom: 1rem;
}

.app-sidebar-group__label {
  padding: 0 0.55rem 0.5rem;
}

.app-nav-list {
  gap: 0.45rem;
}

.app-nav-list li {
  margin: 0;
}

.app-nav-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 60px;
  border-radius: 18px;
  padding: 0.75rem 0.9rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.app-nav-link:hover {
  transform: translateX(2px);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.app-nav-link.is-active {
  background: linear-gradient(135deg, rgba(46, 201, 237, 0.2) 0%, rgba(255, 255, 255, 0.08) 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 22px rgba(0, 0, 0, 0.16);
}

.app-nav-link__icon {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1rem;
}

.app-nav-link.is-active .app-nav-link__icon {
  background: rgba(46, 201, 237, 0.16);
  color: #82e5f9;
}

.app-nav-link__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-nav-link__text strong {
  font-size: 0.93rem;
}

.app-nav-link__text small {
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.75rem;
  line-height: 1.35;
}

.app-sidebar-utility .btn {
  margin-bottom: 0.7rem;
}

.copyright {
  color: rgba(255, 255, 255, 0.54);
}

.app-page-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  border-radius: var(--app-radius);
  background:
    radial-gradient(circle at top right, rgba(46, 201, 237, 0.24), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(235, 244, 251, 0.88) 100%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--app-shadow);
}

.app-page-hero__copy {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.app-page-hero__icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1.4rem;
  background: linear-gradient(135deg, rgba(46, 201, 237, 0.18) 0%, rgba(15, 23, 42, 0.04) 100%);
  color: #0b4f66;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 16px 30px rgba(46, 201, 237, 0.16);
}

.app-page-hero__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.app-page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: #0f172a;
}

.app-page-hero__meta h1 {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--app-text);
}

.app-page-hero__meta p {
  margin: 0;
  max-width: 45rem;
  color: var(--app-muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.app-page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.app-page-hero__actions .btn {
  min-height: 48px;
  padding-inline: 1rem;
}

.app-section-card {
  position: relative;
  overflow: hidden;
}

.app-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.app-section-head__copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.app-section-head__eyebrow {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--app-muted);
  font-weight: 700;
}

.app-section-head h2,
.app-section-head h3 {
  margin: 0;
  font-size: 1.12rem;
  color: var(--app-text);
}

.app-section-head p {
  margin: 0;
  color: var(--app-muted);
}

.app-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.app-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.app-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  color: var(--app-text);
  font-size: 0.84rem;
  font-weight: 600;
}

.app-stat-card {
  border-radius: 22px;
  padding: 1.15rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.84) 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.06);
  height: 100%;
}

.app-stat-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.app-stat-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(46, 201, 237, 0.14);
  color: #0b4f66;
}

.app-stat-card__icon.success {
  background: rgba(23, 178, 106, 0.12);
  color: var(--app-success);
}

.app-stat-card__icon.warning {
  background: rgba(245, 158, 11, 0.12);
  color: var(--app-warning);
}

.app-stat-card__icon.danger {
  background: rgba(239, 68, 68, 0.12);
  color: var(--app-danger);
}

.app-stat-card small {
  color: var(--app-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.app-stat-card h3,
.app-stat-card h4 {
  margin: 0.35rem 0 0;
  color: var(--app-text);
}

.app-stat-card p {
  margin: 0.35rem 0 0;
  color: var(--app-muted);
}

.app-collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.app-surface-card {
  padding: 1.15rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.06);
}

.app-surface-card strong,
.app-surface-card h4 {
  color: var(--app-text);
}

.app-surface-card p,
.app-surface-card small {
  color: var(--app-muted);
}

.app-list-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.app-list-card__icon {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(46, 201, 237, 0.12);
  color: #0b4f66;
  flex-shrink: 0;
}

.app-list-card__copy {
  min-width: 0;
}

.app-list-card__copy strong {
  display: block;
  color: var(--app-text);
}

.app-list-card__copy p,
.app-list-card__copy small {
  margin: 0.2rem 0 0;
  color: var(--app-muted);
}

.app-table-shell {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.app-table-shell .table-responsive {
  padding: 0;
}

.app-scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  color: var(--app-muted);
  font-size: 0.82rem;
}

.app-row-actions {
  min-width: max-content;
}

.app-bank-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.app-bank-card,
.app-bank-subcard {
  padding: 1rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.92) 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 28px rgba(15, 23, 42, 0.06);
}

.app-bank-subcard {
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: none;
}

.app-bank-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
}

.app-bank-card__top h3,
.app-bank-subcard h4 {
  margin: 0.18rem 0 0;
  font-size: 1.05rem;
  color: var(--app-text);
}

.app-bank-card__eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--app-muted);
  font-weight: 700;
}

.app-bank-card__amount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 0.9rem;
  border-radius: 18px;
  background: rgba(46, 201, 237, 0.12);
  color: #0b4f66;
  font-weight: 700;
  white-space: nowrap;
}

.app-bank-card__amount.success {
  background: rgba(23, 178, 106, 0.12);
  color: var(--app-success);
}

.app-bank-card__amount.warning {
  background: rgba(245, 158, 11, 0.14);
  color: #b16907;
}

.app-bank-card__meta,
.app-bank-card__actions,
.app-bank-subcard__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.app-bank-card__meta {
  margin-top: 0.85rem;
}

.app-bank-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.app-bank-card__grid-item,
.app-bank-note {
  padding: 0.75rem 0.85rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.04);
}

.app-bank-card__grid-item small,
.app-bank-note small {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--app-muted);
}

.app-bank-card__grid-item strong,
.app-bank-note strong {
  color: var(--app-text);
}

.app-bank-note {
  margin-top: 0.8rem;
}

.app-bank-card__actions {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.app-bank-card__actions .btn,
.app-bank-subcard__actions .btn {
  min-height: 40px;
  border-radius: 14px;
}

.app-bank-sublist {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.app-bank-subcard__actions {
  margin-top: 0.75rem;
}

.app-form-shell {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.app-form-section {
  padding: 1rem;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.035);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.app-form-section__head {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.9rem;
}

.app-form-section__eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--app-muted);
}

.app-form-section__title {
  margin: 0;
  font-size: 1rem;
  color: var(--app-text);
}

.app-form-section__desc {
  margin: 0;
  color: var(--app-muted);
  font-size: 0.88rem;
}

.app-form-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.9rem;
}

.app-form-col-12 { grid-column: span 12; }
.app-form-col-8 { grid-column: span 8; }
.app-form-col-6 { grid-column: span 6; }
.app-form-col-4 { grid-column: span 4; }
.app-form-col-3 { grid-column: span 3; }

.app-form-switch {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.app-form-switch .form-check {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
}

.app-form-switch .form-check-label {
  font-weight: 600;
  color: var(--app-text);
}

.app-preview-stack {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.app-preview-panel {
  padding: 1rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.92) 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 28px rgba(15, 23, 42, 0.06);
}

.app-preview-panel--dark {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(31, 42, 68, 0.96) 100%);
  color: #fff;
}

.app-preview-panel--dark .app-preview-panel__label,
.app-preview-panel--dark .app-preview-panel__hint,
.app-preview-panel--dark p,
.app-preview-panel--dark small {
  color: rgba(255, 255, 255, 0.74);
}

.app-preview-panel__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--app-muted);
  font-weight: 700;
}

.app-preview-panel__value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--app-text);
}

.app-preview-panel__hint {
  display: block;
  margin-top: 0.45rem;
  color: var(--app-muted);
  font-size: 0.84rem;
}

.app-form-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.3rem;
}

.app-form-footer__hint {
  color: var(--app-muted);
  font-size: 0.86rem;
}

.app-color-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.app-color-field input[type="color"] {
  width: 56px;
  min-width: 56px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
}

.app-inline-note {
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(46, 201, 237, 0.1);
  color: #0b4f66;
  font-size: 0.88rem;
}

.app-empty-state {
  padding: 2.2rem 1rem;
  text-align: center;
  color: var(--app-muted);
}

.app-empty-state i {
  font-size: 2rem;
  margin-bottom: 0.65rem;
  color: rgba(15, 23, 42, 0.3);
}

.page-titles {
  display: none;
}

.mobile-tabbar {
  display: none;
}

.app-floating-action {
  position: fixed;
  right: 1.2rem;
  bottom: calc(84px + env(safe-area-inset-bottom));
  width: 60px;
  height: 60px;
  border-radius: 20px;
  border: none;
  background: linear-gradient(135deg, var(--primary) 0%, #76def8 100%);
  color: #04263a;
  box-shadow: 0 20px 30px rgba(46, 201, 237, 0.32);
  z-index: 1031;
}

.app-sheet-modal .modal-dialog {
  max-width: 640px;
}

.app-sheet-modal .modal-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
}

.app-sheet-modal .modal-header {
  align-items: flex-start;
}

.app-modal-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--app-muted);
  font-weight: 700;
}

.app-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
}

.app-quick-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 247, 251, 0.94) 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-quick-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 28px rgba(15, 23, 42, 0.08);
}

.app-quick-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(46, 201, 237, 0.14);
  color: #0b4f66;
  font-size: 1.1rem;
}

.summary-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.summary-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: rgba(46, 201, 237, 0.12);
  color: #0b4f66;
}

.summary-icon.success {
  background: rgba(23, 178, 106, 0.12);
  color: var(--app-success);
}

.summary-icon.warning {
  background: rgba(245, 158, 11, 0.14);
  color: #b16907;
}

.summary-icon.info {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

@media (max-width: 1199.98px) {
  .header .header-content {
    padding-inline: 1rem;
  }

  .content-body .container-fluid {
    padding-inline: 1rem;
  }

  .app-page-copy .dashboard_bar {
    font-size: 1.2rem;
  }
}

@media (max-width: 991.98px) {
  .nav-header {
    width: auto;
    max-width: calc(100vw - 6.75rem);
    min-width: 0;
    padding: 0;
    border-right: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .nav-header .brand-logo {
    position: relative;
    width: auto;
    max-width: 100%;
    height: 4.25rem;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    gap: 0.7rem;
    border-radius: 18px;
    background: rgba(9, 15, 32, 0.94);
    box-shadow: 0 18px 28px rgba(15, 23, 42, 0.18);
  }

  .nav-header .nav-control {
    position: absolute;
    top: 50%;
    right: -3rem;
    transform: translateY(-50%);
  }

  .brand-mark {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.85rem;
  }

  .brand-mark img {
    width: 1.55rem;
    height: 1.55rem;
  }

  .brand-copy strong {
    font-size: 0.92rem;
  }

  .brand-copy small {
    font-size: 0.72rem;
    line-height: 1.15;
  }

  .content-body {
    padding-bottom: 96px;
  }

  .content-body .container-fluid {
    padding: 1rem 1rem 6.2rem;
  }

  .header .header-content {
    padding-top: 0.85rem;
    padding-inline: 0.9rem;
  }

  .app-page-badge {
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 1rem;
  }

  .app-page-copy .dashboard_bar {
    font-size: 1.05rem;
  }

  .app-page-copy small,
  .app-top-actions,
  .header-info {
    display: none !important;
  }

  .app-header-left {
    padding-right: 1rem;
  }

  .app-quick-trigger span {
    display: none;
  }

  .mobile-tabbar {
    position: fixed;
    left: 0.85rem;
    right: 0.85rem;
    bottom: calc(0.7rem + env(safe-area-inset-bottom));
    z-index: 1030;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.35rem;
    padding: 0.5rem;
    border-radius: 24px;
    background: rgba(9, 15, 32, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 40px rgba(15, 23, 42, 0.28);
  }

  .mobile-tabbar .tab-item {
    min-height: 56px;
    border: none;
    background: transparent;
    border-radius: 18px;
    text-align: center;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 10px;
    line-height: 1.15;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
  }

  .mobile-tabbar .tab-item i {
    font-size: 17px;
  }

  .mobile-tabbar .tab-item.is-active,
  .mobile-tabbar .tab-item-action {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }

  .mobile-tabbar .tab-item-action {
    cursor: pointer;
  }

  .app-page-hero {
    padding: 1.15rem;
    flex-direction: column;
  }

  .app-actions-table th:last-child,
  .app-actions-table td.app-actions-cell {
    position: sticky;
    right: 0;
    z-index: 2;
    background: linear-gradient(90deg, rgba(244, 247, 251, 0.2) 0%, rgba(255, 255, 255, 0.96) 16%);
    box-shadow: -12px 0 20px rgba(15, 23, 42, 0.08);
  }

  .app-actions-table thead th:last-child {
    z-index: 4;
  }

  .app-actions-table th,
  .app-actions-table td {
    white-space: nowrap;
  }

  .app-actions-table td[data-label="Descricao"],
  .app-actions-table td[data-label="Despesa"],
  .app-actions-table td[data-label="Item"],
  .app-actions-table td[data-label="Rateio"] {
    white-space: normal;
    min-width: 220px;
  }

  .app-row-actions {
    display: flex;
    flex-wrap: nowrap !important;
    justify-content: flex-end;
    gap: 0.4rem !important;
  }

  .app-row-actions .action-icon,
  .app-row-actions .btn-xs.sharp,
  .app-row-actions .btn.btn-xs {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .app-page-hero__copy {
    width: 100%;
  }

  .app-page-hero__meta h1 {
    font-size: 1.45rem;
  }

  .app-page-hero__actions {
    width: 100%;
    justify-content: stretch;
  }

  .app-page-hero__actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .app-dropdown-panel {
    min-width: 300px;
  }

  @supports (padding: env(safe-area-inset-top)) {
    .header,
    .nav-header {
      padding-top: env(safe-area-inset-top);
    }
  }
}

@media (max-width: 767.98px) {
  .nav-header {
    max-width: calc(100vw - 7.75rem);
  }

  .brand-copy small {
    display: none;
  }

  .app-page-badge {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 0.95rem;
    font-size: 1rem;
  }

  .app-page-copy > span {
    font-size: 0.64rem;
  }

  .app-page-copy .dashboard_bar {
    font-size: 0.98rem;
  }

  .app-page-hero__copy {
    gap: 0.8rem;
  }

  .app-page-hero__icon {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 1rem;
    font-size: 1.1rem;
  }

  .app-page-hero__meta h1 {
    font-size: 1.28rem;
  }

  .app-stat-card,
  .app-surface-card,
  .app-list-card,
  .card-body {
    padding: 1rem;
  }

  .app-floating-action {
    bottom: calc(98px + env(safe-area-inset-bottom));
  }
}

/* Bank-like shell overrides */
.duofin-app .header .header-content,
.duofin-app.menu-toggle .header .header-content {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.duofin-app .header,
.duofin-app.menu-toggle .header {
  padding-left: 0;
}

.duofin-app .content-body,
.duofin-app.menu-toggle .content-body {
  margin-left: 0;
}

@media (max-width: 991.98px) {
  .duofin-app .header .header-content,
  .duofin-app.menu-toggle .header .header-content {
    padding: 0.9rem 1rem 0.75rem;
  }

  .app-shell-top {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .app-brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .app-brand__copy strong {
    font-size: 1rem;
  }

  .app-brand__copy small {
    font-size: 0.76rem;
  }

  .app-shell-actions {
    width: 100%;
    justify-content: space-between;
  }

  .app-user-pill {
    margin-left: auto;
  }

  .app-bank-nav__item {
    min-width: 190px;
    padding: 0.8rem 0.9rem;
  }
}

@media (max-width: 767.98px) {
  .duofin-app .content-body .container-fluid {
    padding-top: 1rem;
  }

  .app-shell-top {
    gap: 0.8rem;
  }

  .app-brand__mark {
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 0.9rem;
  }

  .app-brand__copy small,
  .app-user-pill__copy small,
  .app-bank-nav__copy small {
    display: none;
  }

  .app-shell-actions {
    gap: 0.55rem;
  }

  .app-user-pill {
    padding-left: 0.5rem;
  }

  .app-user-pill__copy strong {
    display: none;
  }

  .app-bank-nav__item {
    min-width: 148px;
    border-radius: 18px;
  }

  .app-bank-nav__icon {
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 0.85rem;
  }

  .app-form-col-8,
  .app-form-col-6,
  .app-form-col-4,
  .app-form-col-3 {
    grid-column: span 12;
  }

  .app-form-section,
  .app-preview-panel {
    padding: 0.9rem;
    border-radius: 18px;
  }

  .app-form-footer {
    flex-direction: column;
    align-items: stretch;
  }
}
