/* ==========================================================================
   NetVault Bank — design tokens
   ========================================================================== */
:root {
  --nv-primary: #10315b;
  --nv-primary-dark: #0a2240;
  --nv-primary-light: #eaf0f9;
  --nv-accent: #f2622e;
  --nv-accent-dark: #d94f1f;
  --nv-bg: #f4f5f7;
  --nv-surface: #ffffff;
  --nv-border: #e2e5ea;
  --nv-text: #1c2430;
  --nv-text-muted: #616b7a;
  --nv-text-faint: #8a93a2;
  --nv-success: #1c8a4b;
  --nv-danger: #c22b2b;
  --nv-radius-sm: 6px;
  --nv-radius-md: 10px;
  --nv-radius-lg: 16px;
  --nv-shadow-sm: 0 1px 2px rgba(16, 49, 91, 0.08);
  --nv-shadow-md: 0 4px 16px rgba(16, 49, 91, 0.10);
  --nv-header-h: 3.75rem;
  --nv-sidebar-w: 15.5rem;
  --nv-rail-w: 20rem;
  --nv-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--nv-font);
  background: var(--nv-bg);
  color: var(--nv-text);
  line-height: 1.5;
  min-height: 100vh;
}

.nv-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Shared: accessibility toolbar
   ========================================================================== */
.nv-a11y-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.25rem;
  padding: 0.75rem 1rem;
  flex-wrap: wrap;
}
.nv-a11y-group { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--nv-text-muted); }
.nv-a11y-fontsize { display: flex; gap: 0.375rem; }
.nv-a11y-fontsize button {
  width: 1.75rem; height: 1.75rem;
  border-radius: 999px;
  border: 1px solid var(--nv-border);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--nv-text-muted);
  display: flex; align-items: center; justify-content: center;
}
.nv-a11y-fontsize button[aria-pressed="true"] {
  background: var(--nv-primary);
  border-color: var(--nv-primary);
  color: #fff;
}
.nv-switch {
  position: relative;
  width: 2.5rem; height: 1.375rem;
  border-radius: 999px;
  background: var(--nv-border);
  display: inline-flex;
  align-items: center;
  padding: 0.125rem;
}
.nv-switch::after {
  content: "";
  width: 1.125rem; height: 1.125rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--nv-shadow-sm);
  transition: transform .15s ease;
}
.nv-switch[aria-checked="true"] { background: var(--nv-accent); }
.nv-switch[aria-checked="true"]::after { transform: translateX(1.125rem); }
.nv-badge-beta {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  background: var(--nv-danger);
  border-radius: var(--nv-radius-sm);
  padding: 0.0625rem 0.375rem;
  margin-left: 0.375rem;
}

/* ==========================================================================
   Guest layout / login
   ========================================================================== */
.nv-guest {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.nv-guest-header {
  background: var(--nv-surface);
  border-bottom: 1px solid var(--nv-border);
}
.nv-guest-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1rem;
}
.nv-logo-mark {
  width: 2.5rem; height: 2.5rem;
  flex-shrink: 0;
  object-fit: contain;
}
/* An uploaded logo image stands alone (no brand-name text beside it), so it
   renders at its own aspect ratio — a wide wordmark shouldn't be squeezed
   into the default icon's square box. */
.nv-logo-mark.is-image { width: auto; max-width: 13rem; }
.nv-logo-text {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--nv-primary);
  line-height: 1.1;
}
.nv-logo-tagline {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--nv-text-faint);
}

.nv-guest-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 2rem;
}
.nv-guest-illustration {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}
.nv-guest-illustration svg, .nv-guest-illustration img { width: 12rem; height: auto; border-radius: var(--nv-radius-lg); object-fit: cover; }

.nv-login-card {
  width: 100%;
  background: var(--nv-surface);
  border-radius: var(--nv-radius-lg);
  box-shadow: var(--nv-shadow-md);
  padding: 1.5rem;
  align-self: center;
}
.nv-login-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.nv-login-card-head h1 { font-size: 1.25rem; font-weight: 800; }
.nv-mode-select {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--nv-primary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nv-tabs {
  display: flex;
  gap: 1.5rem;
  border-bottom: 1px solid var(--nv-border);
  margin-bottom: 1.25rem;
}
.nv-tab {
  padding: 0 0 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--nv-text-faint);
  border-bottom: 2px solid transparent;
}
.nv-tab.is-active { color: var(--nv-primary); border-color: var(--nv-primary); }

.nv-field { margin-bottom: 1rem; }
.nv-field-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--nv-text-muted);
  margin-bottom: 0.375rem;
}
.nv-field-control {
  position: relative;
  display: flex;
  align-items: center;
}
.nv-field-control input,
.nv-field-control select {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius-sm);
  font-size: 0.9375rem;
  background: var(--nv-surface);
}
.nv-field-control input:focus,
.nv-field-control select:focus {
  outline: none;
  border-color: var(--nv-primary);
  box-shadow: 0 0 0 3px var(--nv-primary-light);
}
.nv-statement-filter-form { max-width: 22rem; }
.nv-field-toggle {
  position: absolute;
  right: 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--nv-primary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nv-field-error {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: var(--nv-danger);
}
.nv-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--nv-radius-sm);
  font-size: 0.8125rem;
  margin-bottom: 1rem;
  background: var(--nv-primary-light);
  color: var(--nv-primary);
}

/* DEV ONLY — demo credentials callout, delete this block + its markup to remove */
.nv-demo-note {
  border: 1px dashed var(--nv-border);
  border-radius: var(--nv-radius-sm);
  padding: 0.75rem 0.875rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  color: var(--nv-text-muted);
}
.nv-demo-note-title {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 700;
  color: var(--nv-text);
  margin-bottom: 0.375rem;
}
.nv-demo-note-tag {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  background: var(--nv-accent);
  border-radius: var(--nv-radius-sm);
  padding: 0.0625rem 0.375rem;
}
.nv-demo-note code {
  background: var(--nv-bg);
  border-radius: 4px;
  padding: 0.0625rem 0.3125rem;
  font-size: 0.75rem;
}

.nv-login-aux {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
}
.nv-checkbox { display: flex; align-items: center; gap: 0.5rem; color: var(--nv-text-muted); }
.nv-checkbox input { width: 1rem; height: 1rem; }
.nv-link { color: var(--nv-primary); font-weight: 600; }
.nv-icon-sm { width: 1rem; height: 1rem; }
.nv-keypad-link { display: inline-flex; align-items: center; gap: 0.25rem; }
.nv-login-forgot { display: block; margin-bottom: 1.25rem; font-size: 0.8125rem; }

.nv-fineprint {
  font-size: 0.75rem;
  color: var(--nv-text-faint);
  border-top: 1px solid var(--nv-border);
  padding-top: 1rem;
  margin-bottom: 1rem;
}
.nv-fineprint .nv-link { font-weight: 500; text-decoration: underline; }

.nv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.8125rem 1rem;
  border-radius: var(--nv-radius-sm);
  font-size: 0.9375rem;
  font-weight: 700;
  background: var(--nv-accent);
  color: #fff;
  transition: background .15s ease;
}
.nv-btn:hover { background: var(--nv-accent-dark); }
.nv-btn[disabled] { background: #f6b8a2; cursor: not-allowed; }

.nv-guest-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  font-size: 0.75rem;
  color: var(--nv-text-faint);
  border-top: 1px solid var(--nv-border);
}
.nv-guest-footer svg { width: 0.9375rem; height: 0.9375rem; }

@media (min-width: 40rem) {
  .nv-guest-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

@media (min-width: 64rem) {
  .nv-guest-brand { padding: 1.5rem 2.5rem; }
  .nv-a11y-bar { padding: 1.5rem 2.5rem; }
  .nv-guest-main {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.5rem 3rem 4rem;
  }
  .nv-guest-illustration { align-items: flex-start; text-align: left; max-width: 54rem; margin-left: 2rem; min-width: 0; }
  .nv-guest-illustration svg, .nv-guest-illustration img { width: 50rem; max-width: 100%; }
  .nv-login-card { width: 29rem; max-width: 29rem; padding: 2.5rem; margin-left: auto; }
  .nv-guest-footer { padding: 1rem 2.5rem; }
}

/* ==========================================================================
   Authenticated app shell
   ========================================================================== */
.nv-app { min-height: 100vh; display: flex; flex-direction: column; }

.nv-topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: var(--nv-header-h);
  padding: 0 1rem;
  background: var(--nv-surface);
  border-bottom: 1px solid var(--nv-border);
}
.nv-topbar-brand { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.nv-topbar-brand .nv-logo-mark { width: 2.25rem; height: 2.25rem; }
.nv-topbar-brand .nv-logo-mark.is-image { width: auto; max-width: 10rem; }
.nv-topbar-brand .nv-logo-text { font-size: 0.9375rem; }
.nv-menu-toggle {
  width: 2.25rem; height: 2.25rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--nv-radius-sm);
  flex-shrink: 0;
}
.nv-menu-toggle svg { width: 1.25rem; height: 1.25rem; }
.nv-topbar-search { flex: 1; position: relative; display: none; }
.nv-topbar-search input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2.25rem;
  border-radius: var(--nv-radius-sm);
  border: 1px solid var(--nv-border);
  background: var(--nv-bg);
  font-size: 0.875rem;
}
.nv-topbar-search svg {
  position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%);
  width: 1rem; height: 1rem; color: var(--nv-text-faint);
}
.nv-topbar-actions { display: none; align-items: center; gap: 1.125rem; }

.nv-skip-link {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--nv-primary-light);
  color: var(--nv-primary);
  font-size: 0.8125rem;
  font-weight: 700;
  flex-shrink: 0;
}
.nv-skip-link:focus { outline: 2px solid var(--nv-primary); outline-offset: 2px; }
@media (max-width: 63.98rem) {
  .nv-skip-link:focus {
    display: flex;
    position: fixed;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 100;
  }
}
.nv-topbar-action { display: flex; flex-direction: column; align-items: center; gap: 0.125rem; font-size: 0.6875rem; color: var(--nv-text-muted); }
.nv-topbar-action svg { width: 1.0625rem; height: 1.0625rem; }
.nv-topbar-action.is-emergency { color: var(--nv-danger); }
.nv-topbar-action svg.is-solid { fill: currentColor; }
.nv-icon-favourite { color: var(--nv-danger); }
.nv-icon-language { color: var(--nv-primary); }
.nv-topbar-icon-badge {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--nv-text-faint);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nv-topbar-icon-badge svg { width: 0.875rem; height: 0.875rem; }
.nv-topbar-icon-badge.is-danger { background: var(--nv-danger); }

.nv-profile { position: relative; }
.nv-profile-trigger {
  display: flex; align-items: center; gap: 0.375rem;
}
.nv-avatar {
  width: 1.75rem; height: 1.75rem;
  border-radius: 50%;
  background: var(--nv-primary);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.nv-profile-menu {
  position: absolute;
  right: 0; top: calc(100% + 0.5rem);
  width: 18rem;
  background: var(--nv-surface);
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius-md);
  box-shadow: var(--nv-shadow-md);
  padding: 1rem;
  display: none;
  z-index: 50;
}
.nv-profile[data-open="true"] .nv-profile-menu { display: block; }

.nv-profile-menu-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.875rem; }
.nv-avatar-lg { width: 3rem; height: 3rem; font-size: 1rem; flex-shrink: 0; }
.nv-profile-menu-name { font-size: 0.9375rem; font-weight: 700; }
.nv-profile-menu-crn { font-size: 0.8125rem; color: var(--nv-text-muted); margin-top: 0.125rem; }

.nv-profile-menu-link { display: block; font-size: 0.875rem; font-weight: 700; color: var(--nv-primary); margin-bottom: 0.875rem; }
.nv-profile-menu-divider { border-top: 1px solid var(--nv-border); margin: 0.75rem 0; }
.nv-profile-menu-note { font-size: 0.8125rem; color: var(--nv-text-muted); margin-bottom: 0.75rem; }

.nv-profile-menu-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.625rem;
  margin: 0 -0.625rem;
  border-radius: var(--nv-radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
}
.nv-profile-menu-item-chevron { margin-left: auto; color: var(--nv-text-faint); width: 1rem; height: 1rem; flex-shrink: 0; }
.nv-profile-menu-item:hover { background: var(--nv-bg); }
.nv-profile-menu-item.is-danger { color: var(--nv-danger); }

.nv-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.nv-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 16rem;
  background: var(--nv-surface);
  border-right: 1px solid var(--nv-border);
  padding: 1rem 0.75rem;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform .2s ease;
  z-index: 60;
}
.nv-sidebar[data-open="true"] { transform: translateX(0); }
.nv-sidebar-scrim {
  position: fixed; inset: 0;
  background: rgba(10, 18, 32, 0.45);
  z-index: 55;
  display: none;
}
.nv-sidebar-scrim[data-open="true"] { display: block; }
.nv-nav-group-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--nv-text-faint);
  padding: 1rem 0.625rem 0.375rem;
}
.nv-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.625rem;
  border-radius: var(--nv-radius-sm);
  font-size: 0.875rem;
  font-family: inherit;
  text-align: left;
  color: var(--nv-text);
}
.nv-nav-item svg { width: 1.125rem; height: 1.125rem; color: var(--nv-text-muted); flex-shrink: 0; }
.nv-nav-item:hover { background: var(--nv-bg); }
.nv-nav-item.is-active { background: var(--nv-primary-light); color: var(--nv-primary); font-weight: 700; }
.nv-nav-item.is-active svg { color: var(--nv-primary); }
.nv-nav-item .nv-badge-new {
  margin-left: auto;
  font-size: 0.625rem;
  font-weight: 700;
  color: #fff;
  background: var(--nv-danger);
  border-radius: var(--nv-radius-sm);
  padding: 0.0625rem 0.375rem;
}

.nv-nav-item-wrap { position: relative; }
.nv-nav-item-caret { margin-left: auto; transition: transform .15s ease; }
.nv-nav-item-wrap:has(.nv-nav-flyout[data-open="true"]) .nv-nav-item-caret { transform: rotate(90deg); }
.nv-nav-item-wrap:has(.nv-nav-flyout[data-open="true"]) > .nv-nav-item {
  background: var(--nv-primary-light);
  color: var(--nv-primary);
  font-weight: 700;
}
.nv-nav-item-wrap:has(.nv-nav-flyout[data-open="true"]) > .nv-nav-item svg { color: var(--nv-primary); }
.nv-nav-flyout {
  display: none;
  background: var(--nv-bg);
  border-radius: var(--nv-radius-md);
  padding: 0.25rem 0.5rem;
  margin: 0.125rem 0 0.5rem;
}
.nv-nav-flyout[data-open="true"] { display: block; }
.nv-nav-flyout .nv-service-item { padding: 0.625rem 0.125rem; }
.nv-nav-item.is-logout { color: var(--nv-danger); margin-top: 0.5rem; }
.nv-nav-item.is-logout svg { color: var(--nv-danger); }

.nv-main-col { flex: 1; min-width: 0; padding: 1rem; display: flex; flex-direction: column; gap: 1rem; }
.nv-rail { padding: 1rem; background: var(--nv-surface); }

.nv-greeting { font-size: 0.8125rem; color: var(--nv-text-muted); }
.nv-breadcrumb-back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--nv-primary);
}
.nv-breadcrumb-back-icon { transform: rotate(180deg); }

/* ==========================================================================
   Account Statements page
   ========================================================================== */
.nv-stmt-page-head { display: flex; flex-direction: column; gap: 0.375rem; margin-bottom: 1rem; }
.nv-stmt-page-head h1 { font-size: 1.375rem; font-weight: 800; }
.nv-stmt-account-desc { font-size: 0.8125rem; color: var(--nv-text-muted); }

@media (min-width: 48rem) {
  .nv-stmt-page-head { flex-direction: row; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; }
}

.nv-stmt-tabs { display: flex; gap: 1.25rem; border-bottom: 1px solid var(--nv-border); margin-bottom: 1rem; overflow-x: auto; position: sticky; top: var(--nv-header-h); background: var(--nv-bg); z-index: 30; }
.nv-stmt-section { scroll-margin-top: calc(var(--nv-header-h) + 3.5rem); }
.nv-stmt-section:last-child { margin-bottom: 60vh; }
.nv-stmt-tab { padding: 0 0 0.75rem; font-size: 0.875rem; font-weight: 600; color: var(--nv-text-muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.nv-stmt-tab.is-active { color: var(--nv-primary); border-color: var(--nv-primary); }

.nv-stmt-subhead { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.nv-stmt-subhead h2 { font-size: 1.0625rem; font-weight: 800; }
.nv-stmt-subhead p { font-size: 0.8125rem; color: var(--nv-text-muted); margin-top: 0.125rem; }
.nv-stmt-closing-balance { font-size: 0.9375rem; font-weight: 800; text-align: right; }
.nv-stmt-closing-balance span { display: block; font-size: 0.75rem; font-weight: 500; color: var(--nv-text-muted); }

.nv-stmt-filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  background: var(--nv-bg);
  border-radius: var(--nv-radius-md);
  padding: 0.75rem;
  margin-bottom: 1rem;
}
.nv-stmt-filterbar select {
  padding: 0.5rem 0.625rem;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius-sm);
  font-size: 0.8125rem;
  background: var(--nv-surface);
}
.nv-stmt-filter-link {
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--nv-primary);
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.nv-stmt-pager-info { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--nv-text-muted); }
.nv-stmt-pager-btn { width: 1.75rem; height: 1.75rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--nv-text-muted); }
.nv-stmt-pager-btn:hover { background: var(--nv-border); }
.nv-stmt-pager-btn[aria-disabled="true"] { opacity: 0.35; pointer-events: none; }
.nv-stmt-download { display: flex; align-items: center; gap: 0.375rem; font-size: 0.8125rem; font-weight: 700; color: var(--nv-primary); }

.nv-stmt-table-wrap { overflow-x: auto; }
.nv-stmt-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; min-width: 42rem; }
.nv-stmt-table th { text-align: left; font-size: 0.75rem; color: var(--nv-text-muted); padding: 0.625rem 0.75rem; border-bottom: 1px solid var(--nv-border); white-space: nowrap; }
.nv-stmt-table th.is-numeric, .nv-stmt-table td.is-numeric { text-align: right; }
.nv-stmt-table td { padding: 0.875rem 0.75rem; border-bottom: 1px solid var(--nv-border); vertical-align: top; }
.nv-stmt-table-desc-cell { display: flex; align-items: flex-start; gap: 0.625rem; }
.nv-stmt-table-date { color: var(--nv-text-faint); font-size: 0.75rem; margin-top: 0.125rem; }
.nv-stmt-amount.is-debit { color: var(--nv-danger); font-weight: 700; }
.nv-stmt-amount.is-credit { color: var(--nv-success); font-weight: 700; }

.nv-annual-row, .nv-fy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.875rem 0;
  border-top: 1px solid var(--nv-border);
}
.nv-annual-row:first-of-type, .nv-fy-row:first-of-type { border-top: none; }
.nv-annual-row-label, .nv-fy-label { font-weight: 700; font-size: 0.9375rem; }
.nv-annual-row-links, .nv-fy-actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.nv-annual-download-link { display: flex; align-items: center; gap: 0.375rem; font-size: 0.8125rem; font-weight: 600; color: var(--nv-primary); white-space: nowrap; }
.nv-fy-actions select {
  padding: 0.4375rem 0.625rem;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius-sm);
  font-size: 0.8125rem;
  background: var(--nv-surface);
}

.nv-consolidated-intro { font-size: 0.875rem; color: var(--nv-text-muted); }
.nv-consolidated-note { font-size: 0.8125rem; color: var(--nv-text-faint); margin-top: 0.25rem; margin-bottom: 0.5rem; }

.nv-tile-grid { display: flex; flex-wrap: wrap; gap: 1.75rem; padding-top: 0.5rem; }
.nv-tile { display: flex; flex-direction: column; align-items: center; gap: 0.625rem; text-align: center; width: 6rem; }
.nv-tile-icon {
  width: 3.5rem; height: 3.5rem;
  border-radius: var(--nv-radius-md);
  background: var(--nv-primary-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--nv-primary);
}
.nv-tile-icon svg { width: 1.75rem; height: 1.75rem; }
.nv-tile span:last-child { font-size: 0.8125rem; font-weight: 600; color: var(--nv-text); }

/* ==========================================================================
   Transaction details
   ========================================================================== */
.nv-txn-detail-head { display: flex; align-items: center; gap: 0.875rem; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--nv-border); }
.nv-txn-detail-head .nv-summary-icon { width: 2.75rem; height: 2.75rem; }
.nv-txn-detail-head .nv-summary-icon svg { width: 1.25rem; height: 1.25rem; }
.nv-txn-detail-amount { font-size: 1.375rem; font-weight: 800; }
.nv-txn-detail-amount.is-debit { color: var(--nv-danger); }
.nv-txn-detail-amount.is-credit { color: var(--nv-success); }
.nv-txn-detail-date { font-size: 0.8125rem; color: var(--nv-text-muted); margin-top: 0.125rem; }

.nv-detail-list { margin-bottom: 1.25rem; }
.nv-detail-list > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-top: 1px solid var(--nv-border); }
.nv-detail-list > div:first-child { border-top: none; }
.nv-detail-list dt { font-size: 0.8125rem; color: var(--nv-text-muted); }
.nv-detail-list dd { font-size: 0.875rem; font-weight: 600; text-align: right; }

.nv-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--nv-primary);
  border-radius: var(--nv-radius-sm);
  color: var(--nv-primary);
  font-size: 0.875rem;
  font-weight: 700;
}
.nv-btn-outline:hover { background: var(--nv-primary-light); }

/* ==========================================================================
   Accounts / Deposits page
   ========================================================================== */
.nv-acct-balance { font-size: 1.75rem; font-weight: 800; }
.nv-acct-balance-label { font-size: 0.875rem; color: var(--nv-text-muted); margin-bottom: 1rem; }
.nv-acct-stat-row { display: flex; flex-wrap: wrap; gap: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--nv-border); }
.nv-acct-stat-label { font-size: 0.75rem; color: var(--nv-text-muted); margin-bottom: 0.25rem; }
.nv-acct-stat-value { font-size: 0.875rem; font-weight: 700; }
.nv-acct-stat-value.is-link { color: var(--nv-primary); }

.nv-open-tile { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-align: center; width: 6rem; }
.nv-open-tile-label { font-size: 0.8125rem; font-weight: 600; }

.nv-dicgc-note { font-size: 0.8125rem; color: var(--nv-text-muted); line-height: 1.6; }
.nv-feedback-footer { text-align: center; font-size: 0.875rem; color: var(--nv-text-muted); padding: 1rem 0; }

/* ==========================================================================
   Profile page
   ========================================================================== */
.nv-profile-header { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-bottom: 1.25rem; }
.nv-avatar-lg { width: 3.5rem; height: 3.5rem; font-size: 1.125rem; }
.nv-profile-header-name { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.25rem; }

.nv-profile-progress-row { display: flex; align-items: center; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--nv-border); font-size: 0.875rem; color: var(--nv-text-muted); flex-wrap: wrap; }
.nv-profile-progress {
  -webkit-appearance: none;
  appearance: none;
  width: 16rem;
  max-width: 100%;
  height: 0.5rem;
  border: none;
  border-radius: 999px;
  overflow: hidden;
}
.nv-profile-progress::-webkit-progress-bar { background: var(--nv-border); border-radius: 999px; }
.nv-profile-progress::-webkit-progress-value { background: var(--nv-primary); border-radius: 999px; }
.nv-profile-progress::-moz-progress-bar { background: var(--nv-primary); border-radius: 999px; }

.nv-field-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1.5rem 2rem; }
.nv-field-grid > div { min-width: 0; }
.nv-field-item-label { font-size: 0.8125rem; color: var(--nv-text-muted); margin-bottom: 0.25rem; }
.nv-field-item-value { font-size: 0.9375rem; font-weight: 700; margin-bottom: 0.375rem; overflow-wrap: break-word; }
.nv-field-item-value.is-multiline { white-space: pre-line; }

.nv-card {
  background: var(--nv-surface);
  border-radius: var(--nv-radius-lg);
  border: 1px solid var(--nv-border);
  padding: 1rem;
}
.nv-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.nv-card-head h2 { font-size: 1.0625rem; font-weight: 800; }

.nv-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0;
  border-top: 1px solid var(--nv-border);
}
.nv-summary-row:first-of-type { border-top: none; }
.nv-summary-label { display: flex; align-items: center; gap: 0.625rem; font-size: 0.9375rem; font-weight: 600; }
.nv-summary-icon {
  width: 2rem; height: 2rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--nv-primary-light);
  color: var(--nv-primary);
  flex-shrink: 0;
}
.nv-summary-icon svg { width: 1rem; height: 1rem; }
.nv-summary-icon.is-liability { background: #fdece9; color: var(--nv-danger); }
.nv-view-balance { display: flex; align-items: center; gap: 0.375rem; font-size: 0.8125rem; font-weight: 700; color: var(--nv-primary); }
.nv-balance-amount { display: none; font-size: 1.125rem; font-weight: 800; padding: 0 0 0.875rem; }
.nv-balance-amount[data-open="true"] { display: block; }
.nv-summary-hint { font-size: 0.8125rem; text-align: center; padding-top: 0.875rem; border-top: 1px solid var(--nv-border); color: var(--nv-text-muted); }

.nv-recommend-item, .nv-whatsnew-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 0;
  border-top: 1px solid var(--nv-border);
}
.nv-recommend-item:first-of-type, .nv-whatsnew-item:first-of-type { border-top: none; }
.nv-recommend-icon, .nv-whatsnew-icon {
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  background: var(--nv-primary-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nv-recommend-icon svg, .nv-whatsnew-icon svg { width: 1.125rem; height: 1.125rem; color: var(--nv-primary); }
.nv-recommend-body, .nv-whatsnew-body { flex: 1; min-width: 0; }
.nv-recommend-body h3, .nv-whatsnew-body h3 { font-size: 0.9375rem; font-weight: 700; }
.nv-recommend-body p, .nv-whatsnew-body p { font-size: 0.8125rem; color: var(--nv-text-muted); margin-top: 0.125rem; }
.nv-recommend-cta { font-size: 0.8125rem; font-weight: 700; color: var(--nv-primary); flex-shrink: 0; margin-left: auto; padding-left: 0.5rem; }
.nv-whatsnew-cta { font-size: 0.8125rem; font-weight: 700; color: var(--nv-primary); display: block; margin-top: 0.25rem; }

.nv-see-more {
  display: flex; align-items: center; justify-content: center; gap: 0.375rem;
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.5rem;
  border: 1px solid var(--nv-primary);
  border-radius: var(--nv-radius-sm);
  color: var(--nv-primary);
  font-weight: 700;
  font-size: 0.875rem;
}
.nv-see-more svg { width: 1rem; height: 1rem; }

.nv-card-head-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: var(--nv-primary);
  flex-shrink: 0;
}
.nv-card-head-action:hover { background: var(--nv-primary-light); }

.nv-acct-row-sub { font-size: 0.75rem; color: var(--nv-text-muted); margin-top: 0.125rem; }

.nv-txn-footer-links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.75rem; padding-top: 0.875rem; margin-top: 0.25rem; border-top: 1px solid var(--nv-border); font-size: 0.8125rem; }
.nv-txn-footer-sep { width: 1px; height: 0.875rem; background: var(--nv-border); }

.nv-bank-card {
  border-radius: var(--nv-radius-md);
  background: linear-gradient(135deg, var(--nv-primary) 0%, var(--nv-primary-dark) 100%);
  color: #fff;
  padding: 1.125rem 1.25rem;
  margin-bottom: 0.875rem;
}
.nv-bank-card-top { display: flex; align-items: center; justify-content: space-between; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.02em; }
.nv-bank-card-type { text-transform: uppercase; font-size: 0.6875rem; opacity: 0.8; }
.nv-bank-card-number { font-size: 1.0625rem; font-weight: 700; letter-spacing: 0.08em; margin: 1.25rem 0 1rem; }
.nv-bank-card-bottom { display: flex; align-items: flex-end; justify-content: space-between; }
.nv-bank-card-name { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; opacity: 0.9; }
.nv-bank-card-network { font-size: 0.9375rem; font-weight: 800; font-style: italic; }

.nv-txn-account { font-size: 0.8125rem; color: var(--nv-text-muted); margin-bottom: 0.5rem; }
.nv-txn-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--nv-border);
}
.nv-txn-row:first-of-type { border-top: none; }
.nv-txn-icon {
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--nv-primary-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nv-txn-icon svg { width: 1rem; height: 1rem; color: var(--nv-primary); }
.nv-txn-body { flex: 1; min-width: 0; }
.nv-txn-date { font-size: 0.75rem; color: var(--nv-text-faint); }
.nv-txn-desc { font-size: 0.8125rem; word-break: break-word; }
.nv-txn-amount { font-size: 0.875rem; font-weight: 700; white-space: nowrap; }
.nv-txn-amount.is-debit { color: var(--nv-danger); }
.nv-txn-amount.is-credit { color: var(--nv-success); }
.nv-txn-menu-wrap { position: relative; flex-shrink: 0; }
.nv-txn-more {
  width: 1.75rem; height: 1.75rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--nv-text-faint);
}
.nv-txn-more svg { width: 1.125rem; height: 1.125rem; }
.nv-txn-more:hover { background: var(--nv-bg); }
.nv-txn-menu {
  display: none;
  position: absolute;
  right: 0; top: calc(100% + 0.25rem);
  width: 12rem;
  background: var(--nv-surface);
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius-md);
  box-shadow: var(--nv-shadow-md);
  padding: 0.375rem;
  z-index: 40;
}
.nv-txn-menu[data-open="true"] { display: block; }
.nv-txn-menu-item { display: block; padding: 0.5rem 0.625rem; border-radius: var(--nv-radius-sm); font-size: 0.8125rem; font-weight: 600; color: var(--nv-text); }
.nv-txn-menu-item:hover { background: var(--nv-bg); }
.nv-txn-menu-item { border: none; background: none; width: 100%; text-align: left; font-family: inherit; cursor: pointer; }

.nv-txn-detail-popover {
  display: none;
  position: fixed;
  width: 20rem;
  max-width: calc(100vw - 1.5rem);
  background: var(--nv-surface);
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius-lg);
  box-shadow: var(--nv-shadow-md);
  padding: 1.25rem;
  z-index: 80;
}
.nv-txn-detail-popover[data-open="true"] { display: block; }
.nv-txn-detail-close { position: absolute; top: 0.75rem; right: 0.75rem; color: var(--nv-text-faint); width: 1.5rem; height: 1.5rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.nv-txn-detail-close:hover { background: var(--nv-bg); }
.nv-txn-detail-desc { font-size: 0.9375rem; font-weight: 400; padding-right: 1.5rem; margin-bottom: 1rem; }
.nv-txn-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.nv-txn-detail-label { font-size: 0.75rem; color: var(--nv-text-muted); margin-bottom: 0.25rem; }
.nv-txn-detail-value { font-size: 0.9375rem; font-weight: 400; }

.nv-rail-widget { margin-bottom: 1rem; }
.nv-rail-widget:last-child { margin-bottom: 0; }
.nv-rail-title { display: flex; align-items: center; justify-content: space-between; font-size: 0.8125rem; font-weight: 700; color: var(--nv-text-muted); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.625rem; }
.nv-rail-title .nv-badge-count { background: var(--nv-primary); color: #fff; border-radius: 999px; width: 1.25rem; height: 1.25rem; display: inline-flex; align-items: center; justify-content: center; font-size: 0.6875rem; }
.nv-rail-see-all { font-size: 0.75rem; font-weight: 700; color: var(--nv-primary); text-transform: none; }

.nv-payment-card { background: var(--nv-primary-light); border-radius: var(--nv-radius-md); padding: 0.875rem; }
.nv-payment-title { font-size: 0.8125rem; color: var(--nv-text-muted); }
.nv-payment-amount { font-size: 1.125rem; font-weight: 800; margin: 0.25rem 0; }
.nv-payment-due { font-size: 0.75rem; color: var(--nv-text-faint); }

.nv-banner {
  background: linear-gradient(135deg, var(--nv-danger), #e0553f);
  color: #fff;
  border-radius: var(--nv-radius-md);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nv-banner p { font-size: 0.875rem; font-weight: 700; flex: 1; }
.nv-banner-arrow {
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nv-banner-arrow svg { width: 1rem; height: 1rem; }

.nv-service-item, .nv-whatsnew-simple-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0;
  border-top: 1px solid var(--nv-border);
  font-size: 0.875rem;
}
.nv-service-item:first-of-type, .nv-whatsnew-simple-item:first-of-type { border-top: none; }
.nv-service-item-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--nv-primary-light);
  color: var(--nv-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nv-service-item-icon svg { width: 1rem; height: 1rem; }
.nv-service-item-arrow { margin-left: auto; color: var(--nv-text-faint); }

/* ==========================================================================
   Module placeholder
   ========================================================================== */
.nv-placeholder {
  background: var(--nv-surface);
  border: 1px dashed var(--nv-border);
  border-radius: var(--nv-radius-lg);
  padding: 3rem 1.5rem;
  text-align: center;
}
.nv-placeholder svg { width: 3rem; height: 3rem; margin: 0 auto 1rem; color: var(--nv-primary); }
.nv-placeholder h1 { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.5rem; }
.nv-placeholder p { color: var(--nv-text-muted); font-size: 0.9375rem; max-width: 28rem; margin: 0 auto; }
.nv-placeholder.is-embedded { background: none; border: none; padding: 2rem 1rem; }

@media (min-width: 64rem) {
  .nv-topbar { padding: 0 1.5rem; gap: 1.5rem; }
  .nv-menu-toggle { display: none; }
  .nv-topbar-search { display: block; max-width: 26rem; }
  .nv-skip-link { display: flex; margin-left: auto; }
  .nv-topbar-actions { display: flex; }

  .nv-sidebar {
    position: sticky;
    top: var(--nv-header-h);
    height: calc(100vh - var(--nv-header-h));
    transform: none;
    width: var(--nv-sidebar-w);
    flex-shrink: 0;
    border-right: 1px solid var(--nv-border);
  }
  .nv-sidebar-scrim { display: none !important; }

  .nv-shell { flex-direction: row; align-items: flex-start; }
  .nv-main-col { padding: 1.5rem 2rem; }
  .nv-rail {
    width: var(--nv-rail-w);
    flex-shrink: 0;
    padding: 1.5rem;
    margin: 1.5rem 1.5rem 1.5rem 1rem;
    border-radius: var(--nv-radius-lg);
    position: sticky;
    top: calc(var(--nv-header-h) + 1.5rem);
  }

  .nv-nav-flyout {
    /* Fixed (not absolute) so it escapes .nv-sidebar's overflow-y clipping.
       Top/left are computed in app.js from the trigger button's position. */
    position: fixed;
    width: 22rem;
    max-height: 70vh;
    overflow-y: auto;
    background: var(--nv-surface);
    border: 1px solid var(--nv-border);
    box-shadow: var(--nv-shadow-md);
    border-radius: var(--nv-radius-lg);
    padding: 0.5rem 0.75rem;
    margin: 0;
    z-index: 70;
  }
}

@media (min-width: 48rem) and (max-width: 63.98rem) {
  .nv-main-with-rail { display: grid; grid-template-columns: 1fr; gap: 1rem; }
}

/* ==========================================================================
   High contrast mode
   ========================================================================== */
body.nv-high-contrast {
  --nv-primary: #00227a;
  --nv-primary-light: #d7e2ff;
  --nv-text: #000000;
  --nv-text-muted: #1a1a1a;
  --nv-text-faint: #333333;
  --nv-border: #000000;
  --nv-bg: #ffffff;
  --nv-accent: #a4290a;
  --nv-accent-dark: #7d1f07;
}
body.nv-high-contrast .nv-card,
body.nv-high-contrast .nv-login-card,
body.nv-high-contrast .nv-sidebar,
body.nv-high-contrast .nv-topbar { border-width: 2px; }

/* ==========================================================================
   Admin panel
   ========================================================================== */
.nva-guest {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.nva-guest-card {
  width: 100%;
  max-width: 24rem;
  background: var(--nv-surface);
  border-radius: var(--nv-radius-lg);
  box-shadow: var(--nv-shadow-md);
  padding: 2rem 1.5rem;
}
.nva-guest-brand { display: flex; align-items: center; gap: 0.625rem; margin-bottom: 1.5rem; }
.nva-guest-brand .nv-logo-mark { width: 2.75rem; height: 2.75rem; }
.nva-guest-brand .nv-logo-mark.is-image { width: auto; max-width: 12rem; }
.nva-guest-card h1 { font-size: 1.25rem; font-weight: 800; margin-bottom: 1.5rem; }

.nva-app { min-height: 100vh; display: flex; flex-direction: column; }
.nva-topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: var(--nv-header-h);
  padding: 0 1rem;
  background: var(--nv-primary-dark);
  color: #fff;
}
.nva-topbar .nv-logo-text { color: #fff; }
.nva-topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.nva-topbar-actions form button { color: rgba(255,255,255,0.85); font-size: 0.875rem; font-weight: 600; }
.nva-menu-toggle { width: 2.25rem; height: 2.25rem; display: flex; align-items: center; justify-content: center; color: #fff; }
.nva-menu-toggle svg { width: 1.25rem; height: 1.25rem; }

.nva-shell { flex: 1; display: flex; flex-direction: column; }
.nva-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 16rem;
  background: var(--nv-surface);
  border-right: 1px solid var(--nv-border);
  padding: 1rem 0.75rem;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform .2s ease;
  z-index: 60;
}
.nva-sidebar[data-open="true"] { transform: translateX(0); }
.nva-main { flex: 1; min-width: 0; padding: 1rem; }

.nva-page-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.nva-page-head h1 { font-size: 1.375rem; font-weight: 800; }
.nva-page-head p { font-size: 0.875rem; color: var(--nv-text-muted); margin-top: 0.25rem; }
.nva-card-title { font-size: 1.0625rem; font-weight: 800; }
.nva-form-section-head { grid-column: 1 / -1; padding-top: 0.5rem; border-top: 1px solid var(--nv-border); }

.nva-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem;
  padding: 0.625rem 1rem;
  border-radius: var(--nv-radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  background: var(--nv-primary);
  color: #fff;
}
.nva-btn.is-secondary { background: var(--nv-bg); color: var(--nv-text); border: 1px solid var(--nv-border); }
.nva-btn.is-danger { background: var(--nv-danger); }
.nva-btn svg { width: 1rem; height: 1rem; }

.nva-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--nv-radius-sm);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  background: #e7f6ec;
  color: var(--nv-success);
  border: 1px solid #bfe6cb;
}
.nva-alert.is-error { background: #fdeceb; color: var(--nv-danger); border-color: #f6c7c1; }

.nva-card { background: var(--nv-surface); border: 1px solid var(--nv-border); border-radius: var(--nv-radius-lg); padding: 1rem; margin-bottom: 1rem; }

.nva-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-bottom: 1rem; }
.nva-stat-card { background: var(--nv-surface); border: 1px solid var(--nv-border); border-radius: var(--nv-radius-lg); padding: 1rem; }
.nva-stat-card p:first-child { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--nv-text-muted); }
.nva-stat-card p:last-child { font-size: 1.5rem; font-weight: 800; margin-top: 0.25rem; }

.nva-table-wrap { overflow-x: auto; }
.nva-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; min-width: 36rem; }
.nva-table th { text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--nv-text-muted); padding: 0.625rem 0.75rem; border-bottom: 1px solid var(--nv-border); white-space: nowrap; }
.nva-table td { padding: 0.75rem; border-bottom: 1px solid var(--nv-border); vertical-align: middle; }
.nva-table-actions { display: flex; gap: 0.5rem; white-space: nowrap; }

.nva-pill { display: inline-flex; align-items: center; padding: 0.125rem 0.5rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; background: var(--nv-primary-light); color: var(--nv-primary); }
.nva-pill.is-off { background: var(--nv-bg); color: var(--nv-text-faint); }

.nva-form-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.nva-field-label { display: block; font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.375rem; }
.nva-field-hint { font-size: 0.75rem; color: var(--nv-text-muted); margin-top: 0.25rem; }
.nva-field-hint.is-full-width { grid-column: 1 / -1; margin-top: -0.5rem; margin-bottom: 0.25rem; }
.nva-setting-preview {
  display: block;
  max-width: 8rem;
  max-height: 4rem;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius-sm);
  padding: 0.375rem;
  margin-bottom: 0.5rem;
  background: var(--nv-bg);
}
.nva-setting-preview.is-small { max-width: 2.5rem; max-height: 2.5rem; }
.nva-setting-preview.is-wide { max-width: 16rem; max-height: 8rem; }
.nva-input, .nva-select, .nva-textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius-sm);
  font-size: 0.9375rem;
  background: var(--nv-surface);
}
.nva-input:focus, .nva-select:focus, .nva-textarea:focus { outline: none; border-color: var(--nv-primary); box-shadow: 0 0 0 3px var(--nv-primary-light); }
.nva-checkbox-field { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; }
.nva-checkbox-field input { width: 1.125rem; height: 1.125rem; }
.nva-form-actions { display: flex; gap: 0.75rem; margin-top: 0.5rem; }

.nva-empty { text-align: center; padding: 2rem 1rem; color: var(--nv-text-muted); font-size: 0.9375rem; }

.nva-pager { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; font-size: 0.875rem; }
.nva-pager-link { font-weight: 700; color: var(--nv-primary); }
.nva-pager-link.is-disabled { color: var(--nv-text-faint); }
.nva-pager-status { color: var(--nv-text-muted); }

@media (min-width: 64rem) {
  .nva-menu-toggle { display: none; }
  .nva-shell { flex-direction: row; }
  .nva-sidebar { position: sticky; top: var(--nv-header-h); height: calc(100vh - var(--nv-header-h)); transform: none; flex-shrink: 0; }
  .nva-main { padding: 1.5rem 2rem; max-width: 72rem; }
  .nva-stat-grid { grid-template-columns: repeat(4, 1fr); }
  .nva-form-grid.is-two-col { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Advanced filters modal
   ========================================================================== */
.nv-modal {
  border: none;
  border-radius: var(--nv-radius-lg);
  padding: 0;
  margin: auto;
  width: min(26rem, calc(100vw - 2rem));
  max-height: calc(100vh - 4rem);
  box-shadow: var(--nv-shadow-md);
}
.nv-modal::backdrop { background: rgba(28, 36, 48, 0.55); }
.nv-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.25rem 0.5rem; }
.nv-modal-head h2 { font-size: 1.25rem; font-weight: 800; }
.nv-modal-close { color: var(--nv-text-faint); padding: 0.25rem; flex-shrink: 0; }
.nv-modal-close svg { width: 1.125rem; height: 1.125rem; }
.nv-modal-body { padding: 0.5rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: 1.25rem; overflow-y: auto; }
.nv-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.nv-modal-grid > .nv-field { min-width: 0; }
.nv-modal-amount-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 0.5rem; }
.nv-modal-amount-row > .nv-field { min-width: 0; }
.nv-modal-amount-sep { padding-bottom: 0.75rem; color: var(--nv-text-faint); }
.nv-field-prefix { position: absolute; left: 0.875rem; color: var(--nv-text-faint); font-size: 0.9375rem; pointer-events: none; }
.nv-field-control.has-prefix input { padding-left: 1.75rem; }
.nv-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--nv-border);
}
.nv-modal-back { display: flex; align-items: center; gap: 0.375rem; color: var(--nv-text-muted); font-size: 0.875rem; font-weight: 600; flex-shrink: 0; }
.nv-modal-reset { color: var(--nv-text-muted); font-size: 0.875rem; font-weight: 600; }
.nv-btn.is-auto { width: auto; padding-left: 1.75rem; padding-right: 1.75rem; }

